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.Module.ExactProducts |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Crystalline.ExactRestriction |
| 3 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Cech.PresheafExactness |
| 4 | |
| 5 | /-! # Cech Presheaf Exactness -/ |
| 6 | |
| 7 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Crystalline.CechPresheafExactness |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! The actual Cech functor preserves homology in the original crystalline coefficient universe. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory Limits |
| 14 | |
| 15 | universe u v w |
| 16 | |
| 17 | variable (B : Type u) [CommRing B] {C : Type v} [Category.{w} C] |
| 18 | (E : SimplicialObject (FormalCoproduct.{u} C)) |
| 19 | |
| 20 | open OAI.AlgebraicGeometry.Crystalline.Cohomology.Cech.CochainLimits.CechCochainLimits |
| 21 | |
| 22 | local notation "R" => OAI.NumberTheory.PadicHodge.IntegralComparison.Crystalline.ExactRestriction.Coeff (B := B) |
| 23 | |
| 24 | local instance fullLimits : HasLimits (ModuleCat.{u + 2} R) := |
| 25 | ModuleCat.hasLimitsOfSize.{u + 2, u + 2, u + 2, u + 1} |
| 26 | |
| 27 | local instance smallLimits : HasLimitsOfSize.{u, u} (ModuleCat.{u + 2} R) := |
| 28 | ModuleCat.hasLimitsOfSize.{u, u, u + 2, u + 1} |
| 29 | |
| 30 | local instance smallProducts : HasProducts.{u} (ModuleCat.{u + 2} R) := |
| 31 | fun I => (smallLimits B).has_limits_of_shape (Discrete I) |
| 32 | |
| 33 | local instance exactProducts : AB4StarOfSize.{u} (ModuleCat.{u + 2} R) := |
| 34 | Module.ExactProducts.smallProducts.{u + 1, u, u + 2} R |
| 35 | |
| 36 | instance productDegree_preservesFiniteColimits (n : ℕ) : |
| 37 | PreservesFiniteColimits (AlgebraicGeometry.Crystalline.Cohomology.Cech.CochainLimits.CechCochainLimits.productDegree (A := ModuleCat.{u + 2} R) E n) where |
| 38 | preservesFiniteColimits J _ _ := by |
| 39 | dsimp [AlgebraicGeometry.Crystalline.Cohomology.Cech.CochainLimits.CechCochainLimits.productDegree] |
| 40 | infer_instance |
| 41 | |
| 42 | instance degree_preservesFiniteColimits (n : ℕ) : |
| 43 | PreservesFiniteColimits (FormalCoproduct.cochainComplexFunctor (A := ModuleCat.{u + 2} R) E ⋙ |
| 44 | HomologicalComplex.eval _ (.up ℕ) n) := |
| 45 | preservesFiniteColimits_of_natIso (AlgebraicGeometry.Crystalline.Cohomology.Cech.CochainLimits.CechCochainLimits.degreeIso E n).symm |
| 46 | |
| 47 | instance preservesFiniteLimits : |
| 48 | PreservesFiniteLimits (FormalCoproduct.cochainComplexFunctor (A := ModuleCat.{u + 2} R) E) where |
| 49 | preservesFiniteLimits _ _ _ := |
| 50 | HomologicalComplex.preservesLimitsOfShape_of_eval _ (fun _ => inferInstance) |
| 51 | |
| 52 | instance preservesFiniteColimits : |
| 53 | PreservesFiniteColimits (FormalCoproduct.cochainComplexFunctor (A := ModuleCat.{u + 2} R) E) where |
| 54 | preservesFiniteColimits _ _ _ := |
| 55 | HomologicalComplex.preservesColimitsOfShape_of_eval _ (fun _ => inferInstance) |
| 56 | |
| 57 | instance preservesHomology : |
| 58 | (FormalCoproduct.cochainComplexFunctor (A := ModuleCat.{u + 2} R) E).PreservesHomology := by |
| 59 | infer_instance |
| 60 | |
| 61 | def homologyIso (K : CochainComplex (Cᵒᵖ ⥤ ModuleCat.{u + 2} R) ℕ) (n : ℕ) : |
| 62 | (((FormalCoproduct.cochainComplexFunctor E).mapHomologicalComplex (.up ℕ)).obj K).homology n ≅ |
| 63 | (FormalCoproduct.cochainComplexFunctor E).obj (K.homology n) := |
| 64 | (K.sc n).mapHomologyIso (FormalCoproduct.cochainComplexFunctor E) |
| 65 | |
| 66 | end |
| 67 | |
| 68 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Crystalline.CechPresheafExactness |