Manuscript Offprint
arXiv:2608.30238Unrestricted Boolean Multiplicative Complexity of Four-Term Binary Polynomial Multiplication: Rational Places, Hasse Jets, and the Failure of Nonlinear Feedback
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
Classical lower bounds show that multiplying two degree-three polynomials over requires nine scalar products in bilinear or quadratic models. They do not settle unrestricted Boolean multiplicative complexity: an XOR-AND circuit may reuse nonlinear intermediate wires, and Boolean equality is taken modulo , so a multiplication can lower algebraic degree. Let output the seven coefficients of the product of two four-term binary polynomials. We prove that its unrestricted XOR-AND multiplicative complexity is exactly nine. This resolves, for a natural vector-valued quadratic function, the Boyar–Find question of whether a quadratic-circuit lower bound can persist against unrestricted nonlinear reuse. The proof is structural rather than exhaustive. A useful purely quadratic prefix is forced onto the three rational places of . In a hypothetical eight-AND circuit, the unique non-useful gate must carry a cubic high part. Any useful continuation then forces a rational tangent and exposes a first Hasse jet, while exterior jet separation together with Boolean idempotence prevents the same defect from exposing the second Hasse jet. The required useful suffix therefore cannot exist. A complete Lean 4 formalization verifies the Boolean-ANF semantics, the unrestricted circuit model, and the exact theorem; it uses no project-specific axiom or native decision procedure. The same zero-defect flag argument gives multiplicative complexity six for three-term multiplication, and the method isolates the multi-defect obstruction for five terms.
1 Introduction
Multiplication of short polynomials over finite fields is a classical test problem for multiplicative complexity. Bilinear and quadratic algorithms are tightly connected with Hankel matrices, linear-recurring sequences, interpolation, finite-field places, and coding theory; see, among others, Lempel–Seroussi–Winograd [9], Kaminski [7], Bshouty–Kaminski [3], and Averbuch–Bshouty–Kaminski [1]. For two degree-three polynomials over , the tight value nine is classical [7]. Find–Peralta recover and exploit the corresponding coding-theoretic lower bounds in the language of quadratic Boolean circuits, while their circuit search is restricted further to symmetric bilinear circuits [6].
There is, however, a different Boolean question. Let the coefficients be Boolean inputs and identify functions by their values on , equivalently in the ANF quotient
An unrestricted XOR-AND circuit may multiply arbitrary XOR combinations of previous nonlinear wires. Such a multiplication can create cubic or quartic terms and, because , can also contract higher-degree expressions back into degree two. None of this is present in a bilinear or quadratic circuit.
This distinction is not terminological. Boyar–Find define multiplicative complexity as the minimum number of AND gates in an arbitrary XOR–AND circuit and ask whether, over finite fields and in particular over , quadratic vector-valued Boolean functions can always be computed optimally by quadratic circuits [2]. They note that Mirwald–Schnorr proved quadratic circuits optimal for one- and two-output quadratic Boolean functions, but that the general case is open [10]. The algebraic straight-line lower bounds of Bshouty–Kaminski [4] concern computation of polynomial coefficients as formal field expressions; they do not identify Boolean functions modulo and therefore do not settle this question.
while algebraic straight-line complexity is a related but different formal-polynomial model. Concretely:
| model | allowed multiplication | equality notion |
|---|---|---|
| bilinear | polynomial/Boolean equality; no nonlinear reuse | |
| quadratic Boolean | equality of Boolean functions | |
| algebraic straight-line unrestricted Boolean | arbitrary previous field expressions, possibly with division arbitrary previous XOR wires, including nonlinear intermediates | formal polynomial/rational identity over the fieldBoolean equality modulo |
The classical nine-multiplication lower bound belongs to the first polynomial/quadratic traditions in the appropriate formulations. The theorem of this paper is the last row:
nonlinear Boolean feedback still cannot beat nine ANDs.
Our proof explains why. The target contains exactly three rank-one Hankel directions over , the rational places of . A hypothetical eight-AND computation has exactly one non-useful quotient direction. After normalization, that defect can interact profitably with the target only as a rational tangent. It can expose the first Hasse jet at that place, but not the second. Since four suffix gates would all have to be useful, the circuit dies after the first feedback step.
The proof is algebraic. It has also been formalized end to end in Lean 4, from Boolean functions and unrestricted circuit semantics through the seven- and eight-gate exclusions and the explicit nine-gate upper bound. The resulting kernel-checked theorem is the same unrestricted equality stated here. Separate small programs used during development remain as regression tests, but neither their code nor their recorded outputs are a logical premise of the theorem. The pinned public formalization and regression release is identified after the proof.
Contribution and scope. The new result is the unrestricted Boolean equality
An accompanying contribution is a complete formal proof of the exact frontier
in Lean 4 [5], using mathlib [12]. In particular, the formal development does not merely check the upper-bound circuit or isolated finite cases: it exports the unrestricted lower bound and the exact equality for n = 4 in the same circuit model as the paper. The value nine was previously known for restricted polynomial-multiplication/quadratic models; what is proved here is that the additional power of arbitrary Boolean nonlinear reuse does not lower it. Proposition 2.3 settles the elementary cases of zero-, one-, and two-term multiplication directly, while Proposition 2.4 supplies the three-term lifting with zero defect budget. To our knowledge, Mul4 is the first explicit polynomial-multiplication instance in this family where a nonzero defect budget must be controlled to lift a nontrivial quadratic-circuit lower bound to unrestricted Boolean circuits. The proof mechanism—rational-place normalization, feedback annihilators, and Hasse-jet saturation—is intended to transfer to multi-defect instances rather than merely reprove a small bilinear rank.
2 The Boolean circuit flag
Let
be the Boolean ANF algebra. XOR and constants are free. An AND gate takes two functions already available in the current -linear wire space and adjoins their Boolean product.
Definition 2.1 (unrestricted Boolean multiplicative complexity). An unrestricted XOR-AND circuit starts from the input variables and constants, allows arbitrary XORs at zero cost, and at each AND gate multiplies any two functions in the current wire span. For a vector-valued Boolean function F, define
where the minimum ranges over unrestricted XOR-AND circuits computing F.
Following Boyar–Find, a circuit is quadratic when it is both a circuit and an XOR-AND circuit. They state that this is equivalent to requiring every gate of the circuit to compute a Boolean function of algebraic degree at most two [2, Sec. 2]. A quadratic circuit is bilinear when, after partitioning the inputs into the a- and b-variables, each input to an AND gate is a linear combination from one side of the partition and the other input is a linear combination from the other side [2, Sec. 2].
The outputs of are quadratic functions, but an unrestricted circuit computing them is not assumed to remain quadratic internally. This is the model distinction on which the theorem depends.
Write
and
The seven are linearly independent. Let Aff be the nine-dimensional space spanned by 1 and the eight input variables, and put .
If V is the current wire space, define its target dimension by
An AND gate is useful if rises by one, and non-useful otherwise.
Lemma 2.2 (one gate buys at most one target dimension). If , then
Proof. Since Aff ⊆ V ⊆ V', the increase equals
The natural map
is injective: its kernel is
Therefore the increase is at most , and it is nonnegative.
2.1 The base frontier: zero through three terms
For , let
send the coefficients of
to the coefficients
of . For completeness, let be the unique map between zero-dimensional vector spaces.
Proposition 2.3 (elementary base cases). In the unrestricted Boolean model,
Proof. The value for is the stated empty-input convention. For , let be the span of the constant function and the input variables. Starting from , each AND gate adjoins at most one new coset modulo . Hence a circuit with AND gates has wire-space quotient dimension at most modulo .
The 2n-1 target coordinates are linearly independent modulo : the quadratic monomial occurs in exactly the coordinate , so distinct coordinates have disjoint nonempty quadratic monomial supports. Every circuit for therefore uses at least 2n-1 AND gates. This gives the lower bounds one and three for and .
For n = 1, the single product attains the bound. For n = 2, use
Then
so three AND gates suffice.
The next case is the first for which the target-dimension lower bound is not tight. It is also the last case whose attempted improvement has zero defect budget.
Zero-defect lifting for three terms
Specialize the preceding definition to multiplication of
Proposition 2.4 (the zero-defect case). The unrestricted Boolean multiplicative complexity of three-term binary polynomial multiplication is
Proof. The five output coefficients are linearly independent modulo affine functions: their degree-two monomial supports are disjoint, and no nonzero quadratic target combination is affine. Hence the target quotient has dimension five. If a five-AND circuit computed , Lemma 2.2 would force all five gates to be useful. Let be affine functions plus the five target coordinates. Starting from , usefulness and imply inductively that : if the new gate lay outside , the intersection with could not increase. Thus every gate computes a Boolean function of degree at most two. By Boyar–Find’s equivalence this is a quadratic circuit [2, Sec. 2]. Find–Peralta’s lower-bound section states that any quadratic Boolean circuit for n-term polynomial multiplication induces the corresponding linear code; their table gives the lower bound six for [6, Sec. 5, Table 3]. Contradiction.
Six ANDs suffice. With
the five coefficients are
5
☐
Combining Propositions 2.3 and 2.4, the complete unrestricted base frontier is
Proposition 2.4 is the Boolean lifting with zero defect budget: five gates for five target dimensions leave no room for a non-useful direction. The four-term case is the first instance in this family where a circuit below the quadratic optimum has a nonzero defect budget and nonlinear feedback must be ruled out structurally.
Consequently, any eight-AND circuit computing has exactly one non-useful gate.
2.2 Exterior top-degree bookkeeping
Let
For highest homogeneous components we identify a squarefree monomial with . If two Boolean ANFs are multiplied, their top component is the ordinary exterior product; repeated variables produce lower-degree “contraction” terms in the Boolean algebra.
There is one characteristic-two point that is easy to misread.
Remark 2.5 (wedge square versus Pfaffian in characteristic two). For every ,
Indeed, every monomial square is zero in the exterior algebra and each cross term occurs twice. Thus the ordinary wedge square carries no decomposability information in characteristic two. The Pfaffian, or equivalently the divided-square quadratic form, is a different operation. We never use as a rank detector.
For a two-form , denotes the support of its alternating matrix, equivalently the smallest subspace with .
Lemma 2.6 (rank-four support). If has alternating rank four, has dimension two, and , then
Proof. Choose a basis of U and write
Rank four implies that the images of modulo are independent. Hence both and occur in the four-dimensional support.
3 Hankel target geometry
For
define the Hankel matrix
In the decomposition , , , the alternating matrix of is
Therefore
This block identity, rather than , is the source of the factor two in characteristic two.
3.1 The three rational places
Set
and
These are the three -rational points of the rank-one Hankel curve.
Lemma 3.1 (rank-one target forms). The nonzero decomposable elements of T are exactly
Proof. Let a decomposable target form be with and . The absence of and components forces to be dependent and to be dependent. Thus the cross matrix has rank at most one.
Conversely, a nonzero rank-one Hankel matrix is symmetric and can be written . If is the first nonzero index of , the Hankel condition forces or . If one gets . If , the recurrence forced by equality along anti-diagonals gives either , yielding , or , yielding .
The rank-one classification is classical; its role below is to control which target directions can first enter an XOR-AND flag.
3.2 Useful purely quadratic prefixes
Proposition 3.2 (rational-place prefix theorem). Let and . Every useful AND extension of V adds one of the missing rational-place directions .
Consequently the all-useful target-prefix states have cardinalities
after one, two, three, and four useful gates respectively.
Proof. Write two available wires as
with and . If the product is useful without creating a new high-degree direction, its quartic top satisfies
In an adapted basis for the three rational places, the three four-forms , , are independent. Hence are dependent:
for some .
Put . The cubic top is . If contains at least two rational-place components, its alternating rank is at least four, so is injective and vanishing of the cubic part forces . If is a single rational place, vanishing forces ; multiplying a vector of by produces only a multiple of in degree two. Finally in the Boolean algebra. Thus all nonlinear contributions reduce into .
Modulo , any new target direction therefore comes from a product of two affine forms. By Lemma 3.1, it is one of . The state counts are then the counts of one-, two-, and three-element subsets of a three-element set.
4 Rank-two target forms and the degree-two place
We need one further finite piece of Hankel geometry. It is small enough to display completely.
Lemma 4.1 (binary rank-two Hankels). The coefficient words for which are exactly
| 00 | 0000000, 0000010, 0000001, 0000011 |
| 01 | 0100000, 0101010, 0110110, 0111111 |
| 10 | 1000000, 1000001, 1010101, 1011011 |
| 11 | 1100000, 1101101, 1111110, 1111111. |
Proof. The four cases are obtained by row-span elimination, not by a search. For example, if , successive pivots force , leaving free. If , the first two rows are independent and rows three and four lying in their span force
The four choices of give the second row of the table. For , either the second row vanishes, yielding 1000000, 1000001, or independence gives
For (1, 1), either the first two rows coincide, yielding 1111110, 1111111, or independence gives
□
Among the fifteen nonzero forms, six lie in R, six are the two first-order tangent forms at each rational place,
and the remaining three are
They span a two-dimensional plane satisfying
the recurrence with minimal polynomial . Thus is the degree-two closed place over .
Let satisfy . Write
and similarly . Put
Then
In the bases and , a nonzero member of has cross matrix
whose determinant is the norm . Hence every nonzero member of has alternating rank four and misses the Grassmannian.
For later support arguments let
and
where and similarly for . The six tangent forms have support respectively, while the degree-two forms have support .
5 Flag normalization
The next lemma is the combinatorial step on which the later exterior argument rests.
Lemma 5.1 (first-entry replacement). Suppose first enters the flag at gate : but . Then gate may be replaced by any direct one-AND realization of without changing the subspace or any later realizable subspace.
In particular, if , gate j may be replaced by .
Proof. There is with
Hence
All later gate inputs are free XOR combinations of the current basis wires, so they may be rewritten in the new basis with no additional AND gates.
Lemma 5.2 (normalized eight-gate form). If an eight-AND circuit computes , there is an eight-AND circuit with the same property whose first three gates are , whose fourth gate is the unique non-useful gate, and whose gates five through eight are all useful.
Proof. All three rational-place directions belong to the final target space, so each first enters the flag somewhere. Apply Lemma 5.1 to replace those first-entry gates by their direct products. Since each such product depends only on the original inputs, commute the gate to the front. Moving it earlier does not invalidate any old gate: gates that formerly preceded it did not use it, and later gates may be XOR-rewired as above. Repeat for all three places.
The first three gates are independent target directions and therefore useful. The next non-place gate is now a legal extension of Aff + R. Proposition 3.2 says it cannot be useful, so it is the unique non-useful gate. Lemma 2.2 and dim T = 7 then force every remaining gate to be useful.
Call gate four the seed and write its output as g.
Lemma 5.3 (the seed has nonzero high part). The seed of a normalized hypothetical eight-AND circuit has .
Proof. If the seed had degree at most two, suppose a later gate were the first gate with nonzero degree- 3 part. Before that gate the whole state would have degree at most two. Any combination involving the new high component could not lie in Aff + T, so that first high-degree gate would be non-useful. This would be a second non-useful gate, impossible.
Hence every gate in the eight-gate circuit would compute a Boolean function of degree at most two, so Boyar–Find’s equivalence makes the whole circuit quadratic [2, Sec. 2]. Find–Peralta state in their lower-bound section that any quadratic Boolean circuit for n-term polynomial multiplication induces the relevant linear code, and their table gives the lower bound nine for n = 4 [6, Sec. 5, Table 3]. This is the Boolean-quadratic formulation of the classical Kaminski lower bound [7], and rules out eight gates.
6 A completion-capable seed is cubic
The seed is a product of two wires from Aff + R. Such a product can have degree four. We now rule out that possibility algebraically.
Write its two factors as
The quartic part is .
Proposition 6.1 (quartic exclusion). If the normalized seed admits even one useful suffix gate, then
Consequently the nonzero high part of the seed is purely cubic.
Proof. Assume . Then are independent and span a two-plane .
Low-low child. First suppose a useful gate five multiplies two wires in Aff + R. Its quartic part must equal , otherwise the new high direction cannot cancel against the one-dimensional seed state. Changing the basis of the two factors by changes their product only by available wires, because . We may therefore align the two quadratic bases. If the differences of the corresponding linear parts are , the cubic cancellation equation is
Up to the action on the rational places, two-planes in R have three orbits:
This follows by comparing the direct cubic components , , . In the first row, for example, forces both summands to vanish separately.
In all three rows the degree-two contraction of lies in : if , then has no cubic part and its quadratic part is a multiple of . Thus, modulo , the quadratic difference of the two products belongs to with .
If , every nonzero form in is decomposable; a target form of this kind lies in by Lemma 3.1. If , only the first row of (Q4) is possible, with nonzero vectors from both and . Any target form has alternating rank at most four and hence Hankel rank at most two. If it is outside , the list in Lemma 4.1 says that its support is one of . By Lemma 2.6, would be contained in that support. But no one of these four support spaces contains simultaneously a nonzero vector of and a nonzero vector of . Contradiction.
Child using the seed. Now suppose gate five uses g. Modulo the current state, a product with two g-containing factors can be replaced by one with exactly one such factor, again using . Write
Toggling c by 1 changes the product by the existing wire U. Thus a useful extension has a representative
Boolean idempotence gives
Let . Degree six in gives , hence . If , degree three of makes the nonzero target quadratic part annihilate the linear part of . Since , it has Hankel rank at least two, so wedge by is injective on vectors. Thus is constant, and forces , giving , which still has the seed high part. Hence .
Degree four in gives
For nonzero , a target annihilator outside exists only when is a singleton rational place. Up to , take ; then
The plane P contains , and under the stabilizer of there are two possibilities:
Put
and
From the degree-three part of one obtains
Indeed any other linear variable would create an uncancelled cubic monomial from c. The coefficient of xy is one, so c has odd truth-table parity on the four slices. Moreover wherever , while the complementary linear parts of F on distinct slices differ by and therefore cannot vanish on two different slices. Hence on exactly three slices.
Choose a factor basis for the seed:
Modulo affine terms, on a fixed slice the second factor has quadratic complementary part
and slice-varying linear part .
For , has alternating rank four. The cubic part of on any of the three slices therefore forces the complementary linear part of the first factor to vanish. Quadratic matching then forces the scalar multiplying to equal the coefficient of and forces the coefficient to be the same. The slice-varying terms cancel, so the complementary linear part of is constant on the three slices. This contradicts the two independent differences of .
For , write the complementary first-factor part as . If it is zero, the same constant-slice contradiction follows. If it is nonzero, the complementary quadratic equation first forces the coefficient of to vanish: otherwise one obtains either equality of two decomposable forms with disjoint support, or the nondecomposable rank-four form . The same equation then forces the other complementary linear factor into span . Hence every slice-varying complementary linear term of lies in span , which contains neither nor . Again the three-slice differences of give a contradiction.
Thus neither a low-low nor a g-using useful child exists when .
7 Cubic seeds and feedback annihilators
By Proposition 6.1 and Lemma 5.3, a completion-capable seed has a nonzero cubic high part.
Lemma 7.1 (low-product normal form). Let be a product of two wires from Aff + R, with nonzero cubic part and zero quartic part. Modulo Aff + R there exist and such that
and
where is the Boolean degree-lowering contraction.
Proof. With notation as before, zero quartic part gives , for a common . Put . Choose in the cases , and in the case . Then . Constants, , and constant multiples of lie in Aff + R, leaving (4).
For a cubic h define its target annihilator
7.1 A direct annihilator classification
The rational-place cubic spaces
form a direct sum:
Indeed, in a basis containing for the three places, a cubic basis monomial cannot contain two distinct rational-place pairs.
The following lemma is the exterior part of the feedback argument.
Lemma 7.2 (annihilator dichotomy). Let
If contains a direction outside , then either
(i) h is anchored at a single rational place and , or
(ii) h is anchored at a single rational place and .
The second case is the only way an annihilator of dimension at most two can meet .
Proof. The calculation is most transparent by the weight of G in the basis .
If , direct comparison of the three components gives an annihilator of dimension at most two, entirely contained in .
If , an annihilator direction outside exists only when . In that event one of the two cubic components vanishes and collapses to the other single anchor; the target annihilator has dimension three.
The remaining case is , already anchored. For , and always annihilate , so the annihilator has dimension at least two and at most three. The other places are equivalent under .
For completeness, the seven-column map being row-reduced is
In the adapted basis
and analogously on the side, the cross matrix of is
Substitution gives exactly the three cases above.
Once a single anchor is known, the dimension-three case has a more conceptual description.
Lemma 7.3 (tail-place classification). Let . Modulo ,
if and only if [M] is a nonzero vector in one of
The corresponding annihilators are
All other nonzero classes have annihilator .
Proof. Wedging first by kills every term containing or . The remaining target is exactly the five-dimensional coefficient space for the product of the three-term tails
If a nonzero tail two-form satisfies , then either has alternating rank two and lies in its support, or wedge by is injective on vectors. By Lemma 3.1, applied to the tail Hankel matrix, the only nonzero decomposable tail targets are the three rational places
Their support planes are exactly , which are pairwise disjoint. This gives the table. ☐
7.2 A useful gate cannot use the seed
We now analyze a hypothetical useful gate five that uses g.
First note that after anchoring at 0 we may choose the generator of the seed coset in the form
Indeed, in Lemma 7.1, if the common contains a second place , the direct sum of the forces , so is purely quadratic and lies in . Thus the extra place can be removed modulo .
Proposition 7.4 (no g-using first feedback). No useful gate five can use the seed g.
Proof. As in the quartic proof, a product with two g-containing factors is equivalent modulo the state to one with exactly one. Write
After toggling c by one if necessary, a useful extension has a low representative
Again
Degree five in the first identity gives
Lemma 7.2 reduces us to a single rational anchor.
Take that anchor to be 0. If , then
If the annihilator has dimension three, Lemma 7.3 shows that every outside-R coset either has the same first-jet form , or, only in the row, has a nonzero coefficient.
We dispose first of an coefficient. Write
Degree four of gives . On the columns , the three rows
give the matrix
whose determinant is one. Hence . The leading minor of the Hankel matrix of is also nonsingular, so and is injective. Degree three gives . Thus is constant, forces , and still has the nonzero seed high part. Contradiction.
It remains to rule out
Write
The degree-four part of is . Directly on its kernel is . If , then the degree-three part gives ; since has alternating rank four, wedge by is injective on vectors, so and is constant. The identity then forces , giving and retaining the nonzero seed high part. Therefore
Put
Expanding the degree-three part of now forces the remaining linear part of into : any coefficient on a different variable creates an uncancelled cubic monomial from . Hence
The coefficient of xy is one, so c has odd parity on the four slices. Since F = 0 wherever c = 0 and the complementary linear parts of F on distinct slices differ by , F cannot vanish identically on two different slices. Thus c = 1 on exactly three of the four slices.
Using the seed representative (5), write
where m, n are linear forms in the six complementary variables. Write the quadratic part of a as
On each of the three slices, equality first gives the complementary quadratic equation
The four possibilities for are:
The last line follows because has alternating rank four.
Subtracting two of the three slice equations gives the genuine linear relation
Any three corners of supply two independent differences, so the right sides span . In every admissible row of (6), the left sides lie in . The first row has dimension at most one; the second is ; the third is . None contains both and . Contradiction.
Crucially, the argument from (6) through (7) did not assume : it applies equally to all three dimension-three tail classes of Lemma 7.3. Thus the proposition excludes the potentially troublesome g-using first-jet case as well as the second-jet skip.
Remark 7.5 (why the stronger first-feedback exclusion is useful). Lemma 7.3 contains six “soft” dimension-three annihilator classes, namely the nonzero vectors in and , in addition to the three hard tangent classes in . If a g-using gate were allowed to install the first jet, those six classes would have to be carried into the saturation analysis. Proposition 7.4 removes all seed-reusing gate-five branches at once. The remaining low-low branch in Proposition 7.6 then forces the hard tangent class , so Section 8 needs to saturate only that geometry.
7.3 The first useful gate is the first Hasse jet
Since gate five cannot use g, it is a product of two low wires from Aff + R. We can now sharpen the feedback conclusion.
Proposition 7.6 (first low-low feedback). A useful gate five forces, after a change of rational place,
and the new target direction is
Proof. Compare the seed product and the low-low gate-five product using Lemma 7.1. Let their normal-form parameters be and . Their cubic highs are equal and their quadratic difference represents a nonzero target coset modulo .
Suppose first . Comparing the three direct cubic components , the only nonzero intersection patterns, up to and swapping the two products, are
In the first pattern,
The contraction difference in (4) lies in R, and the quadratic difference modulo R belongs to
If it is decomposable and cannot give a target outside . If , a target outside in has alternating rank at most four and therefore appears in Lemma 4.1. Its rank-four support would have to contain both a nonzero vector of and a nonzero vector of , which none of does. The second intersection pattern has ; the contraction difference lies in and the remaining quadratic difference is decomposable. Again no new target is possible.
Hence . If has alternating rank at least four, equality gives , and (4) makes the quadratic difference decomposable modulo . So must be a singleton rational place, say .
Then
If p = 0, the same decomposable-target contradiction applies. Otherwise the quadratic difference modulo R lies in
Any target representative outside therefore has Hankel rank two. By Lemma 4.1 and Lemma 2.6, its support must contain . The only outside- rank-two target forms with this property are the two tangent forms at 0, supported on
Thus and is a nonzero vector of . The two tangent forms differ by , so the new target coset is precisely .
Thus the state after gate five may be written
and
The unique annihilator direction not already represented in S is
8 First-order feedback cannot expose the second jet
We prove that gate six cannot be useful.
8.1 A jet-separation lemma
Keep
Lemma 8.1 (jet separation). If
then
Proof. Modulo S, write an arbitrary target as
Suppose
The right side has no component in . The coefficients of and give ; the coefficient of then gives ; and the coefficient of gives . Absorb the remaining into .
For , the four -coefficient vectors paired with are
All belong to . If , then , so , excluded. Hence . If , the first and third vectors again give , the same contradiction. Thus .
8.2 Low-low gate six
Lemma 8.2 (zero-wedge structure in ). For ,
implies either are dependent or
Proof. In the basis of , the only relation among the six pair wedges is ; the other five are independent. For example, on the five monomials
their coefficient matrix is
which has determinant one. Hence the kernel of is the line . If the Plücker form of is nonzero and lies on that line, the two-plane itself is .
Proposition 8.3 (no low-low second feedback). No product of two wires in Aff + S is a useful gate six.
Proof. Let the quadratic parts of the two factors be .
First suppose the product has zero high part. If are dependent, write them as multiples of a common . The cubic part has the form . If has alternating rank at least four, vanishing forces and no target escapes . If is decomposable, then by Lemma 3.1 it is one of . Vanishing gives in its support plane, and the remaining possible new quadratic term is decomposable; if it lies in it is again a rational place and hence belongs to .
If are independent, Lemma 8.2 puts them in . Any linear component outside would create an uncancelled cubic monomial because are independent. Thus the whole product is supported in , and
So a zero-high product cannot be useful.
Now suppose the product has high part , so adding the seed cancels it. If are dependent, use a common . Since ,
Write
The equation has the following possibilities:
| G | N |
|---|---|
The quadratic shadow of the low product lies in
By the anchored normal form (5), the seed shadow lies in for some representative . Hence the cancelled low result lies in
Here and , because has the nonzero component. Lemma 8.1 returns the target to .
If are independent, they span . Comparing every variable outside in the cubic equation forces both linear factor parts into . The product quadratic part is then in , and after adding the seed the result lies in
Again Lemma 8.1 applies, now with the one-dimensional .
8.3 A gate-six product using the seed
Proposition 8.4 (no g-using second feedback). No gate six using g is useful.
Proof. Normalize the product to
as before. The identities and still hold. Degree five of gives
Using (8),
Write , . Degree four of gives . Wedge by any of the four possible is injective on . One explicit minor, on the columns , is
with determinant one. Hence C = 0.
Degree three now gives . The Hankel matrix
has rank three, so has alternating rank six and wedge by is injective on vectors. Therefore . Thus is constant; forces , whence , contradicting the nonzero high part of .
Combining Propositions 8.3 and 8.4 gives the local saturation theorem.
Theorem 8.5 (no second useful gate after first feedback). In the normalized one-defect four-term state, once the first useful post-seed extension has been adjoined, no second useful AND gate exists, whether the next product is low-low or reuses the seed. In the rational-place coordinates of Proposition 7.6, the first extension is the first Hasse jet ; consequently the second Hasse jet is inaccessible as a special case.
9 The unrestricted Boolean nine-AND theorem
Theorem 9.1. The unrestricted XOR-AND multiplicative complexity of four-term binary polynomial multiplication is
Proof. For the lower bound, assume an eight-AND circuit exists. Lemma 5.2 puts the three rational-place products in gates one through three and the unique non-useful seed in gate four; gates five through eight must all be useful. Lemma 5.3 makes the seed genuinely nonlinear, and Proposition 6.1 makes its high part cubic. Proposition 7.4 says gate five cannot use the seed. Proposition 7.6 therefore forces a first-order rational tangent and installs the first Hasse jet. Theorem 8.5 says gate six cannot be useful, a contradiction.
For the upper bound, use a two-level Karatsuba–Ofman construction [8]. Let
Then
Thus nine AND gates suffice.
Remark 9.2 (what is new). Kaminski's classical result and the later Hankel/code formulations give the tight value nine in polynomial-multiplication, bilinear, and quadratic settings [6, 7]. They do not imply Theorem 9.1: unrestricted Boolean circuits may multiply nonlinear intermediate functions and exploit the identities . Boyar–Find explicitly identify as open over whether quadratic-circuit lower bounds for vector-valued quadratic Boolean functions persist for general circuits [2]. Theorem 9.1 establishes such persistence for the natural polynomial-multiplication function .
Lean formalization and reproducibility
The complete exact theorem has a formalization in Lean 4 [5], using mathlib [12]. The development represents a squarefree monomial by a finite set of variables and defines Boolean-ANF multiplication by set union. Simultaneous evaluation is proved to be a linear equivalence between these canonical ANFs and all Boolean functions. An unrestricted circuit with r AND gates is then a sequence of products whose two factors lie in the span of the affine inputs and the outputs of earlier gates. Thus nonlinear feedback and Boolean idempotence are part of the formal specification, rather than assumptions imported from the prose proof.
The principal exported declaration is
UnrestrictedBooleanMul.N4.mc_mul_four:MC(Mul4)=9.
Its lower-bound dependency chain includes the dimension obstruction for seven gates, normalization of a hypothetical eight-gate circuit, the cubic seed analysis, first-jet forcing, and feedback saturation; the upper bound is an explicit nine-gate circuit. The same project exports exact theorems for n = 0, 1, 2, 3. The pinned release uses Lean v4.32.1 and a locked mathlib revision. A clean replay is obtained with
lake exe cache --cache-from=legacy get
lake build
lake env lean AxiomAudit.lean
lake env leanchecker UnrestrictedBooleanMul
Continuous integration performs the build, axiom audit, and declaration replay, with an additional fresh source replay on a weekly schedule.
The Lean source contains no sorry, admit, project-specific axiom, native_decide, or bv_decide. The explicit axiom audit reports only Lean's standard propext, Classical.choice, and Quot.sound. In particular, the formal proof does not import or trust the recorded outputs of the separate Python and C++ regression checks. The source, lock files, SHA-256 manifests, and reproduction instructions are available at https://github.com/GregoryMorse/unrestricted-boolean-mul; the immutable snapshot for this manuscript is release n4-arxiv-v2, whose full commit hash is recorded in the arXiv metadata block above.
AI assistance disclosure
OpenAI GPT-5.6 Sol in extra-high thinking mode was used for research, proof exploration and development, computational checking, literature and citation verification, manuscript drafting and revision, and submission preparation. Anthropic Opus 5 in high thinking mode was used as a referee. The author reviewed the resulting mathematical claims, proofs, computations, citations, code, and manuscript text and assumes full responsibility for the final work.
10 Toward five terms and beyond
For five-term inputs,
the target has dimension nine. In the quadratic/bilinear polynomial-multiplication model the optimum is thirteen: Montgomery gives a division-free thirteen-product construction [11], and the coding-theoretic lower bounds summarized by Find–Peralta match it for the five-term binary case [6]. The unrestricted Boolean optimum is not inferred from that restricted result.
The rational-place prefix theorem is unchanged: over there are still only three rational points of , so every all-useful purely quadratic prefix again stops at
What changes is the defect budget. A hypothetical twelve-AND computation of the nine outputs may contain three non-useful dimensions, not one. The n=4 proof therefore suggests the following problem.
Definition 10.1 (three-defect quadratic capacity). For the five-term target and rational-place prefix , let be the maximum target dimension recoverable when the three non-useful quotient directions are all quadratic. Equivalently, one maximizes over three-dimensional quadratic defect spaces and the decomposable fibers above their seven nonzero quotient points.
A separate exact finite-geometry computation gives
This value is not used anywhere in the proof of Theorem 9.1; unlike the n = 4 theorem, its current status is computational rather than fully algebraic.
Conjecture 10.2 (three-defect Boolean envelope). Every five-term XOR-AND state with three total non-useful defect dimensions satisfies
even when some or all defect directions have nonzero cubic or quartic parts.
A positive answer would immediately rule out a twelve-AND circuit, because such a circuit has exactly nine useful gates and three non-useful gates, whereas all nine target dimensions would have to be recoverable. Thus the n = 5 problem is not merely “control three high-degree directions”: the three non-useful dimensions form one total defect budget, mixing purely quadratic and genuinely high-degree defects. The structural objective is to show that high-degree feedback cannot lift this three-defect capacity envelope.
The important issue is interaction. One defect at one rational place has now been analyzed completely:
For n = 5, three defects might live at distinct places, or several might interact before any one defect is saturated. The correct object is therefore no longer a scalar “garbage rank.” A more natural invariant is a place-degree profile: for every closed place P, record the order of the jet of C currently exposed there, and charge the creation of a higher jet against the multiplicative cost of the corresponding local algebra.
The degree-two place already appeared in the n=4 proof as the period-three plane . This strongly suggests that the general accounting should treat rational first jets and degree-two evaluation data on the same footing. Over , a place of degree d carries d target coordinates, but multiplication in its residue algebra has its own multiplicative cost. The n=4 obstruction can be read as the statement that a single rational first-order defect cannot simulate a degree-two or second-order local multiplication for free.
A concrete n=5 program is therefore:
N5.1. Normalize the three rational-place target gates to the beginning of the flag, exactly as in Lemma 5.2.
N5.2. Let H be the span of the high parts of the at most three non-useful gates. Classify the maps
by rational and degree-two place support, rather than by raw Boolean monomials.
N5.3. Prove a multi-defect feedback lemma: every useful gate after the defect space is created must expose a target class in the joint target annihilator of H.
N5.4. Determine whether two defects at distinct rational places can cooperate to expose a second jet at either place. If not, the n=4 saturation argument tensorizes and twelve ANDs are impossible.
N5.5. If interaction is possible, identify the minimal local algebra realizing it. That interaction, rather than another exhaustive lower bound, would be the genuinely new mechanism.
The same program makes sense for arbitrary n. The number of rational places remains three, while higher-degree closed places and higher Hasse jets enter as the target grows. This is the main reason to regard the n=4 proof as a structural base case rather than as a small isolated computation.
11 Conclusion
The unrestricted XOR–AND flag for four-term binary polynomial multiplication admits only a very specific kind of profitable nonlinearity. Purely quadratic useful prefixes are the three rational places. The unique high-degree defect of a hypothetical eight-gate circuit can be normalized to a cubic rational tangent. Its first feedback step exposes the first Hasse derivative of the product at that place. Boolean idempotence and exterior jet separation then block the second derivative. Since an eight-gate circuit would need four consecutive useful suffix gates, the computation cannot close.
The numerical value nine is classical for bilinear and quadratic polynomial-multiplication models; its optimality against unrestricted Boolean nonlinear reuse is the new lower-bound statement here. That exact statement, including its unrestricted semantics and full lower- and upper-bound chain, is independently kernel-checked by the accompanying Lean 4 formalization. The structural message is more portable: a first-order rational-place defect buys one first-order jet and no more. Whether several such defects can interact is the next question, beginning with five-term multiplication.
References
[1] Amir Averbuch, Nader H. Bshouty, and Michael Kaminski. A classification of algorithms for multiplying polynomials of small degree over finite fields. Journal of Algorithms, 13(4): 577–588, 1992. doi: 10.1016/0196-6774(92)90057-J.
[2] Joan Boyar and Magnus Gausdal Find. Multiplicative complexity of vector valued Boolean functions. Theoretical Computer Science, 720:36–46, 2018. doi: 10.1016/j.tcs.2018.02.023.
[3] Nader H. Bshouty and Michael Kaminski. Multiplication of polynomials over finite fields. SIAM Journal on Computing, 19(3):452–456, 1990. doi: 10.1137/0219029.
[4] Nader H. Bshouty and Michael Kaminski. Polynomial multiplication over finite fields: From quadratic to straight-line complexity. Computational Complexity, 15(3):252–262, 2006. doi:10.1007/s00037-006-0215-4.
[5] Leonardo de Moura and Sebastian Ullrich. The Lean 4 theorem prover and programming language. In Automated Deduction – CADE 28, volume 12699 of Lecture Notes in Artificial Intelligence, pages 625–635. Springer International Publishing, 2021. doi:10.1007/978-3-030-79876-5_37.
[6] Magnus Gaudal Find and René Peralta. Better circuits for binary polynomial multiplication. IEEE Transactions on Computers, 68(4):624–630, 2019. doi: 10.1109/TC.2018.2874662.
[7] Michael Kaminski. A lower bound for polynomial multiplication. Theoretical Computer Science, 40:319–322, 1985. doi: 10.1016/0304-3975(85)90174-4.
[8] A. A. Karatsuba and Yu. P. Ofman. Multiplication of multidigit numbers on automata. Soviet Physics Doklady, 7:595–596, 1963. English translation of Doklady Akademii Nauk SSSR 145(2) (1962), 293–294.
[9] Abraham Lempel, Gadiel Seroussi, and Shmuel Winograd. On the complexity of multiplication in finite fields. Theoretical Computer Science, 22:285–296, 1983. doi: 10.1016/0304-3975(83)90108-1.
[10] R. Mirwald and Claus-Peter Schnorr. The multiplicative complexity of quadratic Boolean forms. Theoretical Computer Science, 102(2):307–328, 1992. doi: 10.1016/0304-3975(92)90235-8.
[11] Peter L. Montgomery. Five, six, and seven-term Karatsuba-like formulae. IEEE Transactions on Computers, 54(3):362–369, 2005. doi: 10.1109/TC.2005.49.
[12] The mathlib Community. The Lean mathematical library. In Proceedings of the 9th ACM SIGPLAN International Conference on Certified Programs and Proofs, CPP 2020, pages 367–381, New York, NY, USA, 2020. Association for Computing Machinery. doi: 10.1145/3372885.3373824.