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.IntersectionTheory.ProjectionFormula.Tensor.MappingCone |
| 2 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Tensor.CochainShift |
| 3 | import Mathlib.Algebra.Homology.HomotopyCategory.Pretriangulated |
| 4 | |
| 5 | /-! # Triangulated -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Tensor.Triangulated |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! The total tensor functor preserves the native cone triangles and hence |
| 12 | defines a triangulated functor on the homotopy category. -/ |
| 13 | |
| 14 | set_option backward.isDefEq.respectTransparency false |
| 15 | set_option backward.isDefEq.respectTransparency.types false |
| 16 | |
| 17 | open _root_.CategoryTheory _root_.CategoryTheory.Pretriangulated _root_.CochainComplex _root_.CochainComplex.HomComplex |
| 18 | |
| 19 | variable (R : Type) [CommRing R] (K : CochainComplex (ModuleCat.{0} R) ℤ) |
| 20 | variable {P Q : CochainComplex (ModuleCat.{0} R) ℤ} (f : P ⟶ Q) |
| 21 | |
| 22 | theorem hom_inr : |
| 23 | (Homotopy.complexFunctor R K).map (mappingCone.inr f) ≫ |
| 24 | (MappingCone.iso R K f).hom = |
| 25 | mappingCone.inr ((Homotopy.complexFunctor R K).map f) := by |
| 26 | have h : mappingCone.inr ((Homotopy.complexFunctor R K).map f) ≫ |
| 27 | MappingCone.inv R K f = |
| 28 | (Homotopy.complexFunctor R K).map (mappingCone.inr f) := |
| 29 | mappingCone.inr_desc _ _ _ _ |
| 30 | rw [← h, Category.assoc] |
| 31 | change _ ≫ (MappingCone.iso R K f).inv ≫ (MappingCone.iso R K f).hom = _ |
| 32 | rw [Iso.inv_hom_id, Category.comp_id] |
| 33 | |
| 34 | theorem hom_δ : |
| 35 | (MappingCone.iso R K f).hom ≫ |
| 36 | (mappingCone.triangle ((Homotopy.complexFunctor R K).map f)).mor₃ = |
| 37 | (Homotopy.complexFunctor R K).map (mappingCone.triangle f).mor₃ ≫ |
| 38 | ((Homotopy.complexFunctor R K).commShiftIso (1 : ℤ)).hom.app P := by |
| 39 | change _ = (Homotopy.complexFunctor R K).map |
| 40 | (Cocycle.homOf ((-mappingCone.fst f).rightShift 1 0 (zero_add 1))) ≫ _ |
| 41 | rw [CochainShift.homOf_rightShift] |
| 42 | apply HomologicalComplex.Hom.ext |
| 43 | funext n |
| 44 | simp only [HomologicalComplex.comp_f, mappingCone.triangle, Triangle.mk_mor₃, |
| 45 | Cocycle.homOf_f, Cocycle.rightShift_coe, Tensor.Cochain.mapCocycle_coe, |
| 46 | Cocycle.coe_neg, Tensor.Cochain.map_neg, |
| 47 | Cochain.rightShift_v _ 1 0 (zero_add 1) n n (add_zero n) (n + 1) rfl, |
| 48 | Cochain.neg_v, Preadditive.comp_neg, Preadditive.neg_comp] |
| 49 | change -((MappingCone.hom R K f).f n ≫ _) = _ |
| 50 | simp only [MappingCone.hom, mappingCone.lift_f_fst_v_assoc, |
| 51 | Tensor.Cochain.mapCocycle_coe] |
| 52 | |
| 53 | def triangleIso : |
| 54 | (Homotopy.complexFunctor R K).mapTriangle.obj (mappingCone.triangle f) ≅ |
| 55 | mappingCone.triangle ((Homotopy.complexFunctor R K).map f) := |
| 56 | Triangle.isoMk _ _ (Iso.refl _) (Iso.refl _) (MappingCone.iso R K f) |
| 57 | (by simp [CategoryTheory.Functor.mapTriangle]) |
| 58 | (by simpa [CategoryTheory.Functor.mapTriangle] using hom_inr R K f) |
| 59 | (by |
| 60 | change (_ ≫ _) ≫ (CategoryTheory.shiftFunctor _ (1 : ℤ)).map (𝟙 _) = _ |
| 61 | rw [CategoryTheory.Functor.map_id, Category.comp_id] |
| 62 | exact (hom_δ R K f).symm) |
| 63 | |
| 64 | def liftIso : HomotopyCategory.quotient _ _ ⋙ Homotopy.homotopyFunctor R K ≅ |
| 65 | Homotopy.complexFunctor R K ⋙ HomotopyCategory.quotient _ _ := |
| 66 | CategoryTheory.Quotient.lift.isLift _ _ _ |
| 67 | |
| 68 | instance liftIso_commShift : NatTrans.CommShift (liftIso R K).hom ℤ := by |
| 69 | unfold liftIso Homotopy.homotopyFunctor |
| 70 | exact CategoryTheory.Quotient.liftCommShift_compatibility _ _ ℤ _ |
| 71 | |
| 72 | def trianglehIso : |
| 73 | (Homotopy.homotopyFunctor R K).mapTriangle.obj (mappingCone.triangleh f) ≅ |
| 74 | mappingCone.triangleh ((Homotopy.complexFunctor R K).map f) := |
| 75 | (CategoryTheory.Functor.mapTriangleCompIso _ _).symm.app _ ≪≫ |
| 76 | (CategoryTheory.Functor.mapTriangleIso (liftIso R K)).app _ ≪≫ |
| 77 | (CategoryTheory.Functor.mapTriangleCompIso _ _).app _ ≪≫ |
| 78 | (HomotopyCategory.quotient _ _).mapTriangle.mapIso (triangleIso R K f) |
| 79 | |
| 80 | instance homotopy_triangulated : (Homotopy.homotopyFunctor R K).IsTriangulated where |
| 81 | map_distinguished := by |
| 82 | rintro T ⟨P, Q, f, ⟨e⟩⟩ |
| 83 | exact ⟨_, _, _, ⟨(Homotopy.homotopyFunctor R K).mapTriangle.mapIso e ≪≫ |
| 84 | trianglehIso R K f⟩⟩ |
| 85 | |
| 86 | end |
| 87 | |
| 88 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Tensor.Triangulated |