Documentation

CslibFrontier.Foundations.LinearAlgebra.Matrix.KroneckerRank

Exact Kronecker product rank and flat Kronecker powers #

Every matrix A over a field contains a nonsingular A.rank × A.rank submatrix (Matrix.exists_submatrix_det_ne_zero). Combining that nonsingular minor witness with the Kronecker rank upper bound (Matrix.rank_kronecker_le) and Matrix.det_kronecker upgrades Kronecker rank submultiplicativity to an exact equality (A ⊗ₖ B).rank = A.rank * B.rank (Matrix.rank_kronecker).

This module also defines the flat k-fold Kronecker power Matrix.kroneckerPow A k : Matrix (Fin k → m) (Fin k → n) R indexed directly by Fin k → m rather than nested binary products, proves its algebraic laws, action on product vectors and eigenvectors (Matrix.kroneckerPow_mulVec_prod, Matrix.kroneckerPow_mulVec_smul), and deduces (Matrix.kroneckerPow A k).rank = A.rank ^ k (Matrix.rank_kroneckerPow).

Main definitions #

Main results #

References #

Nonsingular rank × rank minors and scalar-homomorphism eigenvector transfer #

theorem Matrix.exists_submatrix_det_ne_zero {m : Type u_1} {n : Type u_2} {K : Type u_3} [Field K] [Finite m] [Finite n] (A : Matrix m n K) :
∃ (r : Fin A.rank → m) (c : Fin A.rank → n), Function.Injective r ∧ Function.Injective c ∧ (A.submatrix r c).det ≠ 0

Every finite matrix A over a field contains an injective A.rank × A.rank submatrix with nonzero determinant.

theorem Matrix.mulVec_map_eq_smul {m : Type u_1} {R : Type u_2} {S : Type u_3} [Semiring R] [Semiring S] [Fintype m] (f : R →+* S) (A : Matrix m m R) (v : m → R) (μ : R) (h : A.mulVec v = μ • v) :
(A.map ⇑f).mulVec (⇑f ∘ v) = f μ • ⇑f ∘ v

Eigenvector and eigenvalue equations transfer along any ring homomorphism.

theorem Matrix.kronecker_mulVec_smul {m : Type u_1} {n : Type u_2} {R : Type u_3} [CommSemiring R] [Fintype m] [Fintype n] (A : Matrix m m R) (B : Matrix n n R) (u : m → R) (v : n → R) (μ ν : R) (hA : A.mulVec u = μ • u) (hB : B.mulVec v = ν • v) :
((kroneckerMap (fun (x1 x2 : R) => x1 * x2) A B).mulVec fun (q : m × n) => u q.1 * v q.2) = (μ * ν) • fun (q : m × n) => u q.1 * v q.2

Tensor products of eigenvectors of A and B are eigenvectors of A ⊗ₖ B with eigenvalue equal to the product of the individual eigenvalues ([AroraBarak07, Chapter 16, Exercise 14]).

theorem Matrix.mul_prod_ne_zero_iff {m : Type u_1} {n : Type u_2} {R : Type u_3} [MulZeroClass R] [NoZeroDivisors R] {u : m → R} {v : n → R} :
(fun (q : m × n) => u q.1 * v q.2) ≠ 0 ↔ u ≠ 0 ∧ v ≠ 0

The tensor product vector q ↦ u q.1 * v q.2 is nonzero if and only if both u and v are nonzero ([AroraBarak07, Chapter 16, Exercise 14]).

Exact rank of a Kronecker product #

@[simp]
theorem Matrix.rank_kronecker {l : Type u_1} {m : Type u_2} {n : Type u_3} {p : Type u_4} {K : Type u_5} [Field K] [Finite l] [Finite m] [Finite n] [Finite p] (A : Matrix l m K) (B : Matrix n p K) :
(kroneckerMap (fun (x1 x2 : K) => x1 * x2) A B).rank = A.rank * B.rank

Multiplicativity of rank under Kronecker product over a field: (A ⊗ₖ B).rank = A.rank * B.rank.

Flat k-fold Kronecker powers #

def Matrix.kroneckerPow {m : Type u_1} {n : Type u_2} {R : Type u_3} [CommMonoid R] (A : Matrix m n R) (k : ℕ) :
Matrix (Fin k → m) (Fin k → n) R

The k-fold Kronecker power of A : Matrix m n R, indexed directly by Fin k → m and Fin k → n, with (x, y)-entry ∏ i : Fin k, A (x i) (y i).

@[simp]
theorem Matrix.kroneckerPow_apply {m : Type u_1} {n : Type u_2} {R : Type u_3} [CommMonoid R] (A : Matrix m n R) (k : ℕ) (x : Fin k → m) (y : Fin k → n) :
A.kroneckerPow k x y = ∏ i : Fin k, A (x i) (y i)
@[simp]
theorem Matrix.kroneckerPow_zero {m : Type u_1} {R : Type u_2} [CommSemiring R] [DecidableEq m] (A : Matrix m m R) :

The 0-th Kronecker power is the 1 × 1 identity matrix on Fin 0 → m.

theorem Matrix.kroneckerPow_one_submatrix {m : Type u_1} {n : Type u_2} {R : Type u_3} [CommMonoid R] (A : Matrix m n R) :

