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.TensorProduct.Basis

25 declarations. Mathlib docs · Source

def Module.Basis.tensorProduct E1 #

{R : Type u_1} →
  {S : Type u_2} →
    {M : Type u_3} →
      {N : Type u_4} →
        {ι : Type u_5} →
          {κ : Type u_6} →
            [inst : CommSemiring R] →
              [inst_1 : Semiring S] →
                [inst_2 : Algebra R S] →
                  [inst_3 : AddCommMonoid M] →
                    [inst_4 : Module R M] →
                      [inst_5 : Module S M] →
                        [inst_6 : IsScalarTower R S M] →
                          [inst_7 : AddCommMonoid N] →
                            [inst_8 : Module R N] →
                              Module.Basis ι S M → Module.Basis κ R N → Module.Basis (ι × κ) S (TensorProduct R M N)

If b : ι → M and c : κ → N are bases then so is fun i ↦ b i.1 ⊗ₜ c i.2 : ι × κ → M ⊗ N.

theorem Module.Basis.tensorProduct_apply E0 #

∀ {R : Type u_1} {S : Type u_2} {M : Type u_3} {N : Type u_4} {ι : Type u_5} {κ : Type u_6} [inst : CommSemiring R]
  [inst_1 : Semiring S] [inst_2 : Algebra R S] [inst_3 : AddCommMonoid M] [inst_4 : Module R M] [inst_5 : Module S M]
  [inst_6 : IsScalarTower R S M] [inst_7 : AddCommMonoid N] [inst_8 : Module R N] (b : Module.Basis ι S M)
  (c : Module.Basis κ R N) (i : ι) (j : κ), (b.tensorProduct c) (i, j) = b i ⊗ₜ[R] c j

theorem Module.Basis.tensorProduct_apply' E1 #

∀ {R : Type u_1} {S : Type u_2} {M : Type u_3} {N : Type u_4} {ι : Type u_5} {κ : Type u_6} [inst : CommSemiring R]
  [inst_1 : Semiring S] [inst_2 : Algebra R S] [inst_3 : AddCommMonoid M] [inst_4 : Module R M] [inst_5 : Module S M]
  [inst_6 : IsScalarTower R S M] [inst_7 : AddCommMonoid N] [inst_8 : Module R N] (b : Module.Basis ι S M)
  (c : Module.Basis κ R N) (i : ι × κ), (b.tensorProduct c) i = b i.1 ⊗ₜ[R] c i.2

theorem Module.Basis.tensorProduct_repr_tmul_apply E0 #

∀ {R : Type u_1} {S : Type u_2} {M : Type u_3} {N : Type u_4} {ι : Type u_5} {κ : Type u_6} [inst : CommSemiring R]
  [inst_1 : Semiring S] [inst_2 : Algebra R S] [inst_3 : AddCommMonoid M] [inst_4 : Module R M] [inst_5 : Module S M]
  [inst_6 : IsScalarTower R S M] [inst_7 : AddCommMonoid N] [inst_8 : Module R N] (b : Module.Basis ι S M)
  (c : Module.Basis κ R N) (m : M) (n : N) (i : ι) (j : κ),
  ((b.tensorProduct c).repr (m ⊗ₜ[R] n)) (i, j) = (c.repr n) j • (b.repr m) i

def Module.Basis.baseChange E1 #

{R : Type u_1} →
  {M : Type u_3} →
    {ι : Type u_5} →
      [inst : CommSemiring R] →
        [inst_1 : AddCommMonoid M] →
          [inst_2 : Module R M] →
            (S : Type u_7) →
              [inst_3 : Semiring S] →
                [inst_4 : Algebra R S] → Module.Basis ι R M → Module.Basis ι S (TensorProduct R S M)

The lift of an R-basis of M to an S-basis of the base change S ⊗[R] M.

theorem Module.Basis.baseChange_repr_tmul E0 #

∀ {R : Type u_1} {M : Type u_3} {ι : Type u_5} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  (S : Type u_7) [inst_3 : Semiring S] [inst_4 : Algebra R S] (b : Module.Basis ι R M) (x : S) (y : M) (i : ι),
  ((Module.Basis.baseChange S b).repr (x ⊗ₜ[R] y)) i = (b.repr y) i • x

theorem Module.Basis.baseChange_apply E0 #

∀ {R : Type u_1} {M : Type u_3} {ι : Type u_5} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  (S : Type u_7) [inst_3 : Semiring S] [inst_4 : Algebra R S] (b : Module.Basis ι R M) (i : ι),
  (Module.Basis.baseChange S b) i = 1 ⊗ₜ[R] b i

def TensorProduct.equivFinsuppOfBasisRight E1 #

{R : Type u_1} →
  {M : Type u_3} →
    {N : Type u_4} →
      {κ : Type u_6} →
        [inst : CommSemiring R] →
          [inst_1 : AddCommMonoid M] →
            [inst_2 : Module R M] →
              [inst_3 : AddCommMonoid N] →
                [inst_4 : Module R N] → [DecidableEq κ] → Module.Basis κ R N → TensorProduct R M N ≃ₗ[R] κ →₀ M

If {𝒞ᵢ} is a basis for the module N, then every elements of x ∈ M ⊗ N can be uniquely written as ∑ᵢ mᵢ ⊗ 𝒞ᵢ for some mᵢ ∈ M.

theorem TensorProduct.equivFinsuppOfBasisRight_apply_tmul E0 #

∀ {R : Type u_1} {M : Type u_3} {N : Type u_4} {κ : Type u_6} [inst : CommSemiring R] [inst_1 : AddCommMonoid M]
  [inst_2 : Module R M] [inst_3 : AddCommMonoid N] [inst_4 : Module R N] [inst_5 : DecidableEq κ]
  (𝒞 : Module.Basis κ R N) (m : M) (n : N),
  (TensorProduct.equivFinsuppOfBasisRight 𝒞) (m ⊗ₜ[R] n) = Finsupp.mapRange (fun x ↦ x • m) ⋯ (𝒞.repr n)

theorem TensorProduct.equivFinsuppOfBasisRight_apply_tmul_apply E0 #

∀ {R : Type u_1} {M : Type u_3} {N : Type u_4} {κ : Type u_6} [inst : CommSemiring R] [inst_1 : AddCommMonoid M]
  [inst_2 : Module R M] [inst_3 : AddCommMonoid N] [inst_4 : Module R N] [inst_5 : DecidableEq κ]
  (𝒞 : Module.Basis κ R N) (m : M) (n : N) (i : κ),
  ((TensorProduct.equivFinsuppOfBasisRight 𝒞) (m ⊗ₜ[R] n)) i = (𝒞.repr n) i • m

theorem TensorProduct.equivFinsuppOfBasisRight_symm E1 #

∀ {R : Type u_1} {M : Type u_3} {N : Type u_4} {κ : Type u_6} [inst : CommSemiring R] [inst_1 : AddCommMonoid M]
  [inst_2 : Module R M] [inst_3 : AddCommMonoid N] [inst_4 : Module R N] [inst_5 : DecidableEq κ]
  (𝒞 : Module.Basis κ R N),
  ↑(TensorProduct.equivFinsuppOfBasisRight 𝒞).symm = (Finsupp.lsum R) fun i ↦ (TensorProduct.mk R M N).flip (𝒞 i)

theorem TensorProduct.equivFinsuppOfBasisRight_symm_apply E0 #

∀ {R : Type u_1} {M : Type u_3} {N : Type u_4} {κ : Type u_6} [inst : CommSemiring R] [inst_1 : AddCommMonoid M]
  [inst_2 : Module R M] [inst_3 : AddCommMonoid N] [inst_4 : Module R N] [inst_5 : DecidableEq κ]
  (𝒞 : Module.Basis κ R N) (b : κ →₀ M), (TensorProduct.equivFinsuppOfBasisRight 𝒞).symm b = b.sum fun i m ↦ m ⊗ₜ[R] 𝒞 i

theorem TensorProduct.sum_tmul_basis_right_injective E1 #

∀ {R : Type u_1} {M : Type u_3} {N : Type u_4} {κ : Type u_6} [inst : CommSemiring R] [inst_1 : AddCommMonoid M]
  [inst_2 : Module R M] [inst_3 : AddCommMonoid N] [inst_4 : Module R N] (𝒞 : Module.Basis κ R N),
  Function.Injective ⇑((Finsupp.lsum R) fun i ↦ (TensorProduct.mk R M N).flip (𝒞 i))

