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
Tej Chajed
iris
Commits
e3c01577
Commit
e3c01577
authored
Feb 27, 2016
by
Ralf Jung
Browse files
prove a lemma for splitting \mapsto
parent
bea044cc
Changes
1
Hide whitespace changes
Inline
Side-by-side
heap_lang/heap.v
View file @
e3c01577
...
...
@@ -132,6 +132,10 @@ Section heap.
rewrite
option_validI
frac_validI
discrete_valid
.
by
apply
const_elim_r
.
Qed
.
Lemma
heap_mapsto_op_split
l
q
v
:
(
l
↦
{
q
}
v
)%
I
≡
(
l
↦
{
q
/
2
}
v
★
l
↦
{
q
/
2
}
v
)%
I
.
Proof
.
by
rewrite
heap_mapsto_op_eq
Qp_div_2
.
Qed
.
(** Weakest precondition *)
Lemma
wp_alloc
N
E
e
v
P
Φ
:
to_val
e
=
Some
v
→
...
...
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