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 / V09. Commutative algebra I: ideals, polynomials, factorization

Mathlib.RingTheory.PolynomialAlgebra

33 declarations. Mathlib docs · Source

def PolyEquivTensor.toFunBilinear E1 #

(R : Type u_1) →
  (A : Type u_3) →
    [inst : CommSemiring R] → [inst_1 : Semiring A] → [inst_2 : Algebra R A] → A →ₗ[A] Polynomial R →ₗ[R] Polynomial A

(Implementation detail). The function underlying A ⊗[R] R[X] →ₐ[R] A[X], as a bilinear function of two arguments.

theorem PolyEquivTensor.toFunBilinear_apply_apply E0 #

∀ (R : Type u_1) (A : Type u_3) [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A] (a : A)
  (p : Polynomial R), ((PolyEquivTensor.toFunBilinear R A) a) p = a • (Polynomial.aeval Polynomial.X) p

theorem PolyEquivTensor.toFunBilinear_apply_eq_smul E0 #

∀ (R : Type u_1) (A : Type u_3) [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A] (a : A)
  (p : Polynomial R), ((PolyEquivTensor.toFunBilinear R A) a) p = a • Polynomial.map (algebraMap R A) p

theorem PolyEquivTensor.toFunBilinear_apply_eq_sum E1 #

∀ (R : Type u_1) (A : Type u_3) [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A] (a : A)
  (p : Polynomial R),
  ((PolyEquivTensor.toFunBilinear R A) a) p = p.sum fun n r ↦ (Polynomial.monomial n) (a * (algebraMap R A) r)

def PolyEquivTensor.toFunLinear E1 #

(R : Type u_1) →
  (A : Type u_3) →
    [inst : CommSemiring R] →
      [inst_1 : Semiring A] → [inst_2 : Algebra R A] → TensorProduct R A (Polynomial R) →ₗ[R] Polynomial A

(Implementation detail). The function underlying A ⊗[R] R[X] →ₐ[R] A[X], as a linear map.

theorem PolyEquivTensor.toFunLinear_tmul_apply E0 #

∀ (R : Type u_1) (A : Type u_3) [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A] (a : A)
  (p : Polynomial R), (PolyEquivTensor.toFunLinear R A) (a ⊗ₜ[R] p) = ((PolyEquivTensor.toFunBilinear R A) a) p

theorem PolyEquivTensor.toFunLinear_mul_tmul_mul_aux_1 E1 #

∀ (R : Type u_1) (A : Type u_3) [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A] (p : Polynomial R)
  (k : ℕ) (h : Decidable ¬p.coeff k = 0) (a : A),
  (if ¬p.coeff k = 0 then a * (algebraMap R A) (p.coeff k) else 0) = a * (algebraMap R A) (p.coeff k)

theorem PolyEquivTensor.toFunLinear_mul_tmul_mul_aux_2 E1 #

∀ (R : Type u_1) (A : Type u_3) [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A] (k : ℕ) (a₁ a₂ : A)
  (p₁ p₂ : Polynomial R),
  a₁ * a₂ * (algebraMap R A) ((p₁ * p₂).coeff k) =
    ∑ x ∈ Finset.HasAntidiagonal.antidiagonal k,
      a₁ * (algebraMap R A) (p₁.coeff x.1) * (a₂ * (algebraMap R A) (p₂.coeff x.2))

theorem PolyEquivTensor.toFunLinear_mul_tmul_mul E1 #

∀ (R : Type u_1) (A : Type u_3) [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A] (a₁ a₂ : A)
  (p₁ p₂ : Polynomial R),
  (PolyEquivTensor.toFunLinear R A) ((a₁ * a₂) ⊗ₜ[R] (p₁ * p₂)) =
    (PolyEquivTensor.toFunLinear R A) (a₁ ⊗ₜ[R] p₁) * (PolyEquivTensor.toFunLinear R A) (a₂ ⊗ₜ[R] p₂)

theorem PolyEquivTensor.toFunLinear_one_tmul_one E1 #

