NLA-lib Explorer

NLAlib.Ops.ScalarIns.evalBlock_lift

Library · theorem

Evaluating a lifted scalar block uses the original group's word functions; operation inclusion does not introduce any additional evaluation or memory operation.

NLAlib.Ops.ScalarIns.evalBlock_lift {K G Op : Type} [Ops.Has G Op] (sem : G → List K → Option K)
  (ρ : Ops.Env) (xs : List (Ops.ScalarIns G)) (f : ℕ × ℕ → Option K) :
  Ops.ScalarIns.evalBlock (fun o vs ↦ (Ops.Has.proj o).bind fun a ↦ sem a vs) ρ
      (List.map Ops.ScalarIns.lift xs) f =
    Ops.ScalarIns.evalBlock sem ρ xs f

Full source on GitHub

Import NLAlib.Ops.Logic.Scalar.