NLA-lib Explorer

Matrix norms

A norm specifies what it means for a matrix approximation to be accurate. Spectral norm measures the worst error on a unit vector; Frobenius norm measures the combined entrywise error; nuclear norm sums the singular values. Different algorithms and applications naturally control different norms.

Definition (Matrix norms). For \mathbf{A}\in\mathbb{C}^{m\times n},

\|\mathbf{A}\|_2=\sup_{\|\mathbf{x}\|_2=1}\|\mathbf{A}\mathbf{x}\|_2,\qquad\|\mathbf{A}\|_{\mathrm{F}}=\left(\sum_{i,j}|\mathbf{A}_{ij}|^2\right)^{1/2},\qquad\|\mathbf{A}\|_*=\sum_j\sigma_j(\mathbf{A}).

For 1\le p<\infty, the Schatten p-norm is (\sum_j\sigma_j(\mathbf{A})^p)^{1/p}. These norms provide different comparisons with a best low-rank approximation.

Copy link

Results

Theorem (Fan dominance).

If every Ky Fan norm of \mathbf{A} is at most that of \mathbf{B}, \|\mathbf{A}\|_{(k)} \le \|\mathbf{B}\|_{(k)} for all k, then every unitarily invariant norm of \mathbf{A} is at most that of \mathbf{B}: \|\mathbf{A}\|_{\Phi} \le \|\mathbf{B}\|_{\Phi}. The shapes may differ. [HornJohnson2013, Theorem 7.4.8.4]; [Bhatia1997, Theorem IV.2.2].

Lean statement and details
NLAlib.SymmetricGauge.matrixNorm_le_of_forall_kyFanNorm_le.{u_1, u_2, u_3, u_4, u_5} {π•œ : Type u_1}
  [RCLike π•œ] {l : Type u_2} {m : Type u_3} {n : Type u_4} {p : Type u_5} [Fintype l] [Fintype m]
  [Fintype n] [Fintype p] (Ξ¦ : SymmetricGauge) {A : Matrix m n π•œ} {B : Matrix l p π•œ}
  (h : βˆ€ (k : β„•), kyFanNorm k A ≀ kyFanNorm k B) : Ξ¦.matrixNorm A ≀ Ξ¦.matrixNorm B

Full source on GitHub

Copy link

