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 | |
| 4 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | you may not use this file except in compliance with the License. |
| 6 | You may obtain a copy of the License at |
| 7 | |
| 8 | https://www.apache.org/licenses/LICENSE-2.0 |
| 9 | |
| 10 | Unless required by applicable law or agreed to in writing, software |
| 11 | distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | See the License for the specific language governing permissions and |
| 14 | limitations under the License. |
| 15 | This file has been modified. |
| 16 | -/ |
| 17 | import OAI.AlgebraicTopology.Support.CohomologyFlasqueModel |
| 18 | import OAI.AlgebraicTopology.Support.CohomologyInjectiveRestrict |
| 19 | import OAI.Algebra.Homology.Notation |
| 20 | |
| 21 | /-! # Cohomology Flasque Restrict -/ |
| 22 | |
| 23 | namespace OAI.AlgebraicTopology.Support.CohomologyFlasqueRestrict.TopCat.Sheaf |
| 24 | |
| 25 | noncomputable section |
| 26 | |
| 27 | open _root_.TopCat |
| 28 | open _root_.TopCat.Sheaf |
| 29 | |
| 30 | /-! |
| 31 | # Naturality of the flasque model in the pair |
| 32 | |
| 33 | The identification `H^n(V, V ⊓ U; F) ≃ H^n(Γ_{X ∖ U}(V, K))` commutes with the map of pairs and |
| 34 | with support enlargement followed by restriction. |
| 35 | -/ |
| 36 | |
| 37 | open _root_.CategoryTheory Limits Abelian Opposite _root_.TopologicalSpace |
| 38 | |
| 39 | variable (X : TopCat.{0}) |
| 40 | |
| 41 | variable {U V U' V' : Opens X} (hU : U' ≤ U) (hV : V' ≤ V) |
| 42 | |
| 43 | lemma supportedSectionsRestriction_naturality |
| 44 | {K L : CochainComplex (Sheaf AddCommGrpCat X) ℤ} (φ : K ⟶ L) : |
| 45 | CohomologyInjectiveModel.TopCat.Sheaf.supportedSectionsRestriction X hU hV K ≫ |
| 46 | ((DerivedSectionsLocalization.TopCat.Sheaf.supportEvaluation X V').mapHomologicalComplex ℤᵘᵖ).map |
| 47 | (((DerivedSections.TopCat.Sheaf.sheafSectionsSupportedOutside X U').mapHomologicalComplex ℤᵘᵖ).map φ) = |
| 48 | ((DerivedSectionsLocalization.TopCat.Sheaf.supportEvaluation X V).mapHomologicalComplex ℤᵘᵖ).map |
| 49 | (((DerivedSections.TopCat.Sheaf.sheafSectionsSupportedOutside X U).mapHomologicalComplex ℤᵘᵖ).map φ) ≫ |
| 50 | CohomologyInjectiveModel.TopCat.Sheaf.supportedSectionsRestriction X hU hV L := by |
| 51 | have h1 := (NatTrans.mapHomologicalComplex (SectionRestrictionCone.TopCat.Sheaf.supportEvaluationRestriction X (homOfLE hV)) |
| 52 | ℤᵘᵖ).naturality (((DerivedSections.TopCat.Sheaf.sheafSectionsSupportedOutside X U').mapHomologicalComplex ℤᵘᵖ).map φ) |
| 53 | have h2 := (NatTrans.mapHomologicalComplex (DerivedSectionsNaturality.TopCat.Sheaf.sheafSectionsSupportedOutsideMap X hU) |
| 54 | ℤᵘᵖ).naturality φ |
| 55 | dsimp only [CohomologyInjectiveModel.TopCat.Sheaf.supportedSectionsRestriction, SectionRestrictionCone.TopCat.Sheaf.sectionComplexRestriction] |
| 56 | simp only [Category.assoc] |
| 57 | rw [← h1] |
| 58 | simp only [← Category.assoc] |
| 59 | rw [← Functor.map_comp, ← Functor.map_comp, ← h2] |
| 60 | |
| 61 | variable {W W' : Opens X} (hW : V ⊓ U = W) (hW' : V' ⊓ U' = W') (hWW : W' ≤ W) |
| 62 | (F : Sheaf AddCommGrpCat X) (K : CochainComplex (Sheaf AddCommGrpCat X) ℤ) [K.IsStrictlyGE 0] |
| 63 | (ι : (CochainComplex.singleFunctor _ 0).obj F ⟶ K) [Mono ι] [QuasiIso ι] |
| 64 | (hK : ∀ n, IsFlasque (K.X n)) |
| 65 | |
| 66 | attribute [local implicit_reducible] TopCat.Sheaf TopCat.instCategorySheaf |
| 67 | TopCat.Sheaf.instAbelian |
| 68 | |
| 69 | variable [HasExt.{1} (CategoryTheory.Sheaf (Opens.grothendieckTopology X) AddCommGrpCat)] |
| 70 | |
| 71 | /-- The relative class obtained by restricting the pair before applying a flasque supported-section |
| 72 | model. -/ |
| 73 | def flasqueRelativeClassAfterRestriction |
| 74 | (n : ℕ) |
| 75 | (x : OAI.CategoryTheory.Sites.SheafCohomologyPair.Sheaf.relH F n |
| 76 | (homOfLE (hW ▸ inf_le_left : W ≤ V))) : |
| 77 | (((DerivedSectionsLocalization.TopCat.Sheaf.supportEvaluation X V').mapHomologicalComplex ℤᵘᵖ).obj |
| 78 | (((DerivedSections.TopCat.Sheaf.sheafSectionsSupportedOutside X U').mapHomologicalComplex ℤᵘᵖ).obj |
| 79 | K)).homology n := |
| 80 | CohomologyFlasqueModel.TopCat.Sheaf.relHAddEquivSupportedSectionsHomologyOfFlasque |
| 81 | X F K ι U' V' W' hW' hK n |
| 82 | (OAI.CategoryTheory.Sites.SheafCohomologyPair.Sheaf.relH.restrict F _ _ |
| 83 | (homOfLE hWW) (homOfLE hV) (Subsingleton.elim _ _) n x) |
| 84 | |
| 85 | /-- The flasque supported-section class obtained by enlarging support and restricting sections. -/ |
| 86 | def flasqueSupportedClassAfterRestriction |
| 87 | (n : ℕ) |
| 88 | (x : OAI.CategoryTheory.Sites.SheafCohomologyPair.Sheaf.relH F n |
| 89 | (homOfLE (hW ▸ inf_le_left : W ≤ V))) : |
| 90 | (((DerivedSectionsLocalization.TopCat.Sheaf.supportEvaluation X V').mapHomologicalComplex ℤᵘᵖ).obj |
| 91 | (((DerivedSections.TopCat.Sheaf.sheafSectionsSupportedOutside X U').mapHomologicalComplex ℤᵘᵖ).obj |
| 92 | K)).homology n := |
| 93 | HomologicalComplex.homologyMap |
| 94 | (CohomologyInjectiveModel.TopCat.Sheaf.supportedSectionsRestriction X hU hV K) n |
| 95 | (CohomologyFlasqueModel.TopCat.Sheaf.relHAddEquivSupportedSectionsHomologyOfFlasque |
| 96 | X F K ι U V W hW hK n x) |
| 97 | |
| 98 | omit [HasExt (CategoryTheory.Sheaf (Opens.grothendieckTopology X) AddCommGrpCat)] in |
| 99 | /-- The comparison from a flasque resolution to the canonical injective resolution commutes on |
| 100 | homology with support enlargement and section restriction. -/ |
| 101 | lemma supportedSectionsResolution_homology_naturality |
| 102 | (n : ℕ) : |
| 103 | HomologicalComplex.homologyMap |
| 104 | (CohomologyInjectiveModel.TopCat.Sheaf.supportedSectionsRestriction X hU hV K) n ≫ |
| 105 | HomologicalComplex.homologyMap |
| 106 | (((DerivedSectionsLocalization.TopCat.Sheaf.supportEvaluation X V').mapHomologicalComplex ℤᵘᵖ).map |
| 107 | (((DerivedSections.TopCat.Sheaf.sheafSectionsSupportedOutside X U').mapHomologicalComplex ℤᵘᵖ).map |
| 108 | (CohomologyFlasqueModel.TopCat.Sheaf.resolutionToInjective X F K ι))) n = |
| 109 | HomologicalComplex.homologyMap |
| 110 | (((DerivedSectionsLocalization.TopCat.Sheaf.supportEvaluation X V).mapHomologicalComplex ℤᵘᵖ).map |
| 111 | (((DerivedSections.TopCat.Sheaf.sheafSectionsSupportedOutside X U).mapHomologicalComplex ℤᵘᵖ).map |
| 112 | (CohomologyFlasqueModel.TopCat.Sheaf.resolutionToInjective X F K ι))) n ≫ |
| 113 | HomologicalComplex.homologyMap |
| 114 | (CohomologyInjectiveModel.TopCat.Sheaf.supportedSectionsRestriction X hU hV |
| 115 | (CohomologyFlasqueModel.TopCat.Sheaf.injectiveResolutionComplex X F)) n := by |
| 116 | rw [← HomologicalComplex.homologyMap_comp, ← HomologicalComplex.homologyMap_comp, |
| 117 | supportedSectionsRestriction_naturality] |
| 118 | |
| 119 | /-- The quasi-isomorphism from a flasque resolution to the canonical injective resolution after |
| 120 | taking supported-section cohomology. -/ |
| 121 | def supportedSectionsResolutionHomologyIso |
| 122 | (U V : Opens X) (n : ℕ) : |
| 123 | (((DerivedSectionsLocalization.TopCat.Sheaf.supportEvaluation X V).mapHomologicalComplex ℤᵘᵖ).obj |
| 124 | (((DerivedSections.TopCat.Sheaf.sheafSectionsSupportedOutside X U).mapHomologicalComplex ℤᵘᵖ).obj K)).homology n ≅ |
| 125 | (((DerivedSectionsLocalization.TopCat.Sheaf.supportEvaluation X V).mapHomologicalComplex ℤᵘᵖ).obj |
| 126 | (((DerivedSections.TopCat.Sheaf.sheafSectionsSupportedOutside X U).mapHomologicalComplex ℤᵘᵖ).obj |
| 127 | (CohomologyFlasqueModel.TopCat.Sheaf.injectiveResolutionComplex X F))).homology n := by |
| 128 | letI := CohomologyFlasqueModel.TopCat.Sheaf.supportedSections_map_resolutionToInjective_quasiIso |
| 129 | X F K ι U V hK |
| 130 | exact asIso (HomologicalComplex.homologyMap |
| 131 | (((DerivedSectionsLocalization.TopCat.Sheaf.supportEvaluation X V).mapHomologicalComplex ℤᵘᵖ).map |
| 132 | (((DerivedSections.TopCat.Sheaf.sheafSectionsSupportedOutside X U).mapHomologicalComplex ℤᵘᵖ).map |
| 133 | (CohomologyFlasqueModel.TopCat.Sheaf.resolutionToInjective X F K ι))) n) |
| 134 | |
| 135 | omit [HasExt (CategoryTheory.Sheaf (Opens.grothendieckTopology X) AddCommGrpCat)] in |
| 136 | /-- Inverting the flasque-to-injective comparison preserves its naturality with respect to the |
| 137 | pair. -/ |
| 138 | lemma supportedSectionsResolution_homology_inverse_naturality |
| 139 | (n : ℕ) : |
| 140 | (supportedSectionsResolutionHomologyIso |
| 141 | X F K ι hK U V n).inv ≫ |
| 142 | HomologicalComplex.homologyMap |
| 143 | (CohomologyInjectiveModel.TopCat.Sheaf.supportedSectionsRestriction X hU hV K) n = |
| 144 | HomologicalComplex.homologyMap |
| 145 | (CohomologyInjectiveModel.TopCat.Sheaf.supportedSectionsRestriction X hU hV |
| 146 | (CohomologyFlasqueModel.TopCat.Sheaf.injectiveResolutionComplex X F)) n ≫ |
| 147 | (supportedSectionsResolutionHomologyIso |
| 148 | X F K ι hK U' V' n).inv := by |
| 149 | let e := supportedSectionsResolutionHomologyIso |
| 150 | X F K ι hK U V n |
| 151 | let e' := supportedSectionsResolutionHomologyIso |
| 152 | X F K ι hK U' V' n |
| 153 | change e.inv ≫ HomologicalComplex.homologyMap |
| 154 | (CohomologyInjectiveModel.TopCat.Sheaf.supportedSectionsRestriction X hU hV K) n = |
| 155 | HomologicalComplex.homologyMap |
| 156 | (CohomologyInjectiveModel.TopCat.Sheaf.supportedSectionsRestriction X hU hV |
| 157 | (CohomologyFlasqueModel.TopCat.Sheaf.injectiveResolutionComplex X F)) n ≫ e'.inv |
| 158 | have h := supportedSectionsResolution_homology_naturality |
| 159 | X hU hV F K ι n |
| 160 | change HomologicalComplex.homologyMap |
| 161 | (CohomologyInjectiveModel.TopCat.Sheaf.supportedSectionsRestriction X hU hV K) n ≫ e'.hom = |
| 162 | e.hom ≫ HomologicalComplex.homologyMap |
| 163 | (CohomologyInjectiveModel.TopCat.Sheaf.supportedSectionsRestriction X hU hV |
| 164 | (CohomologyFlasqueModel.TopCat.Sheaf.injectiveResolutionComplex X F)) n at h |
| 165 | apply (Iso.inv_comp_eq e).2 |
| 166 | rw [← Category.assoc, ← h, Category.assoc, e'.hom_inv_id, Category.comp_id] |
| 167 | |
| 168 | omit [HasExt (CategoryTheory.Sheaf (Opens.grothendieckTopology X) AddCommGrpCat)] in |
| 169 | /-- Pointwise, the inverse resolution comparison carries support enlargement and section |
| 170 | restriction across the flasque and injective models. -/ |
| 171 | lemma supportedSectionsResolution_homology_inverse_naturality_apply |
| 172 | (n : ℕ) |
| 173 | (z : (((DerivedSectionsLocalization.TopCat.Sheaf.supportEvaluation X V).mapHomologicalComplex ℤᵘᵖ).obj |
| 174 | (((DerivedSections.TopCat.Sheaf.sheafSectionsSupportedOutside X U).mapHomologicalComplex ℤᵘᵖ).obj |
| 175 | (CohomologyFlasqueModel.TopCat.Sheaf.injectiveResolutionComplex X F))).homology n) : |
| 176 | (supportedSectionsResolutionHomologyIso |
| 177 | X F K ι hK U' V' n).inv.hom |
| 178 | ((HomologicalComplex.homologyMap |
| 179 | (CohomologyInjectiveModel.TopCat.Sheaf.supportedSectionsRestriction X hU hV |
| 180 | (CohomologyFlasqueModel.TopCat.Sheaf.injectiveResolutionComplex X F)) n).hom z) = |
| 181 | (HomologicalComplex.homologyMap |
| 182 | (CohomologyInjectiveModel.TopCat.Sheaf.supportedSectionsRestriction X hU hV K) n).hom |
| 183 | ((supportedSectionsResolutionHomologyIso |
| 184 | X F K ι hK U V n).inv.hom z) := by |
| 185 | have h := congrArg AddCommGrpCat.Hom.hom |
| 186 | (supportedSectionsResolution_homology_inverse_naturality |
| 187 | X hU hV F K ι hK n) |
| 188 | rw [AddCommGrpCat.hom_comp, AddCommGrpCat.hom_comp] at h |
| 189 | exact (DFunLike.congr_fun h z).symm |
| 190 | |
| 191 | set_option backward.defeqAttrib.useBackward true in |
| 192 | set_option backward.isDefEq.respectTransparency false in |
| 193 | /-- The flasque model is natural in the pair. -/ |
| 194 | theorem relHAddEquivSupportedSectionsHomologyOfFlasque_restrict (n : ℕ) |
| 195 | (x : OAI.CategoryTheory.Sites.SheafCohomologyPair.Sheaf.relH F n (homOfLE (hW ▸ inf_le_left : W ≤ V))) : |
| 196 | flasqueRelativeClassAfterRestriction |
| 197 | (X := X) (hV := hV) (hW := hW) (hW' := hW') (hWW := hWW) F K ι hK n x = |
| 198 | flasqueSupportedClassAfterRestriction |
| 199 | (X := X) (hU := hU) (hV := hV) (hW := hW) F K ι hK n x := by |
| 200 | have := CohomologyFlasqueModel.TopCat.Sheaf.supportedSections_map_resolutionToInjective_quasiIso X F K ι U V hK |
| 201 | have := CohomologyFlasqueModel.TopCat.Sheaf.supportedSections_map_resolutionToInjective_quasiIso X F K ι U' V' hK |
| 202 | have : (CohomologyFlasqueModel.TopCat.Sheaf.injectiveResolutionComplex X F).IsKInjective := |
| 203 | CohomologyFlasqueModel.TopCat.Sheaf.injectiveResolutionComplex_isKInjective X F |
| 204 | have : QuasiIso (CohomologyFlasqueModel.TopCat.Sheaf.injectiveResolutionAugmentation X F) := |
| 205 | CohomologyFlasqueModel.TopCat.Sheaf.injectiveResolutionAugmentation_quasiIso X F |
| 206 | dsimp only [flasqueRelativeClassAfterRestriction, |
| 207 | flasqueSupportedClassAfterRestriction, |
| 208 | CohomologyFlasqueModel.TopCat.Sheaf.relHAddEquivSupportedSectionsHomologyOfFlasque, AddEquiv.trans_apply] |
| 209 | rw [@CohomologyInjectiveRestrict.TopCat.Sheaf.relHAddEquivSupportedSectionsHomology_restrict X U V W U' V' W' hW hW' hU hV hWW _ F |
| 210 | (CohomologyFlasqueModel.TopCat.Sheaf.injectiveResolutionComplex X F) (CohomologyFlasqueModel.TopCat.Sheaf.injectiveResolutionComplex_isKInjective X F) |
| 211 | (CohomologyFlasqueModel.TopCat.Sheaf.injectiveResolutionAugmentation X F) (CohomologyFlasqueModel.TopCat.Sheaf.injectiveResolutionAugmentation_quasiIso X F) n x, |
| 212 | Iso.addCommGroupIsoToAddEquiv_apply, Iso.addCommGroupIsoToAddEquiv_apply, Iso.symm_hom, |
| 213 | Iso.symm_hom] |
| 214 | change (supportedSectionsResolutionHomologyIso |
| 215 | X F K ι hK U' V' n).inv.hom |
| 216 | ((HomologicalComplex.homologyMap |
| 217 | (CohomologyInjectiveModel.TopCat.Sheaf.supportedSectionsRestriction X hU hV |
| 218 | (CohomologyFlasqueModel.TopCat.Sheaf.injectiveResolutionComplex X F)) n).hom |
| 219 | (CohomologyInjectiveModel.TopCat.Sheaf.relHAddEquivSupportedSectionsHomology |
| 220 | X U V W hW F |
| 221 | (CohomologyFlasqueModel.TopCat.Sheaf.injectiveResolutionComplex X F) |
| 222 | (CohomologyFlasqueModel.TopCat.Sheaf.injectiveResolutionAugmentation X F) n x)) = |
| 223 | (HomologicalComplex.homologyMap |
| 224 | (CohomologyInjectiveModel.TopCat.Sheaf.supportedSectionsRestriction X hU hV K) n).hom |
| 225 | ((supportedSectionsResolutionHomologyIso |
| 226 | X F K ι hK U V n).inv.hom |
| 227 | (CohomologyInjectiveModel.TopCat.Sheaf.relHAddEquivSupportedSectionsHomology |
| 228 | X U V W hW F |
| 229 | (CohomologyFlasqueModel.TopCat.Sheaf.injectiveResolutionComplex X F) |
| 230 | (CohomologyFlasqueModel.TopCat.Sheaf.injectiveResolutionAugmentation X F) n x)) |
| 231 | exact supportedSectionsResolution_homology_inverse_naturality_apply |
| 232 | X hU hV F K ι hK n |
| 233 | (CohomologyInjectiveModel.TopCat.Sheaf.relHAddEquivSupportedSectionsHomology |
| 234 | X U V W hW F |
| 235 | (CohomologyFlasqueModel.TopCat.Sheaf.injectiveResolutionComplex X F) |
| 236 | (CohomologyFlasqueModel.TopCat.Sheaf.injectiveResolutionAugmentation X F) n x) |
| 237 | |
| 238 | end |
| 239 | |
| 240 | end OAI.AlgebraicTopology.Support.CohomologyFlasqueRestrict.TopCat.Sheaf |