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 | /- |
| 2 | Copyright 2026 The Formal Conjectures Authors. |
| 3 | Released under Apache 2.0 license as described in the file LICENSE. |
| 4 | This file has been modified. |
| 5 | -/ |
| 6 | import OAI.Algebra.Homology.Notation |
| 7 | import OAI.Algebra.Homology.DerivedCategoryMapOf |
| 8 | |
| 9 | /-! # Mapping Cone Map Naturality -/ |
| 10 | |
| 11 | namespace OAI.Algebra.Homology.MappingConeMapNaturality.CochainComplex.mappingCone |
| 12 | |
| 13 | noncomputable section |
| 14 | |
| 15 | open _root_.CochainComplex |
| 16 | open _root_.CochainComplex.mappingCone |
| 17 | |
| 18 | /-! # Cone maps and additive comparison naturality -/ |
| 19 | |
| 20 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.HomologicalComplex |
| 21 | |
| 22 | variable {C D : Type*} [Category* C] [Category* D] [Abelian C] [Abelian D] |
| 23 | {K L K' L' : CochainComplex C ℤ} |
| 24 | |
| 25 | set_option backward.defeqAttrib.useBackward true in |
| 26 | set_option backward.isDefEq.respectTransparency false in |
| 27 | /-- The general homotopy-cofiber arrow map is the standard cone |
| 28 | map, with zero off-diagonal homotopy. -/ |
| 29 | lemma mapArrowHom_eq_map (f : K ⟶ L) (g : K' ⟶ L') |
| 30 | (a : K ⟶ K') (b : L ⟶ L') (h : f ≫ b = a ≫ g) : |
| 31 | homotopyCofiber.mapArrowHom f g |
| 32 | (fun j => ⟨j - 1, ComplexShape.up_mk _ _ (by omega)⟩) |
| 33 | (Arrow.homMk a b h.symm) = map f g a b h := by |
| 34 | ext n |
| 35 | simp [ext_from_iff _ (n + 1) n rfl, map] |
| 36 | constructor |
| 37 | · change homotopyCofiber.inlX f (n + 1) n _ ≫ _ = _ |
| 38 | simp [homotopyCofiber.mapArrowHom, |
| 39 | homotopyCofiber.inrCompHomotopy_hom _ _ (n + 1) n |
| 40 | (ComplexShape.up_mk _ _ (by omega)), inl] |
| 41 | · change homotopyCofiber.inrX f n ≫ _ = _ |
| 42 | simp [homotopyCofiber.mapArrowHom, inr] |
| 43 | |
| 44 | set_option backward.defeqAttrib.useBackward true in |
| 45 | set_option backward.isDefEq.respectTransparency false in |
| 46 | /-- Applying an additive functor to a cone map agrees with the |
| 47 | cone map after the canonical additive-functor comparison. -/ |
| 48 | @[reassoc] |
| 49 | lemma mapHomologicalComplexIso_naturality (f : K ⟶ L) (g : K' ⟶ L') |
| 50 | (a : K ⟶ K') (b : L ⟶ L') (h : f ≫ b = a ≫ g) |
| 51 | (F : C ⥤ D) [F.Additive] : |
| 52 | (F.mapHomologicalComplex ℤᵘᵖ).map (map f g a b h) ≫ |
| 53 | (mapHomologicalComplexIso g F).hom = |
| 54 | (mapHomologicalComplexIso f F).hom ≫ |
| 55 | map ((F.mapHomologicalComplex ℤᵘᵖ).map f) |
| 56 | ((F.mapHomologicalComplex ℤᵘᵖ).map g) |
| 57 | ((F.mapHomologicalComplex ℤᵘᵖ).map a) |
| 58 | ((F.mapHomologicalComplex ℤᵘᵖ).map b) |
| 59 | (by rw [← Functor.map_comp, h, Functor.map_comp]) := by |
| 60 | ext n |
| 61 | simp only [HomologicalComplex.comp_f, Functor.mapHomologicalComplex_map_f] |
| 62 | rw [ext_to_iff _ n (n + 1) rfl] |
| 63 | simp only [mapHomologicalComplexIso, Hom.isoOfComponents_hom_f, |
| 64 | mapHomologicalComplexXIso_eq _ F n (n + 1) rfl, |
| 65 | mapHomologicalComplexXIso'_hom] |
| 66 | constructor <;> |
| 67 | simp only [map, desc_f _ _ _ _ n (n + 1) rfl, Category.assoc, |
| 68 | Preadditive.add_comp, Preadditive.comp_add, |
| 69 | inl_v_fst_v_assoc, inr_f_fst_v_assoc, inl_v_snd_v_assoc, inr_f_snd_v_assoc, |
| 70 | inl_v_fst_v, inr_f_fst_v, inl_v_snd_v, inr_f_snd_v, |
| 71 | HomComplex.Cochain.zero_cochain_comp_v, HomComplex.Cochain.ofHom_v, |
| 72 | HomologicalComplex.comp_f, Functor.mapHomologicalComplex_map_f, |
| 73 | Functor.mapHomologicalComplex_obj_X, |
| 74 | zero_comp, comp_zero, add_zero, zero_add, Category.comp_id, |
| 75 | ← Functor.map_comp_assoc] |
| 76 | |
| 77 | end |
| 78 | |
| 79 | end OAI.Algebra.Homology.MappingConeMapNaturality.CochainComplex.mappingCone |