Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Iris
Iris
Commits
8e4f1524
Commit
8e4f1524
authored
Sep 20, 2017
by
Dan Frumin
Committed by
Robbert Krebbers
Sep 25, 2017
Browse files
Add a `repeat (wp_pure _)` example.
parent
bbcd2c84
Changes
1
Hide whitespace changes
Inline
Side-by-side
theories/tests/heap_lang.v
View file @
8e4f1524
...
...
@@ -31,6 +31,17 @@ Section LiftingTests.
wp_load
.
wp_op
.
wp_store
.
wp_load
.
done
.
Qed
.
Definition
heap_e3
:
expr
:
=
let
:
"x"
:
=
#
true
in
let
:
"f"
:
=
λ
:
"z"
,
"z"
+
#
1
in
if
:
"x"
then
"f"
#
0
else
"f"
#
1
.
Lemma
heap_e3_spec
E
:
WP
heap_e3
@
E
{{
v
,
⌜
v
=
#
1
⌝
}}%
I
.
Proof
.
iIntros
""
.
rewrite
/
heap_e3
.
by
repeat
(
wp_pure
_
).
Qed
.
Definition
FindPred
:
val
:
=
rec
:
"pred"
"x"
"y"
:
=
let
:
"yp"
:
=
"y"
+
#
1
in
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment