Commit 962e8779 authored by Ralf Jung's avatar Ralf Jung
Browse files

wp_alloc fails to work

parent 036278e5
......@@ -65,6 +65,17 @@ Section heap.
ownP σ pvs N N ( γ, heap_ctx HeapI γ N heap_own HeapI γ σ).
Proof. by rewrite -{1}[σ]from_to_heap -(auth_alloc _ N). Qed.
Lemma wp_alloc_heap N E γ σ e v P Q :
nclose N E to_val e = Some v
P heap_ctx HeapI γ N
P (heap_own HeapI γ σ
( l, σ !! l = None heap_own HeapI γ (<[l:=v]>σ) - Q (LocV l)))
P wp E (Alloc e) Q.
rewrite /heap_ctx /heap_own. intros HN Hval Hl Hctx HP.
Fail eapply (auth_fsa (heap_inv HeapI) (wp_fsa _ _) (alter (λ _, Excl v) l)).
Lemma wp_load_heap N E γ σ l v P Q :
nclose N E
σ !! l = Some v
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment