Documentation

HexPolyFp.PrimeField

def Hex.ZMod64.intPow {p : Nat} [Bounds p] (a : ZMod64 p) :
IntZMod64 p

Integer powers in the prime field, using inverses for negative exponents.

Equations
Instances For

    The 0⁻¹ = 0 junk-value convention for ZMod64 p.

    theorem Hex.ZMod64.inv_ne_zero_of_prime {p : Nat} [Bounds p] (hp : Nat.Prime p) {a : ZMod64 p} (ha : a 0) :

    The inverse of a nonzero residue modulo a prime is itself nonzero.

    theorem Hex.ZMod64.inv_inv_of_prime {p : Nat} [Bounds p] (hp : Nat.Prime p) (a : ZMod64 p) :

    Double-inverse identity in ZMod64 p for a prime modulus.

    @[instance_reducible]

    The Lean.Grind.Field instance on Hex.ZMod64 p carried by a prime-modulus witness.

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