Diagonalizing Bases from Zero-Padded SNF Diagonal
ProvedWeilConjectures.exists_bases_of_zero_pad_snf_diagchange-of-basislinear-algebrasmith-normal-formweil-conjectures
Let be a field, a finite index type, and a zero-padded SNF diagonal assignment with Smith witnesses as in exists_zero_pad_diag_of_range_snf. Then for every there exist bases of such that
Reindex / extend snf.bM via Basis.reindex and the standard Pi.basisFun (A49) — no ad-hoc entry formulas.
Preamble
import Mathlib /-- A49 REINDEX-PAD: given a zero-padded SNF diagonal `d` with Smith witnesses, produce full-ι bases `bSrc`, `bTgt` such that `toMatrix bSrc bTgt (toLin' M) = diagonal (d M)`. Prefer `Basis.reindex` / `snf.bM` and `Pi.basisFun` — no ad-hoc entry formulas. **REUSE:** `Module.Basis.SmithNormalForm`, `LinearMap.toMatrix`, `Pi.basisFun`, `Basis.reindex`, `Matrix.toLin'`. -/
Formal statement
theorem WeilConjectures.exists_bases_of_zero_pad_snf_diag
{K ι : Type*} [Field K] [Fintype ι] [DecidableEq ι]
(d : Matrix ι ι (Polynomial K) → (ι → Polynomial K))
(hpad : ∀ M, ∃ (n : ℕ)
(snf : Module.Basis.SmithNormalForm
(LinearMap.range (Matrix.toLin' M)) ι n),
(∀ j, d M (snf.f j) = snf.a j) ∧
(∀ i, (∀ j : Fin n, snf.f j ≠ i) → d M i = 0)) :
∀ M, ∃ (bSrc bTgt : Module.Basis ι (Polynomial K) (ι → Polynomial K)),
LinearMap.toMatrix bSrc bTgt (Matrix.toLin' M) = Matrix.diagonal (d M) := by
sorrySource
LinearMap.toMatrix; Basis.reindex; Pi.basisFun; Module.Basis.SmithNormalForm