theorem TensorProduct.sum_tmul_basis_right_eq_zero E1 #

∀ {R : Type u_1} {M : Type u_3} {N : Type u_4} {κ : Type u_6} [inst : CommSemiring R] [inst_1 : AddCommMonoid M]
  [inst_2 : Module R M] [inst_3 : AddCommMonoid N] [inst_4 : Module R N] (𝒞 : Module.Basis κ R N) (b : κ →₀ M),
  (b.sum fun i m ↦ m ⊗ₜ[R] 𝒞 i) = 0 → b = 0

def TensorProduct.equivFinsuppOfBasisLeft E1 #

{R : Type u_1} →
  {M : Type u_3} →
    {N : Type u_4} →
      {ι : Type u_5} →
        [inst : CommSemiring R] →
          [inst_1 : AddCommMonoid M] →
            [inst_2 : Module R M] →
              [inst_3 : AddCommMonoid N] →
                [inst_4 : Module R N] → [DecidableEq ι] → Module.Basis ι R M → TensorProduct R M N ≃ₗ[R] ι →₀ N

If {ℬᵢ} is a basis for the module M, then every elements of x ∈ M ⊗ N can be uniquely written as ∑ᵢ ℬᵢ ⊗ nᵢ for some nᵢ ∈ N.

theorem TensorProduct.equivFinsuppOfBasisLeft_apply_tmul E0 #

∀ {R : Type u_1} {M : Type u_3} {N : Type u_4} {ι : Type u_5} [inst : CommSemiring R] [inst_1 : AddCommMonoid M]
  [inst_2 : Module R M] [inst_3 : AddCommMonoid N] [inst_4 : Module R N] [inst_5 : DecidableEq ι]
  (ℬ : Module.Basis ι R M) (m : M) (n : N),
  (TensorProduct.equivFinsuppOfBasisLeft ℬ) (m ⊗ₜ[R] n) = Finsupp.mapRange (fun x ↦ x • n) ⋯ (ℬ.repr m)

theorem TensorProduct.equivFinsuppOfBasisLeft_apply_tmul_apply E0 #

∀ {R : Type u_1} {M : Type u_3} {N : Type u_4} {ι : Type u_5} [inst : CommSemiring R] [inst_1 : AddCommMonoid M]
  [inst_2 : Module R M] [inst_3 : AddCommMonoid N] [inst_4 : Module R N] [inst_5 : DecidableEq ι]
  (ℬ : Module.Basis ι R M) (m : M) (n : N) (i : ι),
  ((TensorProduct.equivFinsuppOfBasisLeft ℬ) (m ⊗ₜ[R] n)) i = (ℬ.repr m) i • n

theorem TensorProduct.equivFinsuppOfBasisRight_apply E0 #

∀ {R : Type u_1} {M : Type u_3} {N : Type u_4} {κ : Type u_6} [inst : CommSemiring R] [inst_1 : AddCommMonoid M]
  [inst_2 : Module R M] [inst_3 : AddCommMonoid N] [inst_4 : Module R N] [inst_5 : DecidableEq κ]
  (𝒞 : Module.Basis κ R N) (x : TensorProduct R M N) (i : κ),
  ((TensorProduct.equivFinsuppOfBasisRight 𝒞) x) i = (TensorProduct.rid R M) ((LinearMap.lTensor M (𝒞.coord i)) x)

Given a basis 𝒞 of N, x ∈ M ⊗ N can be written as ∑ᵢ mᵢ ⊗ 𝒞 i. The coefficient mᵢ equals the i-th coordinate functional applied to the right tensor factor.

theorem TensorProduct.equivFinsuppOfBasisLeft_apply E0 #

∀ {R : Type u_1} {M : Type u_3} {N : Type u_4} {ι : Type u_5} [inst : CommSemiring R] [inst_1 : AddCommMonoid M]
  [inst_2 : Module R M] [inst_3 : AddCommMonoid N] [inst_4 : Module R N] [inst_5 : DecidableEq ι]
  (ℬ : Module.Basis ι R M) (x : TensorProduct R M N) (i : ι),
  ((TensorProduct.equivFinsuppOfBasisLeft ℬ) x) i = (TensorProduct.lid R N) ((LinearMap.rTensor N (ℬ.coord i)) x)

