Skip to content
Snippets Groups Projects
Commit 0a593561 authored by Ralf Jung's avatar Ralf Jung
Browse files

add a derived 'skip' to heap_lang

parent 960ac942
No related branches found
No related tags found
No related merge requests found
......@@ -8,6 +8,7 @@ Notation Seq e1 e2 := (Let "" e1 e2).
Notation LamV x e := (RecV "" x e).
Notation LetCtx x e2 := (AppRCtx (LamV x e2)).
Notation SeqCtx e2 := (LetCtx "" e2).
Notation Skip := (Seq (Lit LitUnit) (Lit LitUnit)).
Section derived.
Context {Σ : iFunctor}.
......@@ -29,6 +30,9 @@ Proof.
by rewrite -wp_let' //= ?to_of_val ?subst_empty.
Qed.
Lemma wp_skip E Q : (Q (LitV LitUnit)) wp E Skip Q.
Proof. rewrite -wp_seq -wp_value // -wp_value //. Qed.
Lemma wp_le E (n1 n2 : Z) P Q :
(n1 n2 P Q (LitV $ LitBool true))
(n2 < n1 P Q (LitV $ LitBool false))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment