NLA-lib Explorer

NLAlib.Ops.Impl.satisfies_fn_of_run

Library · theorem

Exact satisfaction: on admitted operands, where the block function succeeds, the run of the implementation is the block function.

NLAlib.Ops.Impl.satisfies_fn_of_run {Op Tst K : Type} {E : Ops.Impl Op Tst}
  {I : Ops.Interp Op Tst K} {f : Ops.BlockFn K} {adm : List ℕ → List (ℕ × ℕ) → List (ℕ × ℕ) → Prop}
  (h :
    ∀ (d : List ℕ) (ins outs : List (ℕ × ℕ)) (τ : Ops.Tape K) (m m' : Ops.Mem K),
      adm d ins outs →
        f.apply d ins outs τ m = some m' →
          E.Fits d.length ins.length outs.length ∧
            Ops.eval I τ E.body (Ops.Env.frame d (ins ++ outs)) m = some m') :
  E.Satisfies I Ops.Mode.total (f.rel.spec adm)

Full source on GitHub

Import NLAlib.Ops.Cert.