Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

One-child normal form for every nondegenerate binary quadratic residual

Proved
IntMul.BinaryPhase.residual_normal_form

by raresbuhai · Oct 9, 2026 · Mathlib 0df444a (Lean v4.33.1)

algebrabinary-quadratic-formsinteger-multiplicationtensor-transforms

Let VVV be a finite binary vector space with basis indexed by a finite set III, let BBB be a nondegenerate bilinear form on VVV, and let q:V→Z/4Zq:V\to\mathbb Z/4\mathbb Zq:V→Z/4Z satisfy q(0)=0q(0)=0q(0)=0 and q(z+w)=q(z)+q(w)+2B(z,w)q(z+w)=q(z)+q(w)+2B(z,w)q(z+w)=q(z)+q(w)+2B(z,w). Define

K(x,y)=2−∣I∣∑z∈Viq(z)(−1)B(z,x+y).K(x,y)=2^{-|I|}\sum_{z\in V}i^{q(z)}(-1)^{B(z,x+y)}.K(x,y)=2−∣I∣z∈V∑​iq(z)(−1)B(z,x+y).

There are binary linear address isomorphisms eL,eR:V→F2Ie_L,e_R:V\to\mathbb F_2^IeL​,eR​:V→F2I​, a scalar ε\varepsilonε with ε4=1\varepsilon^4=1ε4=1, and diagonal phase functions dL,dRd_L,d_RdL​,dR​ whose values have fourth power one, such that

K(x,y)=ε dL(x)(∏j∈IC(eL(x)j,eR(y)j))dR(y),K(x,y)=\varepsilon\,d_L(x)\left(\prod_{j\in I}C(e_L(x)_j,e_R(y)_j)\right)d_R(y),K(x,y)=εdL​(x)​j∈I∏​C(eL​(x)j​,eR​(y)j​)​dR​(y),

where CCC has diagonal entry (1+i)/2(1+i)/2(1+i)/2 and off-diagonal entry (1−i)/2(1-i)/2(1−i)/2. Thus the residual kernel factors through exactly one rank-∣I∣|I|∣I∣ tensor child, two binary address changes, and fourth-root phase corrections. The address changes may differ, so alternating forms are included without an orthonormal-basis assumption. This is an exact algebraic kernel identity; implementing the address and phase passes on a fixed-tape machine is a separate task.

Preamble
import Definitions.Def_IntMul_BinaryQuadraticPhase
import Theorems.Thm_IntMul_BinaryPhase_residual_gauss_interface
import Mathlib.LinearAlgebra.Basis.Defs
import Mathlib.FieldTheory.Finiteness
import Mathlib.Tactic
open scoped BigOperators
open IntMul.BinaryPhase
Formal statement
theorem IntMul.BinaryPhase.residual_normal_form
    {V : Type*} [AddCommGroup V] [Module (ZMod 2) V] [Fintype V] [DecidableEq V] {ι : Type*} [Fintype ι]
    (B : LinearMap.BilinForm (ZMod 2) V) (hB : B.Nondegenerate)
    (q : V → ZMod 4) (hq0 : q 0 = 0)
    (hpolar : ∀ z w, q (z + w) = q z + q w + twice (B z w))
    (b : Module.Basis ι (ZMod 2) V) :
    ∃ (eL eR : V ≃ₗ[ZMod 2] (ι → ZMod 2)) (ε : ℂ) (dL dR : V → ℂ),
      ε ^ 4 = 1 ∧ (∀ x, dL x ^ 4 = 1) ∧ (∀ y, dR y ^ 4 = 1) ∧
      ∀ x y,
        (∑ z : V, (phase (q z) : ℂ) * sign (B z (x + y))) /
          (2 : ℂ) ^ Fintype.card ι =
        ε * dL x * tensorKernel (eL x) (eR y) * dR y := by sorry
Source
CrocSwap/integer-mult-bounds, commit 3b6b66891c0ac888521cf591fe306c6286601d4f, notes/endpoint-gauge-complex.tex, subsection “A normal form for every nondegenerate binary residual”. https://github.com/CrocSwap/integer-mult-bounds/blob/3b6b66891c0ac888521cf591fe306c6286601d4f/notes/endpoint-gauge-complex.tex

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me