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
Snippets
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
Michael Sammler
iris-coq
Commits
42b08240
Commit
42b08240
authored
8 years ago
by
Robbert Krebbers
Browse files
Options
Downloads
Patches
Plain Diff
More big op properties.
parent
b92e8df1
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
algebra/upred_big_op.v
+26
-4
26 additions, 4 deletions
algebra/upred_big_op.v
with
26 additions
and
4 deletions
algebra/upred_big_op.v
+
26
−
4
View file @
42b08240
...
@@ -244,6 +244,12 @@ Section list.
...
@@ -244,6 +244,12 @@ Section list.
by
rewrite
sep_elim_r
sep_elim_l
.
by
rewrite
sep_elim_r
sep_elim_l
.
Qed
.
Qed
.
Lemma
big_sepL_elem_of
(
Φ
:
A
→
uPred
M
)
l
x
:
x
∈
l
→
([
★
list
]
y
∈
l
,
Φ
y
)
⊢
Φ
x
.
Proof
.
intros
[
i
?]
%
elem_of_list_lookup
;
eauto
using
(
big_sepL_lookup
(
λ
_,
Φ
))
.
Qed
.
Lemma
big_sepL_fmap
{
B
}
(
f
:
A
→
B
)
(
Φ
:
nat
→
B
→
uPred
M
)
l
:
Lemma
big_sepL_fmap
{
B
}
(
f
:
A
→
B
)
(
Φ
:
nat
→
B
→
uPred
M
)
l
:
([
★
list
]
k
↦
y
∈
f
<$>
l
,
Φ
k
y
)
⊣⊢
([
★
list
]
k
↦
y
∈
l
,
Φ
k
(
f
y
))
.
([
★
list
]
k
↦
y
∈
f
<$>
l
,
Φ
k
y
)
⊣⊢
([
★
list
]
k
↦
y
∈
l
,
Φ
k
(
f
y
))
.
Proof
.
by
rewrite
/
uPred_big_sepL
imap_fmap
.
Qed
.
Proof
.
by
rewrite
/
uPred_big_sepL
imap_fmap
.
Qed
.
...
@@ -302,12 +308,18 @@ Section list.
...
@@ -302,12 +308,18 @@ Section list.
by
rewrite
-
always_wand_impl
always_elim
wand_elim_l
.
by
rewrite
-
always_wand_impl
always_elim
wand_elim_l
.
Qed
.
Qed
.
Global
Instance
big_sepL_persistent
Φ
m
:
Global
Instance
big_sepL_nil_persistent
Φ
:
(
∀
k
x
,
PersistentP
(
Φ
k
x
))
→
PersistentP
([
★
list
]
k
↦
x
∈
m
,
Φ
k
x
)
.
PersistentP
([
★
list
]
k
↦
x
∈
[],
Φ
k
x
)
.
Proof
.
rewrite
/
uPred_big_sepL
.
apply
_
.
Qed
.
Global
Instance
big_sepL_persistent
Φ
l
:
(
∀
k
x
,
PersistentP
(
Φ
k
x
))
→
PersistentP
([
★
list
]
k
↦
x
∈
l
,
Φ
k
x
)
.
Proof
.
rewrite
/
uPred_big_sepL
.
apply
_
.
Qed
.
Proof
.
rewrite
/
uPred_big_sepL
.
apply
_
.
Qed
.
Global
Instance
big_sepL_timeless
Φ
m
:
Global
Instance
big_sepL_nil_timeless
Φ
:
(
∀
k
x
,
TimelessP
(
Φ
k
x
))
→
TimelessP
([
★
list
]
k
↦
x
∈
m
,
Φ
k
x
)
.
TimelessP
([
★
list
]
k
↦
x
∈
[],
Φ
k
x
)
.
Proof
.
rewrite
/
uPred_big_sepL
.
apply
_
.
Qed
.
Global
Instance
big_sepL_timeless
Φ
l
:
(
∀
k
x
,
TimelessP
(
Φ
k
x
))
→
TimelessP
([
★
list
]
k
↦
x
∈
l
,
Φ
k
x
)
.
Proof
.
rewrite
/
uPred_big_sepL
.
apply
_
.
Qed
.
Proof
.
rewrite
/
uPred_big_sepL
.
apply
_
.
Qed
.
End
list
.
End
list
.
...
@@ -462,10 +474,16 @@ Section gmap.
...
@@ -462,10 +474,16 @@ Section gmap.
by
rewrite
-
always_wand_impl
always_elim
wand_elim_l
.
by
rewrite
-
always_wand_impl
always_elim
wand_elim_l
.
Qed
.
Qed
.
Global
Instance
big_sepM_empty_persistent
Φ
:
PersistentP
([
★
map
]
k
↦
x
∈
∅
,
Φ
k
x
)
.
Proof
.
rewrite
/
uPred_big_sepM
map_to_list_empty
.
apply
_
.
Qed
.
Global
Instance
big_sepM_persistent
Φ
m
:
Global
Instance
big_sepM_persistent
Φ
m
:
(
∀
k
x
,
PersistentP
(
Φ
k
x
))
→
PersistentP
([
★
map
]
k
↦
x
∈
m
,
Φ
k
x
)
.
(
∀
k
x
,
PersistentP
(
Φ
k
x
))
→
PersistentP
([
★
map
]
k
↦
x
∈
m
,
Φ
k
x
)
.
Proof
.
intros
.
apply
big_sep_persistent
,
fmap_persistent
=>
-
[??]
/=
;
auto
.
Qed
.
Proof
.
intros
.
apply
big_sep_persistent
,
fmap_persistent
=>
-
[??]
/=
;
auto
.
Qed
.
Global
Instance
big_sepM_nil_timeless
Φ
:
TimelessP
([
★
map
]
k
↦
x
∈
∅
,
Φ
k
x
)
.
Proof
.
rewrite
/
uPred_big_sepM
map_to_list_empty
.
apply
_
.
Qed
.
Global
Instance
big_sepM_timeless
Φ
m
:
Global
Instance
big_sepM_timeless
Φ
m
:
(
∀
k
x
,
TimelessP
(
Φ
k
x
))
→
TimelessP
([
★
map
]
k
↦
x
∈
m
,
Φ
k
x
)
.
(
∀
k
x
,
TimelessP
(
Φ
k
x
))
→
TimelessP
([
★
map
]
k
↦
x
∈
m
,
Φ
k
x
)
.
Proof
.
intro
.
apply
big_sep_timeless
,
fmap_timeless
=>
-
[??]
/=
;
auto
.
Qed
.
Proof
.
intro
.
apply
big_sep_timeless
,
fmap_timeless
=>
-
[??]
/=
;
auto
.
Qed
.
...
@@ -590,10 +608,14 @@ Section gset.
...
@@ -590,10 +608,14 @@ Section gset.
by
rewrite
-
always_wand_impl
always_elim
wand_elim_l
.
by
rewrite
-
always_wand_impl
always_elim
wand_elim_l
.
Qed
.
Qed
.
Global
Instance
big_sepS_empty_persistent
Φ
:
PersistentP
([
★
set
]
x
∈
∅
,
Φ
x
)
.
Proof
.
rewrite
/
uPred_big_sepS
elements_empty
.
apply
_
.
Qed
.
Global
Instance
big_sepS_persistent
Φ
X
:
Global
Instance
big_sepS_persistent
Φ
X
:
(
∀
x
,
PersistentP
(
Φ
x
))
→
PersistentP
([
★
set
]
x
∈
X
,
Φ
x
)
.
(
∀
x
,
PersistentP
(
Φ
x
))
→
PersistentP
([
★
set
]
x
∈
X
,
Φ
x
)
.
Proof
.
rewrite
/
uPred_big_sepS
.
apply
_
.
Qed
.
Proof
.
rewrite
/
uPred_big_sepS
.
apply
_
.
Qed
.
Global
Instance
big_sepS_nil_timeless
Φ
:
TimelessP
([
★
set
]
x
∈
∅
,
Φ
x
)
.
Proof
.
rewrite
/
uPred_big_sepS
elements_empty
.
apply
_
.
Qed
.
Global
Instance
big_sepS_timeless
Φ
X
:
Global
Instance
big_sepS_timeless
Φ
X
:
(
∀
x
,
TimelessP
(
Φ
x
))
→
TimelessP
([
★
set
]
x
∈
X
,
Φ
x
)
.
(
∀
x
,
TimelessP
(
Φ
x
))
→
TimelessP
([
★
set
]
x
∈
X
,
Φ
x
)
.
Proof
.
rewrite
/
uPred_big_sepS
.
apply
_
.
Qed
.
Proof
.
rewrite
/
uPred_big_sepS
.
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