NLA-lib Explorer

NLAlib.CGS2.satisfies_scalRelOf_exact

Library · theorem

The exact scaling contract, in the form used by a round.

NLAlib.CGS2.satisfies_scalRelOf_exact {K Op Tst : Type} [Inhabited K] [Ops.Has Ops.Blas1Op Op]
  {dec : K → ℝ} {ok : ℕ → Prop} {I : Ops.Interp Op Tst K}
  (h :
    I.Satisfies Ops.Mode.total (Ops.Has.inj Ops.Blas1Op.scal)
      ((Ops.scalExactRel dec).spec (Ops.InPlace ok))) :
  I.Satisfies Ops.Mode.total (Ops.Has.inj Ops.Blas1Op.scal)
    ((CGS2.scalRelOf fun n a x z ↦ dec a ≠ 0 → ∀ i < n, dec (z i) = dec (x i) / dec a).spec
      (Ops.InPlace ok))

Full source on GitHub

Import NLAlib.Krylov.Orthogonalization.CGS2.ExtendExact.