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 Mathlib.LinearAlgebra.Dimension.Localization |
| 2 | import Mathlib.LinearAlgebra.Dimension.Torsion.Finite |
| 3 | import Mathlib.LinearAlgebra.FreeModule.StrongRankCondition |
| 4 | |
| 5 | /-! # Free Submodule -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Generic.FreeSubmodule |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Every finite module over a domain contains a finite free submodule |
| 12 | of full rank with a single nonzero scalar annihilating the quotient. -/ |
| 13 | |
| 14 | open _root_.Module |
| 15 | |
| 16 | universe u v |
| 17 | |
| 18 | theorem exists_submodule (R : Type u) [CommRing R] [IsDomain R] |
| 19 | (M : Type v) [AddCommGroup M] [Module R M] [Module.Finite R M] : |
| 20 | ∃ N : Submodule R M, Module.Free R N ∧ Module.Finite R N ∧ |
| 21 | Module.finrank R N = Module.finrank R M ∧ |
| 22 | ∃ r : R, r ≠ 0 ∧ ∀ x : M ⧸ N, r • x = 0 := by |
| 23 | obtain ⟨v, hv⟩ := exists_linearIndependent_of_le_finrank (R := R) (M := M) (le_refl (Module.finrank R M)) |
| 24 | let N := Submodule.span R (Set.range v) |
| 25 | let b := Basis.span hv |
| 26 | let : Module.Free R N := Module.Free.of_basis b |
| 27 | let : Module.Finite R N := Module.Finite.of_basis b |
| 28 | have hn : Module.finrank R N = Module.finrank R M := by |
| 29 | simpa using Module.finrank_eq_card_basis b |
| 30 | have hq : Module.finrank R (M ⧸ N) = 0 := by |
| 31 | have h := N.finrank_quotient_add_finrank |
| 32 | rw [hn] at h |
| 33 | omega |
| 34 | have ht : Module.IsTorsion R (M ⧸ N) := Module.finrank_eq_zero_iff_isTorsion.mp hq |
| 35 | obtain ⟨r, hr, hr0⟩ := Submodule.annihilator_top_inter_nonZeroDivisors ht |
| 36 | exact ⟨N, inferInstance, inferInstance, hn, r, nonZeroDivisors.ne_zero hr0, |
| 37 | fun x => (Submodule.mem_annihilator.mp hr) x (Submodule.mem_top)⟩ |
| 38 | |
| 39 | end |
| 40 | |
| 41 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Generic.FreeSubmodule |