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.DerivedCategory.Ext.MapBijective |
| 2 | import Mathlib.CategoryTheory.Sites.Equivalence |
| 3 | import OAI.AlgebraicGeometry.SheafCohomology.AffineOne |
| 4 | |
| 5 | /-! # Affine Two -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.SheafCohomology.AffineTwo.Projective |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! |
| 12 | # Degree-two affine local killing |
| 13 | |
| 14 | This file removes the affine-section-surjectivity premise from degree-two |
| 15 | local killing. First, degree-one quasicoherent affine vanishing is transported |
| 16 | from a spectrum across the canonical affine scheme isomorphism. Pulling the |
| 17 | injective-cokernel sequence back to an affine open is exact, so its long exact |
| 18 | cohomology sequence makes the cokernel projection surjective on sections over |
| 19 | that open. This supplies the premise of the conditional degree-two theorem. |
| 20 | |
| 21 | The upstream source derives the construction independently from its pinned |
| 22 | Mathlib. This ProjectiveCohomology port retains that proof with the adaptations identified above. |
| 23 | -/ |
| 24 | |
| 25 | universe u |
| 26 | |
| 27 | open _root_.CategoryTheory Limits Opposite _root_.TopologicalSpace |
| 28 | open _root_.AlgebraicGeometry |
| 29 | |
| 30 | private abbrev AbSheaf (X : Scheme.{u}) := |
| 31 | CategoryTheory.Sheaf (Opens.grothendieckTopology X) AddCommGrpCat.{u} |
| 32 | |
| 33 | private noncomputable def openSheafPullback |
| 34 | {X : Scheme.{u}} (U : X.Opens) : |
| 35 | AbSheaf X ⥤ AbSheaf U := |
| 36 | U.ι.isOpenEmbedding.sheafPullback AddCommGrpCat.{u} |
| 37 | |
| 38 | private noncomputable instance openSheafPullback_preservesFiniteLimits |
| 39 | {X : Scheme.{u}} (U : X.Opens) : |
| 40 | PreservesFiniteLimits (openSheafPullback U) := by |
| 41 | let := U.ι.isOpenEmbedding.functor_isContinuous |
| 42 | let E₁ := openSheafPullback U ⋙ |
| 43 | sheafToPresheaf (Opens.grothendieckTopology U) AddCommGrpCat.{u} |
| 44 | let E₂ := sheafToPresheaf |
| 45 | (Opens.grothendieckTopology X) AddCommGrpCat.{u} ⋙ |
| 46 | (Functor.whiskeringLeft _ _ AddCommGrpCat.{u}).obj |
| 47 | U.ι.isOpenEmbedding.functor.op |
| 48 | let e : E₁ ≅ E₂ := |
| 49 | U.ι.isOpenEmbedding.functor.sheafPushforwardContinuousCompSheafToPresheafIso |
| 50 | AddCommGrpCat.{u} (Opens.grothendieckTopology U) |
| 51 | (Opens.grothendieckTopology X) |
| 52 | have : PreservesFiniteLimits |
| 53 | (sheafToPresheaf (Opens.grothendieckTopology X) |
| 54 | AddCommGrpCat.{u}) := by infer_instance |
| 55 | have : PreservesFiniteLimits |
| 56 | ((Functor.whiskeringLeft _ _ AddCommGrpCat.{u}).obj |
| 57 | U.ι.isOpenEmbedding.functor.op) := by infer_instance |
| 58 | have : PreservesFiniteLimits E₂ := by infer_instance |
| 59 | have : PreservesFiniteLimits E₁ := |
| 60 | preservesFiniteLimits_of_natIso e.symm |
| 61 | exact preservesFiniteLimits_of_reflects_of_preserves _ |
| 62 | (sheafToPresheaf (Opens.grothendieckTopology U) AddCommGrpCat.{u}) |
| 63 | |
| 64 | private noncomputable instance openSheafPullback_preservesFiniteColimits |
| 65 | {X : Scheme.{u}} (U : X.Opens) : |
| 66 | PreservesFiniteColimits (openSheafPullback U) := by |
| 67 | change PreservesFiniteColimits |
| 68 | (U.ι.isOpenEmbedding.sheafPullback AddCommGrpCat.{u}) |
| 69 | let : PreservesColimits |
| 70 | (TopCat.Sheaf.pullback AddCommGrpCat.{u} U.ι.base) := |
| 71 | (TopCat.Sheaf.pullbackPushforwardAdjunction |
| 72 | AddCommGrpCat.{u} U.ι.base).leftAdjoint_preservesColimits |
| 73 | exact preservesFiniteColimits_of_natIso |
| 74 | (U.ι.isOpenEmbedding.sheafPullbackIso AddCommGrpCat.{u}) |
| 75 | |
| 76 | private noncomputable def sheafEquivOfSchemeIso |
| 77 | {X Y : Scheme.{u}} (e : X ≅ Y) : |
| 78 | AbSheaf X ≌ AbSheaf Y := by |
| 79 | let eb : (X : TopCat) ≅ (Y : TopCat) := asIso e.hom.base |
| 80 | let eo := Opens.mapMapIso eb |
| 81 | letI : eo.functor.IsCocontinuous |
| 82 | (Opens.grothendieckTopology Y) |
| 83 | (Opens.grothendieckTopology X) := |
| 84 | (eo.toAdjunction.isCocontinuous_iff_coverPreserving _ _).2 |
| 85 | (coverPreserving_opens_map eb.inv) |
| 86 | letI : eo.inverse.IsCocontinuous |
| 87 | (Opens.grothendieckTopology X) |
| 88 | (Opens.grothendieckTopology Y) := |
| 89 | (eo.symm.toAdjunction.isCocontinuous_iff_coverPreserving _ _).2 |
| 90 | (coverPreserving_opens_map eb.hom) |
| 91 | letI : eo.functor.IsDenseSubsite |
| 92 | (Opens.grothendieckTopology Y) |
| 93 | (Opens.grothendieckTopology X) := |
| 94 | eo.isDenseSubsite_functor_of_isCocontinuous _ _ |
| 95 | exact (Functor.IsDenseSubsite.sheafEquiv |
| 96 | (G := eo.functor) |
| 97 | (K := Opens.grothendieckTopology X) |
| 98 | (Opens.grothendieckTopology Y) |
| 99 | AddCommGrpCat.{u}).symm |
| 100 | |
| 101 | private noncomputable def pushforwardConstantIso |
| 102 | {X Y : Scheme.{u}} (e : X ≅ Y) : |
| 103 | (TopCat.Sheaf.pushforward AddCommGrpCat.{u} e.hom.base).obj |
| 104 | ((CategoryTheory.constantSheaf |
| 105 | (Opens.grothendieckTopology X) AddCommGrpCat.{u}).obj |
| 106 | (AddCommGrpCat.of (ULift ℤ))) ≅ |
| 107 | (CategoryTheory.constantSheaf |
| 108 | (Opens.grothendieckTopology Y) AddCommGrpCat.{u}).obj |
| 109 | (AddCommGrpCat.of (ULift ℤ)) := by |
| 110 | let eb : (X : TopCat) ≅ (Y : TopCat) := asIso e.hom.base |
| 111 | let eo := Opens.mapMapIso eb |
| 112 | letI : eo.functor.IsCocontinuous |
| 113 | (Opens.grothendieckTopology Y) |
| 114 | (Opens.grothendieckTopology X) := |
| 115 | (eo.toAdjunction.isCocontinuous_iff_coverPreserving _ _).2 |
| 116 | (coverPreserving_opens_map eb.inv) |
| 117 | letI : eo.inverse.IsCocontinuous |
| 118 | (Opens.grothendieckTopology X) |
| 119 | (Opens.grothendieckTopology Y) := |
| 120 | (eo.symm.toAdjunction.isCocontinuous_iff_coverPreserving _ _).2 |
| 121 | (coverPreserving_opens_map eb.hom) |
| 122 | letI : eo.functor.IsDenseSubsite |
| 123 | (Opens.grothendieckTopology Y) |
| 124 | (Opens.grothendieckTopology X) := |
| 125 | eo.isDenseSubsite_functor_of_isCocontinuous _ _ |
| 126 | exact (equivCommuteConstant' |
| 127 | (Opens.grothendieckTopology Y) |
| 128 | AddCommGrpCat.{u} |
| 129 | (Opens.grothendieckTopology X) |
| 130 | eo.functor |
| 131 | (isTerminalTop : IsTerminal (⊤ : Opens Y)) |
| 132 | (isTerminalTop : IsTerminal (⊤ : Opens X))).symm.app |
| 133 | (AddCommGrpCat.of (ULift ℤ)) |
| 134 | |
| 135 | /-- Cohomology subsingletonness transports back across a scheme isomorphism. -/ |
| 136 | theorem sheafH_subsingleton_of_iso |
| 137 | {X Y : Scheme.{u}} (e : X ≅ Y) (F : AbSheaf X) (n : ℕ) |
| 138 | [Subsingleton (CategoryTheory.Sheaf.H |
| 139 | ((TopCat.Sheaf.pushforward AddCommGrpCat.{u} e.hom.base).obj F) n)] : |
| 140 | Subsingleton (CategoryTheory.Sheaf.H F n) := by |
| 141 | let P := TopCat.Sheaf.pushforward AddCommGrpCat.{u} e.hom.base |
| 142 | let E := sheafEquivOfSchemeIso e |
| 143 | let : P.IsEquivalence := by |
| 144 | change E.functor.IsEquivalence |
| 145 | infer_instance |
| 146 | let : PreservesFiniteLimits P := by infer_instance |
| 147 | let : PreservesFiniteColimits P := by infer_instance |
| 148 | let : P.PreservesZeroMorphisms := by infer_instance |
| 149 | let : P.Additive := P.additive_of_preserves_binary_products |
| 150 | let : P.PreservesInjectiveObjects := by infer_instance |
| 151 | let hH : Subsingleton (CategoryTheory.Sheaf.H (P.obj F) n) := by |
| 152 | dsimp [P] |
| 153 | infer_instance |
| 154 | let Z := (CategoryTheory.constantSheaf |
| 155 | (Opens.grothendieckTopology X) AddCommGrpCat.{u}).obj |
| 156 | (AddCommGrpCat.of (ULift ℤ)) |
| 157 | let κ := pushforwardConstantIso e |
| 158 | have htarget : Subsingleton (Abelian.Ext (P.obj Z) (P.obj F) n) := by |
| 159 | refine ⟨fun a b ↦ ?_⟩ |
| 160 | have h := @Subsingleton.elim |
| 161 | (CategoryTheory.Sheaf.H (P.obj F) n) hH |
| 162 | ((Abelian.Ext.mk₀ κ.inv).comp a (zero_add n)) |
| 163 | ((Abelian.Ext.mk₀ κ.inv).comp b (zero_add n)) |
| 164 | calc |
| 165 | a = (Abelian.Ext.mk₀ (𝟙 (P.obj Z))).comp a (zero_add n) := |
| 166 | (Abelian.Ext.mk₀_id_comp a).symm |
| 167 | _ = (Abelian.Ext.mk₀ (κ.hom ≫ κ.inv)).comp a |
| 168 | (zero_add n) := by rw [κ.hom_inv_id] |
| 169 | _ = (Abelian.Ext.mk₀ κ.hom).comp |
| 170 | ((Abelian.Ext.mk₀ κ.inv).comp a (zero_add n)) |
| 171 | (zero_add n) := |
| 172 | (Abelian.Ext.mk₀_comp_mk₀_assoc κ.hom κ.inv a).symm |
| 173 | _ = (Abelian.Ext.mk₀ κ.hom).comp |
| 174 | ((Abelian.Ext.mk₀ κ.inv).comp b (zero_add n)) |
| 175 | (zero_add n) := congrArg |
| 176 | (fun z ↦ (Abelian.Ext.mk₀ κ.hom).comp z (zero_add n)) h |
| 177 | _ = (Abelian.Ext.mk₀ (κ.hom ≫ κ.inv)).comp b |
| 178 | (zero_add n) := |
| 179 | Abelian.Ext.mk₀_comp_mk₀_assoc κ.hom κ.inv b |
| 180 | _ = (Abelian.Ext.mk₀ (𝟙 (P.obj Z))).comp b (zero_add n) := by |
| 181 | rw [κ.hom_inv_id] |
| 182 | _ = b := Abelian.Ext.mk₀_id_comp b |
| 183 | refine ⟨fun a b ↦ ?_⟩ |
| 184 | apply (P.mapExt_bijective_of_preservesInjectiveObjects Z F n).injective |
| 185 | exact @Subsingleton.elim _ htarget _ _ |
| 186 | |
| 187 | /-- Genuine degree-one cohomology of a quasicoherent module on any affine |
| 188 | scheme is subsingleton. -/ |
| 189 | theorem moduleAffineHOne_subsingleton |
| 190 | {X : Scheme.{u}} [IsAffine X] (M : X.Modules) |
| 191 | [M.IsQuasicoherent] : |
| 192 | Subsingleton (AffineH.Projective.H M 1) := by |
| 193 | let e := X.isoSpec |
| 194 | let N := (Scheme.Modules.pushforward e.hom).obj M |
| 195 | let : N.IsQuasicoherent := AffineCover.Projective.isQuasicoherent_pushforward_iso |
| 196 | have hN : Subsingleton (AffineH.Projective.H N 1) := |
| 197 | AffineOne.Projective.moduleSpecHOne_subsingleton N |
| 198 | let : Subsingleton (AffineH.Projective.H N 1) := hN |
| 199 | let : Subsingleton (CategoryTheory.Sheaf.H |
| 200 | ((TopCat.Sheaf.pushforward AddCommGrpCat.{u} e.hom.base).obj |
| 201 | ((SheafOfModules.toSheaf X.ringCatSheaf).obj M)) 1) := by |
| 202 | change Subsingleton (AffineH.Projective.H N 1) |
| 203 | exact hN |
| 204 | exact sheafH_subsingleton_of_iso e |
| 205 | ((SheafOfModules.toSheaf X.ringCatSheaf).obj M) 1 |
| 206 | |
| 207 | private noncomputable abbrev injectiveCokernelSequence |
| 208 | {X : Scheme.{u}} (F : AbSheaf X) : |
| 209 | ShortComplex (AbSheaf X) := |
| 210 | ShortComplex.mk (Injective.ι F) (cokernel.π (Injective.ι F)) |
| 211 | (cokernel.condition (Injective.ι F)) |
| 212 | |
| 213 | private theorem injectiveCokernelSequence_shortExact |
| 214 | {X : Scheme.{u}} (F : AbSheaf X) : |
| 215 | (injectiveCokernelSequence F).ShortExact := by |
| 216 | let : Mono (injectiveCokernelSequence F).f := by |
| 217 | change Mono (Injective.ι F) |
| 218 | infer_instance |
| 219 | let : Epi (injectiveCokernelSequence F).g := by |
| 220 | change Epi (cokernel.π (Injective.ι F)) |
| 221 | infer_instance |
| 222 | exact ShortComplex.ShortExact.mk |
| 223 | (ShortComplex.cokernelSequence_exact (Injective.ι F)) |
| 224 | |
| 225 | /-- For a quasicoherent module, the projection from an injective sheaf to |
| 226 | its cokernel is surjective on sections of every affine open. -/ |
| 227 | theorem injectiveCokernel_app_surjective_of_isAffineOpen |
| 228 | {X : Scheme.{u}} (M : X.Modules) [M.IsQuasicoherent] |
| 229 | (U : X.Opens) (hU : IsAffineOpen U) : |
| 230 | Function.Surjective |
| 231 | ((cokernel.π (Injective.ι |
| 232 | ((SheafOfModules.toSheaf X.ringCatSheaf).obj M))).hom.app (op U)) := by |
| 233 | let F := (SheafOfModules.toSheaf X.ringCatSheaf).obj M |
| 234 | let L := openSheafPullback U |
| 235 | let S := injectiveCokernelSequence F |
| 236 | let : PreservesFiniteLimits L := by |
| 237 | dsimp [L] |
| 238 | infer_instance |
| 239 | let : PreservesFiniteColimits L := by |
| 240 | dsimp [L] |
| 241 | infer_instance |
| 242 | let : L.PreservesZeroMorphisms := by infer_instance |
| 243 | let : L.Additive := L.additive_of_preserves_binary_products |
| 244 | have hS : S.ShortExact := by |
| 245 | dsimp [S] |
| 246 | exact injectiveCokernelSequence_shortExact F |
| 247 | have hSL : (S.map L).ShortExact := |
| 248 | ShortComplex.ShortExact.map_of_exact hS L |
| 249 | let : IsAffine (U : Scheme) := hU |
| 250 | let N := (Scheme.Modules.restrictFunctor U.ι).obj M |
| 251 | let : N.IsQuasicoherent := by |
| 252 | dsimp [N] |
| 253 | infer_instance |
| 254 | have hN : Subsingleton (AffineH.Projective.H N 1) := |
| 255 | moduleAffineHOne_subsingleton N |
| 256 | let : Subsingleton ((S.map L).X₁.H 1) := by |
| 257 | change Subsingleton (AffineH.Projective.H N 1) |
| 258 | exact hN |
| 259 | have hsurjective := |
| 260 | Exact.CategoryTheory.Sheaf.H.longSequence_surjective_of_subsingleton_H |
| 261 | hSL (isTerminalTop : IsTerminal (⊤ : Opens (U : Scheme))) |
| 262 | change Function.Surjective |
| 263 | ((L.map (cokernel.π (Injective.ι F))).hom.app |
| 264 | (op (⊤ : Opens (U : Scheme)))) at hsurjective |
| 265 | change Function.Surjective |
| 266 | ((cokernel.π (Injective.ι F)).hom.app |
| 267 | (op (U.ι.isOpenEmbedding.functor.obj |
| 268 | (⊤ : Opens (U : Scheme))))) at hsurjective |
| 269 | have htop : U.ι.isOpenEmbedding.functor.obj |
| 270 | (⊤ : Opens (U : Scheme)) = U := by |
| 271 | ext x |
| 272 | simp |
| 273 | rw [htop] at hsurjective |
| 274 | simpa only [F] using hsurjective |
| 275 | |
| 276 | namespace LocalKilling |
| 277 | |
| 278 | /-- Every degree-two class of a quasicoherent module on an affine spectrum |
| 279 | is killed by restriction to a finite affine open cover. -/ |
| 280 | theorem schemeHTwo_finiteAffineKillingCover |
| 281 | {R : CommRingCat.{u}} (M : (Spec R).Modules) [M.IsQuasicoherent] |
| 282 | (c : AffineH.Projective.H M 2) : |
| 283 | ∃ (I : Type u) (U : I → (Spec R).Opens), |
| 284 | Finite I ∧ |
| 285 | IsOpenCover U ∧ |
| 286 | (∀ i, IsAffine (U i)) ∧ |
| 287 | (∀ i, (AffineH.Projective.zariskiFunctor (Spec R) 2).map |
| 288 | ((Scheme.Modules.restrictAdjunction (U i).ι).unit.app M) c = 0) ∧ |
| 289 | (AffineH.Projective.zariskiFunctor (Spec R) 2).map |
| 290 | (AffineCover.Projective.toAffineCoverModule M U) c = 0 := by |
| 291 | exact AffineLocalKilling.Projective.LocalKilling.schemeHTwo_finiteAffineKillingCover_of_affine_cokernel_app_surjective |
| 292 | M c (injectiveCokernel_app_surjective_of_isAffineOpen M) |
| 293 | |
| 294 | end LocalKilling |
| 295 | |
| 296 | /-- Genuine Ext-based `H²` of a quasicoherent scheme module on an affine |
| 297 | spectrum is subsingleton. -/ |
| 298 | theorem moduleSpecHTwo_subsingleton |
| 299 | {R : CommRingCat.{u}} (M : (Spec R).Modules) |
| 300 | [M.IsQuasicoherent] : Subsingleton (AffineH.Projective.H M 2) := by |
| 301 | refine subsingleton_of_forall_eq 0 fun c ↦ ?_ |
| 302 | obtain ⟨I, U, hfinite, hcover, haffine, _, hkilled⟩ := |
| 303 | LocalKilling.schemeHTwo_finiteAffineKillingCover M c |
| 304 | let : Finite I := hfinite |
| 305 | let (i : I) : IsAffine (U i) := haffine i |
| 306 | let : (cokernel (AffineCover.Projective.toAffineCoverModule M U)).IsQuasicoherent := |
| 307 | AffineCover.Projective.affineCoverCokernel_isQuasicoherent M U |
| 308 | let : Subsingleton (AffineH.Projective.H (cokernel (AffineCover.Projective.toAffineCoverModule M U)) 1) := |
| 309 | AffineOne.Projective.moduleSpecHOne_subsingleton _ |
| 310 | apply DimensionShift.ProjectiveAffine.toAffineCoverModule_H_succ_injective_of_cokernel_subsingleton |
| 311 | M U hcover 1 |
| 312 | rw [hkilled, map_zero] |
| 313 | |
| 314 | /-- Every genuine Ext-based degree-two class of a quasicoherent scheme |
| 315 | module on an affine spectrum is zero. -/ |
| 316 | theorem moduleSpecHTwo_eq_zero |
| 317 | {R : CommRingCat.{u}} (M : (Spec R).Modules) |
| 318 | [M.IsQuasicoherent] (c : AffineH.Projective.H M 2) : c = 0 := by |
| 319 | let : Subsingleton (AffineH.Projective.H M 2) := moduleSpecHTwo_subsingleton M |
| 320 | exact Subsingleton.elim _ _ |
| 321 | |
| 322 | /-- Genuine degree-two cohomology of a quasicoherent module on any affine |
| 323 | scheme is subsingleton. -/ |
| 324 | theorem moduleAffineHTwo_subsingleton |
| 325 | {X : Scheme.{u}} [IsAffine X] (M : X.Modules) |
| 326 | [M.IsQuasicoherent] : Subsingleton (AffineH.Projective.H M 2) := by |
| 327 | let e := X.isoSpec |
| 328 | let N := (Scheme.Modules.pushforward e.hom).obj M |
| 329 | let : N.IsQuasicoherent := AffineCover.Projective.isQuasicoherent_pushforward_iso |
| 330 | have hN : Subsingleton (AffineH.Projective.H N 2) := moduleSpecHTwo_subsingleton N |
| 331 | let : Subsingleton (AffineH.Projective.H N 2) := hN |
| 332 | let : Subsingleton (CategoryTheory.Sheaf.H |
| 333 | ((TopCat.Sheaf.pushforward AddCommGrpCat.{u} e.hom.base).obj |
| 334 | ((SheafOfModules.toSheaf X.ringCatSheaf).obj M)) 2) := by |
| 335 | change Subsingleton (AffineH.Projective.H N 2) |
| 336 | exact hN |
| 337 | exact sheafH_subsingleton_of_iso e |
| 338 | ((SheafOfModules.toSheaf X.ringCatSheaf).obj M) 2 |
| 339 | |
| 340 | /-- Every genuine Ext-based degree-two class of a quasicoherent module on |
| 341 | an affine scheme is zero. -/ |
| 342 | theorem moduleAffineHTwo_eq_zero |
| 343 | {X : Scheme.{u}} [IsAffine X] (M : X.Modules) |
| 344 | [M.IsQuasicoherent] (c : AffineH.Projective.H M 2) : c = 0 := by |
| 345 | let : Subsingleton (AffineH.Projective.H M 2) := moduleAffineHTwo_subsingleton M |
| 346 | exact Subsingleton.elim _ _ |
| 347 | |
| 348 | end |
| 349 | |
| 350 | end OAI.AlgebraicGeometry.SheafCohomology.AffineTwo.Projective |