Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
iris-coq
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Dan Frumin
iris-coq
Commits
2241ea73
Commit
2241ea73
authored
8 years ago
by
Robbert Krebbers
Browse files
Options
Downloads
Patches
Plain Diff
Better lemmas for splitting the fractional heap_mapsto.
parent
7047afed
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
heap_lang/heap.v
+11
-2
11 additions, 2 deletions
heap_lang/heap.v
heap_lang/proofmode.v
+1
-1
1 addition, 1 deletion
heap_lang/proofmode.v
with
12 additions
and
3 deletions
heap_lang/heap.v
+
11
−
2
View file @
2241ea73
...
@@ -144,8 +144,17 @@ Section heap.
...
@@ -144,8 +144,17 @@ Section heap.
by
apply
pure_elim_r
.
by
apply
pure_elim_r
.
Qed
.
Qed
.
Lemma
heap_mapsto_op_split
l
q
v
:
l
↦
{
q
}
v
⊣⊢
(
l
↦
{
q
/
2
}
v
★
l
↦
{
q
/
2
}
v
).
Lemma
heap_mapsto_op_1
l
q1
q2
v1
v2
:
Proof
.
by
rewrite
heap_mapsto_op_eq
Qp_div_2
.
Qed
.
l
↦
{
q1
}
v1
★
l
↦
{
q2
}
v2
⊢
v1
=
v2
∧
l
↦
{
q1
+
q2
}
v1
.
Proof
.
by
rewrite
heap_mapsto_op
.
Qed
.
Lemma
heap_mapsto_op_half
l
q
v1
v2
:
l
↦
{
q
/
2
}
v1
★
l
↦
{
q
/
2
}
v2
⊣⊢
v1
=
v2
∧
l
↦
{
q
}
v1
.
Proof
.
by
rewrite
heap_mapsto_op
Qp_div_2
.
Qed
.
Lemma
heap_mapsto_op_half_1
l
q
v1
v2
:
l
↦
{
q
/
2
}
v1
★
l
↦
{
q
/
2
}
v2
⊢
v1
=
v2
∧
l
↦
{
q
}
v1
.
Proof
.
by
rewrite
heap_mapsto_op_half
.
Qed
.
(
**
Weakest
precondition
*
)
(
**
Weakest
precondition
*
)
(
*
FIXME
:
try
to
reduce
usage
of
wp_pvs
.
We
'
re
losing
view
shifts
here
.
*
)
(
*
FIXME
:
try
to
reduce
usage
of
wp_pvs
.
We
'
re
losing
view
shifts
here
.
*
)
...
...
This diff is collapsed.
Click to expand it.
heap_lang/proofmode.v
+
1
−
1
View file @
2241ea73
...
@@ -13,7 +13,7 @@ Implicit Types Δ : envs (iResUR heap_lang (globalF Σ)).
...
@@ -13,7 +13,7 @@ Implicit Types Δ : envs (iResUR heap_lang (globalF Σ)).
Global
Instance
into_sep_mapsto
l
q
v
:
Global
Instance
into_sep_mapsto
l
q
v
:
IntoSep
false
(
l
↦
{
q
}
v
)
(
l
↦
{
q
/
2
}
v
)
(
l
↦
{
q
/
2
}
v
).
IntoSep
false
(
l
↦
{
q
}
v
)
(
l
↦
{
q
/
2
}
v
)
(
l
↦
{
q
/
2
}
v
).
Proof
.
by
rewrite
/
IntoSep
heap_mapsto_op_
split
.
Qed
.
Proof
.
by
rewrite
/
IntoSep
heap_mapsto_op_
eq
Qp_div_2
.
Qed
.
Lemma
tac_wp_alloc
Δ
Δ'
E
j
e
v
Φ
:
Lemma
tac_wp_alloc
Δ
Δ'
E
j
e
v
Φ
:
to_val
e
=
Some
v
→
to_val
e
=
Some
v
→
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment