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

use WP sugar

parent f530c3ec
No related branches found
No related tags found
No related merge requests found
...@@ -242,7 +242,7 @@ Lemma wp_wand_r s E e Φ Ψ : ...@@ -242,7 +242,7 @@ Lemma wp_wand_r s E e Φ Ψ :
WP e @ s; E {{ Φ }} ( v, Φ v -∗ Ψ v) WP e @ s; E {{ Ψ }}. WP e @ s; E {{ Φ }} ( v, Φ v -∗ Ψ v) WP e @ s; E {{ Ψ }}.
Proof. iIntros "[Hwp H]". iApply (wp_wand with "Hwp H"). Qed. Proof. iIntros "[Hwp H]". iApply (wp_wand with "Hwp H"). Qed.
Lemma wp_frame_wand_l s E e Q Φ : Lemma wp_frame_wand_l s E e Q Φ :
Q WP e @ s; E {{ λ v, Q -∗ Φ v }} -∗ WP e @ s; E {{ Φ }}. Q WP e @ s; E {{ v, Q -∗ Φ v }} -∗ WP e @ s; E {{ Φ }}.
Proof. Proof.
iIntros "[HQ HWP]". iApply (wp_wand with "HWP"). iIntros "[HQ HWP]". iApply (wp_wand with "HWP").
iIntros (v) "HΦ". by iApply "HΦ". iIntros (v) "HΦ". by iApply "HΦ".
......
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