RH Lean Explorer Sernau readable · Comparator passedChecked

Readable edition · 803 Lean files

Hermite forms over valuation pairs and integral matrices over valued fields

Lib.General.LinearAlgebra.HermiteForm.lean

Open interactive viewer Raw Lean source · Pinned source

Reading

Upstream documentation written by Claude

We reduce the columns and rows of matrices over a ring A by invertible matrices over a subring R, under the hypothesis New.IsValuationPair. It says that any two elements a, b of A are R-multiples of a - e * (a - b) for some idempotent e of R. It holds for a valuation domain A with R = ⊤. 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

Rest of upstream introduction

Main definitions and results

  • New.IsValuationPair.hermite: Hermite form y = U_ι * D with U ∈ GL_n(R), D block 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: g lies in New.intGL n 𝒪[F] (the image of GL n 𝒪[F] in GL n F) iff its entries are integral and v (det g) = 1.

Notions from other files:

  • New.intGL n R: the subgroup GL_n(R) of GL_n(A) of matrices that have their entries and those of their inverse in the subring R.
  • New.transvectionGL: for distinct indices i, j and a in A, the element 1 + aE_{ij} of GL_n(A), with inverse 1 − aE_{ij}.
  • New.IsPrimitiveMatrix R X: X has entries in R and a left inverse with entries in R.

Relation to the literature

The property New.IsValuationPair and the Smith normal form are in Lib.General.LinearAlgebra.IntegralLattices.

Pinned source lines

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)

X Reddit Email LinkedIn