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
Joshua Yanovski
iris-coq
Commits
64bb0481
Commit
64bb0481
authored
Jul 20, 2016
by
Robbert Krebbers
Browse files
Stronger masks for the WP of assert.
parent
a709fc36
Changes
1
Show whitespace changes
Inline
Side-by-side
heap_lang/lib/assert.v
View file @
64bb0481
...
...
@@ -7,8 +7,8 @@ Definition assert : val :=
Notation
"'assert:' e"
:=
(
assert
(
λ
:
<>
,
e
))
%
E
(
at
level
99
)
:
expr_scope
.
Global
Opaque
assert
.
Lemma
wp_assert
{
Σ
}
(
Φ
:
val
→
iProp
heap_lang
Σ
)
e
`
{!
Closed
[]
e
}
:
WP
e
{{
v
,
v
=
#
true
∧
▷
Φ
#()
}}
⊢
WP
assert
:
e
{{
Φ
}}
.
Lemma
wp_assert
{
Σ
}
E
(
Φ
:
val
→
iProp
heap_lang
Σ
)
e
`
{!
Closed
[]
e
}
:
WP
e
@
E
{{
v
,
v
=
#
true
∧
▷
Φ
#()
}}
⊢
WP
assert
:
e
@
E
{{
Φ
}}
.
Proof
.
iIntros
"HΦ"
.
rewrite
/
assert
.
wp_let
.
wp_seq
.
iApply
wp_wand_r
;
iFrame
"HΦ"
;
iIntros
(
v
)
"[% ?]"
;
subst
.
...
...
Write
Preview
Supports
Markdown
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