NeronModelInfra.exists_n_eq_and_formallySmooth_stalk_of_isOmegaMinimal_of_genericFibreRestrict_comp_eq_mul
Source context 10 commands
Surrounding namespaces, section variables, and local commands at this declaration.
@[expose] public section
open CategoryTheory CategoryTheory.Limits Opposite AlgebraicGeometry NeronModelInfra
GoodReductionJacobian TopologicalSpace Topology
open scoped TensorProduct
open GoodReductionJacobian.AbelianSchemePropertyBundle.NGlue
(specGenericFibreInclusion_base_ne_closedPoint)
attribute [local instance] AlgebraicGeometry.Scheme.Hom.kaehlerPresheafModule
universe u
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_NeronModelInfra_exists_n_eq_and_formallySmooth_stalk_of_isOmegaMinimal_of_genericFibreRestrict_comp_eq_mul.lean
Upstream NOTICE: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/NOTICE
Upstream per-file ATTRIBUTION: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/ATTRIBUTION.md
Copies of these notices are retained in the AbelianVarieties directory.
Existing upstream author/copyright comments in the source are retained below.
Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace NeronModelInfra
open AbelianVarieties.NOSProofs.MinimalComponentSmoothness
open NeronModelInfra.MinimalComponentData
(exists_ringHom_stalk_chart_comp_eq_pointGenericFibre_of_forall_specializes)
Lean source · full declarationtheorem
exists_n_eq_and_formallySmooth_stalk_of_isOmegaMinimal_of_genericFibreRestrict_comp_eq_mul
{R : Type u} [CommRing R] [IsDomain R] [IsDiscreteValuationRing R]
(K : Type u) [Field K] [Algebra R K] [IsFractionRing R K]
{XK : Scheme.{u}} {gK : XK ⟶ Spec (CommRingCat.of K)}
[Smooth gK] [IsSeparated gK] [LocallyOfFiniteType gK] [QuasiCompact gK]
(LXK : RelativeGroupLaw K gK)
(d : ℕ) [SmoothOfRelativeDimension d gK]
(ω : Γ(gK.topDifferentials d, ⊤)) (hωframe : Scheme.Modules.IsFrameOn ω ⊤)
(hleft : (∀ (L F : Type u) [Field L] [Field F] [Algebra K L] [Algebra L F] [Algebra K F]
[IsScalarTower K L F]
(a : SchemeHomOver (Spec.map (CommRingCat.ofHom (algebraMap K L))) gK)
(x : SchemeHomOver (Spec.map (CommRingCat.ofHom (algebraMap K F))) gK)
(U' U'' : XK.Opens) (hU' : IsAffineOpen U') (hU'' : IsAffineOpen U'')
[Algebra Γ(XK, U') F] [Algebra Γ(XK, U'') F],
let : Algebra K Γ(XK, U') := gK.sectionsAlgebra U'
let : Algebra K Γ(XK, U'') := gK.sectionsAlgebra U''
∀ [IsScalarTower K Γ(XK, U') F] [IsScalarTower K Γ(XK, U'') F],
Spec.map (CommRingCat.ofHom (algebraMap Γ(XK, U') F)) ≫ hU'.fromSpec = x.1 →
Spec.map (CommRingCat.ofHom (algebraMap Γ(XK, U'') F)) ≫ hU''.fromSpec =
(LXK.mul (Spec.map (CommRingCat.ofHom (algebraMap K F)))
⟨Spec.map (CommRingCat.ofHom (algebraMap L F)) ≫ a.1, by
rw [Category.assoc, a.2, ← Spec.map_comp, ← CommRingCat.ofHom_comp,
← IsScalarTower.algebraMap_eq]⟩ x).1 →
∀ (ω' : ⋀[Γ(XK, U')]^d (gK.kaehlerPresheaf.obj (op U')))
(ω'' : ⋀[Γ(XK, U'')]^d (gK.kaehlerPresheaf.obj (op U''))),
gK.topToSections d U' ω' = (gK.topDifferentials d).presheaf.map (homOfLE le_top).op ω →
gK.topToSections d U'' ω'' = (gK.topDifferentials d).presheaf.map (homOfLE le_top).op ω →
TopFormOrder.topFormMap K L Γ(XK, U'') F d ω'' = TopFormOrder.topFormMap K L Γ(XK, U') F
d ω'))
(D : MinimalComponentData R K gK d ω) (hD : D.IsOmegaMinimal)
(X : Scheme.{u}) (f : X ⟶ Spec (CommRingCat.of R))
(e : SchemeHomOver (pullback.snd f (specGenericFibreInclusion R K)) gK)
(V : ∀ c : D.ι, ((D.C c).Y).Opens) (j : ∀ c : D.ι, SchemeHomOver ((V c).ι ≫ (D.C c).f) f)
[Smooth f] [IsSeparated f] [LocallyOfFiniteType f] [QuasiCompact f] [IsIso e.1]
(hyV : ∀ c, (D.C c).y ∈ V c)
(hVK : ∀ c (y' : ↥(D.C c).Y), (D.C c).f.base y' ≠ IsLocalRing.closedPoint R → y' ∈ V c)
(hjopen : ∀ c, IsOpenImmersion (j c).1)
(hjchart : ∀ c, (genericFibreRestrict R K f ((V c).ι ≫ (D.C c).f) (j c)).1 ≫ e.1 =
(genericFibreRestrict R K (D.C c).f ((V c).ι ≫ (D.C c).f) ⟨(V c).ι, rfl⟩).1 ≫ (D.C c).e.1)
(hcover : ∀ x : ↥X, ∃ c, x ∈ Set.range (j c).1.base)
(Z : Scheme.{u}) (z : Z ⟶ Spec (CommRingCat.of R)) [Smooth z] [QuasiCompact z]
(uK : SchemeHomOver (pullback.snd z (specGenericFibreInclusion R K)) gK)
(η : ↑(pullback z f)) (hη : (pullback.fst z f ≫ z).base η = IsLocalRing.closedPoint R)
(hmax : ∀ y : ↑(pullback z f), y ⤳ η → (pullback.fst z f ≫ z).base y = IsLocalRing.closedPoint
R → y = η)
(T : ComponentReading R K gK d ω)
(U₀ : (pullback z f).Opens) (hηU : η ∈ U₀) (τ₀ : SchemeHomOver (U₀.ι ≫ pullback.fst z f ≫ z)
T.f)
(hτ₀ : (NeronModelInfra.schemeHomOverComp
(genericFibreRestrict R K T.f (U₀.ι ≫ pullback.fst z f ≫ z) τ₀) T.e).1 =
pullback.map (U₀.ι ≫ pullback.fst z f ≫ z) (specGenericFibreInclusion R K)
(pullback.fst z f ≫ z) (specGenericFibreInclusion R K) U₀.ι (𝟙 _) (𝟙 _)
(Category.comp_id _) ((Category.comp_id _).trans (Category.id_comp _).symm) ≫
(LXK.mul (pullback.snd (pullback.fst z f ≫ z) (specGenericFibreInclusion R K))
(NeronModelInfra.schemeHomOverComp
(genericFibreRestrict R K z (pullback.fst z f ≫ z) ⟨pullback.fst z f, rfl⟩) uK)
(NeronModelInfra.schemeHomOverComp
(genericFibreRestrict R K f (pullback.fst z f ≫ z)
⟨pullback.snd z f, pullback.condition.symm⟩) e)).1)
(v : (U₀ : Scheme.{u}) ⟶ pullback z T.f) (hv₁ : v ≫ pullback.fst z T.f = U₀.ι ≫ pullback.fst z
f)
(hv₂ : v ≫ pullback.snd z T.f = τ₀.1)
(hgen : T.y ⤳ τ₀.1.base ⟨η, hηU⟩) :
(∃ c : D.ι, T.n = (D.C c).n) ∧
let : Algebra ((pullback z T.f).presheaf.stalk (v.base ⟨η, hηU⟩)) ((U₀ :
Scheme.{u}).presheaf.stalk ⟨η, hηU⟩) := (v.stalkMap ⟨η, hηU⟩).hom.toAlgebra
Algebra.FormallySmooth ((pullback z T.f).presheaf.stalk (v.base ⟨η, hηU⟩)) ((U₀ :
Scheme.{u}).presheaf.stalk ⟨η, hηU⟩) := by
classical
have : Smooth (pullback.fst z f) := inferInstance
let ηU : (U₀ : Scheme.{u}) := ⟨η, hηU⟩
let η' : ↥(pullback z T.f) := v.base ηU
let ζ₀ : ↥Z := (pullback.fst z T.f).base η'
have hζ₀ : (U₀.ι ≫ pullback.fst z f).base ηU = ζ₀ := by
change (U₀.ι ≫ pullback.fst z f).base ηU = (v ≫ pullback.fst z T.f).base ηU
rw [hv₁]
let algR'O' : Algebra (Z.presheaf.stalk ζ₀) ((pullback z T.f).presheaf.stalk η') :=
((pullback.fst z T.f).stalkMap η').hom.toAlgebra
let algO'O : Algebra ((pullback z T.f).presheaf.stalk η') ((U₀ : Scheme.{u}).presheaf.stalk ηU) :=
(v.stalkMap ηU).hom.toAlgebra
let algR'O : Algebra (Z.presheaf.stalk ζ₀) ((U₀ : Scheme.{u}).presheaf.stalk ηU) :=
((v.stalkMap ηU).hom.comp ((pullback.fst z T.f).stalkMap η').hom).toAlgebra
have : IsScalarTower (Z.presheaf.stalk ζ₀) ((pullback z T.f).presheaf.stalk η')
((U₀ : Scheme.{u}).presheaf.stalk ηU) := IsScalarTower.of_algebraMap_eq (fun _ => rfl)
have hFS : Algebra.FormallySmooth (Z.presheaf.stalk ζ₀) ((U₀ : Scheme.{u}).presheaf.stalk
ηU) := by
have : Smooth (v ≫ pullback.fst z T.f) := by rw [hv₁]; infer_instance
have hmem : ηU ∈ (v ≫ pullback.fst z T.f).smoothLocus := by
rw [Scheme.Hom.smoothLocus_eq_top]; trivial
have hfs : ((v ≫ pullback.fst z T.f).stalkMap ηU).hom.FormallySmooth :=
(Scheme.Hom.mem_smoothLocus).mp hmem
rw [Scheme.Hom.stalkMap_comp] at hfs
exact hfs
have hmain : (∃ c : D.ι, T.n = (D.C c).n) ∧
Function.Bijective (KaehlerDifferential.mapBaseChange (Z.presheaf.stalk ζ₀)
((pullback z T.f).presheaf.stalk η') ((U₀ : Scheme.{u}).presheaf.stalk ηU)) := by
let y₁ : ↥T.Y := (pullback.snd z T.f).base η'
have hy₁ : τ₀.1.base ηU = y₁ := by
change τ₀.1.base ηU = (v ≫ pullback.snd z T.f).base ηU
rw [hv₂]
have hgen₁ : T.y ⤳ y₁ := hy₁ ▸ hgen
have hmaxU : ∀ y : (U₀ : Scheme.{u}), y ⤳ ηU → (U₀.ι ≫ pullback.fst z f ≫ z).base y =
IsLocalRing.closedPoint R → y = ηU := by
intro y hy hsp
apply Subtype.ext
exact hmax (U₀.ι.base y) (hy.map U₀.ι.base.hom.continuous) hsp
have e₁ : v ≫ pullback.snd z T.f ≫ T.f = U₀.ι ≫ pullback.fst z f ≫ z := by
rw [← pullback.condition, ← Category.assoc, hv₁, Category.assoc]
have e₂ : (U₀.ι ≫ pullback.snd z f) ≫ f = U₀.ι ≫ pullback.fst z f ≫ z := by
rw [Category.assoc, ← pullback.condition]
have e₃ : (v ≫ pullback.fst z T.f) ≫ z = U₀.ι ≫ pullback.fst z f ≫ z := by
rw [hv₁, Category.assoc]
have hηsp : (U₀.ι ≫ pullback.fst z f ≫ z).base ηU = IsLocalRing.closedPoint R := hη
have hy₁sp : T.f.base y₁ = IsLocalRing.closedPoint R := by
have h := congrArg (fun φ => φ.base ηU) e₁
simp only [Scheme.Hom.comp_base, TopCat.comp_app] at h
rw [← hηsp]; exact h
have hξsp : f.base ((pullback.snd z f).base (U₀.ι.base ηU)) = IsLocalRing.closedPoint R := by
have h := congrArg (fun φ => φ.base ηU) e₂
simp only [Scheme.Hom.comp_base, TopCat.comp_app] at h
rw [← hηsp]; exact h
have hζ₀sp : z.base ζ₀ = IsLocalRing.closedPoint R := by
have h := congrArg (fun φ => φ.base ηU) e₃
simp only [Scheme.Hom.comp_base, TopCat.comp_app] at h
rw [← hηsp]; exact h
have hξmax : ∀ y : ↥X, y ⤳ ((pullback.snd z f).base (U₀.ι.base ηU)) → f.base y =
IsLocalRing.closedPoint R → y = ((pullback.snd z f).base (U₀.ι.base ηU)) := by
intro y hy hysp
have hy2 : y ⤳ (U₀.ι ≫ pullback.snd z f).base ηU := hy
obtain ⟨y', hy', rfl⟩ := Flat.generalizingMap (U₀.ι ≫ pullback.snd z f) hy2
have hsp' : (U₀.ι ≫ pullback.fst z f ≫ z).base y' = IsLocalRing.closedPoint R := by
rw [← e₂, Scheme.Hom.comp_apply]; exact hysp
rw [hmaxU y' hy' hsp']
rfl
have hζ₀max : ∀ y : ↥Z, y ⤳ ζ₀ → z.base y = IsLocalRing.closedPoint R → y = ζ₀ := by
intro y hy hysp
have hy2 : y ⤳ (U₀.ι ≫ pullback.fst z f).base ηU := by rw [hζ₀]; exact hy
obtain ⟨y', hy', rfl⟩ := Flat.generalizingMap (U₀.ι ≫ pullback.fst z f) hy2
have hsp' : (U₀.ι ≫ pullback.fst z f ≫ z).base y' = IsLocalRing.closedPoint R := by
rw [← Category.assoc, Scheme.Hom.comp_apply]; exact hysp
rw [hmaxU y' hy' hsp']
exact hζ₀
let algRR' : Algebra R (Z.presheaf.stalk ζ₀) := stalkAlgebra z ζ₀
have halgZ : Z.fromSpecStalk ζ₀ ≫ z = Spec.map (CommRingCat.ofHom (algebraMap R
(Z.presheaf.stalk ζ₀))) :=
fromSpecStalk_comp_eq_specMap_algebraMap_stalkAlgebra z ζ₀
let algRO' : Algebra R ((pullback z T.f).presheaf.stalk η') := ((algebraMap (Z.presheaf.stalk
ζ₀) ((pullback z T.f).presheaf.stalk η')).comp (algebraMap R (Z.presheaf.stalk ζ₀))).toAlgebra
let algRO : Algebra R ((U₀ : Scheme.{u}).presheaf.stalk ηU) := ((algebraMap (Z.presheaf.stalk
ζ₀) ((U₀ : Scheme.{u}).presheaf.stalk ηU)).comp (algebraMap R (Z.presheaf.stalk
ζ₀))).toAlgebra
have : IsScalarTower R (Z.presheaf.stalk ζ₀) ((pullback z T.f).presheaf.stalk η') :=
IsScalarTower.of_algebraMap_eq (fun _ => rfl)
have : IsScalarTower R (Z.presheaf.stalk ζ₀) ((U₀ : Scheme.{u}).presheaf.stalk ηU) :=
IsScalarTower.of_algebraMap_eq (fun _ => rfl)
have : IsScalarTower R ((pullback z T.f).presheaf.stalk η') ((U₀ : Scheme.{u}).presheaf.stalk
ηU) := IsScalarTower.of_algebraMap_eq (fun _ => rfl)
have hmap : algebraMap R ((U₀ : Scheme.{u}).presheaf.stalk ηU) = stalkAlgebraMap (U₀.ι ≫
pullback.fst z f ≫ z) ηU := by
change ((v.stalkMap ηU).hom.comp ((pullback.fst z T.f).stalkMap η').hom).comp
(stalkAlgebraMap z ζ₀) = _
rw [RingHom.comp_assoc, stalkAlgebraMap_comp', stalkAlgebraMap_comp', ← Category.assoc, hv₁,
Category.assoc]
have halgO : (U₀ : Scheme.{u}).fromSpecStalk ηU ≫ (U₀.ι ≫ pullback.fst z f ≫ z) =
Spec.map (CommRingCat.ofHom (algebraMap R ((U₀ : Scheme.{u}).presheaf.stalk ηU))) := by
rw [hmap]
exact fromSpecStalk_comp_eq_specMap_algebraMap_stalkAlgebra (U₀.ι ≫ pullback.fst z f ≫ z) ηU
let algRO₁ : Algebra R (T.Y.presheaf.stalk y₁) := stalkAlgebra T.f y₁
have halg₁ : T.Y.fromSpecStalk y₁ ≫ T.f = Spec.map (CommRingCat.ofHom (algebraMap R
(T.Y.presheaf.stalk y₁))) :=
fromSpecStalk_comp_eq_specMap_algebraMap_stalkAlgebra T.f y₁
let algO₁O' : Algebra (T.Y.presheaf.stalk y₁) ((pullback z T.f).presheaf.stalk η') :=
((pullback.snd z T.f).stalkMap η').hom.toAlgebra
have : IsScalarTower R (T.Y.presheaf.stalk y₁) ((pullback z T.f).presheaf.stalk η') :=
IsScalarTower.of_algebraMap_eq (fun r => by
change ((pullback.fst z T.f).stalkMap η').hom (stalkAlgebraMap z ζ₀ r) =
((pullback.snd z T.f).stalkMap η').hom (stalkAlgebraMap T.f y₁ r)
rw [← RingHom.comp_apply, ← RingHom.comp_apply, stalkAlgebraMap_comp',
stalkAlgebraMap_comp', pullback.condition])
let algO₁O : Algebra (T.Y.presheaf.stalk y₁) ((U₀ : Scheme.{u}).presheaf.stalk ηU) :=
((algebraMap ((pullback z T.f).presheaf.stalk η') ((U₀ : Scheme.{u}).presheaf.stalk
ηU)).comp (algebraMap (T.Y.presheaf.stalk y₁) ((pullback z T.f).presheaf.stalk η'))).toAlgebra
have : IsScalarTower (T.Y.presheaf.stalk y₁) ((pullback z T.f).presheaf.stalk η') ((U₀ :
Scheme.{u}).presheaf.stalk ηU) := IsScalarTower.of_algebraMap_eq (fun _ => rfl)
have : IsScalarTower R (T.Y.presheaf.stalk y₁) ((U₀ : Scheme.{u}).presheaf.stalk ηU) :=
IsScalarTower.of_algebraMap_eq (fun x => by
change _ = algebraMap ((pullback z T.f).presheaf.stalk η') ((U₀ : Scheme.{u}).presheaf.stalk
ηU) (algebraMap (T.Y.presheaf.stalk y₁) ((pullback z T.f).presheaf.stalk η') (algebraMap R
(T.Y.presheaf.stalk y₁) x))
rw [← IsScalarTower.algebraMap_apply R (T.Y.presheaf.stalk y₁) ((pullback z
T.f).presheaf.stalk η'), ← IsScalarTower.algebraMap_apply R ((pullback z
T.f).presheaf.stalk η') ((U₀ : Scheme.{u}).presheaf.stalk ηU)])
let algRX : Algebra R (X.presheaf.stalk ((pullback.snd z f).base (U₀.ι.base ηU))) :=
stalkAlgebra f ((pullback.snd z f).base (U₀.ι.base ηU))
have halgX : X.fromSpecStalk ((pullback.snd z f).base (U₀.ι.base ηU)) ≫ f = Spec.map
(CommRingCat.ofHom (algebraMap R (X.presheaf.stalk ((pullback.snd z f).base (U₀.ι.base
ηU))))) :=
fromSpecStalk_comp_eq_specMap_algebraMap_stalkAlgebra f ((pullback.snd z f).base (U₀.ι.base
ηU))
let algXO : Algebra (X.presheaf.stalk ((pullback.snd z f).base (U₀.ι.base ηU))) ((U₀ :
Scheme.{u}).presheaf.stalk ηU) := ((U₀.ι ≫ pullback.snd z f).stalkMap ηU).hom.toAlgebra
have hpin2 : ((U₀.ι ≫ pullback.snd z f).stalkMap ηU).hom.comp (stalkAlgebraMap f
((pullback.snd z f).base (U₀.ι.base ηU))) =
stalkAlgebraMap (U₀.ι ≫ pullback.fst z f ≫ z) ηU := by
have h := stalkAlgebraMap_comp' (U₀.ι ≫ pullback.snd z f) f ηU
rw [Category.assoc, ← pullback.condition] at h
exact h
have : IsScalarTower R (X.presheaf.stalk ((pullback.snd z f).base (U₀.ι.base ηU))) ((U₀ :
Scheme.{u}).presheaf.stalk ηU) := IsScalarTower.of_algebraMap_eq (fun r =>
(RingHom.congr_fun hmap r).trans (RingHom.congr_fun hpin2 r).symm)
obtain ⟨hdomO, hdomO', hfrac⟩ :=
NeronModelInfra.isFractionRing_stalk_of_genericFibreRestrict_comp_eq_mul_of_pullback_lift
K LXK d ω X f e Z z uK η T U₀ hηU τ₀ hτ₀ v hv₁ hv₂
obtain ⟨_hdomO, hdvrO, hlocO, hidxO⟩ :=
NeronModelInfra.isIndexOneExtension_stalk_of_smooth_of_forall_specializes (U₀.ι ≫
pullback.fst z f ≫ z) ηU
hη hmaxU halgO
have : IsDiscreteValuationRing ((U₀ : Scheme.{u}).presheaf.stalk ηU) := hdvrO
obtain ⟨hdomR', hdvrR', hlocR', hidxR'⟩ :=
NeronModelInfra.isIndexOneExtension_stalk_of_smooth_of_forall_specializes z ζ₀ hζ₀sp hζ₀max
halgZ
have : IsLocalHom (algebraMap (Z.presheaf.stalk ζ₀) ((U₀ : Scheme.{u}).presheaf.stalk ηU)) :=
RingHom.isLocalHom_comp (v.stalkMap ηU).hom ((pullback.fst z T.f).stalkMap η').hom
have hO : Ideal.map (algebraMap (Z.presheaf.stalk ζ₀) ((U₀ : Scheme.{u}).presheaf.stalk ηU))
(IsLocalRing.maximalIdeal _) = IsLocalRing.maximalIdeal _ := by
rw [← hidxR'.map_maximalIdeal, Ideal.map_map]
exact hidxO.map_maximalIdeal
obtain ⟨ϖ, hϖirr⟩ := IsDiscreteValuationRing.exists_irreducible R
have hϖ : IsLocalRing.maximalIdeal R = Ideal.span {ϖ} :=
(IsDiscreteValuationRing.irreducible_iff_uniformizer ϖ).mp hϖirr
have hϖO : algebraMap R ((U₀ : Scheme.{u}).presheaf.stalk ηU) ϖ ≠ 0 :=
ValuationMaps.map_uniformizer_ne_zero _ ϖ hϖ hidxO.map_maximalIdeal
have hϖR' : algebraMap R (Z.presheaf.stalk ζ₀) ϖ ≠ 0 := ValuationMaps.map_uniformizer_ne_zero
_ ϖ hϖ hidxR'.map_maximalIdeal
have hinjRO : Function.Injective (algebraMap R ((U₀ : Scheme.{u}).presheaf.stalk ηU)) :=
ValuationMaps.injective_of_map_irreducible_ne_zero _ ϖ hϖirr hϖO
have hinjRR' : Function.Injective (algebraMap R (Z.presheaf.stalk ζ₀)) :=
ValuationMaps.injective_of_map_irreducible_ne_zero _ ϖ hϖirr hϖR'
have hinjR'O : Function.Injective (algebraMap (Z.presheaf.stalk ζ₀) ((U₀ :
Scheme.{u}).presheaf.stalk ηU)) :=
ValuationMaps.injective_of_map_irreducible_ne_zero _ (algebraMap R (Z.presheaf.stalk ζ₀) ϖ)
((IsDiscreteValuationRing.irreducible_iff_uniformizer _).mpr
(ValuationMaps.maximalIdeal_eq_span_map _ ϖ hϖ hidxR'.map_maximalIdeal))
(by rw [← IsScalarTower.algebraMap_apply R (Z.presheaf.stalk ζ₀) ((U₀ :
Scheme.{u}).presheaf.stalk ηU)]; exact hϖO)
have hinjXO : Function.Injective (algebraMap (X.presheaf.stalk ((pullback.snd z f).base
(U₀.ι.base ηU))) ((U₀ : Scheme.{u}).presheaf.stalk ηU)) := by
obtain ⟨hdomX, hdvrX, hlocX, hidxX⟩ :=
NeronModelInfra.isIndexOneExtension_stalk_of_smooth_of_forall_specializes f ((pullback.snd
z f).base (U₀.ι.base ηU)) hξsp hξmax halgX
exact ValuationMaps.injective_of_map_irreducible_ne_zero _ (algebraMap R (X.presheaf.stalk
((pullback.snd z f).base (U₀.ι.base ηU))) ϖ)
((IsDiscreteValuationRing.irreducible_iff_uniformizer _).mpr
(ValuationMaps.maximalIdeal_eq_span_map _ ϖ hϖ hidxX.map_maximalIdeal))
(by rw [← IsScalarTower.algebraMap_apply R (X.presheaf.stalk ((pullback.snd z f).base
(U₀.ι.base ηU))) ((U₀ : Scheme.{u}).presheaf.stalk ηU)]; exact hϖO)
let F := FractionRing ((U₀ : Scheme.{u}).presheaf.stalk ηU)
have : IsScalarTower (Z.presheaf.stalk ζ₀) ((pullback z T.f).presheaf.stalk η') F :=
IsScalarTower.of_algebraMap_eq (fun x => by
rw [IsScalarTower.algebraMap_apply ((pullback z T.f).presheaf.stalk η') ((U₀ :
Scheme.{u}).presheaf.stalk ηU) F, IsScalarTower.algebraMap_apply (Z.presheaf.stalk ζ₀)
((U₀ : Scheme.{u}).presheaf.stalk ηU) F,
← IsScalarTower.algebraMap_apply (Z.presheaf.stalk ζ₀) ((pullback z T.f).presheaf.stalk
η') ((U₀ : Scheme.{u}).presheaf.stalk ηU)])
have : IsScalarTower R (Z.presheaf.stalk ζ₀) F := IsScalarTower.of_algebraMap_eq (fun x => by
rw [IsScalarTower.algebraMap_apply (Z.presheaf.stalk ζ₀) ((U₀ : Scheme.{u}).presheaf.stalk
ηU) F, IsScalarTower.algebraMap_apply R ((U₀ : Scheme.{u}).presheaf.stalk ηU) F,
← IsScalarTower.algebraMap_apply R (Z.presheaf.stalk ζ₀) ((U₀ : Scheme.{u}).presheaf.stalk
ηU)])
have : IsScalarTower R (T.Y.presheaf.stalk y₁) F := IsScalarTower.of_algebraMap_eq (fun x => by
rw [IsScalarTower.algebraMap_apply (T.Y.presheaf.stalk y₁) ((U₀ : Scheme.{u}).presheaf.stalk
ηU) F, IsScalarTower.algebraMap_apply R ((U₀ : Scheme.{u}).presheaf.stalk ηU) F,
← IsScalarTower.algebraMap_apply R (T.Y.presheaf.stalk y₁) ((U₀ :
Scheme.{u}).presheaf.stalk ηU)])
have : IsScalarTower R (X.presheaf.stalk ((pullback.snd z f).base (U₀.ι.base ηU))) F :=
IsScalarTower.of_algebraMap_eq (fun x => by
rw [IsScalarTower.algebraMap_apply (X.presheaf.stalk ((pullback.snd z f).base (U₀.ι.base
ηU))) ((U₀ : Scheme.{u}).presheaf.stalk ηU) F, IsScalarTower.algebraMap_apply R ((U₀ :
Scheme.{u}).presheaf.stalk ηU) F,
← IsScalarTower.algebraMap_apply R (X.presheaf.stalk ((pullback.snd z f).base (U₀.ι.base
ηU))) ((U₀ : Scheme.{u}).presheaf.stalk ηU)])
have : FaithfulSMul R F := (faithfulSMul_iff_algebraMap_injective R F).mpr (by
rw [IsScalarTower.algebraMap_eq R ((U₀ : Scheme.{u}).presheaf.stalk ηU) F]; exact
(IsFractionRing.injective ((U₀ : Scheme.{u}).presheaf.stalk ηU) F).comp hinjRO)
let algKF : Algebra K F := (IsFractionRing.lift (g := algebraMap R F)
(FaithfulSMul.algebraMap_injective R F)).toAlgebra
have : IsScalarTower R K F := IsScalarTower.of_algebraMap_eq (fun x =>
(IsFractionRing.lift_algebraMap (FaithfulSMul.algebraMap_injective R F) x).symm)
let K' := FractionRing (Z.presheaf.stalk ζ₀)
have : FaithfulSMul R K' := (faithfulSMul_iff_algebraMap_injective R K').mpr (by
rw [IsScalarTower.algebraMap_eq R (Z.presheaf.stalk ζ₀) K']; exact (IsFractionRing.injective
(Z.presheaf.stalk ζ₀) K').comp hinjRR')
let algKK' : Algebra K K' := (IsFractionRing.lift (g := algebraMap R K')
(FaithfulSMul.algebraMap_injective R K')).toAlgebra
have : IsScalarTower R K K' := IsScalarTower.of_algebraMap_eq (fun x =>
(IsFractionRing.lift_algebraMap (FaithfulSMul.algebraMap_injective R K') x).symm)
have : FaithfulSMul (Z.presheaf.stalk ζ₀) F := (faithfulSMul_iff_algebraMap_injective
(Z.presheaf.stalk ζ₀) F).mpr (by
rw [IsScalarTower.algebraMap_eq (Z.presheaf.stalk ζ₀) ((U₀ : Scheme.{u}).presheaf.stalk ηU)
F]; exact (IsFractionRing.injective ((U₀ : Scheme.{u}).presheaf.stalk ηU) F).comp hinjR'O)
let algK'F : Algebra K' F := FractionRing.liftAlgebra (Z.presheaf.stalk ζ₀) F
have : IsScalarTower (Z.presheaf.stalk ζ₀) K' F := FractionRing.isScalarTower_liftAlgebra
(Z.presheaf.stalk ζ₀) F
have : IsScalarTower R K' F := IsScalarTower.of_algebraMap_eq (fun r => by
rw [IsScalarTower.algebraMap_apply R (Z.presheaf.stalk ζ₀) K' r, ←
IsScalarTower.algebraMap_apply (Z.presheaf.stalk ζ₀) K' F,
← IsScalarTower.algebraMap_apply R (Z.presheaf.stalk ζ₀) F])
have towKK'F : IsScalarTower K K' F := IsScalarTower.of_algebraMap_eq (fun x => by
have h : (algebraMap K' F).comp (algebraMap K K') = algebraMap K F :=
IsLocalization.ringHom_ext (nonZeroDivisors R) (by
ext r
simp only [RingHom.comp_apply]
rw [← IsScalarTower.algebraMap_apply R K K', ← IsScalarTower.algebraMap_apply R K' F,
← IsScalarTower.algebraMap_apply R K F])
exact (RingHom.congr_fun h x).symm)
have hbc' :=
AlgebraicGeometry.bijective_kaehlerDifferential_map_comp_mapBaseChange_stalk_pullback T.f z
η' halgZ halg₁
have hRO : algebraMap (Z.presheaf.stalk ζ₀) F = (algebraMap ((U₀ : Scheme.{u}).presheaf.stalk
ηU) F).comp ((v.stalkMap ηU).hom.comp ((pullback.fst z T.f).stalkMap η').hom) := by
rw [IsScalarTower.algebraMap_eq (Z.presheaf.stalk ζ₀) ((U₀ : Scheme.{u}).presheaf.stalk ηU)
F]; rfl
have hτF : algebraMap (T.Y.presheaf.stalk y₁) F = (algebraMap ((U₀ :
Scheme.{u}).presheaf.stalk ηU) F).comp ((v.stalkMap ηU).hom.comp ((pullback.snd z
T.f).stalkMap η').hom) := by
rw [IsScalarTower.algebraMap_eq (T.Y.presheaf.stalk y₁) ((U₀ : Scheme.{u}).presheaf.stalk
ηU) F]; rfl
have htrans :=
mul_pointGenericFibre_eq_pointGenericFibre_comp_chart_of_genericFibreRestrict_comp_eq_mul
K LXK d ω X f e Z z uK η T U₀ hηU τ₀ hτ₀ v hv₁ hv₂ halgZ halgO halg₁ K' F hRO hτF
obtain ⟨U'', hU'', algU'', hKU'', hx'', ωU'', hωU''⟩ : ∃ (U'' : XK.Opens) (hU'' : IsAffineOpen
U'')
(algU'' : Algebra Γ(XK, U'') F) (_ : let : Algebra K Γ(XK, U'') := gK.sectionsAlgebra U'';
IsScalarTower K Γ(XK, U'') F)
(_ : Spec.map (CommRingCat.ofHom (algebraMap Γ(XK, U'') F)) ≫ hU''.fromSpec =
(NeronModelInfra.schemeHomOverComp
(pointGenericFibre (K := K) (K' := F)
(⟨T.Y.fromSpecStalk y₁, halg₁⟩ : SchemeHomOver (Spec.map (CommRingCat.ofHom
(algebraMap R (T.Y.presheaf.stalk y₁)))) T.f))
T.e).1)
(ωU'' : ⋀[Γ(XK, U'')]^d (gK.kaehlerPresheaf.obj (op U''))),
gK.topToSections d U'' ωU'' = (gK.topDifferentials d).presheaf.map (homOfLE le_top).op ω
:= by
exact StalkCharts.exists_affine_chart_of_point gK d ω F _
(NeronModelInfra.schemeHomOverComp
(pointGenericFibre (K := K) (K' := F)
(⟨T.Y.fromSpecStalk y₁, halg₁⟩ :
SchemeHomOver (Spec.map (CommRingCat.ofHom (algebraMap R (T.Y.presheaf.stalk y₁))))
T.f))
T.e).2
obtain ⟨b₁, w₁, hread⟩ :=
NeronModelInfra.ComponentReading.exists_basis_units_topFormMap_eq_mul_zpow_smul_of_specializes
ϖ hϖ K hωframe T y₁ hy₁sp hgen₁ halg₁ F U'' hU'' hKU'' hx'' ωU'' hωU''
obtain ⟨c, φ, hc, hφbij, hφloc, hφR, algF₀F, hTowO₀, hTowK, hxX⟩ :=
exists_ringHom_stalk_chart_comp_eq_pointGenericFibre_of_forall_specializes
K d ω D X f e V j hyV hVK hjopen hjchart hcover
((pullback.snd z f).base (U₀.ι.base ηU)) hξsp hξmax halgX F
(by rw [IsScalarTower.algebraMap_eq (X.presheaf.stalk ((pullback.snd z f).base (U₀.ι.base
ηU))) ((U₀ : Scheme.{u}).presheaf.stalk ηU) F]; exact (IsFractionRing.injective ((U₀ :
Scheme.{u}).presheaf.stalk ηU) F).comp hinjXO)
let : Algebra R ((D.C c).Y.presheaf.stalk (D.C c).y) := (D.C c).algebra
let : Algebra K (FractionRing ((D.C c).Y.presheaf.stalk (D.C c).y)) := (D.C c).algebraK
have : IsScalarTower R K (FractionRing ((D.C c).Y.presheaf.stalk (D.C c).y)) := (D.C
c).isScalarTower
let algO₀O : Algebra ((D.C c).Y.presheaf.stalk (D.C c).y) ((U₀ : Scheme.{u}).presheaf.stalk
ηU) := ((algebraMap (X.presheaf.stalk ((pullback.snd z f).base (U₀.ι.base ηU))) ((U₀ :
Scheme.{u}).presheaf.stalk ηU)).comp φ).toAlgebra
have : IsScalarTower ((D.C c).Y.presheaf.stalk (D.C c).y) (FractionRing ((D.C
c).Y.presheaf.stalk (D.C c).y)) F := IsScalarTower.of_algebraMap_eq (fun x => by
have h := @IsScalarTower.algebraMap_apply ((D.C c).Y.presheaf.stalk (D.C c).y) (FractionRing
((D.C c).Y.presheaf.stalk (D.C c).y)) F _ _ _ _ _ (((algebraMap (X.presheaf.stalk
((pullback.snd z f).base (U₀.ι.base ηU))) F).comp φ).toAlgebra) hTowO₀ x
rw [← h, IsScalarTower.algebraMap_apply ((D.C c).Y.presheaf.stalk (D.C c).y) ((U₀ :
Scheme.{u}).presheaf.stalk ηU) F x]
change _ = (algebraMap (X.presheaf.stalk ((pullback.snd z f).base (U₀.ι.base ηU))) F) (φ x)
rw [IsScalarTower.algebraMap_apply (X.presheaf.stalk ((pullback.snd z f).base (U₀.ι.base
ηU))) ((U₀ : Scheme.{u}).presheaf.stalk ηU) F (φ x)]
rfl)
have : IsScalarTower R ((D.C c).Y.presheaf.stalk (D.C c).y) ((U₀ : Scheme.{u}).presheaf.stalk
ηU) := IsScalarTower.of_algebraMap_eq (fun r => by
change algebraMap R ((U₀ : Scheme.{u}).presheaf.stalk ηU) r = algebraMap (X.presheaf.stalk
((pullback.snd z f).base (U₀.ι.base ηU))) ((U₀ : Scheme.{u}).presheaf.stalk ηU) (φ
(algebraMap R ((D.C c).Y.presheaf.stalk (D.C c).y) r))
rw [← RingHom.comp_apply φ, hφR, ← IsScalarTower.algebraMap_apply R (X.presheaf.stalk
((pullback.snd z f).base (U₀.ι.base ηU))) ((U₀ : Scheme.{u}).presheaf.stalk ηU)])
have : IsScalarTower R ((D.C c).Y.presheaf.stalk (D.C c).y) F :=
IsScalarTower.of_algebraMap_eq (fun x => by
rw [IsScalarTower.algebraMap_apply ((D.C c).Y.presheaf.stalk (D.C c).y) ((U₀ :
Scheme.{u}).presheaf.stalk ηU) F, IsScalarTower.algebraMap_apply R ((U₀ :
Scheme.{u}).presheaf.stalk ηU) F,
← IsScalarTower.algebraMap_apply R ((D.C c).Y.presheaf.stalk (D.C c).y) ((U₀ :
Scheme.{u}).presheaf.stalk ηU)])
have : IsLocalHom (algebraMap ((D.C c).Y.presheaf.stalk (D.C c).y) ((U₀ :
Scheme.{u}).presheaf.stalk ηU)) :=
@RingHom.isLocalHom_comp _ _ _ _ _ _ ((U₀.ι ≫ pullback.snd z f).stalkMap ηU).hom φ
inferInstance hφloc
have : IsScalarTower K (FractionRing ((D.C c).Y.presheaf.stalk (D.C c).y)) F := hTowK
have : Smooth (D.C c).f := (D.C c).smooth
obtain ⟨-, -, hlocO₀, hidxO₀⟩ :=
NeronModelInfra.isIndexOneExtension_stalk_of_smooth_of_forall_specializes (D.C c).f (D.C
c).y (D.C c).hy
(D.C c).hmax (D.C c).halg
have hbc : Function.Bijective
((KaehlerDifferential.map R (Z.presheaf.stalk ζ₀) ((U₀ : Scheme.{u}).presheaf.stalk ηU)
((U₀ : Scheme.{u}).presheaf.stalk ηU)).restrictScalars ((U₀ : Scheme.{u}).presheaf.stalk
ηU) ∘ₗ
KaehlerDifferential.mapBaseChange R ((D.C c).Y.presheaf.stalk (D.C c).y) ((U₀ :
Scheme.{u}).presheaf.stalk ηU)) := by
exact StalkCharts.bijective_map_comp_mapBaseChange_stalk_of_isOpenImmersion f z U₀.ι ηU
(v ≫ pullback.fst z T.f) hv₁ ζ₀ rfl halgZ halgX ((D.C c).Y.presheaf.stalk (D.C c).y) φ
hφbij hφR
(fun a => by
have hc : (Z.presheaf.stalkCongr
(.of_eq (rfl : ζ₀ = (v ≫ pullback.fst z T.f) ηU))).hom =
𝟙 (Z.presheaf.stalk ζ₀) := Z.presheaf.stalkSpecializes_refl ζ₀
have hcₐ : (Z.presheaf.stalkCongr
(.of_eq (rfl : ζ₀ = (v ≫ pullback.fst z T.f) ηU))).hom a = a :=
congrArg (fun h : Z.presheaf.stalk ζ₀ ⟶ Z.presheaf.stalk ζ₀ => h.hom a) hc
have hm : algebraMap (Z.presheaf.stalk ζ₀)
((U₀ : Scheme.{u}).presheaf.stalk ηU) a =
((v ≫ pullback.fst z T.f).stalkMap ηU).hom a :=
(congrArg (fun h : Z.presheaf.stalk ζ₀ ⟶
(U₀ : Scheme.{u}).presheaf.stalk ηU => h.hom a)
(Scheme.Hom.stalkMap_comp v (pullback.fst z T.f) ηU)).symm
exact hm.trans
(congrArg ((v ≫ pullback.fst z T.f).stalkMap ηU).hom hcₐ.symm))
(fun b => rfl)
let : Algebra K Γ(XK, (D.C c).U) := gK.sectionsAlgebra (D.C c).U
let : Algebra Γ(XK, (D.C c).U) (FractionRing ((D.C c).Y.presheaf.stalk (D.C c).y)) := (D.C
c).algebraU
let algUcF : Algebra Γ(XK, (D.C c).U) F := ((algebraMap (FractionRing ((D.C
c).Y.presheaf.stalk (D.C c).y)) F).comp (algebraMap Γ(XK, (D.C c).U) (FractionRing ((D.C
c).Y.presheaf.stalk (D.C c).y)))).toAlgebra
let : Algebra K Γ(XK, U'') := gK.sectionsAlgebra U''
have : IsScalarTower K Γ(XK, U'') F := hKU''
have hKUc : IsScalarTower K Γ(XK, (D.C c).U) F := IsScalarTower.of_algebraMap_eq (fun x => by
change algebraMap K F x = algebraMap (FractionRing ((D.C c).Y.presheaf.stalk (D.C c).y)) F
(algebraMap Γ(XK, (D.C c).U) (FractionRing ((D.C c).Y.presheaf.stalk (D.C c).y))
(algebraMap K Γ(XK, (D.C c).U) x))
rw [← @IsScalarTower.algebraMap_apply K Γ(XK, (D.C c).U) (FractionRing ((D.C
c).Y.presheaf.stalk (D.C c).y)) _ _ _ (gK.sectionsAlgebra (D.C c).U)
(D.C c).algebraU _ (D.C c).isScalarTowerU x, ← IsScalarTower.algebraMap_apply K
(FractionRing ((D.C c).Y.presheaf.stalk (D.C c).y)) F])
have : IsFractionRing ((pullback z T.f).presheaf.stalk η') F := by
have e : (((algebraMap ((U₀ : Scheme.{u}).presheaf.stalk ηU) F).comp (v.stalkMap
ηU).hom).toAlgebra : Algebra ((pullback z T.f).presheaf.stalk η') F) =
(inferInstance : Algebra ((pullback z T.f).presheaf.stalk η') F) :=
Algebra.algebra_ext _ _ (fun r => (IsScalarTower.algebraMap_apply ((pullback z
T.f).presheaf.stalk η') ((U₀ : Scheme.{u}).presheaf.stalk ηU) F r).symm)
exact (congrArg (fun i : Algebra ((pullback z T.f).presheaf.stalk η') F => @IsLocalization _
_ (nonZeroDivisors _) F _ i) e).mp hfrac
have hxpt : (NeronModelInfra.schemeHomOverComp
(pointGenericFibre (K := K) (K' := F)
(⟨(U₀ : Scheme.{u}).fromSpecStalk ηU, halgO⟩ :
SchemeHomOver (Spec.map (CommRingCat.ofHom (algebraMap R ((U₀ :
Scheme.{u}).presheaf.stalk ηU)))) (U₀.ι ≫ pullback.fst z f ≫ z)))
(NeronModelInfra.schemeHomOverComp
(genericFibreRestrict R K f (U₀.ι ≫ pullback.fst z f ≫ z)
⟨U₀.ι ≫ pullback.snd z f, by rw [Category.assoc, ← pullback.condition]⟩) e)).1 =
(NeronModelInfra.schemeHomOverComp
(pointGenericFibre (K := K) (K' := F)
(⟨X.fromSpecStalk ((pullback.snd z f).base (U₀.ι.base ηU)), halgX⟩ : SchemeHomOver
(Spec.map (CommRingCat.ofHom (algebraMap R (X.presheaf.stalk ((pullback.snd z
f).base (U₀.ι.base ηU)))))) f))
e).1 := by
have hFpt : Spec.map (CommRingCat.ofHom (algebraMap (X.presheaf.stalk ((pullback.snd z
f).base (U₀.ι.base ηU))) F)) ≫
X.fromSpecStalk ((pullback.snd z f).base (U₀.ι.base ηU)) =
Spec.map (CommRingCat.ofHom (algebraMap ((U₀ : Scheme.{u}).presheaf.stalk ηU) F)) ≫
(U₀ : Scheme.{u}).fromSpecStalk ηU ≫ (U₀.ι ≫ pullback.snd z f) := by
rw [IsScalarTower.algebraMap_eq (X.presheaf.stalk ((pullback.snd z f).base (U₀.ι.base ηU)))
((U₀ : Scheme.{u}).presheaf.stalk ηU) F, CommRingCat.ofHom_comp, Spec.map_comp,
Category.assoc]
erw [← Scheme.SpecMap_stalkMap_fromSpecStalk (U₀.ι ≫ pullback.snd z f) (x := ηU)]
rfl
simp only [NeronModelInfra.schemeHomOverComp_coe]
rw [← Category.assoc, GenericPoints.pointGenericFibre_comp_genericFibreRestrict K f (U₀.ι ≫
pullback.fst z f ≫ z)
(U₀.ι ≫ pullback.snd z f) (by rw [Category.assoc, ← pullback.condition]) ηU
((pullback.snd z f).base (U₀.ι.base ηU)) halgO halgX F hFpt]
have hleftη : TopFormOrder.topFormMap K K' Γ(XK, U'') F d ωU'' = TopFormOrder.topFormMap K K'
Γ(XK, (D.C c).U) F d (D.C c).ωU :=
hleft K' F _ _ (D.C c).U U'' (D.C c).hU hU'' (hxX.trans hxpt.symm) (hx''.trans htrans.symm)
(D.C c).ωU ωU'' (D.C c).hωU hωU''
have towUcF₀F : IsScalarTower Γ(XK, (D.C c).U) (FractionRing ((D.C c).Y.presheaf.stalk (D.C
c).y)) F := IsScalarTower.of_algebraMap_eq (fun _ => rfl)
have towKUcF₀ : IsScalarTower K Γ(XK, (D.C c).U)
(FractionRing ((D.C c).Y.presheaf.stalk (D.C c).y)) := (D.C c).isScalarTowerU
have hX : TopFormOrder.topFormMap K K' F F d (TopFormOrder.topFormMap K K Γ(XK, U'') F d ωU'') =
TopFormOrder.topFormMap K K' (FractionRing ((D.C c).Y.presheaf.stalk (D.C c).y)) F d
((D.C c).a • TopFormOrder.topFormMap R K ((D.C c).Y.presheaf.stalk (D.C c).y)
(FractionRing ((D.C c).Y.presheaf.stalk (D.C c).y)) d (exteriorPower.ιMulti ((D.C
c).Y.presheaf.stalk (D.C c).y) d (D.C c).b)) := by
exact @topFormMap_comp_of_eq K K' Γ(XK, U'') Γ(XK, (D.C c).U)
(FractionRing ((D.C c).Y.presheaf.stalk (D.C c).y)) F
(inferInstance : Field K) (inferInstance : Field K') algKK'
(CommRingCat.commRing Γ(XK, U'')) (CommRingCat.commRing Γ(XK, (D.C c).U))
(inferInstance : Field (FractionRing ((D.C c).Y.presheaf.stalk (D.C c).y)))
(inferInstance : Field F)
(gK.sectionsAlgebra U'') (gK.sectionsAlgebra (D.C c).U)
(D.C c).algebraU algF₀F algUcF towUcF₀F (D.C c).algebraK towKUcF₀
algKF algK'F hTowK towKK'F algU'' hKU'' hKUc d ωU'' (D.C c).ωU
((D.C c).a • TopFormOrder.topFormMap R K ((D.C c).Y.presheaf.stalk (D.C c).y)
(FractionRing ((D.C c).Y.presheaf.stalk (D.C c).y)) d
(exteriorPower.ιMulti ((D.C c).Y.presheaf.stalk (D.C c).y) d (D.C c).b))
hleftη (D.C c).ha
have hmin : TopFormOrder.addOrd ((D.C c).Y.presheaf.stalk (D.C c).y) (FractionRing ((D.C
c).Y.presheaf.stalk (D.C c).y)) (D.C c).a ≤ T.n := hD.1 c T
have hsq :=
TopFormOrder.eq_addOrd_and_bijective_mapBaseChange_of_topFormMap_eq_of_addOrd_le
R K (Z.presheaf.stalk ζ₀) K' ϖ hϖ hidxR'.map_maximalIdeal
((D.C c).Y.presheaf.stalk (D.C c).y)
(FractionRing ((D.C c).Y.presheaf.stalk (D.C c).y)) hidxO₀.map_maximalIdeal
d (D.C c).b (D.C c).a (D.C c).ha0 (T.Y.presheaf.stalk y₁) ((pullback z T.f).presheaf.stalk
η') b₁ w₁ T.n hbc' ((U₀ : Scheme.{u}).presheaf.stalk ηU) F hO hbc
(TopFormOrder.topFormMap K K Γ(XK, U'') F d ωU'') hread hX hmin
exact ⟨⟨c, hsq.1⟩, hsq.2⟩
refine ⟨hmain.1, ?_⟩
have : Algebra.FormallyEtale ((pullback z T.f).presheaf.stalk η')
((U₀ : Scheme.{u}).presheaf.stalk ηU) :=
Algebra.FormallyEtale.of_formallySmooth_of_bijective_mapBaseChange hmain.2
exact inferInstance