NLA-lib Explorer

NLAlib.CGS2.cgs2ExtendRoutine_meets_of

Library · theorem

The column-wise two-pass extension meets the specification of a basis extension for every predicate implied by the relations of its columns. Under the contracts NLAlib.CGS2.ColOps of the operations, the routine with the threshold θ runs on all separated operands at the dimensions ok, which the level-1 operations must admit, and its decoded output satisfies P whenever P follows from NLAlib.CGS2.ColsDone of the b columns for blocks of the declared lengths.

NLAlib.CGS2.cgs2ExtendRoutine_meets_of {K Op Tst : Type} [Inhabited K] [Ops.Has Ops.ScalarOp Op]
  [Ops.Has Ops.Blas1Op Op] [Ops.Has Ops.CmpTst Tst] {M : Ops.Machine K} {dec : K → ℝ} {ed : ℕ → ℝ}
  {ea : ℝ} {N : ℕ → (ℕ → K) → K → Prop} {S : ℕ → K → (ℕ → K) → (ℕ → K) → Prop} {okB : ℕ → Prop}
  {I : Ops.Interp Op Tst K} (ops : CGS2.ColOps M dec ed ea N S okB I) {θ : ℚ}
  {ok : ℕ → ℕ → ℕ → Prop} {P : Ops.ExtendPred ℝ} (hok : ∀ (n k b : ℕ), ok n k b → okB n)
  (hP :
    ∀ (n k b : ℕ) (qs ws qn wd cs : List K),
      ok n k b →
        qs.length = k * n →
          ws.length = b * n →
            qn.length = b * n →
              wd.length = b * n →
                cs.length = b * (k + b) →
                  CGS2.ColsDone M dec (ed n) ea (N n) (S n) θ n k b qs ws b qn wd cs →
                    Ops.ExtendOut dec P n k b qs ws qn cs) :
  (CGS2.cgs2ExtendRoutine θ).Meets I (Ops.extendSpecOf dec ok P)

Full source on GitHub

Import NLAlib.Krylov.Orthogonalization.CGS2.ExtendLoop.