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.CategoryTheory.Triangulated.Pretriangulated |
| 2 | import Mathlib.CategoryTheory.Linear.Basic |
| 3 | import Mathlib.LinearAlgebra.Quotient.Basic |
| 4 | |
| 5 | /-! # Triangle Saturated -/ |
| 6 | |
| 7 | namespace OAI.NumberTheory.PadicHodge.GeometricComparison.TriangleSaturated.TriangleSaturatedImage |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! A torsion-free third Hom group makes the first image in a distinguished triangle saturated. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.CategoryTheory.Pretriangulated |
| 14 | |
| 15 | universe u v |
| 16 | |
| 17 | variable (R : Type*) [CommRing R] [IsDomain R] {C : Type u} [Category.{v} C] |
| 18 | [Preadditive C] [HasZeroObject C] [HasShift C ℤ] |
| 19 | [∀ n : ℤ, (shiftFunctor C n).Additive] [Pretriangulated C] [Linear R C] |
| 20 | |
| 21 | theorem quotient_torsionFree (T : Triangle C) (hT : T ∈ distTriang C) (A : C) |
| 22 | [Module.IsTorsionFree R (A ⟶ T.obj₃)] : |
| 23 | Module.IsTorsionFree R ((A ⟶ T.obj₂) ⧸ (Linear.rightComp R A T.mor₁).range) := by |
| 24 | let P := (Linear.rightComp R A T.mor₁).range |
| 25 | apply Module.IsTorsionFree.of_smul_eq_zero |
| 26 | intro r x hx |
| 27 | by_cases hr : r = 0 |
| 28 | · exact Or.inl hr |
| 29 | right |
| 30 | obtain ⟨m, rfl⟩ := P.mkQ_surjective x |
| 31 | apply (Submodule.Quotient.mk_eq_zero P).mpr |
| 32 | have hm : r • m ∈ P := (Submodule.Quotient.mk_eq_zero P).mp |
| 33 | (show P.mkQ (r • m) = 0 by simpa only [map_smul] using hx) |
| 34 | obtain ⟨a, ha⟩ := hm |
| 35 | have hz : r • (m ≫ T.mor₂) = 0 := by |
| 36 | rw [← Linear.smul_comp, ← ha] |
| 37 | change (a ≫ T.mor₁) ≫ T.mor₂ = 0 |
| 38 | rw [Category.assoc, comp_distTriang_mor_zero₁₂ T hT, comp_zero] |
| 39 | have hmzero : m ≫ T.mor₂ = 0 := (smul_eq_zero.mp hz).resolve_left hr |
| 40 | obtain ⟨a, ha⟩ := T.coyoneda_exact₂ hT m hmzero |
| 41 | exact ⟨a, ha.symm⟩ |
| 42 | |
| 43 | end |
| 44 | |
| 45 | end OAI.NumberTheory.PadicHodge.GeometricComparison.TriangleSaturated.TriangleSaturatedImage |