Colength of modules, and endomorphisms surjective up to a bounded colength
New.Reduction.Lattices.Colength.lean
Reading
Upstream documentation written by Claude
A substitute for the colength of one module in another, and the bookkeeping of such colengths under images, preimages, sums of submodules and products of endomorphisms.
New.ColengthDvd: every finite family inMis carried intoNby a square matrix whose determinant dividesz; read it as "the colength ofNinMdividesz" or, over a valuation ring, "Nhas colength at mostv(z)inM".N ≤ Mis not required.
Copyright 2026 Anthropic, PBC. Apache License 2.0 · Upstream notice.
Rest of upstream introduction
New.ColengthDvd.comap,New.ColengthDvd.map,New.ColengthDvd.trans,New.ColengthDvd.comp: it passes along linear maps, and the bounds multiply along chains and compositions.New.IsOntoUpToColength,New.IsOntoUpToColength.prod: endomorphisms that keepMand are onto modulop ^ nup to a colength dividingp ^ lwithl ≤ c; the boundscadd under products.New.ColengthDvd.of_det_dvd: over a valuation domain the image of a square matrixAhas colength dividing every multiple ofdet A, by the Smith normal form.New.ColengthDvd.relLength_le,New.IsOntoUpToColength.exists_relLength_le: over a discrete valuation ringNew.ColengthDvdbounds a length.
Declarations
lemma IsOntoUpToColength.exists_relLength_le [IsDomain O] [IsDiscreteValuationRing O] {p : O} {n : ℕ} {y : End O V} {c : ℝ} (h_onto : IsOntoUpToColength p M n y c) (hM : M.FG) : ∃ l : ℕ, l ≤ c ∧ relLength M (M.map y ⊔ p ^ n • M) ≤ l * length O (O ⧸ Ideal.span {p})
Import route to Main
New.Reduction.Lattices.Colength → 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)