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 / V07. Linear algebra

Mathlib.LinearAlgebra.Matrix.Kronecker

82 declarations. Mathlib docs · Source

Kronecker product of matrices

This defines the Kronecker product.

Main definitions

  • Matrix.kroneckerMap: A generalization of the Kronecker product: given a map f : α → β → γ and matrices A and B with coefficients in α and β, respectively, it is defined as the matrix with coefficients in γ such that kroneckerMap f A B (i₁, i₂) (j₁, j₂) = f (A i₁ j₁) (B i₁ j₂).
  • Matrix.kroneckerMapBilinear: when f is bilinear, so is kroneckerMap f.

Specializations

  • Matrix.kronecker: An alias of kroneckerMap (*). Prefer using the notation.

  • Matrix.kroneckerBilinear: Matrix.kronecker is bilinear

  • Matrix.kroneckerTMul: An alias of kroneckerMap (⊗ₜ). Prefer using the notation.

  • Matrix.kroneckerTMulBilinear: Matrix.kroneckerTMul is bilinear

Notation

These require open Kronecker:

  • A ⊗ₖ B for kroneckerMap (*) A B. Lemmas about this notation use the token kronecker.
  • A ⊗ₖₜ B and A ⊗ₖₜ[R] B for kroneckerMap (⊗ₜ) A B. Lemmas about this notation use the token kroneckerTMul.

Specialization to Matrix.kroneckerMap (*)

What follows is a copy, in order, of every Matrix.kroneckerMap lemma above that has hypotheses which can be filled by properties of *.

Specialization to Matrix.kroneckerMap (⊗ₜ)

What follows is a copy, in order, of every Matrix.kroneckerMap lemma above that has hypotheses which can be filled by properties of ⊗ₜ.

def Matrix.kroneckerMap E3 #

{α : Type u_3} →
  {β : Type u_5} →
    {γ : Type u_7} →
      {l : Type u_9} →
        {m : Type u_10} →
          {n : Type u_11} → {p : Type u_12} → (α → β → γ) → Matrix l m α → Matrix n p β → Matrix (l × n) (m × p) γ

Produce a matrix with f applied to every pair of elements from A and B.

theorem Matrix.kroneckerMap_apply E0 #

∀ {α : Type u_3} {β : Type u_5} {γ : Type u_7} {l : Type u_9} {m : Type u_10} {n : Type u_11} {p : Type u_12}
  (f : α → β → γ) (A : Matrix l m α) (B : Matrix n p β) (i : l × n) (j : m × p),
  Matrix.kroneckerMap f A B i j = f (A i.1 j.1) (B i.2 j.2)

theorem Matrix.kroneckerMap_transpose E1 #

∀ {α : Type u_3} {β : Type u_5} {γ : Type u_7} {l : Type u_9} {m : Type u_10} {n : Type u_11} {p : Type u_12}
  (f : α → β → γ) (A : Matrix l m α) (B : Matrix n p β),
  Matrix.kroneckerMap f A.transpose B.transpose = (Matrix.kroneckerMap f A B).transpose

theorem Matrix.kroneckerMap_map_left E1 #

