On Some Local Rings (Maassarani, 2025) -- Section 01 -- Part 2
Lean contributors (project-level attribution): Liang Xiao, Haochen Ju, Zichen Wang.
namespace SomeLocalRingsopen Polynomialopen scoped BigOperatorsvariable {π : Type*} [Field π]
The AdjoinRoot P-dimension of AdjoinRoot (P^k) is k under the scalar tower hypothesis.
lemma finrank_target_over_adjoinRoot_eq_k
(P : Polynomial π) (hP : Irreducible P) (k : β)
[Algebra (AdjoinRoot P) (AdjoinRoot (P ^ k))]
[IsScalarTower π (AdjoinRoot P) (AdjoinRoot (P ^ k))] :
Module.finrank (AdjoinRoot P) (AdjoinRoot (P ^ k)) = k := by
classical
haveI : Fact (Irreducible P) := β¨hPβ©
have hPk0 : (P ^ k) β 0 := pow_ne_zero k hP.ne_zero
have hP0 : P β 0 := hP.ne_zero
haveI : Module.Finite π (AdjoinRoot P) :=
Module.Finite.of_basis (AdjoinRoot.powerBasis (K := π) hP0).basis
haveI : Module.Finite π (AdjoinRoot (P ^ k)) :=
Module.Finite.of_basis (AdjoinRoot.powerBasis (K := π) hPk0).basis
-- Ensure the finrank over `AdjoinRoot P` is defined, using finiteness over `π`.
haveI : Module.Finite (AdjoinRoot P) (AdjoinRoot (P ^ k)) :=
Module.Finite.right π (AdjoinRoot P) (AdjoinRoot (P ^ k))
have hdegPpos : 0 < P.natDegree := by
-- An irreducible polynomial over a field has positive degree.
exact (Polynomial.natDegree_pos_iff_degree_pos).2 (Polynomial.degree_pos_of_irreducible hP)
have finrank_base :
Module.finrank π (AdjoinRoot P) = P.natDegree := by
simpa [AdjoinRoot.powerBasis_dim (K := π) (f := P) hP0] using
(PowerBasis.finrank (AdjoinRoot.powerBasis (K := π) hP0))
have finrank_target :
Module.finrank π (AdjoinRoot (P ^ k)) = (P ^ k).natDegree := by
simpa [AdjoinRoot.powerBasis_dim (K := π) (f := P ^ k) hPk0] using
(PowerBasis.finrank (AdjoinRoot.powerBasis (K := π) hPk0))
-- Apply the tower finrank formula and cancel `P.natDegree`.
have hmul :
Module.finrank π (AdjoinRoot P) *
Module.finrank (AdjoinRoot P) (AdjoinRoot (P ^ k)) =
Module.finrank π (AdjoinRoot (P ^ k)) := by
simpa [Nat.mul_comm] using
(Module.finrank_mul_finrank π (AdjoinRoot P) (AdjoinRoot (P ^ k)))
-- Rewrite the finranks in terms of `natDegree`.
have hmul' :
P.natDegree * Module.finrank (AdjoinRoot P) (AdjoinRoot (P ^ k)) =
(P ^ k).natDegree := by
simpa [finrank_base, finrank_target, Nat.mul_comm, Nat.mul_left_comm, Nat.mul_assoc] using hmul
-- `natDegree (P^k) = k * natDegree P`.
have hdegpow : (P ^ k).natDegree = k * P.natDegree := by
simp [Polynomial.natDegree_pow]
-- Cancel `P.natDegree`.
have :
P.natDegree * Module.finrank (AdjoinRoot P) (AdjoinRoot (P ^ k)) =
P.natDegree * k := by
simpa [hdegpow, Nat.mul_comm, Nat.mul_left_comm, Nat.mul_assoc] using hmul'
exact mul_left_cancelβ (Nat.ne_of_gt hdegPpos) this
Theorem 1.7.
Let π be a field and P be an irreducible polynomial over π. If P' β 0, then π[X]β§Έ(P ^ k)
is isomorphic, as an π[X]β§Έ(P)-algebra (and hence as a π-algebra), to (π[X]β§Έ(P))[Y]β§Έ(Y ^ k).
The isomorphism is given by .
theorem exists_algEquiv_adjoinRoot_X_pow_to_adjoinRoot_pow
(P : Polynomial π) (hP : Irreducible P) (hP' : P.derivative β 0) (k : β) (hk : 1 β€ k)
[Algebra (AdjoinRoot P) (AdjoinRoot (P ^ k))]
[IsScalarTower π (AdjoinRoot P) (AdjoinRoot (P ^ k))] :
β e :
AdjoinRoot ((Polynomial.X : Polynomial (AdjoinRoot P)) ^ k) ββ[AdjoinRoot P]
AdjoinRoot (P ^ k),
e (AdjoinRoot.root ((Polynomial.X : Polynomial (AdjoinRoot P)) ^ k)) =
AdjoinRoot.mk (P ^ k) P := by
classical
haveI : Fact (Irreducible P) := β¨hPβ©
let Ο : AdjoinRoot ((Polynomial.X : Polynomial (AdjoinRoot P)) ^ k) ββ[AdjoinRoot P]
AdjoinRoot (P ^ k) :=
psiK (P := P) (k := k)
have hΟroot :
Ο (AdjoinRoot.root ((Polynomial.X : Polynomial (AdjoinRoot P)) ^ k)) =
AdjoinRoot.mk (P ^ k) P := by
simpa [Ο] using (psiK_def_and_root (P := P) (k := k))
have hΟ_inj : Function.Injective Ο := by
simpa [Ο] using
(psiK_injective (P := P) (hP := hP) (hP' := hP') (k := k) (hk := hk))
-- Compare finranks over `AdjoinRoot P` to deduce surjectivity.
have finrank_dom :
Module.finrank (AdjoinRoot P)
(AdjoinRoot ((Polynomial.X : Polynomial (AdjoinRoot P)) ^ k)) =
k := by
simpa using (finrank_domain_over_adjoinRoot_eq_k (P := P) (hP := hP) (k := k))
have finrank_cod :
Module.finrank (AdjoinRoot P) (AdjoinRoot (P ^ k)) = k := by
simpa using (finrank_target_over_adjoinRoot_eq_k (P := P) (hP := hP) (k := k))
have hfin :
Module.finrank (AdjoinRoot P)
(AdjoinRoot ((Polynomial.X : Polynomial (AdjoinRoot P)) ^ k)) =
Module.finrank (AdjoinRoot P) (AdjoinRoot (P ^ k)) := by
simp [finrank_dom, finrank_cod]
have hΟ_surj : Function.Surjective Ο := by
-- Use the finite-dimensional linear algebra lemma over the field `AdjoinRoot P`.
haveI : Module.Finite π (AdjoinRoot P) :=
Module.Finite.of_basis (AdjoinRoot.powerBasis (K := π) hP.ne_zero).basis
haveI : Module.Finite π (AdjoinRoot (P ^ k)) :=
Module.Finite.of_basis (AdjoinRoot.powerBasis (K := π) (pow_ne_zero k hP.ne_zero)).basis
haveI : Module.Finite (AdjoinRoot P) (AdjoinRoot (P ^ k)) :=
Module.Finite.right π (AdjoinRoot P) (AdjoinRoot (P ^ k))
haveI :
FiniteDimensional (AdjoinRoot P)
(AdjoinRoot ((Polynomial.X : Polynomial (AdjoinRoot P)) ^ k)) := by
classical
let g : Polynomial (AdjoinRoot P) := (Polynomial.X : Polynomial (AdjoinRoot P)) ^ k
have hg : g β 0 := by
simp [g]
exact
Module.Basis.finiteDimensional_of_finite
(AdjoinRoot.powerBasis (K := AdjoinRoot P) hg).basis
haveI : FiniteDimensional (AdjoinRoot P) (AdjoinRoot (P ^ k)) := by
classical
exact
Module.Basis.finiteDimensional_of_finite
(Module.finBasis (AdjoinRoot P) (AdjoinRoot (P ^ k)))
have hsurj_lin :
Function.Surjective (Ο.toLinearMap : _ ββ[AdjoinRoot P] _) :=
(LinearMap.injective_iff_surjective_of_finrank_eq_finrank hfin).1
(by
-- `Ο.toLinearMap` has the same underlying function as `Ο`.
simpa using hΟ_inj)
simpa using hsurj_lin
refine β¨AlgEquiv.ofBijective Ο β¨hΟ_inj, hΟ_surjβ©, ?_β©
simp [AlgEquiv.ofBijective_apply, hΟroot]A ring equivalence preserves the nilradical ideal.
lemma nilradical_map_eq_of_ringEquiv {R S : Type*} [CommSemiring R] [CommSemiring S]
(e : R β+* S) : (nilradical R).map (e : R β+* S) = nilradical S := by
ext y
constructor
Β· intro hy
rcases
(Ideal.mem_map_iff_of_surjective (e : R β+* S) e.surjective).1 hy with
β¨x, hx, rflβ©
exact (mem_nilradical).2 (((mem_nilradical).1 hx).map (e : R β+* S))
Β· intro hy
refine (Ideal.mem_map_iff_of_surjective (e : R β+* S) e.surjective).2 ?_
refine β¨e.symm y, ?_, by simpβ©
exact (mem_nilradical).2 (((mem_nilradical).1 hy).map (e.symm : S β+* R))
The quotient of A[Y]/(Y^k) by the ideal (Y) is canonically isomorphic to A.
We present A[Y]/(Y^k) as AdjoinRoot (X^k) and the ideal (Y) as the span of the adjoined
root.
noncomputable def quotient_span_root_adjoinRoot_X_pow_ringEquiv_base
(A : Type*) [CommRing A] (k : β) (hk : 1 β€ k) :
(AdjoinRoot ((X : Polynomial A) ^ k) β§Έ
Ideal.span ({AdjoinRoot.root ((X : Polynomial A) ^ k)} : Set _)) β+* A := by
classical
-- Work in the polynomial ring and apply the third isomorphism theorem.
let I : Ideal (Polynomial A) := Ideal.span ({(X : Polynomial A) ^ k} : Set (Polynomial A))
let J : Ideal (Polynomial A) := Ideal.span ({(X : Polynomial A)} : Set (Polynomial A))
have hIJ : I β€ J := by
-- Since `k β₯ 1`, we have `X^k β (X)`.
cases k with
| zero =>
cases (Nat.not_succ_le_zero 0 hk)
| succ k =>
refine Ideal.span_le.2 ?_
intro y hy
have hX : (X : Polynomial A) β J := by
simpa [J] using (Ideal.subset_span (by simp : (X : Polynomial A) β ({X} : Set _)))
-- `X^(k+1) = X^k * X`.
have hXpow : (X : Polynomial A) ^ (Nat.succ k) β J := by
simpa [pow_succ] using (J.mul_mem_left ((X : Polynomial A) ^ k) hX)
have : y = (X : Polynomial A) ^ (Nat.succ k) := by simpa [I] using hy
simpa [this] using hXpow
-- Identify the ideal generated by the class of `X` in the quotient.
have hJmap :
J.map (Ideal.Quotient.mk I) =
Ideal.span ({(Ideal.Quotient.mk I) (X : Polynomial A)} : Set (Polynomial A β§Έ I)) := by
simp [J, Ideal.map_span]
-- Rewrite the ideal generated by the adjoined root as the image of `(X)`.
have hIdeal :
Ideal.span ({AdjoinRoot.root ((X : Polynomial A) ^ k)}
: Set (AdjoinRoot ((X : Polynomial A) ^ k))) =
J.map (Ideal.Quotient.mk I) := by
-- `J.map (mk I)` is the ideal generated by the class of `X` in `A[X]/I`.
simpa [AdjoinRoot, AdjoinRoot.root, AdjoinRoot.mk, I] using hJmap.symm
-- Apply the third isomorphism theorem, then identify `A[X]/(X)` with `A` via evaluation at `0`.
refine (Ideal.quotEquivOfEq hIdeal).trans ?_
have eβ :
(AdjoinRoot ((X : Polynomial A) ^ k) β§Έ J.map (Ideal.Quotient.mk I)) β+* Polynomial A β§Έ J := by
simpa [AdjoinRoot, I] using
(DoubleQuot.quotQuotEquivQuotOfLE (R := Polynomial A) (I := I) (J := J) hIJ)
refine eβ.trans ?_
have hJ0 : J = Ideal.span ({(X : Polynomial A) - C (0 : A)} : Set (Polynomial A)) := by
simp [J]
exact
(Ideal.quotEquivOfEq hJ0).trans
(Polynomial.quotientSpanXSubCAlgEquiv (R := A) (x := (0 : A))).toRingEquivset_option maxHeartbeats 800000 in
/-- The isomorphism `A[Y]/(Y^k)/(Y) β A` sends scalars to scalars. -/
lemma quotient_span_root_adjoinRoot_X_pow_ringEquiv_base_algebraMap
(A : Type*) [CommRing A] (k : β) (hk : 1 β€ k) (a : A) :
quotient_span_root_adjoinRoot_X_pow_ringEquiv_base (A := A) (k := k) (hk := hk)
((algebraMap A
(AdjoinRoot ((X : Polynomial A) ^ k) β§Έ
Ideal.span ({AdjoinRoot.root ((X : Polynomial A) ^ k)} : Set _))) a) =
a := by
classical
-- Rewrite the scalar into the quotient using the `A`-scalar tower.
have ha :
(algebraMap A
(AdjoinRoot ((X : Polynomial A) ^ k) β§Έ
Ideal.span ({AdjoinRoot.root ((X : Polynomial A) ^ k)} : Set _))) a =
Ideal.Quotient.mk (Ideal.span ({AdjoinRoot.root ((X : Polynomial A) ^ k)} : Set _))
((algebraMap A (AdjoinRoot ((X : Polynomial A) ^ k))) a) := by
-- `algebraMap (AdjoinRoot ..) (quotient)` is the quotient map.
simpa [Ideal.Quotient.algebraMap_eq, RingHom.comp_apply]
using congrArg (fun f => f a)
(IsScalarTower.algebraMap_eq A (AdjoinRoot ((X : Polynomial A) ^ k))
(AdjoinRoot ((X : Polynomial A) ^ k) β§Έ
Ideal.span ({AdjoinRoot.root ((X : Polynomial A) ^ k)} : Set _)))
-- Reduce to the explicit normal form used in the definition, then evaluate at `0`.
rw [ha]
show quotient_span_root_adjoinRoot_X_pow_ringEquiv_base (A := A) (k := k) (hk := hk)
(Ideal.Quotient.mk (Ideal.span ({AdjoinRoot.root ((X : Polynomial A) ^ k)} : Set _))
((algebraMap A (AdjoinRoot ((X : Polynomial A) ^ k))) a)) = a
have key : (quotient_span_root_adjoinRoot_X_pow_ringEquiv_base (A := A) (k := k) (hk := hk)).symm a =
Ideal.Quotient.mk (Ideal.span ({AdjoinRoot.root ((X : Polynomial A) ^ k)} : Set _))
((algebraMap A (AdjoinRoot ((X : Polynomial A) ^ k))) a) := by
unfold quotient_span_root_adjoinRoot_X_pow_ringEquiv_base
simp only [RingEquiv.symm_trans, RingEquiv.symm_trans_apply, id_eq,
Ideal.quotEquivOfEq_mk, Ideal.quotEquivOfEq_symm,
AlgEquiv.toRingEquiv_symm,
Polynomial.quotientSpanXSubCAlgEquiv_symm_apply,
DoubleQuot.quotQuotEquivQuotOfLE_symm_mk, DoubleQuot.quotQuotMk]
rfl
rw [β key, RingEquiv.apply_symm_apply]
For a field A, the nilradical of A[Y]/(Y^k) (presented as AdjoinRoot (X^k)) is the ideal
generated by Y, i.e. the span of the adjoined root.
lemma nilradical_adjoinRoot_X_pow_eq_span_root
(A : Type*) [Field A] (k : β) (hk : 1 β€ k) :
nilradical (AdjoinRoot ((X : Polynomial A) ^ k)) =
Ideal.span ({AdjoinRoot.root ((X : Polynomial A) ^ k)} : Set _) := by
classical
let T := AdjoinRoot ((X : Polynomial A) ^ k)
-- The adjoined root is nilpotent of index `k`.
have hrootk : (AdjoinRoot.root ((X : Polynomial A) ^ k) : T) ^ k = 0 := by
-- Evaluate `(X^k)` at the root.
simpa [Polynomial.evalβ_pow] using (AdjoinRoot.evalβ_root ((X : Polynomial A) ^ k))
-- First inclusion: `(root) β€ nilradical`.
have hspan_le : Ideal.span ({AdjoinRoot.root ((X : Polynomial A) ^ k)} : Set T)
β€ nilradical T := by
intro x hx
-- Elements in a principal ideal are multiples of the generator.
rcases Ideal.mem_span_singleton.mp (by simpa using hx) with β¨a, rflβ©
refine (mem_nilradical).2 ?_
refine β¨k, ?_β©
simp [mul_pow, hrootk]
-- Second inclusion: `nilradical β€ (root)` since `(root)` is a prime ideal.
have hprime :
(Ideal.span ({AdjoinRoot.root ((X : Polynomial A) ^ k)} : Set T)).IsPrime := by
-- The quotient by `(root)` is isomorphic to the field `A`, hence a domain.
let e :=
quotient_span_root_adjoinRoot_X_pow_ringEquiv_base (A := A) (k := k) (hk := hk)
haveI : IsDomain
(T β§Έ Ideal.span ({AdjoinRoot.root ((X : Polynomial A) ^ k)} : Set T)) :=
e.toMulEquiv.isDomain A
exact
(Ideal.Quotient.isDomain_iff_prime
(I := Ideal.span ({AdjoinRoot.root ((X : Polynomial A) ^ k)} : Set T))).1
(by infer_instance)
have hnil_le :
nilradical T β€ Ideal.span ({AdjoinRoot.root ((X : Polynomial A) ^ k)} : Set T) := by
haveI :
(Ideal.span ({AdjoinRoot.root ((X : Polynomial A) ^ k)} : Set T)).IsPrime :=
hprime
exact nilradical_le_prime (J := Ideal.span ({AdjoinRoot.root ((X : Polynomial A) ^ k)} : Set T))
exact le_antisymm hnil_le hspan_le
For fields A and B, the truncated polynomial rings A[Y]/(Y^k) and B[Y]/(Y^k) (presented
as AdjoinRoot (X^k)) are isomorphic if and only if A and B are isomorphic.
lemma nonempty_ringEquiv_adjoinRoot_X_pow_iff_nonempty_ringEquiv_base
(A B : Type*) [Field A] [Field B] (k : β) (hk : 1 β€ k) :
Nonempty (AdjoinRoot ((X : Polynomial A) ^ k) β+* AdjoinRoot ((X : Polynomial B) ^ k)) β
Nonempty (A β+* B) := by
classical
constructor
Β· rintro β¨eβ©
-- Pass to quotients by nilradicals to recover the base fields.
have hmap :
nilradical (AdjoinRoot ((X : Polynomial B) ^ k)) =
(nilradical (AdjoinRoot ((X : Polynomial A) ^ k))).map (e : _ β+* _) := by
simpa using (nilradical_map_eq_of_ringEquiv e).symm
let eQuot :
(AdjoinRoot ((X : Polynomial A) ^ k) β§Έ nilradical (AdjoinRoot ((X : Polynomial A) ^ k))) β+*
(AdjoinRoot ((X : Polynomial B) ^ k) β§Έ nilradical (AdjoinRoot ((X : Polynomial B) ^ k))) :=
Ideal.quotientEquiv (I := nilradical (AdjoinRoot ((X : Polynomial A) ^ k)))
(J := nilradical (AdjoinRoot ((X : Polynomial B) ^ k))) e hmap
have hnilA :
nilradical (AdjoinRoot ((X : Polynomial A) ^ k)) =
Ideal.span ({AdjoinRoot.root ((X : Polynomial A) ^ k)} : Set _) :=
nilradical_adjoinRoot_X_pow_eq_span_root (A := A) (k := k) (hk := hk)
have hnilB :
nilradical (AdjoinRoot ((X : Polynomial B) ^ k)) =
Ideal.span ({AdjoinRoot.root ((X : Polynomial B) ^ k)} : Set _) :=
nilradical_adjoinRoot_X_pow_eq_span_root (A := B) (k := k) (hk := hk)
let eA :
(AdjoinRoot ((X : Polynomial A) ^ k) β§Έ nilradical (AdjoinRoot ((X : Polynomial A) ^ k))) β+*
A :=
(Ideal.quotEquivOfEq hnilA).trans
(quotient_span_root_adjoinRoot_X_pow_ringEquiv_base (A := A) (k := k) (hk := hk))
let eB :
(AdjoinRoot ((X : Polynomial B) ^ k) β§Έ nilradical (AdjoinRoot ((X : Polynomial B) ^ k))) β+*
B :=
(Ideal.quotEquivOfEq hnilB).trans
(quotient_span_root_adjoinRoot_X_pow_ringEquiv_base (A := B) (k := k) (hk := hk))
refine β¨eA.symm.trans (eQuot.trans eB)β©
Β· rintro β¨eβ©
refine β¨AdjoinRoot.mapRingEquiv e ((X : Polynomial A) ^ k) ((X : Polynomial B) ^ k) ?_β©
exact Associated.of_eq (by simp)set_option maxHeartbeats 1600000 in
/--
For `π`-algebra fields `A` and `B`, the truncated polynomial rings `A[Y]/(Y^k)` and `B[Y]/(Y^k)`
(presented as `AdjoinRoot (X^k)`) are isomorphic as `π`-algebras if and only if `A` and `B` are
isomorphic as `π`-algebras.
-/
lemma nonempty_algEquiv_adjoinRoot_X_pow_iff_nonempty_algEquiv_base
(A B : Type*) [Field A] [Field B] [Algebra π A] [Algebra π B] (k : β) (hk : 1 β€ k) :
Nonempty (AdjoinRoot ((X : Polynomial A) ^ k) ββ[π] AdjoinRoot ((X : Polynomial B) ^ k)) β
Nonempty (A ββ[π] B) := by
classical
constructor
Β· rintro β¨eβ©
-- Pass to quotients by nilradicals to recover the base fields.
have hmap :
nilradical (AdjoinRoot ((X : Polynomial B) ^ k)) =
(nilradical (AdjoinRoot ((X : Polynomial A) ^ k))).map (e.toRingEquiv : _ β+* _) := by
simpa using (nilradical_map_eq_of_ringEquiv e.toRingEquiv).symm
let eQuotRing :
(AdjoinRoot ((X : Polynomial A) ^ k) β§Έ nilradical (AdjoinRoot ((X : Polynomial A) ^ k))) β+*
(AdjoinRoot ((X : Polynomial B) ^ k) β§Έ nilradical (AdjoinRoot ((X : Polynomial B) ^ k))) :=
Ideal.quotientEquiv
(I := nilradical (AdjoinRoot ((X : Polynomial A) ^ k)))
(J := nilradical (AdjoinRoot ((X : Polynomial B) ^ k)))
e.toRingEquiv hmap
have hcommQuot :
β x : π,
eQuotRing ((algebraMap π (AdjoinRoot ((X : Polynomial A) ^ k) β§Έ
nilradical (AdjoinRoot ((X : Polynomial A) ^ k)))) x) =
(algebraMap π (AdjoinRoot ((X : Polynomial B) ^ k) β§Έ
nilradical (AdjoinRoot ((X : Polynomial B) ^ k)))) x := by
intro x
have hxA :
(algebraMap π
(AdjoinRoot ((X : Polynomial A) ^ k) β§Έ
nilradical (AdjoinRoot ((X : Polynomial A) ^ k)))) x =
Ideal.Quotient.mk (nilradical (AdjoinRoot ((X : Polynomial A) ^ k)))
((algebraMap π (AdjoinRoot ((X : Polynomial A) ^ k))) x) := by
-- Use the scalar tower `π β AdjoinRoot β quotient`.
simp
have hxB :
(algebraMap π
(AdjoinRoot ((X : Polynomial B) ^ k) β§Έ
nilradical (AdjoinRoot ((X : Polynomial B) ^ k)))) x =
Ideal.Quotient.mk (nilradical (AdjoinRoot ((X : Polynomial B) ^ k)))
((algebraMap π (AdjoinRoot ((X : Polynomial B) ^ k))) x) := by
simp
-- Reduce to the formula for `Ideal.quotientEquiv` on quotient maps.
-- Then use `e.commutes` to pass through scalars.
calc
eQuotRing
((algebraMap π
(AdjoinRoot ((X : Polynomial A) ^ k) β§Έ
nilradical (AdjoinRoot ((X : Polynomial A) ^ k)))) x) =
eQuotRing
(Ideal.Quotient.mk (nilradical (AdjoinRoot ((X : Polynomial A) ^ k)))
((algebraMap π (AdjoinRoot ((X : Polynomial A) ^ k))) x)) := by
rw [hxA]
_ =
Ideal.Quotient.mk (nilradical (AdjoinRoot ((X : Polynomial B) ^ k)))
(e.toRingEquiv ((algebraMap π (AdjoinRoot ((X : Polynomial A) ^ k))) x)) := by
simp [eQuotRing]
_ =
Ideal.Quotient.mk (nilradical (AdjoinRoot ((X : Polynomial B) ^ k)))
((algebraMap π (AdjoinRoot ((X : Polynomial B) ^ k))) x) := by
exact
congrArg
(Ideal.Quotient.mk (nilradical (AdjoinRoot ((X : Polynomial B) ^ k))))
(e.commutes x)
_ =
(algebraMap π
(AdjoinRoot ((X : Polynomial B) ^ k) β§Έ
nilradical (AdjoinRoot ((X : Polynomial B) ^ k)))) x := by
rw [hxB]
let eQuot :
(AdjoinRoot ((X : Polynomial A) ^ k) β§Έ nilradical (AdjoinRoot ((X : Polynomial A) ^ k))) ββ[π]
(AdjoinRoot ((X : Polynomial B) ^ k) β§Έ nilradical (AdjoinRoot ((X : Polynomial B) ^ k))) :=
AlgEquiv.ofRingEquiv (f := eQuotRing) hcommQuot
have hnilA :
nilradical (AdjoinRoot ((X : Polynomial A) ^ k)) =
Ideal.span ({AdjoinRoot.root ((X : Polynomial A) ^ k)} : Set _) :=
nilradical_adjoinRoot_X_pow_eq_span_root (A := A) (k := k) (hk := hk)
have hnilB :
nilradical (AdjoinRoot ((X : Polynomial B) ^ k)) =
Ideal.span ({AdjoinRoot.root ((X : Polynomial B) ^ k)} : Set _) :=
nilradical_adjoinRoot_X_pow_eq_span_root (A := B) (k := k) (hk := hk)
let eA_ring :
(AdjoinRoot ((X : Polynomial A) ^ k) β§Έ nilradical (AdjoinRoot ((X : Polynomial A) ^ k))) β+*
A :=
(Ideal.quotEquivOfEq hnilA).trans
(quotient_span_root_adjoinRoot_X_pow_ringEquiv_base (A := A) (k := k) (hk := hk))
let eB_ring :
(AdjoinRoot ((X : Polynomial B) ^ k) β§Έ nilradical (AdjoinRoot ((X : Polynomial B) ^ k))) β+*
B :=
(Ideal.quotEquivOfEq hnilB).trans
(quotient_span_root_adjoinRoot_X_pow_ringEquiv_base (A := B) (k := k) (hk := hk))
have hcommA_overA :
β a : A, eA_ring ((algebraMap A _) a) = a := by
intro a
have haNil :
(algebraMap A
(AdjoinRoot ((X : Polynomial A) ^ k) β§Έ
nilradical (AdjoinRoot ((X : Polynomial A) ^ k)))) a =
Ideal.Quotient.mk (nilradical (AdjoinRoot ((X : Polynomial A) ^ k)))
((algebraMap A (AdjoinRoot ((X : Polynomial A) ^ k))) a) := by
simpa [Ideal.Quotient.algebraMap_eq, RingHom.comp_apply]
using congrArg (fun f => f a)
(IsScalarTower.algebraMap_eq A (AdjoinRoot ((X : Polynomial A) ^ k))
(AdjoinRoot ((X : Polynomial A) ^ k) β§Έ nilradical (AdjoinRoot ((X : Polynomial A) ^ k))))
have haSpan :
(algebraMap A
(AdjoinRoot ((X : Polynomial A) ^ k) β§Έ
Ideal.span ({AdjoinRoot.root ((X : Polynomial A) ^ k)} : Set _))) a =
Ideal.Quotient.mk (Ideal.span ({AdjoinRoot.root ((X : Polynomial A) ^ k)} : Set _))
((algebraMap A (AdjoinRoot ((X : Polynomial A) ^ k))) a) := by
simpa [Ideal.Quotient.algebraMap_eq, RingHom.comp_apply]
using congrArg (fun f => f a)
(IsScalarTower.algebraMap_eq A (AdjoinRoot ((X : Polynomial A) ^ k))
(AdjoinRoot ((X : Polynomial A) ^ k) β§Έ
Ideal.span ({AdjoinRoot.root ((X : Polynomial A) ^ k)} : Set _)))
have hstep :
quotient_span_root_adjoinRoot_X_pow_ringEquiv_base (A := A) (k := k) (hk := hk)
((Ideal.quotEquivOfEq hnilA)
((algebraMap A
(AdjoinRoot ((X : Polynomial A) ^ k) β§Έ
nilradical (AdjoinRoot ((X : Polynomial A) ^ k)))) a)) =
a := by
-- Move from the nilradical quotient to the quotient by `(Y)`.
have haSpan' :
(algebraMap A
(AdjoinRoot ((X : Polynomial A) ^ k) β§Έ
Ideal.span ({AdjoinRoot.root ((X : Polynomial A) ^ k)} : Set _))) a =
Ideal.Quotient.mk (Ideal.span ({AdjoinRoot.root ((X : Polynomial A) ^ k)} : Set _))
((AdjoinRoot.of ((X : Polynomial A) ^ k)) a) := by
simpa [AdjoinRoot.algebraMap_eq] using haSpan
calc
quotient_span_root_adjoinRoot_X_pow_ringEquiv_base (A := A) (k := k) (hk := hk)
((Ideal.quotEquivOfEq hnilA)
((algebraMap A
(AdjoinRoot ((X : Polynomial A) ^ k) β§Έ
nilradical (AdjoinRoot ((X : Polynomial A) ^ k)))) a)) =
quotient_span_root_adjoinRoot_X_pow_ringEquiv_base (A := A) (k := k) (hk := hk)
((Ideal.quotEquivOfEq hnilA)
(Ideal.Quotient.mk (nilradical (AdjoinRoot ((X : Polynomial A) ^ k)))
((algebraMap A (AdjoinRoot ((X : Polynomial A) ^ k))) a))) := by
simp [haNil]
_ =
quotient_span_root_adjoinRoot_X_pow_ringEquiv_base (A := A) (k := k) (hk := hk)
(Ideal.Quotient.mk (Ideal.span ({AdjoinRoot.root ((X : Polynomial A) ^ k)} : Set _))
((algebraMap A (AdjoinRoot ((X : Polynomial A) ^ k))) a)) := by
simp [Ideal.quotEquivOfEq_mk]
_ =
quotient_span_root_adjoinRoot_X_pow_ringEquiv_base (A := A) (k := k) (hk := hk)
((algebraMap A
(AdjoinRoot ((X : Polynomial A) ^ k) β§Έ
Ideal.span ({AdjoinRoot.root ((X : Polynomial A) ^ k)} : Set _))) a) := by
simp [haSpan']
_ = a :=
quotient_span_root_adjoinRoot_X_pow_ringEquiv_base_algebraMap (A := A) (k := k) (hk := hk) a
-- `eA_ring` is the composition of the two maps above.
change
quotient_span_root_adjoinRoot_X_pow_ringEquiv_base (A := A) (k := k) (hk := hk)
((Ideal.quotEquivOfEq hnilA)
((algebraMap A
(AdjoinRoot ((X : Polynomial A) ^ k) β§Έ
nilradical (AdjoinRoot ((X : Polynomial A) ^ k)))) a)) =
a
exact hstep
have hcommB_overB :
β b : B, eB_ring ((algebraMap B _) b) = b := by
intro b
have hbNil :
(algebraMap B
(AdjoinRoot ((X : Polynomial B) ^ k) β§Έ
nilradical (AdjoinRoot ((X : Polynomial B) ^ k)))) b =
Ideal.Quotient.mk (nilradical (AdjoinRoot ((X : Polynomial B) ^ k)))
((algebraMap B (AdjoinRoot ((X : Polynomial B) ^ k))) b) := by
simpa [Ideal.Quotient.algebraMap_eq, RingHom.comp_apply]
using congrArg (fun f => f b)
(IsScalarTower.algebraMap_eq B (AdjoinRoot ((X : Polynomial B) ^ k))
(AdjoinRoot ((X : Polynomial B) ^ k) β§Έ nilradical (AdjoinRoot ((X : Polynomial B) ^ k))))
have hbSpan :
(algebraMap B
(AdjoinRoot ((X : Polynomial B) ^ k) β§Έ
Ideal.span ({AdjoinRoot.root ((X : Polynomial B) ^ k)} : Set _))) b =
Ideal.Quotient.mk (Ideal.span ({AdjoinRoot.root ((X : Polynomial B) ^ k)} : Set _))
((algebraMap B (AdjoinRoot ((X : Polynomial B) ^ k))) b) := by
simpa [Ideal.Quotient.algebraMap_eq, RingHom.comp_apply]
using congrArg (fun f => f b)
(IsScalarTower.algebraMap_eq B (AdjoinRoot ((X : Polynomial B) ^ k))
(AdjoinRoot ((X : Polynomial B) ^ k) β§Έ
Ideal.span ({AdjoinRoot.root ((X : Polynomial B) ^ k)} : Set _)))
have hstep :
quotient_span_root_adjoinRoot_X_pow_ringEquiv_base (A := B) (k := k) (hk := hk)
((Ideal.quotEquivOfEq hnilB)
((algebraMap B
(AdjoinRoot ((X : Polynomial B) ^ k) β§Έ
nilradical (AdjoinRoot ((X : Polynomial B) ^ k)))) b)) =
b := by
have hbSpan' :
(algebraMap B
(AdjoinRoot ((X : Polynomial B) ^ k) β§Έ
Ideal.span ({AdjoinRoot.root ((X : Polynomial B) ^ k)} : Set _))) b =
Ideal.Quotient.mk (Ideal.span ({AdjoinRoot.root ((X : Polynomial B) ^ k)} : Set _))
((AdjoinRoot.of ((X : Polynomial B) ^ k)) b) := by
simpa [AdjoinRoot.algebraMap_eq] using hbSpan
calc
quotient_span_root_adjoinRoot_X_pow_ringEquiv_base (A := B) (k := k) (hk := hk)
((Ideal.quotEquivOfEq hnilB)
((algebraMap B
(AdjoinRoot ((X : Polynomial B) ^ k) β§Έ
nilradical (AdjoinRoot ((X : Polynomial B) ^ k)))) b)) =
quotient_span_root_adjoinRoot_X_pow_ringEquiv_base (A := B) (k := k) (hk := hk)
((Ideal.quotEquivOfEq hnilB)
(Ideal.Quotient.mk (nilradical (AdjoinRoot ((X : Polynomial B) ^ k)))
((algebraMap B (AdjoinRoot ((X : Polynomial B) ^ k))) b))) := by
simp [hbNil]
_ =
quotient_span_root_adjoinRoot_X_pow_ringEquiv_base (A := B) (k := k) (hk := hk)
(Ideal.Quotient.mk (Ideal.span ({AdjoinRoot.root ((X : Polynomial B) ^ k)} : Set _))
((algebraMap B (AdjoinRoot ((X : Polynomial B) ^ k))) b)) := by
simp [Ideal.quotEquivOfEq_mk]
_ =
quotient_span_root_adjoinRoot_X_pow_ringEquiv_base (A := B) (k := k) (hk := hk)
((algebraMap B
(AdjoinRoot ((X : Polynomial B) ^ k) β§Έ
Ideal.span ({AdjoinRoot.root ((X : Polynomial B) ^ k)} : Set _))) b) := by
simp [hbSpan']
_ = b :=
quotient_span_root_adjoinRoot_X_pow_ringEquiv_base_algebraMap (A := B) (k := k) (hk := hk) b
change
quotient_span_root_adjoinRoot_X_pow_ringEquiv_base (A := B) (k := k) (hk := hk)
((Ideal.quotEquivOfEq hnilB)
((algebraMap B
(AdjoinRoot ((X : Polynomial B) ^ k) β§Έ
nilradical (AdjoinRoot ((X : Polynomial B) ^ k)))) b)) =
b
exact hstep
have hcommA :
β x : π, eA_ring ((algebraMap π _) x) = (algebraMap π A) x := by
intro x
-- Use the scalar tower `π β A β ...`.
have hx :
(algebraMap π
(AdjoinRoot ((X : Polynomial A) ^ k) β§Έ
nilradical (AdjoinRoot ((X : Polynomial A) ^ k)))) x =
(algebraMap A
(AdjoinRoot ((X : Polynomial A) ^ k) β§Έ
nilradical (AdjoinRoot ((X : Polynomial A) ^ k)))) ((algebraMap π A) x) := by
simpa [RingHom.comp_apply]
using congrArg (fun f => f x)
(IsScalarTower.algebraMap_eq π A
(AdjoinRoot ((X : Polynomial A) ^ k) β§Έ
nilradical (AdjoinRoot ((X : Polynomial A) ^ k))))
-- Now apply the `A`-compatibility proved above.
simpa [hx] using hcommA_overA ((algebraMap π A) x)
have hcommB :
β x : π, eB_ring ((algebraMap π _) x) = (algebraMap π B) x := by
intro x
have hx :
(algebraMap π
(AdjoinRoot ((X : Polynomial B) ^ k) β§Έ
nilradical (AdjoinRoot ((X : Polynomial B) ^ k)))) x =
(algebraMap B
(AdjoinRoot ((X : Polynomial B) ^ k) β§Έ
nilradical (AdjoinRoot ((X : Polynomial B) ^ k)))) ((algebraMap π B) x) := by
simpa [RingHom.comp_apply]
using congrArg (fun f => f x)
(IsScalarTower.algebraMap_eq π B
(AdjoinRoot ((X : Polynomial B) ^ k) β§Έ
nilradical (AdjoinRoot ((X : Polynomial B) ^ k))))
simpa [hx] using hcommB_overB ((algebraMap π B) x)
let eA :
(AdjoinRoot ((X : Polynomial A) ^ k) β§Έ nilradical (AdjoinRoot ((X : Polynomial A) ^ k))) ββ[π]
A :=
AlgEquiv.ofRingEquiv (f := eA_ring) hcommA
let eB :
(AdjoinRoot ((X : Polynomial B) ^ k) β§Έ nilradical (AdjoinRoot ((X : Polynomial B) ^ k))) ββ[π]
B :=
AlgEquiv.ofRingEquiv (f := eB_ring) hcommB
exact β¨eA.symm.trans (eQuot.trans eB)β©
Β· rintro β¨eβ©
refine β¨AdjoinRoot.mapAlgEquiv e ((X : Polynomial A) ^ k) ((X : Polynomial B) ^ k) ?_β©
exact Associated.of_eq (by simp)
Theorem 1.8.
Let π be a field. Let Pβ and Pβ be irreducible polynomials over π and let k be a
positive integer. If Pβ and Pβ are separable (i.e. Pα΅’' β 0), then the local rings
π[X]β§Έ(Pβ ^ k) and π[X]β§Έ(Pβ ^ k) are isomorphic if and only if their residue fields π[X]β§Έ(Pβ)
and π[X]β§Έ(Pβ) are isomorphic.
theorem nonempty_ringEquiv_adjoinRoot_pow_iff_nonempty_ringEquiv_adjoinRoot
(Pβ Pβ : Polynomial π) (hPβ : Irreducible Pβ) (hPβ : Irreducible Pβ)
(hPβ' : Pβ.derivative β 0) (hPβ' : Pβ.derivative β 0) (k : β) (hk : 1 β€ k) :
Nonempty (AdjoinRoot (Pβ ^ k) β+* AdjoinRoot (Pβ ^ k)) β
Nonempty (AdjoinRoot Pβ β+* AdjoinRoot Pβ) := by
classical
haveI : Fact (Irreducible Pβ) := β¨hPββ©
haveI : Fact (Irreducible Pβ) := β¨hPββ©
constructor
Β· rintro β¨ePowβ©
-- Use Corollary 1.4 to put a `π`-compatible algebra tower structure on each `AdjoinRoot (Pα΅’^k)`.
obtain β¨Sβ, hSββ© :=
exists_residueField_algEquiv_subalgebra_adjoinRoot_pow (π := π) (P := Pβ) hPβ hPβ' k hk
obtain β¨Sβ, hSββ© :=
exists_residueField_algEquiv_subalgebra_adjoinRoot_pow (π := π) (P := Pβ) hPβ hPβ' k hk
rcases hSβ with β¨eSββ©
rcases hSβ with β¨eSββ©
let fβ : AdjoinRoot Pβ ββ[π] AdjoinRoot (Pβ ^ k) := Sβ.val.comp eSβ.toAlgHom
let fβ : AdjoinRoot Pβ ββ[π] AdjoinRoot (Pβ ^ k) := Sβ.val.comp eSβ.toAlgHom
letI : Algebra (AdjoinRoot Pβ) (AdjoinRoot (Pβ ^ k)) := (fβ.toRingHom).toAlgebra
letI : Algebra (AdjoinRoot Pβ) (AdjoinRoot (Pβ ^ k)) := (fβ.toRingHom).toAlgebra
haveI : IsScalarTower π (AdjoinRoot Pβ) (AdjoinRoot (Pβ ^ k)) :=
IsScalarTower.of_algebraMap_eq fun x => by
simpa [RingHom.algebraMap_toAlgebra] using (fβ.commutes x).symm
haveI : IsScalarTower π (AdjoinRoot Pβ) (AdjoinRoot (Pβ ^ k)) :=
IsScalarTower.of_algebraMap_eq fun x => by
simpa [RingHom.algebraMap_toAlgebra] using (fβ.commutes x).symm
rcases
exists_algEquiv_adjoinRoot_X_pow_to_adjoinRoot_pow (π := π) (P := Pβ) hPβ hPβ' k hk with
β¨eβ, -β©
rcases
exists_algEquiv_adjoinRoot_X_pow_to_adjoinRoot_pow (π := π) (P := Pβ) hPβ hPβ' k hk with
β¨eβ, -β©
let rβ :
AdjoinRoot ((X : Polynomial (AdjoinRoot Pβ)) ^ k) β+* AdjoinRoot (Pβ ^ k) :=
eβ.toRingEquiv
let rβ :
AdjoinRoot ((X : Polynomial (AdjoinRoot Pβ)) ^ k) β+* AdjoinRoot (Pβ ^ k) :=
eβ.toRingEquiv
let eTrunc :
AdjoinRoot ((X : Polynomial (AdjoinRoot Pβ)) ^ k) β+*
AdjoinRoot ((X : Polynomial (AdjoinRoot Pβ)) ^ k) :=
rβ.trans (ePow.trans rβ.symm)
-- Recover the residue fields from the truncated models.
exact
(nonempty_ringEquiv_adjoinRoot_X_pow_iff_nonempty_ringEquiv_base
(A := AdjoinRoot Pβ) (B := AdjoinRoot Pβ) (k := k) hk).1
β¨eTruncβ©
Β· rintro β¨eBaseβ©
obtain β¨Sβ, hSββ© :=
exists_residueField_algEquiv_subalgebra_adjoinRoot_pow (π := π) (P := Pβ) hPβ hPβ' k hk
obtain β¨Sβ, hSββ© :=
exists_residueField_algEquiv_subalgebra_adjoinRoot_pow (π := π) (P := Pβ) hPβ hPβ' k hk
rcases hSβ with β¨eSββ©
rcases hSβ with β¨eSββ©
let fβ : AdjoinRoot Pβ ββ[π] AdjoinRoot (Pβ ^ k) := Sβ.val.comp eSβ.toAlgHom
let fβ : AdjoinRoot Pβ ββ[π] AdjoinRoot (Pβ ^ k) := Sβ.val.comp eSβ.toAlgHom
letI : Algebra (AdjoinRoot Pβ) (AdjoinRoot (Pβ ^ k)) := (fβ.toRingHom).toAlgebra
letI : Algebra (AdjoinRoot Pβ) (AdjoinRoot (Pβ ^ k)) := (fβ.toRingHom).toAlgebra
haveI : IsScalarTower π (AdjoinRoot Pβ) (AdjoinRoot (Pβ ^ k)) :=
IsScalarTower.of_algebraMap_eq fun x => by
simpa [RingHom.algebraMap_toAlgebra] using (fβ.commutes x).symm
haveI : IsScalarTower π (AdjoinRoot Pβ) (AdjoinRoot (Pβ ^ k)) :=
IsScalarTower.of_algebraMap_eq fun x => by
simpa [RingHom.algebraMap_toAlgebra] using (fβ.commutes x).symm
rcases
exists_algEquiv_adjoinRoot_X_pow_to_adjoinRoot_pow (π := π) (P := Pβ) hPβ hPβ' k hk with
β¨eβ, -β©
rcases
exists_algEquiv_adjoinRoot_X_pow_to_adjoinRoot_pow (π := π) (P := Pβ) hPβ hPβ' k hk with
β¨eβ, -β©
let rβ :
AdjoinRoot ((X : Polynomial (AdjoinRoot Pβ)) ^ k) β+* AdjoinRoot (Pβ ^ k) :=
eβ.toRingEquiv
let rβ :
AdjoinRoot ((X : Polynomial (AdjoinRoot Pβ)) ^ k) β+* AdjoinRoot (Pβ ^ k) :=
eβ.toRingEquiv
have hTrunc :
Nonempty
(AdjoinRoot ((X : Polynomial (AdjoinRoot Pβ)) ^ k) β+*
AdjoinRoot ((X : Polynomial (AdjoinRoot Pβ)) ^ k)) :=
(nonempty_ringEquiv_adjoinRoot_X_pow_iff_nonempty_ringEquiv_base
(A := AdjoinRoot Pβ) (B := AdjoinRoot Pβ) (k := k) hk).2
β¨eBaseβ©
rcases hTrunc with β¨eTruncβ©
exact β¨rβ.symm.trans (eTrunc.trans rβ)β©
Proposition 1.10.
Let Pβ and Pβ be two irreducible polynomials over π and k a positive integer. If Pβ and
Pβ are separable (i.e. Pα΅’' β 0), then the local rings π[X]β§Έ(Pβ ^ k) and π[X]β§Έ(Pβ ^ k) are
isomorphic as π-algebras if and only if their residue fields π[X]β§Έ(Pβ) and π[X]β§Έ(Pβ) are
isomorphic as π-algebras.
theorem nonempty_algEquiv_adjoinRoot_pow_iff_nonempty_algEquiv_adjoinRoot
(Pβ Pβ : Polynomial π) (hPβ : Irreducible Pβ) (hPβ : Irreducible Pβ)
(hPβ' : Pβ.derivative β 0) (hPβ' : Pβ.derivative β 0) (k : β) (hk : 1 β€ k) :
Nonempty (AdjoinRoot (Pβ ^ k) ββ[π] AdjoinRoot (Pβ ^ k)) β
Nonempty (AdjoinRoot Pβ ββ[π] AdjoinRoot Pβ) := by
classical
haveI : Fact (Irreducible Pβ) := β¨hPββ©
haveI : Fact (Irreducible Pβ) := β¨hPββ©
constructor
Β· rintro β¨ePowβ©
-- Use Corollary 1.4 to put a `π`-compatible algebra tower structure on each `AdjoinRoot (Pα΅’^k)`.
obtain β¨Sβ, hSββ© :=
exists_residueField_algEquiv_subalgebra_adjoinRoot_pow (π := π) (P := Pβ) hPβ hPβ' k hk
obtain β¨Sβ, hSββ© :=
exists_residueField_algEquiv_subalgebra_adjoinRoot_pow (π := π) (P := Pβ) hPβ hPβ' k hk
rcases hSβ with β¨eSββ©
rcases hSβ with β¨eSββ©
let fβ : AdjoinRoot Pβ ββ[π] AdjoinRoot (Pβ ^ k) := Sβ.val.comp eSβ.toAlgHom
let fβ : AdjoinRoot Pβ ββ[π] AdjoinRoot (Pβ ^ k) := Sβ.val.comp eSβ.toAlgHom
letI : Algebra (AdjoinRoot Pβ) (AdjoinRoot (Pβ ^ k)) := (fβ.toRingHom).toAlgebra
letI : Algebra (AdjoinRoot Pβ) (AdjoinRoot (Pβ ^ k)) := (fβ.toRingHom).toAlgebra
haveI : IsScalarTower π (AdjoinRoot Pβ) (AdjoinRoot (Pβ ^ k)) :=
IsScalarTower.of_algebraMap_eq fun x => by
simpa [RingHom.algebraMap_toAlgebra] using (fβ.commutes x).symm
haveI : IsScalarTower π (AdjoinRoot Pβ) (AdjoinRoot (Pβ ^ k)) :=
IsScalarTower.of_algebraMap_eq fun x => by
simpa [RingHom.algebraMap_toAlgebra] using (fβ.commutes x).symm
rcases
exists_algEquiv_adjoinRoot_X_pow_to_adjoinRoot_pow (π := π) (P := Pβ) hPβ hPβ' k hk with
β¨eβ, -β©
rcases
exists_algEquiv_adjoinRoot_X_pow_to_adjoinRoot_pow (π := π) (P := Pβ) hPβ hPβ' k hk with
β¨eβ, -β©
let rβ :
AdjoinRoot ((X : Polynomial (AdjoinRoot Pβ)) ^ k) ββ[π] AdjoinRoot (Pβ ^ k) :=
AlgEquiv.restrictScalars π eβ
let rβ :
AdjoinRoot ((X : Polynomial (AdjoinRoot Pβ)) ^ k) ββ[π] AdjoinRoot (Pβ ^ k) :=
AlgEquiv.restrictScalars π eβ
let eTrunc :
AdjoinRoot ((X : Polynomial (AdjoinRoot Pβ)) ^ k) ββ[π]
AdjoinRoot ((X : Polynomial (AdjoinRoot Pβ)) ^ k) :=
rβ.trans (ePow.trans rβ.symm)
exact
(nonempty_algEquiv_adjoinRoot_X_pow_iff_nonempty_algEquiv_base
(π := π) (A := AdjoinRoot Pβ) (B := AdjoinRoot Pβ) (k := k) hk).1
β¨eTruncβ©
Β· rintro β¨eBaseβ©
obtain β¨Sβ, hSββ© :=
exists_residueField_algEquiv_subalgebra_adjoinRoot_pow (π := π) (P := Pβ) hPβ hPβ' k hk
obtain β¨Sβ, hSββ© :=
exists_residueField_algEquiv_subalgebra_adjoinRoot_pow (π := π) (P := Pβ) hPβ hPβ' k hk
rcases hSβ with β¨eSββ©
rcases hSβ with β¨eSββ©
let fβ : AdjoinRoot Pβ ββ[π] AdjoinRoot (Pβ ^ k) := Sβ.val.comp eSβ.toAlgHom
let fβ : AdjoinRoot Pβ ββ[π] AdjoinRoot (Pβ ^ k) := Sβ.val.comp eSβ.toAlgHom
letI : Algebra (AdjoinRoot Pβ) (AdjoinRoot (Pβ ^ k)) := (fβ.toRingHom).toAlgebra
letI : Algebra (AdjoinRoot Pβ) (AdjoinRoot (Pβ ^ k)) := (fβ.toRingHom).toAlgebra
haveI : IsScalarTower π (AdjoinRoot Pβ) (AdjoinRoot (Pβ ^ k)) :=
IsScalarTower.of_algebraMap_eq fun x => by
simpa [RingHom.algebraMap_toAlgebra] using (fβ.commutes x).symm
haveI : IsScalarTower π (AdjoinRoot Pβ) (AdjoinRoot (Pβ ^ k)) :=
IsScalarTower.of_algebraMap_eq fun x => by
simpa [RingHom.algebraMap_toAlgebra] using (fβ.commutes x).symm
rcases
exists_algEquiv_adjoinRoot_X_pow_to_adjoinRoot_pow (π := π) (P := Pβ) hPβ hPβ' k hk with
β¨eβ, -β©
rcases
exists_algEquiv_adjoinRoot_X_pow_to_adjoinRoot_pow (π := π) (P := Pβ) hPβ hPβ' k hk with
β¨eβ, -β©
let rβ :
AdjoinRoot ((X : Polynomial (AdjoinRoot Pβ)) ^ k) ββ[π] AdjoinRoot (Pβ ^ k) :=
AlgEquiv.restrictScalars π eβ
let rβ :
AdjoinRoot ((X : Polynomial (AdjoinRoot Pβ)) ^ k) ββ[π] AdjoinRoot (Pβ ^ k) :=
AlgEquiv.restrictScalars π eβ
have hTrunc :
Nonempty
(AdjoinRoot ((X : Polynomial (AdjoinRoot Pβ)) ^ k) ββ[π]
AdjoinRoot ((X : Polynomial (AdjoinRoot Pβ)) ^ k)) :=
(nonempty_algEquiv_adjoinRoot_X_pow_iff_nonempty_algEquiv_base
(π := π) (A := AdjoinRoot Pβ) (B := AdjoinRoot Pβ) (k := k) hk).2
β¨eBaseβ©
rcases hTrunc with β¨eTruncβ©
exact β¨rβ.symm.trans (eTrunc.trans rβ)β©end SomeLocalRings