NLA-lib Explorer

NLAlib.Ops.extendRoutine_implements

Library ยท theorem

The interface of a basis extension implements its contracts: at the admitted operands of NLAlib.Ops.ExtendOperands, the supplied operands are the basis, the block and the coefficients; the new columns are where the contract puts them, at the end of the basis.

NLAlib.Ops.extendRoutine_implements {K ๐•œ Op Tst : Type} [Inhabited K] (body : Ops.Stmt Op Tst)
  (dec : K โ†’ ๐•œ) (ok : โ„• โ†’ โ„• โ†’ โ„• โ†’ Prop) (P : Ops.ExtendPred ๐•œ) :
  (Ops.extendRoutine body).Implements (Ops.extendRelOf dec ok P) Ops.ExtendOperands fun ins outs โ†ฆ
    ins ++ List.drop 2 outs

Full source on GitHub

Import NLAlib.Ops.Catalog.OrthRoutine.