Source context 5 commands
Surrounding namespaces, section variables, and local commands at this declaration.
@[expose] public section
noncomputable section
universe u
open CategoryTheory CategoryTheory.Limits TopologicalSpace
namespace AlgebraicGeometrytheorem exists_sigma_field_open_iso
{I : Type u} (F : I → Type u) [∀ i, Field (F i)]
{X : Scheme.{u}} (e : (∐ fun i => Spec (.of (F i))) ≅ X)
(V : X.Opens) (P : I → Prop)
(hP : ∀ i, (Sigma.ι (fun i => Spec (.of (F i))) i ≫ e.hom)
(IsLocalRing.closedPoint (F i)) ∈ V ↔ P i) :
∃ d : (∐ fun i : {i // P i} => Spec (.of (F i.1))) ≅ V,
∀ i : {i // P i},
Sigma.ι (fun i : {i // P i} => Spec (.of (F i.1))) i ≫ d.hom ≫ V.ι =
Sigma.ι (fun i => Spec (.of (F i))) i.1 ≫ e.hom := by
classical
let Z : I → Scheme.{u} := fun i => Spec (.of (F i))
let f (i : {i // P i}) : Z i.1 ⟶ X := Sigma.ι Z i.1 ≫ e.hom
have hf (i : {i // P i}) : IsOpenImmersion (f i) := inferInstance
let d := Sigma.desc f
have hd : IsOpenImmersion d := by
apply isOpenImmersion_sigmaDesc
intro i j hij
apply Set.disjoint_iff_forall_ne.mpr
rintro _ ⟨x, rfl⟩ _ ⟨y, rfl⟩ hxy
have hxy' : Sigma.ι Z i.1 x = Sigma.ι Z j.1 y :=
e.hom.homeomorph.injective hxy
have hval : i.1 = j.1 := congrArg Sigma.fst ((sigmaι_eq_iff Z _ _ _ _).mp hxy')
exact hij (Subtype.ext hval)
have hrange : Set.range d = Set.range V.ι := by
rw [Scheme.Opens.range_ι]
ext x
constructor
· rintro ⟨y, rfl⟩
have hy : ∃ (i : {i // P i}) (z : Z i.1),
Sigma.ι (fun i : {i // P i} => Z i.1) i z = y :=
(sigmaOpenCover (fun i : {i // P i} => Z i.1)).exists_eq y
obtain ⟨i, z, rfl⟩ := hy
have hdpoint : d (Sigma.ι (fun i : {i // P i} => Z i.1) i z) = f i z :=
congrArg (fun a => a z) (Sigma.ι_comp_desc f i)
rw [hdpoint]
have hz : z = IsLocalRing.closedPoint (F i.1) := Subsingleton.elim _ _
rw [hz]
exact (hP i.1).mpr i.2
· intro hx
have hy : ∃ (i : I) (z : Z i), Sigma.ι Z i z = e.inv x :=
(sigmaOpenCover Z).exists_eq (e.inv x)
obtain ⟨i, z, hz⟩ := hy
have hz' : (Sigma.ι Z i ≫ e.hom) z = x := by
change e.hom (Sigma.ι Z i z) = x
rw [hz]
exact congrArg (fun f : X ⟶ X => f x) e.inv_hom_id
have hp : P i := (hP i).mp (by
have hzc : IsLocalRing.closedPoint (F i) = z := Subsingleton.elim _ _
rw [hzc, hz']
exact hx)
refine ⟨Sigma.ι (fun i : {i // P i} => Z i.1) ⟨i, hp⟩ z, ?_⟩
exact (congrArg (fun a => a z) (Sigma.ι_comp_desc f ⟨i, hp⟩)).trans hz'
let E := IsOpenImmersion.isoOfRangeEq d V.ι hrange
refine ⟨E, ?_⟩
intro i
rw [IsOpenImmersion.isoOfRangeEq_hom_fac, Sigma.ι_comp_desc]