RH Lean Explorer Sernau readable · Comparator passedChecked

Readable edition · 803 Lean files

Integral matrices over subrings: Smith normal form, Gelfand's condition and lattices

Lib.General.LinearAlgebra.IntegralLattices.lean

Open interactive viewer Raw Lean source · Pinned source

Reading

Upstream documentation written by Claude

This file studies matrices over a commutative ring A that are integral with respect to a subring R. The model is the ring of integral adeles inside the finite adeles. New.IsIntMatrix R M says that all entries of M lie in R. The property New.IsValuationPair R says that of two elements of A one divides the other over R, piece by piece along an idempotent of R. 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

Rest of upstream introduction

Main definitions and results

  • New.IsValuationPair.smith_normal_form: a square matrix over A is diagonalized by row and column operations over a subring R that satisfies New.IsValuationPair.
  • New.exists_invTransposeGL_inv_eq: for such a subring O of R, gᵀ lies in the double coset GL n O * g * GL n O.
  • New.IsHeckeFunction.heckeFun_adjoint, New.IsHeckeFunction.heckeFun_comm: adjoints and commutativity of Hecke operators for K = GL n O, with O a valuation subring of a field.
  • New.submoduleIndex, New.denomIndex: the relative index of two R-modules, and the index of the denominator of a. An infinite index is read as 0.
  • New.colLattice, New.preimageLattice: the span of the columns of M, and the vectors M makes integral.
  • New.unitaryLevel: the principal congruence subgroup of the unitary group New.U J.

Notions from other files:

  • New.intGL n O: for a subring O of R, the subgroup of GL n R of matrices that have, together with their inverse, all entries in O.
  • New.U J: the unitary group of J, the g in GL n R with gᴴ * J * g = J.
  • New.heckeFun π K f: the operator ∑ f g • π g, summed over chosen representatives g of G ⧸ K (zero if infinitely many terms are nonzero).
  • New.IsHeckeFunction K f: f is left and right K-invariant and supported on finitely many cosets g K.
  • New.levelSpace π K: the vectors of the representation π that are fixed by K.

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).

Pinned source lines

Declarations

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)

X Reddit Email LinkedIn