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.NumberTheory.PadicHodge.IntegralComparison.Ext.ModuleFunctor |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Ext.DimensionShift |
| 3 | |
| 4 | /-! # Ext Source -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.Crystalline.Cohomology.ExtSource.ExtSourceSections |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! # Changing the source of the original Ext section functor -/ |
| 11 | |
| 12 | open _root_.CategoryTheory |
| 13 | |
| 14 | open _root_.CategoryTheory.Abelian |
| 15 | |
| 16 | universe u v z t |
| 17 | |
| 18 | variable {C : Type u} [Category.{v} C] [Abelian C] [HasExt.{z} C] |
| 19 | (R : Type t) [CommRing R] [Linear R C] {X X' : C} (u : X' ⟶ X) |
| 20 | |
| 21 | def transformation (n : ℕ) : NumberTheory.PadicHodge.IntegralComparison.Ext.ModuleFunctor.functor R X n ⟶ NumberTheory.PadicHodge.IntegralComparison.Ext.ModuleFunctor.functor R X' n where |
| 22 | app Z := ModuleCat.ofHom ((Ext.mk₀ u).precompOfLinear R Z (zero_add n)) |
| 23 | naturality {Y Z} f := by |
| 24 | apply ModuleCat.hom_ext |
| 25 | apply LinearMap.ext |
| 26 | intro α |
| 27 | change Ext.{z} X Y n at α |
| 28 | change (Ext.mk₀ u).comp (α.comp (Ext.mk₀ f) (add_zero n)) (zero_add n) = |
| 29 | ((Ext.mk₀ u).comp α (zero_add n)).comp (Ext.mk₀ f) (add_zero n) |
| 30 | exact (Ext.comp_assoc_of_third_deg_zero _ _ _ (zero_add n)).symm |
| 31 | |
| 32 | def complexMap (K : CochainComplex C ℕ) : |
| 33 | ((NumberTheory.PadicHodge.IntegralComparison.Ext.ModuleFunctor.functor R X 0).mapHomologicalComplex (.up ℕ)).obj K ⟶ |
| 34 | ((NumberTheory.PadicHodge.IntegralComparison.Ext.ModuleFunctor.functor R X' 0).mapHomologicalComplex (.up ℕ)).obj K := |
| 35 | (NatTrans.mapHomologicalComplex (transformation R u 0) (.up ℕ)).app K |
| 36 | |
| 37 | omit [Linear R C] in |
| 38 | theorem connecting {S : ShortComplex C} (hS : S.ShortExact) (n : ℕ) (α : Ext.{z} X S.X₃ n) : |
| 39 | NumberTheory.PadicHodge.IntegralComparison.Ext.DimensionShift.connecting X' hS n ((Ext.mk₀ u).precomp S.X₃ (zero_add n) α) = |
| 40 | (Ext.mk₀ u).precomp S.X₁ (zero_add (n + 1)) (NumberTheory.PadicHodge.IntegralComparison.Ext.DimensionShift.connecting X hS n α) := by |
| 41 | change ((Ext.mk₀ u).comp α (zero_add n)).comp hS.extClass rfl = |
| 42 | (Ext.mk₀ u).comp (α.comp hS.extClass rfl) (zero_add (n + 1)) |
| 43 | exact Ext.comp_assoc _ _ _ (zero_add n) rfl (by omega) |
| 44 | |
| 45 | end |
| 46 | |
| 47 | end OAI.AlgebraicGeometry.Crystalline.Cohomology.ExtSource.ExtSourceSections |