Homogeneous degree and seed predicates #
The Boolean ANF multiplication lowers degree when variables repeat, so the formal development records degree by coefficients rather than by a polynomial quotient API. This file supplies the high-part predicates used by the seed and defect arguments.
Keep exactly the monomials of cardinality d.
Equations
- UnrestrictedBooleanMul.N4.homogeneousPart d p = MonoidAlgebra.ofCoeff (Finsupp.filter (fun (s : UnrestrictedBooleanMul.Monomial m) => s.vars.card = d) p.coeff)
Instances For
Linear projection onto the squarefree monomials of exactly the specified degree.
Equations
- UnrestrictedBooleanMul.N4.homogeneousProjection d = { toFun := UnrestrictedBooleanMul.N4.homogeneousPart d, map_add' := ⋯, map_smul' := ⋯ }
Instances For
The ANF has no monomial above degree d.
Equations
- UnrestrictedBooleanMul.N4.DegreeLE d p = ∀ (s : UnrestrictedBooleanMul.Monomial m), d < s.vars.card → p.coeff s = 0
Instances For
Boolean ANF degree is subadditive under multiplication. This uses only
the support inclusion for monoid algebras and
card (s ∪ t) ≤ card s + card t; repeated Boolean variables can lower,
but never raise, the degree.
There is a genuinely high monomial (degree at least three).
Equations
- UnrestrictedBooleanMul.N4.HasNonzeroHigh p = ∃ (s : UnrestrictedBooleanMul.Monomial m), 3 ≤ s.vars.card ∧ p.coeff s ≠ 0
Instances For
The degree-four homogeneous component vanishes.
Equations
Instances For
A seed whose only possible nonzero high component is cubic.
Equations
Instances For
The fourth gate has a nonzero component of degree greater than two.
Equations
Instances For
The fourth gate has no degree-four homogeneous component.
Equations
Instances For
The fourth gate is a cubic seed.
Equations
Instances For
The linear subspace of Boolean ANFs of degree at most two.
Equations
- UnrestrictedBooleanMul.N4.quadraticANFSpace m = { carrier := {p : UnrestrictedBooleanMul.ANF m | UnrestrictedBooleanMul.N4.DegreeLE 2 p}, add_mem' := ⋯, zero_mem' := ⋯, smul_mem' := ⋯ }
Instances For
Adjoining a first high-degree vector to an entirely quadratic state cannot create a new direction in a quadratic ambient target.
If the normalized seed were quadratic, every later gate would remain quadratic: the first high suffix gate would be a forbidden second non-useful gate.
Zero defect means the entire final wire space lies in Aff + T; in
particular every gate output has degree at most two.