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 / V08. Multilinear algebra and forms

Mathlib.LinearAlgebra.TensorPower.Basic

33 declarations. Mathlib docs · Source

Tensor power of a semimodule over a commutative semiring

We define the nth tensor power of M as the n-ary tensor product indexed by Fin n of M, ⨂[R] (i : Fin n), M. This is a special case of PiTensorProduct.

This file introduces the notation ⨂[R]^n M for TensorPower R n M, which in turn is an abbreviation for ⨂[R] i : Fin n, M.

Main definitions

  • TensorPower.gsemiring: the tensor powers form a graded semiring.
  • TensorPower.galgebra: the tensor powers form a graded algebra.

Implementation notes

In this file we use ₜ1 and ₜ* as local notation for the graded multiplicative structure on tensor powers. Elsewhere, using 1 and * on GradedMonoid should be preferred.

theorem TensorPower.cast.congr_simp E1 #

∀ (R : Type u_1) (M : Type u_2) [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] {i j : ℕ}
  (h : i = j), TensorPower.cast R M h = TensorPower.cast R M h

theorem PiTensorProduct.isEmptyEquiv.congr_simp E1 #

∀ (ι : Type u_1) {R : Type u_4} [inst : CommSemiring R] {s : ι → Type u_8} [inst_1 : (i : ι) → AddCommMonoid (s i)]
  [inst_2 : (i : ι) → Module R (s i)] [inst_3 : IsEmpty ι],
  PiTensorProduct.isEmptyEquiv ι = PiTensorProduct.isEmptyEquiv ι

abbrev TensorPower E1 #

(R : Type u_1) →
  ℕ → (M : Type u_2) → [inst : CommSemiring R] → [inst_1 : AddCommMonoid M] → [Module R M] → Type (max u_2 u_1)

Homogeneous tensor powers $M^{\otimes n}$. ⨂[R]^n M is a shorthand for ⨂[R] (i : Fin n), M.

def TensorProduct.«term⨂[_]^_» E1 #

Lean.ParserDescr

Homogeneous tensor powers $M^{\otimes n}$. ⨂[R]^n M is a shorthand for ⨂[R] (i : Fin n), M.

theorem PiTensorProduct.gradedMonoid_eq_of_reindex_cast E1 #

∀ {R : Type u_1} {M : Type u_2} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] {ιι : Type u_3}
  {ι : ιι → Type u_4} {a b : GradedMonoid fun ii ↦ PiTensorProduct R fun x ↦ M} (h : a.fst = b.fst),
  (PiTensorProduct.reindex R (fun x ↦ M) (Equiv.cast ⋯)) a.snd = b.snd → a = b

Two dependent pairs of tensor products are equal if their index is equal and the contents are equal after a canonical reindexing.

instance TensorPower.gOne E0 #

{R : Type u_1} →
  {M : Type u_2} →
    [inst : CommSemiring R] →
      [inst_1 : AddCommMonoid M] → [inst_2 : Module R M] → GradedMonoid.GOne fun i ↦ TensorPower R i M

As a graded monoid, ⨂[R]^i M has a 1 : ⨂[R]^0 M.

theorem TensorPower.gOne_def E0 #

∀ {R : Type u_1} {M : Type u_2} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M],
  GradedMonoid.GOne.one = (PiTensorProduct.tprod R) Fin.elim0

def TensorPower.mulEquiv E1 #

{R : Type u_1} →
  {M : Type u_2} →
    [inst : CommSemiring R] →
      [inst_1 : AddCommMonoid M] →
        [inst_2 : Module R M] →
          {n m : ℕ} → TensorProduct R (TensorPower R n M) (TensorPower R m M) ≃ₗ[R] TensorPower R (n + m) M

A variant of PiTensorProduct.tmulEquiv with the result indexed by Fin (n + m).

instance TensorPower.gMul E0 #

{R : Type u_1} →
  {M : Type u_2} →
    [inst : CommSemiring R] →
      [inst_1 : AddCommMonoid M] → [inst_2 : Module R M] → GradedMonoid.GMul fun i ↦ TensorPower R i M

As a graded monoid, ⨂[R]^i M has a (*) : ⨂[R]^i M → ⨂[R]^j M → ⨂[R]^(i + j) M.

theorem TensorPower.gMul_def E0 #

∀ {R : Type u_1} {M : Type u_2} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] {i j : ℕ}
  (a : TensorPower R i M) (b : TensorPower R j M), GradedMonoid.GMul.mul a b = TensorPower.mulEquiv (a ⊗ₜ[R] b)

theorem TensorPower.gMul_eq_coe_linearMap E1 #

∀ {R : Type u_1} {M : Type u_2} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] {i j : ℕ}
  (a : TensorPower R i M) (b : TensorPower R j M),
  GradedMonoid.GMul.mul a b =
    (((TensorProduct.mk R (TensorPower R i M) (TensorPower R j M)).compr₂ ↑TensorPower.mulEquiv) a) b

def TensorPower.cast E1 #

(R : Type u_1) →
  (M : Type u_2) →
    [inst : CommSemiring R] →
      [inst_1 : AddCommMonoid M] → [inst_2 : Module R M] → {i j : ℕ} → i = j → TensorPower R i M ≃ₗ[R] TensorPower R j M

Cast between "equal" tensor powers.

theorem TensorPower.cast_tprod E1 #

∀ (R : Type u_1) (M : Type u_2) [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] {i j : ℕ}
  (h : i = j) (a : Fin i → M),
  (TensorPower.cast R M h) ((PiTensorProduct.tprod R) a) = (PiTensorProduct.tprod R) (a ∘ Fin.cast ⋯)

theorem TensorPower.cast_refl E0 #

∀ (R : Type u_1) (M : Type u_2) [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] {i : ℕ}
  (h : i = i), TensorPower.cast R M h = LinearEquiv.refl R (TensorPower R i M)

theorem TensorPower.cast_symm E0 #

∀ (R : Type u_1) (M : Type u_2) [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] {i j : ℕ}
  (h : i = j), (TensorPower.cast R M h).symm = TensorPower.cast R M ⋯

theorem TensorPower.cast_trans E0 #

∀ (R : Type u_1) (M : Type u_2) [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] {i j k : ℕ}
  (h : i = j) (h' : j = k), TensorPower.cast R M h ≪≫ₗ TensorPower.cast R M h' = TensorPower.cast R M ⋯

theorem TensorPower.cast_cast E0 #

∀ {R : Type u_1} {M : Type u_2} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] {i j k : ℕ}
  (h : i = j) (h' : j = k) (a : TensorPower R i M),
  (TensorPower.cast R M h') ((TensorPower.cast R M h) a) = (TensorPower.cast R M ⋯) a

theorem TensorPower.gradedMonoid_eq_of_cast E1 #

∀ {R : Type u_1} {M : Type u_2} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  {a b : GradedMonoid fun n ↦ PiTensorProduct R fun x ↦ M} (h : a.fst = b.fst),
  (TensorPower.cast R M h) a.snd = b.snd → a = b

theorem TensorPower.cast_eq_cast E1 #

∀ {R : Type u_1} {M : Type u_2} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] {i j : ℕ}
  (h : i = j), ⇑(TensorPower.cast R M h) = cast ⋯

theorem TensorPower.tprod_mul_tprod E1 #

∀ (R : Type u_1) {M : Type u_2} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] {na nb : ℕ}
  (a : Fin na → M) (b : Fin nb → M),
  GradedMonoid.GMul.mul ((PiTensorProduct.tprod R) a) ((PiTensorProduct.tprod R) b) =
    (PiTensorProduct.tprod R) (Fin.append a b)

theorem TensorPower.one_mul E1 #

∀ {R : Type u_1} {M : Type u_2} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] {n : ℕ}
  (a : TensorPower R n M), (TensorPower.cast R M ⋯) (GradedMonoid.GMul.mul GradedMonoid.GOne.one a) = a

