NLA-lib Explorer

Reciprocal condition number and distance to singularity

Library · Result group

Theorem (isLeast_specNorm_div_not_isUnit_add_of_ne_zero). Reciprocal condition number and distance to singularity. For every nonzero square matrix \mathbf{A}, \min_{\mathbf{A}+\mathbf{E}\ \mathrm{singular}} \frac{\|\mathbf{E}\|_2}{\|\mathbf{A}\|_2} = \kappa_2(\mathbf{A})^{-1}. For singular \mathbf{A} the zero perturbation attains the minimum, with 1/\infty=0. [GolubVanLoan2013, §2.6.2].

Headline (provisional)

Lean statement and details
NLAlib.isLeast_specNorm_div_not_isUnit_add_of_ne_zero.{u_1, u_4} {𝕜 : Type u_1} [RCLike 𝕜]
  {n : Type u_4} [Fintype n] [DecidableEq n] {A : Matrix n n 𝕜} (hA : A ≠ 0) :
  IsLeast ((fun E ↦ specNorm E / specNorm A) '' {E | ¬IsUnit (A + E)})
    (spectralConditionNumber A)⁻¹.toReal

Full source on GitHub

Copy link

Other forms

Theorem (isLeast_specNorm_not_injective_add). The distance to rank deficiency is the smallest singular value. Among perturbations \mathbf{E} for which \mathbf{A} + \mathbf{E} loses full column rank, the smallest spectral norm is \sigma_k(\mathbf{A}) with k + 1 = \lvert n \rvert, that is \sigma_{\min}(\mathbf{A}); it is attained. [GolubVanLoan2013, §2.6.2].

General form: sizes are index types

Lean statement and details
NLAlib.isLeast_specNorm_not_injective_add.{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 𝕜) {k : ℕ} (hk : k + 1 = Fintype.card n) :
  IsLeast (specNorm '' {E | ¬Function.Injective (A + E).mulVec}) (singularValues A k)

Full source on GitHub

Copy link

Theorem (isLeast_specNorm_not_isUnit_add). The distance from an invertible matrix to the singular matrices is 1 / \|\mathbf{A}^{-1}\|_2: it is the least \|\mathbf{E}\|_2 over \mathbf{E} with \mathbf{A} + \mathbf{E} singular, on a nonempty index type. [GolubVanLoan2013, §2.6.2].

General form: sizes are index types

Lean statement and details
NLAlib.isLeast_specNorm_not_isUnit_add.{u_1, u_4} {𝕜 : Type u_1} [RCLike 𝕜] {n : Type u_4}
  [Fintype n] [DecidableEq n] [Nonempty n] {A : Matrix n n 𝕜} (hA : IsUnit A) :
  IsLeast (specNorm '' {E | ¬IsUnit (A + E)}) (specNorm A⁻¹)⁻¹

Full source on GitHub

Copy link

General form: sizes are index types. A size is carried by a finite index type: |k| is the number of elements of the index type k, and "k nonempty" means k ≥ 1.