NLAlib.Ops.Examples.runs_mgs_rounded
Library · theorem
Relative-error BLAS
The abstract theorem of mgs, from its certificate by the bridge: for every interpretation satisfying the contracts of scalar arithmetic and of the level-1 operations, the run terminates within mgsCount n k calls, and the memory is described by the recurrence with local errors.
NLAlib.Ops.Examples.runs_mgs_rounded {K Op Tst : Type} [Ops.Has Ops.ScalarOp Op]
[Ops.Has Ops.Blas1Op Op] [Inhabited K] {M : Ops.Machine K} {dec : K → ℝ} {ε : Ops.Blas1Err}
{ok : ℕ → Prop} {J : Ops.Interp Op Tst K} (hS : Ops.IsScalar M J) (hJ : Ops.IsBlas1 dec ε ok J)
(hneg : ∀ (a : K), dec (M.neg a) = -dec a) (W : Op → List ℕ → ℕ) {τ : Ops.Tape K} {n k : ℕ}
{Q w R : ℕ × ℕ} {μ : Ops.Mem K} {qs ws : List K} (hok : ok n) (hQw : Q.1 ≠ w.1) (hQR : Q.1 ≠ R.1)
(hwR : w.1 ≠ R.1) (hl : μ.Live [Q, w, R]) (hq : μ.store.readBlock Q.1 Q.2 (k * n) = some qs)
(hw : μ.store.readBlock w.1 w.2 n = some ws) (hwl : w.2 + n ≤ μ.store.len w.1)
(hR : R.2 + (k + 1) ≤ μ.store.len R.1) :
Ops.ConditionalRuns J W τ Ops.Examples.mgs (Ops.Env.frame [n, k] [Q, w, w, R]) μ
(Ops.Examples.mgsCount n k) (Ops.Examples.mgsPeak W n)
(Ops.Examples.MgsRounded dec ε n k w R qs ws μ)Import NLAlib.Ops.Examples.GramSchmidt.