NLA-lib Explorer

NLAlib.Ops.Interp.link_satisfies_liberal_of_abort

Library · theorem

Liberal statements can be vacuous: an operation whose implementation in the table fails satisfies every contract in liberal mode, under the induced interpretation. So a liberal corollary of linking is never a result without a statement of success.

NLAlib.Ops.Interp.link_satisfies_liberal_of_abort {Op₁ Op₂ Tst K : Type} {I : Ops.Interp Op₂ Tst K}
  {T : Ops.Table Op₁ Op₂ Tst} {o : Op₁} {E : Ops.Impl Op₂ Tst} (hT : T o = Sum.inl E)
  (hE : E.body = Ops.Stmt.abort) (C : Ops.Contract K) : (I.link T).Satisfies Ops.Mode.liberal o C

Full source on GitHub

Import NLAlib.Ops.Cert.