fact stringlengths 6 3.84k | type stringclasses 11 values | library stringclasses 32 values | imports listlengths 1 14 | filename stringlengths 20 95 | symbolic_name stringlengths 1 90 | docstring stringlengths 7 20k ⌀ |
|---|---|---|---|---|---|---|
Scheme.IsGermInjectiveAt (X : Scheme.{u}) (x : X) : Prop where
cond : ∃ (U : X.Opens) (hx : x ∈ U), IsAffineOpen U ∧ Function.Injective (X.presheaf.germ U x hx) | class | AlgebraicGeometry | [
"Mathlib.AlgebraicGeometry.Morphisms.FiniteType",
"Mathlib.AlgebraicGeometry.Noetherian",
"Mathlib.AlgebraicGeometry.Stalk",
"Mathlib.AlgebraicGeometry.Properties"
] | Mathlib/AlgebraicGeometry/SpreadingOut.lean | Scheme.IsGermInjectiveAt | The germ map at `x` is injective if there exists some affine `U ∋ x`
such that the map `Γ(X, U) ⟶ X_x` is injective |
injective_germ_basicOpen (U : X.Opens) (hU : IsAffineOpen U)
(x : X) (hx : x ∈ U) (f : Γ(X, U))
(hf : x ∈ X.basicOpen f)
(H : Function.Injective (X.presheaf.germ U x hx)) :
Function.Injective (X.presheaf.germ (X.basicOpen f) x hf) := by
rw [RingHom.injective_iff_ker_eq_bot, RingHom.ker_eq_bot_iff_eq_zero] at H ⊢
intro t ht
have := hU.isLocalization_basicOpen f
obtain ⟨t, s, rfl⟩ := IsLocalization.mk'_surjective (.powers f) t
rw [← RingHom.mem_ker, IsLocalization.mk'_eq_mul_mk'_one, Ideal.mul_unit_mem_iff_mem,
RingHom.mem_ker, RingHom.algebraMap_toAlgebra, TopCat.Presheaf.germ_res_apply] at ht
swap; · exact @isUnit_of_invertible _ _ _ (@IsLocalization.invertible_mk'_one ..)
rw [H _ ht, IsLocalization.mk'_zero] | lemma | AlgebraicGeometry | [
"Mathlib.AlgebraicGeometry.Morphisms.FiniteType",
"Mathlib.AlgebraicGeometry.Noetherian",
"Mathlib.AlgebraicGeometry.Stalk",
"Mathlib.AlgebraicGeometry.Properties"
] | Mathlib/AlgebraicGeometry/SpreadingOut.lean | injective_germ_basicOpen | null |
Scheme.exists_germ_injective (X : Scheme.{u}) (x : X) [X.IsGermInjectiveAt x] :
∃ (U : X.Opens) (hx : x ∈ U),
IsAffineOpen U ∧ Function.Injective (X.presheaf.germ U x hx) :=
Scheme.IsGermInjectiveAt.cond | lemma | AlgebraicGeometry | [
"Mathlib.AlgebraicGeometry.Morphisms.FiniteType",
"Mathlib.AlgebraicGeometry.Noetherian",
"Mathlib.AlgebraicGeometry.Stalk",
"Mathlib.AlgebraicGeometry.Properties"
] | Mathlib/AlgebraicGeometry/SpreadingOut.lean | Scheme.exists_germ_injective | null |
Scheme.exists_le_and_germ_injective (X : Scheme.{u}) (x : X) [X.IsGermInjectiveAt x]
(V : X.Opens) (hxV : x ∈ V) :
∃ (U : X.Opens) (hx : x ∈ U),
IsAffineOpen U ∧ U ≤ V ∧ Function.Injective (X.presheaf.germ U x hx) := by
obtain ⟨U, hx, hU, H⟩ := Scheme.IsGermInjectiveAt.cond (x := x)
obtain ⟨f, hf, hxf⟩ := hU.exists_basicOpen_le ⟨x, hxV⟩ hx
exact ⟨X.basicOpen f, hxf, hU.basicOpen f, hf, injective_germ_basicOpen U hU x hx f hxf H⟩ | lemma | AlgebraicGeometry | [
"Mathlib.AlgebraicGeometry.Morphisms.FiniteType",
"Mathlib.AlgebraicGeometry.Noetherian",
"Mathlib.AlgebraicGeometry.Stalk",
"Mathlib.AlgebraicGeometry.Properties"
] | Mathlib/AlgebraicGeometry/SpreadingOut.lean | Scheme.exists_le_and_germ_injective | null |
isGermInjectiveAt_iff_of_isOpenImmersion {x : X} [IsOpenImmersion f] :
Y.IsGermInjectiveAt (f.base x) ↔ X.IsGermInjectiveAt x := by
refine ⟨fun H ↦ ?_, fun _ ↦ inferInstance⟩
obtain ⟨U, hxU, hU, hU', H⟩ :=
Y.exists_le_and_germ_injective (f.base x) (V := f.opensRange) ⟨x, rfl⟩
obtain ⟨V, hV⟩ := (IsOpenImmersion.affineOpensEquiv f).surjective ⟨⟨U, hU⟩, hU'⟩
obtain rfl : f ''ᵁ V = U := Subtype.eq_iff.mp (Subtype.eq_iff.mp hV)
obtain ⟨y, hy, e : f.base y = f.base x⟩ := hxU
obtain rfl := f.isOpenEmbedding.injective e
refine ⟨V, hy, V.2, ?_⟩
replace H := ((MorphismProperty.injective CommRingCat).cancel_right_of_respectsIso _
(f.stalkMap y)).mpr H
replace H := ((MorphismProperty.injective CommRingCat).cancel_left_of_respectsIso
(f.appIso V).inv _).mpr H
simpa using H | lemma | AlgebraicGeometry | [
"Mathlib.AlgebraicGeometry.Morphisms.FiniteType",
"Mathlib.AlgebraicGeometry.Noetherian",
"Mathlib.AlgebraicGeometry.Stalk",
"Mathlib.AlgebraicGeometry.Properties"
] | Mathlib/AlgebraicGeometry/SpreadingOut.lean | isGermInjectiveAt_iff_of_isOpenImmersion | null |
Scheme.IsGermInjective (X : Scheme.{u}) := ∀ x : X, X.IsGermInjectiveAt x | abbrev | AlgebraicGeometry | [
"Mathlib.AlgebraicGeometry.Morphisms.FiniteType",
"Mathlib.AlgebraicGeometry.Noetherian",
"Mathlib.AlgebraicGeometry.Stalk",
"Mathlib.AlgebraicGeometry.Properties"
] | Mathlib/AlgebraicGeometry/SpreadingOut.lean | Scheme.IsGermInjective | The class of schemes such that for each `x : X`,
`Γ(X, U) ⟶ X_x` is injective for some affine `U` containing `x`.
This is typically satisfied when `X` is integral or locally Noetherian. |
Scheme.IsGermInjective.of_openCover
{X : Scheme.{u}} (𝒰 : X.OpenCover) [∀ i, (𝒰.X i).IsGermInjective] : X.IsGermInjective := by
intro x
rw [← (𝒰.covers x).choose_spec]
infer_instance | lemma | AlgebraicGeometry | [
"Mathlib.AlgebraicGeometry.Morphisms.FiniteType",
"Mathlib.AlgebraicGeometry.Noetherian",
"Mathlib.AlgebraicGeometry.Stalk",
"Mathlib.AlgebraicGeometry.Properties"
] | Mathlib/AlgebraicGeometry/SpreadingOut.lean | Scheme.IsGermInjective.of_openCover | null |
protected
Scheme.IsGermInjective.Spec
(H : ∀ I : Ideal R, I.IsPrime →
∃ f : R, f ∉ I ∧ ∀ (x y : R), y * x = 0 → y ∉ I → ∃ n, f ^ n * x = 0) :
(Spec R).IsGermInjective := by
refine fun p ↦ ⟨?_⟩
obtain ⟨f, hf, H⟩ := H p.asIdeal p.2
refine ⟨PrimeSpectrum.basicOpen f, hf, ?_, ?_⟩
· rw [← basicOpen_eq_of_affine]
exact (isAffineOpen_top (Spec R)).basicOpen _
rw [RingHom.injective_iff_ker_eq_bot, RingHom.ker_eq_bot_iff_eq_zero]
intro x hx
obtain ⟨x, s, rfl⟩ := IsLocalization.mk'_surjective
(S := ((Spec.structureSheaf R).val.obj (.op <| PrimeSpectrum.basicOpen f))) (.powers f) x
rw [← RingHom.mem_ker, IsLocalization.mk'_eq_mul_mk'_one, Ideal.mul_unit_mem_iff_mem,
RingHom.mem_ker, RingHom.algebraMap_toAlgebra] at hx
swap; · exact @isUnit_of_invertible _ _ _ (@IsLocalization.invertible_mk'_one ..)
erw [StructureSheaf.germ_toOpen] at hx
obtain ⟨⟨y, hy⟩, hy'⟩ := (IsLocalization.map_eq_zero_iff p.asIdeal.primeCompl
((Spec.structureSheaf R).presheaf.stalk p) _).mp hx
obtain ⟨n, hn⟩ := H x y hy' hy
refine (@IsLocalization.mk'_eq_zero_iff ..).mpr ?_
exact ⟨⟨_, n, rfl⟩, hn⟩ | lemma | AlgebraicGeometry | [
"Mathlib.AlgebraicGeometry.Morphisms.FiniteType",
"Mathlib.AlgebraicGeometry.Noetherian",
"Mathlib.AlgebraicGeometry.Stalk",
"Mathlib.AlgebraicGeometry.Properties"
] | Mathlib/AlgebraicGeometry/SpreadingOut.lean | Scheme.IsGermInjective.Spec | null |
@[stacks 0BX6]
spread_out_unique_of_isGermInjective {x : X} [X.IsGermInjectiveAt x]
(f g : X ⟶ Y) (e : f.base x = g.base x)
(H : f.stalkMap x =
Y.presheaf.stalkSpecializes (Inseparable.of_eq e.symm).specializes ≫ g.stalkMap x) :
∃ (U : X.Opens), x ∈ U ∧ U.ι ≫ f = U.ι ≫ g := by
obtain ⟨_, ⟨V : Y.Opens, hV, rfl⟩, hxV, -⟩ :=
(isBasis_affine_open Y).exists_subset_of_mem_open (Set.mem_univ (f.base x)) isOpen_univ
have hxV' : g.base x ∈ V := e ▸ hxV
obtain ⟨U, hxU, _, hUV, HU⟩ := X.exists_le_and_germ_injective x (f ⁻¹ᵁ V ⊓ g ⁻¹ᵁ V) ⟨hxV, hxV'⟩
refine ⟨U, hxU, ?_⟩
rw [← Scheme.Hom.resLE_comp_ι _ (hUV.trans inf_le_left),
← Scheme.Hom.resLE_comp_ι _ (hUV.trans inf_le_right)]
congr 1
have : IsAffine V := hV
suffices ∀ (U₀ V₀) (eU : U = U₀) (eV : V = V₀),
f.appLE V₀ U₀ (eU ▸ eV ▸ hUV.trans inf_le_left) =
g.appLE V₀ U₀ (eU ▸ eV ▸ hUV.trans inf_le_right) by
rw [← cancel_mono V.toScheme.isoSpec.hom]
simp only [Scheme.isoSpec, asIso_hom, Scheme.toSpecΓ_naturality,
Scheme.Hom.app_eq_appLE, Scheme.Hom.resLE_appLE]
congr 2
apply this <;> simp
rintro U V rfl rfl
have := ConcreteCategory.mono_of_injective _ HU
rw [← cancel_mono (X.presheaf.germ U x hxU)]
simp only [Scheme.Hom.appLE, Category.assoc, X.presheaf.germ_res', ← Scheme.stalkMap_germ, H]
simp only [TopCat.Presheaf.germ_stalkSpecializes_assoc, Scheme.stalkMap_germ] | lemma | AlgebraicGeometry | [
"Mathlib.AlgebraicGeometry.Morphisms.FiniteType",
"Mathlib.AlgebraicGeometry.Noetherian",
"Mathlib.AlgebraicGeometry.Stalk",
"Mathlib.AlgebraicGeometry.Properties"
] | Mathlib/AlgebraicGeometry/SpreadingOut.lean | spread_out_unique_of_isGermInjective | Let `x : X` and `f g : X ⟶ Y` be two morphisms such that `f x = g x`.
If `f` and `g` agree on the stalk of `x`, then they agree on an open neighborhood of `x`,
provided `X` is "germ-injective" at `x` (e.g. when it's integral or locally Noetherian).
TODO: The condition on `X` is unnecessary when `Y` is locally of finite type. |
spread_out_unique_of_isGermInjective' {x : X} [X.IsGermInjectiveAt x]
(f g : X ⟶ Y)
(e : X.fromSpecStalk x ≫ f = X.fromSpecStalk x ≫ g) :
∃ (U : X.Opens), x ∈ U ∧ U.ι ≫ f = U.ι ≫ g := by
fapply spread_out_unique_of_isGermInjective
· simpa using congr(($e).base (IsLocalRing.closedPoint _))
· apply Spec.map_injective
rw [← cancel_mono (Y.fromSpecStalk _)]
simpa [Scheme.Spec_map_stalkSpecializes_fromSpecStalk] | lemma | AlgebraicGeometry | [
"Mathlib.AlgebraicGeometry.Morphisms.FiniteType",
"Mathlib.AlgebraicGeometry.Noetherian",
"Mathlib.AlgebraicGeometry.Stalk",
"Mathlib.AlgebraicGeometry.Properties"
] | Mathlib/AlgebraicGeometry/SpreadingOut.lean | spread_out_unique_of_isGermInjective' | A variant of `spread_out_unique_of_isGermInjective`
whose condition is an equality of scheme morphisms instead of ring homomorphisms. |
exists_lift_of_germInjective_aux {U : X.Opens} {x : X} (hxU)
(φ : A ⟶ X.presheaf.stalk x) (φRA : R ⟶ A) (φRX : R ⟶ Γ(X, U))
(hφRA : RingHom.FiniteType φRA.hom)
(e : φRA ≫ φ = φRX ≫ X.presheaf.germ U x hxU) :
∃ (V : X.Opens) (hxV : x ∈ V),
V ≤ U ∧ RingHom.range φ.hom ≤ RingHom.range (X.presheaf.germ V x hxV).hom := by
letI := φRA.hom.toAlgebra
obtain ⟨s, hs⟩ := hφRA
choose W hxW f hf using fun t ↦ X.presheaf.germ_exist x (φ t)
have H : x ∈ s.inf W ⊓ U := by
rw [← SetLike.mem_coe, TopologicalSpace.Opens.coe_inf, TopologicalSpace.Opens.coe_finset_inf]
exact ⟨by simpa using fun x _ ↦ hxW x, hxU⟩
refine ⟨s.inf W ⊓ U, H, inf_le_right, ?_⟩
letI := φRX.hom.toAlgebra
letI := (φRX ≫ X.presheaf.germ U x hxU).hom.toAlgebra
letI := (φRX ≫ X.presheaf.map (homOfLE (inf_le_right (a := s.inf W))).op).hom.toAlgebra
let φ' : A →ₐ[R] X.presheaf.stalk x :=
{ φ.hom with commutes' := DFunLike.congr_fun (congr_arg CommRingCat.Hom.hom e) }
let ψ : Γ(X, s.inf W ⊓ U) →ₐ[R] X.presheaf.stalk x :=
{ (X.presheaf.germ _ x H).hom with commutes' := fun x ↦ X.presheaf.germ_res_apply _ _ _ _ }
change AlgHom.range φ' ≤ AlgHom.range ψ
rw [← Algebra.map_top, ← hs, AlgHom.map_adjoin, Algebra.adjoin_le_iff]
rintro _ ⟨i, hi, rfl : φ i = _⟩
refine ⟨X.presheaf.map (homOfLE (inf_le_left.trans (Finset.inf_le hi))).op (f i), ?_⟩
exact (X.presheaf.germ_res_apply _ _ _ _).trans (hf _) | lemma | AlgebraicGeometry | [
"Mathlib.AlgebraicGeometry.Morphisms.FiniteType",
"Mathlib.AlgebraicGeometry.Noetherian",
"Mathlib.AlgebraicGeometry.Stalk",
"Mathlib.AlgebraicGeometry.Properties"
] | Mathlib/AlgebraicGeometry/SpreadingOut.lean | exists_lift_of_germInjective_aux | null |
exists_lift_of_germInjective {x : X} [X.IsGermInjectiveAt x] {U : X.Opens} (hxU : x ∈ U)
(φ : A ⟶ X.presheaf.stalk x) (φRA : R ⟶ A) (φRX : R ⟶ Γ(X, U))
(hφRA : RingHom.FiniteType φRA.hom)
(e : φRA ≫ φ = φRX ≫ X.presheaf.germ U x hxU) :
∃ (V : X.Opens) (hxV : x ∈ V) (φ' : A ⟶ Γ(X, V)) (i : V ≤ U), IsAffineOpen V ∧
φ = φ' ≫ X.presheaf.germ V x hxV ∧ φRX ≫ X.presheaf.map i.hom.op = φRA ≫ φ' := by
obtain ⟨V, hxV, iVU, hV⟩ := exists_lift_of_germInjective_aux hxU φ φRA φRX hφRA e
obtain ⟨V', hxV', hV', iV'V, H⟩ := X.exists_le_and_germ_injective x V hxV
let f := X.presheaf.germ V' x hxV'
have hf' : RingHom.range (X.presheaf.germ V x hxV).hom ≤ RingHom.range f.hom := by
rw [← X.presheaf.germ_res iV'V.hom _ hxV']
exact Set.range_comp_subset_range (X.presheaf.map iV'V.hom.op) f
let e := RingEquiv.ofLeftInverse H.hasLeftInverse.choose_spec
refine ⟨V', hxV', CommRingCat.ofHom (e.symm.toRingHom.comp
(φ.hom.codRestrict _ (fun x ↦ hf' (hV ⟨x, rfl⟩)))), iV'V.trans iVU, hV', ?_, ?_⟩
· ext a
change φ a = (e (e.symm _)).1
simp only [RingEquiv.apply_symm_apply]
rfl
· ext a
apply e.injective
change e _ = e (e.symm _)
rw [RingEquiv.apply_symm_apply]
ext
change X.presheaf.germ _ _ _ (X.presheaf.map _ _) = (φRA ≫ φ) a
rw [TopCat.Presheaf.germ_res_apply, ‹φRA ≫ φ = _›]
rfl | lemma | AlgebraicGeometry | [
"Mathlib.AlgebraicGeometry.Morphisms.FiniteType",
"Mathlib.AlgebraicGeometry.Noetherian",
"Mathlib.AlgebraicGeometry.Stalk",
"Mathlib.AlgebraicGeometry.Properties"
] | Mathlib/AlgebraicGeometry/SpreadingOut.lean | exists_lift_of_germInjective | Suppose `X` is a scheme, `x : X` such that the germ map at `x` is (locally) injective,
and `U` is a neighborhood of `x`.
Given a commutative diagram of `CommRingCat`
```
R ⟶ Γ(X, U)
↓ ↓
A ⟶ 𝒪_{X, x}
```
such that `R` is of finite type over `A`, we may lift `A ⟶ 𝒪_{X, x}` to some `A ⟶ Γ(X, V)`. |
@[stacks 0BX6]
spread_out_of_isGermInjective [LocallyOfFiniteType sY] {x : X} [X.IsGermInjectiveAt x] {y : Y}
(e : sX.base x = sY.base y) (φ : Y.presheaf.stalk y ⟶ X.presheaf.stalk x)
(h : sY.stalkMap y ≫ φ =
S.presheaf.stalkSpecializes (Inseparable.of_eq e).specializes ≫ sX.stalkMap x) :
∃ (U : X.Opens) (hxU : x ∈ U) (f : U.toScheme ⟶ Y),
Spec.map φ ≫ Y.fromSpecStalk y = U.fromSpecStalkOfMem x hxU ≫ f ∧
f ≫ sY = U.ι ≫ sX := by
obtain ⟨_, ⟨U, hU, rfl⟩, hxU, -⟩ :=
(isBasis_affine_open S).exists_subset_of_mem_open (Set.mem_univ (sX.base x)) isOpen_univ
have hyU : sY.base y ∈ U := e ▸ hxU
obtain ⟨_, ⟨V : Y.Opens, hV, rfl⟩, hyV, iVU⟩ :=
(isBasis_affine_open Y).exists_subset_of_mem_open hyU (sY ⁻¹ᵁ U).2
have : sY.appLE U V iVU ≫ Y.presheaf.germ V y hyV ≫ φ =
sX.app U ≫ X.presheaf.germ (sX ⁻¹ᵁ U) x hxU := by
rw [Scheme.Hom.appLE, Category.assoc, Y.presheaf.germ_res_assoc,
← Scheme.stalkMap_germ_assoc, h]
simp
obtain ⟨W, hxW, φ', i, hW, h₁, h₂⟩ :=
exists_lift_of_germInjective (R := Γ(S, U)) (A := Γ(Y, V)) (U := sX ⁻¹ᵁ U) (x := x) hxU
(Y.presheaf.germ _ y hyV ≫ φ) (sY.appLE U V iVU) (sX.app U)
(LocallyOfFiniteType.finiteType_of_affine_subset ⟨_, hU⟩ ⟨_, hV⟩ _) this
refine ⟨W, hxW, W.toSpecΓ ≫ Spec.map φ' ≫ hV.fromSpec, ?_, ?_⟩
· rw [W.fromSpecStalkOfMem_toSpecΓ_assoc x hxW, ← Spec.map_comp_assoc, ← h₁,
Spec.map_comp, Category.assoc, ← IsAffineOpen.fromSpecStalk,
IsAffineOpen.fromSpecStalk_eq_fromSpecStalk]
· simp only [Category.assoc]
rw [← IsAffineOpen.Spec_map_appLE_fromSpec sY hU hV iVU, ← Spec.map_comp_assoc, ← h₂,
← Scheme.Hom.appLE, ← hW.isoSpec_hom, IsAffineOpen.Spec_map_appLE_fromSpec sX hU hW i,
← Iso.eq_inv_comp, IsAffineOpen.isoSpec_inv_ι_assoc] | lemma | AlgebraicGeometry | [
"Mathlib.AlgebraicGeometry.Morphisms.FiniteType",
"Mathlib.AlgebraicGeometry.Noetherian",
"Mathlib.AlgebraicGeometry.Stalk",
"Mathlib.AlgebraicGeometry.Properties"
] | Mathlib/AlgebraicGeometry/SpreadingOut.lean | spread_out_of_isGermInjective | Given `S`-schemes `X Y` and points `x : X` `y : Y` over `s : S`.
Suppose we have the following diagram of `S`-schemes
```
Spec 𝒪_{X, x} ⟶ X
|
Spec(φ)
↓
Spec 𝒪_{Y, y} ⟶ Y
```
Then the map `Spec(φ)` spreads out to an `S`-morphism on an open subscheme `U ⊆ X`,
```
Spec 𝒪_{X, x} ⟶ U ⊆ X
| |
Spec(φ) |
↓ ↓
Spec 𝒪_{Y, y} ⟶ Y
```
provided that `Y` is locally of finite type over `S` and
`X` is "germ-injective" at `x` (e.g. when it's integral or locally Noetherian).
TODO: The condition on `X` is unnecessary when `Y` is locally of finite presentation. |
spread_out_of_isGermInjective' [LocallyOfFiniteType sY] {x : X} [X.IsGermInjectiveAt x]
(φ : Spec (X.presheaf.stalk x) ⟶ Y)
(h : φ ≫ sY = X.fromSpecStalk x ≫ sX) :
∃ (U : X.Opens) (hxU : x ∈ U) (f : U.toScheme ⟶ Y),
φ = U.fromSpecStalkOfMem x hxU ≫ f ∧ f ≫ sY = U.ι ≫ sX := by
have := spread_out_of_isGermInjective sX sY ?_ (Scheme.stalkClosedPointTo φ) ?_
· simpa only [Scheme.Spec_stalkClosedPointTo_fromSpecStalk] using this
· rw [← Scheme.comp_base_apply, h, Scheme.comp_base_apply, Scheme.fromSpecStalk_closedPoint]
· apply Spec.map_injective
rw [← cancel_mono (S.fromSpecStalk _)]
simpa only [Spec.map_comp, Category.assoc, Scheme.Spec_map_stalkMap_fromSpecStalk,
Scheme.Spec_stalkClosedPointTo_fromSpecStalk_assoc,
Scheme.Spec_map_stalkSpecializes_fromSpecStalk] | lemma | AlgebraicGeometry | [
"Mathlib.AlgebraicGeometry.Morphisms.FiniteType",
"Mathlib.AlgebraicGeometry.Noetherian",
"Mathlib.AlgebraicGeometry.Stalk",
"Mathlib.AlgebraicGeometry.Properties"
] | Mathlib/AlgebraicGeometry/SpreadingOut.lean | spread_out_of_isGermInjective' | Given `S`-schemes `X Y`, a point `x : X`, and a `S`-morphism `φ : Spec 𝒪_{X, x} ⟶ Y`,
we may spread it out to an `S`-morphism `f : U ⟶ Y`
provided that `Y` is locally of finite type over `S` and
`X` is "germ-injective" at `x` (e.g. when it's integral or locally Noetherian).
TODO: The condition on `X` is unnecessary when `Y` is locally of finite presentation. |
noncomputable IsAffineOpen.fromSpecStalk
{X : Scheme} {U : X.Opens} (hU : IsAffineOpen U) {x : X} (hxU : x ∈ U) :
Spec (X.presheaf.stalk x) ⟶ X :=
Spec.map (X.presheaf.germ _ x hxU) ≫ hU.fromSpec | def | AlgebraicGeometry | [
"Mathlib.AlgebraicGeometry.AffineScheme",
"Mathlib.AlgebraicGeometry.Morphisms.Preimmersion"
] | Mathlib/AlgebraicGeometry/Stalk.lean | IsAffineOpen.fromSpecStalk | A morphism from `Spec(O_x)` to `X`, which is defined with the help of an affine open
neighborhood `U` of `x`. |
IsAffineOpen.fromSpecStalk_eq (x : X) (hxU : x ∈ U) (hxV : x ∈ V) :
hU.fromSpecStalk hxU = hV.fromSpecStalk hxV := by
obtain ⟨U', h₁, h₂, h₃ : U' ≤ U ⊓ V⟩ :=
Opens.isBasis_iff_nbhd.mp (isBasis_affine_open X) (show x ∈ U ⊓ V from ⟨hxU, hxV⟩)
transitivity fromSpecStalk h₁ h₂
· delta fromSpecStalk
rw [← hU.map_fromSpec h₁ (homOfLE <| h₃.trans inf_le_left).op]
erw [← Scheme.Spec_map (X.presheaf.map _).op, ← Scheme.Spec_map (X.presheaf.germ _ x h₂).op]
rw [← Functor.map_comp_assoc, ← op_comp, TopCat.Presheaf.germ_res, Scheme.Spec_map,
Quiver.Hom.unop_op]
· delta fromSpecStalk
rw [← hV.map_fromSpec h₁ (homOfLE <| h₃.trans inf_le_right).op]
erw [← Scheme.Spec_map (X.presheaf.map _).op, ← Scheme.Spec_map (X.presheaf.germ _ x h₂).op]
rw [← Functor.map_comp_assoc, ← op_comp, TopCat.Presheaf.germ_res, Scheme.Spec_map,
Quiver.Hom.unop_op] | theorem | AlgebraicGeometry | [
"Mathlib.AlgebraicGeometry.AffineScheme",
"Mathlib.AlgebraicGeometry.Morphisms.Preimmersion"
] | Mathlib/AlgebraicGeometry/Stalk.lean | IsAffineOpen.fromSpecStalk_eq | The morphism from `Spec(O_x)` to `X` given by `IsAffineOpen.fromSpec` does not depend on the affine
open neighborhood of `x` we choose. |
noncomputable Scheme.fromSpecStalk (X : Scheme) (x : X) :
Spec (X.presheaf.stalk x) ⟶ X :=
(isAffineOpen_opensRange (X.affineCover.f (X.affineCover.idx x))).fromSpecStalk
(X.affineCover.covers x)
@[simps over] noncomputable | def | AlgebraicGeometry | [
"Mathlib.AlgebraicGeometry.AffineScheme",
"Mathlib.AlgebraicGeometry.Morphisms.Preimmersion"
] | Mathlib/AlgebraicGeometry/Stalk.lean | Scheme.fromSpecStalk | If `x` is a point of `X`, this is the canonical morphism from `Spec(O_x)` to `X`. |
@[simp]
IsAffineOpen.fromSpecStalk_eq_fromSpecStalk {x : X} (hxU : x ∈ U) :
hU.fromSpecStalk hxU = X.fromSpecStalk x := fromSpecStalk_eq .. | theorem | AlgebraicGeometry | [
"Mathlib.AlgebraicGeometry.AffineScheme",
"Mathlib.AlgebraicGeometry.Morphisms.Preimmersion"
] | Mathlib/AlgebraicGeometry/Stalk.lean | IsAffineOpen.fromSpecStalk_eq_fromSpecStalk | null |
IsAffineOpen.fromSpecStalk_isPreimmersion {X : Scheme.{u}} {U : Opens X}
(hU : IsAffineOpen U) (x : X) (hx : x ∈ U) : IsPreimmersion (hU.fromSpecStalk hx) := by
dsimp [IsAffineOpen.fromSpecStalk]
haveI : IsPreimmersion (Spec.map (X.presheaf.germ U x hx)) :=
letI : Algebra Γ(X, U) (X.presheaf.stalk x) := (X.presheaf.germ U x hx).hom.toAlgebra
haveI := hU.isLocalization_stalk ⟨x, hx⟩
IsPreimmersion.of_isLocalization (R := Γ(X, U)) (S := X.presheaf.stalk x)
(hU.primeIdealOf ⟨x, hx⟩).asIdeal.primeCompl
apply IsPreimmersion.comp | instance | AlgebraicGeometry | [
"Mathlib.AlgebraicGeometry.AffineScheme",
"Mathlib.AlgebraicGeometry.Morphisms.Preimmersion"
] | Mathlib/AlgebraicGeometry/Stalk.lean | IsAffineOpen.fromSpecStalk_isPreimmersion | null |
IsAffineOpen.fromSpecStalk_closedPoint {U : Opens X} (hU : IsAffineOpen U)
{x : X} (hxU : x ∈ U) :
(hU.fromSpecStalk hxU).base (closedPoint (X.presheaf.stalk x)) = x := by
rw [IsAffineOpen.fromSpecStalk, Scheme.comp_base_apply]
rw [← hU.primeIdealOf_eq_map_closedPoint ⟨x, hxU⟩, hU.fromSpec_primeIdealOf ⟨x, hxU⟩] | lemma | AlgebraicGeometry | [
"Mathlib.AlgebraicGeometry.AffineScheme",
"Mathlib.AlgebraicGeometry.Morphisms.Preimmersion"
] | Mathlib/AlgebraicGeometry/Stalk.lean | IsAffineOpen.fromSpecStalk_closedPoint | null |
@[simp]
fromSpecStalk_closedPoint {x : X} :
(X.fromSpecStalk x).base (closedPoint (X.presheaf.stalk x)) = x :=
IsAffineOpen.fromSpecStalk_closedPoint _ _ | lemma | AlgebraicGeometry | [
"Mathlib.AlgebraicGeometry.AffineScheme",
"Mathlib.AlgebraicGeometry.Morphisms.Preimmersion"
] | Mathlib/AlgebraicGeometry/Stalk.lean | fromSpecStalk_closedPoint | null |
fromSpecStalk_app {x : X} (hxU : x ∈ U) :
(X.fromSpecStalk x).app U =
X.presheaf.germ U x hxU ≫
(ΓSpecIso (X.presheaf.stalk x)).inv ≫
(Spec (X.presheaf.stalk x)).presheaf.map (homOfLE le_top).op := by
obtain ⟨_, ⟨V : X.Opens, hV, rfl⟩, hxV, hVU⟩ := (isBasis_affine_open X).exists_subset_of_mem_open
hxU U.2
rw [← hV.fromSpecStalk_eq_fromSpecStalk hxV, IsAffineOpen.fromSpecStalk, Scheme.comp_app,
hV.fromSpec_app_of_le _ hVU, ← X.presheaf.germ_res (homOfLE hVU) x hxV]
simp [Category.assoc, ← ΓSpecIso_inv_naturality_assoc] | lemma | AlgebraicGeometry | [
"Mathlib.AlgebraicGeometry.AffineScheme",
"Mathlib.AlgebraicGeometry.Morphisms.Preimmersion"
] | Mathlib/AlgebraicGeometry/Stalk.lean | fromSpecStalk_app | null |
fromSpecStalk_appTop {x : X} :
(X.fromSpecStalk x).appTop =
X.presheaf.germ ⊤ x trivial ≫
(ΓSpecIso (X.presheaf.stalk x)).inv ≫
(Spec (X.presheaf.stalk x)).presheaf.map (homOfLE le_top).op :=
fromSpecStalk_app ..
@[reassoc (attr := simp)] | lemma | AlgebraicGeometry | [
"Mathlib.AlgebraicGeometry.AffineScheme",
"Mathlib.AlgebraicGeometry.Morphisms.Preimmersion"
] | Mathlib/AlgebraicGeometry/Stalk.lean | fromSpecStalk_appTop | null |
Spec_map_stalkSpecializes_fromSpecStalk {x y : X} (h : x ⤳ y) :
Spec.map (X.presheaf.stalkSpecializes h) ≫ X.fromSpecStalk y = X.fromSpecStalk x := by
obtain ⟨_, ⟨U, hU, rfl⟩, hyU, -⟩ :=
(isBasis_affine_open X).exists_subset_of_mem_open (Set.mem_univ y) isOpen_univ
have hxU : x ∈ U := h.mem_open U.2 hyU
rw [← hU.fromSpecStalk_eq_fromSpecStalk hyU, ← hU.fromSpecStalk_eq_fromSpecStalk hxU,
IsAffineOpen.fromSpecStalk, IsAffineOpen.fromSpecStalk, ← Category.assoc, ← Spec.map_comp,
TopCat.Presheaf.germ_stalkSpecializes] | lemma | AlgebraicGeometry | [
"Mathlib.AlgebraicGeometry.AffineScheme",
"Mathlib.AlgebraicGeometry.Morphisms.Preimmersion"
] | Mathlib/AlgebraicGeometry/Stalk.lean | Spec_map_stalkSpecializes_fromSpecStalk | null |
@[reassoc (attr := simp)]
Spec_map_stalkMap_fromSpecStalk {x} :
Spec.map (f.stalkMap x) ≫ Y.fromSpecStalk _ = X.fromSpecStalk x ≫ f := by
obtain ⟨_, ⟨U, hU, rfl⟩, hxU, -⟩ := (isBasis_affine_open Y).exists_subset_of_mem_open
(Set.mem_univ (f.base x)) isOpen_univ
obtain ⟨_, ⟨V, hV, rfl⟩, hxV, hVU⟩ := (isBasis_affine_open X).exists_subset_of_mem_open
hxU (f ⁻¹ᵁ U).2
rw [← hU.fromSpecStalk_eq_fromSpecStalk hxU, ← hV.fromSpecStalk_eq_fromSpecStalk hxV,
IsAffineOpen.fromSpecStalk, ← Spec.map_comp_assoc, Scheme.stalkMap_germ f _ x hxU,
IsAffineOpen.fromSpecStalk, Spec.map_comp_assoc, ← X.presheaf.germ_res (homOfLE hVU) x hxV,
Spec.map_comp_assoc, Category.assoc, ← Spec.map_comp_assoc (f.app _),
Hom.app_eq_appLE, Hom.appLE_map, IsAffineOpen.Spec_map_appLE_fromSpec] | lemma | AlgebraicGeometry | [
"Mathlib.AlgebraicGeometry.AffineScheme",
"Mathlib.AlgebraicGeometry.Morphisms.Preimmersion"
] | Mathlib/AlgebraicGeometry/Stalk.lean | Spec_map_stalkMap_fromSpecStalk | null |
Spec_fromSpecStalk (R : CommRingCat) (x) :
(Spec R).fromSpecStalk x =
Spec.map ((ΓSpecIso R).inv ≫ (Spec R).presheaf.germ ⊤ x trivial) := by
rw [← (isAffineOpen_top (Spec R)).fromSpecStalk_eq_fromSpecStalk (x := x) trivial,
IsAffineOpen.fromSpecStalk, IsAffineOpen.fromSpec_top, isoSpec_Spec_inv,
← Spec.map_comp] | lemma | AlgebraicGeometry | [
"Mathlib.AlgebraicGeometry.AffineScheme",
"Mathlib.AlgebraicGeometry.Morphisms.Preimmersion"
] | Mathlib/AlgebraicGeometry/Stalk.lean | Spec_fromSpecStalk | null |
Spec_fromSpecStalk' (R : CommRingCat) (x) :
(Spec R).fromSpecStalk x = Spec.map (StructureSheaf.toStalk R _) :=
Spec_fromSpecStalk _ _
@[stacks 01J7] | lemma | AlgebraicGeometry | [
"Mathlib.AlgebraicGeometry.AffineScheme",
"Mathlib.AlgebraicGeometry.Morphisms.Preimmersion"
] | Mathlib/AlgebraicGeometry/Stalk.lean | Spec_fromSpecStalk' | A variant of `Spec_fromSpecStalk` that breaks abstraction boundaries. |
range_fromSpecStalk {x : X} :
Set.range (X.fromSpecStalk x).base = { y | y ⤳ x } := by
ext y
constructor
· rintro ⟨y, rfl⟩
exact ((IsLocalRing.specializes_closedPoint y).map (X.fromSpecStalk x).base.hom.2).trans
(specializes_of_eq fromSpecStalk_closedPoint)
· rintro (hy : y ⤳ x)
have := fromSpecStalk_closedPoint (x := y)
rw [← Spec_map_stalkSpecializes_fromSpecStalk hy] at this
exact ⟨_, this⟩ | lemma | AlgebraicGeometry | [
"Mathlib.AlgebraicGeometry.AffineScheme",
"Mathlib.AlgebraicGeometry.Morphisms.Preimmersion"
] | Mathlib/AlgebraicGeometry/Stalk.lean | range_fromSpecStalk | null |
noncomputable
Opens.fromSpecStalkOfMem {X : Scheme.{u}} (U : X.Opens) (x : X) (hxU : x ∈ U) :
Spec (X.presheaf.stalk x) ⟶ U :=
Spec.map (inv (U.ι.stalkMap ⟨x, hxU⟩)) ≫ U.toScheme.fromSpecStalk ⟨x, hxU⟩
@[reassoc (attr := simp)] | def | AlgebraicGeometry | [
"Mathlib.AlgebraicGeometry.AffineScheme",
"Mathlib.AlgebraicGeometry.Morphisms.Preimmersion"
] | Mathlib/AlgebraicGeometry/Stalk.lean | Opens.fromSpecStalkOfMem | The canonical map `Spec 𝒪_{X, x} ⟶ U` given `x ∈ U ⊆ X`. |
Opens.fromSpecStalkOfMem_ι {X : Scheme.{u}} (U : X.Opens) (x : X) (hxU : x ∈ U) :
U.fromSpecStalkOfMem x hxU ≫ U.ι = X.fromSpecStalk x := by
simp only [Opens.fromSpecStalkOfMem, Spec.map_inv, Category.assoc, IsIso.inv_comp_eq]
exact (Scheme.Spec_map_stalkMap_fromSpecStalk U.ι (x := ⟨x, hxU⟩)).symm | lemma | AlgebraicGeometry | [
"Mathlib.AlgebraicGeometry.AffineScheme",
"Mathlib.AlgebraicGeometry.Morphisms.Preimmersion"
] | Mathlib/AlgebraicGeometry/Stalk.lean | Opens.fromSpecStalkOfMem_ι | null |
@[reassoc]
fromSpecStalk_toSpecΓ (X : Scheme.{u}) (x : X) :
X.fromSpecStalk x ≫ X.toSpecΓ = Spec.map (X.presheaf.germ ⊤ x trivial) := by
rw [Scheme.toSpecΓ_naturality, ← SpecMap_ΓSpecIso_hom, ← Spec.map_comp,
Scheme.fromSpecStalk_appTop]
simp
@[reassoc (attr := simp)] | lemma | AlgebraicGeometry | [
"Mathlib.AlgebraicGeometry.AffineScheme",
"Mathlib.AlgebraicGeometry.Morphisms.Preimmersion"
] | Mathlib/AlgebraicGeometry/Stalk.lean | fromSpecStalk_toSpecΓ | null |
Opens.fromSpecStalkOfMem_toSpecΓ {X : Scheme.{u}} (U : X.Opens) (x : X) (hxU : x ∈ U) :
U.fromSpecStalkOfMem x hxU ≫ U.toSpecΓ = Spec.map (X.presheaf.germ U x hxU) := by
rw [fromSpecStalkOfMem, Opens.toSpecΓ, Category.assoc, fromSpecStalk_toSpecΓ_assoc,
← Spec.map_comp, ← Spec.map_comp]
congr 1
rw [IsIso.comp_inv_eq, Iso.inv_comp_eq]
erw [stalkMap_germ U.ι U ⟨x, hxU⟩]
rw [Opens.ι_app, Opens.topIso_hom, ← Functor.map_comp_assoc]
exact (U.toScheme.presheaf.germ_res (homOfLE le_top) ⟨x, hxU⟩ (U := U.ι ⁻¹ᵁ U) hxU).symm | lemma | AlgebraicGeometry | [
"Mathlib.AlgebraicGeometry.AffineScheme",
"Mathlib.AlgebraicGeometry.Morphisms.Preimmersion"
] | Mathlib/AlgebraicGeometry/Stalk.lean | Opens.fromSpecStalkOfMem_toSpecΓ | null |
noncomputable
stalkClosedPointIso :
(Spec R).presheaf.stalk (closedPoint R) ≅ R :=
StructureSheaf.stalkIso _ _ ≪≫ (IsLocalization.atUnits R
(closedPoint R).asIdeal.primeCompl fun _ ↦ not_not.mp).toRingEquiv.toCommRingCatIso.symm | def | AlgebraicGeometry | [
"Mathlib.AlgebraicGeometry.AffineScheme",
"Mathlib.AlgebraicGeometry.Morphisms.Preimmersion"
] | Mathlib/AlgebraicGeometry/Stalk.lean | stalkClosedPointIso | For a local ring `(R, 𝔪)`,
this is the isomorphism between the stalk of `Spec R` at `𝔪` and `R`. |
stalkClosedPointIso_inv :
(stalkClosedPointIso R).inv = StructureSheaf.toStalk R _ := by
ext x
exact StructureSheaf.localizationToStalk_of _ _ _ | lemma | AlgebraicGeometry | [
"Mathlib.AlgebraicGeometry.AffineScheme",
"Mathlib.AlgebraicGeometry.Morphisms.Preimmersion"
] | Mathlib/AlgebraicGeometry/Stalk.lean | stalkClosedPointIso_inv | null |
ΓSpecIso_hom_stalkClosedPointIso_inv :
(Scheme.ΓSpecIso R).hom ≫ (stalkClosedPointIso R).inv =
(Spec R).presheaf.germ ⊤ (closedPoint _) trivial := by
rw [stalkClosedPointIso_inv, ← Iso.eq_inv_comp]
rfl
@[reassoc (attr := simp)] | lemma | AlgebraicGeometry | [
"Mathlib.AlgebraicGeometry.AffineScheme",
"Mathlib.AlgebraicGeometry.Morphisms.Preimmersion"
] | Mathlib/AlgebraicGeometry/Stalk.lean | ΓSpecIso_hom_stalkClosedPointIso_inv | null |
germ_stalkClosedPointIso_hom :
(Spec R).presheaf.germ ⊤ (closedPoint _) trivial ≫ (stalkClosedPointIso R).hom =
(Scheme.ΓSpecIso R).hom := by
rw [← ΓSpecIso_hom_stalkClosedPointIso_inv, Category.assoc, Iso.inv_hom_id, Category.comp_id] | lemma | AlgebraicGeometry | [
"Mathlib.AlgebraicGeometry.AffineScheme",
"Mathlib.AlgebraicGeometry.Morphisms.Preimmersion"
] | Mathlib/AlgebraicGeometry/Stalk.lean | germ_stalkClosedPointIso_hom | null |
Spec_stalkClosedPointIso :
Spec.map (stalkClosedPointIso R).inv = (Spec R).fromSpecStalk (closedPoint R) := by
rw [stalkClosedPointIso_inv, Scheme.Spec_fromSpecStalk'] | lemma | AlgebraicGeometry | [
"Mathlib.AlgebraicGeometry.AffineScheme",
"Mathlib.AlgebraicGeometry.Morphisms.Preimmersion"
] | Mathlib/AlgebraicGeometry/Stalk.lean | Spec_stalkClosedPointIso | null |
noncomputable
stalkClosedPointTo :
X.presheaf.stalk (f.base (closedPoint R)) ⟶ R :=
f.stalkMap (closedPoint R) ≫ (stalkClosedPointIso R).hom | def | AlgebraicGeometry | [
"Mathlib.AlgebraicGeometry.AffineScheme",
"Mathlib.AlgebraicGeometry.Morphisms.Preimmersion"
] | Mathlib/AlgebraicGeometry/Stalk.lean | stalkClosedPointTo | Given a local ring `(R, 𝔪)` and a morphism `f : Spec R ⟶ X`,
they induce a (local) ring homomorphism `φ : 𝒪_{X, f 𝔪} ⟶ R`.
This is inverse to `φ ↦ Spec.map φ ≫ X.fromSpecStalk (f 𝔪)`. See `SpecToEquivOfLocalRing`. |
isLocalHom_stalkClosedPointTo :
IsLocalHom (stalkClosedPointTo f).hom :=
inferInstanceAs <| IsLocalHom (f.stalkMap (closedPoint R) ≫ (stalkClosedPointIso R).hom).hom | instance | AlgebraicGeometry | [
"Mathlib.AlgebraicGeometry.AffineScheme",
"Mathlib.AlgebraicGeometry.Morphisms.Preimmersion"
] | Mathlib/AlgebraicGeometry/Stalk.lean | isLocalHom_stalkClosedPointTo | null |
isLocalHom_stalkClosedPointTo' {R : Type u} [CommRing R] [IsLocalRing R]
(f : Spec(R) ⟶ X) :
IsLocalHom (stalkClosedPointTo f).hom :=
isLocalHom_stalkClosedPointTo f | instance | AlgebraicGeometry | [
"Mathlib.AlgebraicGeometry.AffineScheme",
"Mathlib.AlgebraicGeometry.Morphisms.Preimmersion"
] | Mathlib/AlgebraicGeometry/Stalk.lean | isLocalHom_stalkClosedPointTo' | Copy of `isLocalHom_stalkClosedPointTo` which unbundles the comm ring.
Useful for use in combination with `CommRingCat.of K` for a field `K`. |
preimage_eq_top_of_closedPoint_mem
{U : Opens X} (hU : f.base (closedPoint R) ∈ U) : f ⁻¹ᵁ U = ⊤ :=
IsLocalRing.closed_point_mem_iff.mp hU | lemma | AlgebraicGeometry | [
"Mathlib.AlgebraicGeometry.AffineScheme",
"Mathlib.AlgebraicGeometry.Morphisms.Preimmersion"
] | Mathlib/AlgebraicGeometry/Stalk.lean | preimage_eq_top_of_closedPoint_mem | null |
stalkClosedPointTo_comp (g : X ⟶ Y) :
stalkClosedPointTo (f ≫ g) = g.stalkMap _ ≫ stalkClosedPointTo f := by
rw [stalkClosedPointTo, Scheme.stalkMap_comp]
exact Category.assoc _ _ _ | lemma | AlgebraicGeometry | [
"Mathlib.AlgebraicGeometry.AffineScheme",
"Mathlib.AlgebraicGeometry.Morphisms.Preimmersion"
] | Mathlib/AlgebraicGeometry/Stalk.lean | stalkClosedPointTo_comp | null |
germ_stalkClosedPointTo_Spec {R S : CommRingCat} [IsLocalRing S] (φ : R ⟶ S) :
(Spec R).presheaf.germ ⊤ _ trivial ≫ stalkClosedPointTo (Spec.map φ) =
(ΓSpecIso R).hom ≫ φ := by
rw [stalkClosedPointTo, Scheme.stalkMap_germ_assoc, ← Iso.inv_comp_eq,
← ΓSpecIso_inv_naturality_assoc]
simp_rw [Opens.map_top]
rw [germ_stalkClosedPointIso_hom, Iso.inv_hom_id, Category.comp_id]
@[reassoc] | lemma | AlgebraicGeometry | [
"Mathlib.AlgebraicGeometry.AffineScheme",
"Mathlib.AlgebraicGeometry.Morphisms.Preimmersion"
] | Mathlib/AlgebraicGeometry/Stalk.lean | germ_stalkClosedPointTo_Spec | null |
germ_stalkClosedPointTo (U : Opens X) (hU : f.base (closedPoint R) ∈ U) :
X.presheaf.germ U _ hU ≫ stalkClosedPointTo f = f.app U ≫
((Spec R).presheaf.mapIso (eqToIso (preimage_eq_top_of_closedPoint_mem f hU).symm).op ≪≫
ΓSpecIso R).hom := by
rw [stalkClosedPointTo, Scheme.stalkMap_germ_assoc, Iso.trans_hom]
congr 1
rw [← Iso.eq_comp_inv, Category.assoc, ΓSpecIso_hom_stalkClosedPointIso_inv]
simp only [Functor.mapIso_hom, Iso.op_hom, eqToIso.hom,
TopCat.Presheaf.germ_res]
@[reassoc] | lemma | AlgebraicGeometry | [
"Mathlib.AlgebraicGeometry.AffineScheme",
"Mathlib.AlgebraicGeometry.Morphisms.Preimmersion"
] | Mathlib/AlgebraicGeometry/Stalk.lean | germ_stalkClosedPointTo | null |
germ_stalkClosedPointTo_Spec_fromSpecStalk
{x : X} (f : X.presheaf.stalk x ⟶ R) [IsLocalHom f.hom] (U : Opens X) (hU) :
X.presheaf.germ U _ hU ≫ stalkClosedPointTo (Spec.map f ≫ X.fromSpecStalk x) =
X.presheaf.germ U x (by simpa using hU) ≫ f := by
have : (Spec.map f ≫ X.fromSpecStalk x).base (closedPoint R) = x := by
rw [comp_base_apply, Spec_closedPoint, fromSpecStalk_closedPoint]
have : x ∈ U := this ▸ hU
simp only [germ_stalkClosedPointTo, comp_app,
fromSpecStalk_app (X := X) (x := x) this, Category.assoc, Iso.trans_hom, Functor.mapIso_hom,
(Spec.map f).app_eq_appLE, Hom.appLE_map_assoc, Hom.map_appLE_assoc]
simp_rw [← Opens.map_top (Spec.map f).base]
rw [← (Spec.map f).app_eq_appLE, ΓSpecIso_naturality, Iso.inv_hom_id_assoc] | lemma | AlgebraicGeometry | [
"Mathlib.AlgebraicGeometry.AffineScheme",
"Mathlib.AlgebraicGeometry.Morphisms.Preimmersion"
] | Mathlib/AlgebraicGeometry/Stalk.lean | germ_stalkClosedPointTo_Spec_fromSpecStalk | null |
stalkClosedPointTo_fromSpecStalk (x : X) :
stalkClosedPointTo (X.fromSpecStalk x) =
(X.presheaf.stalkCongr (by rw [fromSpecStalk_closedPoint]; rfl)).hom := by
refine TopCat.Presheaf.stalk_hom_ext _ fun U hxU ↦ ?_
simp only [TopCat.Presheaf.stalkCongr_hom, TopCat.Presheaf.germ_stalkSpecializes]
have : X.fromSpecStalk x = Spec.map (𝟙 (X.presheaf.stalk x)) ≫ X.fromSpecStalk x := by simp
convert germ_stalkClosedPointTo_Spec_fromSpecStalk (𝟙 (X.presheaf.stalk x)) U hxU
@[reassoc] | lemma | AlgebraicGeometry | [
"Mathlib.AlgebraicGeometry.AffineScheme",
"Mathlib.AlgebraicGeometry.Morphisms.Preimmersion"
] | Mathlib/AlgebraicGeometry/Stalk.lean | stalkClosedPointTo_fromSpecStalk | null |
Spec_stalkClosedPointTo_fromSpecStalk :
Spec.map (stalkClosedPointTo f) ≫ X.fromSpecStalk _ = f := by
obtain ⟨_, ⟨U, hU, rfl⟩, hxU, -⟩ := (isBasis_affine_open X).exists_subset_of_mem_open
(Set.mem_univ (f.base (closedPoint R))) isOpen_univ
have := IsAffineOpen.Spec_map_appLE_fromSpec f hU (isAffineOpen_top _)
(preimage_eq_top_of_closedPoint_mem f hxU).ge
rw [IsAffineOpen.fromSpec_top, Iso.eq_inv_comp, isoSpec_Spec_hom] at this
rw [← hU.fromSpecStalk_eq_fromSpecStalk hxU, IsAffineOpen.fromSpecStalk, ← Spec.map_comp_assoc,
germ_stalkClosedPointTo]
simpa only [Iso.trans_hom, Functor.mapIso_hom, Iso.op_hom, Category.assoc,
Hom.app_eq_appLE, Hom.appLE_map_assoc, Spec.map_comp_assoc] | lemma | AlgebraicGeometry | [
"Mathlib.AlgebraicGeometry.AffineScheme",
"Mathlib.AlgebraicGeometry.Morphisms.Preimmersion"
] | Mathlib/AlgebraicGeometry/Stalk.lean | Spec_stalkClosedPointTo_fromSpecStalk | null |
SpecToEquivOfLocalRing_eq_iff
{f₁ f₂ : Σ x, { f : X.presheaf.stalk x ⟶ R // IsLocalHom f.hom }} :
f₁ = f₂ ↔ ∃ h₁ : f₁.1 = f₂.1, f₁.2.1 =
(X.presheaf.stalkCongr (by rw [h₁]; rfl)).hom ≫ f₂.2.1 := by
constructor
· rintro rfl; simp
· obtain ⟨x₁, ⟨f₁, h₁⟩⟩ := f₁
obtain ⟨x₂, ⟨f₂, h₂⟩⟩ := f₂
rintro ⟨rfl : x₁ = x₂, e : f₁ = _⟩
simp [e]
variable (X R) | lemma | AlgebraicGeometry | [
"Mathlib.AlgebraicGeometry.AffineScheme",
"Mathlib.AlgebraicGeometry.Morphisms.Preimmersion"
] | Mathlib/AlgebraicGeometry/Stalk.lean | SpecToEquivOfLocalRing_eq_iff | useful lemma for applications of `SpecToEquivOfLocalRing` |
@[simps]
noncomputable
SpecToEquivOfLocalRing :
(Spec R ⟶ X) ≃ Σ x, { f : X.presheaf.stalk x ⟶ R // IsLocalHom f.hom } where
toFun f := ⟨f.base (closedPoint R), Scheme.stalkClosedPointTo f, inferInstance⟩
invFun xf := Spec.map xf.2.1 ≫ X.fromSpecStalk xf.1
left_inv := Scheme.Spec_stalkClosedPointTo_fromSpecStalk
right_inv xf := by
obtain ⟨x, ⟨f, hf⟩⟩ := xf
symm
refine SpecToEquivOfLocalRing_eq_iff.mpr ⟨?_, ?_⟩
· simp only [Scheme.comp_coeBase, TopCat.coe_comp, Function.comp_apply, Spec_closedPoint,
Scheme.fromSpecStalk_closedPoint]
· refine TopCat.Presheaf.stalk_hom_ext _ fun U hxU ↦ ?_
simp only [Scheme.germ_stalkClosedPointTo_Spec_fromSpecStalk,
TopCat.Presheaf.stalkCongr_hom, TopCat.Presheaf.germ_stalkSpecializes_assoc] | def | AlgebraicGeometry | [
"Mathlib.AlgebraicGeometry.AffineScheme",
"Mathlib.AlgebraicGeometry.Morphisms.Preimmersion"
] | Mathlib/AlgebraicGeometry/Stalk.lean | SpecToEquivOfLocalRing | Given a local ring `R` and scheme `X`, morphisms `Spec R ⟶ X` corresponds to pairs
`(x, f)` where `x : X` and `f : 𝒪_{X, x} ⟶ R` is a local ring homomorphism. |
PrimeSpectrum.Top : TopCat :=
TopCat.of (PrimeSpectrum R) | def | AlgebraicGeometry | [
"Mathlib.Algebra.Category.Ring.Colimits",
"Mathlib.Algebra.Category.Ring.Instances",
"Mathlib.Algebra.Category.Ring.Limits",
"Mathlib.Algebra.Ring.Subring.Basic",
"Mathlib.RingTheory.Localization.AtPrime.Basic",
"Mathlib.RingTheory.Spectrum.Prime.Topology",
"Mathlib.Topology.Sheaves.LocalPredicate"
] | Mathlib/AlgebraicGeometry/StructureSheaf.lean | PrimeSpectrum.Top | The prime spectrum, just as a topological space. |
Localizations (P : PrimeSpectrum.Top R) : Type u :=
Localization.AtPrime P.asIdeal | def | AlgebraicGeometry | [
"Mathlib.Algebra.Category.Ring.Colimits",
"Mathlib.Algebra.Category.Ring.Instances",
"Mathlib.Algebra.Category.Ring.Limits",
"Mathlib.Algebra.Ring.Subring.Basic",
"Mathlib.RingTheory.Localization.AtPrime.Basic",
"Mathlib.RingTheory.Spectrum.Prime.Topology",
"Mathlib.Topology.Sheaves.LocalPredicate"
] | Mathlib/AlgebraicGeometry/StructureSheaf.lean | Localizations | The type family over `PrimeSpectrum R` consisting of the localization over each point. |
commRingLocalizations (P : PrimeSpectrum.Top R) : CommRing <| Localizations R P :=
inferInstanceAs <| CommRing <| Localization.AtPrime P.asIdeal | instance | AlgebraicGeometry | [
"Mathlib.Algebra.Category.Ring.Colimits",
"Mathlib.Algebra.Category.Ring.Instances",
"Mathlib.Algebra.Category.Ring.Limits",
"Mathlib.Algebra.Ring.Subring.Basic",
"Mathlib.RingTheory.Localization.AtPrime.Basic",
"Mathlib.RingTheory.Spectrum.Prime.Topology",
"Mathlib.Topology.Sheaves.LocalPredicate"
] | Mathlib/AlgebraicGeometry/StructureSheaf.lean | commRingLocalizations | null |
localRingLocalizations (P : PrimeSpectrum.Top R) : IsLocalRing <| Localizations R P :=
inferInstanceAs <| IsLocalRing <| Localization.AtPrime P.asIdeal | instance | AlgebraicGeometry | [
"Mathlib.Algebra.Category.Ring.Colimits",
"Mathlib.Algebra.Category.Ring.Instances",
"Mathlib.Algebra.Category.Ring.Limits",
"Mathlib.Algebra.Ring.Subring.Basic",
"Mathlib.RingTheory.Localization.AtPrime.Basic",
"Mathlib.RingTheory.Spectrum.Prime.Topology",
"Mathlib.Topology.Sheaves.LocalPredicate"
] | Mathlib/AlgebraicGeometry/StructureSheaf.lean | localRingLocalizations | null |
IsFraction {U : Opens (PrimeSpectrum.Top R)} (f : ∀ x : U, Localizations R x) : Prop :=
∃ r s : R, ∀ x : U, s ∉ x.1.asIdeal ∧ f x * algebraMap _ _ s = algebraMap _ _ r | def | AlgebraicGeometry | [
"Mathlib.Algebra.Category.Ring.Colimits",
"Mathlib.Algebra.Category.Ring.Instances",
"Mathlib.Algebra.Category.Ring.Limits",
"Mathlib.Algebra.Ring.Subring.Basic",
"Mathlib.RingTheory.Localization.AtPrime.Basic",
"Mathlib.RingTheory.Spectrum.Prime.Topology",
"Mathlib.Topology.Sheaves.LocalPredicate"
] | Mathlib/AlgebraicGeometry/StructureSheaf.lean | IsFraction | The predicate saying that a dependent function on an open `U` is realised as a fixed fraction
`r / s` in each of the stalks (which are localizations at various prime ideals). |
IsFraction.eq_mk' {U : Opens (PrimeSpectrum.Top R)} {f : ∀ x : U, Localizations R x}
(hf : IsFraction f) :
∃ r s : R,
∀ x : U,
∃ hs : s ∉ x.1.asIdeal,
f x =
IsLocalization.mk' (Localization.AtPrime _) r
(⟨s, hs⟩ : (x : PrimeSpectrum.Top R).asIdeal.primeCompl) := by
rcases hf with ⟨r, s, h⟩
refine ⟨r, s, fun x => ⟨(h x).1, (IsLocalization.mk'_eq_iff_eq_mul.mpr ?_).symm⟩⟩
exact (h x).2.symm
variable (R) | theorem | AlgebraicGeometry | [
"Mathlib.Algebra.Category.Ring.Colimits",
"Mathlib.Algebra.Category.Ring.Instances",
"Mathlib.Algebra.Category.Ring.Limits",
"Mathlib.Algebra.Ring.Subring.Basic",
"Mathlib.RingTheory.Localization.AtPrime.Basic",
"Mathlib.RingTheory.Spectrum.Prime.Topology",
"Mathlib.Topology.Sheaves.LocalPredicate"
] | Mathlib/AlgebraicGeometry/StructureSheaf.lean | IsFraction.eq_mk' | null |
isFractionPrelocal : PrelocalPredicate (Localizations R) where
pred {_} f := IsFraction f
res := by rintro V U i f ⟨r, s, w⟩; exact ⟨r, s, fun x => w (i x)⟩ | def | AlgebraicGeometry | [
"Mathlib.Algebra.Category.Ring.Colimits",
"Mathlib.Algebra.Category.Ring.Instances",
"Mathlib.Algebra.Category.Ring.Limits",
"Mathlib.Algebra.Ring.Subring.Basic",
"Mathlib.RingTheory.Localization.AtPrime.Basic",
"Mathlib.RingTheory.Spectrum.Prime.Topology",
"Mathlib.Topology.Sheaves.LocalPredicate"
] | Mathlib/AlgebraicGeometry/StructureSheaf.lean | isFractionPrelocal | The predicate `IsFraction` is "prelocal",
in the sense that if it holds on `U` it holds on any open subset `V` of `U`. |
isLocallyFraction : LocalPredicate (Localizations R) :=
(isFractionPrelocal R).sheafify
@[simp] | def | AlgebraicGeometry | [
"Mathlib.Algebra.Category.Ring.Colimits",
"Mathlib.Algebra.Category.Ring.Instances",
"Mathlib.Algebra.Category.Ring.Limits",
"Mathlib.Algebra.Ring.Subring.Basic",
"Mathlib.RingTheory.Localization.AtPrime.Basic",
"Mathlib.RingTheory.Spectrum.Prime.Topology",
"Mathlib.Topology.Sheaves.LocalPredicate"
] | Mathlib/AlgebraicGeometry/StructureSheaf.lean | isLocallyFraction | We will define the structure sheaf as
the subsheaf of all dependent functions in `Π x : U, Localizations R x`
consisting of those functions which can locally be expressed as a ratio of
(the images in the localization of) elements of `R`.
Quoting Hartshorne:
For an open set $U ⊆ Spec A$, we define $𝒪(U)$ to be the set of functions
$s : U → ⨆_{𝔭 ∈ U} A_𝔭$, such that $s(𝔭) ∈ A_𝔭$ for each $𝔭$,
and such that $s$ is locally a quotient of elements of $A$:
to be precise, we require that for each $𝔭 ∈ U$, there is a neighborhood $V$ of $𝔭$,
contained in $U$, and elements $a, f ∈ A$, such that for each $𝔮 ∈ V, f ∉ 𝔮$,
and $s(𝔮) = a/f$ in $A_𝔮$.
Now Hartshorne had the disadvantage of not knowing about dependent functions,
so we replace his circumlocution about functions into a disjoint union with
`Π x : U, Localizations x`. |
isLocallyFraction_pred {U : Opens (PrimeSpectrum.Top R)} (f : ∀ x : U, Localizations R x) :
(isLocallyFraction R).pred f =
∀ x : U,
∃ (V : _) (_ : x.1 ∈ V) (i : V ⟶ U),
∃ r s : R,
∀ y : V, s ∉ y.1.asIdeal ∧ f (i y : U) * algebraMap _ _ s = algebraMap _ _ r :=
rfl | theorem | AlgebraicGeometry | [
"Mathlib.Algebra.Category.Ring.Colimits",
"Mathlib.Algebra.Category.Ring.Instances",
"Mathlib.Algebra.Category.Ring.Limits",
"Mathlib.Algebra.Ring.Subring.Basic",
"Mathlib.RingTheory.Localization.AtPrime.Basic",
"Mathlib.RingTheory.Spectrum.Prime.Topology",
"Mathlib.Topology.Sheaves.LocalPredicate"
] | Mathlib/AlgebraicGeometry/StructureSheaf.lean | isLocallyFraction_pred | null |
sectionsSubring (U : (Opens (PrimeSpectrum.Top R))ᵒᵖ) :
Subring (∀ x : U.unop, Localizations R x) where
carrier := { f | (isLocallyFraction R).pred f }
zero_mem' := by
refine fun x => ⟨unop U, x.2, 𝟙 _, 0, 1, fun y => ⟨?_, ?_⟩⟩
· rw [← Ideal.ne_top_iff_one]; exact y.1.isPrime.1
· simp
one_mem' := by
refine fun x => ⟨unop U, x.2, 𝟙 _, 1, 1, fun y => ⟨?_, ?_⟩⟩
· rw [← Ideal.ne_top_iff_one]; exact y.1.isPrime.1
· simp
add_mem' := by
intro a b ha hb x
rcases ha x with ⟨Va, ma, ia, ra, sa, wa⟩
rcases hb x with ⟨Vb, mb, ib, rb, sb, wb⟩
refine ⟨Va ⊓ Vb, ⟨ma, mb⟩, Opens.infLELeft _ _ ≫ ia, ra * sb + rb * sa, sa * sb, ?_⟩
intro ⟨y, hy⟩
rcases wa (Opens.infLELeft _ _ ⟨y, hy⟩) with ⟨nma, wa⟩
rcases wb (Opens.infLERight _ _ ⟨y, hy⟩) with ⟨nmb, wb⟩
fconstructor
· intro H; cases y.isPrime.mem_or_mem H <;> contradiction
· simp only [Opens.apply_mk, Pi.add_apply, RingHom.map_mul, add_mul, RingHom.map_add] at wa wb ⊢
grind
neg_mem' := by
intro a ha x
rcases ha x with ⟨V, m, i, r, s, w⟩
refine ⟨V, m, i, -r, s, ?_⟩
intro y
rcases w y with ⟨nm, w⟩
fconstructor
· exact nm
· simp only [RingHom.map_neg, Pi.neg_apply]
rw [← w]
simp only [neg_mul]
mul_mem' := by
intro a b ha hb x
rcases ha x with ⟨Va, ma, ia, ra, sa, wa⟩
rcases hb x with ⟨Vb, mb, ib, rb, sb, wb⟩
refine ⟨Va ⊓ Vb, ⟨ma, mb⟩, Opens.infLELeft _ _ ≫ ia, ra * rb, sa * sb, ?_⟩
intro ⟨y, hy⟩
rcases wa (Opens.infLELeft _ _ ⟨y, hy⟩) with ⟨nma, wa⟩
rcases wb (Opens.infLERight _ _ ⟨y, hy⟩) with ⟨nmb, wb⟩
fconstructor
· intro H; cases y.isPrime.mem_or_mem H <;> contradiction
· simp only [Opens.apply_mk, Pi.mul_apply, RingHom.map_mul] at wa wb ⊢
rw [← wa, ← wb]
simp only [mul_left_comm, mul_assoc, mul_comm] | def | AlgebraicGeometry | [
"Mathlib.Algebra.Category.Ring.Colimits",
"Mathlib.Algebra.Category.Ring.Instances",
"Mathlib.Algebra.Category.Ring.Limits",
"Mathlib.Algebra.Ring.Subring.Basic",
"Mathlib.RingTheory.Localization.AtPrime.Basic",
"Mathlib.RingTheory.Spectrum.Prime.Topology",
"Mathlib.Topology.Sheaves.LocalPredicate"
] | Mathlib/AlgebraicGeometry/StructureSheaf.lean | sectionsSubring | The functions satisfying `isLocallyFraction` form a subring. |
structureSheafInType : Sheaf (Type u) (PrimeSpectrum.Top R) :=
subsheafToTypes (isLocallyFraction R) | def | AlgebraicGeometry | [
"Mathlib.Algebra.Category.Ring.Colimits",
"Mathlib.Algebra.Category.Ring.Instances",
"Mathlib.Algebra.Category.Ring.Limits",
"Mathlib.Algebra.Ring.Subring.Basic",
"Mathlib.RingTheory.Localization.AtPrime.Basic",
"Mathlib.RingTheory.Spectrum.Prime.Topology",
"Mathlib.Topology.Sheaves.LocalPredicate"
] | Mathlib/AlgebraicGeometry/StructureSheaf.lean | structureSheafInType | The structure sheaf (valued in `Type`, not yet `CommRingCat`) is the subsheaf consisting of
functions satisfying `isLocallyFraction`. |
commRingStructureSheafInTypeObj (U : (Opens (PrimeSpectrum.Top R))ᵒᵖ) :
CommRing ((structureSheafInType R).1.obj U) :=
(sectionsSubring R U).toCommRing
open PrimeSpectrum | instance | AlgebraicGeometry | [
"Mathlib.Algebra.Category.Ring.Colimits",
"Mathlib.Algebra.Category.Ring.Instances",
"Mathlib.Algebra.Category.Ring.Limits",
"Mathlib.Algebra.Ring.Subring.Basic",
"Mathlib.RingTheory.Localization.AtPrime.Basic",
"Mathlib.RingTheory.Spectrum.Prime.Topology",
"Mathlib.Topology.Sheaves.LocalPredicate"
] | Mathlib/AlgebraicGeometry/StructureSheaf.lean | commRingStructureSheafInTypeObj | null |
@[simps obj_carrier]
structurePresheafInCommRing : Presheaf CommRingCat (PrimeSpectrum.Top R) where
obj U := CommRingCat.of ((structureSheafInType R).1.obj U)
map {_ _} i := CommRingCat.ofHom
{ toFun := (structureSheafInType R).1.map i
map_zero' := rfl
map_add' := fun _ _ => rfl
map_one' := rfl
map_mul' := fun _ _ => rfl } | def | AlgebraicGeometry | [
"Mathlib.Algebra.Category.Ring.Colimits",
"Mathlib.Algebra.Category.Ring.Instances",
"Mathlib.Algebra.Category.Ring.Limits",
"Mathlib.Algebra.Ring.Subring.Basic",
"Mathlib.RingTheory.Localization.AtPrime.Basic",
"Mathlib.RingTheory.Spectrum.Prime.Topology",
"Mathlib.Topology.Sheaves.LocalPredicate"
] | Mathlib/AlgebraicGeometry/StructureSheaf.lean | structurePresheafInCommRing | The structure presheaf, valued in `CommRingCat`, constructed by dressing up the `Type`-valued
structure presheaf. |
structurePresheafCompForget :
structurePresheafInCommRing R ⋙ forget CommRingCat ≅ (structureSheafInType R).1 :=
NatIso.ofComponents fun _ => Iso.refl _
open TopCat.Presheaf | def | AlgebraicGeometry | [
"Mathlib.Algebra.Category.Ring.Colimits",
"Mathlib.Algebra.Category.Ring.Instances",
"Mathlib.Algebra.Category.Ring.Limits",
"Mathlib.Algebra.Ring.Subring.Basic",
"Mathlib.RingTheory.Localization.AtPrime.Basic",
"Mathlib.RingTheory.Spectrum.Prime.Topology",
"Mathlib.Topology.Sheaves.LocalPredicate"
] | Mathlib/AlgebraicGeometry/StructureSheaf.lean | structurePresheafCompForget | Some glue, verifying that the structure presheaf valued in `CommRingCat` agrees
with the `Type`-valued structure presheaf. |
Spec.structureSheaf : Sheaf CommRingCat (PrimeSpectrum.Top R) :=
⟨structurePresheafInCommRing R,
(-- We check the sheaf condition under `forget CommRingCat`.
isSheaf_iff_isSheaf_comp
_ _).mpr
(isSheaf_of_iso (structurePresheafCompForget R).symm (structureSheafInType R).cond)⟩
open Spec (structureSheaf) | def | AlgebraicGeometry | [
"Mathlib.Algebra.Category.Ring.Colimits",
"Mathlib.Algebra.Category.Ring.Instances",
"Mathlib.Algebra.Category.Ring.Limits",
"Mathlib.Algebra.Ring.Subring.Basic",
"Mathlib.RingTheory.Localization.AtPrime.Basic",
"Mathlib.RingTheory.Spectrum.Prime.Topology",
"Mathlib.Topology.Sheaves.LocalPredicate"
] | Mathlib/AlgebraicGeometry/StructureSheaf.lean | Spec.structureSheaf | The structure sheaf on $Spec R$, valued in `CommRingCat`.
This is provided as a bundled `SheafedSpace` as `Spec.SheafedSpace R` later. |
@[simp]
res_apply (U V : Opens (PrimeSpectrum.Top R)) (i : V ⟶ U)
(s : (structureSheaf R).1.obj (op U)) (x : V) :
((structureSheaf R).1.map i.op s).1 x = (s.1 (i x) :) :=
rfl
/-
Notation in this comment
X = Spec R
OX = structure sheaf
In the following we construct an isomorphism between OX_p and R_p given any point p corresponding
to a prime ideal in R.
We do this via 8 steps:
1. def const (f g : R) (V) (hv : V ≤ D_g) : OX(V) [for api]
2. def toOpen (U) : R ⟶ OX(U)
3. [2] def toStalk (p : Spec R) : R ⟶ OX_p
4. [2] def toBasicOpen (f : R) : R_f ⟶ OX(D_f)
5. [3] def localizationToStalk (p : Spec R) : R_p ⟶ OX_p
6. def openToLocalization (U) (p) (hp : p ∈ U) : OX(U) ⟶ R_p
7. [6] def stalkToFiberRingHom (p : Spec R) : OX_p ⟶ R_p
8. [5,7] def stalkIso (p : Spec R) : OX_p ≅ R_p
In the square brackets we list the dependencies of a construction on the previous steps.
-/ | theorem | AlgebraicGeometry | [
"Mathlib.Algebra.Category.Ring.Colimits",
"Mathlib.Algebra.Category.Ring.Instances",
"Mathlib.Algebra.Category.Ring.Limits",
"Mathlib.Algebra.Ring.Subring.Basic",
"Mathlib.RingTheory.Localization.AtPrime.Basic",
"Mathlib.RingTheory.Spectrum.Prime.Topology",
"Mathlib.Topology.Sheaves.LocalPredicate"
] | Mathlib/AlgebraicGeometry/StructureSheaf.lean | res_apply | null |
const (f g : R) (U : Opens (PrimeSpectrum.Top R))
(hu : ∀ x ∈ U, g ∈ (x : PrimeSpectrum.Top R).asIdeal.primeCompl) :
(structureSheaf R).1.obj (op U) :=
⟨fun x => IsLocalization.mk' _ f ⟨g, hu x x.2⟩, fun x =>
⟨U, x.2, 𝟙 _, f, g, fun y => ⟨hu y y.2, IsLocalization.mk'_spec _ _ _⟩⟩⟩
@[simp] | def | AlgebraicGeometry | [
"Mathlib.Algebra.Category.Ring.Colimits",
"Mathlib.Algebra.Category.Ring.Instances",
"Mathlib.Algebra.Category.Ring.Limits",
"Mathlib.Algebra.Ring.Subring.Basic",
"Mathlib.RingTheory.Localization.AtPrime.Basic",
"Mathlib.RingTheory.Spectrum.Prime.Topology",
"Mathlib.Topology.Sheaves.LocalPredicate"
] | Mathlib/AlgebraicGeometry/StructureSheaf.lean | const | The section of `structureSheaf R` on an open `U` sending each `x ∈ U` to the element
`f/g` in the localization of `R` at `x`. |
const_apply (f g : R) (U : Opens (PrimeSpectrum.Top R))
(hu : ∀ x ∈ U, g ∈ (x : PrimeSpectrum.Top R).asIdeal.primeCompl) (x : U) :
(const R f g U hu).1 x =
IsLocalization.mk' (Localization.AtPrime x.1.asIdeal) f ⟨g, hu x x.2⟩ :=
rfl | theorem | AlgebraicGeometry | [
"Mathlib.Algebra.Category.Ring.Colimits",
"Mathlib.Algebra.Category.Ring.Instances",
"Mathlib.Algebra.Category.Ring.Limits",
"Mathlib.Algebra.Ring.Subring.Basic",
"Mathlib.RingTheory.Localization.AtPrime.Basic",
"Mathlib.RingTheory.Spectrum.Prime.Topology",
"Mathlib.Topology.Sheaves.LocalPredicate"
] | Mathlib/AlgebraicGeometry/StructureSheaf.lean | const_apply | null |
const_apply' (f g : R) (U : Opens (PrimeSpectrum.Top R))
(hu : ∀ x ∈ U, g ∈ (x : PrimeSpectrum.Top R).asIdeal.primeCompl) (x : U)
(hx : g ∈ (x : PrimeSpectrum.Top R).asIdeal.primeCompl) :
(const R f g U hu).1 x = IsLocalization.mk' _ f ⟨g, hx⟩ :=
rfl | theorem | AlgebraicGeometry | [
"Mathlib.Algebra.Category.Ring.Colimits",
"Mathlib.Algebra.Category.Ring.Instances",
"Mathlib.Algebra.Category.Ring.Limits",
"Mathlib.Algebra.Ring.Subring.Basic",
"Mathlib.RingTheory.Localization.AtPrime.Basic",
"Mathlib.RingTheory.Spectrum.Prime.Topology",
"Mathlib.Topology.Sheaves.LocalPredicate"
] | Mathlib/AlgebraicGeometry/StructureSheaf.lean | const_apply' | null |
exists_const (U) (s : (structureSheaf R).1.obj (op U)) (x : PrimeSpectrum.Top R)
(hx : x ∈ U) :
∃ (V : Opens (PrimeSpectrum.Top R)) (_ : x ∈ V) (i : V ⟶ U) (f g : R) (hg : _),
const R f g V hg = (structureSheaf R).1.map i.op s :=
let ⟨V, hxV, iVU, f, g, hfg⟩ := s.2 ⟨x, hx⟩
⟨V, hxV, iVU, f, g, fun y hyV => (hfg ⟨y, hyV⟩).1,
Subtype.eq <| funext fun y => IsLocalization.mk'_eq_iff_eq_mul.2 <| Eq.symm <| (hfg y).2⟩
@[simp] | theorem | AlgebraicGeometry | [
"Mathlib.Algebra.Category.Ring.Colimits",
"Mathlib.Algebra.Category.Ring.Instances",
"Mathlib.Algebra.Category.Ring.Limits",
"Mathlib.Algebra.Ring.Subring.Basic",
"Mathlib.RingTheory.Localization.AtPrime.Basic",
"Mathlib.RingTheory.Spectrum.Prime.Topology",
"Mathlib.Topology.Sheaves.LocalPredicate"
] | Mathlib/AlgebraicGeometry/StructureSheaf.lean | exists_const | null |
res_const (f g : R) (U hu V hv i) :
(structureSheaf R).1.map i (const R f g U hu) = const R f g V hv :=
rfl | theorem | AlgebraicGeometry | [
"Mathlib.Algebra.Category.Ring.Colimits",
"Mathlib.Algebra.Category.Ring.Instances",
"Mathlib.Algebra.Category.Ring.Limits",
"Mathlib.Algebra.Ring.Subring.Basic",
"Mathlib.RingTheory.Localization.AtPrime.Basic",
"Mathlib.RingTheory.Spectrum.Prime.Topology",
"Mathlib.Topology.Sheaves.LocalPredicate"
] | Mathlib/AlgebraicGeometry/StructureSheaf.lean | res_const | null |
res_const' (f g : R) (V hv) :
(structureSheaf R).1.map (homOfLE hv).op (const R f g (PrimeSpectrum.basicOpen g) fun _ => id) =
const R f g V hv :=
rfl | theorem | AlgebraicGeometry | [
"Mathlib.Algebra.Category.Ring.Colimits",
"Mathlib.Algebra.Category.Ring.Instances",
"Mathlib.Algebra.Category.Ring.Limits",
"Mathlib.Algebra.Ring.Subring.Basic",
"Mathlib.RingTheory.Localization.AtPrime.Basic",
"Mathlib.RingTheory.Spectrum.Prime.Topology",
"Mathlib.Topology.Sheaves.LocalPredicate"
] | Mathlib/AlgebraicGeometry/StructureSheaf.lean | res_const' | null |
const_zero (f : R) (U hu) : const R 0 f U hu = 0 :=
Subtype.eq <| funext fun x => IsLocalization.mk'_eq_iff_eq_mul.2 <| by
rw [RingHom.map_zero]
exact (mul_eq_zero_of_left rfl ((algebraMap R (Localizations R x)) _)).symm | theorem | AlgebraicGeometry | [
"Mathlib.Algebra.Category.Ring.Colimits",
"Mathlib.Algebra.Category.Ring.Instances",
"Mathlib.Algebra.Category.Ring.Limits",
"Mathlib.Algebra.Ring.Subring.Basic",
"Mathlib.RingTheory.Localization.AtPrime.Basic",
"Mathlib.RingTheory.Spectrum.Prime.Topology",
"Mathlib.Topology.Sheaves.LocalPredicate"
] | Mathlib/AlgebraicGeometry/StructureSheaf.lean | const_zero | null |
const_self (f : R) (U hu) : const R f f U hu = 1 :=
Subtype.eq <| funext fun _ => IsLocalization.mk'_self _ _ | theorem | AlgebraicGeometry | [
"Mathlib.Algebra.Category.Ring.Colimits",
"Mathlib.Algebra.Category.Ring.Instances",
"Mathlib.Algebra.Category.Ring.Limits",
"Mathlib.Algebra.Ring.Subring.Basic",
"Mathlib.RingTheory.Localization.AtPrime.Basic",
"Mathlib.RingTheory.Spectrum.Prime.Topology",
"Mathlib.Topology.Sheaves.LocalPredicate"
] | Mathlib/AlgebraicGeometry/StructureSheaf.lean | const_self | null |
const_one (U) : (const R 1 1 U fun _ _ => Submonoid.one_mem _) = 1 :=
const_self R 1 U _ | theorem | AlgebraicGeometry | [
"Mathlib.Algebra.Category.Ring.Colimits",
"Mathlib.Algebra.Category.Ring.Instances",
"Mathlib.Algebra.Category.Ring.Limits",
"Mathlib.Algebra.Ring.Subring.Basic",
"Mathlib.RingTheory.Localization.AtPrime.Basic",
"Mathlib.RingTheory.Spectrum.Prime.Topology",
"Mathlib.Topology.Sheaves.LocalPredicate"
] | Mathlib/AlgebraicGeometry/StructureSheaf.lean | const_one | null |
const_add (f₁ f₂ g₁ g₂ : R) (U hu₁ hu₂) :
const R f₁ g₁ U hu₁ + const R f₂ g₂ U hu₂ =
const R (f₁ * g₂ + f₂ * g₁) (g₁ * g₂) U fun x hx =>
Submonoid.mul_mem _ (hu₁ x hx) (hu₂ x hx) :=
Subtype.eq <| funext fun x => Eq.symm <| IsLocalization.mk'_add _ _
⟨g₁, hu₁ x x.2⟩ ⟨g₂, hu₂ x x.2⟩ | theorem | AlgebraicGeometry | [
"Mathlib.Algebra.Category.Ring.Colimits",
"Mathlib.Algebra.Category.Ring.Instances",
"Mathlib.Algebra.Category.Ring.Limits",
"Mathlib.Algebra.Ring.Subring.Basic",
"Mathlib.RingTheory.Localization.AtPrime.Basic",
"Mathlib.RingTheory.Spectrum.Prime.Topology",
"Mathlib.Topology.Sheaves.LocalPredicate"
] | Mathlib/AlgebraicGeometry/StructureSheaf.lean | const_add | null |
const_mul (f₁ f₂ g₁ g₂ : R) (U hu₁ hu₂) :
const R f₁ g₁ U hu₁ * const R f₂ g₂ U hu₂ =
const R (f₁ * f₂) (g₁ * g₂) U fun x hx => Submonoid.mul_mem _ (hu₁ x hx) (hu₂ x hx) :=
Subtype.eq <|
funext fun x =>
Eq.symm <| IsLocalization.mk'_mul _ f₁ f₂ ⟨g₁, hu₁ x x.2⟩ ⟨g₂, hu₂ x x.2⟩ | theorem | AlgebraicGeometry | [
"Mathlib.Algebra.Category.Ring.Colimits",
"Mathlib.Algebra.Category.Ring.Instances",
"Mathlib.Algebra.Category.Ring.Limits",
"Mathlib.Algebra.Ring.Subring.Basic",
"Mathlib.RingTheory.Localization.AtPrime.Basic",
"Mathlib.RingTheory.Spectrum.Prime.Topology",
"Mathlib.Topology.Sheaves.LocalPredicate"
] | Mathlib/AlgebraicGeometry/StructureSheaf.lean | const_mul | null |
const_ext {f₁ f₂ g₁ g₂ : R} {U hu₁ hu₂} (h : f₁ * g₂ = f₂ * g₁) :
const R f₁ g₁ U hu₁ = const R f₂ g₂ U hu₂ :=
Subtype.eq <|
funext fun x =>
IsLocalization.mk'_eq_of_eq (by rw [mul_comm, Subtype.coe_mk, ← h, mul_comm, Subtype.coe_mk]) | theorem | AlgebraicGeometry | [
"Mathlib.Algebra.Category.Ring.Colimits",
"Mathlib.Algebra.Category.Ring.Instances",
"Mathlib.Algebra.Category.Ring.Limits",
"Mathlib.Algebra.Ring.Subring.Basic",
"Mathlib.RingTheory.Localization.AtPrime.Basic",
"Mathlib.RingTheory.Spectrum.Prime.Topology",
"Mathlib.Topology.Sheaves.LocalPredicate"
] | Mathlib/AlgebraicGeometry/StructureSheaf.lean | const_ext | null |
const_congr {f₁ f₂ g₁ g₂ : R} {U hu} (hf : f₁ = f₂) (hg : g₁ = g₂) :
const R f₁ g₁ U hu = const R f₂ g₂ U (hg ▸ hu) := by substs hf hg; rfl | theorem | AlgebraicGeometry | [
"Mathlib.Algebra.Category.Ring.Colimits",
"Mathlib.Algebra.Category.Ring.Instances",
"Mathlib.Algebra.Category.Ring.Limits",
"Mathlib.Algebra.Ring.Subring.Basic",
"Mathlib.RingTheory.Localization.AtPrime.Basic",
"Mathlib.RingTheory.Spectrum.Prime.Topology",
"Mathlib.Topology.Sheaves.LocalPredicate"
] | Mathlib/AlgebraicGeometry/StructureSheaf.lean | const_congr | null |
const_mul_rev (f g : R) (U hu₁ hu₂) : const R f g U hu₁ * const R g f U hu₂ = 1 := by
rw [const_mul, const_congr R rfl (mul_comm g f), const_self] | theorem | AlgebraicGeometry | [
"Mathlib.Algebra.Category.Ring.Colimits",
"Mathlib.Algebra.Category.Ring.Instances",
"Mathlib.Algebra.Category.Ring.Limits",
"Mathlib.Algebra.Ring.Subring.Basic",
"Mathlib.RingTheory.Localization.AtPrime.Basic",
"Mathlib.RingTheory.Spectrum.Prime.Topology",
"Mathlib.Topology.Sheaves.LocalPredicate"
] | Mathlib/AlgebraicGeometry/StructureSheaf.lean | const_mul_rev | null |
const_mul_cancel (f g₁ g₂ : R) (U hu₁ hu₂) :
const R f g₁ U hu₁ * const R g₁ g₂ U hu₂ = const R f g₂ U hu₂ := by
rw [const_mul, const_ext]; rw [mul_assoc] | theorem | AlgebraicGeometry | [
"Mathlib.Algebra.Category.Ring.Colimits",
"Mathlib.Algebra.Category.Ring.Instances",
"Mathlib.Algebra.Category.Ring.Limits",
"Mathlib.Algebra.Ring.Subring.Basic",
"Mathlib.RingTheory.Localization.AtPrime.Basic",
"Mathlib.RingTheory.Spectrum.Prime.Topology",
"Mathlib.Topology.Sheaves.LocalPredicate"
] | Mathlib/AlgebraicGeometry/StructureSheaf.lean | const_mul_cancel | null |
const_mul_cancel' (f g₁ g₂ : R) (U hu₁ hu₂) :
const R g₁ g₂ U hu₂ * const R f g₁ U hu₁ = const R f g₂ U hu₂ := by
rw [mul_comm, const_mul_cancel] | theorem | AlgebraicGeometry | [
"Mathlib.Algebra.Category.Ring.Colimits",
"Mathlib.Algebra.Category.Ring.Instances",
"Mathlib.Algebra.Category.Ring.Limits",
"Mathlib.Algebra.Ring.Subring.Basic",
"Mathlib.RingTheory.Localization.AtPrime.Basic",
"Mathlib.RingTheory.Spectrum.Prime.Topology",
"Mathlib.Topology.Sheaves.LocalPredicate"
] | Mathlib/AlgebraicGeometry/StructureSheaf.lean | const_mul_cancel' | null |
toOpen (U : Opens (PrimeSpectrum.Top R)) :
CommRingCat.of R ⟶ (structureSheaf R).1.obj (op U) := CommRingCat.ofHom
{ toFun f :=
⟨fun _ => algebraMap R _ f, fun x =>
⟨U, x.2, 𝟙 _, f, 1, fun y =>
⟨(Ideal.ne_top_iff_one _).1 y.1.2.1, by simp [RingHom.map_one, mul_one]⟩⟩⟩
map_one' := Subtype.eq <| funext fun _ => RingHom.map_one _
map_mul' _ _ := Subtype.eq <| funext fun _ => RingHom.map_mul _ _ _
map_zero' := Subtype.eq <| funext fun _ => RingHom.map_zero _
map_add' _ _ := Subtype.eq <| funext fun _ => RingHom.map_add _ _ _ }
@[simp] | def | AlgebraicGeometry | [
"Mathlib.Algebra.Category.Ring.Colimits",
"Mathlib.Algebra.Category.Ring.Instances",
"Mathlib.Algebra.Category.Ring.Limits",
"Mathlib.Algebra.Ring.Subring.Basic",
"Mathlib.RingTheory.Localization.AtPrime.Basic",
"Mathlib.RingTheory.Spectrum.Prime.Topology",
"Mathlib.Topology.Sheaves.LocalPredicate"
] | Mathlib/AlgebraicGeometry/StructureSheaf.lean | toOpen | The canonical ring homomorphism interpreting an element of `R` as
a section of the structure sheaf. |
toOpen_res (U V : Opens (PrimeSpectrum.Top R)) (i : V ⟶ U) :
toOpen R U ≫ (structureSheaf R).1.map i.op = toOpen R V :=
rfl
@[simp] | theorem | AlgebraicGeometry | [
"Mathlib.Algebra.Category.Ring.Colimits",
"Mathlib.Algebra.Category.Ring.Instances",
"Mathlib.Algebra.Category.Ring.Limits",
"Mathlib.Algebra.Ring.Subring.Basic",
"Mathlib.RingTheory.Localization.AtPrime.Basic",
"Mathlib.RingTheory.Spectrum.Prime.Topology",
"Mathlib.Topology.Sheaves.LocalPredicate"
] | Mathlib/AlgebraicGeometry/StructureSheaf.lean | toOpen_res | null |
toOpen_apply (U : Opens (PrimeSpectrum.Top R)) (f : R) (x : U) :
(toOpen R U f).1 x = algebraMap _ _ f :=
rfl | theorem | AlgebraicGeometry | [
"Mathlib.Algebra.Category.Ring.Colimits",
"Mathlib.Algebra.Category.Ring.Instances",
"Mathlib.Algebra.Category.Ring.Limits",
"Mathlib.Algebra.Ring.Subring.Basic",
"Mathlib.RingTheory.Localization.AtPrime.Basic",
"Mathlib.RingTheory.Spectrum.Prime.Topology",
"Mathlib.Topology.Sheaves.LocalPredicate"
] | Mathlib/AlgebraicGeometry/StructureSheaf.lean | toOpen_apply | null |
toOpen_eq_const (U : Opens (PrimeSpectrum.Top R)) (f : R) :
toOpen R U f = const R f 1 U fun x _ => (Ideal.ne_top_iff_one _).1 x.2.1 :=
Subtype.eq <| funext fun _ => Eq.symm <| IsLocalization.mk'_one _ f | theorem | AlgebraicGeometry | [
"Mathlib.Algebra.Category.Ring.Colimits",
"Mathlib.Algebra.Category.Ring.Instances",
"Mathlib.Algebra.Category.Ring.Limits",
"Mathlib.Algebra.Ring.Subring.Basic",
"Mathlib.RingTheory.Localization.AtPrime.Basic",
"Mathlib.RingTheory.Spectrum.Prime.Topology",
"Mathlib.Topology.Sheaves.LocalPredicate"
] | Mathlib/AlgebraicGeometry/StructureSheaf.lean | toOpen_eq_const | null |
toStalk (x : PrimeSpectrum.Top R) : CommRingCat.of R ⟶ (structureSheaf R).presheaf.stalk x :=
(toOpen R ⊤ ≫ (structureSheaf R).presheaf.germ _ x (by trivial))
@[simp] | def | AlgebraicGeometry | [
"Mathlib.Algebra.Category.Ring.Colimits",
"Mathlib.Algebra.Category.Ring.Instances",
"Mathlib.Algebra.Category.Ring.Limits",
"Mathlib.Algebra.Ring.Subring.Basic",
"Mathlib.RingTheory.Localization.AtPrime.Basic",
"Mathlib.RingTheory.Spectrum.Prime.Topology",
"Mathlib.Topology.Sheaves.LocalPredicate"
] | Mathlib/AlgebraicGeometry/StructureSheaf.lean | toStalk | The canonical ring homomorphism interpreting an element of `R` as an element of
the stalk of `structureSheaf R` at `x`. |
toOpen_germ (U : Opens (PrimeSpectrum.Top R)) (x : PrimeSpectrum.Top R) (hx : x ∈ U) :
toOpen R U ≫ (structureSheaf R).presheaf.germ U x hx = toStalk R x := by
rw [← toOpen_res R ⊤ U (homOfLE le_top : U ⟶ ⊤), Category.assoc, Presheaf.germ_res]; rfl
@[simp] | theorem | AlgebraicGeometry | [
"Mathlib.Algebra.Category.Ring.Colimits",
"Mathlib.Algebra.Category.Ring.Instances",
"Mathlib.Algebra.Category.Ring.Limits",
"Mathlib.Algebra.Ring.Subring.Basic",
"Mathlib.RingTheory.Localization.AtPrime.Basic",
"Mathlib.RingTheory.Spectrum.Prime.Topology",
"Mathlib.Topology.Sheaves.LocalPredicate"
] | Mathlib/AlgebraicGeometry/StructureSheaf.lean | toOpen_germ | null |
germ_toOpen
(U : Opens (PrimeSpectrum.Top R)) (x : PrimeSpectrum.Top R) (hx : x ∈ U) (f : R) :
(structureSheaf R).presheaf.germ U x hx (toOpen R U f) = toStalk R x f := by
rw [← toOpen_germ]; rfl | theorem | AlgebraicGeometry | [
"Mathlib.Algebra.Category.Ring.Colimits",
"Mathlib.Algebra.Category.Ring.Instances",
"Mathlib.Algebra.Category.Ring.Limits",
"Mathlib.Algebra.Ring.Subring.Basic",
"Mathlib.RingTheory.Localization.AtPrime.Basic",
"Mathlib.RingTheory.Spectrum.Prime.Topology",
"Mathlib.Topology.Sheaves.LocalPredicate"
] | Mathlib/AlgebraicGeometry/StructureSheaf.lean | germ_toOpen | null |
toOpen_Γgerm_apply (x : PrimeSpectrum.Top R) (f : R) :
(structureSheaf R).presheaf.Γgerm x (toOpen R ⊤ f) = toStalk R x f :=
rfl | theorem | AlgebraicGeometry | [
"Mathlib.Algebra.Category.Ring.Colimits",
"Mathlib.Algebra.Category.Ring.Instances",
"Mathlib.Algebra.Category.Ring.Limits",
"Mathlib.Algebra.Ring.Subring.Basic",
"Mathlib.RingTheory.Localization.AtPrime.Basic",
"Mathlib.RingTheory.Spectrum.Prime.Topology",
"Mathlib.Topology.Sheaves.LocalPredicate"
] | Mathlib/AlgebraicGeometry/StructureSheaf.lean | toOpen_Γgerm_apply | null |
isUnit_to_basicOpen_self (f : R) : IsUnit (toOpen R (PrimeSpectrum.basicOpen f) f) :=
isUnit_of_mul_eq_one _ (const R 1 f (PrimeSpectrum.basicOpen f) fun _ => id) <| by
rw [toOpen_eq_const, const_mul_rev] | theorem | AlgebraicGeometry | [
"Mathlib.Algebra.Category.Ring.Colimits",
"Mathlib.Algebra.Category.Ring.Instances",
"Mathlib.Algebra.Category.Ring.Limits",
"Mathlib.Algebra.Ring.Subring.Basic",
"Mathlib.RingTheory.Localization.AtPrime.Basic",
"Mathlib.RingTheory.Spectrum.Prime.Topology",
"Mathlib.Topology.Sheaves.LocalPredicate"
] | Mathlib/AlgebraicGeometry/StructureSheaf.lean | isUnit_to_basicOpen_self | null |
isUnit_toStalk (x : PrimeSpectrum.Top R) (f : x.asIdeal.primeCompl) :
IsUnit (toStalk R x (f : R)) := by
rw [← germ_toOpen R (PrimeSpectrum.basicOpen (f : R)) x f.2 (f : R)]
exact RingHom.isUnit_map _ (isUnit_to_basicOpen_self R f) | theorem | AlgebraicGeometry | [
"Mathlib.Algebra.Category.Ring.Colimits",
"Mathlib.Algebra.Category.Ring.Instances",
"Mathlib.Algebra.Category.Ring.Limits",
"Mathlib.Algebra.Ring.Subring.Basic",
"Mathlib.RingTheory.Localization.AtPrime.Basic",
"Mathlib.RingTheory.Spectrum.Prime.Topology",
"Mathlib.Topology.Sheaves.LocalPredicate"
] | Mathlib/AlgebraicGeometry/StructureSheaf.lean | isUnit_toStalk | null |
localizationToStalk (x : PrimeSpectrum.Top R) :
CommRingCat.of (Localization.AtPrime x.asIdeal) ⟶ (structureSheaf R).presheaf.stalk x :=
CommRingCat.ofHom <|
show Localization.AtPrime x.asIdeal →+* _ from IsLocalization.lift (isUnit_toStalk R x)
@[simp] | def | AlgebraicGeometry | [
"Mathlib.Algebra.Category.Ring.Colimits",
"Mathlib.Algebra.Category.Ring.Instances",
"Mathlib.Algebra.Category.Ring.Limits",
"Mathlib.Algebra.Ring.Subring.Basic",
"Mathlib.RingTheory.Localization.AtPrime.Basic",
"Mathlib.RingTheory.Spectrum.Prime.Topology",
"Mathlib.Topology.Sheaves.LocalPredicate"
] | Mathlib/AlgebraicGeometry/StructureSheaf.lean | localizationToStalk | The canonical ring homomorphism from the localization of `R` at `p` to the stalk
of the structure sheaf at the point `p`. |
localizationToStalk_of (x : PrimeSpectrum.Top R) (f : R) :
localizationToStalk R x (algebraMap _ (Localization _) f) = toStalk R x f :=
IsLocalization.lift_eq (S := Localization x.asIdeal.primeCompl) _ f
@[simp] | theorem | AlgebraicGeometry | [
"Mathlib.Algebra.Category.Ring.Colimits",
"Mathlib.Algebra.Category.Ring.Instances",
"Mathlib.Algebra.Category.Ring.Limits",
"Mathlib.Algebra.Ring.Subring.Basic",
"Mathlib.RingTheory.Localization.AtPrime.Basic",
"Mathlib.RingTheory.Spectrum.Prime.Topology",
"Mathlib.Topology.Sheaves.LocalPredicate"
] | Mathlib/AlgebraicGeometry/StructureSheaf.lean | localizationToStalk_of | null |
localizationToStalk_mk' (x : PrimeSpectrum.Top R) (f : R) (s : x.asIdeal.primeCompl) :
localizationToStalk R x (IsLocalization.mk' (Localization.AtPrime x.asIdeal) f s) =
(structureSheaf R).presheaf.germ (PrimeSpectrum.basicOpen (s : R)) x s.2
(const R f s (PrimeSpectrum.basicOpen s) fun _ => id) :=
(IsLocalization.lift_mk'_spec (S := Localization.AtPrime x.asIdeal) _ _ _ _).2 <| by
rw [← germ_toOpen R (PrimeSpectrum.basicOpen s) x s.2,
← germ_toOpen R (PrimeSpectrum.basicOpen s) x s.2, ← RingHom.map_mul, toOpen_eq_const,
toOpen_eq_const, const_mul_cancel'] | theorem | AlgebraicGeometry | [
"Mathlib.Algebra.Category.Ring.Colimits",
"Mathlib.Algebra.Category.Ring.Instances",
"Mathlib.Algebra.Category.Ring.Limits",
"Mathlib.Algebra.Ring.Subring.Basic",
"Mathlib.RingTheory.Localization.AtPrime.Basic",
"Mathlib.RingTheory.Spectrum.Prime.Topology",
"Mathlib.Topology.Sheaves.LocalPredicate"
] | Mathlib/AlgebraicGeometry/StructureSheaf.lean | localizationToStalk_mk' | null |
openToLocalization (U : Opens (PrimeSpectrum.Top R)) (x : PrimeSpectrum.Top R) (hx : x ∈ U) :
(structureSheaf R).1.obj (op U) ⟶ CommRingCat.of (Localization.AtPrime x.asIdeal) :=
CommRingCat.ofHom
{ toFun s := (s.1 ⟨x, hx⟩ :)
map_one' := rfl
map_mul' _ _ := rfl
map_zero' := rfl
map_add' _ _ := rfl }
@[simp] | def | AlgebraicGeometry | [
"Mathlib.Algebra.Category.Ring.Colimits",
"Mathlib.Algebra.Category.Ring.Instances",
"Mathlib.Algebra.Category.Ring.Limits",
"Mathlib.Algebra.Ring.Subring.Basic",
"Mathlib.RingTheory.Localization.AtPrime.Basic",
"Mathlib.RingTheory.Spectrum.Prime.Topology",
"Mathlib.Topology.Sheaves.LocalPredicate"
] | Mathlib/AlgebraicGeometry/StructureSheaf.lean | openToLocalization | The ring homomorphism that takes a section of the structure sheaf of `R` on the open set `U`,
implemented as a subtype of dependent functions to localizations at prime ideals, and evaluates
the section on the point corresponding to a given prime ideal. |
coe_openToLocalization (U : Opens (PrimeSpectrum.Top R)) (x : PrimeSpectrum.Top R)
(hx : x ∈ U) :
(openToLocalization R U x hx :
(structureSheaf R).1.obj (op U) → Localization.AtPrime x.asIdeal) =
fun s => s.1 ⟨x, hx⟩ :=
rfl | theorem | AlgebraicGeometry | [
"Mathlib.Algebra.Category.Ring.Colimits",
"Mathlib.Algebra.Category.Ring.Instances",
"Mathlib.Algebra.Category.Ring.Limits",
"Mathlib.Algebra.Ring.Subring.Basic",
"Mathlib.RingTheory.Localization.AtPrime.Basic",
"Mathlib.RingTheory.Spectrum.Prime.Topology",
"Mathlib.Topology.Sheaves.LocalPredicate"
] | Mathlib/AlgebraicGeometry/StructureSheaf.lean | coe_openToLocalization | null |
openToLocalization_apply (U : Opens (PrimeSpectrum.Top R)) (x : PrimeSpectrum.Top R)
(hx : x ∈ U) (s : (structureSheaf R).1.obj (op U)) :
openToLocalization R U x hx s = s.1 ⟨x, hx⟩ :=
rfl | theorem | AlgebraicGeometry | [
"Mathlib.Algebra.Category.Ring.Colimits",
"Mathlib.Algebra.Category.Ring.Instances",
"Mathlib.Algebra.Category.Ring.Limits",
"Mathlib.Algebra.Ring.Subring.Basic",
"Mathlib.RingTheory.Localization.AtPrime.Basic",
"Mathlib.RingTheory.Spectrum.Prime.Topology",
"Mathlib.Topology.Sheaves.LocalPredicate"
] | Mathlib/AlgebraicGeometry/StructureSheaf.lean | openToLocalization_apply | null |
stalkToFiberRingHom (x : PrimeSpectrum.Top R) :
(structureSheaf R).presheaf.stalk x ⟶ CommRingCat.of (Localization.AtPrime x.asIdeal) :=
Limits.colimit.desc ((OpenNhds.inclusion x).op ⋙ (structureSheaf R).1)
{ pt := _
ι := { app := fun U =>
openToLocalization R ((OpenNhds.inclusion _).obj (unop U)) x (unop U).2 } }
@[simp] | def | AlgebraicGeometry | [
"Mathlib.Algebra.Category.Ring.Colimits",
"Mathlib.Algebra.Category.Ring.Instances",
"Mathlib.Algebra.Category.Ring.Limits",
"Mathlib.Algebra.Ring.Subring.Basic",
"Mathlib.RingTheory.Localization.AtPrime.Basic",
"Mathlib.RingTheory.Spectrum.Prime.Topology",
"Mathlib.Topology.Sheaves.LocalPredicate"
] | Mathlib/AlgebraicGeometry/StructureSheaf.lean | stalkToFiberRingHom | The ring homomorphism from the stalk of the structure sheaf of `R` at a point corresponding to
a prime ideal `p` to the localization of `R` at `p`,
formed by gluing the `openToLocalization` maps. |
germ_comp_stalkToFiberRingHom
(U : Opens (PrimeSpectrum.Top R)) (x : PrimeSpectrum.Top R) (hx : x ∈ U) :
(structureSheaf R).presheaf.germ U x hx ≫ stalkToFiberRingHom R x =
openToLocalization R U x hx :=
Limits.colimit.ι_desc _ _
@[simp] | theorem | AlgebraicGeometry | [
"Mathlib.Algebra.Category.Ring.Colimits",
"Mathlib.Algebra.Category.Ring.Instances",
"Mathlib.Algebra.Category.Ring.Limits",
"Mathlib.Algebra.Ring.Subring.Basic",
"Mathlib.RingTheory.Localization.AtPrime.Basic",
"Mathlib.RingTheory.Spectrum.Prime.Topology",
"Mathlib.Topology.Sheaves.LocalPredicate"
] | Mathlib/AlgebraicGeometry/StructureSheaf.lean | germ_comp_stalkToFiberRingHom | null |
stalkToFiberRingHom_germ (U : Opens (PrimeSpectrum.Top R))
(x : PrimeSpectrum.Top R) (hx : x ∈ U) (s : (structureSheaf R).1.obj (op U)) :
stalkToFiberRingHom R x ((structureSheaf R).presheaf.germ U x hx s) = s.1 ⟨x, hx⟩ :=
RingHom.ext_iff.mp (CommRingCat.hom_ext_iff.mp (germ_comp_stalkToFiberRingHom R U x hx)) s
@[simp] | theorem | AlgebraicGeometry | [
"Mathlib.Algebra.Category.Ring.Colimits",
"Mathlib.Algebra.Category.Ring.Instances",
"Mathlib.Algebra.Category.Ring.Limits",
"Mathlib.Algebra.Ring.Subring.Basic",
"Mathlib.RingTheory.Localization.AtPrime.Basic",
"Mathlib.RingTheory.Spectrum.Prime.Topology",
"Mathlib.Topology.Sheaves.LocalPredicate"
] | Mathlib/AlgebraicGeometry/StructureSheaf.lean | stalkToFiberRingHom_germ | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.