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.SheafCohomology.VanishingPresheafFilteredG |
| 2 | import OAI.AlgebraicGeometry.SheafCohomology.ClosedImmersionCohomology |
| 3 | import OAI.AlgebraicGeometry.SheafCohomology.GeneratedSubsheaf |
| 4 | |
| 5 | /-! # Finitely Generated Vanishing -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.SheafCohomology.FinitelyGeneratedVanishing |
| 8 | |
| 9 | open _root_.CategoryTheory _root_.TopologicalSpace _root_.Order |
| 10 | open _root_.CategoryTheory.Limits _root_.Opposite |
| 11 | |
| 12 | set_option backward.isDefEq.respectTransparency false |
| 13 | |
| 14 | namespace Projective |
| 15 | |
| 16 | open OAI.AlgebraicGeometry.SheafCohomology.Vanishing.Projective.TopCat |
| 17 | |
| 18 | /-! |
| 19 | # Finitely generated vanishing reduction |
| 20 | |
| 21 | On a Noetherian space, every sheaf is the filtered colimit of its finitely generated |
| 22 | subsheaves, and sheaf cohomology commutes with filtered colimits. Combining the two |
| 23 | reduces vanishing of `Hⁿ` for arbitrary sheaves to vanishing for finitely generated ones. |
| 24 | This file packages that reduction; together with the Noetherian-shrinking step, it |
| 25 | underlies the irreducible positive-dimensional case of Grothendieck vanishing. |
| 26 | |
| 27 | ## Main definitions |
| 28 | |
| 29 | * `finsetGenFunctor` — the filtered diagram of finitely generated subsheaves. |
| 30 | * `finsetGenCocone`, `finsetGenCocone_isColimit` — exhibits `K` as the colimit. |
| 31 | |
| 32 | ## Main results |
| 33 | |
| 34 | * `cohomology_vanishing_of_finitelyGenerated_vanishing` — vanishing for f.g. subsheaves |
| 35 | propagates to the whole sheaf via the filtered-colimit comparison. |
| 36 | * `finsetGeneratedSheaf_vanishing` — `Finset.induction` reducing vanishing for finitely |
| 37 | generated subsheaves to vanishing for the epi-images of `zeroOutsideInt V`. |
| 38 | * `directLimit_cohomology_vanishing` — composes both above into the headline reduction. |
| 39 | |
| 40 | The `isFlasque_filtered_colimit` and `sheafH_preserves_filtered_colimits` building blocks |
| 41 | live in the `PresheafFilteredColimit` modules. |
| 42 | -/ |
| 43 | |
| 44 | universe u |
| 45 | |
| 46 | open Abelian Limits |
| 47 | |
| 48 | /-! ### Filtered diagram of finitely generated subsheaves |
| 49 | |
| 50 | We build a functor `Finset(SectionIndex K) ⥤ Sheaf(X)` sending each finite set `S` |
| 51 | of local sections to the subsheaf `finsetGeneratedSheaf S`. The transition maps |
| 52 | (for `S ⊆ S'`) are monomorphisms, and K is the colimit of this filtered diagram. -/ |
| 53 | |
| 54 | section FilteredDiagram |
| 55 | open scoped Classical |
| 56 | |
| 57 | variable {X : TopCat.{u}} [NoetherianSpace X] |
| 58 | {K : TopCat.Presheaf AddCommGrpCat.{u} X} (hK : K.IsSheaf) |
| 59 | |
| 60 | /-- The functor `Finset(SectionIndex K) ⥤ Sheaf(X)` sending `S ↦ finsetGeneratedSheaf S`. |
| 61 | Transition maps are the canonical image inclusions, which are monomorphisms. -/ |
| 62 | noncomputable def finsetGenFunctor : |
| 63 | Finset |
| 64 | (GeneratedSubsheaf.ProjectiveVanishing.TopCat.Presheaf.SectionIndex K) ⥤ |
| 65 | Vanishing.Projective.TopCat.Sheaf AddCommGrpCat.{u} X where |
| 66 | obj S := GeneratedSubsheaf.ProjectiveVanishing.TopCat.Presheaf.finsetGeneratedSheaf hK S |
| 67 | map h := GeneratedSubsheaf.ProjectiveVanishing.TopCat.Presheaf.finsetImageInclGen hK h.le |
| 68 | map_id S := by |
| 69 | apply (cancel_mono (Limits.image.ι (GeneratedSubsheaf.ProjectiveVanishing.TopCat.Presheaf.finsetGeneratorMap hK S))).1 |
| 70 | rw [GeneratedSubsheaf.ProjectiveVanishing.TopCat.Presheaf.finsetImageInclGen_comp_ι, Category.id_comp] |
| 71 | map_comp {S₁ S₂ S₃} h₁ h₂ := by |
| 72 | apply (cancel_mono (Limits.image.ι (GeneratedSubsheaf.ProjectiveVanishing.TopCat.Presheaf.finsetGeneratorMap hK S₃))).1 |
| 73 | rw [Category.assoc, GeneratedSubsheaf.ProjectiveVanishing.TopCat.Presheaf.finsetImageInclGen_comp_ι, |
| 74 | GeneratedSubsheaf.ProjectiveVanishing.TopCat.Presheaf.finsetImageInclGen_comp_ι, |
| 75 | GeneratedSubsheaf.ProjectiveVanishing.TopCat.Presheaf.finsetImageInclGen_comp_ι] |
| 76 | |
| 77 | /-- Cocone with vertex `K`: the cocone maps are `image.ι: finsetGeneratedSheaf S ⟶ K`. -/ |
| 78 | noncomputable def finsetGenCocone : |
| 79 | Cocone (finsetGenFunctor hK) := |
| 80 | Cocone.mk (⟨K, hK⟩ : Vanishing.Projective.TopCat.Sheaf AddCommGrpCat.{u} X) |
| 81 | { app := fun S ↦ Limits.image.ι (GeneratedSubsheaf.ProjectiveVanishing.TopCat.Presheaf.finsetGeneratorMap hK S) |
| 82 | naturality := fun S S' h ↦ by |
| 83 | simp [finsetGenFunctor, GeneratedSubsheaf.ProjectiveVanishing.TopCat.Presheaf.finsetImageInclGen_comp_ι] } |
| 84 | |
| 85 | /-- The cocone is a colimit: `K` is the filtered colimit of its finitely generated subsheaves. |
| 86 | Proof: the canonical map `colim → K` is mono (by AB5 + mono transitions) and epi |
| 87 | (since `allSectionMap K` factors through it), hence an isomorphism. -/ |
| 88 | noncomputable def finsetGenCocone_isColimit : |
| 89 | IsColimit (finsetGenCocone hK) := by |
| 90 | -- Show the comparison map colim → K is an iso, then transport IsColimit |
| 91 | let d := colimit.desc (finsetGenFunctor hK) (finsetGenCocone hK) |
| 92 | -- desc is mono: natural transformation to const K has all components mono (image.ι), |
| 93 | -- and in a Grothendieck abelian category filtered colimits preserve monos |
| 94 | have hd_mono : Mono d := by |
| 95 | have : IsConnected |
| 96 | (Finset (GeneratedSubsheaf.ProjectiveVanishing.TopCat.Presheaf.SectionIndex K)) := IsFiltered.isConnected _ |
| 97 | have : ∀ j, Mono ((finsetGenCocone hK).ι.app j) := fun j ↦ |
| 98 | show Mono (Limits.image.ι (GeneratedSubsheaf.ProjectiveVanishing.TopCat.Presheaf.finsetGeneratorMap hK j)) from inferInstance |
| 99 | have := NatTrans.mono_of_mono_app (finsetGenCocone hK).ι |
| 100 | exact colim.map_mono' (finsetGenCocone hK).ι (colimit.isColimit _) |
| 101 | (isColimitConstCocone _ _) d (fun j ↦ by simp [d, finsetGenCocone, constCocone]) |
| 102 | -- desc is epi: allSectionMap K factors through desc |
| 103 | have hd_epi : Epi d := by |
| 104 | let g : (∐ fun σ : GeneratedSubsheaf.ProjectiveVanishing.TopCat.Presheaf.SectionIndex K ↦ Vanishing.Projective.TopCat.Sheaf.zeroOutsideInt σ.1) ⟶ |
| 105 | colimit (finsetGenFunctor hK) := |
| 106 | Sigma.desc fun σ ↦ |
| 107 | Sigma.ι (fun τ : {τ // τ ∈ ({σ} : Finset _)} ↦ |
| 108 | Vanishing.Projective.TopCat.Sheaf.zeroOutsideInt τ.1.1) ⟨σ, Finset.mem_singleton_self σ⟩ ≫ |
| 109 | factorThruImage (GeneratedSubsheaf.ProjectiveVanishing.TopCat.Presheaf.finsetGeneratorMap hK {σ}) ≫ |
| 110 | colimit.ι (finsetGenFunctor hK) {σ} |
| 111 | have hfac : g ≫ d = GeneratedSubsheaf.ProjectiveVanishing.TopCat.Presheaf.allSectionMap hK := by |
| 112 | ext σ |
| 113 | dsimp only [g, d] |
| 114 | rw [← Category.assoc, Sigma.ι_comp_desc, Category.assoc, Category.assoc, colimit.ι_desc] |
| 115 | simp [finsetGenCocone, GeneratedSubsheaf.ProjectiveVanishing.TopCat.Presheaf.allSectionMap, |
| 116 | GeneratedSubsheaf.ProjectiveVanishing.TopCat.Presheaf.finsetGeneratorMap, Vanishing.Projective.TopCat.Sheaf.familyMap] |
| 117 | have := GeneratedSubsheaf.ProjectiveVanishing.TopCat.Presheaf.allSectionMap_epi (F := K) hK |
| 118 | exact epi_of_epi_fac hfac |
| 119 | -- mono + epi → iso in abelian category |
| 120 | have : Mono d := hd_mono |
| 121 | have : Epi d := hd_epi |
| 122 | have : IsIso ((colimit.isColimit (finsetGenFunctor hK)).desc (finsetGenCocone hK)) := |
| 123 | isIso_of_mono_of_epi d |
| 124 | exact (colimit.isColimit (finsetGenFunctor hK)).ofPointIso |
| 125 | |
| 126 | end FilteredDiagram |
| 127 | |
| 128 | /-- **Hartshorne III, Ex. 2.9 core**: on a Noetherian space, if `H^m = 0` for all finitely generated |
| 129 | subsheaves of `K`, then `H^m(K) = 0`. Uses the filtered-colimit comparison isomorphism |
| 130 | for the diagram of finitely generated subsheaves and transports zero across it. -/ |
| 131 | theorem cohomology_vanishing_of_finitelyGenerated_vanishing |
| 132 | {X : TopCat.{u}} [NoetherianSpace X] |
| 133 | {K : TopCat.Presheaf AddCommGrpCat.{u} X} (hK : K.IsSheaf) (m : ℕ) |
| 134 | (hfg : ∀ (S : Finset |
| 135 | (GeneratedSubsheaf.ProjectiveVanishing.TopCat.Presheaf.SectionIndex K)) |
| 136 | [HasCoproduct fun σ : {σ // σ ∈ S} ↦ Vanishing.Projective.TopCat.Sheaf.zeroOutsideInt σ.1.1], |
| 137 | Subsingleton (Sheaf.H (GeneratedSubsheaf.ProjectiveVanishing.TopCat.Presheaf.finsetGeneratedSheaf hK S) m)) : |
| 138 | Subsingleton (Sheaf.H (⟨K, hK⟩ : Vanishing.Projective.TopCat.Sheaf AddCommGrpCat.{u} X) m) := by |
| 139 | have hZeroDiagram : IsZero (finsetGenFunctor hK ⋙ API.ProjectiveVanishing.sheafCohomologyFunctor X m) := by |
| 140 | refine Functor.isZero _ ?_ |
| 141 | intro S |
| 142 | have : Subsingleton (Sheaf.H (GeneratedSubsheaf.ProjectiveVanishing.TopCat.Presheaf.finsetGeneratedSheaf hK S) m) := hfg S |
| 143 | exact |
| 144 | (AddCommGrpCat.isZero_of_subsingleton |
| 145 | (AddCommGrpCat.of (Sheaf.H (GeneratedSubsheaf.ProjectiveVanishing.TopCat.Presheaf.finsetGeneratedSheaf hK S) m))) |
| 146 | have hZeroColim : |
| 147 | IsZero (colimit (finsetGenFunctor hK ⋙ API.ProjectiveVanishing.sheafCohomologyFunctor X m)) := |
| 148 | (colimit.isColimit _).isZero_pt hZeroDiagram |
| 149 | have hZeroTarget : |
| 150 | IsZero (AddCommGrpCat.of |
| 151 | (Sheaf.H (⟨K, hK⟩ : Vanishing.Projective.TopCat.Sheaf AddCommGrpCat.{u} X) m)) := by |
| 152 | simpa [finsetGenCocone] using |
| 153 | IsZero.of_iso hZeroColim |
| 154 | (VanishingPresheafFilteredG.Projective.sheafH_preserves_filtered_colimits |
| 155 | (Y' := finsetGenFunctor hK) |
| 156 | (c' := finsetGenCocone hK) |
| 157 | (hc' := finsetGenCocone_isColimit hK) |
| 158 | m).symm |
| 159 | simpa using AddCommGrpCat.subsingleton_of_isZero hZeroTarget |
| 160 | |
| 161 | section FinsetGenerated |
| 162 | open scoped Classical |
| 163 | |
| 164 | variable {X : TopCat.{u}} {K : TopCat.Presheaf AddCommGrpCat.{u} X} (hK : K.IsSheaf) |
| 165 | |
| 166 | /-- **Step 3B–3C**: vanishing for `finsetGeneratedSheaf S` by `Finset.induction`. -/ |
| 167 | theorem finsetGeneratedSheaf_vanishing |
| 168 | {X : TopCat.{u}} [NoetherianSpace X] |
| 169 | {K : TopCat.Presheaf AddCommGrpCat.{u} X} (hK : K.IsSheaf) |
| 170 | (m : ℕ) |
| 171 | (hzero : ∀ {G : TopCat.Presheaf AddCommGrpCat.{u} X} (hG : G.IsSheaf) {V : Opens X} |
| 172 | (f : (Vanishing.Projective.TopCat.Sheaf.zeroOutsideInt V).obj ⟶ G), |
| 173 | TopCat.Presheaf.IsLocallySurjective f → |
| 174 | Subsingleton (Sheaf.H (⟨G, hG⟩ : Vanishing.Projective.TopCat.Sheaf AddCommGrpCat.{u} X) m)) |
| 175 | (S : Finset |
| 176 | (GeneratedSubsheaf.ProjectiveVanishing.TopCat.Presheaf.SectionIndex K)) |
| 177 | [HasCoproduct fun σ : {σ // σ ∈ S} ↦ Vanishing.Projective.TopCat.Sheaf.zeroOutsideInt σ.1.1] : |
| 178 | Subsingleton (Sheaf.H (GeneratedSubsheaf.ProjectiveVanishing.TopCat.Presheaf.finsetGeneratedSheaf hK S) m) := by |
| 179 | suffices h : ∀ (T : Finset (GeneratedSubsheaf.ProjectiveVanishing.TopCat.Presheaf.SectionIndex K)), |
| 180 | Subsingleton (Sheaf.H (GeneratedSubsheaf.ProjectiveVanishing.TopCat.Presheaf.finsetGeneratedSheaf hK T) m) from h S |
| 181 | intro T; induction T using Finset.induction with |
| 182 | | empty => |
| 183 | exact API.ProjectiveVanishing.sheafH_subsingleton_of_isZero |
| 184 | (IsZero.of_iso (isZero_zero _) (imageZero' (by |
| 185 | ext ⟨σ, hσ⟩ |
| 186 | simp at hσ))) m |
| 187 | | @insert σ₀ S' _ ih => |
| 188 | let h_sub := Finset.subset_insert σ₀ S' |
| 189 | let f := GeneratedSubsheaf.ProjectiveVanishing.TopCat.Presheaf.finsetImageInclGen hK h_sub |
| 190 | let qIns := factorThruImage (GeneratedSubsheaf.ProjectiveVanishing.TopCat.Presheaf.finsetGeneratorMap hK (insert σ₀ S')) |
| 191 | let qS := factorThruImage (GeneratedSubsheaf.ProjectiveVanishing.TopCat.Presheaf.finsetGeneratorMap hK S') |
| 192 | let g : Vanishing.Projective.TopCat.Sheaf.zeroOutsideInt σ₀.1 ⟶ cokernel f := |
| 193 | Sigma.ι (fun σ : {σ // σ ∈ insert σ₀ S'} ↦ Vanishing.Projective.TopCat.Sheaf.zeroOutsideInt σ.1.1) |
| 194 | ⟨σ₀, Finset.mem_insert_self σ₀ S'⟩ ≫ qIns ≫ cokernel.π f |
| 195 | have : Epi g := by |
| 196 | refine epi_of_epi_fac |
| 197 | (f := Sigma.desc fun σ ↦ if h : σ.1 = σ₀ then eqToHom (by rw [h]) else 0) |
| 198 | (h := qIns ≫ cokernel.π f) ?_ |
| 199 | apply Sigma.hom_ext |
| 200 | intro ⟨σ, hσ⟩ |
| 201 | by_cases h : σ = σ₀ |
| 202 | · subst h |
| 203 | simp [g] |
| 204 | · simpa [g, GeneratedSubsheaf.ProjectiveVanishing.TopCat.Presheaf.finsetCoproductInclGen, Category.assoc, h, |
| 205 | cokernel.condition] using |
| 206 | (congrArg (fun e ↦ Sigma.ι |
| 207 | (fun τ : {τ // τ ∈ S'} ↦ Vanishing.Projective.TopCat.Sheaf.zeroOutsideInt τ.1.1) |
| 208 | ⟨σ, Finset.mem_of_mem_insert_of_ne hσ h⟩ ≫ e ≫ cokernel.π f) |
| 209 | (show GeneratedSubsheaf.ProjectiveVanishing.TopCat.Presheaf.finsetCoproductInclGen h_sub ≫ qIns = qS ≫ f by |
| 210 | simp [qIns, qS, f, GeneratedSubsheaf.ProjectiveVanishing.TopCat.Presheaf.finsetImageInclGen])).symm |
| 211 | exact API.ProjectiveVanishing.subsingleton_sheafH_of_shortExact_middle f m ih <| |
| 212 | hzero (cokernel f).property g.hom |
| 213 | ((Sheaf.isLocallySurjective_iff_epi' AddCommGrpCat.{u} g).mpr inferInstance) |
| 214 | |
| 215 | end FinsetGenerated |
| 216 | |
| 217 | /-- **Step 3A** (Hartshorne III.2.7): on a Noetherian space, if vanishing holds for |
| 218 | all epi images of `zeroOutsideInt V`, then it holds for every sheaf. |
| 219 | Assembles `finsetGeneratedSheaf_vanishing` (finite case) with |
| 220 | `cohomology_vanishing_of_finitelyGenerated_vanishing` (colimit step). -/ |
| 221 | theorem directLimit_cohomology_vanishing |
| 222 | {X : TopCat.{u}} [NoetherianSpace X] |
| 223 | {K : TopCat.Presheaf AddCommGrpCat.{u} X} (hK : K.IsSheaf) (m : ℕ) |
| 224 | (hzero : ∀ {G : TopCat.Presheaf AddCommGrpCat.{u} X} (hG : G.IsSheaf) {V : Opens X} |
| 225 | (f : (Vanishing.Projective.TopCat.Sheaf.zeroOutsideInt V).obj ⟶ G), |
| 226 | TopCat.Presheaf.IsLocallySurjective f → |
| 227 | Subsingleton (Sheaf.H (⟨G, hG⟩ : Vanishing.Projective.TopCat.Sheaf AddCommGrpCat.{u} X) m)) : |
| 228 | Subsingleton (Sheaf.H (⟨K, hK⟩ : Vanishing.Projective.TopCat.Sheaf AddCommGrpCat.{u} X) m) := by |
| 229 | exact cohomology_vanishing_of_finitelyGenerated_vanishing hK m |
| 230 | (fun S _ ↦ finsetGeneratedSheaf_vanishing hK m hzero S) |
| 231 | end Projective |
| 232 | |
| 233 | end OAI.AlgebraicGeometry.SheafCohomology.FinitelyGeneratedVanishing |