Source context 6 commands
Surrounding namespaces, section variables, and local commands at this declaration.
@[expose] public section
noncomputable section
open CategoryTheory CategoryTheory.Limits
open scoped TensorProduct
namespace AlgebraicGeometry
universe utheorem affineCoordinate_properties_of_integral_closedFiber
{B : Type u} [CommRing B] [IsDomain B] [IsDiscreteValuationRing B]
{X : Scheme.{u}} [IsAffine X] [IsIntegral X]
(f : X ⟶ Spec (.of B)) [Smooth f]
[IsIntegral (pullback f (Spec.map (CommRingCat.ofHom (IsLocalRing.residue B))))]
(π : B) (hπ : Prime π) :
let A := ((algΓ (.of B)).obj (Over.mk f)).unop
IsDomain A ∧ Algebra.Smooth B A ∧ Prime (algebraMap B A π) ∧
∃ e : X ≅ Spec (.of A),
e.hom ≫ Spec.map (CommRingCat.ofHom (algebraMap B A)) = f := by
intro A
let e : X ≅ Spec (.of A) := X.isoSpec
let t : Spec (.of A) ⟶ Spec (.of B) :=
Spec.map (CommRingCat.ofHom (algebraMap B A))
have hmodel : e.hom ≫ t = f := by
change X.isoSpec.hom ≫ Spec.map ((Scheme.ΓSpecIso (.of B)).inv ≫ f.appTop) = f
rw [Spec.map_comp, ← Category.assoc, Scheme.isoSpec_hom_naturality f,
Category.assoc, ← Scheme.isoSpec_Spec_inv, Iso.hom_inv_id, Category.comp_id]
have ht : Smooth t := by
have htEq : t = e.inv ≫ f := by
rw [← hmodel, Iso.inv_hom_id_assoc]
rw [htEq]
infer_instance
have hSmoothA : Algebra.Smooth B A := RingHom.smooth_algebraMap.mp
((HasRingHomProperty.Spec_iff (P := @Smooth)).mp ht)
let s := Spec.map (CommRingCat.ofHom (algebraMap B (IsLocalRing.ResidueField B)))
have : IsIntegral (pullback f s) := by
change IsIntegral (pullback f (Spec.map (CommRingCat.ofHom
(algebraMap B (IsLocalRing.ResidueField B)))))
rw [IsLocalRing.ResidueField.algebraMap_eq]
infer_instance
let p := pullback.fst t s ≫ e.inv
have hsquare : IsPullback p (pullback.snd t s) f s := by
apply (IsPullback.of_hasPullback t s).of_iso'
(Iso.refl _) e (Iso.refl _) (Iso.refl _)
· change 𝟙 _ ≫ pullback.fst t s =
(pullback.fst t s ≫ e.inv) ≫ e.hom
rw [Category.id_comp, Category.assoc, Iso.inv_hom_id, Category.comp_id]
· exact (Category.id_comp _).trans (Category.comp_id _).symm
· exact hmodel.trans (Category.comp_id f).symm
· exact (Category.id_comp _).trans (Category.comp_id _).symm
have : IsIntegral (pullback t s) := IsIntegral.of_isIso hsquare.isoPullback.inv
have : IsIntegral (Spec (.of (A ⊗[B] IsLocalRing.ResidueField B))) :=
IsIntegral.of_isIso (pullbackSpecIso B A (IsLocalRing.ResidueField B)).hom
have : IsDomain (A ⊗[B] IsLocalRing.ResidueField B) :=
(affine_isIntegral_iff (.of (A ⊗[B] IsLocalRing.ResidueField B))).mp inferInstance
have : IsIntegral (Spec (.of A)) := IsIntegral.of_isIso e.hom
have : IsDomain A := (affine_isIntegral_iff (.of A)).mp inferInstance
exact ⟨inferInstance, hSmoothA,
SchemeTheory.prime_uniformizer_image_of_isDomain_closedFiber B A π hπ,
e, hmodel⟩