NLA-lib Explorer

NLAlib.Ops.Examples.mgsRoutine_meets

Library · theorem

Relative-error BLAS

mgs meets the specification read off its relation, for every interpretation satisfying the contracts of scalar arithmetic and of the level-1 operations. Proved by block specifications.

NLAlib.Ops.Examples.mgsRoutine_meets {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.Meets J
    (Ops.Routine.Spec.ofRel (Ops.Examples.mgsRel dec ε) fun d ↦ ok (d.headD 0))

Full source on GitHub

Import NLAlib.Ops.Examples.GramSchmidt.