Gram determinants of integral lattices #
This file attaches an integral Gram matrix to every basis of an integral lattice. Its determinant
is independent of the carrier basis: an integral change-of-basis matrix has determinant 1 or
-1, and the Gram matrix changes by multiplication by that matrix and its transpose. The resulting
basis-free signed determinant and its absolute value are the determinant and discriminant of the
lattice. An integral-lattice isometry carries every carrier basis to one with the same Gram matrix,
so it preserves both basis-free invariants.
The rational scalar extension of a Gram matrix is the matrix of the ambient rational bilinear form in the extended basis. Consequently the signed determinant is nonzero exactly when that form is nondegenerate. This is the determinant criterion needed before constructing the finite discriminant group.
Main definitions #
TauCeti.IntegralLattice.gramMatrix: the integral matrix of the restricted form in a carrier basis.TauCeti.IntegralLattice.gramDet: its signed determinant.TauCeti.IntegralLattice.determinant: the basis-independent signed determinant.TauCeti.IntegralLattice.discriminant: the nonnegative absolute determinant.TauCeti.IntegralLattice.determinantUnit: the signed determinant of a nondegenerate lattice as a nonzero rational number.
Main results #
TauCeti.IntegralLattice.gramDet_eq_gramDet: Gram determinants agree in any two bases.TauCeti.IntegralLattice.gramDet_ne_zero_iff: a Gram determinant is nonzero exactly when the ambient form is nondegenerate.TauCeti.IntegralLattice.nondegenerate_integralForm_iff: the integral form on the carrier is nondegenerate exactly when the ambient form is.TauCeti.IntegralLattice.gramMatrix_ofGramMatrix: the Gram matrix ofofGramMatrixin its canonical basis isG.TauCeti.IntegralLattice.determinant_ofGramMatrix: the signed determinant ofofGramMatrixis the determinant ofG.TauCeti.IntegralLattice.isNondegenerate_ofGramMatrix: a nonsingular Gram matrix produces a nondegenerate integral lattice.TauCeti.IntegralLattice.discriminant_ofGramMatrix: the discriminant ofofGramMatrixis the absolute determinant ofG.TauCeti.IntegralLattice.Isometry.determinant_eqandIsometry.discriminant_eq: isometry invariance of the basis-free invariants.TauCeti.IntegralLattice.Isometry.ofGramMatrixEq: lattices with bases of equal Gram matrices are isometric.
References #
- W. Ebeling, Lattices and Codes, Chapter 1.
TauCetiRoadmap/IntegralLattices/README.md, Layer 1.
The integral Gram matrix of a carrier basis.
Equations
- L.gramMatrix e = (LinearMap.BilinForm.toMatrixAux ⇑e) L.integralForm
Instances For
A Gram-matrix entry is the value of the integral form on the corresponding basis vectors.
The Gram matrix is Mathlib's matrix of the restricted integral bilinear form.
Casting a Gram-matrix entry to ℚ recovers the ambient rational form.
The Gram matrix of a symmetric integral lattice is symmetric.
Extending the carrier basis and the entries of its Gram matrix to ℚ gives the matrix of the
ambient rational form.
The signed determinant of the Gram matrix in a carrier basis.
Equations
- L.gramDet e = (L.gramMatrix e).det
Instances For
Unfolding the signed Gram determinant to the matrix determinant.
Casting the signed Gram determinant to ℚ gives the determinant of the ambient rational form
in the extended basis.
Reindexing a carrier basis simultaneously reindexes the rows and columns of its Gram matrix.
Reindexing a carrier basis does not change its signed Gram determinant.
The signed Gram determinant is independent of the carrier basis. This permits both the index type and the basis to change.
A Gram determinant is nonzero exactly when the ambient rational form is nondegenerate.
The Gram matrix of ofGramMatrix b G hG in its canonical carrier basis is G.
The signed Gram determinant of ofGramMatrix b G hG in its canonical carrier basis is the
determinant of G.
The basis-independent signed determinant of an integral lattice.
Equations
- L.determinant = L.gramDet (Module.Free.chooseBasis ℤ ↥L.carrier)
Instances For
The signed determinant agrees with the determinant of the Gram matrix in every carrier basis.
The basis-independent signed determinant of ofGramMatrix b G hG is the determinant of G.
The basis-independent determinant is nonzero exactly when the ambient rational form is nondegenerate.
The signed Gram determinant of a nondegenerate integral lattice, regarded as a nonzero rational number.
Equations
- L.determinantUnit = Units.mk0 ↑L.determinant ⋯
Instances For
The value underlying determinantUnit is the integral Gram determinant cast to ℚ.
The integral form on the carrier is nondegenerate exactly when the ambient rational form is.
An integral lattice constructed from a nonsingular Gram matrix is nondegenerate.
The nonnegative discriminant of an integral lattice is the absolute value of its signed determinant.
Equations
Instances For
Unfolding the discriminant to the absolute value of the signed determinant.
The discriminant is the absolute value of the Gram determinant in every carrier basis.
The discriminant of ofGramMatrix b G hG is the absolute value of the determinant of G.
The discriminant is positive exactly when the ambient rational form is nondegenerate.
Transporting a carrier basis along an isometry preserves its Gram matrix entrywise.
Transporting a carrier basis along an isometry preserves its signed Gram determinant.
The basis-independent signed determinant is invariant under integral-lattice isometry.
The nonnegative discriminant is invariant under integral-lattice isometry.
Lattices with bases of equal Gram matrices are isometric. The isometry carries the i-th
vector of the first basis to the i-th vector of the second; this is the converse of
TauCeti.IntegralLattice.Isometry.gramMatrix_carrierBasisEquiv.
Equations
Instances For
The isometry ofGramMatrixEq b b' h carries each vector of b to the corresponding vector
of b'.