Full-Index Diagonal Bases from Range Smith Form
ProvedWeilConjectures.exists_diag_bases_of_range_snfchange-of-basislinear-algebrasmith-normal-formweil-conjectures
Let be a field and a finite index type. Assume that for every the image admits a Smith normal form. Then there exists a diagonal assignment and, for each , bases of such that
This reindexes / zero-pads deficient-rank Smith data onto the full index type (A47), producing the coefficient package consumed by WeilConjectures.exists_snf_coeffs_of_poly_matrix.
Preamble
import Mathlib /-- A47 reindex-to-full-ι: from range-SNF existence, assemble a global diagonal assignment `d` and full-index bases `bSrc`, `bTgt` of `K[X]^ι` such that `toMatrix bSrc bTgt (toLin' M) = diagonal (d M)`. Pads deficient-rank Smith data with zeros / extends the embedding `f : Fin n ↪ ι` to a full reindexing; uses `Module.Basis` (A47) and `Pi.basisFun` as the standard reference — no ad-hoc entry formulas. **REUSE:** `Module.Basis.SmithNormalForm`, `LinearMap.toMatrix`, `Pi.basisFun`, `Basis.reindex`. -/
Formal statement
theorem WeilConjectures.exists_diag_bases_of_range_snf
{K ι : Type*} [Field K] [Fintype ι] [DecidableEq ι]
(hSNF : ∀ M : Matrix ι ι (Polynomial K),
∃ (n : ℕ),
Nonempty
(Module.Basis.SmithNormalForm
(LinearMap.range (Matrix.toLin' M)) ι n)) :
∃ (d : Matrix ι ι (Polynomial K) → (ι → Polynomial K)),
∀ M, ∃ (bSrc bTgt : Module.Basis ι (Polynomial K) (ι → Polynomial K)),
LinearMap.toMatrix bSrc bTgt (Matrix.toLin' M) = Matrix.diagonal (d M) := by
sorrySource
Module.Basis.SmithNormalForm reindexing; LinearMap.toMatrix; Pi.basisFun; Hoffman–Kunze, Linear Algebra, Ch. 6