RH Lean Explorer Sernau readable · Comparator passedChecked

Readable edition · 803 Lean files

Rows and columns of integral matrices, primitive matrices and the law of partners

Lib.General.LinearAlgebra.PartnerAlgebra.lean

Open interactive viewer Raw Lean source · Pinned source

Reading

Upstream documentation written by Claude

This file develops linear algebra over a subring O of a commutative ring R, for the local computations with partner functions. The index set n is split by e : b ⊕ a ≃ n. For k ∈ GL n R, New.firstCols e k is the matrix of the columns b of k, and New.invLastRows e k, New.invFirstRows e k are the matrices of the rows a and b of k⁻¹.

Copyright 2026 Anthropic, PBC. Apache License 2.0 · Upstream notice.

Rest of upstream introduction

Rest of upstream introduction

Main definitions and results

  • New.AreMatched: two functions Φ, Ψ supported on the blocks New.invLastRows e k and New.firstCols e k of k ∈ GL n O, whose values differ by the factor χ (det k).
  • New.IsPrimitiveMatrix.mul_iff: for primitive y, the matrix y * x is primitive exactly if x is primitive.
  • New.exists_firstCols_eq_mul: multiplying firstCols e k by an element of GL b O and invLastRows e k by an element of GL a O gives the blocks of another element of GL n O, whose determinant is computed.
  • New.IsValuationPair.exists_firstCols_iff: if New.IsValuationPair O holds, the primitive matrices are the firstCols e k with k in GL n O.
  • New.AreMatched.lift_of_reduction: partners over R lift along a surjective local homomorphism O → R; here O is a subring of another ring F.
  • New.AreMatched.left_mul, New.AreMatched.right_mul: the transformation laws of two partner functions.

Notions from other files:

  • New.intGL n O: the group GL n O as a subgroup of GL n R.
  • New.IsPrimitiveMatrix O y: the matrix y and some left inverse of it have entries in O.
  • New.HasLeftInv X: the matrix X has a left inverse over R.
  • New.liftIntegralFn π f: the function that is f at the image under π of a matrix over O and zero at every other matrix.
  • New.IsValuationPair O: for all u, v in R there is an idempotent ε in O such that u and v are O-multiples of (1 - ε) u + ε v.

Relation to the literature

Known; see Lib.SiegelWeil.Tower.LargeSideConstantTerm for sources.

Pinned source lines

Declarations

Import route to Main

Lib.General.LinearAlgebra.PartnerAlgebra → Lib.Adelic.Unitary.GramMatrix (pinned import) → Lib.Weil.Construction.WeilData (pinned import) → Lib.Adelic.Adeles.LocalFactors (pinned import) → Lib.Adelic.TraceFormula.TestFunction (pinned import) → Lib.Adelic.TraceFormula.CuspidalType (pinned import) → New.Spanning.Multiplicities.EqualMultiplicities (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