Reindexing kroneckerPow A 1 along Equiv.funUnique recovers A.

theorem Matrix.kroneckerPow_succ_eq_submatrix {m : Type u_1} {n : Type u_2} {R : Type u_3} [CommSemiring R] (A : Matrix m n R) (k : ℕ) :
A.kroneckerPow (k + 1) = (kroneckerMap (fun (x1 x2 : R) => x1 * x2) A (A.kroneckerPow k)).submatrix ⇑(Fin.consEquiv fun (x : Fin (k + 1)) => m).symm ⇑(Fin.consEquiv fun (x : Fin (k + 1)) => n).symm

kroneckerPow A (k + 1) is A ⊗ₖ kroneckerPow A k reindexed along Fin.consEquiv.

theorem Matrix.kroneckerPow_mul {l : Type u_1} {m : Type u_2} {n : Type u_3} {R : Type u_4} [CommSemiring R] [Fintype m] (A : Matrix l m R) (B : Matrix m n R) (k : ℕ) :

Kronecker power distributes over matrix multiplication.

@[simp]
theorem Matrix.kroneckerPow_one_matrix {m : Type u_1} {R : Type u_2} [CommSemiring R] [DecidableEq m] (k : ℕ) :

The Kronecker power of the identity matrix is the identity matrix.

theorem Matrix.kroneckerPow_pow {m : Type u_1} {R : Type u_2} [CommSemiring R] [Fintype m] [DecidableEq m] (A : Matrix m m R) (d k : ℕ) :
(A ^ d).kroneckerPow k = A.kroneckerPow k ^ d

kroneckerPow commutes with matrix powers: kroneckerPow (A ^ d) k = (kroneckerPow A k) ^ d.

@[simp]
theorem Matrix.trace_kroneckerPow {m : Type u_1} {R : Type u_2} [CommSemiring R] [Fintype m] (A : Matrix m m R) (k : ℕ) :

The trace of a k-fold Kronecker power is the k-th power of the trace: (kroneckerPow A k).trace = A.trace ^ k.

theorem Matrix.trace_kroneckerPow_pow {m : Type u_1} {R : Type u_2} [CommSemiring R] [Fintype m] [DecidableEq m] (A : Matrix m m R) (d k : ℕ) :
(A.kroneckerPow k ^ d).trace = (A ^ d).trace ^ k

The trace of the d-th power of a k-fold Kronecker power equals (A ^ d).trace ^ k.

@[simp]
theorem Matrix.transpose_kroneckerPow {m : Type u_1} {n : Type u_2} {R : Type u_3} [CommMonoid R] (A : Matrix m n R) (k : ℕ) :

Transpose commutes with kroneckerPow.

theorem Matrix.map_kroneckerPow {m : Type u_1} {n : Type u_2} {R : Type u_3} {S : Type u_4} [CommMonoid R] [CommMonoid S] (f : R →* S) (A : Matrix m n R) (k : ℕ) :
(A.kroneckerPow k).map ⇑f = (A.map ⇑f).kroneckerPow k

Mapping along a monoid homomorphism commutes with kroneckerPow.

theorem Matrix.kroneckerPow_mulVec_prod {m : Type u_1} {n : Type u_2} {R : Type u_3} [CommSemiring R] [Fintype n] (A : Matrix m n R) (k : ℕ) (v : Fin k → n → R) :
((A.kroneckerPow k).mulVec fun (y : Fin k → n) => ∏ i : Fin k, v i (y i)) = fun (x : Fin k → m) => ∏ i : Fin k, A.mulVec (v i) (x i)

kroneckerPow A k acts coordinatewise on product vectors y ↦ ∏ i, v i (y i).

theorem Matrix.kroneckerPow_mulVec_smul {m : Type u_1} {R : Type u_2} [CommSemiring R] [Fintype m] (A : Matrix m m R) (k : ℕ) (v : Fin k → m → R) (μ : Fin k → R) (h : ∀ (i : Fin k), A.mulVec (v i) = μ i • v i) :
((A.kroneckerPow k).mulVec fun (y : Fin k → m) => ∏ i : Fin k, v i (y i)) = (∏ i : Fin k, μ i) • fun (y : Fin k → m) => ∏ i : Fin k, v i (y i)

Tensor products of eigenvectors of A are eigenvectors of kroneckerPow A k with eigenvalue equal to the product of the individual eigenvalues.

theorem Matrix.prod_vec_ne_zero_iff {m : Type u_1} {R : Type u_2} [CommMonoidWithZero R] [NoZeroDivisors R] [Nontrivial R] {k : ℕ} {v : Fin k → m → R} :
(fun (y : Fin k → m) => ∏ i : Fin k, v i (y i)) ≠ 0 ↔ ∀ (i : Fin k), v i ≠ 0

The k-fold tensor product vector y ↦ ∏ i, v i (y i) is nonzero if and only if every factor v i is nonzero.

@[simp]
theorem Matrix.rank_kroneckerPow {m : Type u_1} {n : Type u_2} {K : Type u_3} [Field K] [Finite m] [Finite n] (A : Matrix m n K) (k : ℕ) :

Rank of a Kronecker power over a field: (kroneckerPow A k).rank = A.rank ^ k.