/-
Copyright (c) 2025 Christian Merten. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Christian Merten, Joël Riou
-/
module
public import Mathlib.AlgebraicGeometry.Sites.Small
public import Mathlib.CategoryTheory.Sites.DenseSubsite.OneHypercoverDense
/-!
# Small affine site induced by a morphism property
Let `P` be a morphism property of schemes and `S` be a scheme. In this file we study the small
affine `P`-site of `S`: its objects are rings `R` with a structure morphism `Spec R ⟶ S` that
satisfies `P`.
We don't make a separate definition for this site, but use
`CategoryTheory.MorphismProperty.CostructuredArrow P ⊤ Scheme.Spec S`.
Under suitable assumptions on `P`, the lemmas here can be used to show that the small affine
`P`-site has the same category of sheaves as the general small `P`-site. If `P` implies
finitely generated, the small affine `P`-site is essentially small, so in particular
this can be used to show that the `P`-site admits sheafification. For an example,
see the file `Mathlib.AlgebraicGeometry.Sites.AffineEtale`.
-/
@[expose] public section
universe u
open CategoryTheory Opposite Limits MorphismProperty
namespace AlgebraicGeometry.Scheme
variable {S : Scheme.{u}}
/-- Construct an object of affine `P`-schemes over `S` by giving a morphism `Spec R ⟶ S`. -/
@[simps! hom left]
noncomputable def affineOverMk {P : MorphismProperty Scheme.{u}} {R : CommRingCat.{u}}
(f : Spec R ⟶ S) (hf : P f) :
P.CostructuredArrow ⊤ Scheme.Spec S :=
.mk ⊤ f hf
variable (P : MorphismProperty Scheme.{u}) [P.IsMultiplicative] [IsZariskiLocalAtSource P]
[P.IsStableUnderBaseChange] [P.HasOfPostcompProperty P]
set_option backward.isDefEq.respectTransparency.types false in
set_option backward.defeqAttrib.useBackward true in
/-- The `Spec` functor from affine `P`-schemes over `S` to `P`-schemes over `S` is dense
if `P` is local at the source. -/
instance isCoverDense_toOver_Spec :
(CostructuredArrow.toOver P Scheme.Spec S).IsCoverDense (S.smallGrothendieckTopology P) where
is_cover U := by
rw [Scheme.mem_smallGrothendieckTopology]
let : Cover.{u} (precoverage P) U.left :=
U.left.affineCover.changeProp
(fun _ ↦ IsZariskiLocalAtSource.of_isOpenImmersion _)
let _ (i : .I₀) : (.X i).Over S := ⟨.f i ≫ U.hom⟩
let _ : Cover.Over S := { isOver_map _ := ⟨rfl⟩ }
refine ⟨, inferInstance,
fun i ↦ P.comp_mem _ _ (.map_prop i) U.prop, fun X f ⟨i⟩ ↦ ?_⟩
rw [Sieve.coverByImage]
exact ⟨⟨affineOverMk (.f i ≫ U.hom) (P.comp_mem _ _ (.map_prop i) U.prop),
CostructuredArrow.homMk ( _) ⟨⟩ rfl, Over.homMk (.f i) (by simp) trivial,
by cat_disch⟩⟩
set_option backward.isDefEq.respectTransparency.types false in
instance isOneHypercoverDense_toOver_Spec :
Functor.IsOneHypercoverDense.{u} (CostructuredArrow.toOver P Scheme.Spec S)
((CostructuredArrow.toOver P Scheme.Spec S).inducedTopology (S.smallGrothendieckTopology P))
(S.smallGrothendieckTopology P) :=
Functor.IsOneHypercoverDense.of_hasPullbacks fun X ↦ by
let := affineOpenCover X.left
let : Cover (precoverage P) X.left :=
.openCover.changeProp (fun _ ↦ IsZariskiLocalAtSource.of_isOpenImmersion _)
let _ (i : .I₀) : (.X i).Over S := ⟨.f i ≫ X.hom⟩
let : Cover.Over S := { isOver_map _ := ⟨rfl⟩ }
refine ⟨.I₀, fun i ↦ affineOverMk (.f i ≫ X.hom)
(P.comp_mem _ _ (IsZariskiLocalAtSource.of_isOpenImmersion (.f i)) X.prop),
fun i ↦ CostructuredArrow.homMk (.f i) (by simp), ?_⟩
rw [Scheme.mem_smallGrothendieckTopology]
exact ⟨, inferInstance, fun i ↦ P.comp_mem _ _ (.map_prop i) X.prop,
fun _ _ ⟨i⟩ ↦ (Sieve.mem_ofArrows_iff ..).mpr ⟨i, _, by cat_disch⟩⟩
end AlgebraicGeometry.Scheme
¤ Dauer der Verarbeitung: 0.3 Sekunden
¤
*© Formatika GbR, Deutschland