NLAlib.FloatMachine.IsArithAccurate.exists_le_newtonSchulzTest_iterate
Library · theorem
This statement changed in the recorded rename: 2026-11-eigh-followups.
The Newton–Schulz test passes within the step count: 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 \,, then the stopping test NLAlib.newtonSchulzTest at the computed threshold \mathrm{fl}(\varepsilon/\mathrm{fl}(4n)) passes at some iterate k \le N_0 + 1 of the rounded step NLAlib.newtonSchulzRounded from the stored \mathbf{A}/\mathbf{b}. [Shah2024, proof of Theorem 2.6], where the iteration count is shown but not stated.
NLAlib.FloatMachine.IsArithAccurate.exists_le_newtonSchulzTest_iterate.{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 ε) :
∃ k,
↑k ≤ newtonSchulzSteps (a / (2 * dec b)) (dec ε / (16 * ↑n)) + 1 ∧
newtonSchulzTest M (M.div ε (M.ofNat (4 * n)))
((newtonSchulzRounded M)^[k] (M.hermScale A b)) =
trueImport NLAlib.Matrix.FinitePrecision.NewtonSchulzSign.Accuracy.