∀ {α : Type u_3} {α' : Type u_4} {β : Type u_5} {γ : Type u_7} {l : Type u_9} {m : Type u_10} {n : Type u_11}
  {p : Type u_12} (f : α' → β → γ) (g : α → α') (A : Matrix l m α) (B : Matrix n p β),
  Matrix.kroneckerMap f (A.map g) B = Matrix.kroneckerMap (fun a b ↦ f (g a) b) A B

theorem Matrix.kroneckerMap_map_right E1 #

∀ {α : Type u_3} {β : Type u_5} {β' : Type u_6} {γ : Type u_7} {l : Type u_9} {m : Type u_10} {n : Type u_11}
  {p : Type u_12} (f : α → β' → γ) (g : β → β') (A : Matrix l m α) (B : Matrix n p β),
  Matrix.kroneckerMap f A (B.map g) = Matrix.kroneckerMap (fun a b ↦ f a (g b)) A B

theorem Matrix.kroneckerMap_map E1 #

∀ {α : Type u_3} {β : Type u_5} {γ : Type u_7} {γ' : Type u_8} {l : Type u_9} {m : Type u_10} {n : Type u_11}
  {p : Type u_12} (f : α → β → γ) (g : γ → γ') (A : Matrix l m α) (B : Matrix n p β),
  (Matrix.kroneckerMap f A B).map g = Matrix.kroneckerMap (fun a b ↦ g (f a b)) A B

theorem Matrix.kroneckerMap_submatrix_left E1 #

∀ {α : Type u_3} {β : Type u_5} {γ : Type u_7} {l : Type u_9} {m : Type u_10} {n : Type u_11} {p : Type u_12}
  {l' : Type u_15} {m' : Type u_16} (f : α → β → γ) (A : Matrix l m α) (B : Matrix n p β) (r : l' → l) (c : m' → m),
  Matrix.kroneckerMap f (A.submatrix r c) B = (Matrix.kroneckerMap f A B).submatrix (Prod.map r id) (Prod.map c id)

theorem Matrix.kroneckerMap_submatrix_right E1 #

∀ {α : Type u_3} {β : Type u_5} {γ : Type u_7} {l : Type u_9} {m : Type u_10} {n : Type u_11} {p : Type u_12}
  {n' : Type u_17} {p' : Type u_18} (f : α → β → γ) (A : Matrix l m α) (B : Matrix n p β) (r : n' → n) (c : p' → p),
  Matrix.kroneckerMap f A (B.submatrix r c) = (Matrix.kroneckerMap f A B).submatrix (Prod.map id r) (Prod.map id c)

theorem Matrix.kroneckerMap_submatrix_submatrix E1 #

∀ {α : Type u_3} {β : Type u_5} {γ : Type u_7} {l : Type u_9} {m : Type u_10} {n : Type u_11} {p : Type u_12}
  {l' : Type u_15} {m' : Type u_16} {n' : Type u_17} {p' : Type u_18} (f : α → β → γ) (A : Matrix l m α)
  (B : Matrix n p β) (r : l' → l) (c : m' → m) (r' : n' → n) (c' : p' → p),
  Matrix.kroneckerMap f (A.submatrix r c) (B.submatrix r' c') =
    (Matrix.kroneckerMap f A B).submatrix (Prod.map r r') (Prod.map c c')

theorem Matrix.kroneckerMap_zero_left E0 #

∀ {α : Type u_3} {β : Type u_5} {γ : Type u_7} {l : Type u_9} {m : Type u_10} {n : Type u_11} {p : Type u_12}
  [inst : Zero α] [inst_1 : Zero γ] (f : α → β → γ),
  (∀ (b : β), f 0 b = 0) → ∀ (B : Matrix n p β), Matrix.kroneckerMap f 0 B = 0

theorem Matrix.kroneckerMap_zero_right E0 #

∀ {α : Type u_3} {β : Type u_5} {γ : Type u_7} {l : Type u_9} {m : Type u_10} {n : Type u_11} {p : Type u_12}
  [inst : Zero β] [inst_1 : Zero γ] (f : α → β → γ),
  (∀ (a : α), f a 0 = 0) → ∀ (A : Matrix l m α), Matrix.kroneckerMap f A 0 = 0

theorem Matrix.kroneckerMap_add_left E1 #

∀ {α : Type u_3} {β : Type u_5} {γ : Type u_7} {l : Type u_9} {m : Type u_10} {n : Type u_11} {p : Type u_12}
  [inst : Add α] [inst_1 : Add γ] (f : α → β → γ),
  (∀ (a₁ a₂ : α) (b : β), f (a₁ + a₂) b = f a₁ b + f a₂ b) →
    ∀ (A₁ A₂ : Matrix l m α) (B : Matrix n p β),
      Matrix.kroneckerMap f (A₁ + A₂) B = Matrix.kroneckerMap f A₁ B + Matrix.kroneckerMap f A₂ B

theorem Matrix.kroneckerMap_add_right E1 #

∀ {α : Type u_3} {β : Type u_5} {γ : Type u_7} {l : Type u_9} {m : Type u_10} {n : Type u_11} {p : Type u_12}
  [inst : Add β] [inst_1 : Add γ] (f : α → β → γ),
  (∀ (a : α) (b₁ b₂ : β), f a (b₁ + b₂) = f a b₁ + f a b₂) →
    ∀ (A : Matrix l m α) (B₁ B₂ : Matrix n p β),
      Matrix.kroneckerMap f A (B₁ + B₂) = Matrix.kroneckerMap f A B₁ + Matrix.kroneckerMap f A B₂

theorem Matrix.kroneckerMap_smul_left E1 #

∀ {R : Type u_1} {α : Type u_3} {β : Type u_5} {γ : Type u_7} {l : Type u_9} {m : Type u_10} {n : Type u_11}
  {p : Type u_12} [inst : SMul R α] [inst_1 : SMul R γ] (f : α → β → γ) (r : R),
  (∀ (a : α) (b : β), f (r • a) b = r • f a b) →
    ∀ (A : Matrix l m α) (B : Matrix n p β), Matrix.kroneckerMap f (r • A) B = r • Matrix.kroneckerMap f A B

theorem Matrix.kroneckerMap_smul_right E1 #

∀ {R : Type u_1} {α : Type u_3} {β : Type u_5} {γ : Type u_7} {l : Type u_9} {m : Type u_10} {n : Type u_11}
  {p : Type u_12} [inst : SMul R β] [inst_1 : SMul R γ] (f : α → β → γ) (r : R),
  (∀ (a : α) (b : β), f a (r • b) = r • f a b) →
    ∀ (A : Matrix l m α) (B : Matrix n p β), Matrix.kroneckerMap f A (r • B) = r • Matrix.kroneckerMap f A B

theorem Matrix.kroneckerMap_single_single E1 #

∀ {α : Type u_3} {β : Type u_5} {γ : Type u_7} {l : Type u_9} {m : Type u_10} {n : Type u_11} {p : Type u_12}
  [inst : Zero α] [inst_1 : Zero β] [inst_2 : Zero γ] [inst_3 : DecidableEq l] [inst_4 : DecidableEq m]
  [inst_5 : DecidableEq n] [inst_6 : DecidableEq p] (i₁ : l) (j₁ : m) (i₂ : n) (j₂ : p) (f : α → β → γ),
  (∀ (b : β), f 0 b = 0) →
    (∀ (a : α), f a 0 = 0) →
      ∀ (a : α) (b : β),
        Matrix.kroneckerMap f (Matrix.single i₁ j₁ a) (Matrix.single i₂ j₂ b) = Matrix.single (i₁, i₂) (j₁, j₂) (f a b)

theorem Matrix.kroneckerMap_diagonal_diagonal E1 #

∀ {α : Type u_3} {β : Type u_5} {γ : Type u_7} {m : Type u_10} {n : Type u_11} [inst : Zero α] [inst_1 : Zero β]
  [inst_2 : Zero γ] [inst_3 : DecidableEq m] [inst_4 : DecidableEq n] (f : α → β → γ),
  (∀ (b : β), f 0 b = 0) →
    (∀ (a : α), f a 0 = 0) →
      ∀ (a : m → α) (b : n → β),
        Matrix.kroneckerMap f (Matrix.diagonal a) (Matrix.diagonal b) = Matrix.diagonal fun mn ↦ f (a mn.1) (b mn.2)

theorem Matrix.kroneckerMap_diagonal_right E1 #

∀ {α : Type u_3} {β : Type u_5} {γ : Type u_7} {l : Type u_9} {m : Type u_10} {n : Type u_11} [inst : Zero β]
  [inst_1 : Zero γ] [inst_2 : DecidableEq n] (f : α → β → γ),
  (∀ (a : α), f a 0 = 0) →
    ∀ (A : Matrix l m α) (b : n → β),
      Matrix.kroneckerMap f A (Matrix.diagonal b) = Matrix.blockDiagonal fun i ↦ A.map fun a ↦ f a (b i)

theorem Matrix.kroneckerMap_diagonal_left E1 #

∀ {α : Type u_3} {β : Type u_5} {γ : Type u_7} {l : Type u_9} {m : Type u_10} {n : Type u_11} [inst : Zero α]
  [inst_1 : Zero γ] [inst_2 : DecidableEq l] (f : α → β → γ),
  (∀ (b : β), f 0 b = 0) →
    ∀ (a : l → α) (B : Matrix m n β),
      Matrix.kroneckerMap f (Matrix.diagonal a) B =
        (Matrix.reindex (Equiv.prodComm m l) (Equiv.prodComm n l))
          (Matrix.blockDiagonal fun i ↦ B.map fun b ↦ f (a i) b)

theorem Matrix.kroneckerMap_one_one E0 #

∀ {α : Type u_3} {β : Type u_5} {γ : Type u_7} {m : Type u_10} {n : Type u_11} [inst : Zero α] [inst_1 : Zero β]
  [inst_2 : Zero γ] [inst_3 : One α] [inst_4 : One β] [inst_5 : One γ] [inst_6 : DecidableEq m] [inst_7 : DecidableEq n]
  (f : α → β → γ), (∀ (b : β), f 0 b = 0) → (∀ (a : α), f a 0 = 0) → f 1 1 = 1 → Matrix.kroneckerMap f 1 1 = 1

theorem Matrix.kroneckerMap_reindex E1 #

∀ {α : Type u_3} {β : Type u_5} {γ : Type u_7} {l : Type u_9} {m : Type u_10} {n : Type u_11} {p : Type u_12}
  {l' : Type u_15} {m' : Type u_16} {n' : Type u_17} {p' : Type u_18} (f : α → β → γ) (el : l ≃ l') (em : m ≃ m')
  (en : n ≃ n') (ep : p ≃ p') (M : Matrix l m α) (N : Matrix n p β),
  Matrix.kroneckerMap f ((Matrix.reindex el em) M) ((Matrix.reindex en ep) N) =
    (Matrix.reindex (el.prodCongr en) (em.prodCongr ep)) (Matrix.kroneckerMap f M N)

theorem Matrix.kroneckerMap_reindex_left E1 #

∀ {α : Type u_3} {β : Type u_5} {γ : Type u_7} {l : Type u_9} {m : Type u_10} {n : Type u_11} {l' : Type u_15}
  {m' : Type u_16} {n' : Type u_17} (f : α → β → γ) (el : l ≃ l') (em : m ≃ m') (M : Matrix l m α) (N : Matrix n n' β),
  Matrix.kroneckerMap f ((Matrix.reindex el em) M) N =
    (Matrix.reindex (el.prodCongr (Equiv.refl n)) (em.prodCongr (Equiv.refl n'))) (Matrix.kroneckerMap f M N)

theorem Matrix.kroneckerMap_reindex_right E1 #

∀ {α : Type u_3} {β : Type u_5} {γ : Type u_7} {l : Type u_9} {m : Type u_10} {n : Type u_11} {l' : Type u_15}
  {m' : Type u_16} {n' : Type u_17} (f : α → β → γ) (em : m ≃ m') (en : n ≃ n') (M : Matrix l l' α) (N : Matrix m n β),
  Matrix.kroneckerMap f M ((Matrix.reindex em en) N) =
    (Matrix.reindex ((Equiv.refl l).prodCongr em) ((Equiv.refl l').prodCongr en)) (Matrix.kroneckerMap f M N)

theorem Matrix.kroneckerMap_assoc E1 #

∀ {α : Type u_3} {β : Type u_5} {γ : Type u_7} {l : Type u_9} {m : Type u_10} {n : Type u_11} {p : Type u_12}
  {q : Type u_13} {r : Type u_14} {δ : Type u_19} {ξ : Type u_20} {ω : Type u_21} {ω' : Type u_22} (f : α → β → γ)
  (g : γ → δ → ω) (f' : α → ξ → ω') (g' : β → δ → ξ) (A : Matrix l m α) (B : Matrix n p β) (D : Matrix q r δ)
  (φ : ω ≃ ω'),
  (∀ (a : α) (b : β) (d : δ), φ (g (f a b) d) = f' a (g' b d)) →
    ((Matrix.reindex (Equiv.prodAssoc l n q) (Equiv.prodAssoc m p r)).trans φ.mapMatrix)
        (Matrix.kroneckerMap g (Matrix.kroneckerMap f A B) D) =
      Matrix.kroneckerMap f' A (Matrix.kroneckerMap g' B D)

theorem Matrix.kroneckerMap_assoc₁ E1 #

∀ {α : Type u_3} {β : Type u_5} {γ : Type u_7} {l : Type u_9} {m : Type u_10} {n : Type u_11} {p : Type u_12}
  {q : Type u_13} {r : Type u_14} {δ : Type u_19} {ξ : Type u_20} {ω : Type u_21} (f : α → β → γ) (g : γ → δ → ω)
  (f' : α → ξ → ω) (g' : β → δ → ξ) (A : Matrix l m α) (B : Matrix n p β) (D : Matrix q r δ),
  (∀ (a : α) (b : β) (d : δ), g (f a b) d = f' a (g' b d)) →
    (Matrix.reindex (Equiv.prodAssoc l n q) (Equiv.prodAssoc m p r))
        (Matrix.kroneckerMap g (Matrix.kroneckerMap f A B) D) =
      Matrix.kroneckerMap f' A (Matrix.kroneckerMap g' B D)

def Matrix.kroneckerMapBilinear E3 #

{R : Type u_1} →
  {S : Type u_2} →
    {α : Type u_3} →
      {β : Type u_5} →
        {γ : Type u_7} →
          {l : Type u_9} →
            {m : Type u_10} →
              {n : Type u_11} →
                {p : Type u_12} →
                  [inst : Semiring S] →
                    [inst_1 : Semiring R] →
                      [inst_2 : AddCommMonoid α] →
                        [inst_3 : AddCommMonoid β] →
                          [inst_4 : AddCommMonoid γ] →
                            [inst_5 : Module R α] →
                              [inst_6 : Module R γ] →
                                [inst_7 : Module S β] →
                                  [inst_8 : Module S γ] →
                                    [inst_9 : SMulCommClass S R γ] →
                                      (α →ₗ[R] β →ₗ[S] γ) →
                                        Matrix l m α →ₗ[R] Matrix n p β →ₗ[S] Matrix (l × n) (m × p) γ

When f is bilinear then Matrix.kroneckerMap f is also bilinear.

theorem Matrix.kroneckerMapBilinear_apply_apply E0 #

∀ {R : Type u_1} {S : Type u_2} {α : Type u_3} {β : Type u_5} {γ : Type u_7} {l : Type u_9} {m : Type u_10}
  {n : Type u_11} {p : Type u_12} [inst : Semiring S] [inst_1 : Semiring R] [inst_2 : AddCommMonoid α]
  [inst_3 : AddCommMonoid β] [inst_4 : AddCommMonoid γ] [inst_5 : Module R α] [inst_6 : Module R γ]
  [inst_7 : Module S β] [inst_8 : Module S γ] [inst_9 : SMulCommClass S R γ] (f : α →ₗ[R] β →ₗ[S] γ)
  (m_1 : Matrix l m α) (B : Matrix n p β),
  ((Matrix.kroneckerMapBilinear f) m_1) B = Matrix.kroneckerMap (fun r s ↦ (f r) s) m_1 B

theorem Matrix.kroneckerMapBilinear_mul_mul E1 #

∀ {R : Type u_1} {S : Type u_2} {α : Type u_3} {β : Type u_5} {γ : Type u_7} {l : Type u_9} {m : Type u_10}
  {n : Type u_11} {l' : Type u_15} {m' : Type u_16} {n' : Type u_17} [inst : Semiring S] [inst_1 : Semiring R]
  [inst_2 : Fintype m] [inst_3 : Fintype m'] [inst_4 : NonUnitalNonAssocSemiring α]
  [inst_5 : NonUnitalNonAssocSemiring β] [inst_6 : NonUnitalNonAssocSemiring γ] [inst_7 : Module R α]
  [inst_8 : Module R γ] [inst_9 : Module S β] [inst_10 : Module S γ] [inst_11 : SMulCommClass S R γ]
  (f : α →ₗ[R] β →ₗ[S] γ),
  (∀ (a b : α) (a' b' : β), (f (a * b)) (a' * b') = (f a) a' * (f b) b') →
    ∀ (A : Matrix l m α) (B : Matrix m n α) (A' : Matrix l' m' β) (B' : Matrix m' n' β),
      ((Matrix.kroneckerMapBilinear f) (A * B)) (A' * B') =
        ((Matrix.kroneckerMapBilinear f) A) A' * ((Matrix.kroneckerMapBilinear f) B) B'

Matrix.kroneckerMapBilinear commutes with * if f does.

This is primarily used with R = ℕ to prove Matrix.mul_kronecker_mul.

theorem Matrix.trace_kroneckerMapBilinear E1 #

∀ {R : Type u_1} {S : Type u_2} {α : Type u_3} {β : Type u_5} {γ : Type u_7} {m : Type u_10} {n : Type u_11}
  [inst : Semiring S] [inst_1 : Semiring R] [inst_2 : Fintype m] [inst_3 : Fintype n] [inst_4 : AddCommMonoid α]
  [inst_5 : AddCommMonoid β] [inst_6 : AddCommMonoid γ] [inst_7 : Module R α] [inst_8 : Module R γ]
  [inst_9 : Module S β] [inst_10 : Module S γ] [inst_11 : SMulCommClass S R γ] (f : α →ₗ[R] β →ₗ[S] γ)
  (A : Matrix m m α) (B : Matrix n n β), (((Matrix.kroneckerMapBilinear f) A) B).trace = (f A.trace) B.trace

trace distributes over Matrix.kroneckerMapBilinear.

This is primarily used with R = ℕ to prove Matrix.trace_kronecker.

theorem Matrix.det_kroneckerMapBilinear E1 #

∀ {R : Type u_1} {S : Type u_2} {α : Type u_3} {β : Type u_5} {γ : Type u_7} {m : Type u_10} {n : Type u_11}
  [inst : Semiring S] [inst_1 : Semiring R] [inst_2 : Fintype m] [inst_3 : Fintype n] [inst_4 : DecidableEq m]
  [inst_5 : DecidableEq n] [inst_6 : NonAssocSemiring α] [inst_7 : NonAssocSemiring β] [inst_8 : CommRing γ]
  [inst_9 : Module R α] [inst_10 : Module S β] [inst_11 : Module R γ] [inst_12 : Module S γ]
  [inst_13 : SMulCommClass S R γ] (f : α →ₗ[R] β →ₗ[S] γ),
  (∀ (a b : α) (a' b' : β), (f (a * b)) (a' * b') = (f a) a' * (f b) b') →
    ∀ (A : Matrix m m α) (B : Matrix n n β),
      (((Matrix.kroneckerMapBilinear f) A) B).det =
        (A.map fun a ↦ (f a) 1).det ^ Fintype.card n * (B.map fun b ↦ (f 1) b).det ^ Fintype.card m

determinant of Matrix.kroneckerMapBilinear.

This is primarily used with R = ℕ to prove Matrix.det_kronecker.

def Matrix.kronecker E1 #

{α : Type u_3} →
  {l : Type u_9} →
    {m : Type u_10} →
      {n : Type u_11} → {p : Type u_12} → [Mul α] → Matrix l m α → Matrix n p α → Matrix (l × n) (m × p) α

The Kronecker product. This is just a shorthand for kroneckerMap (*). Prefer the notation ⊗ₖ rather than this definition.

def Kronecker.«term_⊗ₖ_» E1 #

Lean.TrailingParserDescr

Produce a matrix with f applied to every pair of elements from A and B.

theorem Matrix.kronecker_apply E0 #

∀ {α : Type u_3} {l : Type u_9} {m : Type u_10} {n : Type u_11} {p : Type u_12} [inst : Mul α] (A : Matrix l m α)
  (B : Matrix n p α) (i₁ : l) (i₂ : n) (j₁ : m) (j₂ : p),
  Matrix.kroneckerMap (fun x1 x2 ↦ x1 * x2) A B (i₁, i₂) (j₁, j₂) = A i₁ j₁ * B i₂ j₂

def Matrix.kroneckerBilinear E1 #

{R : Type u_1} →
  {α : Type u_3} →
    {l : Type u_9} →
      {m : Type u_10} →
        {n : Type u_11} →
          {p : Type u_12} →
            [inst : CommSemiring R] →
              [inst_1 : Semiring α] →
                [inst_2 : Algebra R α] → Matrix l m α →ₗ[R] Matrix n p α →ₗ[R] Matrix (l × n) (m × p) α

Matrix.kronecker as a bilinear map.

theorem Matrix.zero_kronecker E1 #

∀ {α : Type u_3} {l : Type u_9} {m : Type u_10} {n : Type u_11} {p : Type u_12} [inst : MulZeroClass α]
  (B : Matrix n p α), Matrix.kroneckerMap (fun x1 x2 ↦ x1 * x2) 0 B = 0

theorem Matrix.kronecker_zero E1 #

∀ {α : Type u_3} {l : Type u_9} {m : Type u_10} {n : Type u_11} {p : Type u_12} [inst : MulZeroClass α]
  (A : Matrix l m α), Matrix.kroneckerMap (fun x1 x2 ↦ x1 * x2) A 0 = 0

theorem Matrix.add_kronecker E1 #

∀ {α : Type u_3} {l : Type u_9} {m : Type u_10} {n : Type u_11} {p : Type u_12} [inst : Distrib α]
  (A₁ A₂ : Matrix l m α) (B : Matrix n p α),
  Matrix.kroneckerMap (fun x1 x2 ↦ x1 * x2) (A₁ + A₂) B =
    Matrix.kroneckerMap (fun x1 x2 ↦ x1 * x2) A₁ B + Matrix.kroneckerMap (fun x1 x2 ↦ x1 * x2) A₂ B

theorem Matrix.kronecker_add E1 #

∀ {α : Type u_3} {l : Type u_9} {m : Type u_10} {n : Type u_11} {p : Type u_12} [inst : Distrib α] (A : Matrix l m α)
  (B₁ B₂ : Matrix n p α),
  Matrix.kroneckerMap (fun x1 x2 ↦ x1 * x2) A (B₁ + B₂) =
    Matrix.kroneckerMap (fun x1 x2 ↦ x1 * x2) A B₁ + Matrix.kroneckerMap (fun x1 x2 ↦ x1 * x2) A B₂

theorem Matrix.smul_kronecker E1 #

∀ {R : Type u_1} {α : Type u_3} {l : Type u_9} {m : Type u_10} {n : Type u_11} {p : Type u_12} [inst : Mul α]
  [inst_1 : SMul R α] [IsScalarTower R α α] (r : R) (A : Matrix l m α) (B : Matrix n p α),
  Matrix.kroneckerMap (fun x1 x2 ↦ x1 * x2) (r • A) B = r • Matrix.kroneckerMap (fun x1 x2 ↦ x1 * x2) A B

theorem Matrix.kronecker_smul E1 #

∀ {R : Type u_1} {α : Type u_3} {l : Type u_9} {m : Type u_10} {n : Type u_11} {p : Type u_12} [inst : Mul α]
  [inst_1 : SMul R α] [SMulCommClass R α α] (r : R) (A : Matrix l m α) (B : Matrix n p α),
  Matrix.kroneckerMap (fun x1 x2 ↦ x1 * x2) A (r • B) = r • Matrix.kroneckerMap (fun x1 x2 ↦ x1 * x2) A B

theorem Matrix.single_kronecker_single E1 #

∀ {α : Type u_3} {l : Type u_9} {m : Type u_10} {n : Type u_11} {p : Type u_12} [inst : MulZeroClass α]
  [inst_1 : DecidableEq l] [inst_2 : DecidableEq m] [inst_3 : DecidableEq n] [inst_4 : DecidableEq p] (ia : l) (ja : m)
  (ib : n) (jb : p) (a b : α),
  Matrix.kroneckerMap (fun x1 x2 ↦ x1 * x2) (Matrix.single ia ja a) (Matrix.single ib jb b) =
    Matrix.single (ia, ib) (ja, jb) (a * b)

theorem Matrix.diagonal_kronecker_diagonal E1 #

∀ {α : Type u_3} {m : Type u_10} {n : Type u_11} [inst : MulZeroClass α] [inst_1 : DecidableEq m]
  [inst_2 : DecidableEq n] (a : m → α) (b : n → α),
  Matrix.kroneckerMap (fun x1 x2 ↦ x1 * x2) (Matrix.diagonal a) (Matrix.diagonal b) =
    Matrix.diagonal fun mn ↦ a mn.1 * b mn.2

theorem Matrix.kronecker_diagonal E1 #

∀ {α : Type u_3} {l : Type u_9} {m : Type u_10} {n : Type u_11} [inst : MulZeroClass α] [inst_1 : DecidableEq n]
  (A : Matrix l m α) (b : n → α),
  Matrix.kroneckerMap (fun x1 x2 ↦ x1 * x2) A (Matrix.diagonal b) =
    Matrix.blockDiagonal fun i ↦ MulOpposite.op (b i) • A

theorem Matrix.diagonal_kronecker E1 #

∀ {α : Type u_3} {l : Type u_9} {m : Type u_10} {n : Type u_11} [inst : MulZeroClass α] [inst_1 : DecidableEq l]
  (a : l → α) (B : Matrix m n α),
  Matrix.kroneckerMap (fun x1 x2 ↦ x1 * x2) (Matrix.diagonal a) B =
    (Matrix.reindex (Equiv.prodComm m l) (Equiv.prodComm n l)) (Matrix.blockDiagonal fun i ↦ a i • B)

theorem Matrix.natCast_kronecker_natCast E0 #

∀ {α : Type u_3} {m : Type u_10} {n : Type u_11} [inst : NonAssocSemiring α] [inst_1 : DecidableEq m]
  [inst_2 : DecidableEq n] (a b : ℕ), Matrix.kroneckerMap (fun x1 x2 ↦ x1 * x2) ↑a ↑b = ↑(a * b)

theorem Matrix.kronecker_natCast E1 #

∀ {α : Type u_3} {l : Type u_9} {m : Type u_10} {n : Type u_11} [inst : NonAssocSemiring α] [inst_1 : DecidableEq n]
  (A : Matrix l m α) (b : ℕ), Matrix.kroneckerMap (fun x1 x2 ↦ x1 * x2) A ↑b = Matrix.blockDiagonal fun x ↦ b • A

theorem Matrix.natCast_kronecker E1 #

∀ {α : Type u_3} {l : Type u_9} {m : Type u_10} {n : Type u_11} [inst : NonAssocSemiring α] [inst_1 : DecidableEq l]
  (a : ℕ) (B : Matrix m n α),
  Matrix.kroneckerMap (fun x1 x2 ↦ x1 * x2) (↑a) B =
    (Matrix.reindex (Equiv.prodComm m l) (Equiv.prodComm n l)) (Matrix.blockDiagonal fun x ↦ a • B)

theorem Matrix.kronecker_ofNat E1 #

∀ {α : Type u_3} {l : Type u_9} {m : Type u_10} {n : Type u_11} [inst : NonAssocSemiring α] [inst_1 : DecidableEq n]
  (A : Matrix l m α) (b : ℕ) [inst_2 : b.AtLeastTwo],
  Matrix.kroneckerMap (fun x1 x2 ↦ x1 * x2) A (OfNat.ofNat b) =
    Matrix.blockDiagonal fun x ↦ MulOpposite.op (OfNat.ofNat b) • A

theorem Matrix.ofNat_kronecker E1 #

∀ {α : Type u_3} {l : Type u_9} {m : Type u_10} {n : Type u_11} [inst : NonAssocSemiring α] [inst_1 : DecidableEq l]
  (a : ℕ) [inst_2 : a.AtLeastTwo] (B : Matrix m n α),
  Matrix.kroneckerMap (fun x1 x2 ↦ x1 * x2) (OfNat.ofNat a) B =
    (Matrix.reindex (Equiv.prodComm m l) (Equiv.prodComm n l)) (Matrix.blockDiagonal fun x ↦ OfNat.ofNat a • B)

theorem Matrix.one_kronecker_one E1 #

∀ {α : Type u_3} {m : Type u_10} {n : Type u_11} [inst : MulZeroOneClass α] [inst_1 : DecidableEq m]
  [inst_2 : DecidableEq n], Matrix.kroneckerMap (fun x1 x2 ↦ x1 * x2) 1 1 = 1

theorem Matrix.kronecker_one E1 #

∀ {α : Type u_3} {l : Type u_9} {m : Type u_10} {n : Type u_11} [inst : MulZeroOneClass α] [inst_1 : DecidableEq n]
  (A : Matrix l m α), Matrix.kroneckerMap (fun x1 x2 ↦ x1 * x2) A 1 = Matrix.blockDiagonal fun x ↦ A

theorem Matrix.one_kronecker E1 #

∀ {α : Type u_3} {l : Type u_9} {m : Type u_10} {n : Type u_11} [inst : MulZeroOneClass α] [inst_1 : DecidableEq l]
  (B : Matrix m n α),
  Matrix.kroneckerMap (fun x1 x2 ↦ x1 * x2) 1 B =
    (Matrix.reindex (Equiv.prodComm m l) (Equiv.prodComm n l)) (Matrix.blockDiagonal fun x ↦ B)

theorem Matrix.mul_kronecker_mul E1 #

∀ {α : Type u_3} {l : Type u_9} {m : Type u_10} {n : Type u_11} {l' : Type u_15} {m' : Type u_16} {n' : Type u_17}
  [inst : Fintype m] [inst_1 : Fintype m'] [inst_2 : CommSemiring α] (A : Matrix l m α) (B : Matrix m n α)
  (A' : Matrix l' m' α) (B' : Matrix m' n' α),
  Matrix.kroneckerMap (fun x1 x2 ↦ x1 * x2) (A * B) (A' * B') =
    Matrix.kroneckerMap (fun x1 x2 ↦ x1 * x2) A A' * Matrix.kroneckerMap (fun x1 x2 ↦ x1 * x2) B B'

theorem Matrix.kronecker_assoc E1 #

∀ {α : Type u_3} {l : Type u_9} {m : Type u_10} {n : Type u_11} {p : Type u_12} {q : Type u_13} {r : Type u_14}
  [inst : Semigroup α] (A : Matrix l m α) (B : Matrix n p α) (C : Matrix q r α),
  (Matrix.reindex (Equiv.prodAssoc l n q) (Equiv.prodAssoc m p r))
      (Matrix.kroneckerMap (fun x1 x2 ↦ x1 * x2) (Matrix.kroneckerMap (fun x1 x2 ↦ x1 * x2) A B) C) =
    Matrix.kroneckerMap (fun x1 x2 ↦ x1 * x2) A (Matrix.kroneckerMap (fun x1 x2 ↦ x1 * x2) B C)

theorem Matrix.kronecker_assoc' E0 #

∀ {α : Type u_3} {l : Type u_9} {m : Type u_10} {n : Type u_11} {p : Type u_12} {q : Type u_13} {r : Type u_14}
  [inst : Semigroup α] (A : Matrix l m α) (B : Matrix n p α) (C : Matrix q r α),
  (Matrix.kroneckerMap (fun x1 x2 ↦ x1 * x2) (Matrix.kroneckerMap (fun x1 x2 ↦ x1 * x2) A B) C).submatrix
      ⇑(Equiv.prodAssoc l n q).symm ⇑(Equiv.prodAssoc m p r).symm =
    Matrix.kroneckerMap (fun x1 x2 ↦ x1 * x2) A (Matrix.kroneckerMap (fun x1 x2 ↦ x1 * x2) B C)

theorem Matrix.trace_kronecker E1 #

∀ {α : Type u_3} {m : Type u_10} {n : Type u_11} [inst : Fintype m] [inst_1 : Fintype n] [inst_2 : Semiring α]
  (A : Matrix m m α) (B : Matrix n n α), (Matrix.kroneckerMap (fun x1 x2 ↦ x1 * x2) A B).trace = A.trace * B.trace

theorem Matrix.det_kronecker E1 #

∀ {R : Type u_1} {m : Type u_10} {n : Type u_11} [inst : Fintype m] [inst_1 : Fintype n] [inst_2 : DecidableEq m]
  [inst_3 : DecidableEq n] [inst_4 : CommRing R] (A : Matrix m m R) (B : Matrix n n R),
  (Matrix.kroneckerMap (fun x1 x2 ↦ x1 * x2) A B).det = A.det ^ Fintype.card n * B.det ^ Fintype.card m

theorem Matrix.conjTranspose_kronecker E1 #

∀ {R : Type u_1} {l : Type u_9} {m : Type u_10} {n : Type u_11} {p : Type u_12} [inst : CommMagma R]
  [inst_1 : StarMul R] (x : Matrix l m R) (y : Matrix n p R),
  (Matrix.kroneckerMap (fun x1 x2 ↦ x1 * x2) x y).conjTranspose =
    Matrix.kroneckerMap (fun x1 x2 ↦ x1 * x2) x.conjTranspose y.conjTranspose

theorem Matrix.conjTranspose_kronecker' E1 #

∀ {R : Type u_1} {l : Type u_9} {m : Type u_10} {n : Type u_11} {p : Type u_12} [inst : Mul R] [inst_1 : StarMul R]
  (x : Matrix l m R) (y : Matrix n p R),
  (Matrix.kroneckerMap (fun x1 x2 ↦ x1 * x2) x y).conjTranspose =
    (Matrix.kroneckerMap (fun x1 x2 ↦ x1 * x2) y.conjTranspose x.conjTranspose).submatrix Prod.swap Prod.swap

def Matrix.kroneckerTMul E1 #

(R : Type u_1) →
  {α : Type u_3} →
    {β : Type u_5} →
      {l : Type u_9} →
        {m : Type u_10} →
          {n : Type u_11} →
            {p : Type u_12} →
              [inst : CommSemiring R] →
                [inst_1 : AddCommMonoid α] →
                  [inst_2 : AddCommMonoid β] →
                    [inst_3 : Module R α] →
                      [inst_4 : Module R β] → Matrix l m α → Matrix n p β → Matrix (l × n) (m × p) (TensorProduct R α β)

The Kronecker tensor product. This is just a shorthand for kroneckerMap (⊗ₜ). Prefer the notation ⊗ₖₜ rather than this definition.

def Kronecker.«term_⊗ₖₜ_» E1 #

Lean.TrailingParserDescr

The Kronecker tensor product. This is just a shorthand for kroneckerMap (⊗ₜ). Prefer the notation ⊗ₖₜ rather than this definition.

def Kronecker.«term_⊗ₖₜ[_]_» E1 #

Lean.TrailingParserDescr

The Kronecker tensor product. This is just a shorthand for kroneckerMap (⊗ₜ). Prefer the notation ⊗ₖₜ rather than this definition.

theorem Matrix.kroneckerTMul_apply E0 #

∀ (R : Type u_1) {α : Type u_3} {β : Type u_5} {l : Type u_9} {m : Type u_10} {n : Type u_11} {p : Type u_12}
  [inst : CommSemiring R] [inst_1 : AddCommMonoid α] [inst_2 : AddCommMonoid β] [inst_3 : Module R α]
  [inst_4 : Module R β] (A : Matrix l m α) (B : Matrix n p β) (i₁ : l) (i₂ : n) (j₁ : m) (j₂ : p),
  Matrix.kroneckerMap (TensorProduct.tmul R) A B (i₁, i₂) (j₁, j₂) = A i₁ j₁ ⊗ₜ[R] B i₂ j₂

def Matrix.kroneckerTMulBilinear E1 #

(R : Type u_1) →
  (S : Type u_2) →
    {α : Type u_3} →
      {β : Type u_5} →
        {l : Type u_9} →
          {m : Type u_10} →
            {n : Type u_11} →
              {p : Type u_12} →
                [inst : CommSemiring R] →
                  [inst_1 : AddCommMonoid α] →
                    [inst_2 : AddCommMonoid β] →
                      [inst_3 : Module R α] →
                        [inst_4 : Module R β] →
                          [inst_5 : Semiring S] →
                            [inst_6 : Module S α] →
                              [inst_7 : SMulCommClass R S α] →
                                Matrix l m α →ₗ[S] Matrix n p β →ₗ[R] Matrix (l × n) (m × p) (TensorProduct R α β)

Matrix.kronecker as a bilinear map.

theorem Matrix.kroneckerTMulBilinear_apply E0 #

∀ (R : Type u_1) {S : Type u_2} {α : Type u_3} {β : Type u_5} {l : Type u_9} {m : Type u_10} {n : Type u_11}
  {p : Type u_12} [inst : CommSemiring R] [inst_1 : AddCommMonoid α] [inst_2 : AddCommMonoid β] [inst_3 : Module R α]
  [inst_4 : Module R β] [inst_5 : Semiring S] [inst_6 : Module S α] [inst_7 : SMulCommClass R S α] (A : Matrix l m α)
  (B : Matrix n p β), ((Matrix.kroneckerTMulBilinear R S) A) B = Matrix.kroneckerMap (TensorProduct.tmul R) A B

theorem Matrix.zero_kroneckerTMul E1 #

∀ (R : Type u_1) {α : Type u_3} {β : Type u_5} {l : Type u_9} {m : Type u_10} {n : Type u_11} {p : Type u_12}
  [inst : CommSemiring R] [inst_1 : AddCommMonoid α] [inst_2 : AddCommMonoid β] [inst_3 : Module R α]
  [inst_4 : Module R β] (B : Matrix n p β), Matrix.kroneckerMap (TensorProduct.tmul R) 0 B = 0

theorem Matrix.kroneckerTMul_zero E1 #

∀ (R : Type u_1) {α : Type u_3} {β : Type u_5} {l : Type u_9} {m : Type u_10} {n : Type u_11} {p : Type u_12}
  [inst : CommSemiring R] [inst_1 : AddCommMonoid α] [inst_2 : AddCommMonoid β] [inst_3 : Module R α]
  [inst_4 : Module R β] (A : Matrix l m α), Matrix.kroneckerMap (TensorProduct.tmul R) A 0 = 0

theorem Matrix.add_kroneckerTMul E1 #

∀ (R : Type u_1) {α : Type u_3} {l : Type u_9} {m : Type u_10} {n : Type u_11} {p : Type u_12} [inst : CommSemiring R]
  [inst_1 : AddCommMonoid α] [inst_2 : Module R α] (A₁ A₂ : Matrix l m α) (B : Matrix n p α),
  Matrix.kroneckerMap (TensorProduct.tmul R) (A₁ + A₂) B =
    Matrix.kroneckerMap (TensorProduct.tmul R) A₁ B + Matrix.kroneckerMap (TensorProduct.tmul R) A₂ B

theorem Matrix.kroneckerTMul_add E1 #

∀ (R : Type u_1) {α : Type u_3} {β : Type u_5} {l : Type u_9} {m : Type u_10} {n : Type u_11} {p : Type u_12}
  [inst : CommSemiring R] [inst_1 : AddCommMonoid α] [inst_2 : AddCommMonoid β] [inst_3 : Module R α]
  [inst_4 : Module R β] (A : Matrix l m α) (B₁ B₂ : Matrix n p β),
  Matrix.kroneckerMap (TensorProduct.tmul R) A (B₁ + B₂) =
    Matrix.kroneckerMap (TensorProduct.tmul R) A B₁ + Matrix.kroneckerMap (TensorProduct.tmul R) A B₂

theorem Matrix.smul_kroneckerTMul E1 #

∀ (R : Type u_1) {S : Type u_2} {α : Type u_3} {β : Type u_5} {l : Type u_9} {m : Type u_10} {n : Type u_11}
  {p : Type u_12} [inst : CommSemiring R] [inst_1 : AddCommMonoid α] [inst_2 : AddCommMonoid β] [inst_3 : Module R α]
  [inst_4 : Module R β] [inst_5 : Monoid S] [inst_6 : DistribMulAction S α] [inst_7 : SMulCommClass R S α] (r : S)
  (A : Matrix l m α) (B : Matrix n p β),
  Matrix.kroneckerMap (TensorProduct.tmul R) (r • A) B = r • Matrix.kroneckerMap (TensorProduct.tmul R) A B

theorem Matrix.kroneckerTMul_smul E1 #

∀ (R : Type u_1) {S : Type u_2} {α : Type u_3} {β : Type u_5} {l : Type u_9} {m : Type u_10} {n : Type u_11}
  {p : Type u_12} [inst : CommSemiring R] [inst_1 : AddCommMonoid α] [inst_2 : AddCommMonoid β] [inst_3 : Module R α]
  [inst_4 : Module R β] [inst_5 : Monoid S] [inst_6 : DistribMulAction S α] [inst_7 : DistribMulAction S β]
  [inst_8 : SMul S R] [inst_9 : SMulCommClass R S α] [IsScalarTower S R α] [IsScalarTower S R β] (r : S)
  (A : Matrix l m α) (B : Matrix n p β),
  Matrix.kroneckerMap (TensorProduct.tmul R) A (r • B) = r • Matrix.kroneckerMap (TensorProduct.tmul R) A B

theorem Matrix.single_kroneckerTMul_single E1 #

∀ (R : Type u_1) {α : Type u_3} {β : Type u_5} {l : Type u_9} {m : Type u_10} {n : Type u_11} {p : Type u_12}
  [inst : CommSemiring R] [inst_1 : AddCommMonoid α] [inst_2 : AddCommMonoid β] [inst_3 : Module R α]
  [inst_4 : Module R β] [inst_5 : DecidableEq l] [inst_6 : DecidableEq m] [inst_7 : DecidableEq n]
  [inst_8 : DecidableEq p] (i₁ : l) (j₁ : m) (i₂ : n) (j₂ : p) (a : α) (b : β),
  Matrix.kroneckerMap (TensorProduct.tmul R) (Matrix.single i₁ j₁ a) (Matrix.single i₂ j₂ b) =
    Matrix.single (i₁, i₂) (j₁, j₂) (a ⊗ₜ[R] b)

theorem Matrix.diagonal_kroneckerTMul_diagonal E1 #

∀ (R : Type u_1) {α : Type u_3} {β : Type u_5} {m : Type u_10} {n : Type u_11} [inst : CommSemiring R]
  [inst_1 : AddCommMonoid α] [inst_2 : AddCommMonoid β] [inst_3 : Module R α] [inst_4 : Module R β]
  [inst_5 : DecidableEq m] [inst_6 : DecidableEq n] (a : m → α) (b : n → β),
  Matrix.kroneckerMap (TensorProduct.tmul R) (Matrix.diagonal a) (Matrix.diagonal b) =
    Matrix.diagonal fun mn ↦ a mn.1 ⊗ₜ[R] b mn.2

theorem Matrix.kroneckerTMul_diagonal E1 #

∀ (R : Type u_1) {α : Type u_3} {β : Type u_5} {l : Type u_9} {m : Type u_10} {n : Type u_11} [inst : CommSemiring R]
  [inst_1 : AddCommMonoid α] [inst_2 : AddCommMonoid β] [inst_3 : Module R α] [inst_4 : Module R β]
  [inst_5 : DecidableEq n] (A : Matrix l m α) (b : n → β),
  Matrix.kroneckerMap (TensorProduct.tmul R) A (Matrix.diagonal b) =
    Matrix.blockDiagonal fun i ↦ A.map fun a ↦ a ⊗ₜ[R] b i

theorem Matrix.diagonal_kroneckerTMul E1 #

∀ (R : Type u_1) {α : Type u_3} {β : Type u_5} {l : Type u_9} {m : Type u_10} {n : Type u_11} [inst : CommSemiring R]
  [inst_1 : AddCommMonoid α] [inst_2 : AddCommMonoid β] [inst_3 : Module R α] [inst_4 : Module R β]
  [inst_5 : DecidableEq l] (a : l → α) (B : Matrix m n β),
  Matrix.kroneckerMap (TensorProduct.tmul R) (Matrix.diagonal a) B =
    (Matrix.reindex (Equiv.prodComm m l) (Equiv.prodComm n l)) (Matrix.blockDiagonal fun i ↦ B.map fun b ↦ a i ⊗ₜ[R] b)

theorem Matrix.kroneckerTMul_assoc E1 #

∀ (R : Type u_1) {α : Type u_3} {β : Type u_5} {γ : Type u_7} {l : Type u_9} {m : Type u_10} {n : Type u_11}
  {p : Type u_12} {q : Type u_13} {r : Type u_14} [inst : CommSemiring R] [inst_1 : AddCommMonoid α]
  [inst_2 : AddCommMonoid β] [inst_3 : AddCommMonoid γ] [inst_4 : Module R α] [inst_5 : Module R β]
  [inst_6 : Module R γ] (A : Matrix l m α) (B : Matrix n p β) (C : Matrix q r γ),
  (Matrix.reindex (Equiv.prodAssoc l n q) (Equiv.prodAssoc m p r))
      ((Matrix.kroneckerMap (TensorProduct.tmul R) (Matrix.kroneckerMap (TensorProduct.tmul R) A B) C).map
        ⇑(TensorProduct.assoc R α β γ)) =
    Matrix.kroneckerMap (TensorProduct.tmul R) A (Matrix.kroneckerMap (TensorProduct.tmul R) B C)

theorem Matrix.kroneckerTMul_assoc' E0 #

∀ (R : Type u_1) {α : Type u_3} {β : Type u_5} {γ : Type u_7} {l : Type u_9} {m : Type u_10} {n : Type u_11}
  {p : Type u_12} {q : Type u_13} {r : Type u_14} [inst : CommSemiring R] [inst_1 : AddCommMonoid α]
  [inst_2 : AddCommMonoid β] [inst_3 : AddCommMonoid γ] [inst_4 : Module R α] [inst_5 : Module R β]
  [inst_6 : Module R γ] (A : Matrix l m α) (B : Matrix n p β) (C : Matrix q r γ),
  ((Matrix.kroneckerMap (TensorProduct.tmul R) (Matrix.kroneckerMap (TensorProduct.tmul R) A B) C).map
          ⇑(TensorProduct.assoc R α β γ)).submatrix
      ⇑(Equiv.prodAssoc l n q).symm ⇑(Equiv.prodAssoc m p r).symm =
    Matrix.kroneckerMap (TensorProduct.tmul R) A (Matrix.kroneckerMap (TensorProduct.tmul R) B C)

theorem Matrix.trace_kroneckerTMul E1 #

∀ (R : Type u_1) {α : Type u_3} {β : Type u_5} {m : Type u_10} {n : Type u_11} [inst : CommSemiring R]
  [inst_1 : AddCommMonoid α] [inst_2 : AddCommMonoid β] [inst_3 : Module R α] [inst_4 : Module R β] [inst_5 : Fintype m]
  [inst_6 : Fintype n] (A : Matrix m m α) (B : Matrix n n β),
  (Matrix.kroneckerMap (TensorProduct.tmul R) A B).trace = A.trace ⊗ₜ[R] B.trace

theorem Matrix.conjTranspose_kroneckerTMul E1 #

∀ (R : Type u_1) {α : Type u_3} {β : Type u_5} {l : Type u_9} {m : Type u_10} {n : Type u_11} {p : Type u_12}
  [inst : CommSemiring R] [inst_1 : AddCommMonoid α] [inst_2 : AddCommMonoid β] [inst_3 : Module R α]
  [inst_4 : Module R β] [inst_5 : StarRing R] [inst_6 : StarAddMonoid α] [inst_7 : StarAddMonoid β]
  [inst_8 : StarModule R α] [inst_9 : StarModule R β] (x : Matrix l m α) (y : Matrix n p β),
  (Matrix.kroneckerMap (TensorProduct.tmul R) x y).conjTranspose =
    Matrix.kroneckerMap (TensorProduct.tmul R) x.conjTranspose y.conjTranspose

theorem Matrix.one_kroneckerTMul_one E0 #

∀ (R : Type u_1) {α : Type u_3} {β : Type u_5} {m : Type u_10} {n : Type u_11} [inst : CommSemiring R]
  [inst_1 : AddCommMonoidWithOne α] [inst_2 : AddCommMonoidWithOne β] [inst_3 : Module R α] [inst_4 : Module R β]
  [inst_5 : DecidableEq m] [inst_6 : DecidableEq n], Matrix.kroneckerMap (TensorProduct.tmul R) 1 1 = 1

theorem Matrix.mul_kroneckerTMul_mul E1 #

∀ (R : Type u_1) {α : Type u_3} {β : Type u_5} {l : Type u_9} {m : Type u_10} {n : Type u_11} {l' : Type u_15}
  {m' : Type u_16} {n' : Type u_17} [inst : CommSemiring R] [inst_1 : NonUnitalSemiring α]
  [inst_2 : NonUnitalSemiring β] [inst_3 : Module R α] [inst_4 : Module R β] [inst_5 : IsScalarTower R α α]
  [inst_6 : SMulCommClass R α α] [inst_7 : IsScalarTower R β β] [inst_8 : SMulCommClass R β β] [inst_9 : Fintype m]
  [inst_10 : Fintype m'] (A : Matrix l m α) (B : Matrix m n α) (A' : Matrix l' m' β) (B' : Matrix m' n' β),
  Matrix.kroneckerMap (TensorProduct.tmul R) (A * B) (A' * B') =
    Matrix.kroneckerMap (TensorProduct.tmul R) A A' * Matrix.kroneckerMap (TensorProduct.tmul R) B B'

theorem Matrix.det_kroneckerTMul E1 #

∀ (R : Type u_1) {α : Type u_3} {β : Type u_5} {m : Type u_10} {n : Type u_11} [inst : CommRing R] [inst_1 : CommRing α]
  [inst_2 : CommRing β] [inst_3 : Algebra R α] [inst_4 : Algebra R β] [inst_5 : Fintype m] [inst_6 : Fintype n]
  [inst_7 : DecidableEq m] [inst_8 : DecidableEq n] (A : Matrix m m α) (B : Matrix n n β),
  (Matrix.kroneckerMap (TensorProduct.tmul R) A B).det = (A.det ^ Fintype.card n) ⊗ₜ[R] (B.det ^ Fintype.card m)