The areas / V11. Fields and Galois theory
Mathlib.RingTheory.Trace.Basic
51 declarations. Mathlib docs · Source
Trace for (finite) ring extensions.
Suppose we have an R-algebra S with a finite basis. For each s : S,
the trace of the linear map given by multiplying by s gives information about
the roots of the minimal polynomial of s over R.
Main definitions
Algebra.embeddingsMatrix A C b : Matrix κ (B →ₐ[A] C) Cis the matrix whose(i, σ)coefficient isσ (b i).Algebra.embeddingsMatrixReindex A C b e : Matrix κ κ Cis the matrix whose(i, j)coefficient isσⱼ (b i), whereσⱼ : B →ₐ[A] Cis the embedding corresponding toj : κgiven by a bijectione : κ ≃ (B →ₐ[A] C).Module.Basis.traceDual: The dual basis of a basis under the trace form in a finite separable extension.
Main results
trace_eq_sum_embeddings: the trace ofx : K(x)is the sum of all embeddings ofxinto an algebraically closed fieldtraceForm_nondegenerate: the trace form over a separable extension is a nondegenerate bilinear formModule.Basis.traceDual_powerBasis_eq: The dual basis of a power basis{1, x, x²...}under the trace form isaᵢ / f'(x), withfbeing the minpoly ofxandf / (X - x) = ∑ aᵢxⁱ.
References
- https://en.wikipedia.org/wiki/Field_trace
theorem Algebra.traceForm_toMatrix_powerBasis E1 #
∀ {R : Type u_1} {S : Type u_2} [inst : CommRing R] [inst_1 : CommRing S] [inst_2 : Algebra R S] (h : PowerBasis R S),
(LinearMap.BilinForm.toMatrix h.basis) (Algebra.traceForm R S) =
Matrix.of fun i j ↦ (Algebra.trace R S) (h.gen ^ (↑i + ↑j))
theorem PowerBasis.trace_gen_eq_nextCoeff_minpoly E1 #
∀ {S : Type u_2} [inst : CommRing S] {K : Type u_3} [inst_1 : Field K] [inst_2 : Algebra K S] [Nontrivial S]
(pb : PowerBasis K S), (Algebra.trace K S) pb.gen = -(minpoly K pb.gen).nextCoeff
Given pb : PowerBasis K S, the trace of pb.gen is -(minpoly K pb.gen).nextCoeff.
theorem PowerBasis.trace_gen_eq_sum_roots E1 #
∀ {S : Type u_2} [inst : CommRing S] {K : Type u_3} [inst_1 : Field K] {F : Type u_5} [inst_2 : Field F]
[inst_3 : Algebra K S] [inst_4 : Algebra K F] [Nontrivial S] (pb : PowerBasis K S),
(Polynomial.map (algebraMap K F) (minpoly K pb.gen)).Splits →
(algebraMap K F) ((Algebra.trace K S) pb.gen) = ((minpoly K pb.gen).aroots F).sum
Given pb : PowerBasis K S, then the trace of pb.gen is
((minpoly K pb.gen).aroots F).sum.
theorem IntermediateField.AdjoinSimple.trace_gen_eq_zero E1 #
∀ {K : Type u_3} {L : Type u_4} [inst : Field K] [inst_1 : Field L] [inst_2 : Algebra K L] {x : L},
¬IsIntegral K x → (Algebra.trace K ↥K⟮x⟯) (IntermediateField.AdjoinSimple.gen K x) = 0
theorem IntermediateField.AdjoinSimple.trace_gen_eq_sum_roots E1 #
∀ {K : Type u_3} {L : Type u_4} [inst : Field K] [inst_1 : Field L] [inst_2 : Algebra K L] {F : Type u_5}
[inst_3 : Field F] [inst_4 : Algebra K F] (x : L),
(Polynomial.map (algebraMap K F) (minpoly K x)).Splits →
(algebraMap K F) ((Algebra.trace K ↥K⟮x⟯) (IntermediateField.AdjoinSimple.gen K x)) = ((minpoly K x).aroots F).sum
theorem trace_eq_trace_adjoin E1 #
∀ (K : Type u_3) {L : Type u_4} [inst : Field K] [inst_1 : Field L] [inst_2 : Algebra K L] [FiniteDimensional K L]
(x : L),
(Algebra.trace K L) x = Module.finrank (↥K⟮x⟯) L • (Algebra.trace K ↥K⟮x⟯) (IntermediateField.AdjoinSimple.gen K x)
theorem trace_adjoinSimpleGen E1 #
∀ {K : Type u_3} {L : Type u_4} [inst : Field K] [inst_1 : Field L] [inst_2 : Algebra K L] {x : L},
IsIntegral K x → (Algebra.trace K ↥K⟮x⟯) (IntermediateField.AdjoinSimple.gen K x) = -(minpoly K x).nextCoeff
Trace of the generator of a simple adjoin equals negative of the next coefficient of its minimal polynomial coefficient.
theorem trace_eq_finrank_mul_minpoly_nextCoeff E1 #
∀ (K : Type u_3) {L : Type u_4} [inst : Field K] [inst_1 : Field L] [inst_2 : Algebra K L] [FiniteDimensional K L]
(x : L), (Algebra.trace K L) x = ↑(Module.finrank (↥K⟮x⟯) L) * -(minpoly K x).nextCoeff
theorem trace_eq_sum_roots E1 #
∀ {K : Type u_3} {L : Type u_4} [inst : Field K] [inst_1 : Field L] [inst_2 : Algebra K L] {F : Type u_5}
[inst_3 : Field F] [inst_4 : Algebra K F] [FiniteDimensional K L] {x : L},
(Polynomial.map (algebraMap K F) (minpoly K x)).Splits →
(algebraMap K F) ((Algebra.trace K L) x) = Module.finrank (↥K⟮x⟯) L • ((minpoly K x).aroots F).sum
theorem Algebra.isIntegral_trace E1 #
∀ {R : Type u_1} [inst : CommRing R] {L : Type u_4} [inst_1 : Field L] {F : Type u_5} [inst_2 : Field F]
[inst_3 : Algebra R L] [inst_4 : Algebra L F] [inst_5 : Algebra R F] [IsScalarTower R L F] [FiniteDimensional L F]
{x : F}, IsIntegral R x → IsIntegral R ((Algebra.trace L F) x)
theorem Algebra.trace_eq_of_algEquiv E1 #
∀ {A : Type u_6} {B : Type u_7} {C : Type u_8} [inst : CommRing A] [inst_1 : CommRing B] [inst_2 : CommRing C]
[inst_3 : Algebra A B] [inst_4 : Algebra A C] (e : B ≃ₐ[A] C) (x : B),
(Algebra.trace A C) (e x) = (Algebra.trace A B) x
theorem Algebra.trace_eq_of_ringEquiv E1 #
∀ {A : Type u_6} {B : Type u_7} {C : Type u_8} [inst : CommRing A] [inst_1 : CommRing B] [inst_2 : CommRing C]
[inst_3 : Algebra A C] [inst_4 : Algebra B C] (e : A ≃+* B),
(algebraMap B C).comp ↑e = algebraMap A C → ∀ (x : C), e ((Algebra.trace A C) x) = (Algebra.trace B C) x
theorem Algebra.trace_eq_of_equiv_equiv E1 #
∀ {A₁ : Type u_6} {B₁ : Type u_7} {A₂ : Type u_8} {B₂ : Type u_9} [inst : CommRing A₁] [inst_1 : CommRing B₁]
[inst_2 : CommRing A₂] [inst_3 : CommRing B₂] [inst_4 : Algebra A₁ B₁] [inst_5 : Algebra A₂ B₂] (e₁ : A₁ ≃+* A₂)
(e₂ : B₁ ≃+* B₂),
(algebraMap A₂ B₂).comp ↑e₁ = (↑e₂).comp (algebraMap A₁ B₁) →
∀ (x : B₁), (Algebra.trace A₁ B₁) x = e₁.symm ((Algebra.trace A₂ B₂) (e₂ x))
theorem trace_eq_sum_embeddings_gen E1 #
∀ {K : Type u_3} {L : Type u_4} [inst : Field K] [inst_1 : Field L] [inst_2 : Algebra K L] (E : Type u_6)
[inst_3 : Field E] [inst_4 : Algebra K E] (pb : PowerBasis K L),
(Polynomial.map (algebraMap K E) (minpoly K pb.gen)).Splits →
IsSeparable K pb.gen → (algebraMap K E) ((Algebra.trace K L) pb.gen) = ∑ σ, σ pb.gen
theorem sum_embeddings_eq_finrank_mul E1 #
∀ {K : Type u_3} {L : Type u_4} [inst : Field K] [inst_1 : Field L] [inst_2 : Algebra K L] (F : Type u_5)
[inst_3 : Field F] [inst_4 : Algebra L F] [inst_5 : Algebra K F] [IsScalarTower K L F] (E : Type u_6)
[inst_7 : Field E] [inst_8 : Algebra K E] [IsAlgClosed E] [inst_10 : FiniteDimensional K F] [Algebra.IsSeparable K F]
(pb : PowerBasis K L), ∑ σ, σ ((algebraMap L F) pb.gen) = Module.finrank L F • ∑ σ, σ pb.gen
theorem trace_eq_sum_embeddings E3 #
∀ {K : Type u_3} {L : Type u_4} [inst : Field K] [inst_1 : Field L] [inst_2 : Algebra K L] (E : Type u_6)
[inst_3 : Field E] [inst_4 : Algebra K E] [IsAlgClosed E] [inst_6 : FiniteDimensional K L] [Algebra.IsSeparable K L]
{x : L}, (algebraMap K E) ((Algebra.trace K L) x) = ∑ σ, σ x
theorem trace_eq_sum_automorphisms E1 #
∀ {K : Type u_3} {L : Type u_4} [inst : Field K] [inst_1 : Field L] [inst_2 : Algebra K L] (x : L)
[inst_3 : FiniteDimensional K L] [IsGalois K L], (algebraMap K L) ((Algebra.trace K L) x) = ∑ σ, σ x
theorem Algebra.trace_eq_zero_of_not_isSeparable E1 #
∀ {K : Type u_3} {L : Type u_4} [inst : Field K] [inst_1 : Field L] [inst_2 : Algebra K L],
¬Algebra.IsSeparable K L → Algebra.trace K L = 0
def Algebra.traceMatrix E1 #
{κ : Type w} →
(A : Type u) → {B : Type v} → [inst : CommRing A] → [inst_1 : CommRing B] → [Algebra A B] → (κ → B) → Matrix κ κ A
Given an A-algebra B and b, a κ-indexed family of elements of B, we define
traceMatrix A b as the matrix whose (i j)-th element is the trace of b i * b j.
theorem Algebra.traceMatrix_apply E0 #
∀ {κ : Type w} (A : Type u) {B : Type v} [inst : CommRing A] [inst_1 : CommRing B] [inst_2 : Algebra A B] (b : κ → B)
(i j : κ), Algebra.traceMatrix A b i j = ((Algebra.traceForm A B) (b i)) (b j)
theorem Algebra.traceMatrix_reindex E1 #
∀ {κ : Type w} (A : Type u) {B : Type v} [inst : CommRing A] [inst_1 : CommRing B] [inst_2 : Algebra A B]
{κ' : Type u_6} (b : Module.Basis κ A B) (f : κ ≃ κ'),
Algebra.traceMatrix A ⇑(b.reindex f) = (Matrix.reindex f f) (Algebra.traceMatrix A ⇑b)
theorem Algebra.traceMatrix_of_matrix_vecMul E1 #
∀ {κ : Type w} {A : Type u} {B : Type v} [inst : CommRing A] [inst_1 : CommRing B] [inst_2 : Algebra A B]
{κ' : Type u_6} [inst_3 : Fintype κ] (b : κ → B) (P : Matrix κ κ' A),
Algebra.traceMatrix A (Matrix.vecMul b (P.map ⇑(algebraMap A B))) = P.transpose * Algebra.traceMatrix A b * P
theorem Algebra.traceMatrix_of_matrix_mulVec E1 #
∀ {κ : Type w} {A : Type u} {B : Type v} [inst : CommRing A] [inst_1 : CommRing B] [inst_2 : Algebra A B]
{κ' : Type u_6} [inst_3 : Fintype κ] (b : κ → B) (P : Matrix κ' κ A),
Algebra.traceMatrix A ((P.map ⇑(algebraMap A B)).mulVec b) = P * Algebra.traceMatrix A b * P.transpose
theorem Algebra.traceMatrix_of_basis E1 #
∀ {κ : Type w} {A : Type u} {B : Type v} [inst : CommRing A] [inst_1 : CommRing B] [inst_2 : Algebra A B]
[inst_3 : Fintype κ] [inst_4 : DecidableEq κ] (b : Module.Basis κ A B),
Algebra.traceMatrix A ⇑b = (LinearMap.BilinForm.toMatrix b) (Algebra.traceForm A B)
theorem Algebra.traceMatrix_of_basis_mulVec E1 #
∀ {ι : Type w} {A : Type u} {B : Type v} [inst : CommRing A] [inst_1 : CommRing B] [inst_2 : Algebra A B]
[inst_3 : Fintype ι] (b : Module.Basis ι A B) (z : B),
(Algebra.traceMatrix A ⇑b).mulVec (b.equivFun z) = fun i ↦ (Algebra.trace A B) (z * b i)
def Algebra.embeddingsMatrix E1 #
{κ : Type w} →
(A : Type u) →
{B : Type v} →
(C : Type z) →
[inst : CommRing A] →
[inst_1 : CommRing B] →
[inst_2 : Algebra A B] → [inst_3 : CommRing C] → [inst_4 : Algebra A C] → (κ → B) → Matrix κ (B →ₐ[A] C) C
embeddingsMatrix A C b : Matrix κ (B →ₐ[A] C) C is the matrix whose (i, σ) coefficient is
σ (b i). It is mostly useful for fields when Fintype.card κ = finrank A B and C is
algebraically closed.
theorem Algebra.embeddingsMatrix_apply E0 #
∀ {κ : Type w} (A : Type u) {B : Type v} (C : Type z) [inst : CommRing A] [inst_1 : CommRing B] [inst_2 : Algebra A B]
[inst_3 : CommRing C] [inst_4 : Algebra A C] (b : κ → B) (i : κ) (σ : B →ₐ[A] C),
Algebra.embeddingsMatrix A C b i σ = σ (b i)
def Algebra.embeddingsMatrixReindex E1 #
{κ : Type w} →
(A : Type u) →
{B : Type v} →
(C : Type z) →
[inst : CommRing A] →
[inst_1 : CommRing B] →
[inst_2 : Algebra A B] →
[inst_3 : CommRing C] → [inst_4 : Algebra A C] → (κ → B) → κ ≃ (B →ₐ[A] C) → Matrix κ κ C
embeddingsMatrixReindex A C b e : Matrix κ κ C is the matrix whose (i, j) coefficient
is σⱼ (b i), where σⱼ : B →ₐ[A] C is the embedding corresponding to j : κ given by a
bijection e : κ ≃ (B →ₐ[A] C). It is mostly useful for fields and C is algebraically closed.
In this case, in presence of h : Fintype.card κ = finrank A B, one can take
e := equivOfCardEq ((AlgHom.card A B C).trans h.symm).
theorem Algebra.embeddingsMatrixReindex_eq_vandermonde E1 #
∀ {A : Type u} {B : Type v} (C : Type z) [inst : CommRing A] [inst_1 : CommRing B] [inst_2 : Algebra A B]
[inst_3 : CommRing C] [inst_4 : Algebra A C] (pb : PowerBasis A B) (e : Fin pb.dim ≃ (B →ₐ[A] C)),
Algebra.embeddingsMatrixReindex A C (⇑pb.basis) e = (Matrix.vandermonde fun i ↦ (e i) pb.gen).transpose
theorem Algebra.traceMatrix_eq_embeddingsMatrix_mul_trans E1 #
∀ (K : Type u_3) {L : Type u_4} [inst : Field K] [inst_1 : Field L] [inst_2 : Algebra K L] {κ : Type w} (E : Type z)
[inst_3 : Field E] [inst_4 : Algebra K E] [inst_5 : Module.Finite K L] [Algebra.IsSeparable K L] [IsAlgClosed E]
(b : κ → L),
(Algebra.traceMatrix K b).map ⇑(algebraMap K E) =
Algebra.embeddingsMatrix K E b * (Algebra.embeddingsMatrix K E b).transpose
theorem Algebra.traceMatrix_eq_embeddingsMatrixReindex_mul_trans E1 #
∀ (K : Type u_3) {L : Type u_4} [inst : Field K] [inst_1 : Field L] [inst_2 : Algebra K L] {κ : Type w} (E : Type z)
[inst_3 : Field E] [inst_4 : Algebra K E] [Module.Finite K L] [Algebra.IsSeparable K L] [IsAlgClosed E] (b : κ → L)
[inst_8 : Fintype κ] (e : κ ≃ (L →ₐ[K] E)),
(Algebra.traceMatrix K b).map ⇑(algebraMap K E) =
Algebra.embeddingsMatrixReindex K E b e * (Algebra.embeddingsMatrixReindex K E b e).transpose
theorem det_traceMatrix_ne_zero' E1 #
∀ {K : Type u_3} {L : Type u_4} [inst : Field K] [inst_1 : Field L] [inst_2 : Algebra K L] (pb : PowerBasis K L)
[Algebra.IsSeparable K L], (Algebra.traceMatrix K ⇑pb.basis).det ≠ 0
theorem det_traceForm_ne_zero E1 #
∀ {K : Type u_3} {L : Type u_4} [inst : Field K] [inst_1 : Field L] [inst_2 : Algebra K L] {ι : Type w}
[Algebra.IsSeparable K L] [inst_4 : Fintype ι] [inst_5 : DecidableEq ι] (b : Module.Basis ι K L),
((LinearMap.BilinForm.toMatrix b) (Algebra.traceForm K L)).det ≠ 0
theorem traceForm_nondegenerate E3 #
∀ (K : Type u_3) (L : Type u_4) [inst : Field K] [inst_1 : Field L] [inst_2 : Algebra K L] [FiniteDimensional K L]
[Algebra.IsSeparable K L], (Algebra.traceForm K L).Nondegenerate
Let $L/K$ be a finite extension of fields. If $L/K$ is separable,
then traceForm is nondegenerate.
theorem traceForm_nondegenerate_tfae E1 #
∀ (K : Type u_3) (L : Type u_4) [inst : Field K] [inst_1 : Field L] [inst_2 : Algebra K L] [FiniteDimensional K L],
[Algebra.IsSeparable K L, Algebra.trace K L ≠ 0, (Algebra.traceForm K L).Nondegenerate].TFAE
theorem Algebra.trace_ne_zero E1 #
∀ (K : Type u_3) (L : Type u_4) [inst : Field K] [inst_1 : Field L] [inst_2 : Algebra K L] [FiniteDimensional K L]
[Algebra.IsSeparable K L], Algebra.trace K L ≠ 0
theorem Algebra.trace_surjective E1 #
∀ (K : Type u_3) (L : Type u_4) [inst : Field K] [inst_1 : Field L] [inst_2 : Algebra K L] [FiniteDimensional K L]
[Algebra.IsSeparable K L], Function.Surjective ⇑(Algebra.trace K L)
theorem Algebra.isNilpotent_trace_of_isNilpotent E1 #
∀ {R : Type u_6} {S : Type u_7} [inst : CommRing R] [inst_1 : CommRing S] [inst_2 : Algebra R S] {x : S},
IsNilpotent x → IsNilpotent ((Algebra.trace R S) x)
The trace of a nilpotent element is nilpotent.
def Module.Basis.traceDual E3 #
{K : Type u_3} →
{L : Type u_4} →
[inst : Field K] →
[inst_1 : Field L] →
[inst_2 : Algebra K L] →
{ι : Type w} →
[FiniteDimensional K L] →
[Algebra.IsSeparable K L] → [Finite ι] → [DecidableEq ι] → Module.Basis ι K L → Module.Basis ι K L
The dual basis of a basis under the trace form in a finite separable extension.
theorem Module.Basis.traceDual_def E0 #
∀ {K : Type u_3} {L : Type u_4} [inst : Field K] [inst_1 : Field L] [inst_2 : Algebra K L] {ι : Type w}
[inst_3 : FiniteDimensional K L] [inst_4 : Algebra.IsSeparable K L] [inst_5 : Finite ι] [inst_6 : DecidableEq ι]
(b : Module.Basis ι K L), b.traceDual = (Algebra.traceForm K L).dualBasis ⋯ b
theorem Module.Basis.traceDual_repr_apply E0 #
∀ {K : Type u_3} {L : Type u_4} [inst : Field K] [inst_1 : Field L] [inst_2 : Algebra K L] {ι : Type w}
[inst_3 : FiniteDimensional K L] [inst_4 : Algebra.IsSeparable K L] [inst_5 : Finite ι] [inst_6 : DecidableEq ι]
(b : Module.Basis ι K L) (x : L) (i : ι), (b.traceDual.repr x) i = ((Algebra.traceForm K L) x) (b i)
theorem Module.Basis.trace_traceDual_mul E0 #
∀ {K : Type u_3} {L : Type u_4} [inst : Field K] [inst_1 : Field L] [inst_2 : Algebra K L] {ι : Type w}
[inst_3 : FiniteDimensional K L] [inst_4 : Algebra.IsSeparable K L] [inst_5 : Finite ι] [inst_6 : DecidableEq ι]
(b : Module.Basis ι K L) (i j : ι), (Algebra.trace K L) (b.traceDual i * b j) = if j = i then 1 else 0
theorem Module.Basis.trace_mul_traceDual E0 #
∀ {K : Type u_3} {L : Type u_4} [inst : Field K] [inst_1 : Field L] [inst_2 : Algebra K L] {ι : Type w}
[inst_3 : FiniteDimensional K L] [inst_4 : Algebra.IsSeparable K L] [inst_5 : Finite ι] [inst_6 : DecidableEq ι]
(b : Module.Basis ι K L) (i j : ι), (Algebra.trace K L) (b i * b.traceDual j) = if i = j then 1 else 0
theorem Module.Basis.traceDual_traceDual E0 #
∀ {K : Type u_3} {L : Type u_4} [inst : Field K] [inst_1 : Field L] [inst_2 : Algebra K L] {ι : Type w}
[inst_3 : FiniteDimensional K L] [inst_4 : Algebra.IsSeparable K L] [inst_5 : Finite ι] [inst_6 : DecidableEq ι]
(b : Module.Basis ι K L), b.traceDual.traceDual = b
theorem Module.Basis.traceDual_involutive E1 #
∀ (K : Type u_3) (L : Type u_4) [inst : Field K] [inst_1 : Field L] [inst_2 : Algebra K L] {ι : Type w}
[inst_3 : FiniteDimensional K L] [inst_4 : Algebra.IsSeparable K L] [inst_5 : Finite ι] [inst_6 : DecidableEq ι],
Function.Involutive Module.Basis.traceDual
theorem Module.Basis.traceDual_injective E1 #
∀ (K : Type u_3) (L : Type u_4) [inst : Field K] [inst_1 : Field L] [inst_2 : Algebra K L] {ι : Type w}
[inst_3 : FiniteDimensional K L] [inst_4 : Algebra.IsSeparable K L] [inst_5 : Finite ι] [inst_6 : DecidableEq ι],
Function.Injective Module.Basis.traceDual
theorem Module.Basis.traceDual_inj E0 #
∀ {K : Type u_3} {L : Type u_4} [inst : Field K] [inst_1 : Field L] [inst_2 : Algebra K L] {ι : Type w}
[inst_3 : FiniteDimensional K L] [inst_4 : Algebra.IsSeparable K L] [inst_5 : Finite ι] [inst_6 : DecidableEq ι]
{b b' : Module.Basis ι K L}, b.traceDual = b'.traceDual ↔ b = b'
theorem Module.Basis.traceDual_eq_iff E0 #
∀ {K : Type u_3} {L : Type u_4} [inst : Field K] [inst_1 : Field L] [inst_2 : Algebra K L] {ι : Type w}
[inst_3 : FiniteDimensional K L] [inst_4 : Algebra.IsSeparable K L] [inst_5 : Finite ι] [inst_6 : DecidableEq ι]
{b : Module.Basis ι K L} {v : ι → L},
⇑b.traceDual = v ↔ ∀ (i j : ι), ((Algebra.traceForm K L) (v i)) (b j) = if j = i then 1 else 0
A family of vectors v is the dual for the trace of the basis b if and only if
∀ i j, Tr(v i * b j) = δ_ij.
theorem Module.Basis.traceDual_powerBasis_eq E3 #
∀ {K : Type u_3} {L : Type u_4} [inst : Field K] [inst_1 : Field L] [inst_2 : Algebra K L]
[inst_3 : FiniteDimensional K L] [inst_4 : Algebra.IsSeparable K L] (pb : PowerBasis K L) (i : Fin pb.dim),
pb.basis.traceDual i =
(minpolyDiv K pb.gen).coeff ↑i / (Polynomial.aeval pb.gen) (Polynomial.derivative (minpoly K pb.gen))
The dual basis of a powerbasis {1, x, x²...} under the trace form is aᵢ / f'(x),
with f being the minimal polynomial of x and f / (X - x) = ∑ aᵢxⁱ.
theorem Algebra.IsQuadraticExtension.sq_sub_trace_smul_add_norm_eq_zero E1 #
∀ (R : Type u_6) {A : Type u_7} [inst : CommRing R] [inst_1 : StrongRankCondition R] [inst_2 : CommRing A]
[inst_3 : Algebra R A] [Algebra.IsQuadraticExtension R A] (a : A),
a ^ 2 - (Algebra.trace R A) a • a + (algebraMap R A) ((Algebra.norm R) a) = 0
Every element of a quadratic extension satisfies its characteristic equation.
theorem Algebra.IsQuadraticExtension.sq_eq_trace_smul_sub_norm E1 #
∀ (R : Type u_6) {A : Type u_7} [inst : CommRing R] [inst_1 : StrongRankCondition R] [inst_2 : CommRing A]
[inst_3 : Algebra R A] [Algebra.IsQuadraticExtension R A] (a : A),
a ^ 2 = (Algebra.trace R A) a • a - (algebraMap R A) ((Algebra.norm R) a)
The square of an element of a quadratic extension in terms of its trace and norm.