NLA-lib Explorer

NLAlib.Schur.frobNorm_sub_mul_mul_le_of_check

Library · theorem

Standard rounding

The check is sound: under the standard model at \boldsymbol{u} with 64(N + 1)^3\boldsymbol{u} \le 1, \kappa \ge 32(N + 1)^2\boldsymbol{u} and \theta \ge 0, let \hat r, \hat w, \hat t be at least 15/16 times the Frobenius norms of the stored residual \mathrm{fl}(\mathbf{A}_0 - \mathrm{fl}(\mathrm{fl}(\mathbf{U}\mathbf{T})\mathbf{U}^{\mathsf{H}})), of \mathbf{U} and of \mathbf{T}, and 0 \le \hat a \le (17/16)\|\mathbf{A}_0\|_{\mathsf{F}}. If \mathrm{fl}(\hat r + \hat g) \le \mathrm{fl}(\hat a\theta) for the guard \hat g of (\hat w, \hat t, \kappa), then \|\mathbf{A}_0 - \mathbf{U}\mathbf{T}\mathbf{U}^{\mathsf H}\|_{\mathsf F} \le 2\theta\|\mathbf{A}_0\|_{\mathsf F}, e\mathbf{x}actly. No hypothesis on \mathbf{U}, \mathbf{T}.

NLAlib.Schur.frobNorm_sub_mul_mul_le_of_check {M : Ops.Machine ℝ} {u : ℝ} (hM : Ops.StdModel u id M)
  {N : ℕ} (hu : 64 * (↑N + 1) ^ 3 * u ≤ 1) {κ θ : ℝ} (hκ : 32 * (↑N + 1) ^ 2 * u ≤ κ) (hθ : 0 ≤ θ)
  {A₀ U T : Matrix (Fin N) (Fin N) ℂ} {r a w t : ℝ}
  (hr : 15 / 16 * frobNorm (Schur.subWord M A₀ (matMulWord M (matMulWord M U T) Uᴴ)) ≤ r)
  (ha0 : 0 ≤ a) (ha : a ≤ 17 / 16 * frobNorm A₀) (hw : 15 / 16 * frobNorm U ≤ w)
  (ht : 15 / 16 * frobNorm T ≤ t) (hpass : M.add r (Schur.checkGuard M w t κ) ≤ M.mul a θ) :
  frobNorm (A₀ - U * T * Uᴴ) ≤ 2 * θ * frobNorm A₀

Full source on GitHub

Import NLAlib.Eigensolvers.Schur.ResidualCheck.