Eight-limb inversion: runtime definitions (Mathlib-free) #
The Pornin binary-GCD inverse candidate over Limbs8 and its checked wrapper
(invGcdRaw), Mathlib-free for precompileModules consumers. The proof side is
Montgomery/Native64x8Inv.
Per-field schedule #
Per-field schedule of the binary-GCD inverse candidate; every obligation defaults to
decide.
- finalRounds : Nat
Divsteps in the final word-sized phase:
2·bits(p) - 2 - 15·31. - initU : Limbs8
Initial
u: the power of two that keeps the candidate in Montgomery form. Final-phase chunks stay at mac width.
Instances
Word-sized divstep loop #
@[inline]
Bit length of a word.
Instances For
Approximation: 64-bit windows over 32-bit limbs #
@[inline]
Read limb i (out-of-range indices read the top limb).
Instances For
@[inline]
One-word approximation: top 33 bits (at the shared bit length) above the bottom 31; exact once both values fit one 64-bit word.
Instances For
Nine-limb linear combinations over the native macs #
@[inline]
9-limb ripple-carry add (top carry discarded).