The Mathlib Handbook

The volumes of the handbook are not written yet. This site shows the map of Mathlib that they will follow, at Mathlib 4472534b60.

The areas / V11. Fields and Galois theory

Mathlib.RingTheory.PowerBasis

72 declarations. Mathlib docs · Source

Power basis

This file defines a structure PowerBasis R S, giving a basis of the R-algebra S as a finite list of powers 1, x, ..., x^n. For example, if x is algebraic over a ring/field, adjoining x gives a PowerBasis structure generated by x.

Definitions

  • PowerBasis R A: a structure containing an x and an n such that 1, x, ..., x^n is a basis for the R-algebra A (viewed as an R-module).

  • finrank (hf : f ≠ 0) : Module.finrank K (AdjoinRoot f) = f.natDegree, the dimension of AdjoinRoot f equals the degree of f

  • PowerBasis.lift (pb : PowerBasis R S): if y : S' satisfies the same equations as pb.gen, this is the map S →ₐ[R] S' sending pb.gen to y

  • PowerBasis.equiv: if two power bases satisfy the same equations, they are equivalent as algebras

Implementation notes

Throughout this file, R, S, A, B ... are CommRings, and K, L, ... are Fields. S is an R-algebra, B is an A-algebra, L is a K-algebra.

Tags

power basis, powerbasis

def PowerBasis.ctorIdx E1 #

{R : Type u_6} → {S : Type u_7} → {inst : CommRing R} → {inst_1 : Ring S} → {inst_2 : Algebra R S} → PowerBasis R S → ℕ

theorem PowerBasis.mk.injEq E0 #

∀ {R : Type u_6} {S : Type u_7} [inst : CommRing R] [inst_1 : Ring S] [inst_2 : Algebra R S] (gen : S) (dim : ℕ)
  (basis : Module.Basis (Fin dim) R S) (basis_eq_pow : ∀ (i : Fin dim), basis i = gen ^ ↑i) (gen_1 : S) (dim_1 : ℕ)
  (basis_1 : Module.Basis (Fin dim_1) R S) (basis_eq_pow_1 : ∀ (i : Fin dim_1), basis_1 i = gen_1 ^ ↑i),
  ({ gen := gen, dim := dim, basis := basis, basis_eq_pow := basis_eq_pow } =
      { gen := gen_1, dim := dim_1, basis := basis_1, basis_eq_pow := basis_eq_pow_1 }) =
    (gen = gen_1 ∧ dim = dim_1 ∧ basis ≍ basis_1)

theorem PowerBasis.equivOfRoot.congr_simp E1 #

