Hodge conjecture: the CM case in Lean, read and discussed
OpenAI's Lean proof of the Hodge conjecture for CM abelian varieties: rerun it, read its statement, and keep the open questions with their sources. The conjecture is open

| 1 | import OAI.Algebra.Modules.ElementaryDivisorsExistenceLinear |
| 2 | import Lean.Util.CollectAxioms |
| 3 | |
| 4 | /-! # Elementary Divisors -/ |
| 5 | |
| 6 | namespace OAI.Algebra.Modules.ElementaryDivisors |
| 7 | |
| 8 | /-! |
| 9 | # ElementaryDivisors: elementary divisors for DVR lattices |
| 10 | |
| 11 | These four proved declarations reproduce the types in Statements/ElementaryDivisors.lean. |
| 12 | The proof uses Mathlib's PID diagonalization, denominator clearing, and a |
| 13 | unit permutation term in the determinant to prove uniqueness. The matrix |
| 14 | statements then follow by changing integral bases. No statement stub is imported. |
| 15 | -/ |
| 16 | |
| 17 | open scoped BigOperators |
| 18 | |
| 19 | variable {R K : Type*} |
| 20 | [CommRing R] [hDomain : IsDomain R] [hDVR : IsDiscreteValuationRing R] |
| 21 | [Field K] [Algebra R K] [hFraction : IsFractionRing R K] |
| 22 | |
| 23 | /-- Simultaneous elementary-divisor form for two full lattices. -/ |
| 24 | theorem lattices_elementary_divisors |
| 25 | {n : ℕ} (π : R) (hπ : Irreducible π) |
| 26 | (L M : Submodule R (Fin n → K)) |
| 27 | [Submodule.IsLattice K L] [Submodule.IsLattice K M] : |
| 28 | ∃! a : Fin n → ℤ, |
| 29 | Monotone a ∧ |
| 30 | ∃ e : Module.Basis (Fin n) K (Fin n → K), |
| 31 | L = Submodule.span R (Set.range fun i => e i) ∧ |
| 32 | M = Submodule.span R |
| 33 | (Set.range fun i => |
| 34 | (algebraMap R K π) ^ (a i) • e i) := by |
| 35 | exact ElementaryDivisorsExistenceLinear.Construction.lattices_elementary_divisors π hπ L M |
| 36 | |
| 37 | /-- Unique ordered representatives for integral GL₃ double cosets. -/ |
| 38 | theorem gl3_smith_normal_form |
| 39 | (π : R) (hπ : Irreducible π) |
| 40 | (g : Matrix.GeneralLinearGroup (Fin 3) K) : |
| 41 | ∃! a : Fin 3 → ℤ, |
| 42 | Monotone a ∧ |
| 43 | ∃ U V : Matrix.GeneralLinearGroup (Fin 3) R, |
| 44 | g.val = |
| 45 | U.val.map (algebraMap R K) * |
| 46 | Matrix.diagonal (fun i => (algebraMap R K π) ^ (a i)) * |
| 47 | V.val.map (algebraMap R K) := by |
| 48 | exact ElementaryDivisorsExistenceLinear.Construction.gl3_smith_normal_form π hπ g |
| 49 | |
| 50 | /-- A unit determinant can be adjusted to one by an integral |
| 51 | basis change, preserving the lattice spanned by the columns. -/ |
| 52 | theorem gl3_determinant_unit_adjustment |
| 53 | {R K : Type*} [CommRing R] [IsDomain R] [IsDiscreteValuationRing R] |
| 54 | [Field K] [Algebra R K] [IsFractionRing R K] |
| 55 | (g : Matrix.GeneralLinearGroup (Fin 3) K) |
| 56 | (hdet : ∃ u : Rˣ, |
| 57 | g.val.det = algebraMap R K (u : R)) : |
| 58 | ∃ U : Matrix.GeneralLinearGroup (Fin 3) R, |
| 59 | (g.val * U.val.map (algebraMap R K)).det = 1 := by |
| 60 | exact ElementaryDivisorsExistenceLinear.Construction.gl3_determinant_unit_adjustment g hdet |
| 61 | |
| 62 | /-- Integral SL₃ double cosets have unique ordered exponent triples |
| 63 | whose sum is zero. -/ |
| 64 | theorem sl3_smith_normal_form |
| 65 | (π : R) (hπ : Irreducible π) |
| 66 | (g : Matrix.SpecialLinearGroup (Fin 3) K) : |
| 67 | ∃! a : Fin 3 → ℤ, |
| 68 | Monotone a ∧ |
| 69 | (∑ i, a i) = 0 ∧ |
| 70 | ∃ U V : Matrix.SpecialLinearGroup (Fin 3) R, |
| 71 | (g : Matrix (Fin 3) (Fin 3) K) = |
| 72 | (U : Matrix (Fin 3) (Fin 3) R).map (algebraMap R K) * |
| 73 | Matrix.diagonal (fun i => (algebraMap R K π) ^ (a i)) * |
| 74 | (V : Matrix (Fin 3) (Fin 3) R).map (algebraMap R K) := by |
| 75 | exact ElementaryDivisorsExistenceLinear.Construction.sl3_smith_normal_form π hπ g |
| 76 | |
| 77 | end OAI.Algebra.Modules.ElementaryDivisors |