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.ShortComplex.PreservesHomology |
| 2 | import Mathlib.CategoryTheory.Abelian.Basic |
| 3 | import Mathlib.CategoryTheory.Preadditive.AdditiveFunctor |
| 4 | import Mathlib.Algebra.Homology.ShortComplex.Abelian |
| 5 | import Mathlib.CategoryTheory.Limits.Constructions.EpiMono |
| 6 | |
| 7 | /-! # Homology Functor Coherence -/ |
| 8 | |
| 9 | namespace OAI.AlgebraicGeometry.ComplexMultiplication.HomologyFunctorCoherence |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | section |
| 14 | |
| 15 | /-! # Coherence of the canonical homology comparison under composition of exact functors -/ |
| 16 | |
| 17 | open _root_.CategoryTheory _root_.CategoryTheory.Limits |
| 18 | |
| 19 | variable {C D E : Type*} [Category* C] [Category* D] [Category* E] |
| 20 | [Abelian C] [Abelian D] [Abelian E] |
| 21 | |
| 22 | set_option backward.defeqAttrib.useBackward true in |
| 23 | set_option backward.isDefEq.respectTransparency false in |
| 24 | set_option backward.isDefEq.respectTransparency.types false in |
| 25 | theorem homologyComparison_cycles (S : ShortComplex C) (F : C ⥤ D) [F.Additive] |
| 26 | [F.PreservesLeftHomologyOf S] : |
| 27 | (S.map F).homologyπ ≫ (S.mapHomologyIso F).hom = |
| 28 | (S.mapCyclesIso F).hom ≫ F.map S.homologyπ := by |
| 29 | let h := S.homologyData.left |
| 30 | rw [ShortComplex.LeftHomologyData.mapHomologyIso_eq h F, |
| 31 | ShortComplex.LeftHomologyData.mapCyclesIso_eq h F] |
| 32 | simp only [Iso.trans_hom, Functor.mapIso_hom, Iso.symm_hom, Category.assoc] |
| 33 | rw [← Category.assoc, ShortComplex.LeftHomologyData.homologyπ_comp_homologyIso_hom] |
| 34 | rw [Category.assoc] |
| 35 | change (h.map F).cyclesIso.hom ≫ F.map h.π ≫ F.map h.homologyIso.inv = _ |
| 36 | rw [← Functor.map_comp, ShortComplex.LeftHomologyData.π_comp_homologyIso_inv, |
| 37 | Functor.map_comp] |
| 38 | |
| 39 | set_option backward.defeqAttrib.useBackward true in |
| 40 | set_option backward.isDefEq.respectTransparency false in |
| 41 | set_option backward.isDefEq.respectTransparency.types false in |
| 42 | theorem cyclesComparison_comp (S : ShortComplex C) (F : C ⥤ D) (G : D ⥤ E) |
| 43 | [F.Additive] [G.Additive] [F.PreservesLeftHomologyOf S] |
| 44 | [G.PreservesLeftHomologyOf (S.map F)] [(F ⋙ G).PreservesLeftHomologyOf S] |
| 45 | [PreservesFiniteLimits F] [PreservesFiniteLimits G] : |
| 46 | (S.mapCyclesIso (F ⋙ G)).hom = |
| 47 | ((S.map F).mapCyclesIso G).hom ≫ G.map (S.mapCyclesIso F).hom := by |
| 48 | apply (cancel_mono (G.map (F.map S.iCycles))).mp |
| 49 | simp only [Category.assoc, ← G.map_comp, |
| 50 | ShortComplex.mapCyclesIso_hom_iCycles] |
| 51 | change (S.mapCyclesIso (F ⋙ G)).hom ≫ (F ⋙ G).map S.iCycles = _ |
| 52 | rw [ShortComplex.mapCyclesIso_hom_iCycles] |
| 53 | rfl |
| 54 | |
| 55 | set_option backward.defeqAttrib.useBackward true in |
| 56 | set_option backward.isDefEq.respectTransparency false in |
| 57 | set_option backward.isDefEq.respectTransparency.types false in |
| 58 | theorem homologyComparison_comp (S : ShortComplex C) (F : C ⥤ D) (G : D ⥤ E) |
| 59 | [F.Additive] [G.Additive] [F.PreservesLeftHomologyOf S] |
| 60 | [G.PreservesLeftHomologyOf (S.map F)] [(F ⋙ G).PreservesLeftHomologyOf S] |
| 61 | [PreservesFiniteLimits F] [PreservesFiniteLimits G] : |
| 62 | (S.mapHomologyIso (F ⋙ G)).hom = |
| 63 | ((S.map F).mapHomologyIso G).hom ≫ G.map (S.mapHomologyIso F).hom := by |
| 64 | apply (cancel_epi ((S.map (F ⋙ G)).homologyπ)).mp |
| 65 | have hG : (S.map (F ⋙ G)).homologyπ ≫ ((S.map F).mapHomologyIso G).hom = |
| 66 | ((S.map F).mapCyclesIso G).hom ≫ G.map (S.map F).homologyπ := by |
| 67 | exact homologyComparison_cycles (S.map F) G |
| 68 | have hF := homologyComparison_cycles S F |
| 69 | have hH := homologyComparison_cycles S (F ⋙ G) |
| 70 | have hcy := cyclesComparison_comp S F G |
| 71 | rw [hH, ← Category.assoc, hG, Category.assoc, ← G.map_comp, |
| 72 | hF, G.map_comp, ← Category.assoc, ← hcy] |
| 73 | rfl |
| 74 | |
| 75 | end |
| 76 | |
| 77 | /-! # The canonical homology comparison respects identities and natural transformations -/ |
| 78 | |
| 79 | open _root_.CategoryTheory _root_.CategoryTheory.Limits |
| 80 | |
| 81 | variable {C D : Type*} [Category* C] [Category* D] [Abelian C] [Abelian D] |
| 82 | |
| 83 | set_option backward.defeqAttrib.useBackward true in |
| 84 | set_option backward.isDefEq.respectTransparency false in |
| 85 | set_option backward.isDefEq.respectTransparency.types false in |
| 86 | theorem homologyComparison_id (S : ShortComplex C) : |
| 87 | (S.mapHomologyIso (𝟭 C)).hom = 𝟙 S.homology := by |
| 88 | have hc : (S.mapCyclesIso (𝟭 C)).hom = 𝟙 S.cycles := by |
| 89 | dsimp only [ShortComplex.map, CategoryTheory.Functor.id_obj, CategoryTheory.Functor.id_map] |
| 90 | apply (cancel_mono S.iCycles).mp |
| 91 | rw [Category.id_comp] |
| 92 | change (S.mapCyclesIso (𝟭 C)).hom ≫ (𝟭 C).map S.iCycles = (S.map (𝟭 C)).iCycles |
| 93 | exact ShortComplex.mapCyclesIso_hom_iCycles S (𝟭 C) |
| 94 | apply (cancel_epi S.homologyπ).mp |
| 95 | dsimp only [ShortComplex.map, CategoryTheory.Functor.id_obj, CategoryTheory.Functor.id_map] |
| 96 | have h := homologyComparison_cycles S (𝟭 C) |
| 97 | dsimp only [ShortComplex.map, CategoryTheory.Functor.id_obj, CategoryTheory.Functor.id_map] at h |
| 98 | rw [Category.comp_id] |
| 99 | change (S.map (𝟭 C)).homologyπ ≫ (S.mapHomologyIso (𝟭 C)).hom = _ |
| 100 | simpa only [hc, CategoryTheory.Functor.id_map, Category.id_comp] using! h |
| 101 | |
| 102 | set_option backward.defeqAttrib.useBackward true in |
| 103 | set_option backward.isDefEq.respectTransparency false in |
| 104 | set_option backward.isDefEq.respectTransparency.types false in |
| 105 | theorem homologyComparison_natTrans (S : ShortComplex C) (F G : C ⥤ D) |
| 106 | [F.Additive] [G.Additive] [F.PreservesLeftHomologyOf S] |
| 107 | [G.PreservesLeftHomologyOf S] [F.PreservesRightHomologyOf S] |
| 108 | [G.PreservesRightHomologyOf S] (τ : F ⟶ G) : |
| 109 | ShortComplex.homologyMap (S.mapNatTrans τ) ≫ (S.mapHomologyIso G).hom = |
| 110 | (S.mapHomologyIso F).hom ≫ τ.app S.homology := by |
| 111 | rw [ShortComplex.homologyMap_mapNatTrans, Category.assoc, Category.assoc, |
| 112 | Iso.inv_hom_id, Category.comp_id] |
| 113 | |
| 114 | end |
| 115 | |
| 116 | end OAI.AlgebraicGeometry.ComplexMultiplication.HomologyFunctorCoherence |