AlgebraicCurves.Geometry.AbelianSchemes.Theorems.Proofs.RelativeGroupLaw_exists_opens_diagonal_difference_extension_of_forall_ringKrullDim_le_one.GoodReductionJacobian.RelativeGroupLaw.WeilExtField.C3b.exists_rationalMap_component_affine
Source context 25 commands
Surrounding namespaces, section variables, and local commands at this declaration.
@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Geometry.AbelianSchemes.Theorems.Proofs
namespace RelativeGroupLaw_exists_opens_diagonal_difference_extension_of_forall_ringKrullDim_le_one
universe u
open _root_.CategoryTheory
open _root_.CategoryTheory.Limits
open _root_.AlgebraicGeometry
open _root_.NeronModelInfra
open _root_.GoodReductionJacobian
open _root_.CategoryTheory
open _root_.CategoryTheory.Limits
open _root_.AlgebraicGeometry
open _root_.NeronModelInfra
open _root_.GoodReductionJacobian
open _root_.AlgebraicCurves.Geometry.AbelianSchemes.Theorems.Proofs
open RelativeGroupLaw_exists_opens_diagonal_difference_extension_of_forall_ringKrullDim_le_one
open GoodReductionJacobian
open _root_.Topology
namespace GoodReductionJacobian
namespace RelativeGroupLaw
namespace WeilExtField
namespace C3b
open _root_.GoodReductionJacobian.RelativeGroupLaw
open _root_.GoodReductionJacobian
Lean source · full declarationtheorem exists_rationalMap_component_affine
{k : Type u} [Field k]
{A T : Scheme.{u}} {f : A ⟶ Spec (CommRingCat.of k)} (G : RelativeGroupLaw k f) [IsSeparated f]
(t : T ⟶ Spec (CommRingCat.of k)) [Smooth t]
(V : T.Opens) (hV1 : ∀ x : T, ringKrullDim (T.presheaf.stalk x) ≤ 1 → x ∈ V)
(v : SchemeHomOver (V.ι ≫ t) f)
(W : (pullback t t).Opens) (d : SchemeHomOver (W.ι ≫ pullback.fst t t ≫ t) f)
(hVV : ∀ p : ↑(pullback t t), (pullback.fst t t).base p ∈ V → (pullback.snd t t).base p ∈ V → p
∈ W)
(hrec : ∀ (S : Scheme.{u}) (a : S ⟶ ↑W) (b c : S ⟶ ↑V)
(hb : a ≫ W.ι ≫ pullback.fst t t = b ≫ V.ι) (hc : a ≫ W.ι ≫ pullback.snd t t = c ≫ V.ι),
G.mul (a ≫ W.ι ≫ pullback.fst t t ≫ t)
⟨a ≫ d.1, by rw [Category.assoc, d.2]⟩
⟨c ≫ v.1,
by rw [Category.assoc, v.2, ← Category.assoc, ← hc, Category.assoc, Category.assoc,
← pullback.condition]⟩ =
⟨b ≫ v.1,
by rw [Category.assoc, v.2, ← Category.assoc, ← hb, Category.assoc, Category.assoc]⟩)
(hmax : ∀ (W' : (pullback t t).Opens) (d' : SchemeHomOver (W'.ι ≫ pullback.fst t t ≫ t) f)
(W₀ : (pullback t t).Opens) (h₀ : W₀ ≤ W ⊓ W'),
((W' : Set ↑(pullback t t)) ⊆ closure (W₀ : Set ↑(pullback t t))) →
(pullback t t).homOfLE (h₀.trans inf_le_left) ≫ d.1 = (pullback t t).homOfLE (h₀.trans
inf_le_right) ≫ d'.1 →
W' ≤ W ∧ ∀ (S : Scheme.{u}) (a' : S ⟶ ↑W') (a : S ⟶ ↑W), a' ≫ W'.ι = a ≫ W.ι → a' ≫ d'.1 =
a ≫ d.1)
(y : T) (P₀ : (pullback t t).Opens) [IrreducibleSpace (P₀ : Scheme.{u})]
(hyP₀ : (pullback.diagonal t).base y ∈ P₀)
(H : A.Opens) (hHe : ∀ s : ↥(Spec (CommRingCat.of k)), (G.one (𝟙 (Spec (CommRingCat.of
k)))).1.base s ∈ H) :
∃ u : (P₀ : Scheme.{u}) ⤏ (H : Scheme.{u}),
(∀ p : ↥P₀, p ∈ u.domain → P₀.ι.base p ∈ W) ∧
(∀ ξ : T, ξ ∈ V → ξ ⤳ y →
∃ hξ : (pullback.diagonal t).base ξ ∈ P₀, (⟨(pullback.diagonal t).base ξ, hξ⟩ : ↥P₀) ∈
u.domain) := by
classical
have : IsReduced (pullback t t) :=
_root_.AlgebraicGeometry.isReduced_of_smooth_of_field (pullback.fst t t ≫ t)
have hV : Dense (V : Set T) :=
GoodReductionJacobian.RelativeGroupLaw.WeilExtField.DIAG.dense_of_forall_ringKrullDim_le_one V
hV1
have hC3a := GoodReductionJacobian.RelativeGroupLaw.WeilExtField.C3.diagonal_restrict_comp_eq_unit
G t V hV v W d hrec
have hdΔ : ∀ (θ : T) (hθ : (pullback.diagonal t).base θ ∈ W),
d.1.base ⟨(pullback.diagonal t).base θ, hθ⟩ ∈ H := by
intro θ hθ
have hθ' : θ ∈ (pullback.diagonal t) ⁻¹ᵁ W := by rw [Scheme.Hom.mem_preimage]; exact hθ
let z : ((pullback.diagonal t) ⁻¹ᵁ W).toScheme := ⟨θ, hθ'⟩
have e1 := congrArg
(fun φ : ((pullback.diagonal t) ⁻¹ᵁ W).toScheme ⟶ A => φ z) hC3a
simp only [Scheme.Hom.comp_apply] at e1
have e2 : (pullback.diagonal t ∣_ W) z =
(⟨(pullback.diagonal t) θ, hθ⟩ : W.toScheme) :=
Subtype.ext (morphismRestrict_base_coe (pullback.diagonal t) W z)
rw [e2] at e1
exact e1.symm ▸ hHe _
have key : ∀ θ : T, θ ∈ V → θ ⤳ y →
(pullback.diagonal t).base θ ∈ P₀ ∧ (pullback.diagonal t).base θ ∈ W := by
intro θ hθV hθy
refine ⟨(hθy.map (Scheme.Hom.continuous (pullback.diagonal t))).mem_open P₀.2 hyP₀, hVV _ ?_ ?_⟩
· rw [← Scheme.Hom.comp_apply, pullback.diagonal_fst]; exact hθV
· rw [← Scheme.Hom.comp_apply, pullback.diagonal_snd]; exact hθV
obtain ⟨θ₀, hθ₀y, hθ₀dim⟩ :=
DIAG.exists_specializes_ringKrullDim_stalk_le_one y
have hθ₀V : θ₀ ∈ V := hV1 θ₀ hθ₀dim
let WH : (pullback t t).Opens := W.ι ''ᵁ (d.1 ⁻¹ᵁ H)
have hWH_le : WH ≤ W := by
rintro q ⟨w, -, rfl⟩; exact w.2
let U₀ : (P₀ : Scheme.{u}).Opens := P₀.ι ⁻¹ᵁ WH
have hrange1 : Set.range (U₀.ι ≫ P₀.ι).base ⊆ Set.range W.ι.base := by
rw [Scheme.Opens.range_ι]
rintro _ ⟨z, rfl⟩
rw [Scheme.Hom.comp_apply]
exact hWH_le ((Scheme.Hom.mem_preimage _).mp z.2)
let ℓ := IsOpenImmersion.lift W.ι (U₀.ι ≫ P₀.ι) hrange1
have hℓ : ℓ ≫ W.ι = U₀.ι ≫ P₀.ι := IsOpenImmersion.lift_fac _ _ _
have hℓmem : ∀ z : U₀.toScheme, ℓ z ∈ d.1 ⁻¹ᵁ H := by
intro z
have hz : P₀.ι.base (U₀.ι.base z) ∈ WH := (Scheme.Hom.mem_preimage _).mp z.2
obtain ⟨w, hw, hwz⟩ := hz
have : w = ℓ.base z := by
apply W.ι.isOpenEmbedding.injective
refine hwz.trans ?_
show P₀.ι.base (U₀.ι.base z) = W.ι.base (ℓ.base z)
simpa only [Scheme.Hom.comp_apply] using
(congrArg (fun φ : U₀.toScheme ⟶ pullback t t => φ z) hℓ).symm
rw [← this]; exact hw
have hrange2 : Set.range (ℓ ≫ d.1).base ⊆ Set.range H.ι.base := by
rw [Scheme.Opens.range_ι]
rintro _ ⟨z, rfl⟩
rw [Scheme.Hom.comp_apply]
exact (Scheme.Hom.mem_preimage _).mp (hℓmem z)
let rep : (U₀ : Scheme.{u}) ⟶ (H : Scheme.{u}) := IsOpenImmersion.lift H.ι (ℓ ≫ d.1) hrange2
have hrep : rep ≫ H.ι = ℓ ≫ d.1 := IsOpenImmersion.lift_fac _ _ _
have hΔU₀ : ∀ (θ : T) (hθV : θ ∈ V) (hθy : θ ⤳ y),
(⟨(pullback.diagonal t).base θ, (key θ hθV hθy).1⟩ : ↥P₀) ∈ U₀ := by
intro θ hθV hθy
change P₀.ι.base _ ∈ WH
exact ⟨⟨(pullback.diagonal t).base θ, (key θ hθV hθy).2⟩,
(Scheme.Hom.mem_preimage _).mpr (hdΔ θ (key θ hθV hθy).2), rfl⟩
have hU₀dense : Dense (SetLike.coe U₀) :=
IsOpen.dense U₀.2 ⟨⟨(pullback.diagonal t).base θ₀, (key θ₀ hθ₀V hθ₀y).1⟩, hΔU₀ θ₀ hθ₀V hθ₀y⟩
let g₀ : (P₀ : Scheme.{u}).PartialMap (H : Scheme.{u}) := ⟨U₀, hU₀dense, rep⟩
refine ⟨g₀.toRationalMap, ?_, ?_⟩
· intro p hp
obtain ⟨g, hpg, hgeq⟩ := Scheme.RationalMap.mem_domain.mp hp
rw [Scheme.PartialMap.toRationalMap_eq_iff] at hgeq
obtain ⟨W₀, hW₀d, hW₀g, hW₀g₀, hagree⟩ := hgeq
rw [Scheme.PartialMap.restrict_hom, Scheme.PartialMap.restrict_hom] at hagree
change (P₀ : Scheme.{u}).homOfLE hW₀g ≫ g.hom = (P₀ : Scheme.{u}).homOfLE hW₀g₀ ≫ rep at hagree
have : IsDominant ((P₀ : Scheme.{u}).homOfLE hW₀g) := by
rw [isDominant_iff]
have hrange : Set.range ((P₀ : Scheme.{u}).homOfLE hW₀g).base =
(Subtype.val : ↥g.domain → ↥P₀) ⁻¹' (SetLike.coe W₀) := by
ext q; constructor
· rintro ⟨x, rfl⟩
change (((P₀ : Scheme.{u}).homOfLE hW₀g).base x).1 ∈ (SetLike.coe W₀)
exact (Scheme.homOfLE_apply (X := P₀.toScheme) hW₀g
(show ↥W₀ from x)).symm ▸ x.2
· intro hq
exact ⟨⟨q.1, hq⟩, Subtype.ext
(Scheme.homOfLE_apply (X := P₀.toScheme) hW₀g ⟨q.1, hq⟩)⟩
intro q
rw [hrange]
have hcl : (Subtype.val ⁻¹' closure (SetLike.coe W₀) : Set ↥g.domain) =
closure (Subtype.val ⁻¹' (SetLike.coe W₀)) :=
(IsOpen.isOpenMap_subtype_val g.domain.2).preimage_closure_eq_closure_preimage
continuous_subtype_val _
have hq : q ∈ closure (Subtype.val ⁻¹' (SetLike.coe W₀) : Set ↥g.domain) := by
rw [← hcl]; exact hW₀d q.1
exact hq
have hℓR : ℓ ≫ d.1 ≫ f = U₀.ι ≫ P₀.ι ≫ pullback.fst t t ≫ t := by
rw [d.2, ← Category.assoc, hℓ, Category.assoc]
have hgover : g.hom ≫ H.ι ≫ f = g.domain.ι ≫ P₀.ι ≫ pullback.fst t t ≫ t := by
refine ext_of_isDominant_of_isSeparated (terminal.from _) (terminal.hom_ext _ _)
((P₀ : Scheme.{u}).homOfLE hW₀g) ?_
rw [← Category.assoc, hagree, Category.assoc, ← Category.assoc rep, hrep, Category.assoc, hℓR,
← Category.assoc, Scheme.homOfLE_ι, ← Category.assoc ((P₀ : Scheme.{u}).homOfLE hW₀g),
Scheme.homOfLE_ι]
let W' : (pullback t t).Opens := P₀.ι ''ᵁ g.domain
let iso := Scheme.Hom.isoImage P₀.ι g.domain
let d' : SchemeHomOver (W'.ι ≫ pullback.fst t t ≫ t) f :=
⟨iso.inv ≫ g.hom ≫ H.ι, by
rw [Category.assoc, Category.assoc, hgover, ← Category.assoc iso.inv,
← Category.assoc (iso.inv ≫ g.domain.ι), Category.assoc iso.inv,
Scheme.Hom.isoImage_inv_ι]⟩
let W₀' : (pullback t t).Opens := P₀.ι ''ᵁ W₀
have hW₀'W : W₀' ≤ W := by
rintro _ ⟨q, hq, rfl⟩
exact hWH_le ((Scheme.Hom.mem_preimage _).mp (hW₀g₀ hq))
have hW₀'W' : W₀' ≤ W' := by
rintro _ ⟨q, hq, rfl⟩; exact ⟨q, hW₀g hq, rfl⟩
have h₀ : W₀' ≤ W ⊓ W' := le_inf hW₀'W hW₀'W'
have hdense' : ((W' : (pullback t t).Opens) : Set ↑(pullback t t)) ⊆ closure (W₀' : Set
↑(pullback t t)) := by
rintro _ ⟨q, -, rfl⟩
have hq : q ∈ closure (SetLike.coe W₀) := hW₀d q
have := image_closure_subset_closure_image (Scheme.Hom.continuous P₀.ι) ⟨q, hq, rfl⟩
rwa [← Scheme.Hom.coe_image] at this
have hagree' : (pullback t t).homOfLE (h₀.trans inf_le_left) ≫ d.1 =
(pullback t t).homOfLE (h₀.trans inf_le_right) ≫ d'.1 := by
let j := Scheme.Hom.isoImage P₀.ι W₀
rw [← cancel_epi j.hom]
have hL : j.hom ≫ (pullback t t).homOfLE (h₀.trans inf_le_left) = (P₀ : Scheme.{u}).homOfLE
hW₀g₀ ≫ ℓ := by
rw [← cancel_mono W.ι, Category.assoc, Scheme.homOfLE_ι, Scheme.Hom.isoImage_hom_ι,
Category.assoc, hℓ,
← Category.assoc, Scheme.homOfLE_ι]
have hR : j.hom ≫ (pullback t t).homOfLE (h₀.trans inf_le_right) ≫ iso.inv =
(P₀ : Scheme.{u}).homOfLE hW₀g := by
rw [← cancel_mono (g.domain.ι ≫ P₀.ι), Category.assoc, Category.assoc,
Scheme.Hom.isoImage_inv_ι,
Scheme.homOfLE_ι, Scheme.Hom.isoImage_hom_ι, ← Category.assoc, Scheme.homOfLE_ι]
rw [← Category.assoc, hL, Category.assoc, ← hrep, ← Category.assoc, ← hagree, Category.assoc]
change _ = j.hom ≫ (pullback t t).homOfLE (h₀.trans inf_le_right) ≫ iso.inv ≫ g.hom ≫ H.ι
rw [← Category.assoc j.hom, ← Category.assoc (j.hom ≫ _), Category.assoc j.hom, hR]
obtain ⟨hW'W, -⟩ := hmax W' d' W₀' h₀ hdense' hagree'
exact hW'W ⟨p, hpg, rfl⟩
· intro ξ hξV hξy
exact ⟨(key ξ hξV hξy).1, g₀.le_domain_toRationalMap (hΔU₀ ξ hξV hξy)⟩