NLA-lib Explorer

NLAlib.Ops.Routine.withData_sel

Library · theorem

The operands of the routine on data selected by their access: the data blocks if the access of an isolated operand is selected, then those of R.

NLAlib.Ops.Routine.withData_sel {Op Lo Tst : Type} {R : Ops.Routine Op Tst}
  {lens : List (List ℕ → ℕ)} {T : Ops.ContextTable Op Lo Tst} {α : Type} (p : Ops.Access → Bool)
  {ctx rest : List α} (hc : ctx.length = lens.length) :
  (R.withData lens T).sel p (ctx ++ rest) =
    (if p Ops.Access.isolated = true then ctx else []) ++ R.sel p rest

Full source on GitHub

Import NLAlib.Ops.RoutineData.