Theorem (Mirsky's theorem).

In every unitarily invariant norm, the sorted singular values are 1-Lipschitz: the gauge of the difference of the singular value sequences of \mathbf{A} and \mathbf{B} is at most the norm of \mathbf{A} - \mathbf{B}, \Phi\bigl(\sigma_0(\mathbf{A}) - \sigma_0(\mathbf{B}),\, \sigma_1(\mathbf{A}) - \sigma_1(\mathbf{B}),\, \dots\bigr) \le \|\mathbf{A} - \mathbf{B}\|_{\Phi}\,. [HornJohnson2013, Corollary 7.4.9.3]; [Bhatia1997, Theorem IV.3.4].

Lean statement and details
NLAlib.SymmetricGauge.apply_singularValuesFinsupp_sub_le.{u_1, u_3, u_4} {π•œ : Type u_1} [RCLike π•œ]
  {m : Type u_3} {n : Type u_4} [Fintype m] [Fintype n] (Ξ¦ : SymmetricGauge) (A B : Matrix m n π•œ) :
  Ξ¦ (singularValuesFinsupp A - singularValuesFinsupp B) ≀ Ξ¦.matrixNorm (A - B)

Full source on GitHub

Copy link

Theorem (The nuclear norm is the dual of the spectral norm).

it is the largest Frobenius inner product with a matrix of spectral norm at most one, \|\mathbf{A}\|_* = \max_{\|\mathbf{B}\|_2 \le 1} \langle \mathbf{A}, \mathbf{B} \rangle_{\mathsf{F}}\,. [HornJohnson2013, Β§5.6 and Theorem 7.4.1.1].

Lean statement and details
NLAlib.isGreatest_frobInner_nuclearNorm.{u_1, u_3, u_4} {π•œ : Type u_1} [RCLike π•œ] {m : Type u_3}
  {n : Type u_4} [Fintype m] [Fintype n] (A : Matrix m n π•œ) :
  IsGreatest ((fun B ↦ frobInner A B) '' {B | specNorm B ≀ 1}) (nuclearNorm A)

Full source on GitHub

Copy link

Theorem (Nuclear norm of a positive semidefinite difference).

For \mathbf{A} \succeq \mathbf{B} \succeq \mathbf{0}, the nuclear norm of the residual is exactly \|\mathbf{A}\|_* - \|\mathbf{B}\|_*. [PerssonMeyerMusco2025, Lemma 2.3].

Lean statement and details
Matrix.PosSemidef.nuclearNorm_sub_of_le.{u_1, u_4} {π•œ : Type u_1} [RCLike π•œ] {n : Type u_4}
  [Fintype n] {A B : Matrix n n π•œ} (hB : B.PosSemidef) (h : B ≀ A) :
  nuclearNorm (A - B) = nuclearNorm A - nuclearNorm B

Full source on GitHub

Copy link

Theorem (Duality of Schatten norms).

For conjugate exponents, 1/q + 1/r = 1, the Schatten q-norm is the largest Frobenius inner product with a matrix in the unit ball of the Schatten r-norm: \|\mathbf{A}\|_{S_q} = \max_{\|\mathbf{B}\|_{S_r} \le 1} \langle \mathbf{A}, \mathbf{B} \rangle_{\mathsf{F}}\,. [Bhatia1997, Β§IV.2].

Lean statement and details
NLAlib.isGreatest_frobInner_schattenNorm.{u_1, u_2, u_3} {π•œ : Type u_1} [RCLike π•œ] {m : Type u_2}
  {n : Type u_3} [Fintype m] [Fintype n] {q r : ℝβ‰₯0∞} [q.HolderConjugate r] (A : Matrix m n π•œ) :
  IsGreatest ((fun B ↦ frobInner A B) '' {B | schattenNorm r B ≀ 1}) (schattenNorm q A)

Full source on GitHub

Copy link

Theorem (Uniform smoothness for even Schatten moments).

For real or complex rectangular matrices \mathbf{A},\mathbf{B} of the same shape and a positive even integer p=2r, \left(\frac{\|\mathbf{A}+\mathbf{B}\|_{S_p}^p+\|\mathbf{A}-\mathbf{B}\|_{S_p}^p}{2} \right)^{2/p} \le \|\mathbf{A}\|_{S_p}^2+(p-1)\|\mathbf{B}\|_{S_p}^2. [Tropp2022, Theorem 8.2 and Β§8.5], for even exponents.

Lean statement and details
NLAlib.schattenNorm_add_pow_add_schattenNorm_sub_pow_div_rpow_le.{u_1, u_3, u_4} {π•œ : Type u_1}
  [RCLike π•œ] {m : Type u_3} {n : Type u_4} [Fintype m] [Fintype n] {r : β„•} (hr : 0 < r)
  (A B : Matrix m n π•œ) :
  ((schattenNorm (2 * ↑r) (A + B) ^ (2 * r) + schattenNorm (2 * ↑r) (A - B) ^ (2 * r)) / 2) ^
      (↑r)⁻¹ ≀
    schattenNorm (2 * ↑r) A ^ 2 + (2 * ↑r - 1) * schattenNorm (2 * ↑r) B ^ 2

Full source on GitHub

Copy link

Theorem (HΓΆlder's inequality for the trace).

For conjugate exponents, 1/q + 1/r = 1, \lvert \operatorname{tr}(\mathbf{A}^{\mathsf{H}}\mathbf{B}) \rvert \le \|\mathbf{A}\|_{S_q} \|\mathbf{B}\|_{S_r}\,. [Bhatia1997, Corollary IV.2.6].

Lean statement and details
NLAlib.norm_trace_conjTranspose_mul_le_schattenNorm_mul.{u_1, u_2, u_3} {π•œ : Type u_1} [RCLike π•œ]
  {m : Type u_2} {n : Type u_3} [Fintype m] [Fintype n] {q r : ℝβ‰₯0∞} [q.HolderConjugate r]
  (A B : Matrix m n π•œ) : β€–(Aα΄΄ * B).traceβ€– ≀ schattenNorm q A * schattenNorm r B

Full source on GitHub

Copy link

Theorem (The triangle inequality for Schatten norms).

for 1 \le q \le \infty and matrices \mathbf{A}, \mathbf{B} of the same shape, \|\mathbf{A} + \mathbf{B}\|_{S_q} \le \|\mathbf{A}\|_{S_q} + \|\mathbf{B}\|_{S_q}. [Bhatia1997, Β§IV.2].

Lean statement and details
NLAlib.schattenNorm_add_le.{u_1, u_3, u_4} {π•œ : Type u_1} [RCLike π•œ] {m : Type u_3} {n : Type u_4}
  [Fintype m] [Fintype n] {q : ℝβ‰₯0∞} (hq : 1 ≀ q) (A B : Matrix m n π•œ) :
  schattenNorm q (A + B) ≀ schattenNorm q A + schattenNorm q B

Full source on GitHub

Copy link

Theorem (A finite set of unit vectors that controls every spectral norm).

For 0 < \varepsilon < 1 there is a set N of at most (1 + 2/\varepsilon)^d unit vectors of n β†’ π•œ, d the real dimension, such that every matrix \mathbf{A} with column index type n and \|\mathbf{A}\mathbf{x}\| \le M on N, M \ge 0, has \|\mathbf{A}\|_2 \le \frac{M}{1 - \varepsilon}\,. [Vershynin2018, Lemma 4.4.1 with Corollary 4.2.13].

Lean statement and details
NLAlib.exists_finset_specNorm_le_div.{u, u_4, u_5} (π•œ : Type u_4) [RCLike π•œ] (n : Type u_5)
  [Fintype n] {Ξ΅ : ℝ} (hΞ΅0 : 0 < Ξ΅) (hΞ΅1 : Ξ΅ < 1) :
  βˆƒ N,
    ↑N.card ≀ (1 + 2 / Ξ΅) ^ Module.finrank ℝ (n β†’ π•œ) ∧
      (βˆ€ x ∈ N, β€–WithLp.toLp 2 xβ€– = 1) ∧
        βˆ€ {m : Type u} [inst : Fintype m] (A : Matrix m n π•œ) {M : ℝ},
          0 ≀ M β†’ (βˆ€ x ∈ N, β€–WithLp.toLp 2 (A *α΅₯ x)β€– ≀ M) β†’ specNorm A ≀ M / (1 - Ξ΅)

Full source on GitHub

Copy link

Theorem (Von Neumann's symmetric gauge representation).

Let p be a definite seminorm on a fixed real or complex rectangular matrix space, invariant under arbitrary unitary factors on the left and right. A single symmetric gauge \Phi on finitely supported sequences satisfies \|\mathbf{A}\|_{\Phi}=p(\mathbf{A}) for every matrix of that shape. If either index type is empty, every input is zero. This extends the normalized square complex case of [Bhatia1997, Theorem IV.2.1] to arbitrary norm scalings and rectangular shapes.

Lean statement and details
NLAlib.IsUnitarilyInvariant.exists_forall_matrixNorm_eq.{u_1, u_2, u_3} {π•œ : Type u_1}
  {m : Type u_2} {n : Type u_3} [RCLike π•œ] [Fintype m] [Fintype n] [DecidableEq m] [DecidableEq n]
  {p : Seminorm π•œ (Matrix m n π•œ)} (hp : IsUnitarilyInvariant ⇑p)
  (hdef : βˆ€ (A : Matrix m n π•œ), p A = 0 β†’ A = 0) : βˆƒ Ξ¦, βˆ€ (A : Matrix m n π•œ), Ξ¦.matrixNorm A = p A

Full source on GitHub

Copy link

Formal definitions

Used by algorithms

Broader topics