NLA-lib Explorer

NLAlib.IsMatMulErr.of_specNorm_mul_sub_le_add

Library · theorem

From a mixed absolute–relative product bound to the contract with a floor: if a routine on stored entries with decoding dec satisfies \|\bar{\mathbf{A}}\bar{\mathbf{B}} - \overline{\mathrm{mm}(\mathbf{A}, \mathbf{B})}\|_2 \le \mu(d)\,u\,\|\bar{\mathbf{A}}\|_2 \|\bar{\mathbf{B}}\|_2 + \eta whene\mathbf{v}er \|\bar{\mathbf{A}}\|_2\|\bar{\mathbf{B}}\|_2 \le \Omega, computes products with a conjugate transpose exactly Hermitian, and \eta \le \mu(d)\,u\,\tau for every d, then it satisfies NLAlib.IsMatMulErr with 2\mu. A bounded-exponent product bound (underflow as an absolute \eta) therefore gives the contract with floor \tau = \eta/(\mu u). No printed source.

NLAlib.IsMatMulErr.of_specNorm_mul_sub_le_add.{u_3, u_4} {K : Type u_3} {𝕜 : Type u_4} [RCLike 𝕜]
  {dec : K → 𝕜} {u τ Ω η : ℝ} {μ : ℕ → ℝ} {mm : MatMulMap K}
  (hmix :
    ∀ {l m n : ℕ} (A : Matrix (Fin l) (Fin m) K) (B : Matrix (Fin m) (Fin n) K),
      specNorm (A.map dec) * specNorm (B.map dec) ≤ Ω →
        specNorm (A.map dec * B.map dec - (mm A B).map dec) ≤
          μ (max l (max m n)) * u * (specNorm (A.map dec) * specNorm (B.map dec)) + η)
  (hherm :
    ∀ {m n : ℕ} (A : Matrix (Fin m) (Fin n) K) (B : Matrix (Fin n) (Fin m) K),
      B.map dec = (A.map dec)ᴴ → ((mm A B).map dec).IsHermitian)
  (hμu : ∀ (d : ℕ), 0 ≤ μ d * u) (hη : ∀ (d : ℕ), η ≤ μ d * u * τ) :
  IsMatMulErr dec u τ Ω (fun d ↦ 2 * μ d) fun {l m n} ↦ mm

Full source on GitHub

Import NLAlib.Matrix.FinitePrecision.Machine.