Hermite forms over valuation pairs and integral matrices over valued fields
Lib.General.LinearAlgebra.HermiteForm.lean
Reading
Upstream documentation written by Claude
We reduce the columns and rows of matrices over a ring
Aby invertible matrices over a subringR, under the hypothesisNew.IsValuationPair. It says that any two elementsa, bofAareR-multiples ofa - e * (a - b)for some idempotenteofR. It holds for a valuation domainAwithR = ⊤. For a field with a valuation intoℤᵐ⁰, we bound the entries of matrix products and give a determinant test for integral invertible matrices.
Copyright 2026 Anthropic, PBC. Apache License 2.0 · Upstream notice.
Rest of upstream introduction
Main definitions and results
New.IsValuationPair.hermite: Hermite formy = U_ι * DwithU ∈ GL_n(R),Dblock triangular.New.IsValuationPair.exists_isPrimitiveMatrix_mul: a matrix with a left inverse becomes primitive (New.IsPrimitiveMatrix) after multiplication by an invertible block triangular matrix.New.IsValuationPair.exists_mul_clear_cols: the transposed form, clearing the columns outside the image ofι.New.mem_intGL_iff_det:glies inNew.intGL n 𝒪[F](the image ofGL n 𝒪[F]inGL n F) iff its entries are integral andv (det g) = 1.
Notions from other files:
New.intGL n R: the subgroupGL_n(R)ofGL_n(A)of matrices that have their entries and those of their inverse in the subringR.New.transvectionGL: for distinct indicesi, jandainA, the element1 + aE_{ij}ofGL_n(A), with inverse1 − aE_{ij}.New.IsPrimitiveMatrix R X:Xhas entries inRand a left inverse with entries inR.
Relation to the literature
The property New.IsValuationPair and the Smith normal form are in
Lib.General.LinearAlgebra.IntegralLattices.
Declarations
lemma New.mem_intGL_iff_det {n F : Type*} [Field F] [Valued F ℤᵐ⁰] [Fintype n] [DecidableEq n] {g : GL n F} : g ∈ intGL n 𝒪[F] ↔ (∀ a b : n, v (g a b) ≤ 1) ∧ v g.val.det = 1
Import route to Main
Lib.General.LinearAlgebra.HermiteForm → Lib.General.Algebra.FittingIdealsAndLengths (pinned import) → New.Reduction.Lattices.Colength (pinned import) → New.Reduction.Lattices.TwistedLattice (pinned import) → New.Reduction.IntegralTargetForms (pinned import) → New.Determinant.Twist.LongForms (pinned import) → New.Reduction.MainInequality (pinned import) → New.Reduction.OneSidedBound (pinned import) → New.Main (pinned import) → Main (pinned import)