A matrix of relations with small block determinant valuation
Lib.General.Algebra.BlockFittingBound.lean
Reading
Upstream documentation written by Claude
Linear algebra over a discrete valuation ring O (written
DVR O) with normalized valuation v =addVal Oand fraction field K. The valuation of a determinant of relations is bounded by the length of a module of solutions, taken modulo an element p or in K/O.
New.Selmer.exists_rows_addVal_det_le: let ψ : A → M_d(O) be onto, N an A-submodule of A^ι, p ≠ 0 and b < v(p). If the vectors modulo p killed by ψ(N) lie in a module of length at most b, then some square matrix B with rows in N has v(det ψ(B)) ≤ b, with ψ(B) read as a block matrix.
Copyright 2026 Anthropic, PBC. Apache License 2.0 · Upstream notice.
Rest of upstream introduction
New.Selmer.divQuot: the map x ↦ x/p from O/p to K/O (New.Selmer.DivisibleQuot). For p ≠ 0 it is injective with image the p-torsion.New.Selmer.exists_rows_addVal_det_le_of_divisible: the same bound when the vectors with entries in K/O killed by ψ(N) lie in a module of length at most b. It follows from the form modulo p and is the form that Ribet's lemma uses.
The idea: as ψ is onto, any d linear forms in the span of the rows of the ψ(t), t ∈ N, are the rows
of one ψ(t). So a basis of this span, divided into groups of d forms, gives B. The length of the
solutions bounds the determinant of such a basis by the duality lemma
New.exists_matrix_addVal_det_le_length for lattices in O^n.
Relation to the literature
General linear algebra over a discrete valuation ring (elementary divisors).
Declarations
lemma exists_rows_addVal_det_le_of_divisible {ι A d : Type} [Fintype ι] [DecidableEq ι] [Ring A] [Algebra O A] [Fintype d] [DecidableEq d] (ψ : A →ₐ[O] Matrix d d O) (hψ : Function.Surjective ψ) (N : Submodule A (ι → A)) {b : ℕ} {Z : Submodule O (ι → d → DivisibleQuot O)} (hZ : length O Z ≤ b) (hZ_mem : ∀ w : ι → d → DivisibleQuot O, (∀ t ∈ N, ∑ j : ι, ψ (t j) • w j = 0) → w ∈ Z) : ∃ B : Matrix ι ι A, (∀ i : ι, B i ∈ N) ∧ addVal O (Matrix.comp ι ι d d O (B.map ψ)).det ≤ b
Import route to Main
Lib.General.Algebra.BlockFittingBound → New.Congruences.FirstOrder.FittingBlock (pinned import) → New.Congruences.FirstOrder.AuxiliaryPrimeTie (pinned import) → New.Congruences.FirstOrder.DenominatorBound (pinned import) → New.Congruences.FitTwistsExist (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)