NLAlib.Ops.Examples.mgs_satisfies
Library · theorem
Relative-error BLAS
The certificate of mgs: for every interpretation satisfying the contracts of scalar arithmetic and of the level-1 operations, mgs satisfies its contract, which has two output blocks. So mgs is an operation (an orthogonalisation step) for the algorithms above it. Proved by block specifications.
NLAlib.Ops.Examples.mgs_satisfies {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) :
Ops.Examples.mgsRoutine.impl.Satisfies J Ops.Mode.total
((Ops.Examples.mgsRel dec ε).spec (Ops.Examples.MgsOperands ok))Import NLAlib.Ops.Examples.GramSchmidt.