NLAlib.Sign.newtonSchulzTest_eq_true_iff_inInterval
Library · theorem
The actual packed scalar interval predicate equals the existing mathematical matrix stopping test. Both compare every real and imaginary component against the same computed threshold and its machine negation. No numerical rounding assumption is needed.
NLAlib.Sign.newtonSchulzTest_eq_true_iff_inInterval {K Su Sg : Type} [Inhabited K]
(M : Ops.Machine K) (dec : K → ℝ) (mm : MatMulMap (K × K)) (qr : QRMap (K × K))
(unif : K → Su → K) (normal : Sg → K × K) {n : ℕ} (η : K) (A : Matrix (Fin n) (Fin n) (K × K)) :
newtonSchulzTest (M.toFloatMachine dec (fun {l m n} ↦ mm) (fun {m n} ↦ qr) unif normal) η A =
true ↔
Ops.InInterval dec (M.neg η) η
(Ops.vec
((Ops.EntryCodec.pair K).packFinMatrix
((M.toFloatMachine dec (fun {l m n} ↦ mm) (fun {m n} ↦ qr) unif normal).hermShift (mm A A)
(M.lit 1))))
(2 * (n * n))Import NLAlib.Eigensolvers.Sign.Math.