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.ComplexMultiplication.HomologyFunctorCoherence |
| 2 | import OAI.AlgebraicGeometry.ComplexMultiplication.SectionCohomologySheafNaturality |
| 3 | import Mathlib.CategoryTheory.Limits.Constructions.EpiMono |
| 4 | |
| 5 | /-! # CM Canonical Section Cycles -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.ComplexMultiplication.CMCanonicalSectionCycles |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | section |
| 12 | |
| 13 | /-! # When sections preserve homology, the sheafification class is the canonical comparison -/ |
| 14 | |
| 15 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.TopologicalSpace Opposite _root_.HomologicalComplex |
| 16 | |
| 17 | variable (Y : TopCat.{0}) |
| 18 | (K : CochainComplex (Sheaf (Opens.grothendieckTopology Y) AddCommGrpCat.{0}) ℤ) (n : ℤ) |
| 19 | |
| 20 | set_option backward.defeqAttrib.useBackward true in |
| 21 | set_option backward.isDefEq.respectTransparency false in |
| 22 | set_option backward.isDefEq.respectTransparency.types false in |
| 23 | theorem sectionCohomologyPresheafToSheaf_eq_comparison |
| 24 | [(sheafToPresheaf (Opens.grothendieckTopology Y) AddCommGrpCat.{0}).PreservesLeftHomologyOf |
| 25 | (K.sc n)] : |
| 26 | AlgebraicTopology.Sheaf.CohomologySection.TopCat.sectionCohomologyPresheafToSheaf Y K n = |
| 27 | ((K.sc n).mapHomologyIso |
| 28 | (sheafToPresheaf (Opens.grothendieckTopology Y) AddCommGrpCat.{0})).hom := by |
| 29 | let F := presheafToSheaf (Opens.grothendieckTopology Y) AddCommGrpCat.{0} |
| 30 | let G := sheafToPresheaf (Opens.grothendieckTopology Y) AddCommGrpCat.{0} |
| 31 | let adj := sheafificationAdjunction (Opens.grothendieckTopology Y) AddCommGrpCat.{0} |
| 32 | let c := asIso adj.counit |
| 33 | let : PreservesFiniteLimits (G ⋙ F) := preservesFiniteLimits_of_natIso c.symm |
| 34 | let : PreservesFiniteColimits (G ⋙ F) := preservesFiniteColimits_of_natIso c.symm |
| 35 | let S := K.sc n |
| 36 | let PK := (G.mapHomologicalComplex ℤᵘᵖ).obj K |
| 37 | let e := (PK.sc n).mapHomologyIso F |
| 38 | let h := S.mapHomologyIso G |
| 39 | let cc := NatIso.mapHomologicalComplex c ℤᵘᵖ |
| 40 | have hc : homologyMap (cc.hom.app K) n = |
| 41 | (S.mapHomologyIso (G ⋙ F)).hom ≫ c.hom.app S.homology := by |
| 42 | have ht := HomologyFunctorCoherence.homologyComparison_natTrans S (G ⋙ F) (𝟭 _) c.hom |
| 43 | simpa only [HomologyFunctorCoherence.homologyComparison_id, Category.comp_id, homologyMap] using! ht |
| 44 | have he : (S.mapHomologyIso (G ⋙ F)).hom = e.hom ≫ F.map h.hom := by |
| 45 | exact HomologyFunctorCoherence.homologyComparison_comp S G F |
| 46 | unfold AlgebraicTopology.Sheaf.CohomologySection.TopCat.sectionCohomologyPresheafToSheaf |
| 47 | AlgebraicTopology.Sheaf.CohomologySection.TopCat.sectionCohomologyPresheafSheafificationIso |
| 48 | change toSheafify (Opens.grothendieckTopology Y) (PK.homology n) ≫ |
| 49 | G.map (e.inv ≫ homologyMap (cc.hom.app K) n) = h.hom |
| 50 | rw [hc, he] |
| 51 | simp only [Category.assoc, Iso.inv_hom_id_assoc, G.map_comp] |
| 52 | change (toSheafify (Opens.grothendieckTopology Y) (PK.homology n) ≫ |
| 53 | sheafifyMap (Opens.grothendieckTopology Y) h.hom) ≫ G.map (c.hom.app S.homology) = h.hom |
| 54 | rw [← toSheafify_naturality, Category.assoc] |
| 55 | have ht := adj.right_triangle_components S.homology |
| 56 | simpa only [Category.comp_id] using! congrArg (fun g => h.hom ≫ g) ht |
| 57 | |
| 58 | end |
| 59 | |
| 60 | section |
| 61 | |
| 62 | /-! # The canonical cohomology-sheaf class preserves the actual cocycle sections -/ |
| 63 | |
| 64 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.TopologicalSpace Opposite _root_.HomologicalComplex |
| 65 | |
| 66 | variable (Y : TopCat.{0}) |
| 67 | (K : CochainComplex (Sheaf (Opens.grothendieckTopology Y) AddCommGrpCat.{0}) ℤ) (n : ℤ) |
| 68 | |
| 69 | /-- The canonical map on cocycles, expressed through the actual sheafification unit and counit. -/ |
| 70 | def sectionCycleComparison : |
| 71 | (((sheafToPresheaf (Opens.grothendieckTopology Y) AddCommGrpCat.{0}).mapHomologicalComplex |
| 72 | ℤᵘᵖ).obj K).cycles n ⟶ |
| 73 | (sheafToPresheaf (Opens.grothendieckTopology Y) AddCommGrpCat.{0}).obj (K.cycles n) := |
| 74 | let F := presheafToSheaf (Opens.grothendieckTopology Y) AddCommGrpCat.{0} |
| 75 | let G := sheafToPresheaf (Opens.grothendieckTopology Y) AddCommGrpCat.{0} |
| 76 | let adj := sheafificationAdjunction (Opens.grothendieckTopology Y) AddCommGrpCat.{0} |
| 77 | let P := (G.mapHomologicalComplex ℤᵘᵖ).obj K |
| 78 | let c := (NatIso.mapHomologicalComplex (asIso adj.counit) ℤᵘᵖ).hom.app K |
| 79 | adj.unit.app (P.cycles n) ≫ G.map |
| 80 | (((P.sc n).mapCyclesIso F).inv ≫ cyclesMap c n) |
| 81 | |
| 82 | set_option backward.defeqAttrib.useBackward true in |
| 83 | set_option backward.isDefEq.respectTransparency false in |
| 84 | set_option backward.isDefEq.respectTransparency.types false in |
| 85 | theorem sectionCycleComparison_iCycles : |
| 86 | sectionCycleComparison Y K n ≫ |
| 87 | (sheafToPresheaf (Opens.grothendieckTopology Y) AddCommGrpCat.{0}).map (K.iCycles n) = |
| 88 | (((sheafToPresheaf (Opens.grothendieckTopology Y) AddCommGrpCat.{0}).mapHomologicalComplex |
| 89 | ℤᵘᵖ).obj K).iCycles n := by |
| 90 | let F := presheafToSheaf (Opens.grothendieckTopology Y) AddCommGrpCat.{0} |
| 91 | let G := sheafToPresheaf (Opens.grothendieckTopology Y) AddCommGrpCat.{0} |
| 92 | let adj := sheafificationAdjunction (Opens.grothendieckTopology Y) AddCommGrpCat.{0} |
| 93 | let P := (G.mapHomologicalComplex ℤᵘᵖ).obj K |
| 94 | let c := (NatIso.mapHomologicalComplex (asIso adj.counit) ℤᵘᵖ).hom.app K |
| 95 | let e := (P.sc n).mapCyclesIso F |
| 96 | have he : e.inv ≫ ((F.mapHomologicalComplex ℤᵘᵖ).obj P).iCycles n = |
| 97 | F.map (P.iCycles n) := by |
| 98 | rw [Iso.inv_comp_eq] |
| 99 | exact (ShortComplex.mapCyclesIso_hom_iCycles (P.sc n) F).symm |
| 100 | have hc : cyclesMap c n ≫ K.iCycles n = |
| 101 | ((F.mapHomologicalComplex ℤᵘᵖ).obj P).iCycles n ≫ adj.counit.app (K.X n) := by |
| 102 | simpa only [NatIso.mapHomologicalComplex] using! cyclesMap_i c n |
| 103 | have hn : P.iCycles n ≫ adj.unit.app (G.obj (K.X n)) = |
| 104 | adj.unit.app (P.cycles n) ≫ G.map (F.map (P.iCycles n)) := by |
| 105 | exact adj.unit.naturality (P.iCycles n) |
| 106 | unfold sectionCycleComparison |
| 107 | change (adj.unit.app (P.cycles n) ≫ G.map (e.inv ≫ cyclesMap c n)) ≫ |
| 108 | G.map (K.iCycles n) = P.iCycles n |
| 109 | calc |
| 110 | _ = adj.unit.app (P.cycles n) ≫ |
| 111 | G.map (e.inv ≫ (cyclesMap c n ≫ K.iCycles n)) := by |
| 112 | simp only [G.map_comp, Category.assoc] |
| 113 | _ = adj.unit.app (P.cycles n) ≫ |
| 114 | G.map (F.map (P.iCycles n) ≫ adj.counit.app (K.X n)) := by |
| 115 | rw [hc, ← Category.assoc, he] |
| 116 | _ = P.iCycles n ≫ (adj.unit.app (G.obj (K.X n)) ≫ |
| 117 | G.map (adj.counit.app (K.X n))) := by |
| 118 | rw [G.map_comp, ← Category.assoc, ← hn, Category.assoc] |
| 119 | _ = P.iCycles n := by |
| 120 | simpa only [Category.comp_id] using! congrArg |
| 121 | (fun g => P.iCycles n ≫ g) (adj.right_triangle_components (K.X n)) |
| 122 | |
| 123 | set_option backward.defeqAttrib.useBackward true in |
| 124 | set_option backward.isDefEq.respectTransparency false in |
| 125 | set_option backward.isDefEq.respectTransparency.types false in |
| 126 | theorem sectionCohomologyPresheafToSheaf_cycles : |
| 127 | (((sheafToPresheaf (Opens.grothendieckTopology Y) AddCommGrpCat.{0}).mapHomologicalComplex |
| 128 | ℤᵘᵖ).obj K).homologyπ n ≫ |
| 129 | AlgebraicTopology.Sheaf.CohomologySection.TopCat.sectionCohomologyPresheafToSheaf Y K n = |
| 130 | sectionCycleComparison Y K n ≫ |
| 131 | (sheafToPresheaf (Opens.grothendieckTopology Y) AddCommGrpCat.{0}).map (K.homologyπ n) := by |
| 132 | let F := presheafToSheaf (Opens.grothendieckTopology Y) AddCommGrpCat.{0} |
| 133 | let G := sheafToPresheaf (Opens.grothendieckTopology Y) AddCommGrpCat.{0} |
| 134 | let adj := sheafificationAdjunction (Opens.grothendieckTopology Y) AddCommGrpCat.{0} |
| 135 | let P := (G.mapHomologicalComplex ℤᵘᵖ).obj K |
| 136 | let c := (NatIso.mapHomologicalComplex (asIso adj.counit) ℤᵘᵖ).hom.app K |
| 137 | let e := (P.sc n).mapHomologyIso F |
| 138 | let ec := (P.sc n).mapCyclesIso F |
| 139 | have hp : ((F.mapHomologicalComplex ℤᵘᵖ).obj P).homologyπ n ≫ e.hom = |
| 140 | ec.hom ≫ F.map (P.homologyπ n) := by |
| 141 | exact HomologyFunctorCoherence.homologyComparison_cycles (P.sc n) F |
| 142 | have he : F.map (P.homologyπ n) ≫ e.inv = |
| 143 | ec.inv ≫ ((F.mapHomologicalComplex ℤᵘᵖ).obj P).homologyπ n := by |
| 144 | apply (cancel_mono e.hom).mp |
| 145 | simp only [Category.assoc, Iso.inv_hom_id, Category.comp_id] |
| 146 | rw [hp] |
| 147 | simp only [Iso.inv_hom_id_assoc] |
| 148 | have hn : P.homologyπ n ≫ adj.unit.app (P.homology n) = |
| 149 | adj.unit.app (P.cycles n) ≫ G.map (F.map (P.homologyπ n)) := by |
| 150 | exact adj.unit.naturality (P.homologyπ n) |
| 151 | have hc : ((F.mapHomologicalComplex ℤᵘᵖ).obj P).homologyπ n ≫ homologyMap c n = |
| 152 | cyclesMap c n ≫ K.homologyπ n := by |
| 153 | simpa only [NatIso.mapHomologicalComplex] using! homologyπ_naturality c n |
| 154 | unfold AlgebraicTopology.Sheaf.CohomologySection.TopCat.sectionCohomologyPresheafToSheaf |
| 155 | AlgebraicTopology.Sheaf.CohomologySection.TopCat.sectionCohomologyPresheafSheafificationIso sectionCycleComparison |
| 156 | change P.homologyπ n ≫ (adj.unit.app (P.homology n) ≫ |
| 157 | G.map (e.inv ≫ homologyMap c n)) = |
| 158 | (adj.unit.app (P.cycles n) ≫ G.map (ec.inv ≫ cyclesMap c n)) ≫ G.map (K.homologyπ n) |
| 159 | calc |
| 160 | _ = adj.unit.app (P.cycles n) ≫ |
| 161 | G.map ((F.map (P.homologyπ n) ≫ e.inv) ≫ homologyMap c n) := by |
| 162 | rw [← Category.assoc, hn] |
| 163 | simp only [G.map_comp, Category.assoc] |
| 164 | _ = adj.unit.app (P.cycles n) ≫ |
| 165 | G.map (ec.inv ≫ (cyclesMap c n ≫ K.homologyπ n)) := by |
| 166 | rw [he, Category.assoc, hc] |
| 167 | _ = _ := by simp only [G.map_comp, Category.assoc] |
| 168 | |
| 169 | end |
| 170 | |
| 171 | /-! # Canonical cocycle sections on an actual ambient open -/ |
| 172 | |
| 173 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.TopologicalSpace Opposite _root_.HomologicalComplex |
| 174 | |
| 175 | variable (Y : TopCat.{0}) |
| 176 | (K : CochainComplex (Sheaf (Opens.grothendieckTopology Y) AddCommGrpCat.{0}) ℤ) |
| 177 | (n : ℤ) (V : Opens Y) |
| 178 | |
| 179 | /-- The actual map from cocycle sections to sections of the cycle sheaf. -/ |
| 180 | def openSectionCycleComparison : |
| 181 | (((AlgebraicTopology.Support.DerivedSectionsLocalization.TopCat.Sheaf.supportEvaluation Y V).mapHomologicalComplex ℤᵘᵖ).obj K).cycles n ⟶ |
| 182 | (K.cycles n).obj.obj (op V) := |
| 183 | let G := sheafToPresheaf (Opens.grothendieckTopology Y) AddCommGrpCat.{0} |
| 184 | let E := (evaluation (Opens Y)ᵒᵖ AddCommGrpCat.{0}).obj (op V) |
| 185 | let P := (G.mapHomologicalComplex ℤᵘᵖ).obj K |
| 186 | ((P.sc n).mapCyclesIso E).hom ≫ (sectionCycleComparison Y K n).app (op V) |
| 187 | |
| 188 | set_option backward.defeqAttrib.useBackward true in |
| 189 | set_option backward.isDefEq.respectTransparency false in |
| 190 | set_option backward.isDefEq.respectTransparency.types false in |
| 191 | theorem openSectionCycleComparison_iCycles : |
| 192 | openSectionCycleComparison Y K n V ≫ (K.iCycles n).hom.app (op V) = |
| 193 | (((AlgebraicTopology.Support.DerivedSectionsLocalization.TopCat.Sheaf.supportEvaluation Y V).mapHomologicalComplex ℤᵘᵖ).obj K).iCycles n := by |
| 194 | let G := sheafToPresheaf (Opens.grothendieckTopology Y) AddCommGrpCat.{0} |
| 195 | let E := (evaluation (Opens Y)ᵒᵖ AddCommGrpCat.{0}).obj (op V) |
| 196 | let P := (G.mapHomologicalComplex ℤᵘᵖ).obj K |
| 197 | have hc : (sectionCycleComparison Y K n).app (op V) ≫ |
| 198 | (K.iCycles n).hom.app (op V) = (P.iCycles n).app (op V) := by |
| 199 | simpa only [NatTrans.comp_app] using! |
| 200 | congrArg (fun f => f.app (op V)) (sectionCycleComparison_iCycles Y K n) |
| 201 | unfold openSectionCycleComparison |
| 202 | rw [Category.assoc, hc] |
| 203 | exact ShortComplex.mapCyclesIso_hom_iCycles (P.sc n) E |
| 204 | |
| 205 | set_option backward.defeqAttrib.useBackward true in |
| 206 | set_option backward.isDefEq.respectTransparency false in |
| 207 | set_option backward.isDefEq.respectTransparency.types false in |
| 208 | theorem openSectionCohomology_cycles : |
| 209 | (((AlgebraicTopology.Support.DerivedSectionsLocalization.TopCat.Sheaf.supportEvaluation Y V).mapHomologicalComplex ℤᵘᵖ).obj K).homologyπ n ≫ |
| 210 | AlgebraicTopology.Sheaf.CohomologySection.TopCat.sectionCohomologyToSheafSection Y K n V = |
| 211 | openSectionCycleComparison Y K n V ≫ (K.homologyπ n).hom.app (op V) := by |
| 212 | let G := sheafToPresheaf (Opens.grothendieckTopology Y) AddCommGrpCat.{0} |
| 213 | let E := (evaluation (Opens Y)ᵒᵖ AddCommGrpCat.{0}).obj (op V) |
| 214 | let P := (G.mapHomologicalComplex ℤᵘᵖ).obj K |
| 215 | have hp : (((AlgebraicTopology.Support.DerivedSectionsLocalization.TopCat.Sheaf.supportEvaluation Y V).mapHomologicalComplex ℤᵘᵖ).obj K).homologyπ n ≫ |
| 216 | (AlgebraicTopology.Sheaf.CohomologyStalkVanishing.TopCat.sectionCohomologyPresheafOnOpenIso Y K n V).hom = |
| 217 | ((P.sc n).mapCyclesIso E).hom ≫ (P.homologyπ n).app (op V) := by |
| 218 | exact HomologyFunctorCoherence.homologyComparison_cycles (P.sc n) E |
| 219 | have hc : (P.homologyπ n).app (op V) ≫ |
| 220 | (AlgebraicTopology.Sheaf.CohomologySection.TopCat.sectionCohomologyPresheafToSheaf Y K n).app (op V) = |
| 221 | (sectionCycleComparison Y K n).app (op V) ≫ (K.homologyπ n).hom.app (op V) := by |
| 222 | simpa only [NatTrans.comp_app] using! |
| 223 | congrArg (fun f => f.app (op V)) (sectionCohomologyPresheafToSheaf_cycles Y K n) |
| 224 | unfold AlgebraicTopology.Sheaf.CohomologySection.TopCat.sectionCohomologyToSheafSection openSectionCycleComparison |
| 225 | rw [← Category.assoc, hp, Category.assoc, hc, ← Category.assoc] |
| 226 | |
| 227 | end |
| 228 | |
| 229 | end OAI.AlgebraicGeometry.ComplexMultiplication.CMCanonicalSectionCycles |