Documentation

MIPRE.Foundations.LowDegree.BinaryRepresentation

Binary coefficient representations #

The coefficient interpretation used by the public Shoup contract and by the independent polynomial algorithms. This module does not assume that an irreducible polynomial has already been constructed.

noncomputable def MIPRE.LowDegree.polyOfBits (l : List Bool) :

The polynomial over 𝔽₂ whose coefficient of Tⁱ is bit i of l, least significant first --- the repository's little-endian bit convention (Cost.bitsVal, bitsOfNat).

Equations
Instances For

    The polynomial used by Shoup's contract reads the same coefficient bits.

    A monic polynomial's leading coefficient is present in its coefficient list.

    Remove trailing zero coefficients and separate the leading monic coefficient.