Rows and columns of integral matrices, primitive matrices and the law of partners
Lib.General.LinearAlgebra.PartnerAlgebra.lean
Reading
Upstream documentation written by Claude
This file develops linear algebra over a subring
Oof a commutative ringR, for the local computations with partner functions. The index setnis split bye : b ⊕ a ≃ n. Fork ∈ GL n R,New.firstCols e kis the matrix of the columnsbofk, andNew.invLastRows e k,New.invFirstRows e kare the matrices of the rowsaandbofk⁻¹.
Copyright 2026 Anthropic, PBC. Apache License 2.0 · Upstream notice.
Rest of upstream introduction
Main definitions and results
New.AreMatched: two functionsΦ,Ψsupported on the blocksNew.invLastRows e kandNew.firstCols e kofk ∈ GL n O, whose values differ by the factorχ (det k).New.IsPrimitiveMatrix.mul_iff: for primitivey, the matrixy * xis primitive exactly ifxis primitive.New.exists_firstCols_eq_mul: multiplyingfirstCols e kby an element ofGL b OandinvLastRows e kby an element ofGL a Ogives the blocks of another element ofGL n O, whose determinant is computed.New.IsValuationPair.exists_firstCols_iff: ifNew.IsValuationPair Oholds, the primitive matrices are thefirstCols e kwithkinGL n O.New.AreMatched.lift_of_reduction: partners overRlift along a surjective local homomorphismO → R; hereOis a subring of another ringF.New.AreMatched.left_mul,New.AreMatched.right_mul: the transformation laws of two partner functions.
Notions from other files:
New.intGL n O: the groupGL n Oas a subgroup ofGL n R.New.IsPrimitiveMatrix O y: the matrixyand some left inverse of it have entries inO.New.HasLeftInv X: the matrixXhas a left inverse overR.New.liftIntegralFn π f: the function that isfat the image underπof a matrix overOand zero at every other matrix.New.IsValuationPair O: for allu,vinRthere is an idempotentεinOsuch thatuandvareO-multiples of(1 - ε) u + ε v.
Relation to the literature
Known; see Lib.SiegelWeil.Tower.LargeSideConstantTerm for sources.
Declarations
lemma right_mul (h : AreMatched O e χ Φ Ψ) (g : GL b R) (hg : g ∈ intGL b O) (y : Matrix n b R) : Ψ (y * g.val) * χ g.val.det = Ψ y
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)