NLA-lib Explorer

NLAlib.Ops.IExp.eval_withContext

Library · theorem

Expression values agree in the corresponding context-extended environment.

NLAlib.Ops.IExp.eval_withContext (e : Ops.IExp) (context : List (ℕ × ℕ)) (slot : ℕ) (ρ : Ops.Env)
  (hslot : slot ≤ ρ.idx.length) :
  Ops.IExp.eval (Ops.Env.withContext context slot ρ).idx
      (Ops.IExp.liftContext context.length slot e) =
    Ops.IExp.eval ρ.idx e

Full source on GitHub

Import NLAlib.Ops.Context.