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.Cochain |
| 2 | import Mathlib.Algebra.Category.ModuleCat.Biproducts |
| 3 | import Mathlib.Algebra.Homology.HomotopyCategory.MappingCone |
| 4 | |
| 5 | /-! # Mapping Cone -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Tensor.MappingCone |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Tensoring a mapping cone agrees with the mapping cone of the tensor map. |
| 12 | Both directions use the native cone inclusions and projections. -/ |
| 13 | |
| 14 | set_option backward.isDefEq.respectTransparency false |
| 15 | set_option backward.isDefEq.respectTransparency.types false |
| 16 | |
| 17 | open _root_.CategoryTheory _root_.CochainComplex _root_.CochainComplex.HomComplex |
| 18 | |
| 19 | open OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Tensor.Cochain |
| 20 | |
| 21 | variable (R : Type) [CommRing R] (K : CochainComplex (ModuleCat.{0} R) ℤ) |
| 22 | variable {P Q : CochainComplex (ModuleCat.{0} R) ℤ} (f : P ⟶ Q) |
| 23 | |
| 24 | def hom : (Homotopy.complexFunctor R K).obj (mappingCone f) ⟶ |
| 25 | mappingCone ((Homotopy.complexFunctor R K).map f) := |
| 26 | mappingCone.lift _ (Tensor.Cochain.mapCocycle R K (mappingCone.fst f)) (Tensor.Cochain.map R K (mappingCone.snd f)) (by |
| 27 | rw [← Tensor.Cochain.map_δ, mappingCone.δ_snd, Tensor.Cochain.map_neg, Tensor.Cochain.map_comp, Tensor.Cochain.map_ofHom] |
| 28 | exact neg_add_cancel _) |
| 29 | |
| 30 | def inv : mappingCone ((Homotopy.complexFunctor R K).map f) ⟶ |
| 31 | (Homotopy.complexFunctor R K).obj (mappingCone f) := |
| 32 | mappingCone.desc _ (Tensor.Cochain.map R K (mappingCone.inl f)) |
| 33 | ((Homotopy.complexFunctor R K).map (mappingCone.inr f)) (by |
| 34 | rw [← Tensor.Cochain.map_δ, mappingCone.δ_inl, Tensor.Cochain.map_ofHom, CategoryTheory.Functor.map_comp]) |
| 35 | |
| 36 | theorem hom_ofHom : Cochain.ofHom (Tensor.MappingCone.hom R K f) = |
| 37 | mappingCone.liftCochain ((Homotopy.complexFunctor R K).map f) |
| 38 | (Tensor.Cochain.map R K (mappingCone.fst f).1) (Tensor.Cochain.map R K (mappingCone.snd f)) (zero_add 1) := by |
| 39 | apply mappingCone.ofHom_lift |
| 40 | |
| 41 | theorem inv_ofHom : Cochain.ofHom (Tensor.MappingCone.inv R K f) = |
| 42 | mappingCone.descCochain ((Homotopy.complexFunctor R K).map f) |
| 43 | (Tensor.Cochain.map R K (mappingCone.inl f)) (Tensor.Cochain.map R K (Cochain.ofHom (mappingCone.inr f))) |
| 44 | (neg_add_cancel 1) := by |
| 45 | rw [Tensor.Cochain.map_ofHom] |
| 46 | apply mappingCone.ofHom_desc |
| 47 | |
| 48 | theorem hom_inv_id : Tensor.MappingCone.hom R K f ≫ Tensor.MappingCone.inv R K f = 𝟙 _ := by |
| 49 | apply Cochain.ofHom_injective |
| 50 | rw [Cochain.ofHom_comp, hom_ofHom, inv_ofHom, |
| 51 | mappingCone.liftCochain_descCochain, ← Tensor.Cochain.map_comp, ← Tensor.Cochain.map_comp, ← Tensor.Cochain.map_add, |
| 52 | mappingCone.id, Tensor.Cochain.map_ofHom, CategoryTheory.Functor.map_id] |
| 53 | |
| 54 | theorem inv_hom_id : Tensor.MappingCone.inv R K f ≫ Tensor.MappingCone.hom R K f = 𝟙 _ := by |
| 55 | apply Cochain.ofHom_injective |
| 56 | rw [Cochain.ofHom_comp, inv_ofHom, hom_ofHom] |
| 57 | apply (mappingCone.ext_cochain_from_iff _ (-1) 0 (neg_add_cancel 1)).2 |
| 58 | constructor |
| 59 | · rw [← Cochain.comp_assoc_of_second_is_zero_cochain, |
| 60 | mappingCone.inl_descCochain, Cochain.comp_id] |
| 61 | simp only [mappingCone.liftCochain, Cochain.comp_add] |
| 62 | rw [← Cochain.comp_assoc _ _ _ (neg_add_cancel 1) (add_neg_cancel 1) (by omega), |
| 63 | ← Tensor.Cochain.map_comp, mappingCone.inl_fst, Tensor.Cochain.map_ofHom, CategoryTheory.Functor.map_id, Cochain.id_comp, |
| 64 | ← Cochain.comp_assoc_of_second_is_zero_cochain, |
| 65 | ← Tensor.Cochain.map_comp, mappingCone.inl_snd, Tensor.Cochain.map_zero, Cochain.zero_comp, add_zero] |
| 66 | · rw [← Cochain.comp_assoc_of_second_is_zero_cochain, |
| 67 | mappingCone.inr_descCochain, Cochain.comp_id] |
| 68 | simp only [mappingCone.liftCochain, Cochain.comp_add] |
| 69 | rw [← Cochain.comp_assoc_of_first_is_zero_cochain, |
| 70 | ← Tensor.Cochain.map_comp, mappingCone.inr_fst, Tensor.Cochain.map_zero, Cochain.zero_comp, zero_add, |
| 71 | ← Cochain.comp_assoc_of_second_is_zero_cochain, |
| 72 | ← Tensor.Cochain.map_comp, mappingCone.inr_snd, Tensor.Cochain.map_ofHom, CategoryTheory.Functor.map_id, Cochain.id_comp] |
| 73 | |
| 74 | def iso : (Homotopy.complexFunctor R K).obj (mappingCone f) ≅ |
| 75 | mappingCone ((Homotopy.complexFunctor R K).map f) where |
| 76 | hom := Tensor.MappingCone.hom R K f |
| 77 | inv := Tensor.MappingCone.inv R K f |
| 78 | hom_inv_id := Tensor.MappingCone.hom_inv_id R K f |
| 79 | inv_hom_id := Tensor.MappingCone.inv_hom_id R K f |
| 80 | |
| 81 | end |
| 82 | |
| 83 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Tensor.MappingCone |