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.Category.ModuleCat.Monoidal.Basic |
| 2 | import Mathlib.Algebra.Category.ModuleCat.Limits |
| 3 | import Mathlib.Algebra.Category.ModuleCat.Colimits |
| 4 | import Mathlib.Algebra.Homology.BifunctorHomotopy |
| 5 | import Mathlib.Algebra.Homology.BifunctorShift |
| 6 | import Mathlib.Algebra.Homology.Monoidal |
| 7 | import Mathlib.Algebra.Homology.HomotopyCategory.Shift |
| 8 | import Mathlib.CategoryTheory.Shift.Quotient |
| 9 | |
| 10 | /-! # Homotopy -/ |
| 11 | |
| 12 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Tensor.Homotopy |
| 13 | |
| 14 | noncomputable section |
| 15 | |
| 16 | /-! Tensoring with an actual cochain complex defines a functor on the |
| 17 | homotopy category and commutes with shifts. -/ |
| 18 | |
| 19 | set_option backward.isDefEq.respectTransparency false |
| 20 | set_option backward.isDefEq.respectTransparency.types false |
| 21 | |
| 22 | open _root_.CategoryTheory _root_.CategoryTheory.MonoidalCategory |
| 23 | |
| 24 | variable (R : Type) [CommRing R] (K : CochainComplex (ModuleCat.{0} R) ℤ) |
| 25 | |
| 26 | local instance hasMapBifunctor (P Q : CochainComplex (ModuleCat.{0} R) ℤ) : |
| 27 | HomologicalComplex.HasMapBifunctor P Q (curriedTensor (ModuleCat.{0} R)) (.up ℤ) := by |
| 28 | intro n |
| 29 | infer_instance |
| 30 | |
| 31 | def complexFunctor : CochainComplex (ModuleCat.{0} R) ℤ ⥤ |
| 32 | CochainComplex (ModuleCat.{0} R) ℤ := |
| 33 | (curriedTensor (ModuleCat.{0} R)).map₂CochainComplex.flip.obj K |
| 34 | |
| 35 | instance complex_additive : (complexFunctor R K).Additive where |
| 36 | map_add {P Q} f g := by |
| 37 | apply HomologicalComplex.Hom.ext |
| 38 | funext n |
| 39 | change (HomologicalComplex.mapBifunctorMap (f + g) (𝟙 K) (curriedTensor (ModuleCat.{0} R)) (.up ℤ)).f n = |
| 40 | (HomologicalComplex.mapBifunctorMap f (𝟙 K) (curriedTensor (ModuleCat.{0} R)) (.up ℤ)).f n + |
| 41 | (HomologicalComplex.mapBifunctorMap g (𝟙 K) (curriedTensor (ModuleCat.{0} R)) (.up ℤ)).f n |
| 42 | apply HomologicalComplex.mapBifunctor.hom_ext |
| 43 | intro i j h |
| 44 | simp only [HomologicalComplex.add_f_apply, Preadditive.comp_add, HomologicalComplex.ι_mapBifunctorMap, |
| 45 | Functor.map_add, NatTrans.app_add, Preadditive.add_comp] |
| 46 | |
| 47 | theorem respects_homotopy {P Q : CochainComplex (ModuleCat.{0} R) ℤ} |
| 48 | (f g : P ⟶ Q) (h : Homotopy f g) : |
| 49 | (HomotopyCategory.quotient _ _).map ((complexFunctor R K).map f) = |
| 50 | (HomotopyCategory.quotient _ _).map ((complexFunctor R K).map g) := |
| 51 | HomotopyCategory.eq_of_homotopy _ _ |
| 52 | (HomologicalComplex.mapBifunctorMapHomotopy₁ h (𝟙 K) (curriedTensor (ModuleCat.{0} R)) (.up ℤ)) |
| 53 | |
| 54 | def homotopyFunctor : HomotopyCategory (ModuleCat.{0} R) (.up ℤ) ⥤ |
| 55 | HomotopyCategory (ModuleCat.{0} R) (.up ℤ) := |
| 56 | CategoryTheory.Quotient.lift _ |
| 57 | (complexFunctor R K ⋙ HomotopyCategory.quotient _ _) (by |
| 58 | intro P Q f g h |
| 59 | exact respects_homotopy R K f g h.some) |
| 60 | |
| 61 | instance homotopy_additive : (homotopyFunctor R K).Additive := by |
| 62 | have : (HomotopyCategory.quotient _ _ ⋙ homotopyFunctor R K).Additive := |
| 63 | Functor.additive_of_iso (CategoryTheory.Quotient.lift.isLift _ |
| 64 | (complexFunctor R K ⋙ HomotopyCategory.quotient _ _) _).symm |
| 65 | exact Functor.additive_of_full_essSurj_comp (HomotopyCategory.quotient _ _) _ |
| 66 | |
| 67 | instance complex_commShift : (complexFunctor R K).CommShift ℤ := by |
| 68 | unfold complexFunctor |
| 69 | infer_instance |
| 70 | |
| 71 | instance homotopy_commShift : (homotopyFunctor R K).CommShift ℤ := by |
| 72 | unfold homotopyFunctor |
| 73 | exact CategoryTheory.Quotient.liftCommShift |
| 74 | (complexFunctor R K ⋙ HomotopyCategory.quotient _ _) |
| 75 | (homotopic (ModuleCat.{0} R) (.up ℤ)) ℤ _ |
| 76 | |
| 77 | end |
| 78 | |
| 79 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Tensor.Homotopy |