Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Iris
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
Package Registry
Model registry
Operate
Terraform modules
Monitor
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
William Mansky
Iris
Commits
3670501d
Commit
3670501d
authored
4 years ago
by
Ralf Jung
Browse files
Options
Downloads
Patches
Plain Diff
add _wand lemmas for big-ops
parent
763a1b41
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CHANGELOG.md
+2
-0
2 additions, 0 deletions
CHANGELOG.md
iris/bi/big_op.v
+54
-0
54 additions, 0 deletions
iris/bi/big_op.v
with
56 additions
and
0 deletions
CHANGELOG.md
+
2
−
0
View file @
3670501d
...
...
@@ -90,6 +90,8 @@ HeapLang, which is now in a separate package `coq-iris-heap-lang`.
`big_sepS_elem_of_acc_impl`
,
`big_sepMS_elem_of_acc_impl`
.
*
Add lemmas
`big_sepM_filter'`
and
`big_sepM_filter`
matching the corresponding
`big_sepS`
lemmas.
*
Add lemmas for big-ops of magic wands:
`big_sepL_wand`
,
`big_sepL2_wand`
,
`big_sepM_wand`
,
`big_sepM2_wand`
,
`big_sepS_wand`
,
`big_sepMS_wand`
.
**Changes in `proofmode`:**
...
...
This diff is collapsed.
Click to expand it.
iris/bi/big_op.v
+
54
−
0
View file @
3670501d
...
...
@@ -215,6 +215,15 @@ Section sep_list.
by
setoid_rewrite
wand_elim_l
.
Qed
.
Lemma
big_sepL_wand
Φ
Ψ
l
:
([
∗
list
]
k
↦
x
∈
l
,
Φ
k
x
)
-∗
([
∗
list
]
k
↦
x
∈
l
,
Φ
k
x
-∗
Ψ
k
x
)
-∗
[
∗
list
]
k
↦
x
∈
l
,
Ψ
k
x
.
Proof
.
apply
wand_intro_r
.
rewrite
-
big_sepL_sep
.
setoid_rewrite
wand_elim_r
.
done
.
Qed
.
Lemma
big_sepL_dup
P
`{
!
Affine
P
}
l
:
□
(
P
-∗
P
∗
P
)
-∗
P
-∗
[
∗
list
]
k
↦
x
∈
l
,
P
.
Proof
.
...
...
@@ -646,6 +655,15 @@ Section sep_list2.
apply
bi
.
wand_intro_l
.
rewrite
-
big_sepL2_sep
.
by
setoid_rewrite
wand_elim_l
.
Qed
.
Lemma
big_sepL2_wand
Φ
Ψ
l1
l2
:
([
∗
list
]
k
↦
y1
;
y2
∈
l1
;
l2
,
Φ
k
y1
y2
)
-∗
([
∗
list
]
k
↦
y1
;
y2
∈
l1
;
l2
,
Φ
k
y1
y2
-∗
Ψ
k
y1
y2
)
-∗
[
∗
list
]
k
↦
y1
;
y2
∈
l1
;
l2
,
Ψ
k
y1
y2
.
Proof
.
apply
wand_intro_r
.
rewrite
-
big_sepL2_sep
.
setoid_rewrite
wand_elim_r
.
done
.
Qed
.
Lemma
big_sepL2_delete
Φ
l1
l2
i
x1
x2
:
l1
!!
i
=
Some
x1
→
l2
!!
i
=
Some
x2
→
([
∗
list
]
k
↦
y1
;
y2
∈
l1
;
l2
,
Φ
k
y1
y2
)
⊣⊢
...
...
@@ -1201,6 +1219,15 @@ Section map.
by
setoid_rewrite
wand_elim_l
.
Qed
.
Lemma
big_sepM_wand
Φ
Ψ
m
:
([
∗
map
]
k
↦
x
∈
m
,
Φ
k
x
)
-∗
([
∗
map
]
k
↦
x
∈
m
,
Φ
k
x
-∗
Ψ
k
x
)
-∗
[
∗
map
]
k
↦
x
∈
m
,
Ψ
k
x
.
Proof
.
apply
wand_intro_r
.
rewrite
-
big_sepM_sep
.
setoid_rewrite
wand_elim_r
.
done
.
Qed
.
Lemma
big_sepM_dup
P
`{
!
Affine
P
}
m
:
□
(
P
-∗
P
∗
P
)
-∗
P
-∗
[
∗
map
]
k
↦
x
∈
m
,
P
.
Proof
.
...
...
@@ -1631,6 +1658,15 @@ Section map2.
apply
bi
.
wand_intro_l
.
rewrite
-
big_sepM2_sep
.
by
setoid_rewrite
wand_elim_l
.
Qed
.
Lemma
big_sepM2_wand
Φ
Ψ
m1
m2
:
([
∗
map
]
k
↦
y1
;
y2
∈
m1
;
m2
,
Φ
k
y1
y2
)
-∗
([
∗
map
]
k
↦
y1
;
y2
∈
m1
;
m2
,
Φ
k
y1
y2
-∗
Ψ
k
y1
y2
)
-∗
[
∗
map
]
k
↦
y1
;
y2
∈
m1
;
m2
,
Ψ
k
y1
y2
.
Proof
.
apply
wand_intro_r
.
rewrite
-
big_sepM2_sep
.
setoid_rewrite
wand_elim_r
.
done
.
Qed
.
Lemma
big_sepM2_lookup_acc_impl
{
Φ
m1
m2
}
i
x1
x2
:
m1
!!
i
=
Some
x1
→
m2
!!
i
=
Some
x2
→
...
...
@@ -1896,6 +1932,15 @@ Section gset.
by
setoid_rewrite
wand_elim_l
.
Qed
.
Lemma
big_sepS_wand
Φ
Ψ
X
:
([
∗
set
]
x
∈
X
,
Φ
x
)
-∗
([
∗
set
]
x
∈
X
,
Φ
x
-∗
Ψ
x
)
-∗
[
∗
set
]
x
∈
X
,
Ψ
x
.
Proof
.
apply
wand_intro_r
.
rewrite
-
big_sepS_sep
.
setoid_rewrite
wand_elim_r
.
done
.
Qed
.
Lemma
big_sepS_elem_of_acc_impl
{
Φ
X
}
x
:
x
∈
X
→
([
∗
set
]
y
∈
X
,
Φ
y
)
-∗
...
...
@@ -2084,6 +2129,15 @@ Section gmultiset.
by
setoid_rewrite
wand_elim_l
.
Qed
.
Lemma
big_sepMS_wand
Φ
Ψ
X
:
([
∗
mset
]
x
∈
X
,
Φ
x
)
-∗
([
∗
mset
]
x
∈
X
,
Φ
x
-∗
Ψ
x
)
-∗
[
∗
mset
]
x
∈
X
,
Ψ
x
.
Proof
.
apply
wand_intro_r
.
rewrite
-
big_sepMS_sep
.
setoid_rewrite
wand_elim_r
.
done
.
Qed
.
Lemma
big_sepMS_dup
P
`{
!
Affine
P
}
X
:
□
(
P
-∗
P
∗
P
)
-∗
P
-∗
[
∗
mset
]
x
∈
X
,
P
.
Proof
.
...
...
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