Integral Gram-square congruence modulo four
ProvedConway99Formal.CubicMetric.gram_square_congruence_20261003congruencelinear-algebranumber-theory
Let be a finite set, let be an integer matrix indexed by a type containing , and let assign an integer coefficient to each index. Suppose is symmetric and every diagonal entry is . Then the quadratic form obtained by replacing each entry with is divisible by four:
This abstract congruence applies to any integral norm-four Gram matrix. Instantiating it for a particular graph or lattice requires separately proving that the actual Gram matrix is integral, symmetric, and has diagonal four.
Preamble
import Mathlib set_option autoImplicit false
Formal statement
theorem Conway99Formal.CubicMetric.gram_square_congruence_20261003 {ι : Type*} [DecidableEq ι] (s : Finset ι) (G : ι → ι → ℤ) (a : ι → ℤ) (hsym : ∀ i j, G i j = G j i) (hdiag : ∀ i, G i i = 4) : 4 ∣ ∑ i ∈ s, ∑ j ∈ s, a i * ((G i j) ^ 2 - G i j) * a j := by sorrySource
Conway99 cubic-metric formalization, GramParity.lean, theorem Conway99Formal.CubicMetric.gram_square_congruence; source bundle frozen at integration commit a45708acebe3f397faccb1b646be906f24f23ee5, originally formalized from GC8 §1 (gram_congruence_turn8.md) and CTF §3 (CUBIC_TRACE_FORM.md). This submission states only the standalone arithmetic lemma, not its graph/lattice application.