-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
From iris.prelude Require Import options. | ||
From iris.program_logic Require Export weakestpre. | ||
From iris.heap_lang Require Export lang proofmode notation. | ||
|
||
Require Import guarding.guard. | ||
Require Import guarding.tactics. | ||
|
||
(* Derivation for Heap-Read-Shared law for HeapLang. *) | ||
|
||
Section HeapLangWpLoadShared. | ||
|
||
Context `{!heapGS Σ}. | ||
|
||
Lemma wp_load_shared s E F l dq v G : (F ⊆ E) → | ||
{{{ G ∗ (G &&{F}&&> l ↦{dq} v) }}} Load (Val $ LitV $ LitLoc l) @ s; E {{{ RET v; G }}}. | ||
Proof. | ||
intros Hfe. | ||
iIntros (Φ) "[G #g] HΦ". | ||
leaf_open "g" with "G" as "[Hpt Hback]". { set_solver. } | ||
wp_load. | ||
iMod ("Hback" with "Hpt") as "G". | ||
iModIntro. iApply "HΦ". iFrame "G". | ||
Qed. | ||
|
||
End HeapLangWpLoadShared. |