Multiplication tables of explicit binary fields #
The modulus is found by trial division. Remainders of powers of X give the multiplication
table of the power basis, shared by hardness encodings and the powering small-bias construction.
Main definitions #
Cslib.BinaryField.powerMulTable: the power-basis multiplication table for a supplied modulus.Cslib.BinaryField.fieldTable: the multiplication table in degreew.
Main results #
Cslib.BinaryField.isMulTable_powerMulTable: correctness for any power basis and monic modulus vanishing at its generator.Cslib.BinaryField.isMulTable_fieldTable: correctness of the table for every nonzero degree.
theorem Cslib.BinaryField.isMulTable_powerMulTable {F : Type u_1} [Field F] [Algebra (ZMod 2) F] {l : List Bool} {q : ℕ} (hlen : l.length = q) (α : F) (hα : (Polynomial.aeval α) (polyOfBits (l ++ [true])) = 0) (b : Module.Basis (Fin q) (ZMod 2) F) (hb : ∀ (i : Fin q), b i = α ^ ↑i) :
Remainders of powers give a multiplication table for any power basis whose generator is a root of the supplied monic binary polynomial.
The coefficient list of the modulus of the explicit binary field of degree w.
The coefficient list of the modulus is the coefficient list of leastIrreducible w.
The binary modulus word includes the monic coefficient at index w.
The table multiplies: fieldTable w is a multiplication table of the power basis of the
explicit binary field of degree w.
The coordinates [true] are those of 1.