NLAlib.SmallEig.distSpec_writes_word
Library · theorem
DistSpec on any scalar machine: if NLAlib.ShiftedQR.comptauHalf satisfies the comparison contract of the shift s repeated, m \ge 1 (NLAlib.ShiftedQR.IsHalfTau for \mathbf{H} of order n + 1 and the list of 2m copies of s), then from \mathbf{H} at h, the pair of s at s and room for the word tau (in a buffer of its own), NLAlib.SmallEig.distSpec writes only that word, keeps the tape position, and stores q rounded square roots of a t within 0.0011, relatively, of \|\mathbf{e}_n^{\mathsf{T}}(\mathbf{H} - s\mathbf{I})^{-m}\|^{-1}. Shared by the trees of NLAlib.SmallEig.oneEigPoint and NLAlib.SmallEig.oneEigStart.
NLAlib.SmallEig.distSpec_writes_word {O Q : Type} [Ops.Has Ops.ScalarOp O] [Ops.Has Ops.IndexOp O]
[Ops.Has Ops.CmpTst Q] {M : Ops.Machine ℝ} {I : Ops.Interp O Q ℝ} (hS : Ops.IsScalar M I)
{n m q : ℕ} {H : Matrix (Fin (n + 1)) (Fin (n + 1)) ℂ} {s : ℂ} (hm : 0 < m)
(hT : ShiftedQR.IsHalfTau H (List.replicate (2 * m) s) ShiftedQR.comptauHalf I) {τ : Ops.Tape ℝ}
{μ : Ops.Mem ℝ} {h sp tau : ℕ × ℕ} (hl : μ.Live [h, sp, tau]) (hH : HoldsMatrix h H μ.store)
(hsp : μ.store.readBlock sp.1 sp.2 2 = some [s.re, s.im]) (htau : tau.2 < μ.store.len tau.1)
(hth : tau.1 ≠ h.1) (hts : tau.1 ≠ sp.1) :
Ops.Writes Ops.Mode.total I τ SmallEig.distSpec (Ops.Env.frame [n + 1, m, q] [h, sp, tau])
(Ops.Store.inBlock tau.1 tau.2 1)
(fun μ' ↦
μ'.pos = μ.pos ∧
∃ t,
μ'.store.get tau.1 tau.2 = some (sqrtIter M q t) ∧
|t - ‖WithLp.toLp 2 (((s • 1 - H)⁻¹ ^ m) (Fin.last n))‖⁻¹| ≤
11e-4 * ‖WithLp.toLp 2 (((s • 1 - H)⁻¹ ^ m) (Fin.last n))‖⁻¹)
μImport NLAlib.Eigensolvers.SmallEig.DistSpec.