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.AlgebraicGeometry.SheafCohomology.Cech.UpNatLowDegrees |
| 2 | import Mathlib.Algebra.Homology.Additive |
| 3 | import Mathlib.CategoryTheory.Limits.Preserves.Shapes.Products |
| 4 | import Mathlib.CategoryTheory.Linear.LinearFunctor |
| 5 | |
| 6 | /-! # Total Complex Functor -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.Comparison.Betti.TotalComplexFunctor |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! Additive functors commute with first-quadrant total complexes when they preserve coproducts. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.HomologicalComplex₂ |
| 15 | |
| 16 | variable {C D : Type*} [Category* C] [Category* D] [Preadditive C] [Preadditive D] |
| 17 | [HasCoproducts.{0} C] [HasCoproducts.{0} D] (F : C ⥤ D) [F.Additive] |
| 18 | (K : HomologicalComplex₂ C (.up ℕ) (.up ℕ)) |
| 19 | |
| 20 | def mapBicomplex : HomologicalComplex₂ D (.up ℕ) (.up ℕ) := |
| 21 | ((F.mapHomologicalComplex (.up ℕ)).mapHomologicalComplex (.up ℕ)).obj K |
| 22 | |
| 23 | def totalComparisonComponent (n : ℕ) : |
| 24 | ((mapBicomplex F K).total (.up ℕ)).X n ⟶ F.obj ((K.total (.up ℕ)).X n) := |
| 25 | sigmaComparison F (K.toGradedObject.mapObjFun (ComplexShape.π (.up ℕ) (.up ℕ) (.up ℕ)) n) |
| 26 | |
| 27 | theorem ι_totalComparisonComponent (q p n : ℕ) (h : q + p = n) : |
| 28 | (mapBicomplex F K).ιTotal (.up ℕ) q p n h ≫ totalComparisonComponent F K n = |
| 29 | F.map (K.ιTotal (.up ℕ) q p n h) := |
| 30 | ι_comp_sigmaComparison F |
| 31 | (K.toGradedObject.mapObjFun (ComplexShape.π (.up ℕ) (.up ℕ) (.up ℕ)) n) ⟨(q, p), h⟩ |
| 32 | |
| 33 | theorem totalComparisonComponent_comm (n : ℕ) : |
| 34 | totalComparisonComponent F K n ≫ F.map ((K.total (.up ℕ)).d n (n + 1)) = |
| 35 | ((mapBicomplex F K).total (.up ℕ)).d n (n + 1) ≫ totalComparisonComponent F K (n + 1) := by |
| 36 | let M := mapBicomplex F K |
| 37 | apply total.hom_ext |
| 38 | intro q p h |
| 39 | change q + p = n at h |
| 40 | subst n |
| 41 | erw [← Category.assoc, ι_totalComparisonComponent, ← F.map_comp, (SheafCohomology.Cech.UpNatLowDegrees.HomologicalComplex₂.ιTotal_d_upNat K)] |
| 42 | erw [← Category.assoc (M.ιTotal (.up ℕ) q p (q + p) rfl), (SheafCohomology.Cech.UpNatLowDegrees.HomologicalComplex₂.ιTotal_d_upNat M)] |
| 43 | simp only [Functor.map_add, Functor.map_units_smul, F.map_comp, Preadditive.add_comp, |
| 44 | Linear.units_smul_comp, Category.assoc] |
| 45 | dsimp only [M] |
| 46 | erw [ι_totalComparisonComponent, ι_totalComparisonComponent] |
| 47 | rfl |
| 48 | |
| 49 | def totalComparison : (mapBicomplex F K).total (.up ℕ) ⟶ |
| 50 | (F.mapHomologicalComplex (.up ℕ)).obj (K.total (.up ℕ)) where |
| 51 | f := totalComparisonComponent F K |
| 52 | comm' n m h := by |
| 53 | change n + 1 = m at h |
| 54 | subst m |
| 55 | exact totalComparisonComponent_comm F K n |
| 56 | |
| 57 | instance totalComparisonComponent_isIso [PreservesColimitsOfSize.{0, 0} F] (n : ℕ) : |
| 58 | IsIso (totalComparisonComponent F K n) := |
| 59 | inferInstanceAs (IsIso (sigmaComparison F |
| 60 | (K.toGradedObject.mapObjFun (ComplexShape.π (.up ℕ) (.up ℕ) (.up ℕ)) n))) |
| 61 | |
| 62 | def totalComparisonIso [PreservesColimitsOfSize.{0, 0} F] : |
| 63 | (mapBicomplex F K).total (.up ℕ) ≅ |
| 64 | (F.mapHomologicalComplex (.up ℕ)).obj (K.total (.up ℕ)) := by |
| 65 | have (n : ℕ) : IsIso ((totalComparison F K).f n) := totalComparisonComponent_isIso F K n |
| 66 | have : IsIso (totalComparison F K) := HomologicalComplex.Hom.isIso_of_components _ |
| 67 | exact asIso (totalComparison F K) |
| 68 | |
| 69 | end |
| 70 | |
| 71 | end OAI.AlgebraicGeometry.Comparison.Betti.TotalComplexFunctor |