The original stalk map is unramified exactly when its affine prime is unramified.
Source context 5 commands
Surrounding namespaces, section variables, and local commands at this declaration.
@[expose] public section
noncomputable section
open CategoryTheory TopologicalSpace
namespace AlgebraicGeometry
universe utheorem formallyUnramified_stalkMap_iff_isUnramifiedAt
{X Y : Scheme.{u}} {f : X ⟶ Y} {x : X}
(U : Y.Opens) (hU : IsAffineOpen U) (V : X.Opens) (hV : IsAffineOpen V)
(hVU : V ≤ f ⁻¹ᵁ U) (hx : x ∈ V) :
let : Algebra Γ(Y, U) Γ(X, V) := (f.appLE U V hVU).hom.toAlgebra
(f.stalkMap x).hom.FormallyUnramified ↔
Algebra.IsUnramifiedAt Γ(Y, U) (hV.primeIdealOf ⟨x, hx⟩).asIdeal := by
intro sharedOwner1
let p := (hU.primeIdealOf ⟨f x, hVU hx⟩).asIdeal
let q := (hV.primeIdealOf ⟨x, hx⟩).asIdeal
let : q.LiesOver p :=
⟨congrArg PrimeSpectrum.asIdeal
(IsAffineOpen.comap_primeIdealOf_appLE U hU V hV hVU hx) |>.symm⟩
let : Algebra (Localization.AtPrime p) (Localization.AtPrime q) :=
Localization.AtPrime.algebraOfLiesOver p q
change (f.stalkMap x).hom.FormallyUnramified ↔ Algebra.IsUnramifiedAt Γ(Y, U) q
trans Algebra.FormallyUnramified (Localization.AtPrime p) (Localization.AtPrime q)
· rw [← RingHom.formallyUnramified_algebraMap]
exact RingHom.FormallyUnramified.respectsIso.arrow_mk_iso_iff
(IsAffineOpen.arrowStalkMapIso f U hU V hV hVU hx)
· constructor
· intro h
let : Algebra.FormallyUnramified (Localization.AtPrime p) (Localization.AtPrime q) := h
exact Algebra.FormallyUnramified.comp Γ(Y, U) (Localization.AtPrime p)
(Localization.AtPrime q)
· intro h
let : Algebra.IsUnramifiedAt Γ(Y, U) q := h
exact Algebra.FormallyUnramified.of_restrictScalars Γ(Y, U)
(Localization.AtPrime p) (Localization.AtPrime q)