Documentation

HexECPP.CM.Roots

def Hex.ECPP.CM.evaluate (n x : Nat) (coefficients : List Int) :

Horner evaluation modulo the subject, for ascending coefficients.

Equations
Instances For

    Conservative modular-operation reservation for one closed-form root call. For Tonelli–Shanks, at most s iterations each use at most 3*s+3 operations; four initial exponentiations use at most eight subject-bit lengths. The remaining margin covers root construction and two Horner checks.

    Equations
    Instances For

      Checked canonical roots of a monic polynomial of degree at most two. Other polynomial shapes are rejected. The explicit operation reservation is checked by the caller before executing this bounded algorithm.

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

        The original nine invariants as linear polynomials, in the same order.

        Equations
        Instances For