theorem TensorPower.mul_one E1 #

∀ {R : Type u_1} {M : Type u_2} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] {n : ℕ}
  (a : TensorPower R n M), (TensorPower.cast R M ⋯) (GradedMonoid.GMul.mul a GradedMonoid.GOne.one) = a

theorem TensorPower.mul_assoc E1 #

∀ {R : Type u_1} {M : Type u_2} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] {na nb nc : ℕ}
  (a : TensorPower R na M) (b : TensorPower R nb M) (c : TensorPower R nc M),
  (TensorPower.cast R M ⋯) (GradedMonoid.GMul.mul (GradedMonoid.GMul.mul a b) c) =
    GradedMonoid.GMul.mul a (GradedMonoid.GMul.mul b c)

instance TensorPower.gmonoid E0 #

{R : Type u_1} →
  {M : Type u_2} →
    [inst : CommSemiring R] →
      [inst_1 : AddCommMonoid M] → [inst_2 : Module R M] → GradedMonoid.GMonoid fun i ↦ TensorPower R i M

def TensorPower.algebraMap₀ E1 #

{R : Type u_1} →
  {M : Type u_2} →
    [inst : CommSemiring R] → [inst_1 : AddCommMonoid M] → [inst_2 : Module R M] → R ≃ₗ[R] TensorPower R 0 M

The canonical map from R to ⨂[R]^0 M corresponding to the algebraMap of the tensor algebra.

theorem TensorPower.algebraMap₀_eq_smul_one E1 #

∀ {R : Type u_1} {M : Type u_2} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] (r : R),
  TensorPower.algebraMap₀ r = r • GradedMonoid.GOne.one

theorem TensorPower.algebraMap₀_one E1 #

∀ {R : Type u_1} {M : Type u_2} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M],
  TensorPower.algebraMap₀ 1 = GradedMonoid.GOne.one

theorem TensorPower.algebraMap₀_mul E1 #

∀ {R : Type u_1} {M : Type u_2} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] {n : ℕ} (r : R)
  (a : TensorPower R n M), (TensorPower.cast R M ⋯) (GradedMonoid.GMul.mul (TensorPower.algebraMap₀ r) a) = r • a

theorem TensorPower.mul_algebraMap₀ E1 #

∀ {R : Type u_1} {M : Type u_2} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] {n : ℕ} (r : R)
  (a : TensorPower R n M), (TensorPower.cast R M ⋯) (GradedMonoid.GMul.mul a (TensorPower.algebraMap₀ r)) = r • a

theorem TensorPower.algebraMap₀_mul_algebraMap₀ E1 #

∀ {R : Type u_1} {M : Type u_2} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] (r s : R),
  (TensorPower.cast R M ⋯) (GradedMonoid.GMul.mul (TensorPower.algebraMap₀ r) (TensorPower.algebraMap₀ s)) =
    TensorPower.algebraMap₀ (r * s)

instance TensorPower.gsemiring E3 #

{R : Type u_1} →
  {M : Type u_2} →
    [inst : CommSemiring R] →
      [inst_1 : AddCommMonoid M] → [inst_2 : Module R M] → DirectSum.GSemiring fun i ↦ TensorPower R i M

instance TensorPower.galgebra E3 #

{R : Type u_1} →
  {M : Type u_2} →
    [inst : CommSemiring R] →
      [inst_1 : AddCommMonoid M] → [inst_2 : Module R M] → DirectSum.GAlgebra R fun i ↦ TensorPower R i M

The tensor powers form a graded algebra.

Note that this instance implies Algebra R (⨁ n : ℕ, ⨂[R]^n M) via DirectSum.Algebra.

theorem TensorPower.galgebra_toFun_def E0 #

∀ {R : Type u_1} {M : Type u_2} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] (r : R),
  DirectSum.GAlgebra.toFun r = TensorPower.algebraMap₀ r