∀ (R : Type u_1) (A : Type u_3) [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A],
  (PolyEquivTensor.toFunLinear R A) (1 ⊗ₜ[R] 1) = 1

def PolyEquivTensor.toFunAlgHom E1 #

(R : Type u_1) →
  (A : Type u_3) →
    [inst : CommSemiring R] →
      [inst_1 : Semiring A] → [inst_2 : Algebra R A] → TensorProduct R A (Polynomial R) →ₐ[R] Polynomial A

(Implementation detail). The algebra homomorphism A ⊗[R] R[X] →ₐ[R] A[X].

theorem PolyEquivTensor.toFunAlgHom_apply_tmul_eq_smul E0 #

∀ (R : Type u_1) (A : Type u_3) [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A] (a : A)
  (p : Polynomial R), (PolyEquivTensor.toFunAlgHom R A) (a ⊗ₜ[R] p) = a • Polynomial.map (algebraMap R A) p

theorem PolyEquivTensor.toFunAlgHom_apply_tmul E1 #

∀ (R : Type u_1) (A : Type u_3) [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A] (a : A)
  (p : Polynomial R),
  (PolyEquivTensor.toFunAlgHom R A) (a ⊗ₜ[R] p) = p.sum fun n r ↦ (Polynomial.monomial n) (a * (algebraMap R A) r)

def PolyEquivTensor.invFun E1 #

(R : Type u_1) →
  (A : Type u_3) →
    [inst : CommSemiring R] →
      [inst_1 : Semiring A] → [inst_2 : Algebra R A] → Polynomial A → TensorProduct R A (Polynomial R)

(Implementation detail.)

The bare function A[X] → A ⊗[R] R[X]. (We don't need to show that it's an algebra map, thankfully --- just that it's an inverse.)

theorem PolyEquivTensor.invFun_add E0 #

∀ (R : Type u_1) (A : Type u_3) [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A]
  {p q : Polynomial A}, PolyEquivTensor.invFun R A (p + q) = PolyEquivTensor.invFun R A p + PolyEquivTensor.invFun R A q

theorem PolyEquivTensor.invFun_monomial E1 #

∀ (R : Type u_1) (A : Type u_3) [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A] (n : ℕ) (a : A),
  PolyEquivTensor.invFun R A ((Polynomial.monomial n) a) = a ⊗ₜ[R] 1 * 1 ⊗ₜ[R] Polynomial.X ^ n

theorem PolyEquivTensor.left_inv E1 #

∀ (R : Type u_1) (A : Type u_3) [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A]
  (x : TensorProduct R A (Polynomial R)), PolyEquivTensor.invFun R A ((PolyEquivTensor.toFunAlgHom R A) x) = x

theorem PolyEquivTensor.right_inv E1 #

∀ (R : Type u_1) (A : Type u_3) [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A] (x : Polynomial A),
  (PolyEquivTensor.toFunAlgHom R A) (PolyEquivTensor.invFun R A x) = x

def PolyEquivTensor.equiv E1 #

(R : Type u_1) →
  (A : Type u_3) →
    [inst : CommSemiring R] →
      [inst_1 : Semiring A] → [inst_2 : Algebra R A] → TensorProduct R A (Polynomial R) ≃ Polynomial A

(Implementation detail)

The equivalence, ignoring the algebra structure, (A ⊗[R] R[X]) ≃ A[X].

def polyEquivTensor E1 #

(R : Type u_1) →
  (A : Type u_3) →
    [inst : CommSemiring R] →
      [inst_1 : Semiring A] → [inst_2 : Algebra R A] → Polynomial A ≃ₐ[R] TensorProduct R A (Polynomial R)

The R-algebra isomorphism A[X] ≃ₐ[R] (A ⊗[R] R[X]).

theorem polyEquivTensor_apply E0 #

∀ (R : Type u_1) (A : Type u_3) [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A] (p : Polynomial A),
  (polyEquivTensor R A) p = Polynomial.eval₂ (↑Algebra.TensorProduct.includeLeft) (1 ⊗ₜ[R] Polynomial.X) p

theorem polyEquivTensor_symm_apply_tmul_eq_smul E0 #

∀ (R : Type u_1) (A : Type u_3) [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A] (a : A)
  (p : Polynomial R), (polyEquivTensor R A).symm (a ⊗ₜ[R] p) = a • Polynomial.map (algebraMap R A) p

theorem polyEquivTensor_symm_apply_tmul E1 #

∀ (R : Type u_1) (A : Type u_3) [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A] (a : A)
  (p : Polynomial R),
  (polyEquivTensor R A).symm (a ⊗ₜ[R] p) = p.sum fun n r ↦ (Polynomial.monomial n) (a * (algebraMap R A) r)

def polyEquivTensor' E1 #

(R : Type u_1) →
  [inst : CommSemiring R] →
    (A : Type u_4) →
      [inst_1 : CommSemiring A] → [inst_2 : Algebra R A] → Polynomial A ≃ₐ[A] TensorProduct R A (Polynomial R)

The A-algebra isomorphism A[X] ≃ₐ[A] A ⊗[R] R[X] (when A is commutative).

theorem coe_polyEquivTensor' E0 #

∀ (R : Type u_1) [inst : CommSemiring R] (A : Type u_4) [inst_1 : CommSemiring A] [inst_2 : Algebra R A],
  ⇑(polyEquivTensor' R A) = ⇑(polyEquivTensor R A)

polyEquivTensor' R A is the same as polyEquivTensor R A as a function.

theorem coe_polyEquivTensor'_symm E0 #

∀ (R : Type u_1) [inst : CommSemiring R] (A : Type u_4) [inst_1 : CommSemiring A] [inst_2 : Algebra R A],
  ⇑(polyEquivTensor' R A).symm = ⇑(polyEquivTensor R A).symm

def Polynomial.algebra E1 #

(R : Type u_1) →
  (A : Type u_3) →
    [inst : CommSemiring R] → [inst_1 : Semiring A] → [Algebra R A] → Algebra (Polynomial R) (Polynomial A)

If A is an R-algebra, then A[X] is an R[X] algebra. This gives a diamond for Algebra R[X] R[X][X], so this is not a global instance.

theorem Polynomial.algebraMap_def E0 #

∀ (R : Type u_1) (A : Type u_3) [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A],
  algebraMap (Polynomial R) (Polynomial A) = Polynomial.mapRingHom (algebraMap R A)

instance instIsScalarTowerPolynomial E0 #

∀ (R : Type u_1) (S : Type u_2) (A : Type u_3) [inst : CommSemiring R] [inst_1 : CommSemiring S] [inst_2 : Semiring A]
  [inst_3 : Algebra R A] [inst_4 : Algebra R S] [inst_5 : Algebra S A] [IsScalarTower R S A],
  IsScalarTower R (Polynomial S) (Polynomial A)

instance instIsScalarTowerPolynomial_1 E0 #

∀ (R : Type u_1) (S : Type u_2) (A : Type u_3) [inst : CommSemiring R] [inst_1 : CommSemiring S] [inst_2 : Semiring A]
  [inst_3 : Algebra R A] [inst_4 : Algebra R S] [inst_5 : Algebra S A] [IsScalarTower R S A],
  IsScalarTower (Polynomial R) (Polynomial S) (Polynomial A)

instance instFaithfulSMulPolynomial E0 #

∀ (R : Type u_1) (A : Type u_3) [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A] [FaithfulSMul R A],
  FaithfulSMul (Polynomial R) (Polynomial A)

instance instIsPushoutPolynomial E0 #

∀ (R : Type u_1) [inst : CommSemiring R] {S : Type u_4} [inst_1 : CommSemiring S] [inst_2 : Algebra R S],
  Algebra.IsPushout R S (Polynomial R) (Polynomial S)

instance instIsPushoutPolynomial_1 E0 #

∀ (R : Type u_1) [inst : CommSemiring R] {S : Type u_4} [inst_1 : CommSemiring S] [inst_2 : Algebra R S],
  Algebra.IsPushout R (Polynomial R) S (Polynomial S)