Documentation

CslibFrontier.Foundations.LinearAlgebra.Matrix.IsotropicPosition

Approximate isotropic position #

Let U : Matrix X (Fin d) ℝ list |X| = m vectors U x ∈ ℝᵈ in general position: every d of them are linearly independent, i.e. every d × d submatrix U.submatrix e id with e : Fin d ↪ X is invertible. Forster's isotropic-position lemma Forster, 2002, in the form Alon, Moran and Yehudayoff, Lemma 26, says that some invertible B puts them in isotropic position, ∑ₓ (B uₓ)(B uₓ)ᵀ / ‖B uₓ‖² = (m / d) I. Writing A = ∑ₓ pₓ uₓ uₓᵀ with pₓ = 1 / ‖B uₓ‖², this is the statement that the leverages pₓ · uₓᵀ A⁻¹ uₓ all equal d / m (they always sum to d, the trace of the identity).

Matrix.exists_isotropic_weights proves this up to an arbitrary ε > 0: for each ε > 0 there are positive weights p with A = ∑ₓ pₓ uₓ uₓᵀ positive definite and every leverage pₓ · uₓᵀ A⁻¹ uₓ ≤ d / m + ε. This approximate form is what the applications (Forster's sign-rank bound in Cslib.Communication.Forster) use; the exact (ε = 0) lemma, which requires a compactness or minimizer-existence argument, is not formalized here.

The proof is a potential-function argument. With A(t) = ∑ₓ exp(tₓ) uₓ uₓᵀ, the function φ(t) = log det A(t) - (d / m) ∑ₓ tₓ is bounded below: for each of the m cyclic windows e : Fin d ↪ X the matrix A(t) dominates ∑ᵢ exp(t_{e i}) u_{e i} u_{e i}ᵀ, whose determinant is det(U_e)² exp(∑ᵢ t_{e i}) (Matrix.det_le_det_add_sum_smul_vecMulVec), and the windows cover every point d times. At a point t with φ(t) < inf φ + δ², lowering one coordinate tₓ by δ changes det A by the factor 1 + (e^{-δ} - 1) qₓ, where qₓ is the leverage (Matrix.det_add_smul_vecMulVec, the matrix determinant lemma), and near-minimality forces qₓ < d / m + ε for δ = ε / (1 + d / m + ε).

General position is generic: Matrix.eventually_det_submatrix_add_smul_ne_zero shows that perturbing U by ε times a Vandermonde-type matrix makes every d × d submatrix invertible for all small ε ≠ 0, because each such determinant is a polynomial in ε whose top coefficient is a nonzero Vandermonde determinant.

Main results #

References #

theorem Matrix.dotProduct_sum_smul_vecMulVec_mulVec {n : Type u_1} [Fintype n] {R : Type u_2} {ι : Type u_3} [CommSemiring R] (s : Finset ι) (c : ι → R) (v : ι → n → R) (u w : n → R) :
u ⬝ᵥ (∑ i ∈ s, c i • vecMulVec (v i) (v i)).mulVec w = ∑ i ∈ s, c i * v i ⬝ᵥ u * v i ⬝ᵥ w

The bilinear form of a weighted sum of rank-one matrices vᵢ vᵢᵀ.

theorem Matrix.sum_smul_vecMulVec_eq_transpose_mul_diagonal_mul {n : Type u_1} {R : Type u_2} [CommSemiring R] {d : ℕ} (w : Fin d → R) (W : Matrix (Fin d) n R) :
∑ i : Fin d, w i • vecMulVec (W i) (W i) = W.transpose * diagonal w * W

A weighted sum of rank-one matrices wᵢ • vᵢ vᵢᵀ over Fin d is Wᵀ (diagonal w) W, where W has rows vᵢ.

theorem Matrix.det_add_smul_vecMulVec {n : Type u_1} [Fintype n] [DecidableEq n] {R : Type u_2} [CommRing R] {B : Matrix n n R} (hB : IsUnit B.det) (c : R) (u v : n → R) :
(B + c • vecMulVec u v).det = B.det * (1 + c * v ⬝ᵥ B⁻¹.mulVec u)

Matrix determinant lemma for a rank-one update written with vecMulVec: det (B + c • u vᵀ) = det B · (1 + c · vᵀ B⁻¹ u) for invertible B.

theorem Matrix.posDef_sum_smul_vecMulVec {n : Type u_1} [Fintype n] {ι : Type u_2} (s : Finset ι) (c : ι → ℝ) (hc : ∀ i ∈ s, 0 < c i) (v : ι → n → ℝ) (hv : ∀ (w : n → ℝ), (∀ i ∈ s, v i ⬝ᵥ w = 0) → w = 0) :
(∑ i ∈ s, c i • vecMulVec (v i) (v i)).PosDef

A positive combination of the rank-one matrices vᵢ vᵢᵀ is positive definite when the vᵢ span ℝⁿ, i.e. only the zero vector is orthogonal to all of them.

theorem Matrix.det_le_det_add_sum_smul_vecMulVec {n : Type u_1} [Fintype n] [DecidableEq n] {ι : Type u_2} (s : Finset ι) {B : Matrix n n ℝ} (hB : B.PosDef) (c : ι → ℝ) (hc : ∀ i ∈ s, 0 ≤ c i) (v : ι → n → ℝ) :
B.det ≤ (B + ∑ i ∈ s, c i • vecMulVec (v i) (v i)).det

Adding nonnegative multiples of rank-one matrices vᵢ vᵢᵀ to a positive definite matrix does not decrease its determinant.

theorem Matrix.exists_isotropic_weights {X : Type u_2} [Fintype X] {d : ℕ} (U : Matrix X (Fin d) ℝ) (hU : ∀ (e : Fin d ↪ X), (U.submatrix (⇑e) id).det ≠ 0) (hd : d ≤ Fintype.card X) {ε : ℝ} (hε : 0 < ε) :
∃ (p : X → ℝ), (∀ (x : X), 0 < p x) ∧ (∑ x : X, p x • vecMulVec (U x) (U x)).PosDef ∧ ∀ (x : X), p x * U x ⬝ᵥ (∑ z : X, p z • vecMulVec (U z) (U z))⁻¹.mulVec (U x) ≤ ↑d / ↑(Fintype.card X) + ε

Approximate isotropic position (Forster's lemma up to ε). If the m = |X| rows of U : Matrix X (Fin d) ℝ are in general position (every d × d submatrix is invertible) and d ≤ m, then for every ε > 0 there are positive weights p such that A = ∑ₓ pₓ • uₓ uₓᵀ is positive definite and every leverage pₓ · uₓᵀ A⁻¹ uₓ is at most d / m + ε. The exact (ε = 0) statement is [Alon, Moran and Yehudayoff, Lemma 26] [AMY16], due to Forster; this approximate form suffices for Forster's sign-rank bound.

theorem Matrix.eventually_det_submatrix_add_smul_ne_zero {X : Type u_2} [Finite X] {d : ℕ} (U : Matrix X (Fin d) ℝ) :
∃ (W : Matrix X (Fin d) ℝ), ∀ᶠ (ε : ℝ) in nhdsWithin 0 {0}ᶜ, ∀ (e : Fin d ↪ X), ((U + ε • W).submatrix (⇑e) id).det ≠ 0

General position is generic. For any U : Matrix X (Fin d) ℝ there is a matrix W such that for all sufficiently small ε ≠ 0 every d × d submatrix of U + ε • W is invertible. (W has rows (1, k, k², …) for distinct k, so each such determinant is a polynomial in ε with a nonzero Vandermonde leading coefficient.)