The canonical binary quotient codec round trips #
Coefficients of the monic remainder lie in the two-element field, so the zero/one bit conversion is exact. The remainder's strict degree bound makes the fixed coefficient list complete.
theorem
Algebraic.Cutwidth.Extractor.BinaryFieldCodec.Internal.length_encode
(s : ℕ)
(x : AdjoinRoot (binaryModulus s))
:
theorem
Algebraic.Cutwidth.Extractor.BinaryFieldCodec.Internal.ofBits_encode
(s : ℕ)
(x : AdjoinRoot (binaryModulus s))
:
theorem
Algebraic.Cutwidth.Extractor.BinaryFieldCodec.Internal.decode_encode
(s : ℕ)
(x : AdjoinRoot (binaryModulus s))
:
theorem
Algebraic.Cutwidth.Extractor.BinaryFieldCodec.Internal.decode_remainderBits
(s : ℕ)
(a modulus : List Bool)
(represents : Complexity.BitPolynomial.ofBits modulus = binaryModulus s)
:
theorem
Algebraic.Cutwidth.Extractor.BinaryFieldCodec.Internal.decode_frobeniusBits
(s : ℕ)
(a modulus count : List Bool)
(represents : Complexity.BitPolynomial.ofBits modulus = binaryModulus s)
: