/-
Copyright (c) 2024 Christian Merten. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Christian Merten
-/
module
public import Mathlib.AlgebraicGeometry.Morphisms.UnderlyingMap
public import Mathlib.CategoryTheory.Limits.MorphismProperty
/-!
# Covers of schemes over a base
In this file we define the typeclass `Cover.Over`. For a cover `` of an `S`-scheme `X`,
the datum `.Over S` contains `S`-scheme structures on the components of `` and asserts
that the component maps are morphisms of `S`-schemes.
We provide instances of `.Over S` for standard constructions on covers.
-/
@[expose] public section
universe v u
noncomputable section
open CategoryTheory Limits
namespace AlgebraicGeometry.Scheme
variable {P : MorphismProperty Scheme.{u}} (S : Scheme.{u})
/-- Bundle an `S`-scheme with `P` into an object of `P.Over ⊤ S`. -/
abbrev asOverProp (X : Scheme.{u}) (S : Scheme.{u}) [X.Over S] (h : P (X ↘ S)) : P.Over ⊤ S :=
⟨X.asOver S, h⟩
/-- Bundle an `S`-morphism of `S`-scheme with `P` into a morphism in `P.Over ⊤ S`. -/
abbrev Hom.asOverProp {X Y : Scheme.{u}} (f : X.Hom Y) (S : Scheme.{u}) [X.Over S] [Y.Over S]
[f.IsOver S] {hX : P (X ↘ S)} {hY : P (Y ↘ S)} : X.asOverProp S hX ⟶ Y.asOverProp S hY :=
⟨f.asOver S, trivial, trivial⟩
/-- A `P`-cover of a scheme `X` over `S` is a cover, where the components are over `S` and the
component maps commute with the structure morphisms. -/
protected class Cover.Over {P : MorphismProperty Scheme.{u}} [P.IsStableUnderBaseChange]
[IsJointlySurjectivePreserving P] {X : Scheme.{u}} [X.Over S]
( : X.Cover (precoverage P)) where
over (j : .I₀) : (.X j).Over S := by infer_instance
isOver_map (j : .I₀) : (.f j).IsOver S := by infer_instance
attribute [instance_reducible] Cover.Over.over
attribute [instance] Cover.Over.over Cover.Over.isOver_map
variable [P.IsStableUnderBaseChange] [IsJointlySurjectivePreserving P]
instance [P.ContainsIdentities] [P.RespectsIso] {X Y : Scheme.{u}} (f : X ⟶ Y) [X.Over S] [Y.Over S]
[f.IsOver S] [IsIso f] : (coverOfIsIso (P := P) f).Over S where
over _ := inferInstanceAs <| X.Over S
isOver_map _ := inferInstanceAs <| f.IsOver S
section
variable {X W : Scheme.{u}} ( : X.Cover (precoverage P)) (f : W ⟶ X) [W.Over S] [X.Over S]
[.Over S] [f.IsOver S]
set_option backward.isDefEq.respectTransparency false in
/-- The pullback of a cover of `S`-schemes along a morphism of `S`-schemes. This is not
definitionally equal to `AlgebraicGeometry.Scheme.Cover.pullback₁`, as here we take
the pullback in `Over S`, whose underlying scheme is only isomorphic but not equal to the
pullback in `Scheme`. -/
@[simps]
def Cover.pullbackCoverOver : W.Cover (precoverage P) where
I₀ := .I₀
X x := (pullback (f.asOver S) ((.f x).asOver S)).left
f x := (pullback.fst (f.asOver S) ((.f x).asOver S)).left
mem₀ := by
rw [presieve₀_mem_precoverage_iff]
refine ⟨fun x ↦ ?_, fun j ↦ ?_⟩
· obtain ⟨i, hy⟩ := Cover.exists_eq (.pullback₁ f) x
use i
exact (mem_range_iff_of_surjective ((.pullback₁ f).f i) _
((PreservesPullback.iso (Over.forget S) (f.asOver S) ((.f _).asOver S)).inv)
(PreservesPullback.iso_inv_fst _ _ _) x).mp hy
· dsimp only
rw [← Over.forget_map, ← PreservesPullback.iso_hom_fst, P.cancel_left_of_respectsIso]
exact P.pullback_fst _ _ (.map_prop j)
instance (j : .I₀) : ((.pullbackCoverOver S f).X j).Over S where
hom := (pullback (f.asOver S) ((.f j).asOver S)).hom
set_option backward.isDefEq.respectTransparency.types false in
instance : (.pullbackCoverOver S f).Over S where
isOver_map j := { comp_over := by exact Over.w (pullback.fst (f.asOver S) ((.f j).asOver S)) }
set_option backward.isDefEq.respectTransparency false in
/-- A variant of `AlgebraicGeometry.Scheme.Cover.pullbackCoverOver` with the arguments in the
fiber products flipped. -/
@[simps]
def Cover.pullbackCoverOver' : W.Cover (precoverage P) where
I₀ := .I₀
X x := (pullback ((.f x).asOver S) (f.asOver S)).left
f x := (pullback.snd ((.f x).asOver S) (f.asOver S)).left
mem₀ := by
rw [presieve₀_mem_precoverage_iff]
refine ⟨fun x ↦ ?_, fun j ↦ ?_⟩
· obtain ⟨i, hy⟩ := Cover.exists_eq (.pullback₂ f) x
use i
exact (mem_range_iff_of_surjective ((.pullback₂ f).f _) _
((PreservesPullback.iso (Over.forget S) ((.f _).asOver S) (f.asOver S)).inv)
(PreservesPullback.iso_inv_snd _ _ _) x).mp hy
· dsimp only
rw [← Over.forget_map, ← PreservesPullback.iso_hom_snd, P.cancel_left_of_respectsIso]
exact P.pullback_snd _ _ (.map_prop j)
instance (j : .I₀) : ((.pullbackCoverOver' S f).X j).Over S where
hom := (pullback ((.f j).asOver S) (f.asOver S)).hom
set_option backward.isDefEq.respectTransparency.types false in
instance : (.pullbackCoverOver' S f).Over S where
isOver_map j := { comp_over := by exact Over.w (pullback.snd ((.f j).asOver S) (f.asOver S)) }
variable {Q : MorphismProperty Scheme.{u}} [Q.HasOfPostcompProperty Q]
[Q.IsStableUnderBaseChange] [Q.IsStableUnderComposition]
variable (hX : Q (X ↘ S)) (hW : Q (W ↘ S)) (hQ : ∀ j, Q (.X j ↘ S))
set_option backward.isDefEq.respectTransparency false in
/-- The pullback of a cover of `S`-schemes with `Q` along a morphism of `S`-schemes. This is not
definitionally equal to `AlgebraicGeometry.Scheme.Cover.pullbackCover`, as here we take
the pullback in `Q.Over ⊤ S`, whose underlying scheme is only isomorphic but not equal to the
pullback in `Scheme`. -/
@[simps -isSimp]
def Cover.pullbackCoverOverProp : W.Cover (precoverage P) where
I₀ := .I₀
X x := (pullback (f.asOverProp (hX := hW) (hY := hX) S)
((.f x).asOverProp (hX := hQ x) (hY := hX) S)).left
f x := (pullback.fst (f.asOverProp S) ((.f x).asOverProp S)).left
mem₀ := by
rw [presieve₀_mem_precoverage_iff]
refine ⟨fun x ↦ ?_, fun j ↦ ?_⟩
· obtain ⟨i, hy⟩ := Cover.exists_eq (.pullback₁ f) x
use i
exact (mem_range_iff_of_surjective ((.pullback₁ f).f i) _
((PreservesPullback.iso (MorphismProperty.Over.forget Q _ _ ⋙ Over.forget S)
(f.asOverProp S) ((.f _).asOverProp S)).inv)
(PreservesPullback.iso_inv_fst _ _ _) x).mp hy
· simp only [← CategoryTheory.Over.forget_map]
rw [MorphismProperty.Comma.toCommaMorphism_eq_hom,
← MorphismProperty.Comma.forget_map, ← Functor.comp_map]
rw [← PreservesPullback.iso_hom_fst, P.cancel_left_of_respectsIso]
exact P.pullback_fst _ _ (.map_prop j)
instance (j : .I₀) : ((.pullbackCoverOverProp S f hX hW hQ).X j).Over S where
hom := (pullback (f.asOverProp (hX := hW) (hY := hX) S)
((.f j).asOverProp (hX := hQ j) (hY := hX) S)).hom
set_option backward.isDefEq.respectTransparency.types false in
instance : (.pullbackCoverOverProp S f hX hW hQ).Over S where
isOver_map j :=
{ comp_over := by exact (pullback.fst (f.asOverProp S) ((.f j).asOverProp S)).w }
set_option backward.isDefEq.respectTransparency false in
/-- A variant of `AlgebraicGeometry.Scheme.Cover.pullbackCoverOverProp` with the arguments in the
fiber products flipped. -/
@[simps -isSimp]
def Cover.pullbackCoverOverProp' : W.Cover (precoverage P) where
I₀ := .I₀
X x := (pullback ((.f x).asOverProp (hX := hQ x) (hY := hX) S)
(f.asOverProp (hX := hW) (hY := hX) S)).left
f x := (pullback.snd ((.f x).asOverProp S) (f.asOverProp S)).left
mem₀ := by
rw [presieve₀_mem_precoverage_iff]
refine ⟨fun x ↦ ?_, fun j ↦ ?_⟩
· obtain ⟨i, hy⟩ := Cover.exists_eq (.pullback₂ f) x
use i
exact (mem_range_iff_of_surjective ((.pullback₂ f).f i) _
((PreservesPullback.iso (MorphismProperty.Over.forget Q _ _ ⋙ Over.forget S)
((.f _).asOverProp S) (f.asOverProp S)).inv)
(PreservesPullback.iso_inv_snd _ _ _) x).mp hy
· simp only [← CategoryTheory.Over.forget_map]
rw [MorphismProperty.Comma.toCommaMorphism_eq_hom,
← MorphismProperty.Comma.forget_map, ← Functor.comp_map]
rw [← PreservesPullback.iso_hom_snd, P.cancel_left_of_respectsIso]
exact P.pullback_snd _ _ (.map_prop j)
instance (j : .I₀) : ((.pullbackCoverOverProp' S f hX hW hQ).X j).Over S where
hom := (pullback ((.f j).asOverProp (hX := hQ j) (hY := hX) S)
(f.asOverProp (hX := hW) (hY := hX) S)).hom
set_option backward.isDefEq.respectTransparency.types false in
instance : (.pullbackCoverOverProp' S f hX hW hQ).Over S where
isOver_map j :=
{ comp_over := by exact (pullback.snd ((.f j).asOverProp S) (f.asOverProp S)).w }
end
variable [P.IsStableUnderComposition]
variable {X : Scheme.{u}} ( : X.Cover (precoverage P)) ( : ∀ x, (.X x).Cover (precoverage P))
[X.Over S] [.Over S] [∀ x, ( x).Over S]
instance (j : (.bind ).I₀) : ((.bind ).X j).Over S :=
inferInstanceAs <| (( j.1).X j.2).Over S
set_option backward.isDefEq.respectTransparency.types false in
set_option backward.defeqAttrib.useBackward true in
instance {X : Scheme.{u}} ( : X.Cover (precoverage P)) ( : ∀ x, (.X x).Cover (precoverage P))
[X.Over S] [.Over S] [∀ x, ( x).Over S] : Cover.Over S (.bind ) where
over := fun ⟨i, j⟩ ↦ inferInstanceAs <| (( i).X j).Over S
isOver_map := fun ⟨i, j⟩ ↦ { comp_over := by simp; rfl }
end AlgebraicGeometry.Scheme
¤ Dauer der Verarbeitung: 0.2 Sekunden
(vorverarbeitet am 2026-11-24)
¤
*© Formatika GbR, Deutschland