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.Algebra.Homology.ShortComplex.HomologicalComplex |
| 2 | import OAI.AlgebraicGeometry.Crystalline.Cohomology.Cech.CochainLimits |
| 3 | import Mathlib.Algebra.Category.ModuleCat.AB |
| 4 | import Mathlib.Algebra.Homology.HomologicalComplexAbelian |
| 5 | import Mathlib.Algebra.Homology.ShortComplex.ExactFunctor |
| 6 | |
| 7 | /-! # Presheaf Exactness -/ |
| 8 | |
| 9 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Cech.PresheafExactness |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | /-! The actual module-presheaf Cech functor preserves homology. -/ |
| 14 | |
| 15 | open _root_.CategoryTheory Limits |
| 16 | |
| 17 | universe u v w |
| 18 | |
| 19 | variable (R : Type u) [CommRing R] {C : Type v} [Category.{w} C] |
| 20 | (E : SimplicialObject (FormalCoproduct.{u} C)) |
| 21 | |
| 22 | open OAI.AlgebraicGeometry.Crystalline.Cohomology.Cech.CochainLimits.CechCochainLimits |
| 23 | |
| 24 | instance productDegree_preservesFiniteColimits (n : ℕ) : |
| 25 | PreservesFiniteColimits (AlgebraicGeometry.Crystalline.Cohomology.Cech.CochainLimits.CechCochainLimits.productDegree (A := ModuleCat.{u} R) E n) where |
| 26 | preservesFiniteColimits J _ _ := by |
| 27 | dsimp [AlgebraicGeometry.Crystalline.Cohomology.Cech.CochainLimits.CechCochainLimits.productDegree] |
| 28 | infer_instance |
| 29 | |
| 30 | instance degree_preservesFiniteColimits (n : ℕ) : |
| 31 | PreservesFiniteColimits (FormalCoproduct.cochainComplexFunctor (A := ModuleCat.{u} R) E ⋙ |
| 32 | HomologicalComplex.eval _ (.up ℕ) n) := |
| 33 | preservesFiniteColimits_of_natIso (AlgebraicGeometry.Crystalline.Cohomology.Cech.CochainLimits.CechCochainLimits.degreeIso E n).symm |
| 34 | |
| 35 | instance preservesFiniteLimits : |
| 36 | PreservesFiniteLimits (FormalCoproduct.cochainComplexFunctor (A := ModuleCat.{u} R) E) where |
| 37 | preservesFiniteLimits _ _ _ := |
| 38 | HomologicalComplex.preservesLimitsOfShape_of_eval _ (fun _ => inferInstance) |
| 39 | |
| 40 | instance preservesFiniteColimits : |
| 41 | PreservesFiniteColimits (FormalCoproduct.cochainComplexFunctor (A := ModuleCat.{u} R) E) where |
| 42 | preservesFiniteColimits _ _ _ := |
| 43 | HomologicalComplex.preservesColimitsOfShape_of_eval _ (fun _ => inferInstance) |
| 44 | |
| 45 | instance preservesHomology : |
| 46 | (FormalCoproduct.cochainComplexFunctor (A := ModuleCat.{u} R) E).PreservesHomology := by |
| 47 | infer_instance |
| 48 | |
| 49 | def homologyIso (K : CochainComplex (Cᵒᵖ ⥤ ModuleCat.{u} R) ℕ) (n : ℕ) : |
| 50 | (((FormalCoproduct.cochainComplexFunctor E).mapHomologicalComplex (.up ℕ)).obj K).homology n ≅ |
| 51 | (FormalCoproduct.cochainComplexFunctor E).obj (K.homology n) := |
| 52 | (K.sc n).mapHomologyIso (FormalCoproduct.cochainComplexFunctor E) |
| 53 | |
| 54 | end |
| 55 | |
| 56 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Cech.PresheafExactness |