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.OrderedCech.Refinement |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Functor.SingleTotal |
| 3 | import OAI.AlgebraicGeometry.Crystalline.Cohomology.Cech.CochainLimits |
| 4 | import Mathlib.CategoryTheory.Abelian.FunctorCategory |
| 5 | |
| 6 | /-! # Total Projection -/ |
| 7 | |
| 8 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.OrderedCech.TotalProjection |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! The original ordinary-to-ordered Čech projection is natural for |
| 13 | complexes and preserves the original single-degree homology comparison. -/ |
| 14 | |
| 15 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.HomologicalComplex |
| 16 | |
| 17 | set_option backward.defeqAttrib.useBackward true |
| 18 | set_option backward.isDefEq.respectTransparency false |
| 19 | set_option backward.isDefEq.respectTransparency.types false |
| 20 | |
| 21 | universe u v |
| 22 | variable {C : Type u} [Preorder C] [HasFiniteProducts C] |
| 23 | {D : Type v} [Category D] [Abelian D] [HasProducts.{u} D] [HasCoproducts.{0} D] |
| 24 | {ι : Type u} [LinearOrder ι] (U : ι → C) |
| 25 | |
| 26 | local instance ordinary_additive : (NonemptyCechNerve.complexFunctor U (A := D)).Additive := by |
| 27 | change (FormalCoproduct.cochainComplexFunctor (NonemptyCechNerve.nerve U)).Additive |
| 28 | infer_instance |
| 29 | |
| 30 | abbrev ordinary : CochainComplex (Cᵒᵖ ⥤ D) ℕ ⥤ CochainComplex D ℕ := |
| 31 | (NonemptyCechNerve.complexFunctor U).mapHomologicalComplex (.up ℕ) ⋙ |
| 32 | HomologicalComplex₂.totalFunctor D (.up ℕ) (.up ℕ) (.up ℕ) |
| 33 | |
| 34 | abbrev ordered : CochainComplex (Cᵒᵖ ⥤ D) ℕ ⥤ CochainComplex D ℕ := |
| 35 | (Functor.Projection.functor U).mapHomologicalComplex (.up ℕ) ⋙ |
| 36 | HomologicalComplex₂.totalFunctor D (.up ℕ) (.up ℕ) (.up ℕ) |
| 37 | |
| 38 | def bicomplexMap (K : CochainComplex (Cᵒᵖ ⥤ D) ℕ) := |
| 39 | (NatTrans.mapHomologicalComplex (Naturality.projectionTransformation U) (.up ℕ)).app K |
| 40 | |
| 41 | def map (K : CochainComplex (Cᵒᵖ ⥤ D) ℕ) : (ordinary U).obj K ⟶ (ordered U).obj K := |
| 42 | HomologicalComplex₂.total.map (bicomplexMap U K) (.up ℕ) |
| 43 | |
| 44 | theorem naturality {K L : CochainComplex (Cᵒᵖ ⥤ D) ℕ} (a : K ⟶ L) : |
| 45 | (ordinary U).map a ≫ TotalProjection.map U L = TotalProjection.map U K ≫ (ordered U).map a := by |
| 46 | let T := HomologicalComplex₂.totalFunctor D (.up ℕ) (.up ℕ) (.up ℕ) |
| 47 | exact (T.map_comp _ _).symm.trans |
| 48 | ((congrArg T.map ((NatTrans.mapHomologicalComplex |
| 49 | (Naturality.projectionTransformation U) (.up ℕ)).naturality a)).trans (T.map_comp _ _)) |
| 50 | |
| 51 | theorem homology_naturality {K L : CochainComplex (Cᵒᵖ ⥤ D) ℕ} (a : K ⟶ L) (n : ℕ) : |
| 52 | homologyMap ((ordinary U).map a) n ≫ homologyMap (TotalProjection.map U L) n = |
| 53 | homologyMap (TotalProjection.map U K) n ≫ homologyMap ((ordered U).map a) n := by |
| 54 | exact (homologyMap_comp _ _ n).symm.trans |
| 55 | ((congrArg (fun b => homologyMap b n) (TotalProjection.naturality U a)).trans (homologyMap_comp _ _ n)) |
| 56 | |
| 57 | theorem single (P : Cᵒᵖ ⥤ D) (c n : ℕ) : |
| 58 | homologyMap (TotalProjection.map U ((HomologicalComplex.single _ (.up ℕ) c).obj P)) (n+c) ≫ |
| 59 | (Functor.SingleTotal.homologyIso (Functor.Projection.functor U) P c n).hom = |
| 60 | (Functor.SingleTotal.homologyIso (NonemptyCechNerve.complexFunctor U) P c n).hom ≫ |
| 61 | homologyMap (Projection.map U P) n := |
| 62 | Functor.SingleTotal.homology_naturality P c (Naturality.projectionTransformation U) n |
| 63 | |
| 64 | end |
| 65 | |
| 66 | end OAI.NumberTheory.PadicHodge.IntegralComparison.OrderedCech.TotalProjection |