cfahlgren1/math / lean /OAI /NumberTheory /PiExponent /Geometry /LineBundleTensor.lean
cfahlgren1's picture
download
raw
14 kB
import Mathlib
namespace OAI
noncomputable section
namespace PiExponentSeshadri
namespace Geometry
open CategoryTheory AlgebraicGeometry TopologicalSpace
open scoped AlgebraicGeometry
variable (X : Scheme)
structure LineBundle where
sheaf : X.Modules
locallyRankOne : ∀ x : X, ∃ U : X.Opens, x ∈ U ∧
Nonempty (sheaf.restrict U.ι ≅ SheafOfModules.unit U.toScheme.ringCatSheaf)
def moduleTensor (M N : X.Modules) : X.Modules :=
(PresheafOfModules.sheafification (𝟙 X.ringCatSheaf.obj)).obj
(PresheafOfModulesOfCommRing.Monoidal.tensorObj (R := X.presheaf) M.val N.val)
def modulePow (M : X.Modules) : ℕ → X.Modules
| 0 => SheafOfModules.unit X.ringCatSheaf
| n + 1 => moduleTensor X M (modulePow M n)
def structureSheaf : X.Modules := SheafOfModules.unit X.ringCatSheaf
abbrev GlobalSections (M : X.Modules) := structureSheaf X ⟶ M
def sectionOpen {M : X.Modules} (s : GlobalSections X M) : X.Opens :=
⨆ (U : X.Opens) (_ : IsIso ((Scheme.Modules.restrictFunctor U.ι).map s)), U
def LineBundle.IsAmple (L : LineBundle X) : Prop :=
∀ (x : X) (V : X.Opens), x ∈ V → ∃ n : ℕ, 0 < n ∧
∃ s : GlobalSections X (modulePow X L.sheaf n),
x ∈ sectionOpen X s ∧ sectionOpen X s ≤ V ∧ IsAffineOpen (sectionOpen X s)
end Geometry
open CategoryTheory
open CategoryTheory.Category CategoryTheory.Functor
universe v u v₁ v₂ u₁ u₂
namespace ModulePresheaf
open PresheafOfModules
variable {C : Type u₁} [Category.{v₁} C] {D : Type u₂} [Category.{v₂} D]
{F G : C ⥤ D} {T : Cᵒᵖ ⥤ RingCat.{u}} {S : Dᵒᵖ ⥤ RingCat.{u}}
def pushforwardCongr {φ ψ : T ⟶ F.op ⋙ S} (h : φ = ψ) :
pushforward.{v} φ ≅ pushforward.{v} ψ :=
NatIso.ofComponents (fun M ↦
PresheafOfModules.isoMk (fun U ↦
(ModuleCat.restrictScalarsCongr (by subst h; rfl)).app _)
(fun _ _ _ ↦ by subst h; rfl)) (fun _ ↦ by subst h; rfl)
@[simp] lemma pushforwardCongr_hom_app {φ ψ : T ⟶ F.op ⋙ S} (h : φ = ψ)
(M : PresheafOfModules.{v} S) (U) (x) :
((pushforwardCongr h).hom.app M).app U x = x := by
subst h
rfl
def pushforwardNatTrans (φ : T ⟶ G.op ⋙ S) (α : F ⟶ G) :
pushforward.{v} φ ⟶
pushforward.{v} (φ ≫ whiskerRight (NatTrans.op α) S) where
app M := {
app U := (ModuleCat.restrictScalars (φ.app U).hom).map (M.map (α.app U.unop).op)
naturality {U V} i := by
ext x
change (M.presheaf.map (G.map i.unop).op ≫ M.presheaf.map (α.app V.unop).op) _ =
(M.presheaf.map (α.app U.unop).op ≫ M.presheaf.map (F.map i.unop).op) _
simp only [← Functor.map_comp, ← op_comp, α.naturality] }
naturality {M N} f := by
ext U x
exact congr($(f.naturality (α.app U.unop).op) x).symm
@[simp] lemma pushforwardNatTrans_app_app
(φ : T ⟶ G.op ⋙ S) (α : F ⟶ G) (M U x) :
((pushforwardNatTrans φ α).app M).app U x = M.map (α.app U.unop).op x := rfl
variable {F : C ⥤ D} {G : D ⥤ C}
(adj : F ⊣ G) (φ : T ⟶ F.op ⋙ S) (ψ : S ⟶ G.op ⋙ T)
(H₁ : whiskerRight (NatTrans.op adj.counit) S = ψ ≫ G.op.whiskerLeft φ)
(H₂ : φ ≫ F.op.whiskerLeft ψ ≫
whiskerRight (NatTrans.op adj.unit) T = 𝟙 T)
def pushforwardPushforwardAdj : pushforward.{v} φ ⊣ pushforward.{v} ψ where
unit := (pushforwardId _).inv ≫ pushforwardNatTrans (𝟙 _) adj.counit ≫
(pushforwardCongr (by simpa using H₁)).hom ≫ (pushforwardComp _ _).inv
counit := (pushforwardComp _ _).hom ≫ pushforwardNatTrans _ adj.unit ≫
(pushforwardCongr (by simpa using H₂)).hom ≫ (pushforwardId _).hom
left_triangle_components M := by
ext U x
simp only [comp_app, ModuleCat.comp_apply,
pushforwardId, pushforwardComp, Iso.refl_hom, Iso.refl_inv]
change M.map (F.map (adj.unit.app U.unop)).op
(M.map (adj.counit.app (F.obj U.unop)).op x) = x
change M.obj (Opposite.op (F.obj U.unop)) at x
erw [← M.map_comp_apply, ← op_comp, adj.left_triangle_components, op_id, M.map_id]
rfl
right_triangle_components M := by
ext U x
simp only [comp_app, ModuleCat.comp_apply,
pushforwardId, pushforwardComp, Iso.refl_hom, Iso.refl_inv]
change M.map (adj.unit.app (G.obj U.unop)).op
(M.map (G.map (adj.counit.app U.unop)).op x) = x
change M.obj (Opposite.op (G.obj U.unop)) at x
erw [← M.map_comp_apply, ← op_comp, adj.right_triangle_components, op_id, M.map_id]
rfl
end ModulePresheaf
namespace Geometry
section
open AlgebraicGeometry TopologicalSpace
open scoped AlgebraicGeometry
variable {X Y : Scheme} (f : X ⟶ Y) [IsOpenImmersion f]
def modulePresheafRestrict : PresheafOfModules Y.ringCatSheaf.obj ⥤
PresheafOfModules X.ringCatSheaf.obj :=
let α : X.presheaf ⟶ f.opensFunctor.op ⋙ Y.presheaf :=
{ app U := (f.appIso U.unop).inv }
PresheafOfModules.pushforward (Functor.whiskerRight α (forget₂ CommRingCat RingCat))
def modulePresheafRestrictAdjunction : modulePresheafRestrict f ⊣
PresheafOfModules.pushforward f.toRingCatSheafHom.hom := by
refine ModulePresheaf.pushforwardPushforwardAdj
(by exact f.isOpenEmbedding.isOpenMap.adjunction) _ _ ?_ ?_
· ext U x
exact congr($((f.app_appIso_inv _).symm).hom x)
· ext U x
have h : (f.appIso U.unop).inv ≫ f.app _ ≫
X.presheaf.map (eqToHom (f.preimage_image_eq U.unop).symm).op = 𝟙 _ := by
rw [Scheme.Hom.appIso_inv_app_assoc, ← Functor.map_comp, ← X.presheaf.map_id]
rfl
exact congr($h x)
def moduleSheafificationRestrict :
PresheafOfModules.sheafification (𝟙 Y.ringCatSheaf.obj) ⋙
Scheme.Modules.restrictFunctor f ≅
modulePresheafRestrict f ⋙
PresheafOfModules.sheafification (𝟙 X.ringCatSheaf.obj) :=
Adjunction.leftAdjointUniq
((PresheafOfModules.sheafificationAdjunction (𝟙 Y.ringCatSheaf.obj)).comp
(Scheme.Modules.restrictAdjunction f))
((modulePresheafRestrictAdjunction f).comp
(PresheafOfModules.sheafificationAdjunction (𝟙 X.ringCatSheaf.obj)))
end
section
open CategoryTheory AlgebraicGeometry TopologicalSpace
open scoped AlgebraicGeometry
open MonoidalCategory
variable {X : Scheme}
def modulePresheafRestrictOpensIso (U : X.Opens) :
modulePresheafRestrict U.ι ≅
PresheafOfModules.pushforward₀OfCommRingCat U.ι.opensFunctor X.presheaf := by
let α : U.toScheme.presheaf ⟶ U.ι.opensFunctor.op ⋙ X.presheaf :=
{ app V := (U.ι.appIso V.unop).inv }
have h : Functor.whiskerRight α (forget₂ CommRingCat RingCat) = 𝟙 _ := by
ext V x
simp only [Functor.whiskerRight_app, α, Scheme.Opens.ι_appIso, Iso.refl_inv]
rfl
exact ModulePresheaf.pushforwardCongr (F := U.ι.opensFunctor)
(T := U.toScheme.ringCatSheaf.obj) (S := X.ringCatSheaf.obj) h
def modulePresheafTensorRestrict (U : X.Opens)
(M N : PresheafOfModules X.ringCatSheaf.obj) :
(modulePresheafRestrict U.ι).obj
(PresheafOfModulesOfCommRing.Monoidal.tensorObj (R := X.presheaf) M N) ≅
PresheafOfModulesOfCommRing.Monoidal.tensorObj (R := U.toScheme.presheaf)
((modulePresheafRestrict U.ι).obj M)
((modulePresheafRestrict U.ι).obj N) := by
letI : MonoidalCategory (PresheafOfModules U.toScheme.ringCatSheaf.obj) :=
PresheafOfModulesOfCommRing.monoidalCategory (R := U.toScheme.presheaf)
exact (modulePresheafRestrictOpensIso U).app _ ≪≫
(Functor.Monoidal.μIso
(PresheafOfModules.pushforward₀OfCommRingCat U.ι.opensFunctor X.presheaf) M N).symm ≪≫
tensorIso ((modulePresheafRestrictOpensIso U).symm.app M)
((modulePresheafRestrictOpensIso U).symm.app N)
end
open CategoryTheory AlgebraicGeometry TopologicalSpace MonoidalCategory
open scoped AlgebraicGeometry
variable {X : Scheme}
def moduleTensorRestrict (U : X.Opens) (M N : X.Modules) :
(moduleTensor X M N).restrict U.ι ≅
moduleTensor U.toScheme (M.restrict U.ι) (N.restrict U.ι) :=
(moduleSheafificationRestrict U.ι).app _ ≪≫
(PresheafOfModules.sheafification (𝟙 U.toScheme.ringCatSheaf.obj)).mapIso
(modulePresheafTensorRestrict U M.val N.val)
def moduleTensorIso {M N P Q : X.Modules} (e : M ≅ N) (f : P ≅ Q) :
moduleTensor X M P ≅ moduleTensor X N Q := by
letI : MonoidalCategory (PresheafOfModules X.ringCatSheaf.obj) :=
PresheafOfModulesOfCommRing.monoidalCategory (R := X.presheaf)
exact (PresheafOfModules.sheafification (𝟙 X.ringCatSheaf.obj)).mapIso
(tensorIso ((SheafOfModules.forget _).mapIso e) ((SheafOfModules.forget _).mapIso f))
def moduleTensorUnit (M : X.Modules) :
moduleTensor X (structureSheaf X) M ≅ M := by
letI : MonoidalCategory (PresheafOfModules X.ringCatSheaf.obj) :=
PresheafOfModulesOfCommRing.monoidalCategory (R := X.presheaf)
exact (PresheafOfModules.sheafification (𝟙 X.ringCatSheaf.obj)).mapIso (λ_ M.val) ≪≫
(asIso (PresheafOfModules.sheafificationAdjunction (R := X.ringCatSheaf)
(𝟙 X.ringCatSheaf.obj)).counit).app M
def modulePowFrame {M : X.Modules} (U : X.Opens)
(e : M.restrict U.ι ≅ structureSheaf U.toScheme) :
∀ n, (modulePow X M n).restrict U.ι ≅ structureSheaf U.toScheme
| 0 => Scheme.Modules.restrictUnitIso U.ι
| n + 1 => moduleTensorRestrict U M (modulePow X M n) ≪≫
moduleTensorIso e (modulePowFrame U e n) ≪≫ moduleTensorUnit _
def LineBundle.pow (L : LineBundle X) (n : ℕ) : LineBundle X where
sheaf := modulePow X L.sheaf n
locallyRankOne x := by
obtain ⟨U, hx, ⟨frame⟩⟩ := L.locallyRankOne x
exact ⟨U, hx, ⟨modulePowFrame U frame n⟩⟩
def moduleTensorMap {M N P Q : X.Modules} (f : M ⟶ N) (g : P ⟶ Q) :
moduleTensor X M P ⟶ moduleTensor X N Q :=
(PresheafOfModules.sheafification (𝟙 X.ringCatSheaf.obj)).map
(PresheafOfModulesOfCommRing.Monoidal.tensorHom (R := X.presheaf) f.val g.val)
@[simp] lemma moduleTensorMap_id (M N : X.Modules) :
moduleTensorMap (𝟙 M) (𝟙 N) = 𝟙 (moduleTensor X M N) := by
let : MonoidalCategory (PresheafOfModules X.ringCatSheaf.obj) :=
PresheafOfModulesOfCommRing.monoidalCategory (R := X.presheaf)
change (PresheafOfModules.sheafification (𝟙 X.ringCatSheaf.obj)).map
((𝟙 M.val) ⊗ₘ (𝟙 N.val)) = _
rw [id_tensorHom_id]
exact (PresheafOfModules.sheafification (𝟙 X.ringCatSheaf.obj)).map_id _
@[reassoc] lemma moduleTensorMap_comp {M N P Q R T : X.Modules}
(f : M ⟶ N) (g : N ⟶ P) (h : Q ⟶ R) (k : R ⟶ T) :
moduleTensorMap (f ≫ g) (h ≫ k) = moduleTensorMap f h ≫ moduleTensorMap g k := by
let : MonoidalCategory (PresheafOfModules X.ringCatSheaf.obj) :=
PresheafOfModulesOfCommRing.monoidalCategory (R := X.presheaf)
change (PresheafOfModules.sheafification (𝟙 X.ringCatSheaf.obj)).map
((f.val ≫ g.val) ⊗ₘ (h.val ≫ k.val)) = _
rw [← tensorHom_comp_tensorHom]
exact Functor.map_comp _ _ _
instance moduleTensorMap_isIso {M N P Q : X.Modules} (f : M ⟶ N)
(g : P ⟶ Q) [IsIso f] [IsIso g] : IsIso (moduleTensorMap f g) := by
refine ⟨⟨moduleTensorMap (inv f) (inv g), ?_, ?_⟩⟩ <;>
rw [← moduleTensorMap_comp] <;> simp
def modulePowMap {M N : X.Modules} (f : M ⟶ N) :
∀ n, modulePow X M n ⟶ modulePow X N n
| 0 => 𝟙 _
| n + 1 => moduleTensorMap f (modulePowMap f n)
@[simp] lemma modulePowMap_id (M : X.Modules) (n : ℕ) :
modulePowMap (𝟙 M) n = 𝟙 (modulePow X M n) := by
induction n with
| zero => rfl
| succ n hn =>
change moduleTensorMap (𝟙 M) (modulePowMap (𝟙 M) n) = 𝟙 (moduleTensor X M (modulePow X M n))
rw [hn, moduleTensorMap_id]
@[reassoc] lemma modulePowMap_comp {M N P : X.Modules}
(f : M ⟶ N) (g : N ⟶ P) (n : ℕ) :
modulePowMap (f ≫ g) n = modulePowMap f n ≫ modulePowMap g n := by
induction n with
| zero => exact (Category.id_comp _).symm
| succ n hn =>
change moduleTensorMap (f ≫ g) (modulePowMap (f ≫ g) n) =
moduleTensorMap f (modulePowMap f n) ≫ moduleTensorMap g (modulePowMap g n)
rw [hn, moduleTensorMap_comp]
instance modulePowMap_isIso {M N : X.Modules} (f : M ⟶ N) [IsIso f] (n : ℕ) :
IsIso (modulePowMap f n) := by
induction n with
| zero => change IsIso (𝟙 (structureSheaf X)); infer_instance
| succ n hn => change IsIso (moduleTensorMap f (modulePowMap f n)); infer_instance
def modulePowFunctor (n : ℕ) : X.Modules ⥤ X.Modules where
obj M := modulePow X M n
map f := modulePowMap f n
map_id := fun _ => modulePowMap_id _ n
map_comp := fun _ _ => modulePowMap_comp _ _ n
def unitPowerIso : ∀ n, modulePow X (structureSheaf X) n ≅ structureSheaf X
| 0 => Iso.refl _
| n + 1 => moduleTensorUnit _ ≪≫ unitPowerIso n
def powerSection {M : X.Modules} (s : structureSheaf X ⟶ M) (n : ℕ) :
structureSheaf X ⟶ modulePow X M n :=
(unitPowerIso n).inv ≫ modulePowMap s n
@[simp] lemma powerSection_zero {M : X.Modules} (s : structureSheaf X ⟶ M) :
powerSection s 0 = 𝟙 (structureSheaf X) := by
change 𝟙 (structureSheaf X) ≫ 𝟙 (structureSheaf X) = 𝟙 (structureSheaf X)
exact Category.id_comp _
lemma powerSection_natural {M N : X.Modules} (s : structureSheaf X ⟶ M)
(f : M ⟶ N) (n : ℕ) :
powerSection s n ≫ modulePowMap f n = powerSection (s ≫ f) n := by
simp only [powerSection, modulePowMap_comp, Category.assoc]
instance powerSection_isIso {M : X.Modules} (s : structureSheaf X ⟶ M) [IsIso s] (n : ℕ) :
IsIso (powerSection s n) := by unfold powerSection; infer_instance
def moduleTensorRightUnit (M : X.Modules) :
moduleTensor X M (structureSheaf X) ≅ M := by
let : MonoidalCategory (PresheafOfModules X.ringCatSheaf.obj) :=
PresheafOfModulesOfCommRing.monoidalCategory (R := X.presheaf)
exact (PresheafOfModules.sheafification (𝟙 X.ringCatSheaf.obj)).mapIso (ρ_ M.val) ≪≫
(asIso (PresheafOfModules.sheafificationAdjunction (R := X.ringCatSheaf)
(𝟙 X.ringCatSheaf.obj)).counit).app M
end Geometry
end PiExponentSeshadri
end
end OAI

Xet Storage Details

Size:
14 kB
·
Xet hash:
957df2693b1d1f1ead6dbb2257773c322c8f1f98b1817cbe91c0a3d895b9da42

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.