Integral matrices over subrings: Smith normal form, Gelfand's condition and lattices
Lib.General.LinearAlgebra.IntegralLattices.lean
Reading
Upstream documentation written by Claude
This file studies matrices over a commutative ring
Athat are integral with respect to a subringR. The model is the ring of integral adeles inside the finite adeles.New.IsIntMatrix R Msays that all entries ofMlie inR. The propertyNew.IsValuationPair Rsays that of two elements ofAone divides the other overR, piece by piece along an idempotent ofR. The file also defines column lattices and indices of lattices, and studies principal congruence subgroups of unitary groups.
Copyright 2026 Anthropic, PBC. Apache License 2.0 · Upstream notice.
Rest of upstream introduction
Main definitions and results
New.IsValuationPair.smith_normal_form: a square matrix overAis diagonalized by row and column operations over a subringRthat satisfiesNew.IsValuationPair.New.exists_invTransposeGL_inv_eq: for such a subringOofR,gᵀlies in the double cosetGL n O * g * GL n O.New.IsHeckeFunction.heckeFun_adjoint,New.IsHeckeFunction.heckeFun_comm: adjoints and commutativity of Hecke operators forK = GL n O, withOa valuation subring of a field.New.submoduleIndex,New.denomIndex: the relative index of twoR-modules, and the index of the denominator ofa. An infinite index is read as0.New.colLattice,New.preimageLattice: the span of the columns ofM, and the vectorsMmakes integral.New.unitaryLevel: the principal congruence subgroup of the unitary groupNew.U J.
Notions from other files:
New.intGL n O: for a subringOofR, the subgroup ofGL n Rof matrices that have, together with their inverse, all entries inO.New.U J: the unitary group ofJ, theginGL n Rwithgᴴ * J * g = J.New.heckeFun π K f: the operator∑ f g • π g, summed over chosen representativesgofG ⧸ K(zero if infinitely many terms are nonzero).New.IsHeckeFunction K f:fis left and rightK-invariant and supported on finitely many cosetsg K.New.levelSpace π K: the vectors of the representationπthat are fixed byK.
Relation to the literature
Known result: Commutativity of the spherical Hecke algebra of GL_n. This file proves the case that is used, by Gelfand's trick: over a valuation subring of a field the Hecke operators commute on fixed vectors of a representation. Source: J. Tits, Reductive groups over local fields, Corvallis 1979, 3.3.3; T. Tamagawa, On the zeta functions of a division algebra, Ann. Math. 77 (1963).
Part of a known result: the valuation pairs and integral matrices of this file are groundwork for
Witt's extension theorem for unimodular hermitian lattices and for the Iwasawa decomposition (see
Lib.Adelic.Witt.IwasawaDecomposition).
Declarations
lemma IsIntMatrix.one [DecidableEq n] : IsIntMatrix R (1 : Matrix n n A)
Import route to Main
Lib.General.LinearAlgebra.IntegralLattices → New.Spanning.SecondMoment.PositiveType (pinned import) → New.Spanning.SecondMoment.FewTranslates (pinned import) → New.Spanning.Unfolding.Moments (pinned import) → New.Spanning.SecondMoment.SpanningTheorem (pinned import) → New.Reduction.ShortAndEnough (pinned import) → New.Reduction.MainInequality (pinned import) → New.Reduction.OneSidedBound (pinned import) → New.Main (pinned import) → Main (pinned import)