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.Abelian.Injective.Ext |
| 2 | import Mathlib.CategoryTheory.Preadditive.AdditiveFunctor |
| 3 | import Mathlib.CategoryTheory.Limits.Preserves.Shapes.Products |
| 4 | import Mathlib.Algebra.Category.Grp.Zero |
| 5 | |
| 6 | /-! # Ext Vanishing -/ |
| 7 | |
| 8 | namespace OAI.NumberTheory.PadicHodge.GeometricComparison.Finite.ExtVanishing.FiniteExtVanishing |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! Finite products and coproducts preserve coefficient Ext vanishing. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory Abelian Limits Opposite |
| 15 | |
| 16 | universe u v w z |
| 17 | |
| 18 | variable {C : Type u} [Category.{v} C] [Abelian C] [HasExt.{w} C] |
| 19 | (A : C) {ι : Type z} [Finite ι] (F : ι → C) (n : ℕ) |
| 20 | |
| 21 | theorem product [HasProduct F] (hF : ∀ i, Subsingleton (Ext.{w} A (F i) n)) : |
| 22 | Subsingleton (Ext.{w} A (∏ᶜ F) n) := by |
| 23 | let H := (extFunctor.{w} n : Cᵒᵖ ⥤ C ⥤ AddCommGrpCat.{w}).obj (op A) |
| 24 | have : H.Additive := inferInstanceAs (extFunctorObj A n).Additive |
| 25 | have hzero (i : ι) : IsZero (H.obj (F i)) := by |
| 26 | have : Subsingleton (H.obj (F i)) := hF i |
| 27 | exact AddCommGrpCat.isZero_of_subsingleton _ |
| 28 | have hprod : IsZero (∏ᶜ fun i => H.obj (F i)) := by |
| 29 | apply (IsZero.iff_id_eq_zero _).mpr |
| 30 | apply Pi.hom_ext |
| 31 | intro i |
| 32 | exact (hzero i).eq_of_tgt _ _ |
| 33 | exact AddCommGrpCat.subsingleton_of_isZero (hprod.of_iso (PreservesProduct.iso H F)) |
| 34 | |
| 35 | theorem coproduct [HasCoproduct F] (hF : ∀ i, Subsingleton (Ext.{w} A (F i) n)) : |
| 36 | Subsingleton (Ext.{w} A (∐ F) n) := by |
| 37 | let H := (extFunctor.{w} n : Cᵒᵖ ⥤ C ⥤ AddCommGrpCat.{w}).obj (op A) |
| 38 | have : H.Additive := inferInstanceAs (extFunctorObj A n).Additive |
| 39 | have hzero (i : ι) : IsZero (H.obj (F i)) := by |
| 40 | have : Subsingleton (H.obj (F i)) := hF i |
| 41 | exact AddCommGrpCat.isZero_of_subsingleton _ |
| 42 | have hsum : IsZero (∐ fun i => H.obj (F i)) := by |
| 43 | apply (IsZero.iff_id_eq_zero _).mpr |
| 44 | apply Sigma.hom_ext |
| 45 | intro i |
| 46 | exact (hzero i).eq_of_src _ _ |
| 47 | exact AddCommGrpCat.subsingleton_of_isZero (hsum.of_iso (PreservesCoproduct.iso H F)) |
| 48 | |
| 49 | end |
| 50 | |
| 51 | end OAI.NumberTheory.PadicHodge.GeometricComparison.Finite.ExtVanishing.FiniteExtVanishing |