Theorem (FloatMachine.IsArithAccurate.specNorm_cfc_sign_sub_decodeMatrix_newtonSchulzSign_le). Accuracy of the Newton–Schulz sign algorithm (Theorem 2.6): under the arithmetic contract NLAlib.FloatMachine.IsArithAccurate u \tau \Omega with product constant \mu, \mu(n) \ge 0, u \ge 0, 0 \le \tau, 2n\tau \le 1 and 9(n + 1) \le \Omega, let the stored \mathbf{A} have Hermitian decoding (written \mathbf{A}) with \|\mathbf{A}\|_2 \le \mathbf{b} and every eigenvalue of modulus at least a > 0, for stored \mathbf{b} and \varepsilon with 0 < \varepsilon \le 1/2 (decoded values). With N_0 = N(a/(2\mathbf{b}), \varepsilon/(16n)) (NLAlib.newtonSchulzSteps), if 640\, n^{3/2}\,(8 + \mu(n))\,(N_0 + 1)\,u \le \frac{a}{\mathbf{b}}\,\varepsilon and the step limit is at least N_0, then \|\operatorname{sign}(\mathbf{A}) - \mathsf{newtonSchulzSign}(\mathbf{A}, \varepsilon, \mathbf{b})\|_2 \le \varepsilon \,, \mathsf{newtonSchulzSign} the algorithm NLAlib.newtonSchulzSign. [Shah2024, Theorem 2.6], there with u \le (a/\mathbf{b})\varepsilon/(4\max(N n\mu_g(n, 1.1), n^2)), N = N(a/\mathbf{b}, \varepsilon/(8n)) and the contour bound of Lemma 2.2; here the perturbation bound is dimension-free and the factor n^{3/2} comes from the Hermitian rounding and the stopping test.
Headline
Lean statement and details
NLAlib.FloatMachine.IsArithAccurate.specNorm_cfc_sign_sub_decodeMatrix_newtonSchulzSign_le.{u_1}
{F : Type u_1} {M : FloatMachine F ℝ ℂ} {dec : F → ℝ} {u τ Ω : ℝ} {μ : ℕ → ℝ} {n : ℕ}
(hM : M.IsArithAccurate dec u τ Ω μ) (hμ : 0 ≤ μ n) (hu₀ : 0 ≤ u) (hτ₀ : 0 ≤ τ)
(hτ : τ * (2 * ↑n) ≤ 1) (hΩ : 9 * (↑n + 1) ≤ Ω) {A : Matrix (Fin n) (Fin n) (F × F)}
(hA : (decodeMatrix dec A).IsHermitian) {a : ℝ} {b ε : F} (ha : 0 < a)
(hspec : ∀ x ∈ spectrum ℝ (decodeMatrix dec A), a ≤ |x|)
(hb : specNorm (decodeMatrix dec A) ≤ dec b) (hε : 0 < dec ε) (hε₁ : dec ε ≤ 1 / 2)
(hu :
640 * ↑n * √↑n * (8 + μ n) * (newtonSchulzSteps (a / (2 * dec b)) (dec ε / (16 * ↑n)) + 1) * u ≤
a / dec b * dec ε)
{N : ℕ} (hN : newtonSchulzSteps (a / (2 * dec b)) (dec ε / (16 * ↑n)) ≤ ↑N) :
specNorm (cfc Real.sign (decodeMatrix dec A) - decodeMatrix dec (newtonSchulzSign M ε b N A)) ≤
dec ε