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
Ralf Jung
Iris
Commits
09835135
Commit
09835135
authored
May 02, 2021
by
Ralf Jung
Browse files
add wp_frame_wand lemma
parent
4a59814e
Changes
1
Hide whitespace changes
Inline
Side-by-side
iris/program_logic/weakestpre.v
View file @
09835135
...
...
@@ -348,12 +348,18 @@ Proof. iIntros "[H Hwp]". iApply (wp_wand with "Hwp H"). Qed.
Lemma
wp_wand_r
s
E
e
Φ
Ψ
:
WP
e
@
s
;
E
{{
Φ
}}
∗
(
∀
v
,
Φ
v
-
∗
Ψ
v
)
⊢
WP
e
@
s
;
E
{{
Ψ
}}.
Proof
.
iIntros
"[Hwp H]"
.
iApply
(
wp_wand
with
"Hwp H"
).
Qed
.
Lemma
wp_frame_wand
_l
s
E
e
Q
Φ
:
Q
∗
WP
e
@
s
;
E
{{
v
,
Q
-
∗
Φ
v
}}
-
∗
WP
e
@
s
;
E
{{
Φ
}}.
Lemma
wp_frame_wand
s
E
e
Φ
R
:
R
-
∗
WP
e
@
s
;
E
{{
v
,
R
-
∗
Φ
v
}}
-
∗
WP
e
@
s
;
E
{{
Φ
}}.
Proof
.
iIntros
"
[HQ
HWP
]
"
.
iApply
(
wp_wand
with
"HWP"
).
iIntros
"
HR
HWP"
.
iApply
(
wp_wand
with
"HWP"
).
iIntros
(
v
)
"HΦ"
.
by
iApply
"HΦ"
.
Qed
.
Lemma
wp_frame_wand_l
s
E
e
Q
Φ
:
Q
∗
WP
e
@
s
;
E
{{
v
,
Q
-
∗
Φ
v
}}
-
∗
WP
e
@
s
;
E
{{
Φ
}}.
Proof
.
iIntros
"[HQ HWP]"
.
by
iApply
(
wp_frame_wand
with
"HQ"
).
Qed
.
Lemma
wp_frame_wand_r
s
E
e
Q
Φ
:
WP
e
@
s
;
E
{{
v
,
Q
-
∗
Φ
v
}}
∗
Q
-
∗
WP
e
@
s
;
E
{{
Φ
}}.
Proof
.
iIntros
"[HWP HQ]"
.
by
iApply
(
wp_frame_wand
with
"HQ"
).
Qed
.
End
wp
.
(** Proofmode class instances *)
...
...
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