NLA-lib Explorer

NLAlib.Ops.run_bookkeeping_dimension

Library · theorem

A structural call at one dimension evaluates that dimension and preserves the memory.

NLAlib.Ops.run_bookkeeping_dimension {Op Tst K : Type} (I : Ops.Interp Op Tst K) (τ : Ops.Tape K)
  (k : Ops.Bookkeeping) (e : Ops.IExp) (ρ : Ops.Env) (m : Ops.Mem K) :
  Ops.eval I.instrument τ (Ops.Stmt.call (Sum.inr k) [e] [] []) ρ m =
    Option.map (fun x ↦ m) (Ops.IExp.eval ρ.idx e)

Full source on GitHub

Import NLAlib.Ops.Exec.