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.AlgebraicTopology.Sheaf.OpenInjectiveResolution |
| 7 | import OAI.AlgebraicTopology.Sheaf.FlasqueExtendNat |
| 8 | import OAI.CategoryTheory.ConcreteCategory.Notation |
| 9 | |
| 10 | /-! # Open Injective To -/ |
| 11 | |
| 12 | namespace OAI.AlgebraicTopology.Sheaf.OpenInjectiveTo |
| 13 | |
| 14 | noncomputable section |
| 15 | |
| 16 | open _root_.CochainComplex |
| 17 | open _root_.TopCat |
| 18 | open _root_.TopCat.Sheaf |
| 19 | |
| 20 | /-! |
| 21 | # Comparing an ambient resolution with a resolution on an open subspace |
| 22 | |
| 23 | -/ |
| 24 | |
| 25 | /-! ### Constructions used only in proofs -/ |
| 26 | |
| 27 | namespace TopCat |
| 28 | |
| 29 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.TopologicalSpace Opposite |
| 30 | |
| 31 | variable (X : TopCat.{0}) (U : Opens X) (A : AddCommGrpCat.{0}) |
| 32 | |
| 33 | /-- Let `U` be open in a topological space `X`, and let `A` be an abelian group. For the chosen |
| 34 | injective resolution `I` of the constant sheaf `A_X`, this is the nonnegative cochain complex |
| 35 | `I|_U`, obtained by restricting each sheaf and differential to `U`. -/ |
| 36 | def restrictedAmbientConstantResolution : |
| 37 | CochainComplex (Sheaf AddCommGrpCat.{0} (TopCat.of U)) ℕ := |
| 38 | ((U.isOpenEmbedding.sheafPullback AddCommGrpCat).mapHomologicalComplex (.up ℕ)).obj |
| 39 | (OpenInjectiveResolution.TopCat.ambientConstantInjectiveResolution X A).cocomplex |
| 40 | |
| 41 | /-- Let `U` be open in a topological space `X`, and let `A` be an abelian group. For the chosen |
| 42 | injective resolution `I` of the constant sheaf `A_X`, this augmentation `A_U[0] → I|_U` |
| 43 | restricts the augmentation of `I` and identifies `A_X|_U` with `A_U`. -/ |
| 44 | def restrictedAmbientConstantAugmentation : |
| 45 | (CochainComplex.single₀ (Sheaf AddCommGrpCat.{0} (TopCat.of U))).obj |
| 46 | 𝓒[↧U; A] ⟶ |
| 47 | restrictedAmbientConstantResolution X U A := |
| 48 | (CochainComplex.single₀ _).map (OpenRestriction.TopCat.constantOpenSheafRestrictionIso X U A).hom ≫ |
| 49 | (HomologicalComplex.singleMapHomologicalComplex |
| 50 | (U.isOpenEmbedding.sheafPullback AddCommGrpCat) (.up ℕ) 0).inv.app _ ≫ |
| 51 | ((U.isOpenEmbedding.sheafPullback AddCommGrpCat).mapHomologicalComplex (.up ℕ)).map |
| 52 | (OpenInjectiveResolution.TopCat.ambientConstantInjectiveResolution X A).ι |
| 53 | |
| 54 | set_option backward.isDefEq.respectTransparency false in |
| 55 | instance restrictedAmbientConstantAugmentation_mono : |
| 56 | Mono (restrictedAmbientConstantAugmentation X U A) := by |
| 57 | let : Mono (OpenInjectiveResolution.TopCat.ambientConstantInjectiveResolution X A).ι := |
| 58 | HomologicalComplex.mono_of_mono_f _ (fun _ => inferInstance) |
| 59 | dsimp only [restrictedAmbientConstantAugmentation] |
| 60 | infer_instance |
| 61 | |
| 62 | set_option backward.isDefEq.respectTransparency false in |
| 63 | instance restrictedAmbientConstantAugmentation_quasiIso : |
| 64 | QuasiIso (restrictedAmbientConstantAugmentation X U A) := by |
| 65 | let : QuasiIso (OpenInjectiveResolution.TopCat.ambientConstantInjectiveResolution X A).ι := |
| 66 | (OpenInjectiveResolution.TopCat.ambientConstantInjectiveResolution X A).quasiIso |
| 67 | have : QuasiIso |
| 68 | (((U.isOpenEmbedding.sheafPullback AddCommGrpCat).mapHomologicalComplex (.up ℕ)).map |
| 69 | (OpenInjectiveResolution.TopCat.ambientConstantInjectiveResolution X A).ι) := |
| 70 | HomologicalComplex.quasiIso_map_of_preservesHomology _ _ |
| 71 | dsimp only [restrictedAmbientConstantAugmentation] |
| 72 | infer_instance |
| 73 | |
| 74 | /-- Let `U` be open in a topological space `X`, and let `A` be an abelian group. For the chosen |
| 75 | injective resolutions `I,J` of the constant sheaves `A_X,A_U`, this cochain map `I|_U → J` |
| 76 | extends the identity on `A_U`: composing with the restricted augmentation gives the augmentation |
| 77 | of `J`. -/ |
| 78 | def restrictedAmbientToOpenResolution : |
| 79 | restrictedAmbientConstantResolution X U A ⟶ |
| 80 | (OpenInjectiveResolution.TopCat.ambientConstantInjectiveResolution (TopCat.of U) A).cocomplex := |
| 81 | Algebra.Homology.LiftToInjective.CochainComplex.liftToInjectiveNat (restrictedAmbientConstantAugmentation X U A) |
| 82 | (OpenInjectiveResolution.TopCat.ambientConstantInjectiveResolution (TopCat.of U) A).ι |
| 83 | (fun n => (OpenInjectiveResolution.TopCat.ambientConstantInjectiveResolution (TopCat.of U) A).injective n) |
| 84 | |
| 85 | instance restrictedAmbientConstantResolution_isFlasque (n : ℕ) : |
| 86 | ((restrictedAmbientConstantResolution X U A).X n).IsFlasque := by |
| 87 | change ((U.isOpenEmbedding.sheafPullback AddCommGrpCat).obj |
| 88 | ((OpenInjectiveResolution.TopCat.ambientConstantInjectiveResolution X A).cocomplex.X n)).IsFlasque |
| 89 | let : IsFlasque ((OpenInjectiveResolution.TopCat.ambientConstantInjectiveResolution X A).cocomplex.X n) := |
| 90 | @InjectiveFlasque.TopCat.injective_isFlasque _ _ ((OpenInjectiveResolution.TopCat.ambientConstantInjectiveResolution X A).injective n) |
| 91 | exact OpenRestriction.TopCat.openSheafRestriction_isFlasque X U _ |
| 92 | |
| 93 | /-- Let `U` be open in a topological space `X`, with inclusion `j`, and let `A` be an abelian group. |
| 94 | For the chosen injective resolution `I` of `A_X`, this cochain map `I → j_*(I|_U)` restricts |
| 95 | sections to `U`. In degree `q`, on an open `V`, it is `I^q(V) → I^q(V ∩ U)`. -/ |
| 96 | def ambientInjectiveRestriction : |
| 97 | (OpenInjectiveResolution.TopCat.ambientConstantInjectiveResolution X A).cocomplex ⟶ |
| 98 | ((pushforward AddCommGrpCat U.inclusion').mapHomologicalComplex (.up ℕ)).obj |
| 99 | (restrictedAmbientConstantResolution X U A) where |
| 100 | f n := (Support.DerivedSections.TopCat.Sheaf.toOpenRestrictionPushforward X U).app |
| 101 | ((OpenInjectiveResolution.TopCat.ambientConstantInjectiveResolution X A).cocomplex.X n) |
| 102 | comm' i j _h := ((Support.DerivedSections.TopCat.Sheaf.toOpenRestrictionPushforward X U).naturality |
| 103 | ((OpenInjectiveResolution.TopCat.ambientConstantInjectiveResolution X A).cocomplex.d i j)).symm |
| 104 | |
| 105 | /-- Let `U` be open in a topological space `X`, with inclusion `j`, and let `A` be an abelian group. |
| 106 | For the chosen injective resolutions `I,J` of the constant sheaves `A_X,A_U`, this map `I → |
| 107 | j_*J` composes restriction with the direct image of the comparison `I|_U → J` extending the |
| 108 | identity on `A_U`. -/ |
| 109 | def ambientToOpenInjectiveResolution : |
| 110 | (OpenInjectiveResolution.TopCat.ambientConstantInjectiveResolution X A).cocomplex ⟶ |
| 111 | ((pushforward AddCommGrpCat U.inclusion').mapHomologicalComplex (.up ℕ)).obj |
| 112 | (OpenInjectiveResolution.TopCat.ambientConstantInjectiveResolution (TopCat.of U) A).cocomplex := |
| 113 | ambientInjectiveRestriction X U A ≫ |
| 114 | ((pushforward AddCommGrpCat U.inclusion').mapHomologicalComplex (.up ℕ)).map |
| 115 | (restrictedAmbientToOpenResolution X U A) |
| 116 | |
| 117 | /-- Let `U` be open in a topological space `X`, with inclusion `j`, and let `A` be an abelian group. |
| 118 | For the chosen injective resolutions `I,J` of the constant sheaves `A_X,A_U`, this map |
| 119 | `Γ(U,I|_U) → Γ(U,J)` takes sections of the comparison extending the identity on `A_U`. Both |
| 120 | sides are expressed as global sections of direct images under `j`. -/ |
| 121 | def globalRestrictedAmbientToOpenResolution : |
| 122 | ((FlasqueBoundedBelow.TopCat.IsFlasque.BoundedBelowComplex.globalSectionsFunctor X).mapHomologicalComplex |
| 123 | (.up ℕ)).obj |
| 124 | (((pushforward AddCommGrpCat U.inclusion').mapHomologicalComplex (.up ℕ)).obj |
| 125 | (restrictedAmbientConstantResolution X U A)) ⟶ |
| 126 | ((FlasqueBoundedBelow.TopCat.IsFlasque.BoundedBelowComplex.globalSectionsFunctor X).mapHomologicalComplex |
| 127 | (.up ℕ)).obj |
| 128 | (((pushforward AddCommGrpCat U.inclusion').mapHomologicalComplex (.up ℕ)).obj |
| 129 | (OpenInjectiveResolution.TopCat.ambientConstantInjectiveResolution (TopCat.of U) A).cocomplex) := |
| 130 | ((FlasqueBoundedBelow.TopCat.IsFlasque.BoundedBelowComplex.globalSectionsFunctor X).mapHomologicalComplex |
| 131 | (.up ℕ)).map |
| 132 | (((pushforward AddCommGrpCat U.inclusion').mapHomologicalComplex (.up ℕ)).map |
| 133 | (restrictedAmbientToOpenResolution X U A)) |
| 134 | |
| 135 | end TopCat |
| 136 | |
| 137 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.TopologicalSpace Opposite |
| 138 | |
| 139 | namespace CochainComplex |
| 140 | |
| 141 | variable {C : Type*} [Category* C] [Abelian C] |
| 142 | |
| 143 | variable {A K I : CochainComplex C ℕ} (a : A ⟶ K) [Mono a] [QuasiIso a] |
| 144 | (r : A ⟶ I) (hI : ∀ n, Injective (I.X n)) |
| 145 | |
| 146 | set_option backward.defeqAttrib.useBackward true in |
| 147 | set_option backward.isDefEq.respectTransparency false in |
| 148 | @[reassoc (attr := simp)] |
| 149 | lemma comp_liftToInjectiveNat : a ≫ Algebra.Homology.LiftToInjective.CochainComplex.liftToInjectiveNat a r hI = r := by |
| 150 | let := Algebra.Homology.LiftToInjective.CochainComplex.mono_extendMap_nat a |
| 151 | apply (ComplexShape.embeddingUpNat.extendFunctor C).map_injective |
| 152 | rw [Functor.map_comp] |
| 153 | dsimp only [Algebra.Homology.LiftToInjective.CochainComplex.liftToInjectiveNat] |
| 154 | rw [Functor.map_preimage] |
| 155 | exact Algebra.Homology.LiftToInjective.CochainComplex.comp_liftToInjective |
| 156 | (HomologicalComplex.extendMap a ComplexShape.embeddingUpNat) |
| 157 | (HomologicalComplex.extendMap r ComplexShape.embeddingUpNat) |
| 158 | (Algebra.Homology.LiftToInjective.CochainComplex.injective_extend_nat I hI) |
| 159 | |
| 160 | lemma liftToInjectiveNat_quasiIso [QuasiIso r] : QuasiIso (Algebra.Homology.LiftToInjective.CochainComplex.liftToInjectiveNat a r hI) := by |
| 161 | have : QuasiIso (a ≫ Algebra.Homology.LiftToInjective.CochainComplex.liftToInjectiveNat a r hI) := by |
| 162 | rw [comp_liftToInjectiveNat] |
| 163 | infer_instance |
| 164 | exact quasiIso_of_comp_left a _ |
| 165 | |
| 166 | end CochainComplex |
| 167 | |
| 168 | namespace TopCat |
| 169 | |
| 170 | variable (X : TopCat.{0}) (U : Opens X) (A : AddCommGrpCat.{0}) |
| 171 | |
| 172 | @[reassoc (attr := simp)] |
| 173 | lemma restrictedAmbientAugmentation_comp_comparison : |
| 174 | restrictedAmbientConstantAugmentation X U A ≫ |
| 175 | restrictedAmbientToOpenResolution X U A = (OpenInjectiveResolution.TopCat.ambientConstantInjectiveResolution (TopCat.of U) A).ι := |
| 176 | OpenInjectiveTo.CochainComplex.comp_liftToInjectiveNat _ _ _ |
| 177 | |
| 178 | lemma restrictedAmbientToOpenResolution_quasiIso : |
| 179 | QuasiIso (restrictedAmbientToOpenResolution X U A) := by |
| 180 | let : QuasiIso (OpenInjectiveResolution.TopCat.ambientConstantInjectiveResolution (TopCat.of U) A).ι := |
| 181 | (OpenInjectiveResolution.TopCat.ambientConstantInjectiveResolution (TopCat.of U) A).quasiIso |
| 182 | exact OpenInjectiveTo.CochainComplex.liftToInjectiveNat_quasiIso _ _ _ |
| 183 | |
| 184 | set_option backward.defeqAttrib.useBackward true in |
| 185 | set_option backward.isDefEq.respectTransparency false in |
| 186 | /-- Strict normalization: the independently resolved restriction extends |
| 187 | the restriction map of constant sheaves. -/ |
| 188 | @[reassoc] |
| 189 | lemma ambientAugmentation_comp_openResolution : |
| 190 | (OpenInjectiveResolution.TopCat.ambientConstantInjectiveResolution X A).ι ≫ ambientToOpenInjectiveResolution X U A = |
| 191 | (CochainComplex.single₀ _).map (Support.SheafCohomology.TopCat.Sheaf.constantRestriction U.inclusion' A) ≫ |
| 192 | (HomologicalComplex.singleMapHomologicalComplex |
| 193 | (pushforward AddCommGrpCat U.inclusion') (.up ℕ) 0).inv.app _ ≫ |
| 194 | ((pushforward AddCommGrpCat U.inclusion').mapHomologicalComplex (.up ℕ)).map |
| 195 | (OpenInjectiveResolution.TopCat.ambientConstantInjectiveResolution (TopCat.of U) A).ι := by |
| 196 | apply HomologicalComplex.Hom.ext |
| 197 | funext n |
| 198 | cases n with |
| 199 | | zero => |
| 200 | change (OpenInjectiveResolution.TopCat.ambientConstantInjectiveResolution X A).ι.f 0 ≫ |
| 201 | ((Support.DerivedSections.TopCat.Sheaf.toOpenRestrictionPushforward X U).app _ ≫ |
| 202 | (pushforward AddCommGrpCat U.inclusion').map |
| 203 | ((restrictedAmbientToOpenResolution X U A).f 0)) = |
| 204 | Support.SheafCohomology.TopCat.Sheaf.constantRestriction U.inclusion' A ≫ |
| 205 | (pushforward AddCommGrpCat U.inclusion').map |
| 206 | ((OpenInjectiveResolution.TopCat.ambientConstantInjectiveResolution (TopCat.of U) A).ι.f 0) |
| 207 | have hnat := (Support.DerivedSections.TopCat.Sheaf.toOpenRestrictionPushforward X U).naturality |
| 208 | ((OpenInjectiveResolution.TopCat.ambientConstantInjectiveResolution X A).ι.f 0) |
| 209 | dsimp only [Functor.id_map] at hnat |
| 210 | rw [← Category.assoc, hnat] |
| 211 | change ((Support.DerivedSections.TopCat.Sheaf.toOpenRestrictionPushforward X U).app 𝓒[X; A] ≫ _) ≫ _ = _ |
| 212 | rw [← OpenRestriction.TopCat.constantRestriction_pushforward_constantToOpen] |
| 213 | dsimp only [Support.DerivedSections.TopCat.Sheaf.openRestrictionPushforward, Functor.comp_map] |
| 214 | simp only [Category.assoc] |
| 215 | rw [← Functor.map_comp, ← Functor.map_comp] |
| 216 | have h := HomologicalComplex.congr_hom |
| 217 | (restrictedAmbientAugmentation_comp_comparison X U A) 0 |
| 218 | change (OpenRestriction.TopCat.constantOpenSheafRestrictionIso X U A).hom ≫ |
| 219 | (U.isOpenEmbedding.sheafPullback AddCommGrpCat).map |
| 220 | ((OpenInjectiveResolution.TopCat.ambientConstantInjectiveResolution X A).ι.f 0) ≫ |
| 221 | (restrictedAmbientToOpenResolution X U A).f 0 = |
| 222 | (OpenInjectiveResolution.TopCat.ambientConstantInjectiveResolution (TopCat.of U) A).ι.f 0 at h |
| 223 | dsimp only [OpenRestriction.TopCat.constantOpenSheafRestrictionIso] at h |
| 224 | exact congrArg (fun f => Support.SheafCohomology.TopCat.Sheaf.constantRestriction U.inclusion' A ≫ |
| 225 | (pushforward AddCommGrpCat U.inclusion').map f) h |
| 226 | | succ n => |
| 227 | exact (HomologicalComplex.isZero_single_obj_X (.up ℕ) 0 _ (n + 1) (by omega)).eq_of_src _ _ |
| 228 | |
| 229 | set_option backward.isDefEq.respectTransparency false in |
| 230 | /-- The comparison remains a quasi-isomorphism after global sections, because on the open |
| 231 | subspace both resolutions are termwise flasque. -/ |
| 232 | theorem globalRestrictedAmbientToOpenResolution_quasiIso : |
| 233 | QuasiIso (globalRestrictedAmbientToOpenResolution X U A) := by |
| 234 | change QuasiIso |
| 235 | (((FlasqueBoundedBelow.TopCat.IsFlasque.BoundedBelowComplex.globalSectionsFunctor (TopCat.of U)).mapHomologicalComplex |
| 236 | (.up ℕ)).map (restrictedAmbientToOpenResolution X U A)) |
| 237 | let : QuasiIso (restrictedAmbientToOpenResolution X U A) := |
| 238 | restrictedAmbientToOpenResolution_quasiIso X U A |
| 239 | apply FlasqueExtendNat.TopCat.globalSectionsNat_map_quasiIso |
| 240 | · exact restrictedAmbientConstantResolution_isFlasque X U A |
| 241 | · exact fun n => @InjectiveFlasque.TopCat.injective_isFlasque _ _ ((OpenInjectiveResolution.TopCat.ambientConstantInjectiveResolution (TopCat.of U) A).injective n) |
| 242 | |
| 243 | end TopCat |
| 244 | |
| 245 | end |
| 246 | |
| 247 | end OAI.AlgebraicTopology.Sheaf.OpenInjectiveTo |