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.PresheafFilteredColimitGeneral |
| 2 | import OAI.AlgebraicGeometry.SheafCohomology.ClosedImmersionCohomology |
| 3 | |
| 4 | /-! # Presheaf Filtered Colimit -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.SheafCohomology.PresheafFilteredColimit |
| 7 | |
| 8 | open _root_.CategoryTheory _root_.TopologicalSpace _root_.Order |
| 9 | open _root_.CategoryTheory.Limits _root_.Opposite |
| 10 | |
| 11 | set_option backward.isDefEq.respectTransparency false |
| 12 | |
| 13 | namespace ProjectiveVanishing |
| 14 | |
| 15 | open OAI.AlgebraicGeometry.SheafCohomology.Vanishing.Projective.TopCat |
| 16 | |
| 17 | /-! |
| 18 | # Noetherian filtered-colimit infrastructure for sheaf cohomology |
| 19 | |
| 20 | Building blocks for the proof that sheaf cohomology commutes with filtered colimits on |
| 21 | Noetherian spaces: |
| 22 | |
| 23 | * creation of filtered colimits by `sheafToPresheaf` (`createsFilteredColimit`); |
| 24 | * flasqueness of filtered colimits of flasque sheaves (`isFlasque_filtered_colimit`); |
| 25 | * successor-stage dimension shifts and presheaf-boundary comparison maps used in the |
| 26 | degree-`n+1` colimit comparison. |
| 27 | -/ |
| 28 | |
| 29 | universe u |
| 30 | |
| 31 | open Abelian Limits |
| 32 | |
| 33 | /-- On a Noetherian space, a filtered colimit cocone of presheaves is a sheaf if all |
| 34 | diagram objects are sheaves. Proof: compactness reduces the sheaf condition to finite |
| 35 | covers, then filtered colimit merging passes from per-piece data to glued data. -/ |
| 36 | theorem isSheaf_of_isColimit_of_isSheaf |
| 37 | {X : TopCat.{u}} [NoetherianSpace X] |
| 38 | {J' : Type u} [SmallCategory J'] [IsFiltered J'] |
| 39 | (P : J' ⥤ (Opens X)ᵒᵖ ⥤ AddCommGrpCat.{u}) |
| 40 | (hP : ∀ j, TopCat.Presheaf.IsSheaf (P.obj j)) |
| 41 | (c : Cocone P) (hc : IsColimit c) : |
| 42 | TopCat.Presheaf.IsSheaf c.pt := by |
| 43 | rw [TopCat.Presheaf.isSheaf_iff_isSheafUniqueGluing] |
| 44 | intro ι U sf hcompat |
| 45 | obtain ⟨t, ht⟩ := (NoetherianSpace.isCompact (↑(iSup U) : Set X)).elim_finite_subcover |
| 46 | (fun i ↦ ↑(U i)) (fun i ↦ (U i).isOpen) (by simp [Opens.coe_iSup]) |
| 47 | have hsup_le : iSup U ≤ ⨆ i ∈ t, U i := by |
| 48 | rw [SetLike.le_def] |
| 49 | intro x hx |
| 50 | obtain ⟨i, hi, hxi⟩ := Set.mem_iUnion₂.mp (ht hx) |
| 51 | exact Opens.mem_iSup.mpr ⟨i, Opens.mem_iSup.mpr ⟨hi, hxi⟩⟩ |
| 52 | exact PresheafFilteredColimitGeneral.ProjectiveVanishing.colimit_existsUnique_gluing_of_compatible_finite_subcover |
| 53 | P hP hc U sf hcompat hsup_le |
| 54 | |
| 55 | /-- On a Noetherian space, `sheafToPresheaf` creates filtered colimits of sheaves by |
| 56 | applying `isSheaf_of_isColimit_of_isSheaf` to the underlying presheaf diagram. -/ |
| 57 | @[instance_reducible] |
| 58 | noncomputable def createsFilteredColimit |
| 59 | {X : TopCat.{u}} [NoetherianSpace X] |
| 60 | {J' : Type u} [SmallCategory J'] [IsFiltered J'] |
| 61 | (Y' : J' ⥤ Vanishing.Projective.TopCat.Sheaf AddCommGrpCat.{u} X) : |
| 62 | CreatesColimit Y' (sheafToPresheaf _ _) := |
| 63 | Sheaf.createsColimitOfIsSheaf Y' (fun c hc ↦ |
| 64 | isSheaf_of_isColimit_of_isSheaf |
| 65 | (P := Y' ⋙ sheafToPresheaf _ _) |
| 66 | (hP := fun j ↦ (Y'.obj j).property) |
| 67 | (c := c) (hc := hc)) |
| 68 | |
| 69 | /-! ### Filtered colimits of flasque sheaves |
| 70 | |
| 71 | On Noetherian spaces, `sheafToPresheaf` creates filtered colimits, so restrictions of |
| 72 | filtered colimits are colimits of restrictions. Filtered colimits in `AddCommGrpCat` |
| 73 | preserve surjections, hence stagewise flasque sheaves have flasque colimit. -/ |
| 74 | |
| 75 | /-- Filtered colimits of stagewise flasque sheaves on Noetherian spaces are flasque. -/ |
| 76 | theorem isFlasque_filtered_colimit |
| 77 | {X : TopCat.{u}} [NoetherianSpace X] |
| 78 | {J : Type u} [SmallCategory J] [IsFiltered J] |
| 79 | (F : J ⥤ Vanishing.Projective.TopCat.Sheaf AddCommGrpCat.{u} X) |
| 80 | (hFlasque : ∀ j, FlasqueVanishing.Projective.IsFlasqueSheaf (F.obj j)) |
| 81 | {c : Cocone F} (hc : IsColimit c) : |
| 82 | FlasqueVanishing.Projective.IsFlasqueSheaf c.pt := by |
| 83 | have : CreatesColimit F |
| 84 | (sheafToPresheaf (Opens.grothendieckTopology X) AddCommGrpCat.{u}) := |
| 85 | createsFilteredColimit F |
| 86 | intro U V i |
| 87 | rw [AddCommGrpCat.epi_iff_surjective] |
| 88 | intro b |
| 89 | have hc_U := isColimitOfPreserves |
| 90 | ((CategoryTheory.evaluation (Opens X)ᵒᵖ AddCommGrpCat.{u}).obj (op U)) |
| 91 | (isColimitOfPreserves |
| 92 | (sheafToPresheaf (Opens.grothendieckTopology X) AddCommGrpCat.{u}) hc) |
| 93 | obtain ⟨j₀, b₀, hb₀⟩ := Concrete.isColimit_exists_rep _ hc_U b |
| 94 | obtain ⟨a₀, ha₀⟩ := |
| 95 | (AddCommGrpCat.epi_iff_surjective _).mp ((hFlasque j₀) i) b₀ |
| 96 | refine ⟨ConcreteCategory.hom ((c.ι.app j₀).hom.app (op V)) a₀, ?_⟩ |
| 97 | rw [show ConcreteCategory.hom (c.pt.obj.map i.op) |
| 98 | (ConcreteCategory.hom ((c.ι.app j₀).hom.app (op V)) a₀) = |
| 99 | ConcreteCategory.hom ((c.ι.app j₀).hom.app (op U)) |
| 100 | (ConcreteCategory.hom ((F.obj j₀).obj.map i.op) a₀) from |
| 101 | congrFun (congrArg DFunLike.coe |
| 102 | (congrArg ConcreteCategory.hom ((c.ι.app j₀).hom.naturality i.op).symm)) a₀] |
| 103 | rw [ha₀] |
| 104 | exact hb₀ |
| 105 | |
| 106 | /-! ### Sheaf cohomology and filtered colimits |
| 107 | |
| 108 | The formal comparison map |
| 109 | `sheafH_filtered_colimit_comparison: colim H^n(F_j) ⟶ H^n(colim F_j)` |
| 110 | is defined for any small diagram and cocone by `colimit.desc`. |
| 111 | |
| 112 | The genuinely geometric input starts afterwards: |
| 113 | - `sheafH_preserves_filtered_colimits`: the filtered-colimit comparison isomorphism |
| 114 | for a sheaf diagram and a colimit cocone. -/ |
| 115 | |
| 116 | section SheafHFilteredColimitSucc |
| 117 | |
| 118 | variable {X : TopCat.{u}} |
| 119 | variable {J' : Type u} [SmallCategory J'] [IsFiltered J'] |
| 120 | variable (Y' : J' ⥤ Vanishing.Projective.TopCat.Sheaf AddCommGrpCat.{u} X) |
| 121 | variable [Zero (Vanishing.Projective.TopCat.Sheaf AddCommGrpCat.{u} X)] |
| 122 | |
| 123 | /-- The arrow diagram used in the successor-step dimension-shift construction. -/ |
| 124 | noncomputable def sheafH_filtered_colimit_succ_toArrow : |
| 125 | J' ⥤ Arrow (Vanishing.Projective.TopCat.Sheaf AddCommGrpCat.{u} X) := |
| 126 | { obj := fun j ↦ Arrow.mk (0 : Y'.obj j ⟶ 0) |
| 127 | map := fun f ↦ Arrow.homMk (Y'.map f) (𝟙 0) (by simp) |
| 128 | map_id := fun j ↦ by ext <;> simp |
| 129 | map_comp := fun f g ↦ by ext <;> simp } |
| 130 | |
| 131 | /-- Objectwise injective envelopes coming from functorial factorization of `0: Y_j ⟶ 0`. -/ |
| 132 | noncomputable def sheafH_filtered_colimit_succ_Inj : |
| 133 | J' ⥤ Vanishing.Projective.TopCat.Sheaf AddCommGrpCat.{u} X := |
| 134 | sheafH_filtered_colimit_succ_toArrow Y' ⋙ |
| 135 | (MorphismProperty.functorialFactorizationData |
| 136 | (MorphismProperty.monomorphisms (Vanishing.Projective.TopCat.Sheaf AddCommGrpCat.{u} X)) |
| 137 | (MorphismProperty.monomorphisms (Vanishing.Projective.TopCat.Sheaf AddCommGrpCat.{u} X)).rlp).Z |
| 138 | |
| 139 | /-- The natural monomorphism from the original diagram into the injective replacement. -/ |
| 140 | noncomputable def sheafH_filtered_colimit_succ_eta : |
| 141 | Y' ⟶ sheafH_filtered_colimit_succ_Inj Y' := |
| 142 | let ffData := MorphismProperty.functorialFactorizationData |
| 143 | (MorphismProperty.monomorphisms (Vanishing.Projective.TopCat.Sheaf AddCommGrpCat.{u} X)) |
| 144 | (MorphismProperty.monomorphisms (Vanishing.Projective.TopCat.Sheaf AddCommGrpCat.{u} X)).rlp |
| 145 | { app := fun j ↦ ffData.i.app ((sheafH_filtered_colimit_succ_toArrow Y').obj j) |
| 146 | naturality := fun _ _ f ↦ ffData.i.naturality ((sheafH_filtered_colimit_succ_toArrow Y').map f) } |
| 147 | |
| 148 | omit [IsFiltered J'] in |
| 149 | theorem sheafH_filtered_colimit_succ_eta_mono (j : J') : |
| 150 | Mono ((sheafH_filtered_colimit_succ_eta Y').app j) := by |
| 151 | let ffData := MorphismProperty.functorialFactorizationData |
| 152 | (MorphismProperty.monomorphisms (Vanishing.Projective.TopCat.Sheaf AddCommGrpCat.{u} X)) |
| 153 | (MorphismProperty.monomorphisms (Vanishing.Projective.TopCat.Sheaf AddCommGrpCat.{u} X)).rlp |
| 154 | exact ffData.hi ((sheafH_filtered_colimit_succ_toArrow Y').obj j) |
| 155 | |
| 156 | /-- The colimit cocone of the injective replacement diagram. -/ |
| 157 | noncomputable def sheafH_filtered_colimit_succ_injCocone : |
| 158 | Cocone (sheafH_filtered_colimit_succ_Inj Y') := |
| 159 | colimit.cocone (sheafH_filtered_colimit_succ_Inj Y') |
| 160 | |
| 161 | /-- The cocone obtained by composing the original cocone maps with the injective |
| 162 | replacement. -/ |
| 163 | noncomputable def sheafH_filtered_colimit_succ_iotaCocone : Cocone Y' := |
| 164 | Cocone.mk (sheafH_filtered_colimit_succ_injCocone Y').pt |
| 165 | { app := fun j ↦ |
| 166 | (sheafH_filtered_colimit_succ_eta Y').app j ≫ |
| 167 | (sheafH_filtered_colimit_succ_injCocone Y').ι.app j |
| 168 | naturality := fun j j' f ↦ by |
| 169 | simp only [Functor.const_obj_obj, Functor.const_obj_map, Category.comp_id, |
| 170 | ← (sheafH_filtered_colimit_succ_injCocone Y').w f, ← Category.assoc, |
| 171 | (sheafH_filtered_colimit_succ_eta Y').naturality f] } |
| 172 | |
| 173 | /-- The induced map from the colimit of the original diagram to the colimit of its injective |
| 174 | replacement. -/ |
| 175 | noncomputable def sheafH_filtered_colimit_succ_iota |
| 176 | (c' : Cocone Y') (hc' : IsColimit c') : |
| 177 | c'.pt ⟶ (sheafH_filtered_colimit_succ_injCocone Y').pt := |
| 178 | hc'.desc (sheafH_filtered_colimit_succ_iotaCocone Y') |
| 179 | |
| 180 | omit [IsFiltered J'] in |
| 181 | theorem sheafH_filtered_colimit_succ_iota_fac |
| 182 | (c' : Cocone Y') (hc' : IsColimit c') (j : J') : |
| 183 | c'.ι.app j ≫ sheafH_filtered_colimit_succ_iota Y' c' hc' = |
| 184 | (sheafH_filtered_colimit_succ_eta Y').app j ≫ |
| 185 | (sheafH_filtered_colimit_succ_injCocone Y').ι.app j := |
| 186 | hc'.fac (sheafH_filtered_colimit_succ_iotaCocone Y') j |
| 187 | |
| 188 | noncomputable instance sheafH_filtered_colimit_succ_iota_mono |
| 189 | (c' : Cocone Y') (hc' : IsColimit c') : |
| 190 | Mono (sheafH_filtered_colimit_succ_iota Y' c' hc') := by |
| 191 | have : ∀ j, Mono ((sheafH_filtered_colimit_succ_eta Y').app j) := |
| 192 | sheafH_filtered_colimit_succ_eta_mono (Y' := Y') |
| 193 | have : Mono (sheafH_filtered_colimit_succ_eta Y') := NatTrans.mono_of_mono_app _ |
| 194 | exact colim.map_mono' (sheafH_filtered_colimit_succ_eta Y') hc' |
| 195 | (colimit.isColimit (sheafH_filtered_colimit_succ_Inj Y')) |
| 196 | (sheafH_filtered_colimit_succ_iota Y' c' hc') |
| 197 | (sheafH_filtered_colimit_succ_iota_fac Y' c' hc') |
| 198 | |
| 199 | /-- The short exact sequence on colimit objects obtained from the injective replacement. -/ |
| 200 | noncomputable def sheafH_filtered_colimit_succ_shortComplex |
| 201 | (c' : Cocone Y') (hc' : IsColimit c') : |
| 202 | ShortComplex (Vanishing.Projective.TopCat.Sheaf AddCommGrpCat.{u} X) := |
| 203 | let ι' := sheafH_filtered_colimit_succ_iota Y' c' hc' |
| 204 | ShortComplex.mk ι' (cokernel.π ι') (cokernel.condition ι') |
| 205 | |
| 206 | theorem sheafH_filtered_colimit_succ_shortExact |
| 207 | (c' : Cocone Y') (hc' : IsColimit c') : |
| 208 | (sheafH_filtered_colimit_succ_shortComplex Y' c' hc').ShortExact := by |
| 209 | let ι' := sheafH_filtered_colimit_succ_iota Y' c' hc' |
| 210 | change (ShortComplex.mk ι' (cokernel.π ι') (cokernel.condition ι')).ShortExact |
| 211 | exact ShortComplex.ShortExact.mk' |
| 212 | (ShortComplex.exact_of_g_is_cokernel _ (cokernelIsCokernel ι')) inferInstance inferInstance |
| 213 | |
| 214 | /-- The quotient diagram obtained by objectwise cokernels of the injective replacement maps. -/ |
| 215 | noncomputable def sheafH_filtered_colimit_succ_quotient : |
| 216 | J' ⥤ Vanishing.Projective.TopCat.Sheaf AddCommGrpCat.{u} X := |
| 217 | { obj := fun j ↦ cokernel ((sheafH_filtered_colimit_succ_eta Y').app j) |
| 218 | map := fun {j j'} f ↦ |
| 219 | cokernel.map _ _ |
| 220 | (Y'.map f) ((sheafH_filtered_colimit_succ_Inj Y').map f) |
| 221 | ((sheafH_filtered_colimit_succ_eta Y').naturality f).symm |
| 222 | map_id := fun j ↦ by ext; simp [cokernel.map] |
| 223 | map_comp := fun {j j' j''} f g ↦ by |
| 224 | apply (cancel_epi (cokernel.π ((sheafH_filtered_colimit_succ_eta Y').app j))).mp |
| 225 | simp [Category.assoc, Functor.map_comp] } |
| 226 | |
| 227 | /-- The quotient cocone on the cokernel diagram induced by the colimit short exact sequence. -/ |
| 228 | noncomputable def sheafH_filtered_colimit_succ_quotientCocone |
| 229 | (c' : Cocone Y') (hc' : IsColimit c') : |
| 230 | Cocone (sheafH_filtered_colimit_succ_quotient Y') := |
| 231 | let ι' := sheafH_filtered_colimit_succ_iota Y' c' hc' |
| 232 | let S := sheafH_filtered_colimit_succ_shortComplex Y' c' hc' |
| 233 | Cocone.mk S.X₃ |
| 234 | { app := fun j ↦ |
| 235 | cokernel.map ((sheafH_filtered_colimit_succ_eta Y').app j) ι' |
| 236 | (c'.ι.app j) ((sheafH_filtered_colimit_succ_injCocone Y').ι.app j) |
| 237 | (sheafH_filtered_colimit_succ_iota_fac Y' c' hc' j).symm |
| 238 | naturality := fun j j' f ↦ by |
| 239 | apply (cancel_epi (cokernel.π ((sheafH_filtered_colimit_succ_eta Y').app j))).mp |
| 240 | simp [sheafH_filtered_colimit_succ_quotient, Functor.const_obj_map, Category.assoc] } |
| 241 | |
| 242 | private noncomputable def sheafH_filtered_colimit_succ_liftedCocone |
| 243 | (s : Cocone (sheafH_filtered_colimit_succ_quotient Y')) : |
| 244 | Cocone (sheafH_filtered_colimit_succ_Inj Y') := |
| 245 | Cocone.mk s.pt |
| 246 | { app := fun j ↦ |
| 247 | cokernel.π ((sheafH_filtered_colimit_succ_eta Y').app j) ≫ s.ι.app j |
| 248 | naturality := fun j j' a ↦ by |
| 249 | dsimp |
| 250 | have hdesc : |
| 251 | cokernel.π ((sheafH_filtered_colimit_succ_eta Y').app j) ≫ |
| 252 | (sheafH_filtered_colimit_succ_quotient Y').map a = |
| 253 | (sheafH_filtered_colimit_succ_Inj Y').map a ≫ |
| 254 | cokernel.π ((sheafH_filtered_colimit_succ_eta Y').app j') := by |
| 255 | simp [sheafH_filtered_colimit_succ_quotient] |
| 256 | rw [← Category.assoc, ← hdesc, Category.assoc, s.w] |
| 257 | simp } |
| 258 | |
| 259 | omit [IsFiltered J'] in |
| 260 | @[simp] |
| 261 | private theorem sheafH_filtered_colimit_succ_liftedCocone_ι_app |
| 262 | (s : Cocone (sheafH_filtered_colimit_succ_quotient Y')) (j : J') : |
| 263 | (sheafH_filtered_colimit_succ_liftedCocone Y' s).ι.app j = |
| 264 | cokernel.π ((sheafH_filtered_colimit_succ_eta Y').app j) ≫ s.ι.app j := rfl |
| 265 | |
| 266 | noncomputable def sheafH_filtered_colimit_succ_quotientCocone_isColimit |
| 267 | (c' : Cocone Y') (hc' : IsColimit c') : |
| 268 | IsColimit (sheafH_filtered_colimit_succ_quotientCocone Y' c' hc') := by |
| 269 | let Inj := sheafH_filtered_colimit_succ_Inj Y' |
| 270 | let injCocone := sheafH_filtered_colimit_succ_injCocone Y' |
| 271 | let qCocone := sheafH_filtered_colimit_succ_quotientCocone Y' c' hc' |
| 272 | let ι' := sheafH_filtered_colimit_succ_iota Y' c' hc' |
| 273 | let injColim := colimit.isColimit Inj |
| 274 | have hπ (j) : cokernel.π ((sheafH_filtered_colimit_succ_eta Y').app j) ≫ qCocone.ι.app j = |
| 275 | injCocone.ι.app j ≫ cokernel.π ι' := cokernel.π_desc _ _ _ |
| 276 | exact |
| 277 | { desc := fun s ↦ |
| 278 | let lifted := sheafH_filtered_colimit_succ_liftedCocone Y' s |
| 279 | cokernel.desc ι' (injColim.desc lifted) (hc'.hom_ext fun j ↦ by |
| 280 | have hfac_lifted : |
| 281 | injCocone.ι.app j ≫ injColim.desc lifted = |
| 282 | cokernel.π ((sheafH_filtered_colimit_succ_eta Y').app j) ≫ s.ι.app j := by |
| 283 | simp [lifted, injCocone] |
| 284 | rw [comp_zero] |
| 285 | conv_lhs => |
| 286 | rw [← Category.assoc, sheafH_filtered_colimit_succ_iota_fac Y' c' hc' j, Category.assoc] |
| 287 | rw [hfac_lifted, ← Category.assoc, cokernel.condition, zero_comp]) |
| 288 | fac := fun s j ↦ (cancel_epi (cokernel.π ((sheafH_filtered_colimit_succ_eta Y').app j))).mp (by |
| 289 | let lifted := sheafH_filtered_colimit_succ_liftedCocone Y' s |
| 290 | have hfac_lifted : |
| 291 | injCocone.ι.app j ≫ injColim.desc lifted = |
| 292 | cokernel.π ((sheafH_filtered_colimit_succ_eta Y').app j) ≫ s.ι.app j := by |
| 293 | simp [lifted, injCocone] |
| 294 | rw [← Category.assoc, hπ, Category.assoc, cokernel.π_desc, hfac_lifted]) |
| 295 | uniq := fun s m hm ↦ (cancel_epi (cokernel.π ι')).mp (by |
| 296 | rw [cokernel.π_desc] |
| 297 | let lifted := sheafH_filtered_colimit_succ_liftedCocone Y' s |
| 298 | exact injColim.hom_ext fun j ↦ by |
| 299 | have hπ' : |
| 300 | (colimit.cocone Inj).ι.app j ≫ cokernel.π ι' = |
| 301 | cokernel.π ((sheafH_filtered_colimit_succ_eta Y').app j) ≫ qCocone.ι.app j := by |
| 302 | exact (hπ j).symm |
| 303 | have hfac_lifted' : |
| 304 | (colimit.cocone Inj).ι.app j ≫ injColim.desc lifted = |
| 305 | cokernel.π ((sheafH_filtered_colimit_succ_eta Y').app j) ≫ s.ι.app j := by |
| 306 | simpa [lifted] using injColim.fac lifted j |
| 307 | have hπ'_assoc : |
| 308 | (colimit.cocone Inj).ι.app j ≫ cokernel.π ι' ≫ m = |
| 309 | (cokernel.π ((sheafH_filtered_colimit_succ_eta Y').app j) ≫ qCocone.ι.app j) ≫ m := by |
| 310 | simpa [Category.assoc] using congrArg (fun t ↦ t ≫ m) hπ' |
| 311 | rw [hπ'_assoc, Category.assoc, hm] |
| 312 | exact hfac_lifted'.symm) } |
| 313 | |
| 314 | omit [IsFiltered J'] in |
| 315 | theorem sheafH_filtered_colimit_succ_stage_shortExact (j : J') : |
| 316 | (ShortComplex.mk ((sheafH_filtered_colimit_succ_eta Y').app j) |
| 317 | (cokernel.π ((sheafH_filtered_colimit_succ_eta Y').app j)) |
| 318 | (cokernel.condition ((sheafH_filtered_colimit_succ_eta Y').app j))).ShortExact := by |
| 319 | have : Mono ((sheafH_filtered_colimit_succ_eta Y').app j) := |
| 320 | sheafH_filtered_colimit_succ_eta_mono (Y' := Y') j |
| 321 | exact ShortComplex.ShortExact.mk' |
| 322 | (ShortComplex.exact_of_g_is_cokernel _ (cokernelIsCokernel ((sheafH_filtered_colimit_succ_eta Y').app j))) |
| 323 | inferInstance inferInstance |
| 324 | |
| 325 | /-- The morphism between stagewise short exact sequences induced by a transition map in the |
| 326 | filtered diagram. -/ |
| 327 | noncomputable def sheafH_filtered_colimit_succ_stage_map_hom |
| 328 | {j j' : J'} (f : j ⟶ j') : |
| 329 | ShortComplex.mk ((sheafH_filtered_colimit_succ_eta Y').app j) |
| 330 | (cokernel.π ((sheafH_filtered_colimit_succ_eta Y').app j)) |
| 331 | (cokernel.condition ((sheafH_filtered_colimit_succ_eta Y').app j)) ⟶ |
| 332 | ShortComplex.mk ((sheafH_filtered_colimit_succ_eta Y').app j') |
| 333 | (cokernel.π ((sheafH_filtered_colimit_succ_eta Y').app j')) |
| 334 | (cokernel.condition ((sheafH_filtered_colimit_succ_eta Y').app j')) := |
| 335 | ShortComplex.homMk |
| 336 | (Y'.map f) |
| 337 | ((sheafH_filtered_colimit_succ_Inj Y').map f) |
| 338 | ((sheafH_filtered_colimit_succ_quotient Y').map f) |
| 339 | ((sheafH_filtered_colimit_succ_eta Y').naturality f) |
| 340 | (cokernel.π_desc _ _ _).symm |
| 341 | |
| 342 | /-- The morphism from the stagewise short exact sequence to the colimit short exact sequence. -/ |
| 343 | noncomputable def sheafH_filtered_colimit_succ_stage_hom |
| 344 | (c' : Cocone Y') (hc' : IsColimit c') (j : J') : |
| 345 | ShortComplex.mk ((sheafH_filtered_colimit_succ_eta Y').app j) |
| 346 | (cokernel.π ((sheafH_filtered_colimit_succ_eta Y').app j)) |
| 347 | (cokernel.condition ((sheafH_filtered_colimit_succ_eta Y').app j)) ⟶ |
| 348 | sheafH_filtered_colimit_succ_shortComplex Y' c' hc' := |
| 349 | ShortComplex.homMk |
| 350 | (c'.ι.app j) |
| 351 | ((sheafH_filtered_colimit_succ_injCocone Y').ι.app j) |
| 352 | ((sheafH_filtered_colimit_succ_quotientCocone Y' c' hc').ι.app j) |
| 353 | (sheafH_filtered_colimit_succ_iota_fac Y' c' hc' j) |
| 354 | (cokernel.π_desc _ _ _).symm |
| 355 | |
| 356 | /-- The stagewise dimension-shift natural isomorphism between the quotient diagram in degree |
| 357 | `n` and the original diagram in degree `n + 1`. -/ |
| 358 | noncomputable def sheafH_filtered_colimit_succ_shiftNatIso |
| 359 | (n : ℕ) |
| 360 | (h_mid_n : ∀ j, Subsingleton (Sheaf.H ((sheafH_filtered_colimit_succ_Inj Y').obj j) n)) |
| 361 | (h_mid_succ : ∀ j, |
| 362 | Subsingleton (Sheaf.H ((sheafH_filtered_colimit_succ_Inj Y').obj j) (n + 1))) : |
| 363 | sheafH_filtered_colimit_succ_quotient Y' ⋙ API.ProjectiveVanishing.sheafCohomologyFunctor X n ≅ |
| 364 | Y' ⋙ API.ProjectiveVanishing.sheafCohomologyFunctor X (n + 1) := |
| 365 | NatIso.ofComponents |
| 366 | (fun j ↦ |
| 367 | API.ProjectiveVanishing.sheafH_succ_iso_of_subsingleton_middle |
| 368 | (sheafH_filtered_colimit_succ_stage_shortExact (Y' := Y') j) n |
| 369 | (h_mid_n j) (h_mid_succ j)) |
| 370 | (fun {j j'} f ↦ by |
| 371 | ext y |
| 372 | exact congrArg (fun m ↦ AddCommGrpCat.Hom.hom m y) |
| 373 | ((API.ProjectiveVanishing.sheafH_succ_iso_of_subsingleton_middle_natural |
| 374 | (sheafH_filtered_colimit_succ_stage_shortExact (Y' := Y') j) |
| 375 | (sheafH_filtered_colimit_succ_stage_shortExact (Y' := Y') j') |
| 376 | (sheafH_filtered_colimit_succ_stage_map_hom (Y' := Y') f) |
| 377 | n (h_mid_n j) (h_mid_succ j) (h_mid_n j') (h_mid_succ j')).symm)) |
| 378 | |
| 379 | /-- The induced colimit isomorphism from the successor-step stagewise dimension shift. -/ |
| 380 | noncomputable def sheafH_filtered_colimit_succ_shiftDomainIso |
| 381 | (n : ℕ) |
| 382 | (h_mid_n : ∀ j, Subsingleton (Sheaf.H ((sheafH_filtered_colimit_succ_Inj Y').obj j) n)) |
| 383 | (h_mid_succ : ∀ j, |
| 384 | Subsingleton (Sheaf.H ((sheafH_filtered_colimit_succ_Inj Y').obj j) (n + 1))) : |
| 385 | colimit (sheafH_filtered_colimit_succ_quotient Y' ⋙ API.ProjectiveVanishing.sheafCohomologyFunctor X n) ≅ |
| 386 | colimit (Y' ⋙ API.ProjectiveVanishing.sheafCohomologyFunctor X (n + 1)) := |
| 387 | HasColimit.isoOfNatIso (sheafH_filtered_colimit_succ_shiftNatIso Y' n h_mid_n h_mid_succ) |
| 388 | |
| 389 | /-- The colimit-level dimension-shift isomorphism for the short exact sequence obtained from |
| 390 | the injective replacement of the filtered colimit cocone. -/ |
| 391 | noncomputable def sheafH_filtered_colimit_succ_shiftCodomainIso |
| 392 | (c' : Cocone Y') (hc' : IsColimit c') (n : ℕ) |
| 393 | (h_colim_n : |
| 394 | Subsingleton (Sheaf.H (sheafH_filtered_colimit_succ_injCocone Y').pt n)) |
| 395 | (h_colim_succ : |
| 396 | Subsingleton (Sheaf.H (sheafH_filtered_colimit_succ_injCocone Y').pt (n + 1))) : |
| 397 | AddCommGrpCat.of |
| 398 | (Sheaf.H (sheafH_filtered_colimit_succ_quotientCocone Y' c' hc').pt n) ≅ |
| 399 | AddCommGrpCat.of (Sheaf.H c'.pt (n + 1)) := |
| 400 | API.ProjectiveVanishing.sheafH_succ_iso_of_subsingleton_middle |
| 401 | (sheafH_filtered_colimit_succ_shortExact Y' c' hc') n h_colim_n h_colim_succ |
| 402 | |
| 403 | /-- The filtered-colimit successor-step vanishing lemma for the injective replacement: |
| 404 | the middle term of the induced short exact sequence has trivial cohomology in degree `n + 1`. -/ |
| 405 | theorem sheafH_filtered_colimit_succ_inj_subsingleton |
| 406 | [NoetherianSpace X] (n : ℕ) |
| 407 | (hInj : ∀ j, Injective ((sheafH_filtered_colimit_succ_Inj Y').obj j)) : |
| 408 | Subsingleton (Sheaf.H (sheafH_filtered_colimit_succ_injCocone Y').pt (n + 1)) := by |
| 409 | let Inj := sheafH_filtered_colimit_succ_Inj Y' |
| 410 | let injCocone := sheafH_filtered_colimit_succ_injCocone Y' |
| 411 | have hFlasque : FlasqueVanishing.Projective.IsFlasqueSheaf injCocone.pt := fun i ↦ by |
| 412 | simpa [Inj, injCocone] using |
| 413 | (isFlasque_filtered_colimit |
| 414 | (F := Inj) |
| 415 | (hFlasque := fun j ↦ by |
| 416 | let : Injective (Inj.obj j) := hInj j |
| 417 | exact fun {_ _} i ↦ (FlasqueVanishing.Projective.isFlasque_of_injective (Inj.obj j)) i) |
| 418 | (c := injCocone) |
| 419 | (hc := colimit.isColimit Inj)) i |
| 420 | simpa [injCocone] using |
| 421 | (FlasqueVanishing.Projective.sheafH_subsingleton_of_flasque X injCocone.pt hFlasque n) |
| 422 | |
| 423 | end SheafHFilteredColimitSucc |
| 424 | |
| 425 | /-- The canonical comparison morphism `colim H^n(F_j) ⟶ H^n(colim F_j)` induced by a cocone. -/ |
| 426 | noncomputable def sheafH_filtered_colimit_comparison |
| 427 | {X : TopCat.{u}} |
| 428 | {J' : Type u} [SmallCategory J'] |
| 429 | (Y' : J' ⥤ Vanishing.Projective.TopCat.Sheaf AddCommGrpCat.{u} X) |
| 430 | (n : ℕ) (c' : Cocone Y') : |
| 431 | colimit (Y' ⋙ API.ProjectiveVanishing.sheafCohomologyFunctor X n) ⟶ AddCommGrpCat.of (Sheaf.H c'.pt n) := |
| 432 | colimit.desc _ ((API.ProjectiveVanishing.sheafCohomologyFunctor X n).mapCocone c') |
| 433 | |
| 434 | @[simp] theorem colimit_ι_sheafH_filtered_colimit_comparison |
| 435 | {X : TopCat.{u}} |
| 436 | {J' : Type u} [SmallCategory J'] |
| 437 | (Y' : J' ⥤ Vanishing.Projective.TopCat.Sheaf AddCommGrpCat.{u} X) |
| 438 | (n : ℕ) (c' : Cocone Y') (j : J') : |
| 439 | colimit.ι (Y' ⋙ API.ProjectiveVanishing.sheafCohomologyFunctor X n) j ≫ |
| 440 | sheafH_filtered_colimit_comparison Y' n c' = |
| 441 | (API.ProjectiveVanishing.sheafCohomologyFunctor X n).map (c'.ι.app j) := by |
| 442 | simp [sheafH_filtered_colimit_comparison] |
| 443 | |
| 444 | /-- Successor-step compatibility for the filtered-colimit comparison map: whenever the |
| 445 | associated sheaf diagram and its colimit have vanishing injective-replacement cohomology in |
| 446 | degrees `n` and `n + 1`, the degree-`n + 1` comparison is conjugate to the degree-`n` |
| 447 | comparison for the quotient diagram. -/ |
| 448 | theorem sheafH_filtered_colimit_comparison_succ_compatibility |
| 449 | {X : TopCat.{u}} |
| 450 | {J' : Type u} [SmallCategory J'] [IsFiltered J'] |
| 451 | [Zero (Vanishing.Projective.TopCat.Sheaf AddCommGrpCat.{u} X)] |
| 452 | (Ysh : J' ⥤ Vanishing.Projective.TopCat.Sheaf AddCommGrpCat.{u} X) |
| 453 | (csh : Cocone Ysh) (hcsh : IsColimit csh) |
| 454 | (n : ℕ) |
| 455 | (h_mid_n : ∀ j, |
| 456 | Subsingleton (Sheaf.H |
| 457 | ((sheafH_filtered_colimit_succ_Inj Ysh).obj j) n)) |
| 458 | (h_mid_succ : ∀ j, |
| 459 | Subsingleton (Sheaf.H |
| 460 | ((sheafH_filtered_colimit_succ_Inj Ysh).obj j) (n + 1))) |
| 461 | (h_colim_n : |
| 462 | Subsingleton (Sheaf.H |
| 463 | (sheafH_filtered_colimit_succ_injCocone Ysh).pt n)) |
| 464 | (h_colim_succ : |
| 465 | Subsingleton (Sheaf.H |
| 466 | (sheafH_filtered_colimit_succ_injCocone Ysh).pt (n + 1))) : |
| 467 | (sheafH_filtered_colimit_succ_shiftDomainIso Ysh n h_mid_n h_mid_succ).hom ≫ |
| 468 | sheafH_filtered_colimit_comparison Ysh (n + 1) csh = |
| 469 | sheafH_filtered_colimit_comparison (sheafH_filtered_colimit_succ_quotient Ysh) n |
| 470 | (sheafH_filtered_colimit_succ_quotientCocone Ysh csh hcsh) ≫ |
| 471 | (sheafH_filtered_colimit_succ_shiftCodomainIso Ysh csh hcsh n |
| 472 | h_colim_n h_colim_succ).hom := by |
| 473 | apply colimit.hom_ext |
| 474 | intro j |
| 475 | rw [show (sheafH_filtered_colimit_succ_shiftDomainIso Ysh n h_mid_n h_mid_succ).hom = |
| 476 | (HasColimit.isoOfNatIso (sheafH_filtered_colimit_succ_shiftNatIso Ysh n |
| 477 | h_mid_n h_mid_succ)).hom from rfl] |
| 478 | rw [HasColimit.ι_isoOfNatIso_hom_assoc] |
| 479 | rw [colimit_ι_sheafH_filtered_colimit_comparison] |
| 480 | rw [show |
| 481 | colimit.ι (sheafH_filtered_colimit_succ_quotient Ysh ⋙ API.ProjectiveVanishing.sheafCohomologyFunctor X n) j ≫ |
| 482 | sheafH_filtered_colimit_comparison (sheafH_filtered_colimit_succ_quotient Ysh) n |
| 483 | (sheafH_filtered_colimit_succ_quotientCocone Ysh csh hcsh) ≫ |
| 484 | (sheafH_filtered_colimit_succ_shiftCodomainIso Ysh csh hcsh n |
| 485 | h_colim_n h_colim_succ).hom = |
| 486 | (API.ProjectiveVanishing.sheafCohomologyFunctor X n).map |
| 487 | ((sheafH_filtered_colimit_succ_quotientCocone Ysh csh hcsh).ι.app j) ≫ |
| 488 | (sheafH_filtered_colimit_succ_shiftCodomainIso Ysh csh hcsh n |
| 489 | h_colim_n h_colim_succ).hom from by |
| 490 | simpa only [Category.assoc] using |
| 491 | congrArg |
| 492 | (fun t ↦ |
| 493 | t ≫ (sheafH_filtered_colimit_succ_shiftCodomainIso Ysh csh hcsh n |
| 494 | h_colim_n h_colim_succ).hom) |
| 495 | (colimit_ι_sheafH_filtered_colimit_comparison |
| 496 | (X := X) (Y' := sheafH_filtered_colimit_succ_quotient Ysh) (n := n) |
| 497 | (c' := sheafH_filtered_colimit_succ_quotientCocone Ysh csh hcsh) j)] |
| 498 | change |
| 499 | (API.ProjectiveVanishing.sheafH_succ_iso_of_subsingleton_middle |
| 500 | (sheafH_filtered_colimit_succ_stage_shortExact (Y' := Ysh) j) n |
| 501 | (h_mid_n j) (h_mid_succ j)).hom ≫ |
| 502 | (API.ProjectiveVanishing.sheafCohomologyFunctor X (n + 1)).map (csh.ι.app j) = |
| 503 | (API.ProjectiveVanishing.sheafCohomologyFunctor X n).map |
| 504 | ((sheafH_filtered_colimit_succ_quotientCocone Ysh csh hcsh).ι.app j) ≫ |
| 505 | (sheafH_filtered_colimit_succ_shiftCodomainIso Ysh csh hcsh n |
| 506 | h_colim_n h_colim_succ).hom |
| 507 | exact |
| 508 | (API.ProjectiveVanishing.sheafH_succ_iso_of_subsingleton_middle_natural |
| 509 | (sheafH_filtered_colimit_succ_stage_shortExact (Y' := Ysh) j) |
| 510 | (sheafH_filtered_colimit_succ_shortExact Ysh csh hcsh) |
| 511 | (sheafH_filtered_colimit_succ_stage_hom Ysh csh hcsh j) |
| 512 | n (h_mid_n j) (h_mid_succ j) h_colim_n h_colim_succ) |
| 513 | end ProjectiveVanishing |
| 514 | |
| 515 | end OAI.AlgebraicGeometry.SheafCohomology.PresheafFilteredColimit |