Documentation

HexBerlekampZassenhaus.WordCld

def Hex.powLtWordAux (p : Nat) :
NatNatOption Nat

Accumulating helper for powLtWord?: multiply acc by p, n times, with early exit if any partial product reaches 2^64.

Equations
Instances For

    some (p^a) if p^a < 2^64, computed with early exit so a huge exponent never materialises a bignum.

    Equations
    Instances For

      Word-sized CLD quotient (f · g') / g mod p^a for monic g, computed over WordMod when the guard Odd (p^a) ∧ p^a < 2^64 holds (p odd prime ⇒ p^a odd). Returns none when the guard fails, so the caller keeps the bignum path.

      Equations
      • One or more equations did not get rendered due to their size.
      Instances For