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 (c) 2026 Chris Birkbeck. All rights reserved. |
| 3 | Released under Apache 2.0 license as described in the file LICENSE. |
| 4 | Authors: Chris Birkbeck |
| 5 | This file has been modified. |
| 6 | -/ |
| 7 | import OAI.AlgebraicGeometry.SheafCohomology.Projective.PullbackTensorGeneral |
| 8 | |
| 9 | /-! # Pullback Unit Monoidal -/ |
| 10 | |
| 11 | namespace OAI.AlgebraicGeometry.SheafCohomology.Projective.PullbackUnitMonoidal |
| 12 | |
| 13 | open _root_.AlgebraicGeometry |
| 14 | open _root_.AlgebraicGeometry.Scheme |
| 15 | open _root_.AlgebraicGeometry.Scheme.Modules |
| 16 | |
| 17 | /-! |
| 18 | # The monoidal pullback unit is the structure-sheaf pullback |
| 19 | |
| 20 | The monoidal structure on pullback is descended through sheafification, whereas |
| 21 | `pullbackUnitIso` is defined by the pullback-pushforward adjunction. This file proves |
| 22 | that the two canonical unit comparisons agree. The proof compares their transposes |
| 23 | through the composite sheafification and pullback adjunctions. |
| 24 | -/ |
| 25 | |
| 26 | open _root_.CategoryTheory MonoidalCategory _root_.SheafOfModules |
| 27 | _root_.TopologicalSpace |
| 28 | |
| 29 | universe u |
| 30 | |
| 31 | namespace Scheme.Modules |
| 32 | |
| 33 | variable {X Y : Scheme.{u}} |
| 34 | |
| 35 | noncomputable local instance rawPresheafMonoidalCategoryStruct (Z : Scheme.{u}) : |
| 36 | MonoidalCategoryStruct |
| 37 | (_root_.PresheafOfModules Z.ringCatSheaf.obj) := by |
| 38 | change MonoidalCategoryStruct |
| 39 | (_root_.PresheafOfModules (Z.sheaf.obj ⋙ forget₂ CommRingCat RingCat)) |
| 40 | infer_instance |
| 41 | |
| 42 | noncomputable local instance rawPresheafMonoidalCategory (Z : Scheme.{u}) : |
| 43 | MonoidalCategory |
| 44 | (_root_.PresheafOfModules Z.ringCatSheaf.obj) := by |
| 45 | change MonoidalCategory |
| 46 | (_root_.PresheafOfModules (Z.sheaf.obj ⋙ forget₂ CommRingCat RingCat)) |
| 47 | infer_instance |
| 48 | |
| 49 | private noncomputable abbrev schemePresheafPullback (f : Y ⟶ X) := |
| 50 | PresheafOfModules.pullback.{u} |
| 51 | (PullbackTensorGeneral.PresheafOfModules.schemeRingPresheafHom f) |
| 52 | |
| 53 | private noncomputable abbrev schemePresheafPushforward (f : Y ⟶ X) := |
| 54 | PresheafOfModules.pushforward.{u} |
| 55 | (PullbackTensorGeneral.PresheafOfModules.schemeRingPresheafHom f) |
| 56 | |
| 57 | noncomputable local instance presheafPushforwardIsRightAdjoint |
| 58 | (f : Y ⟶ X) : |
| 59 | (PresheafOfModules.pushforward.{u} f.toRingCatSheafHom.hom).IsRightAdjoint := by |
| 60 | change (PresheafOfModules.pushforward.{u} |
| 61 | (PullbackTensorGeneral.PresheafOfModules.schemeRingPresheafHom f)).IsRightAdjoint |
| 62 | exact PresheafOfModules.instIsRightAdjointPushforward |
| 63 | (PullbackTensorGeneral.PresheafOfModules.schemeRingPresheafHom f) |
| 64 | |
| 65 | noncomputable local instance sheafPushforwardIsRightAdjoint |
| 66 | (f : Y ⟶ X) : |
| 67 | (SheafOfModules.pushforward.{u} f.toRingCatSheafHom).IsRightAdjoint := by |
| 68 | change (Scheme.Modules.pushforward f).IsRightAdjoint |
| 69 | infer_instance |
| 70 | |
| 71 | private noncomputable def presheafPullbackUnitHom (f : Y ⟶ X) : |
| 72 | (schemePresheafPullback f).obj |
| 73 | (PresheafOfModules.unit X.ringCatSheaf.obj) ⟶ |
| 74 | PresheafOfModules.unit Y.ringCatSheaf.obj := by |
| 75 | letI : (schemePresheafPullback f).OplaxMonoidal := |
| 76 | PullbackTensorGeneral.PresheafOfModules.pullbackOplaxMonoidal |
| 77 | (PullbackTensorGeneral.PresheafOfModules.schemeRingPresheafHom f) |
| 78 | exact Functor.OplaxMonoidal.η (schemePresheafPullback f) |
| 79 | |
| 80 | private noncomputable def sheafifiedPresheafPullbackUnitHom (f : Y ⟶ X) : |
| 81 | (PresheafOfModules.sheafification (𝟙 Y.ringCatSheaf.obj)).obj |
| 82 | ((schemePresheafPullback f).obj |
| 83 | (PresheafOfModules.unit X.ringCatSheaf.obj)) ⟶ |
| 84 | (PresheafOfModules.sheafification (𝟙 Y.ringCatSheaf.obj)).obj |
| 85 | (PresheafOfModules.unit Y.ringCatSheaf.obj) := |
| 86 | (PresheafOfModules.sheafification (𝟙 Y.ringCatSheaf.obj)).map |
| 87 | (presheafPullbackUnitHom f) |
| 88 | |
| 89 | private theorem sheafification_homEquiv_pullbackUnit |
| 90 | (f : Y ⟶ X) : |
| 91 | let shAdj := PresheafOfModules.sheafificationAdjunction |
| 92 | (𝟙 Y.ringCatSheaf.obj) |
| 93 | (shAdj.homEquiv _ _) |
| 94 | (sheafifiedPresheafPullbackUnitHom f ≫ |
| 95 | (Invertible.Scheme.Modules.sheafifyValIso (Invertible.Scheme.Modules.unitObj Y)).hom) = |
| 96 | presheafPullbackUnitHom f := by |
| 97 | let shAdj := PresheafOfModules.sheafificationAdjunction |
| 98 | (𝟙 Y.ringCatSheaf.obj) |
| 99 | have hcounit : (shAdj.homEquiv |
| 100 | (PresheafOfModules.unit Y.ringCatSheaf.obj) (Invertible.Scheme.Modules.unitObj Y)) |
| 101 | ((Invertible.Scheme.Modules.sheafifyValIso (Invertible.Scheme.Modules.unitObj Y)).hom) = |
| 102 | 𝟙 (PresheafOfModules.unit Y.ringCatSheaf.obj) := by |
| 103 | change (shAdj.homEquiv |
| 104 | (PresheafOfModules.unit Y.ringCatSheaf.obj) (Invertible.Scheme.Modules.unitObj Y)) |
| 105 | (shAdj.counit.app (Invertible.Scheme.Modules.unitObj Y)) = _ |
| 106 | rw [← Adjunction.homEquiv_symm_id shAdj (Invertible.Scheme.Modules.unitObj Y)] |
| 107 | exact Equiv.apply_symm_apply _ _ |
| 108 | dsimp only [sheafifiedPresheafPullbackUnitHom] |
| 109 | have hnatural := shAdj.homEquiv_naturality_left |
| 110 | (presheafPullbackUnitHom f) ((Invertible.Scheme.Modules.sheafifyValIso (Invertible.Scheme.Modules.unitObj Y)).hom) |
| 111 | refine hnatural.trans ?_ |
| 112 | rw [hcounit] |
| 113 | exact Category.comp_id _ |
| 114 | |
| 115 | private theorem presheafPullback_homEquiv_unit |
| 116 | (f : Y ⟶ X) : |
| 117 | let φ := PullbackTensorGeneral.PresheafOfModules.schemeRingPresheafHom f |
| 118 | let pbAdj : schemePresheafPullback f ⊣ schemePresheafPushforward f := |
| 119 | PresheafOfModules.pullbackPushforwardAdjunction φ |
| 120 | (pbAdj.homEquiv _ _) (presheafPullbackUnitHom f) = |
| 121 | (SheafOfModules.unitToPushforwardObjUnit |
| 122 | f.toRingCatSheafHom).val := by |
| 123 | let φ := PullbackTensorGeneral.PresheafOfModules.schemeRingPresheafHom f |
| 124 | let pbAdj : schemePresheafPullback f ⊣ schemePresheafPushforward f := |
| 125 | PresheafOfModules.pullbackPushforwardAdjunction φ |
| 126 | let : (PullbackTensorGeneral.PresheafOfModules.pushforwardFactored φ).LaxMonoidal := |
| 127 | PullbackTensorGeneral.PresheafOfModules.pushforwardFactoredLaxMonoidal φ |
| 128 | let : (schemePresheafPullback f).OplaxMonoidal := |
| 129 | PullbackTensorGeneral.PresheafOfModules.pullbackOplaxMonoidal φ |
| 130 | change (pbAdj.homEquiv _ _) |
| 131 | (((PullbackTensorGeneral.PresheafOfModules.pullbackPushforwardFactoredAdjunction φ).homEquiv _ _).symm |
| 132 | (Functor.LaxMonoidal.ε |
| 133 | (PullbackTensorGeneral.PresheafOfModules.pushforwardFactored φ))) = _ |
| 134 | rw [PullbackTensorGeneral.PresheafOfModules.pullbackPushforwardFactoredAdjunction_eq] |
| 135 | change ((PresheafOfModules.pullbackPushforwardAdjunction φ).homEquiv _ _) |
| 136 | (((PresheafOfModules.pullbackPushforwardAdjunction φ).homEquiv _ _).symm |
| 137 | (Functor.LaxMonoidal.ε |
| 138 | (PullbackTensorGeneral.PresheafOfModules.pushforwardFactored φ))) = _ |
| 139 | let e := (PresheafOfModules.pullbackPushforwardAdjunction φ).homEquiv |
| 140 | (𝟙_ (_root_.PresheafOfModules |
| 141 | (X.sheaf.obj ⋙ forget₂ CommRingCat RingCat))) |
| 142 | (𝟙_ (_root_.PresheafOfModules |
| 143 | (Y.sheaf.obj ⋙ forget₂ CommRingCat RingCat))) |
| 144 | have hcancel : e (e.symm |
| 145 | (Functor.LaxMonoidal.ε |
| 146 | (PullbackTensorGeneral.PresheafOfModules.pushforwardFactored φ))) = |
| 147 | Functor.LaxMonoidal.ε |
| 148 | (PullbackTensorGeneral.PresheafOfModules.pushforwardFactored φ) := |
| 149 | e.apply_symm_apply _ |
| 150 | refine hcancel.trans ?_ |
| 151 | apply PresheafOfModules.hom_ext |
| 152 | intro U |
| 153 | apply ModuleCat.hom_ext |
| 154 | apply LinearMap.ext |
| 155 | intro r |
| 156 | rfl |
| 157 | |
| 158 | private theorem compositePullback_homEquiv_unit (f : Y ⟶ X) : |
| 159 | let shAdj := PresheafOfModules.sheafificationAdjunction |
| 160 | (𝟙 Y.ringCatSheaf.obj) |
| 161 | let pbAdj := PresheafOfModules.pullbackPushforwardAdjunction |
| 162 | (PullbackTensorGeneral.PresheafOfModules.schemeRingPresheafHom f) |
| 163 | let adj := pbAdj.comp shAdj |
| 164 | (adj.homEquiv (PresheafOfModules.unit X.ringCatSheaf.obj) (Invertible.Scheme.Modules.unitObj Y)) |
| 165 | (sheafifiedPresheafPullbackUnitHom f ≫ |
| 166 | (Invertible.Scheme.Modules.sheafifyValIso (Invertible.Scheme.Modules.unitObj Y)).hom) = |
| 167 | (SheafOfModules.unitToPushforwardObjUnit f.toRingCatSheafHom).val := by |
| 168 | let shAdj := PresheafOfModules.sheafificationAdjunction |
| 169 | (𝟙 Y.ringCatSheaf.obj) |
| 170 | let pbAdj := PresheafOfModules.pullbackPushforwardAdjunction |
| 171 | (PullbackTensorGeneral.PresheafOfModules.schemeRingPresheafHom f) |
| 172 | let adj := pbAdj.comp shAdj |
| 173 | have hsheaf := sheafification_homEquiv_pullbackUnit f |
| 174 | have hpb := presheafPullback_homEquiv_unit f |
| 175 | change (pbAdj.homEquiv _ _) |
| 176 | ((shAdj.homEquiv _ _) |
| 177 | (sheafifiedPresheafPullbackUnitHom f ≫ |
| 178 | (Invertible.Scheme.Modules.sheafifyValIso (Invertible.Scheme.Modules.unitObj Y)).hom)) = _ |
| 179 | exact (congrArg (pbAdj.homEquiv _ _) hsheaf).trans hpb |
| 180 | |
| 181 | private theorem compositeSheafPullback_homEquiv_unit (f : Y ⟶ X) : |
| 182 | let shAdj := PresheafOfModules.sheafificationAdjunction |
| 183 | (𝟙 X.ringCatSheaf.obj) |
| 184 | let pbAdj := SheafOfModules.pullbackPushforwardAdjunction |
| 185 | f.toRingCatSheafHom |
| 186 | let adj := shAdj.comp pbAdj |
| 187 | (adj.homEquiv (PresheafOfModules.unit X.ringCatSheaf.obj) (Invertible.Scheme.Modules.unitObj Y)) |
| 188 | ((Scheme.Modules.pullback f).map |
| 189 | (Invertible.Scheme.Modules.sheafifyValIso (Invertible.Scheme.Modules.unitObj X)).hom ≫ |
| 190 | (Invertible.Scheme.Modules.pullbackUnitIso f).hom) = |
| 191 | (SheafOfModules.unitToPushforwardObjUnit f.toRingCatSheafHom).val := by |
| 192 | let shAdj := PresheafOfModules.sheafificationAdjunction |
| 193 | (𝟙 X.ringCatSheaf.obj) |
| 194 | let pbAdj := SheafOfModules.pullbackPushforwardAdjunction |
| 195 | f.toRingCatSheafHom |
| 196 | let adj := shAdj.comp pbAdj |
| 197 | have hright : (pbAdj.homEquiv (Invertible.Scheme.Modules.unitObj X) (Invertible.Scheme.Modules.unitObj Y)) |
| 198 | (SheafOfModules.pullbackObjUnitToUnit f.toRingCatSheafHom) = |
| 199 | SheafOfModules.unitToPushforwardObjUnit f.toRingCatSheafHom := by |
| 200 | dsimp only [pbAdj, Invertible.Scheme.Modules.unitObj] |
| 201 | exact SheafOfModules.pullbackPushforwardAdjunction_homEquiv_pullbackObjUnitToUnit |
| 202 | f.toRingCatSheafHom |
| 203 | have hcounit : (shAdj.homEquiv |
| 204 | (PresheafOfModules.unit X.ringCatSheaf.obj) (Invertible.Scheme.Modules.unitObj X)) |
| 205 | ((Invertible.Scheme.Modules.sheafifyValIso (Invertible.Scheme.Modules.unitObj X)).hom) = |
| 206 | 𝟙 (PresheafOfModules.unit X.ringCatSheaf.obj) := by |
| 207 | change (shAdj.homEquiv |
| 208 | (PresheafOfModules.unit X.ringCatSheaf.obj) (Invertible.Scheme.Modules.unitObj X)) |
| 209 | (shAdj.counit.app (Invertible.Scheme.Modules.unitObj X)) = _ |
| 210 | rw [← Adjunction.homEquiv_symm_id shAdj (Invertible.Scheme.Modules.unitObj X)] |
| 211 | exact Equiv.apply_symm_apply _ _ |
| 212 | have hcounit' : (shAdj.homEquiv (Invertible.Scheme.Modules.unitObj X).val (Invertible.Scheme.Modules.unitObj X)) |
| 213 | (Invertible.Scheme.Modules.sheafifyValIso (Invertible.Scheme.Modules.unitObj X)).hom = 𝟙 (Invertible.Scheme.Modules.unitObj X).val := |
| 214 | hcounit |
| 215 | have hpull := pbAdj.homEquiv_naturality_left |
| 216 | (Invertible.Scheme.Modules.sheafifyValIso (Invertible.Scheme.Modules.unitObj X)).hom |
| 217 | (SheafOfModules.pullbackObjUnitToUnit f.toRingCatSheafHom) |
| 218 | have hpull' : (pbAdj.homEquiv _ _) |
| 219 | ((Scheme.Modules.pullback f).map |
| 220 | (Invertible.Scheme.Modules.sheafifyValIso (Invertible.Scheme.Modules.unitObj X)).hom ≫ |
| 221 | SheafOfModules.pullbackObjUnitToUnit f.toRingCatSheafHom) = |
| 222 | (Invertible.Scheme.Modules.sheafifyValIso (Invertible.Scheme.Modules.unitObj X)).hom ≫ |
| 223 | SheafOfModules.unitToPushforwardObjUnit f.toRingCatSheafHom := |
| 224 | hpull.trans (congrArg |
| 225 | (fun q => (Invertible.Scheme.Modules.sheafifyValIso (Invertible.Scheme.Modules.unitObj X)).hom ≫ q) hright) |
| 226 | have hsheaf := shAdj.homEquiv_naturality_right |
| 227 | (Invertible.Scheme.Modules.sheafifyValIso (Invertible.Scheme.Modules.unitObj X)).hom |
| 228 | (SheafOfModules.unitToPushforwardObjUnit f.toRingCatSheafHom) |
| 229 | have hsheaf' : (shAdj.homEquiv _ _) |
| 230 | ((Invertible.Scheme.Modules.sheafifyValIso (Invertible.Scheme.Modules.unitObj X)).hom ≫ |
| 231 | SheafOfModules.unitToPushforwardObjUnit f.toRingCatSheafHom) = |
| 232 | (SheafOfModules.unitToPushforwardObjUnit f.toRingCatSheafHom).val := by |
| 233 | refine hsheaf.trans ?_ |
| 234 | rw [hcounit'] |
| 235 | rfl |
| 236 | change (shAdj.homEquiv _ _) |
| 237 | ((pbAdj.homEquiv _ _) |
| 238 | ((Scheme.Modules.pullback f).map |
| 239 | (Invertible.Scheme.Modules.sheafifyValIso (Invertible.Scheme.Modules.unitObj X)).hom ≫ |
| 240 | SheafOfModules.pullbackObjUnitToUnit f.toRingCatSheafHom)) = _ |
| 241 | exact (congrArg (shAdj.homEquiv _ _) hpull').trans hsheaf' |
| 242 | |
| 243 | private theorem sheafificationCompPullback_unit (f : Y ⟶ X) : |
| 244 | (SheafOfModules.sheafificationCompPullback f.toRingCatSheafHom).hom.app |
| 245 | (PresheafOfModules.unit X.ringCatSheaf.obj) ≫ |
| 246 | sheafifiedPresheafPullbackUnitHom f ≫ |
| 247 | (Invertible.Scheme.Modules.sheafifyValIso (Invertible.Scheme.Modules.unitObj Y)).hom = |
| 248 | (Scheme.Modules.pullback f).map |
| 249 | (Invertible.Scheme.Modules.sheafifyValIso (Invertible.Scheme.Modules.unitObj X)).hom ≫ |
| 250 | (Invertible.Scheme.Modules.pullbackUnitIso f).hom := by |
| 251 | let shAdjX := PresheafOfModules.sheafificationAdjunction |
| 252 | (𝟙 X.ringCatSheaf.obj) |
| 253 | let pbAdj := SheafOfModules.pullbackPushforwardAdjunction |
| 254 | f.toRingCatSheafHom |
| 255 | let adj₁ := shAdjX.comp pbAdj |
| 256 | let shAdjY := PresheafOfModules.sheafificationAdjunction |
| 257 | (𝟙 Y.ringCatSheaf.obj) |
| 258 | let prePbAdj := PresheafOfModules.pullbackPushforwardAdjunction |
| 259 | (PullbackTensorGeneral.PresheafOfModules.schemeRingPresheafHom f) |
| 260 | let adj₂ := prePbAdj.comp shAdjY |
| 261 | have huniq := Adjunction.homEquiv_leftAdjointUniq_hom_app adj₁ adj₂ |
| 262 | (PresheafOfModules.unit X.ringCatSheaf.obj) |
| 263 | change (adj₁.homEquiv _ _) |
| 264 | ((SheafOfModules.sheafificationCompPullback |
| 265 | f.toRingCatSheafHom).hom.app |
| 266 | (PresheafOfModules.unit X.ringCatSheaf.obj)) = |
| 267 | adj₂.unit.app (PresheafOfModules.unit X.ringCatSheaf.obj) at huniq |
| 268 | have htranspose := (Adjunction.homEquiv_unit adj₂ _ _ |
| 269 | (sheafifiedPresheafPullbackUnitHom f ≫ |
| 270 | (Invertible.Scheme.Modules.sheafifyValIso (Invertible.Scheme.Modules.unitObj Y)).hom)).symm |
| 271 | apply (adj₁.homEquiv _ _).injective |
| 272 | have hnatural := adj₁.homEquiv_naturality_right |
| 273 | ((SheafOfModules.sheafificationCompPullback |
| 274 | f.toRingCatSheafHom).hom.app |
| 275 | (PresheafOfModules.unit X.ringCatSheaf.obj)) |
| 276 | (sheafifiedPresheafPullbackUnitHom f ≫ |
| 277 | (Invertible.Scheme.Modules.sheafifyValIso (Invertible.Scheme.Modules.unitObj Y)).hom) |
| 278 | refine hnatural.trans ?_ |
| 279 | rw [huniq] |
| 280 | refine htranspose.trans ?_ |
| 281 | rw [compositePullback_homEquiv_unit f] |
| 282 | exact (compositeSheafPullback_homEquiv_unit f).symm |
| 283 | |
| 284 | noncomputable local instance unitPullbackModuleMonoidalCategory (Z : Scheme.{u}) : |
| 285 | MonoidalCategory Z.Modules := |
| 286 | Projective.Monoidal.Scheme.Modules.monoidalCategory Z |
| 287 | |
| 288 | noncomputable local instance unitPullbackSheafificationLocalization (Z : Scheme.{u}) : |
| 289 | (PresheafOfModules.sheafification.{u} (𝟙 Z.ringCatSheaf.obj)).IsLocalization |
| 290 | (OfModulesMonoidal.PresheafOfModules.sheafificationW.{u} (𝟙 Z.ringCatSheaf.obj)) := by |
| 291 | change (PresheafOfModules.sheafification.{u} |
| 292 | (𝟙 (⟨Z.sheaf.obj ⋙ forget₂ CommRingCat RingCat, |
| 293 | Z.ringCatSheaf.property⟩ : TopCat.Sheaf RingCat Z).obj)).IsLocalization |
| 294 | (OfModulesMonoidal.PresheafOfModules.sheafificationW.{u} |
| 295 | (𝟙 (⟨Z.sheaf.obj ⋙ forget₂ CommRingCat RingCat, |
| 296 | Z.ringCatSheaf.property⟩ : TopCat.Sheaf RingCat Z).obj)) |
| 297 | exact OfModulesMonoidal.PresheafOfModules.sheafificationW_isLocalization |
| 298 | (⟨Z.sheaf.obj ⋙ forget₂ CommRingCat RingCat, |
| 299 | Z.ringCatSheaf.property⟩ : TopCat.Sheaf RingCat Z) |
| 300 | |
| 301 | noncomputable local instance unitPullbackSheafificationWMonoidal (Z : Scheme.{u}) : |
| 302 | (OfModulesMonoidal.PresheafOfModules.sheafificationW.{u} |
| 303 | (𝟙 Z.ringCatSheaf.obj)).IsMonoidal := by |
| 304 | change (OfModulesMonoidal.PresheafOfModules.sheafificationW.{u} |
| 305 | (𝟙 (⟨Z.sheaf.obj ⋙ forget₂ CommRingCat RingCat, |
| 306 | Z.ringCatSheaf.property⟩ : TopCat.Sheaf RingCat Z).obj)).IsMonoidal |
| 307 | infer_instance |
| 308 | |
| 309 | private abbrev unitPullbackRingSheaf (Z : Scheme.{u}) := |
| 310 | (⟨Z.sheaf.obj ⋙ forget₂ CommRingCat RingCat, |
| 311 | Z.ringCatSheaf.property⟩ : Sheaf _ RingCat.{u}) |
| 312 | |
| 313 | noncomputable local instance unitPullbackExactModuleMonoidalCategory (Z : Scheme.{u}) : |
| 314 | MonoidalCategory (SheafOfModules (unitPullbackRingSheaf Z)) := by |
| 315 | change MonoidalCategory Z.Modules |
| 316 | exact unitPullbackModuleMonoidalCategory Z |
| 317 | |
| 318 | private noncomputable abbrev unitPullbackSheafification (Z : Scheme.{u}) := |
| 319 | PresheafOfModules.sheafification.{u} (𝟙 (unitPullbackRingSheaf Z).obj) |
| 320 | |
| 321 | private noncomputable abbrev unitPullbackSheafificationW (Z : Scheme.{u}) := |
| 322 | OfModulesMonoidal.PresheafOfModules.sheafificationW.{u} (𝟙 (unitPullbackRingSheaf Z).obj) |
| 323 | |
| 324 | noncomputable local instance unitPullbackExactSheafificationLocalization |
| 325 | (Z : Scheme.{u}) : |
| 326 | (unitPullbackSheafification Z).IsLocalization |
| 327 | (unitPullbackSheafificationW Z) := |
| 328 | OfModulesMonoidal.PresheafOfModules.sheafificationW_isLocalization (unitPullbackRingSheaf Z) |
| 329 | |
| 330 | noncomputable local instance unitPullbackExactSheafificationWMonoidal |
| 331 | (Z : Scheme.{u}) : |
| 332 | (unitPullbackSheafificationW Z).IsMonoidal := |
| 333 | OfModulesMonoidal.PresheafOfModules.sheafificationW_isMonoidal _ |
| 334 | |
| 335 | private noncomputable abbrev unitPullbackLocalizedSheafification (Z : Scheme.{u}) := |
| 336 | Localization.Monoidal.toMonoidalCategory |
| 337 | (L := unitPullbackSheafification Z) (W := unitPullbackSheafificationW Z) (Iso.refl _) |
| 338 | |
| 339 | private noncomputable abbrev unitPullbackPresheafPullback (f : Y ⟶ X) := |
| 340 | PresheafOfModules.pullback.{u} |
| 341 | (PullbackTensorGeneral.PresheafOfModules.schemeRingPresheafHom f) |
| 342 | |
| 343 | private noncomputable abbrev unitPullbackSheafHom (f : Y ⟶ X) := |
| 344 | (⟨PullbackTensorGeneral.PresheafOfModules.schemeRingPresheafHom f⟩ : unitPullbackRingSheaf X ⟶ |
| 345 | ((TopologicalSpace.Opens.map f.base).sheafPushforwardContinuous |
| 346 | RingCat.{u} _ _).obj (unitPullbackRingSheaf Y)) |
| 347 | |
| 348 | private noncomputable abbrev unitPullbackSheafPullback (f : Y ⟶ X) := |
| 349 | SheafOfModules.pullback.{u} (unitPullbackSheafHom f) |
| 350 | |
| 351 | @[implicit_reducible] |
| 352 | private noncomputable def unitPullbackSheafPullbackLifting (f : Y ⟶ X) : |
| 353 | Localization.Lifting (unitPullbackLocalizedSheafification X) |
| 354 | (unitPullbackSheafificationW X) |
| 355 | (unitPullbackPresheafPullback f ⋙ unitPullbackLocalizedSheafification Y) |
| 356 | (unitPullbackSheafPullback f) := |
| 357 | ⟨SheafOfModules.sheafificationCompPullback (unitPullbackSheafHom f)⟩ |
| 358 | |
| 359 | private theorem unitPullbackLocalizedSheafification_ε (Z : Scheme.{u}) : |
| 360 | Functor.LaxMonoidal.ε (unitPullbackLocalizedSheafification Z) = 𝟙 _ := by |
| 361 | rfl |
| 362 | |
| 363 | private theorem unitPullbackLocalizedSheafification_η (Z : Scheme.{u}) : |
| 364 | Functor.OplaxMonoidal.η (unitPullbackLocalizedSheafification Z) = 𝟙 _ := by |
| 365 | rfl |
| 366 | |
| 367 | private theorem unitPullbackSheafPullbackLifting_iso (f : Y ⟶ X) : |
| 368 | letI : Localization.Lifting (unitPullbackLocalizedSheafification X) |
| 369 | (unitPullbackSheafificationW X) |
| 370 | (unitPullbackPresheafPullback f ⋙ unitPullbackLocalizedSheafification Y) |
| 371 | (unitPullbackSheafPullback f) := unitPullbackSheafPullbackLifting f |
| 372 | Localization.Lifting.iso (unitPullbackLocalizedSheafification X) |
| 373 | (unitPullbackSheafificationW X) |
| 374 | (unitPullbackPresheafPullback f ⋙ unitPullbackLocalizedSheafification Y) |
| 375 | (unitPullbackSheafPullback f) = |
| 376 | SheafOfModules.sheafificationCompPullback (unitPullbackSheafHom f) := by |
| 377 | rfl |
| 378 | |
| 379 | noncomputable local instance unitPullbackPullbackMonoidal (f : Y ⟶ X) : |
| 380 | (Scheme.Modules.pullback f).Monoidal := |
| 381 | PullbackTensorGeneral.Scheme.Modules.pullbackMonoidal f |
| 382 | |
| 383 | private theorem pullback_monoidalUnitObjIso_hom (f : Y ⟶ X) : |
| 384 | Functor.OplaxMonoidal.η (Scheme.Modules.pullback f) ≫ |
| 385 | (Invertible.Scheme.Modules.sheafifyValIso (Invertible.Scheme.Modules.unitObj Y)).hom = |
| 386 | (Scheme.Modules.pullback f).map |
| 387 | (Invertible.Scheme.Modules.sheafifyValIso (Invertible.Scheme.Modules.unitObj X)).hom ≫ |
| 388 | (Invertible.Scheme.Modules.pullbackUnitIso f).hom := by |
| 389 | let pF : (unitPullbackPresheafPullback f).Monoidal := |
| 390 | PullbackTensorGeneral.PresheafOfModules.pullbackMonoidal f |
| 391 | let pgF : (unitPullbackPresheafPullback f ⋙ |
| 392 | unitPullbackLocalizedSheafification Y).Monoidal := inferInstance |
| 393 | let liftF : Localization.Lifting (unitPullbackLocalizedSheafification X) |
| 394 | (unitPullbackSheafificationW X) |
| 395 | (unitPullbackPresheafPullback f ⋙ unitPullbackLocalizedSheafification Y) |
| 396 | (unitPullbackSheafPullback f) := unitPullbackSheafPullbackLifting f |
| 397 | have hepsilon := @Localization.Monoidal.functorMonoidalOfComp_ε |
| 398 | _ _ _ _ _ _ _ _ _ (unitPullbackLocalizedSheafification X) |
| 399 | (unitPullbackSheafificationW X) _ _ (unitPullbackSheafPullback f) |
| 400 | (unitPullbackPresheafPullback f ⋙ unitPullbackLocalizedSheafification Y) pgF _ liftF |
| 401 | change Functor.LaxMonoidal.ε (Scheme.Modules.pullback f) = _ at hepsilon |
| 402 | apply (cancel_epi |
| 403 | (Functor.Monoidal.εIso (Scheme.Modules.pullback f)).hom).1 |
| 404 | change Functor.LaxMonoidal.ε (Scheme.Modules.pullback f) ≫ |
| 405 | Functor.OplaxMonoidal.η (Scheme.Modules.pullback f) ≫ |
| 406 | (Invertible.Scheme.Modules.sheafifyValIso (Invertible.Scheme.Modules.unitObj Y)).hom = |
| 407 | Functor.LaxMonoidal.ε (Scheme.Modules.pullback f) ≫ |
| 408 | (Scheme.Modules.pullback f).map |
| 409 | (Invertible.Scheme.Modules.sheafifyValIso (Invertible.Scheme.Modules.unitObj X)).hom ≫ |
| 410 | (Invertible.Scheme.Modules.pullbackUnitIso f).hom |
| 411 | have hεη : Functor.LaxMonoidal.ε (Scheme.Modules.pullback f) ≫ |
| 412 | Functor.OplaxMonoidal.η (Scheme.Modules.pullback f) = 𝟙 _ := |
| 413 | Functor.Monoidal.ε_η (Scheme.Modules.pullback f) |
| 414 | have hcancel : Functor.LaxMonoidal.ε (Scheme.Modules.pullback f) ≫ |
| 415 | Functor.OplaxMonoidal.η (Scheme.Modules.pullback f) ≫ |
| 416 | (Invertible.Scheme.Modules.sheafifyValIso (Invertible.Scheme.Modules.unitObj Y)).hom = |
| 417 | (Invertible.Scheme.Modules.sheafifyValIso (Invertible.Scheme.Modules.unitObj Y)).hom := by |
| 418 | have hassoc := (Category.assoc |
| 419 | (Functor.LaxMonoidal.ε (Scheme.Modules.pullback f)) |
| 420 | (Functor.OplaxMonoidal.η (Scheme.Modules.pullback f)) |
| 421 | (Invertible.Scheme.Modules.sheafifyValIso (Invertible.Scheme.Modules.unitObj Y)).hom).symm |
| 422 | have hone := congrArg |
| 423 | (fun k => k ≫ (Invertible.Scheme.Modules.sheafifyValIso (Invertible.Scheme.Modules.unitObj Y)).hom) hεη |
| 424 | exact hassoc.trans (hone.trans (Category.id_comp _)) |
| 425 | rw [hcancel] |
| 426 | rw [hepsilon] |
| 427 | let p := Functor.LaxMonoidal.ε |
| 428 | (unitPullbackPresheafPullback f ⋙ unitPullbackLocalizedSheafification Y) ≫ |
| 429 | (Localization.Lifting.iso (unitPullbackLocalizedSheafification X) |
| 430 | (unitPullbackSheafificationW X) |
| 431 | (unitPullbackPresheafPullback f ⋙ unitPullbackLocalizedSheafification Y) |
| 432 | (unitPullbackSheafPullback f)).inv.app |
| 433 | (𝟙_ (_root_.PresheafOfModules (unitPullbackRingSheaf X).obj)) ≫ |
| 434 | (unitPullbackSheafPullback f).map |
| 435 | (Functor.OplaxMonoidal.η (unitPullbackLocalizedSheafification X)) |
| 436 | change (Invertible.Scheme.Modules.sheafifyValIso (Invertible.Scheme.Modules.unitObj Y)).hom = |
| 437 | p ≫ (Scheme.Modules.pullback f).map |
| 438 | (Invertible.Scheme.Modules.sheafifyValIso (Invertible.Scheme.Modules.unitObj X)).hom ≫ |
| 439 | (Invertible.Scheme.Modules.pullbackUnitIso f).hom |
| 440 | let q := |
| 441 | (SheafOfModules.sheafificationCompPullback f.toRingCatSheafHom).hom.app |
| 442 | (PresheafOfModules.unit X.ringCatSheaf.obj) ≫ |
| 443 | sheafifiedPresheafPullbackUnitHom f ≫ |
| 444 | (Invertible.Scheme.Modules.sheafifyValIso (Invertible.Scheme.Modules.unitObj Y)).hom |
| 445 | have hq : q = (Scheme.Modules.pullback f).map |
| 446 | (Invertible.Scheme.Modules.sheafifyValIso (Invertible.Scheme.Modules.unitObj X)).hom ≫ |
| 447 | (Invertible.Scheme.Modules.pullbackUnitIso f).hom := |
| 448 | sheafificationCompPullback_unit f |
| 449 | have hpq : p ≫ (Scheme.Modules.pullback f).map |
| 450 | (Invertible.Scheme.Modules.sheafifyValIso (Invertible.Scheme.Modules.unitObj X)).hom ≫ |
| 451 | (Invertible.Scheme.Modules.pullbackUnitIso f).hom = p ≫ q := by |
| 452 | exact congrArg (fun k => p ≫ k) hq.symm |
| 453 | rw [hpq] |
| 454 | dsimp only [q] |
| 455 | dsimp only [p] |
| 456 | simp |
| 457 | rw [unitPullbackLocalizedSheafification_ε] |
| 458 | rw [unitPullbackLocalizedSheafification_η] |
| 459 | rw [unitPullbackSheafPullbackLifting_iso] |
| 460 | erw [Category.id_comp] |
| 461 | have hmapId := (unitPullbackSheafPullback f).map_id |
| 462 | ((unitPullbackLocalizedSheafification X).obj |
| 463 | (𝟙_ (_root_.PresheafOfModules (unitPullbackRingSheaf X).obj))) |
| 464 | erw [hmapId] |
| 465 | let r := |
| 466 | (SheafOfModules.sheafificationCompPullback |
| 467 | (unitPullbackSheafHom f)).hom.app |
| 468 | (𝟙_ (_root_.PresheafOfModules |
| 469 | (unitPullbackRingSheaf X).obj)) ≫ |
| 470 | sheafifiedPresheafPullbackUnitHom f ≫ |
| 471 | (Invertible.Scheme.Modules.sheafifyValIso (Invertible.Scheme.Modules.unitObj Y)).hom |
| 472 | have hid : (𝟙 _) ≫ r = r := Category.id_comp r |
| 473 | have hremove := congrArg |
| 474 | (fun k => |
| 475 | (unitPullbackLocalizedSheafification Y).map |
| 476 | (Functor.LaxMonoidal.ε (unitPullbackPresheafPullback f)) ≫ |
| 477 | (SheafOfModules.sheafificationCompPullback |
| 478 | (unitPullbackSheafHom f)).inv.app |
| 479 | (𝟙_ (_root_.PresheafOfModules |
| 480 | (unitPullbackRingSheaf X).obj)) ≫ k) |
| 481 | hid |
| 482 | dsimp only [r] at hremove |
| 483 | refine Eq.trans ?_ hremove.symm |
| 484 | change (Invertible.Scheme.Modules.sheafifyValIso (Invertible.Scheme.Modules.unitObj Y)).hom = |
| 485 | (unitPullbackLocalizedSheafification Y).map |
| 486 | (Functor.LaxMonoidal.ε (unitPullbackPresheafPullback f)) ≫ |
| 487 | (SheafOfModules.sheafificationCompPullback |
| 488 | (unitPullbackSheafHom f)).inv.app |
| 489 | (PresheafOfModules.unit X.ringCatSheaf.obj) ≫ |
| 490 | (SheafOfModules.sheafificationCompPullback |
| 491 | (unitPullbackSheafHom f)).hom.app |
| 492 | (PresheafOfModules.unit X.ringCatSheaf.obj) ≫ |
| 493 | (unitPullbackLocalizedSheafification Y).map |
| 494 | (Functor.OplaxMonoidal.η (unitPullbackPresheafPullback f)) ≫ |
| 495 | (Invertible.Scheme.Modules.sheafifyValIso (Invertible.Scheme.Modules.unitObj Y)).hom |
| 496 | erw [Iso.inv_hom_id_app_assoc] |
| 497 | have hεη : (unitPullbackLocalizedSheafification Y).map |
| 498 | (Functor.LaxMonoidal.ε (unitPullbackPresheafPullback f)) ≫ |
| 499 | (unitPullbackLocalizedSheafification Y).map |
| 500 | (Functor.OplaxMonoidal.η (unitPullbackPresheafPullback f)) = 𝟙 _ := |
| 501 | Functor.Monoidal.map_ε_η (unitPullbackPresheafPullback f) |
| 502 | (unitPullbackLocalizedSheafification Y) |
| 503 | symm |
| 504 | have hassoc := (Category.assoc |
| 505 | ((unitPullbackLocalizedSheafification Y).map |
| 506 | (Functor.LaxMonoidal.ε (unitPullbackPresheafPullback f))) |
| 507 | ((unitPullbackLocalizedSheafification Y).map |
| 508 | (Functor.OplaxMonoidal.η (unitPullbackPresheafPullback f))) |
| 509 | (Invertible.Scheme.Modules.sheafifyValIso (Invertible.Scheme.Modules.unitObj Y)).hom).symm |
| 510 | have hone := congrArg |
| 511 | (fun k => k ≫ (Invertible.Scheme.Modules.sheafifyValIso (Invertible.Scheme.Modules.unitObj Y)).hom) hεη |
| 512 | exact hassoc.trans (hone.trans (Category.id_comp _)) |
| 513 | |
| 514 | /-- The monoidal unit comparison of sheaf pullback agrees with the canonical |
| 515 | pullback isomorphism for the structure sheaf. -/ |
| 516 | theorem pullback_monoidalUnitObjIso (f : Y ⟶ X) : |
| 517 | (Functor.Monoidal.εIso (Scheme.Modules.pullback f)).symm ≪≫ |
| 518 | Invertible.Scheme.Modules.sheafifyValIso (Invertible.Scheme.Modules.unitObj Y) = |
| 519 | (Scheme.Modules.pullback f).mapIso (Invertible.Scheme.Modules.sheafifyValIso (Invertible.Scheme.Modules.unitObj X)) ≪≫ |
| 520 | Invertible.Scheme.Modules.pullbackUnitIso f := by |
| 521 | apply Iso.ext |
| 522 | exact pullback_monoidalUnitObjIso_hom f |
| 523 | |
| 524 | end Scheme.Modules |
| 525 | |
| 526 | end OAI.AlgebraicGeometry.SheafCohomology.Projective.PullbackUnitMonoidal |