∀ {S : Type u_2} [inst : Ring S] {A : Type u_3} [inst_1 : CommRing A] [inst_2 : Algebra A S] {S' : Type u_6}
  [inst_3 : Ring S'] [inst_4 : Algebra A S'] (pb pb_1 : PowerBasis A S) (e_pb : pb = pb_1) (pb' pb'_1 : PowerBasis A S')
  (e_pb' : pb' = pb'_1) (h₁ : (Polynomial.aeval pb.gen) (minpoly A pb'.gen) = 0)
  (h₂ : (Polynomial.aeval pb'.gen) (minpoly A pb.gen) = 0), pb.equivOfRoot pb' h₁ h₂ = pb_1.equivOfRoot pb'_1 ⋯ ⋯

theorem PowerBasis.mk.inj E1 #

∀ {R : Type u_6} {S : Type u_7} {inst : CommRing R} {inst_1 : Ring S} {inst_2 : Algebra R S} {gen : S} {dim : ℕ}
  {basis : Module.Basis (Fin dim) R S} {basis_eq_pow : ∀ (i : Fin dim), basis i = gen ^ ↑i} {gen_1 : S} {dim_1 : ℕ}
  {basis_1 : Module.Basis (Fin dim_1) R S} {basis_eq_pow_1 : ∀ (i : Fin dim_1), basis_1 i = gen_1 ^ ↑i},
  { gen := gen, dim := dim, basis := basis, basis_eq_pow := basis_eq_pow } =
      { gen := gen_1, dim := dim_1, basis := basis_1, basis_eq_pow := basis_eq_pow_1 } →
    gen = gen_1 ∧ dim = dim_1 ∧ basis ≍ basis_1

theorem PowerBasis.lift.congr_simp E1 #

∀ {S : Type u_2} [inst : Ring S] {A : Type u_3} [inst_1 : CommRing A] [inst_2 : Algebra A S] {S' : Type u_6}
  [inst_3 : Ring S'] [inst_4 : Algebra A S'] (pb pb_1 : PowerBasis A S) (e_pb : pb = pb_1) (y y_1 : S') (e_y : y = y_1)
  (hy : (Polynomial.aeval y) (minpoly A pb.gen) = 0), pb.lift y hy = pb_1.lift y_1 ⋯

structure PowerBasis E1 #

(R : Type u_6) → (S : Type u_7) → [inst : CommRing R] → [inst_1 : Ring S] → [Algebra R S] → Type (max u_6 u_7)

pb : PowerBasis R S states that 1, pb.gen, ..., pb.gen ^ (pb.dim - 1) is a basis for the R-algebra S (viewed as R-module).

This is a structure, not a class, since the same algebra can have many power bases. For the common case where S is defined by adjoining an integral element to R, the canonical power basis is given by {Algebra,IntermediateField}.adjoin.powerBasis.

ctor PowerBasis.mk E0 #

{R : Type u_6} →
  {S : Type u_7} →
    [inst : CommRing R] →
      [inst_1 : Ring S] →
        [inst_2 : Algebra R S] →
          (gen : S) →
            (dim : ℕ) → (basis : Module.Basis (Fin dim) R S) → (∀ (i : Fin dim), basis i = gen ^ ↑i) → PowerBasis R S

abbrev PowerBasis.gen E1 #

{R : Type u_6} → {S : Type u_7} → [inst : CommRing R] → [inst_1 : Ring S] → [inst_2 : Algebra R S] → PowerBasis R S → S

abbrev PowerBasis.dim E1 #

{R : Type u_6} → {S : Type u_7} → [inst : CommRing R] → [inst_1 : Ring S] → [inst_2 : Algebra R S] → PowerBasis R S → ℕ

abbrev PowerBasis.basis E1 #

{R : Type u_6} →
  {S : Type u_7} →
    [inst : CommRing R] →
      [inst_1 : Ring S] → [inst_2 : Algebra R S] → (self : PowerBasis R S) → Module.Basis (Fin self.dim) R S

theorem PowerBasis.basis_eq_pow E1 #

∀ {R : Type u_6} {S : Type u_7} [inst : CommRing R] [inst_1 : Ring S] [inst_2 : Algebra R S] (self : PowerBasis R S)
  (i : Fin self.dim), self.basis i = self.gen ^ ↑i

theorem PowerBasis.coe_basis E0 #

∀ {R : Type u_1} {S : Type u_2} [inst : CommRing R] [inst_1 : Ring S] [inst_2 : Algebra R S] (pb : PowerBasis R S),
  ⇑pb.basis = fun i ↦ pb.gen ^ ↑i

theorem PowerBasis.finite E1 #

∀ {R : Type u_1} {S : Type u_2} [inst : CommRing R] [inst_1 : Ring S] [inst_2 : Algebra R S] (pb : PowerBasis R S),
  Module.Finite R S

Cannot be an instance because PowerBasis cannot be a class.

def Module.Basis.PowerBasis E1 #

{R : Type u_1} →
  {S : Type u_2} →
    [inst : CommRing R] →
      [inst_1 : Ring S] →
        [inst_2 : Algebra R S] →
          {ι : Type u_6} →
            [inst_3 : Fintype ι] →
              (B : Module.Basis ι R S) →
                {x : S} → (e : ι ≃ Fin (Fintype.card ι)) → (∀ (i : ι), B i = x ^ ↑(e i)) → PowerBasis R S

Construct a power basis from a basis consisting of powers of an element.

theorem Module.Basis.PowerBasis_gen E0 #

∀ {R : Type u_1} {S : Type u_2} [inst : CommRing R] [inst_1 : Ring S] [inst_2 : Algebra R S] {ι : Type u_6}
  [inst_3 : Fintype ι] (B : Module.Basis ι R S) {x : S} (e : ι ≃ Fin (Fintype.card ι))
  (hx : ∀ (i : ι), B i = x ^ ↑(e i)), (B.PowerBasis e hx).gen = x

theorem PowerBasis.finrank E1 #

∀ {R : Type u_1} {S : Type u_2} [inst : CommRing R] [inst_1 : Ring S] [inst_2 : Algebra R S] [StrongRankCondition R]
  (pb : PowerBasis R S), Module.finrank R S = pb.dim

theorem PowerBasis.mem_span_pow' E0 #

∀ {R : Type u_1} {S : Type u_2} [inst : CommRing R] [inst_1 : Ring S] [inst_2 : Algebra R S] {x y : S} {d : ℕ},
  y ∈ Submodule.span R (Set.range fun i ↦ x ^ ↑i) ↔ ∃ f, f.degree < ↑d ∧ y = (Polynomial.aeval x) f

theorem PowerBasis.mem_span_pow E0 #

∀ {R : Type u_1} {S : Type u_2} [inst : CommRing R] [inst_1 : Ring S] [inst_2 : Algebra R S] {x y : S} {d : ℕ},
  d ≠ 0 → (y ∈ Submodule.span R (Set.range fun i ↦ x ^ ↑i) ↔ ∃ f, f.natDegree < d ∧ y = (Polynomial.aeval x) f)

theorem PowerBasis.dim_ne_zero E1 #

∀ {R : Type u_1} {S : Type u_2} [inst : CommRing R] [inst_1 : Ring S] [inst_2 : Algebra R S] [Nontrivial S]
  (pb : PowerBasis R S), pb.dim ≠ 0

theorem PowerBasis.dim_pos E1 #

∀ {R : Type u_1} {S : Type u_2} [inst : CommRing R] [inst_1 : Ring S] [inst_2 : Algebra R S] [Nontrivial S]
  (pb : PowerBasis R S), 0 < pb.dim

theorem PowerBasis.exists_eq_aeval E1 #

∀ {R : Type u_1} {S : Type u_2} [inst : CommRing R] [inst_1 : Ring S] [inst_2 : Algebra R S] [Nontrivial S]
  (pb : PowerBasis R S) (y : S), ∃ f, f.natDegree < pb.dim ∧ y = (Polynomial.aeval pb.gen) f

theorem PowerBasis.exists_eq_aeval' E1 #

∀ {R : Type u_1} {S : Type u_2} [inst : CommRing R] [inst_1 : Ring S] [inst_2 : Algebra R S] (pb : PowerBasis R S)
  (y : S), ∃ f, y = (Polynomial.aeval pb.gen) f

theorem PowerBasis.algHom_ext E1 #

∀ {R : Type u_1} {S : Type u_2} [inst : CommRing R] [inst_1 : Ring S] [inst_2 : Algebra R S] {S' : Type u_6}
  [inst_3 : Semiring S'] [inst_4 : Algebra R S'] (pb : PowerBasis R S) ⦃f g : S →ₐ[R] S'⦄, f pb.gen = g pb.gen → f = g

theorem PowerBasis.exists_smodEq E1 #

∀ {A : Type u_3} {B : Type u_4} [inst : CommRing A] [inst_1 : CommRing B] [inst_2 : Algebra A B] (pb : PowerBasis A B)
  (b : B), ∃ a, b ≡ (algebraMap A B) a [SMOD Ideal.span {pb.gen}]

theorem PowerBasis.exists_gen_dvd_sub E1 #

∀ {A : Type u_3} {B : Type u_4} [inst : CommRing A] [inst_1 : CommRing B] [inst_2 : Algebra A B] (pb : PowerBasis A B)
  (b : B), ∃ a, pb.gen ∣ b - (algebraMap A B) a

def PowerBasis.minpolyGen E1 #

{S : Type u_2} →
  [inst : Ring S] → {A : Type u_3} → [inst_1 : CommRing A] → [inst_2 : Algebra A S] → PowerBasis A S → Polynomial A

pb.minpolyGen is the minimal polynomial for pb.gen.

theorem PowerBasis.aeval_minpolyGen E1 #

∀ {S : Type u_2} [inst : Ring S] {A : Type u_3} [inst_1 : CommRing A] [inst_2 : Algebra A S] (pb : PowerBasis A S),
  (Polynomial.aeval pb.gen) pb.minpolyGen = 0

theorem PowerBasis.minpolyGen_monic E1 #

∀ {S : Type u_2} [inst : Ring S] {A : Type u_3} [inst_1 : CommRing A] [inst_2 : Algebra A S] (pb : PowerBasis A S),
  pb.minpolyGen.Monic

theorem PowerBasis.dim_le_natDegree_of_root E1 #

∀ {S : Type u_2} [inst : Ring S] {A : Type u_3} [inst_1 : CommRing A] [inst_2 : Algebra A S] (pb : PowerBasis A S)
  {p : Polynomial A}, p ≠ 0 → (Polynomial.aeval pb.gen) p = 0 → pb.dim ≤ p.natDegree

theorem PowerBasis.dim_le_degree_of_root E1 #

∀ {S : Type u_2} [inst : Ring S] {A : Type u_3} [inst_1 : CommRing A] [inst_2 : Algebra A S] (h : PowerBasis A S)
  {p : Polynomial A}, p ≠ 0 → (Polynomial.aeval h.gen) p = 0 → ↑h.dim ≤ p.degree

theorem PowerBasis.degree_minpolyGen E1 #

∀ {S : Type u_2} [inst : Ring S] {A : Type u_3} [inst_1 : CommRing A] [inst_2 : Algebra A S] [Nontrivial A]
  (pb : PowerBasis A S), pb.minpolyGen.degree = ↑pb.dim

theorem PowerBasis.natDegree_minpolyGen E1 #

∀ {S : Type u_2} [inst : Ring S] {A : Type u_3} [inst_1 : CommRing A] [inst_2 : Algebra A S] [Nontrivial A]
  (pb : PowerBasis A S), pb.minpolyGen.natDegree = pb.dim

theorem PowerBasis.minpolyGen_eq E0 #

∀ {S : Type u_2} [inst : Ring S] {A : Type u_3} [inst_1 : CommRing A] [inst_2 : Algebra A S] (pb : PowerBasis A S),
  pb.minpolyGen = minpoly A pb.gen

theorem PowerBasis.isIntegral_gen E1 #

∀ {S : Type u_2} [inst : Ring S] {A : Type u_3} [inst_1 : CommRing A] [inst_2 : Algebra A S] (pb : PowerBasis A S),
  IsIntegral A pb.gen

theorem PowerBasis.degree_minpoly E0 #

∀ {S : Type u_2} [inst : Ring S] {A : Type u_3} [inst_1 : CommRing A] [inst_2 : Algebra A S] [Nontrivial A]
  (pb : PowerBasis A S), (minpoly A pb.gen).degree = ↑pb.dim

theorem PowerBasis.natDegree_minpoly E0 #

∀ {S : Type u_2} [inst : Ring S] {A : Type u_3} [inst_1 : CommRing A] [inst_2 : Algebra A S] [Nontrivial A]
  (pb : PowerBasis A S), (minpoly A pb.gen).natDegree = pb.dim

theorem PowerBasis.leftMulMatrix E1 #

∀ {S : Type u_2} [inst : Ring S] {A : Type u_3} [inst_1 : CommRing A] [inst_2 : Algebra A S] (pb : PowerBasis A S),
  (Algebra.leftMulMatrix pb.basis) pb.gen =
    Matrix.of fun i j ↦ if ↑j + 1 = pb.dim then -pb.minpolyGen.coeff ↑i else if ↑i = ↑j + 1 then 1 else 0

theorem PowerBasis.constr_pow_aeval E1 #

∀ {S : Type u_2} [inst : Ring S] {A : Type u_3} [inst_1 : CommRing A] [inst_2 : Algebra A S] {S' : Type u_6}
  [inst_3 : Ring S'] [inst_4 : Algebra A S'] (pb : PowerBasis A S) {y : S'},
  (Polynomial.aeval y) (minpoly A pb.gen) = 0 →
    ∀ (f : Polynomial A), ((pb.basis.constr A) fun i ↦ y ^ ↑i) ((Polynomial.aeval pb.gen) f) = (Polynomial.aeval y) f

theorem PowerBasis.constr_pow_gen E1 #

∀ {S : Type u_2} [inst : Ring S] {A : Type u_3} [inst_1 : CommRing A] [inst_2 : Algebra A S] {S' : Type u_6}
  [inst_3 : Ring S'] [inst_4 : Algebra A S'] (pb : PowerBasis A S) {y : S'},
  (Polynomial.aeval y) (minpoly A pb.gen) = 0 → ((pb.basis.constr A) fun i ↦ y ^ ↑i) pb.gen = y

theorem PowerBasis.constr_pow_algebraMap E1 #

∀ {S : Type u_2} [inst : Ring S] {A : Type u_3} [inst_1 : CommRing A] [inst_2 : Algebra A S] {S' : Type u_6}
  [inst_3 : Ring S'] [inst_4 : Algebra A S'] (pb : PowerBasis A S) {y : S'},
  (Polynomial.aeval y) (minpoly A pb.gen) = 0 →
    ∀ (x : A), ((pb.basis.constr A) fun i ↦ y ^ ↑i) ((algebraMap A S) x) = (algebraMap A S') x

theorem PowerBasis.constr_pow_mul E1 #

∀ {S : Type u_2} [inst : Ring S] {A : Type u_3} [inst_1 : CommRing A] [inst_2 : Algebra A S] {S' : Type u_6}
  [inst_3 : Ring S'] [inst_4 : Algebra A S'] (pb : PowerBasis A S) {y : S'},
  (Polynomial.aeval y) (minpoly A pb.gen) = 0 →
    ∀ (x x' : S),
      ((pb.basis.constr A) fun i ↦ y ^ ↑i) (x * x') =
        ((pb.basis.constr A) fun i ↦ y ^ ↑i) x * ((pb.basis.constr A) fun i ↦ y ^ ↑i) x'

def PowerBasis.lift E1 #

{S : Type u_2} →
  [inst : Ring S] →
    {A : Type u_3} →
      [inst_1 : CommRing A] →
        [inst_2 : Algebra A S] →
          {S' : Type u_6} →
            [inst_3 : Ring S'] →
              [inst_4 : Algebra A S'] →
                (pb : PowerBasis A S) → (y : S') → (Polynomial.aeval y) (minpoly A pb.gen) = 0 → S →ₐ[A] S'

pb.lift y hy is the algebra map sending pb.gen to y, where hy states the higher powers of y are the same as the higher powers of pb.gen.

See PowerBasis.liftEquiv for a bundled equiv sending ⟨y, hy⟩ to the algebra map.

theorem PowerBasis.lift_gen E0 #

∀ {S : Type u_2} [inst : Ring S] {A : Type u_3} [inst_1 : CommRing A] [inst_2 : Algebra A S] {S' : Type u_6}
  [inst_3 : Ring S'] [inst_4 : Algebra A S'] (pb : PowerBasis A S) (y : S')
  (hy : (Polynomial.aeval y) (minpoly A pb.gen) = 0), (pb.lift y hy) pb.gen = y

theorem PowerBasis.lift_aeval E0 #

∀ {S : Type u_2} [inst : Ring S] {A : Type u_3} [inst_1 : CommRing A] [inst_2 : Algebra A S] {S' : Type u_6}
  [inst_3 : Ring S'] [inst_4 : Algebra A S'] (pb : PowerBasis A S) (y : S')
  (hy : (Polynomial.aeval y) (minpoly A pb.gen) = 0) (f : Polynomial A),
  (pb.lift y hy) ((Polynomial.aeval pb.gen) f) = (Polynomial.aeval y) f

def PowerBasis.liftEquiv E1 #

{S : Type u_2} →
  [inst : Ring S] →
    {A : Type u_3} →
      [inst_1 : CommRing A] →
        [inst_2 : Algebra A S] →
          {S' : Type u_6} →
            [inst_3 : Ring S'] →
              [inst_4 : Algebra A S'] →
                (pb : PowerBasis A S) → (S →ₐ[A] S') ≃ { y // (Polynomial.aeval y) (minpoly A pb.gen) = 0 }

pb.liftEquiv states that roots of the minimal polynomial of pb.gen correspond to maps sending pb.gen to that root.

This is the bundled equiv version of PowerBasis.lift. If the codomain of the AlgHoms is an integral domain, then the roots form a multiset, see liftEquiv' for the corresponding statement.

theorem PowerBasis.liftEquiv_symm_apply E0 #

∀ {S : Type u_2} [inst : Ring S] {A : Type u_3} [inst_1 : CommRing A] [inst_2 : Algebra A S] {S' : Type u_6}
  [inst_3 : Ring S'] [inst_4 : Algebra A S'] (pb : PowerBasis A S)
  (y : { y // (Polynomial.aeval y) (minpoly A pb.gen) = 0 }), pb.liftEquiv.symm y = pb.lift ↑y ⋯

theorem PowerBasis.liftEquiv_apply_coe E0 #

∀ {S : Type u_2} [inst : Ring S] {A : Type u_3} [inst_1 : CommRing A] [inst_2 : Algebra A S] {S' : Type u_6}
  [inst_3 : Ring S'] [inst_4 : Algebra A S'] (pb : PowerBasis A S) (f : S →ₐ[A] S'), ↑(pb.liftEquiv f) = f pb.gen

def PowerBasis.liftEquiv' E1 #

{S : Type u_2} →
  [inst : Ring S] →
    {A : Type u_3} →
      {B : Type u_4} →
        [inst_1 : CommRing A] →
          [inst_2 : CommRing B] →
            [inst_3 : Algebra A B] →
              [inst_4 : Algebra A S] →
                [inst_5 : IsDomain B] → (pb : PowerBasis A S) → (S →ₐ[A] B) ≃ { y // y ∈ (minpoly A pb.gen).aroots B }

pb.liftEquiv' states that elements of the root set of the minimal polynomial of pb.gen correspond to maps sending pb.gen to that root.

theorem PowerBasis.liftEquiv'_apply_coe E0 #

∀ {S : Type u_2} [inst : Ring S] {A : Type u_3} {B : Type u_4} [inst_1 : CommRing A] [inst_2 : CommRing B]
  [inst_3 : Algebra A B] [inst_4 : Algebra A S] [inst_5 : IsDomain B] (pb : PowerBasis A S) (a : S →ₐ[A] B),
  ↑(pb.liftEquiv' a) = a pb.gen

theorem PowerBasis.liftEquiv'_symm_apply_apply E0 #

∀ {S : Type u_2} [inst : Ring S] {A : Type u_3} {B : Type u_4} [inst_1 : CommRing A] [inst_2 : CommRing B]
  [inst_3 : Algebra A B] [inst_4 : Algebra A S] [inst_5 : IsDomain B] (pb : PowerBasis A S)
  (a : { y // y ∈ (minpoly A pb.gen).aroots B }), ⇑(pb.liftEquiv'.symm a) = ⇑((pb.basis.constr A) fun i ↦ ↑a ^ ↑i)

def PowerBasis.AlgHom.fintype E1 #

{S : Type u_2} →
  [inst : Ring S] →
    {A : Type u_3} →
      {B : Type u_4} →
        [inst_1 : CommRing A] →
          [inst_2 : CommRing B] →
            [inst_3 : Algebra A B] → [inst_4 : Algebra A S] → [IsDomain B] → PowerBasis A S → Fintype (S →ₐ[A] B)

There are finitely many algebra homomorphisms S →ₐ[A] B if S is of the form A[x] and B is an integral domain.

def PowerBasis.equivOfRoot E1 #

{S : Type u_2} →
  [inst : Ring S] →
    {A : Type u_3} →
      [inst_1 : CommRing A] →
        [inst_2 : Algebra A S] →
          {S' : Type u_6} →
            [inst_3 : Ring S'] →
              [inst_4 : Algebra A S'] →
                (pb : PowerBasis A S) →
                  (pb' : PowerBasis A S') →
                    (Polynomial.aeval pb.gen) (minpoly A pb'.gen) = 0 →
                      (Polynomial.aeval pb'.gen) (minpoly A pb.gen) = 0 → S ≃ₐ[A] S'

pb.equivOfRoot pb' h₁ h₂ is an equivalence of algebras with the same power basis, where "the same" means that pb is a root of pb's minimal polynomial and vice versa.

See also PowerBasis.equivOfMinpoly which takes the hypothesis that the minimal polynomials are identical.

theorem PowerBasis.equivOfRoot_apply E0 #

∀ {S : Type u_2} [inst : Ring S] {A : Type u_3} [inst_1 : CommRing A] [inst_2 : Algebra A S] {S' : Type u_6}
  [inst_3 : Ring S'] [inst_4 : Algebra A S'] (pb : PowerBasis A S) (pb' : PowerBasis A S')
  (h₁ : (Polynomial.aeval pb.gen) (minpoly A pb'.gen) = 0) (h₂ : (Polynomial.aeval pb'.gen) (minpoly A pb.gen) = 0)
  (a : S), (pb.equivOfRoot pb' h₁ h₂) a = (pb.lift pb'.gen h₂) a

theorem PowerBasis.equivOfRoot_aeval E0 #

∀ {S : Type u_2} [inst : Ring S] {A : Type u_3} [inst_1 : CommRing A] [inst_2 : Algebra A S] {S' : Type u_6}
  [inst_3 : Ring S'] [inst_4 : Algebra A S'] (pb : PowerBasis A S) (pb' : PowerBasis A S')
  (h₁ : (Polynomial.aeval pb.gen) (minpoly A pb'.gen) = 0) (h₂ : (Polynomial.aeval pb'.gen) (minpoly A pb.gen) = 0)
  (f : Polynomial A), (pb.equivOfRoot pb' h₁ h₂) ((Polynomial.aeval pb.gen) f) = (Polynomial.aeval pb'.gen) f

theorem PowerBasis.equivOfRoot_gen E0 #

∀ {S : Type u_2} [inst : Ring S] {A : Type u_3} [inst_1 : CommRing A] [inst_2 : Algebra A S] {S' : Type u_6}
  [inst_3 : Ring S'] [inst_4 : Algebra A S'] (pb : PowerBasis A S) (pb' : PowerBasis A S')
  (h₁ : (Polynomial.aeval pb.gen) (minpoly A pb'.gen) = 0) (h₂ : (Polynomial.aeval pb'.gen) (minpoly A pb.gen) = 0),
  (pb.equivOfRoot pb' h₁ h₂) pb.gen = pb'.gen

theorem PowerBasis.equivOfRoot_symm E0 #

∀ {S : Type u_2} [inst : Ring S] {A : Type u_3} [inst_1 : CommRing A] [inst_2 : Algebra A S] {S' : Type u_6}
  [inst_3 : Ring S'] [inst_4 : Algebra A S'] (pb : PowerBasis A S) (pb' : PowerBasis A S')
  (h₁ : (Polynomial.aeval pb.gen) (minpoly A pb'.gen) = 0) (h₂ : (Polynomial.aeval pb'.gen) (minpoly A pb.gen) = 0),
  (pb.equivOfRoot pb' h₁ h₂).symm = pb'.equivOfRoot pb h₂ h₁

def PowerBasis.equivOfMinpoly E1 #

{S : Type u_2} →
  [inst : Ring S] →
    {A : Type u_3} →
      [inst_1 : CommRing A] →
        [inst_2 : Algebra A S] →
          {S' : Type u_6} →
            [inst_3 : Ring S'] →
              [inst_4 : Algebra A S'] →
                (pb : PowerBasis A S) → (pb' : PowerBasis A S') → minpoly A pb.gen = minpoly A pb'.gen → S ≃ₐ[A] S'

pb.equivOfMinpoly pb' h is an equivalence of algebras with the same power basis, where "the same" means that they have identical minimal polynomials.

See also PowerBasis.equivOfRoot which takes the hypothesis that each generator is a root of the other basis' minimal polynomial; PowerBasis.equivOfRoot is more general if A is not a field.

theorem PowerBasis.equivOfMinpoly_apply E0 #

∀ {S : Type u_2} [inst : Ring S] {A : Type u_3} [inst_1 : CommRing A] [inst_2 : Algebra A S] {S' : Type u_6}
  [inst_3 : Ring S'] [inst_4 : Algebra A S'] (pb : PowerBasis A S) (pb' : PowerBasis A S')
  (h : minpoly A pb.gen = minpoly A pb'.gen) (a : S), (pb.equivOfMinpoly pb' h) a = (pb.lift pb'.gen ⋯) a

theorem PowerBasis.equivOfMinpoly_aeval E0 #

∀ {S : Type u_2} [inst : Ring S] {A : Type u_3} [inst_1 : CommRing A] [inst_2 : Algebra A S] {S' : Type u_6}
  [inst_3 : Ring S'] [inst_4 : Algebra A S'] (pb : PowerBasis A S) (pb' : PowerBasis A S')
  (h : minpoly A pb.gen = minpoly A pb'.gen) (f : Polynomial A),
  (pb.equivOfMinpoly pb' h) ((Polynomial.aeval pb.gen) f) = (Polynomial.aeval pb'.gen) f

theorem PowerBasis.equivOfMinpoly_gen E0 #

∀ {S : Type u_2} [inst : Ring S] {A : Type u_3} [inst_1 : CommRing A] [inst_2 : Algebra A S] {S' : Type u_6}
  [inst_3 : Ring S'] [inst_4 : Algebra A S'] (pb : PowerBasis A S) (pb' : PowerBasis A S')
  (h : minpoly A pb.gen = minpoly A pb'.gen), (pb.equivOfMinpoly pb' h) pb.gen = pb'.gen

theorem PowerBasis.equivOfMinpoly_symm E0 #

∀ {S : Type u_2} [inst : Ring S] {A : Type u_3} [inst_1 : CommRing A] [inst_2 : Algebra A S] {S' : Type u_6}
  [inst_3 : Ring S'] [inst_4 : Algebra A S'] (pb : PowerBasis A S) (pb' : PowerBasis A S')
  (h : minpoly A pb.gen = minpoly A pb'.gen), (pb.equivOfMinpoly pb' h).symm = pb'.equivOfMinpoly pb ⋯

theorem linearIndependent_pow E2 #

∀ {S : Type u_2} [inst : Ring S] {K : Type u_5} [inst_1 : Field K] [inst_2 : Algebra K S] (x : S),
  LinearIndependent K fun i ↦ x ^ ↑i

Useful lemma to show x generates a power basis: the powers of x less than the degree of x's minimal polynomial are linearly independent.

theorem IsIntegral.mem_span_pow E0 #

∀ {R : Type u_1} {S : Type u_2} [inst : CommRing R] [inst_1 : Ring S] [inst_2 : Algebra R S] [Nontrivial R] {x y : S},
  IsIntegral R x → (∃ f, y = (Polynomial.aeval x) f) → y ∈ Submodule.span R (Set.range fun i ↦ x ^ ↑i)

def PowerBasis.map E1 #

{R : Type u_1} →
  {S : Type u_2} →
    [inst : CommRing R] →
      [inst_1 : Ring S] →
        [inst_2 : Algebra R S] →
          {S' : Type u_6} →
            [inst_3 : CommRing S'] → [inst_4 : Algebra R S'] → PowerBasis R S → (S ≃ₐ[R] S') → PowerBasis R S'

PowerBasis.map pb (e : S ≃ₐ[R] S') is the power basis for S' generated by e pb.gen.

theorem PowerBasis.map_dim E0 #

∀ {R : Type u_1} {S : Type u_2} [inst : CommRing R] [inst_1 : Ring S] [inst_2 : Algebra R S] {S' : Type u_6}
  [inst_3 : CommRing S'] [inst_4 : Algebra R S'] (pb : PowerBasis R S) (e : S ≃ₐ[R] S'), (pb.map e).dim = pb.dim

theorem PowerBasis.map_basis E0 #

∀ {R : Type u_1} {S : Type u_2} [inst : CommRing R] [inst_1 : Ring S] [inst_2 : Algebra R S] {S' : Type u_6}
  [inst_3 : CommRing S'] [inst_4 : Algebra R S'] (pb : PowerBasis R S) (e : S ≃ₐ[R] S'),
  (pb.map e).basis = pb.basis.map ↑e

theorem PowerBasis.map_gen E0 #

∀ {R : Type u_1} {S : Type u_2} [inst : CommRing R] [inst_1 : Ring S] [inst_2 : Algebra R S] {S' : Type u_6}
  [inst_3 : CommRing S'] [inst_4 : Algebra R S'] (pb : PowerBasis R S) (e : S ≃ₐ[R] S'), (pb.map e).gen = e pb.gen

theorem PowerBasis.minpolyGen_map E1 #

∀ {S : Type u_2} [inst : Ring S] {A : Type u_3} [inst_1 : CommRing A] {S' : Type u_6} [inst_2 : CommRing S']
  [inst_3 : Algebra A S] [inst_4 : Algebra A S'] (pb : PowerBasis A S) (e : S ≃ₐ[A] S'),
  (pb.map e).minpolyGen = pb.minpolyGen

theorem PowerBasis.equivOfRoot_map E0 #

∀ {S : Type u_2} [inst : Ring S] {A : Type u_3} [inst_1 : CommRing A] {S' : Type u_6} [inst_2 : CommRing S']
  [inst_3 : Algebra A S] [inst_4 : Algebra A S'] (pb : PowerBasis A S) (e : S ≃ₐ[A] S')
  (h₁ : (Polynomial.aeval pb.gen) (minpoly A (pb.map e).gen) = 0)
  (h₂ : (Polynomial.aeval (pb.map e).gen) (minpoly A pb.gen) = 0), pb.equivOfRoot (pb.map e) h₁ h₂ = e

theorem PowerBasis.equivOfMinpoly_map E0 #

∀ {S : Type u_2} [inst : Ring S] {A : Type u_3} [inst_1 : CommRing A] {S' : Type u_6} [inst_2 : CommRing S']
  [inst_3 : Algebra A S] [inst_4 : Algebra A S'] (pb : PowerBasis A S) (e : S ≃ₐ[A] S')
  (h : minpoly A pb.gen = minpoly A (pb.map e).gen), pb.equivOfMinpoly (pb.map e) h = e

theorem PowerBasis.adjoin_gen_eq_top E1 #

∀ {R : Type u_1} {S : Type u_2} [inst : CommRing R] [inst_1 : Ring S] [inst_2 : Algebra R S] (B : PowerBasis R S),
  R[B.gen] = ⊤

theorem PowerBasis.adjoin_eq_top_of_gen_mem_adjoin E1 #

∀ {R : Type u_1} {S : Type u_2} [inst : CommRing R] [inst_1 : Ring S] [inst_2 : Algebra R S] {B : PowerBasis R S}
  {x : S}, B.gen ∈ R[x] → R[x] = ⊤