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
Pierre Roux
Iris
Commits
b036013f
Commit
b036013f
authored
6 years ago
by
Robbert Krebbers
Browse files
Options
Downloads
Patches
Plain Diff
Support multiset union in the proof mode.
parent
6a8c782b
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
theories/proofmode/class_instances_bi.v
+13
-0
13 additions, 0 deletions
theories/proofmode/class_instances_bi.v
theories/proofmode/frame_instances.v
+5
-0
5 additions, 0 deletions
theories/proofmode/frame_instances.v
with
18 additions
and
0 deletions
theories/proofmode/class_instances_bi.v
+
13
−
0
View file @
b036013f
...
...
@@ -591,6 +591,11 @@ Proof.
apply
wand_elim_l'
,
big_sepL2_app
.
Qed
.
Global
Instance
from_and_big_sepMS_union_persistent
`{
Countable
A
}
(
Φ
:
A
→
PROP
)
X1
X2
:
(
∀
y
,
Persistent
(
Φ
y
))
→
FromAnd
([
∗
mset
]
y
∈
X1
∪
X2
,
Φ
y
)
([
∗
mset
]
y
∈
X1
,
Φ
y
)
([
∗
mset
]
y
∈
X2
,
Φ
y
)
.
Proof
.
intros
.
by
rewrite
/
FromAnd
big_sepMS_union
persistent_and_sep_1
.
Qed
.
(** FromSep *)
Global
Instance
from_sep_sep
P1
P2
:
FromSep
(
P1
∗
P2
)
P1
P2
|
100
.
Proof
.
by
rewrite
/
FromSep
.
Qed
.
...
...
@@ -644,6 +649,10 @@ Global Instance from_sep_big_sepL2_app {A B} (Φ : nat → A → B → PROP)
([
∗
list
]
k
↦
y1
;
y2
∈
l1''
;
l2''
,
Φ
(
length
l1'
+
k
)
y1
y2
)
.
Proof
.
rewrite
/
IsApp
=>
->
->
.
apply
wand_elim_l'
,
big_sepL2_app
.
Qed
.
Global
Instance
from_sep_big_sepMS_union
`{
Countable
A
}
(
Φ
:
A
→
PROP
)
X1
X2
:
FromSep
([
∗
mset
]
y
∈
X1
∪
X2
,
Φ
y
)
([
∗
mset
]
y
∈
X1
,
Φ
y
)
([
∗
mset
]
y
∈
X2
,
Φ
y
)
.
Proof
.
by
rewrite
/
FromSep
big_sepMS_union
.
Qed
.
Global
Instance
from_sep_bupd
`{
BiBUpd
PROP
}
P
Q1
Q2
:
FromSep
P
Q1
Q2
→
FromSep
(|
==>
P
)
(|
==>
Q1
)
(|
==>
Q2
)
.
Proof
.
rewrite
/
FromSep
=>
<-.
apply
bupd_sep
.
Qed
.
...
...
@@ -793,6 +802,10 @@ Global Instance into_sep_big_sepL2_cons {A B}
(
Φ
0
x1
x2
)
([
∗
list
]
k
↦
y1
;
y2
∈
l1'
;
l2'
,
Φ
(
S
k
)
y1
y2
)
.
Proof
.
rewrite
/
IsCons
=>
->
->
.
by
rewrite
/
IntoSep
big_sepL2_cons
.
Qed
.
Global
Instance
into_sep_big_sepMS_union
`{
Countable
A
}
(
Φ
:
A
→
PROP
)
X1
X2
:
IntoSep
([
∗
mset
]
y
∈
X1
∪
X2
,
Φ
y
)
([
∗
mset
]
y
∈
X1
,
Φ
y
)
([
∗
mset
]
y
∈
X2
,
Φ
y
)
.
Proof
.
by
rewrite
/
IntoSep
big_sepMS_union
.
Qed
.
(** FromOr *)
Global
Instance
from_or_or
P1
P2
:
FromOr
(
P1
∨
P2
)
P1
P2
.
Proof
.
by
rewrite
/
FromOr
.
Qed
.
...
...
This diff is collapsed.
Click to expand it.
theories/proofmode/frame_instances.v
+
5
−
0
View file @
b036013f
...
...
@@ -105,6 +105,11 @@ Global Instance frame_big_sepL2_app {A B} p (Φ : nat → A → B → PROP)
Frame
p
R
([
∗
list
]
k
↦
y1
;
y2
∈
l1
;
l2
,
Φ
k
y1
y2
)
Q
.
Proof
.
rewrite
/
IsApp
/
Frame
=>
->
->
->
.
apply
wand_elim_l'
,
big_sepL2_app
.
Qed
.
Global
Instance
frame_big_sepMS_union
`{
Countable
A
}
p
(
Φ
:
A
→
PROP
)
R
Q
X1
X2
:
Frame
p
R
(([
∗
mset
]
y
∈
X1
,
Φ
y
)
∗
[
∗
mset
]
y
∈
X2
,
Φ
y
)
Q
→
Frame
p
R
([
∗
mset
]
y
∈
X1
∪
X2
,
Φ
y
)
Q
.
Proof
.
by
rewrite
/
Frame
big_sepMS_union
.
Qed
.
Global
Instance
make_and_true_l
P
:
KnownLMakeAnd
True
P
P
.
Proof
.
apply
left_id
,
_
.
Qed
.
Global
Instance
make_and_true_r
P
:
KnownRMakeAnd
P
True
P
.
...
...
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