Given a basis ℬ of M, x ∈ M ⊗ N can be written as ∑ᵢ ℬ i ⊗ nᵢ. The coefficient nᵢ equals the i-th coordinate functional applied to the left tensor factor.

theorem TensorProduct.equivFinsuppOfBasisLeft_symm E1 #

∀ {R : Type u_1} {M : Type u_3} {N : Type u_4} {ι : Type u_5} [inst : CommSemiring R] [inst_1 : AddCommMonoid M]
  [inst_2 : Module R M] [inst_3 : AddCommMonoid N] [inst_4 : Module R N] [inst_5 : DecidableEq ι]
  (ℬ : Module.Basis ι R M),
  ↑(TensorProduct.equivFinsuppOfBasisLeft ℬ).symm = (Finsupp.lsum R) fun i ↦ (TensorProduct.mk R M N) (ℬ i)

theorem TensorProduct.equivFinsuppOfBasisLeft_symm_apply E0 #

∀ {R : Type u_1} {M : Type u_3} {N : Type u_4} {ι : Type u_5} [inst : CommSemiring R] [inst_1 : AddCommMonoid M]
  [inst_2 : Module R M] [inst_3 : AddCommMonoid N] [inst_4 : Module R N] [inst_5 : DecidableEq ι]
  (ℬ : Module.Basis ι R M) (b : ι →₀ N), (TensorProduct.equivFinsuppOfBasisLeft ℬ).symm b = b.sum fun i n ↦ ℬ i ⊗ₜ[R] n

theorem TensorProduct.sum_tmul_basis_left_injective E1 #

∀ {R : Type u_1} {M : Type u_3} {N : Type u_4} {ι : Type u_5} [inst : CommSemiring R] [inst_1 : AddCommMonoid M]
  [inst_2 : Module R M] [inst_3 : AddCommMonoid N] [inst_4 : Module R N] (ℬ : Module.Basis ι R M),
  Function.Injective ⇑((Finsupp.lsum R) fun i ↦ (TensorProduct.mk R M N) (ℬ i))

theorem TensorProduct.sum_tmul_basis_left_eq_zero E1 #

∀ {R : Type u_1} {M : Type u_3} {N : Type u_4} {ι : Type u_5} [inst : CommSemiring R] [inst_1 : AddCommMonoid M]
  [inst_2 : Module R M] [inst_3 : AddCommMonoid N] [inst_4 : Module R N] (ℬ : Module.Basis ι R M) (b : ι →₀ N),
  (b.sum fun i n ↦ ℬ i ⊗ₜ[R] n) = 0 → b = 0

instance Module.Free.tensor E0 #

∀ {R : Type u_1} {S : Type u_2} {M : Type u_3} {N : Type u_4} [inst : CommSemiring R] [inst_1 : Semiring S]
  [inst_2 : Algebra R S] [inst_3 : AddCommMonoid M] [inst_4 : Module R M] [inst_5 : Module S M]
  [inst_6 : IsScalarTower R S M] [inst_7 : AddCommMonoid N] [inst_8 : Module R N] [Module.Free S M] [Module.Free R N],
  Module.Free S (TensorProduct R M N)

theorem LinearMap.liftBaseChange_injective_iff E0 #

∀ {R : Type u_1} {A : Type u_2} {M : Type u_3} {N : Type u_4} {ι : Type u_5} [inst : CommSemiring R]
  [inst_1 : CommSemiring A] [inst_2 : Algebra R A] [inst_3 : AddCommMonoid M] [inst_4 : Module R M]
  [inst_5 : AddCommMonoid N] [inst_6 : Module R N] [inst_7 : Module A N] [inst_8 : IsScalarTower R A N] (l : M →ₗ[R] N)
  (b : Module.Basis ι R M), Function.Injective ⇑(LinearMap.liftBaseChange A l) ↔ LinearIndependent A (⇑l ∘ ⇑b)