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.Homology.HomotopyCategory.Pretriangulated |
| 2 | |
| 3 | /-! # Mapping Cone Contractions -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.MappingConeContractions |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Actual mapping-cone contractions and transport of contracting homotopies. -/ |
| 10 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.CategoryTheory.Pretriangulated |
| 11 | universe u v |
| 12 | |
| 13 | section Cone |
| 14 | variable {C : Type u} [Category.{v} C] [Preadditive C] [HasBinaryBiproducts C] |
| 15 | open _root_.CochainComplex |
| 16 | |
| 17 | def mappingConeIsoOfIso {K L : CochainComplex C ℤ} (f : K ⟶ L) [IsIso f] : |
| 18 | mappingCone f ≅ mappingCone (𝟙 K) where |
| 19 | hom := mappingCone.map f (𝟙 K) (𝟙 K) (inv f) (by simp) |
| 20 | inv := mappingCone.map (𝟙 K) f (𝟙 K) f (by simp) |
| 21 | hom_inv_id := by |
| 22 | rw [← mappingCone.map_comp] |
| 23 | simp only [Category.id_comp, IsIso.inv_hom_id] |
| 24 | exact mappingCone.map_id f |
| 25 | inv_hom_id := by |
| 26 | rw [← mappingCone.map_comp] |
| 27 | simp only [Category.id_comp, IsIso.hom_inv_id] |
| 28 | exact mappingCone.map_id (𝟙 K) |
| 29 | |
| 30 | def mappingConeHomotopyToZeroOfIso {K L : CochainComplex C ℤ} (f : K ⟶ L) [IsIso f] : |
| 31 | Homotopy (𝟙 (mappingCone f)) 0 := by |
| 32 | let e := mappingConeIsoOfIso f |
| 33 | have h := ((mappingCone.homotopyToZeroOfId K).compLeft e.hom).compRight e.inv |
| 34 | simpa only [Category.id_comp, Category.comp_id, Iso.hom_inv_id, comp_zero, zero_comp] using h |
| 35 | |
| 36 | theorem mappingCone_contractible_of_contractible [HasZeroObject C] |
| 37 | {K L : CochainComplex C ℤ} (f : K ⟶ L) |
| 38 | (hK : Nonempty (Homotopy (𝟙 K) 0)) (hL : Nonempty (Homotopy (𝟙 L) 0)) : |
| 39 | Nonempty (Homotopy (𝟙 (mappingCone f)) 0) := by |
| 40 | apply (HomotopyCategory.isZero_quotient_obj_iff _).mp |
| 41 | exact (mappingCone.triangleh f).isZero₃_of_isZero₁₂ |
| 42 | (HomotopyCategory.mappingCone_triangleh_distinguished f) |
| 43 | ((HomotopyCategory.isZero_quotient_obj_iff K).mpr hK) |
| 44 | ((HomotopyCategory.isZero_quotient_obj_iff L).mpr hL) |
| 45 | end Cone |
| 46 | |
| 47 | theorem cochainContractible_of_iso {C : Type u} [Category.{v} C] [Preadditive C] |
| 48 | {K L : CochainComplex C ℤ} (e : K ≅ L) (hL : Nonempty (Homotopy (𝟙 L) 0)) : |
| 49 | Nonempty (Homotopy (𝟙 K) 0) := by |
| 50 | obtain ⟨h⟩ := hL |
| 51 | refine ⟨?_⟩ |
| 52 | simpa only [Category.id_comp, Category.comp_id, Iso.hom_inv_id, comp_zero, zero_comp] |
| 53 | using (h.compLeft e.hom).compRight e.inv |
| 54 | |
| 55 | theorem cochainContractible_map {C D : Type*} [Category* C] [Category* D] |
| 56 | [Preadditive C] [Preadditive D] (F : C ⥤ D) [F.Additive] |
| 57 | (K : CochainComplex C ℤ) (hK : Nonempty (Homotopy (𝟙 K) 0)) : |
| 58 | Nonempty (Homotopy (𝟙 ((F.mapHomologicalComplex (.up ℤ)).obj K)) 0) := by |
| 59 | obtain ⟨h⟩ := hK |
| 60 | exact ⟨by simpa only [CategoryTheory.Functor.map_id, Functor.map_zero] using F.mapHomotopy h⟩ |
| 61 | |
| 62 | end |
| 63 | |
| 64 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.MappingConeContractions |