Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Rank-242424 even unimodular lattices and full integral isometry

Definition
Niemeier_Lattices24

by chlee · Nov 9, 2026 · Mathlib c5ea003 (Lean v4.30.0)

latticesniemeiernumber-theoryquadratic-forms

The definition bundle models lattices on Z24\mathbb Z^{24}Z24 by symmetric integer Gram matrices that are positive definite over R\mathbb RR, have even squared norm on every integral vector and determinant 111. It defines the integral pairing, full integral isometry and its quotient, roots of squared norm 222, rootlessness and complete-family/classification predicates. The classification is a proposition to prove, with no assumed representative list or completeness certificate.

Definition code
import Mathlib.LinearAlgebra.Matrix.PosDef
import Mathlib.LinearAlgebra.Matrix.BilinearForm
import Mathlib.LinearAlgebra.BilinearForm.IsometryEquiv
import Mathlib.LinearAlgebra.Matrix.Determinant.Basic

/-! Mathlib-only definitions for the local Niemeier mission proposal.
The Gram matrix records the integral pairing B; squared norm is B(x,x),
not half that value. No classification theorem is assumed here.
-/

set_option autoImplicit false

namespace Niemeier

abbrev Coordinates := Fin 24 → ℤ

/-- A based rank-24 integral lattice. Positive definiteness is over ℝ.
Unimodularity uses determinant +1, appropriate for a positive Gram matrix.
Evenness is required on every integral vector, with squared norm B(x,x). -/
structure EvenUnimodularLattice24 where
  gram : Matrix (Fin 24) (Fin 24) ℤ
  symmetric : gram.IsSymm
  positive : (gram.map (Int.castRingHom ℝ)).PosDef
  even : ∀ x : Coordinates, Even (gram.toBilin' x x)
  unimodular : gram.det = 1

namespace EvenUnimodularLattice24

abbrev pairing (L : EvenUnimodularLattice24) : LinearMap.BilinForm ℤ Coordinates :=
  L.gram.toBilin'

/-- Integral, full isometry, with no orientation or determinant +1 restriction. -/
def Isometric (L K : EvenUnimodularLattice24) : Prop :=
  L.pairing.Equivalent K.pairing

instance isometrySetoid : Setoid EvenUnimodularLattice24 where
  r := Isometric
  iseqv := ⟨fun L => LinearMap.BilinForm.Equivalent.refl L.pairing,
    fun h => LinearMap.BilinForm.Equivalent.symm h,
    fun h h' => LinearMap.BilinForm.Equivalent.trans h h'⟩

/-- Roots are actual integral vectors of squared norm 2. -/
def Roots (L : EvenUnimodularLattice24) :=
  {x : Coordinates // L.pairing x x = 2}

/-- The rootless member of the classification is the Leech isometry class. -/
def Rootless (L : EvenUnimodularLattice24) : Prop :=
  ∀ x : Coordinates, L.pairing x x ≠ 2



end EvenUnimodularLattice24

/-- The quotient forgets the chosen integral basis. -/
abbrev IsometryClass := Quotient EvenUnimodularLattice24.isometrySetoid

/-- A complete family of 24 pairwise nonisometric lattices. -/
def CompleteFamily (C : Fin 24 → EvenUnimodularLattice24) : Prop :=
  (∀ i j, (C i).Isometric (C j) ↔ i = j) ∧
  ∀ L : EvenUnimodularLattice24, ∃! i : Fin 24, L.Isometric (C i)

/-- Main target: 24 classes, with index 0 the unique rootless class.
The other 23 classes have roots. This is a proposition to prove, not a certificate
field supplied as an assumption about candidates. Concrete named Gram models
and identification with the classical root-system table are further obligations. -/
def ClassificationStatement : Prop :=
  ∃ C : Fin 24 → EvenUnimodularLattice24,
    CompleteFamily C ∧ ∀ i : Fin 24, (C i).Rootless ↔ i = 0





end Niemeier
Source
J. H. Conway and N. J. A. Sloane, On the enumeration of lattices of determinant one, Journal of Number Theory 15 (1982), 83–94, §2, Table III, §4 Tables V–VI and Theorem 2 (pp.91–93). https://doi.org/10.1016/0022-314X(82)90084-1
Read-back

What the Lean code literally says, in plain math · Codex independent sub-agent (inherited session model)

The coordinate module is Z24\mathbb Z^{24}Z24, with coordinates indexed by {0,1,…,23}\{0,1,\ldots,23\}{0,1,…,23}.

A lattice in this statement consists of a 24×2424\times2424×24 integer matrix GGG that is symmetric, whose entrywise image over R\mathbb RR is positive definite, such that ∑a,b=023xaGabxb\sum_{a,b=0}^{23}x_aG_{ab}x_b∑a,b=023​xa​Gab​xb​ is an even integer for every x∈Z24x\in\mathbb Z^{24}x∈Z24, and such that det⁡G=1\det G=1detG=1.

For each such lattice LLL with matrix GLG_LGL​, its pairing is the integer bilinear form BL(x,y)=∑a,b=023xa(GL)abybB_L(x,y)=\sum_{a,b=0}^{23}x_a(G_L)_{ab}y_bBL​(x,y)=∑a,b=023​xa​(GL​)ab​yb​ on Z24\mathbb Z^{24}Z24.

Two such lattices LLL and KKK are called isometric if their pairings are equivalent: there exists an invertible Z\mathbb ZZ-linear map T:Z24→Z24T:\mathbb Z^{24}\to\mathbb Z^{24}T:Z24→Z24 such that BK(Tx,Ty)=BL(x,y)B_K(Tx,Ty)=B_L(x,y)BK​(Tx,Ty)=BL​(x,y) for all x,y∈Z24x,y\in\mathbb Z^{24}x,y∈Z24.

The specified equivalence relation on these lattices is isometry; its reflexivity, symmetry and transitivity are those of equivalence of bilinear forms.

For each such lattice LLL, its roots form the set of vectors x∈Z24x\in\mathbb Z^{24}x∈Z24 satisfying BL(x,x)=2B_L(x,x)=2BL​(x,x)=2.

A lattice LLL is rootless if, for every x∈Z24x\in\mathbb Z^{24}x∈Z24, BL(x,x)≠2B_L(x,x)\ne2BL​(x,x)=2.

The set of isometry classes is the quotient of the set of these lattices by the specified isometry relation.

A family (Ci)i=023(C_i)_{i=0}^{23}(Ci​)i=023​ of these lattices is complete if both of the following hold: for every i,j∈{0,…,23}i,j\in\{0,\ldots,23\}i,j∈{0,…,23}, CiC_iCi​ is isometric to CjC_jCj​ if and only if i=ji=ji=j; and for every such lattice LLL, there exists exactly one i∈{0,…,23}i\in\{0,\ldots,23\}i∈{0,…,23} for which LLL is isometric to CiC_iCi​.

The classification proposition says that there exists a family (Ci)i=023(C_i)_{i=0}^{23}(Ci​)i=023​ of these lattices such that CiC_iCi​ is isometric to CjC_jCj​ if and only if i=ji=ji=j for every pair of indices, every such lattice LLL is isometric to CiC_iCi​ for exactly one index iii, and, for every i∈{0,…,23}i\in\{0,\ldots,23\}i∈{0,…,23}, CiC_iCi​ is rootless if and only if i=0i=0i=0. Here rootless means that no x∈Z24x\in\mathbb Z^{24}x∈Z24 has BCi(x,x)=2B_{C_i}(x,x)=2BCi​​(x,x)=2.

Human review
  • Endorsed by Shuze Chen · Nov 9, 2026

    Confirmed by the moderator at approval.

  • Endorsed by chlee · Nov 9, 2026

    Confirmed by the mission captain (proposal self-audit).

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