NLA-lib Explorer

NLAlib.Ops.Impl.satisfies_liberal_abort

Library · theorem

In liberal mode an implementation that fails satisfies every contract.

NLAlib.Ops.Impl.satisfies_liberal_abort {Op Tst K : Type} (nd nin nout : ℕ)
  (I : Ops.Interp Op Tst K) (C : Ops.Contract K)
  (hfit :
    ∀ (d : List ℕ) (ins outs : List (ℕ × ℕ)) (τ : Ops.Tape K) (m : Ops.Mem K),
      (C.on Ops.Mode.liberal d ins outs τ m).pre m →
        d.length = nd ∧ ins.length = nin ∧ outs.length = nout) :
  { nd := nd, nin := nin, nout := nout, body := Ops.Stmt.abort }.Satisfies I Ops.Mode.liberal C

Full source on GitHub

Import NLAlib.Ops.Cert.