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
Gaëtan Gilbert
Iris
Commits
43048a39
Commit
43048a39
authored
7 years ago
by
Robbert Krebbers
Committed by
Jacques-Henri Jourdan
7 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Also add Affine instances for empty/nil big ops.
parent
40b233f2
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
theories/bi/big_op.v
+13
-3
13 additions, 3 deletions
theories/bi/big_op.v
with
13 additions
and
3 deletions
theories/bi/big_op.v
+
13
−
3
View file @
43048a39
...
@@ -168,9 +168,14 @@ Section sep_list.
...
@@ -168,9 +168,14 @@ Section sep_list.
TCForall
Persistent
Ps
→
Persistent
([
∗
]
Ps
)
.
TCForall
Persistent
Ps
→
Persistent
([
∗
]
Ps
)
.
Proof
.
induction
1
;
simpl
;
apply
_
.
Qed
.
Proof
.
induction
1
;
simpl
;
apply
_
.
Qed
.
Global
Instance
big_sepL_nil_affine
Φ
:
Affine
([
∗
list
]
k
↦
x
∈
[],
Φ
k
x
)
.
Proof
.
simpl
;
apply
_
.
Qed
.
Global
Instance
big_sepL_affine
Φ
l
:
Global
Instance
big_sepL_affine
Φ
l
:
(
∀
k
x
,
Affine
(
Φ
k
x
))
→
Affine
([
∗
list
]
k
↦
x
∈
l
,
Φ
k
x
)
.
(
∀
k
x
,
Affine
(
Φ
k
x
))
→
Affine
([
∗
list
]
k
↦
x
∈
l
,
Φ
k
x
)
.
Proof
.
revert
Φ
.
induction
l
as
[|
x
l
IH
]=>
Φ
?
/=
;
apply
_
.
Qed
.
Proof
.
revert
Φ
.
induction
l
as
[|
x
l
IH
]=>
Φ
?
/=
;
apply
_
.
Qed
.
Global
Instance
big_sepL_affine_id
Ps
:
TCForall
Affine
Ps
→
Affine
([
∗
]
Ps
)
.
Proof
.
induction
1
;
simpl
;
apply
_
.
Qed
.
End
sep_list
.
End
sep_list
.
Section
sep_list2
.
Section
sep_list2
.
...
@@ -434,11 +439,12 @@ Section gmap.
...
@@ -434,11 +439,12 @@ Section gmap.
(
∀
k
x
,
Persistent
(
Φ
k
x
))
→
Persistent
([
∗
map
]
k
↦
x
∈
m
,
Φ
k
x
)
.
(
∀
k
x
,
Persistent
(
Φ
k
x
))
→
Persistent
([
∗
map
]
k
↦
x
∈
m
,
Φ
k
x
)
.
Proof
.
intros
.
apply
big_sepL_persistent
=>
_
[??];
apply
_
.
Qed
.
Proof
.
intros
.
apply
big_sepL_persistent
=>
_
[??];
apply
_
.
Qed
.
Global
Instance
big_sepM_empty_affine
Φ
:
Affine
([
∗
map
]
k
↦
x
∈
∅
,
Φ
k
x
)
.
Proof
.
rewrite
/
big_opM
map_to_list_empty
.
apply
_
.
Qed
.
Global
Instance
big_sepM_affine
Φ
m
:
Global
Instance
big_sepM_affine
Φ
m
:
(
∀
k
x
,
Affine
(
Φ
k
x
))
→
Affine
([
∗
map
]
k
↦
x
∈
m
,
Φ
k
x
)
.
(
∀
k
x
,
Affine
(
Φ
k
x
))
→
Affine
([
∗
map
]
k
↦
x
∈
m
,
Φ
k
x
)
.
Proof
.
Proof
.
intros
.
apply
big_sepL_affine
=>
_
[??];
apply
_
.
Qed
.
intros
.
apply
big_sepL_affine
=>
_
[??];
apply
_
.
Qed
.
End
gmap
.
End
gmap
.
(** ** Big ops over finite sets *)
(** ** Big ops over finite sets *)
...
@@ -591,6 +597,8 @@ Section gset.
...
@@ -591,6 +597,8 @@ Section gset.
(
∀
x
,
Persistent
(
Φ
x
))
→
Persistent
([
∗
set
]
x
∈
X
,
Φ
x
)
.
(
∀
x
,
Persistent
(
Φ
x
))
→
Persistent
([
∗
set
]
x
∈
X
,
Φ
x
)
.
Proof
.
rewrite
/
big_opS
.
apply
_
.
Qed
.
Proof
.
rewrite
/
big_opS
.
apply
_
.
Qed
.
Global
Instance
big_sepS_empty_affine
Φ
:
Affine
([
∗
set
]
x
∈
∅
,
Φ
x
)
.
Proof
.
rewrite
/
big_opS
elements_empty
.
apply
_
.
Qed
.
Global
Instance
big_sepS_affine
Φ
X
:
Global
Instance
big_sepS_affine
Φ
X
:
(
∀
x
,
Affine
(
Φ
x
))
→
Affine
([
∗
set
]
x
∈
X
,
Φ
x
)
.
(
∀
x
,
Affine
(
Φ
x
))
→
Affine
([
∗
set
]
x
∈
X
,
Φ
x
)
.
Proof
.
rewrite
/
big_opS
.
apply
_
.
Qed
.
Proof
.
rewrite
/
big_opS
.
apply
_
.
Qed
.
...
@@ -669,6 +677,8 @@ Section gmultiset.
...
@@ -669,6 +677,8 @@ Section gmultiset.
(
∀
x
,
Persistent
(
Φ
x
))
→
Persistent
([
∗
mset
]
x
∈
X
,
Φ
x
)
.
(
∀
x
,
Persistent
(
Φ
x
))
→
Persistent
([
∗
mset
]
x
∈
X
,
Φ
x
)
.
Proof
.
rewrite
/
big_opMS
.
apply
_
.
Qed
.
Proof
.
rewrite
/
big_opMS
.
apply
_
.
Qed
.
Global
Instance
big_sepMS_empty_affine
Φ
:
Affine
([
∗
mset
]
x
∈
∅
,
Φ
x
)
.
Proof
.
rewrite
/
big_opMS
gmultiset_elements_empty
.
apply
_
.
Qed
.
Global
Instance
big_sepMS_affine
Φ
X
:
Global
Instance
big_sepMS_affine
Φ
X
:
(
∀
x
,
Affine
(
Φ
x
))
→
Affine
([
∗
mset
]
x
∈
X
,
Φ
x
)
.
(
∀
x
,
Affine
(
Φ
x
))
→
Affine
([
∗
mset
]
x
∈
X
,
Φ
x
)
.
Proof
.
rewrite
/
big_opMS
.
apply
_
.
Qed
.
Proof
.
rewrite
/
big_opMS
.
apply
_
.
Qed
.
...
...
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