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
0100a7b1
Commit
0100a7b1
authored
7 years ago
by
Robbert Krebbers
Browse files
Options
Downloads
Patches
Plain Diff
Get rid of TimelessL and PersistentL and use TCForall instead.
parent
391e52d7
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/algebra/list.v
+0
-60
0 additions, 60 deletions
theories/algebra/list.v
theories/base_logic/big_op.v
+4
-2
4 additions, 2 deletions
theories/base_logic/big_op.v
with
4 additions
and
62 deletions
theories/algebra/list.v
+
0
−
60
View file @
0100a7b1
...
@@ -468,63 +468,3 @@ Instance listURF_contractive F :
...
@@ -468,63 +468,3 @@ Instance listURF_contractive F :
Proof
.
Proof
.
by
intros
?
A1
A2
B1
B2
n
f
g
Hfg
;
apply
listC_map_ne
,
urFunctor_contractive
.
by
intros
?
A1
A2
B1
B2
n
f
g
Hfg
;
apply
listC_map_ne
,
urFunctor_contractive
.
Qed
.
Qed
.
(** * Persistence and timelessness of lists of uPreds *)
Class
PersistentL
{
M
}
(
Ps
:
list
(
uPred
M
))
:=
persistentL
:
Forall
PersistentP
Ps
.
Arguments
persistentL
{_}
_
{_}
.
Hint
Mode
PersistentL
+
!
:
typeclass_instances
.
Class
TimelessL
{
M
}
(
Ps
:
list
(
uPred
M
))
:=
timelessL
:
Forall
TimelessP
Ps
.
Arguments
timelessL
{_}
_
{_}
.
Hint
Mode
TimelessP
+
!
:
typeclass_instances
.
Section
persistent_timeless
.
Context
{
M
:
ucmraT
}
.
Implicit
Types
Ps
Qs
:
list
(
uPred
M
)
.
Implicit
Types
A
:
Type
.
Global
Instance
nil_persistentL
:
PersistentL
(
@
nil
(
uPred
M
))
.
Proof
.
constructor
.
Qed
.
Global
Instance
cons_persistentL
P
Ps
:
PersistentP
P
→
PersistentL
Ps
→
PersistentL
(
P
::
Ps
)
.
Proof
.
by
constructor
.
Qed
.
Global
Instance
app_persistentL
Ps
Ps'
:
PersistentL
Ps
→
PersistentL
Ps'
→
PersistentL
(
Ps
++
Ps'
)
.
Proof
.
apply
Forall_app_2
.
Qed
.
Global
Instance
fmap_persistentL
{
A
}
(
f
:
A
→
uPred
M
)
xs
:
(
∀
x
,
PersistentP
(
f
x
))
→
PersistentL
(
f
<$>
xs
)
.
Proof
.
intros
.
apply
Forall_fmap
,
Forall_forall
;
auto
.
Qed
.
Global
Instance
zip_with_persistentL
{
A
B
}
(
f
:
A
→
B
→
uPred
M
)
xs
ys
:
(
∀
x
y
,
PersistentP
(
f
x
y
))
→
PersistentL
(
zip_with
f
xs
ys
)
.
Proof
.
unfold
PersistentL
=>
?;
revert
ys
;
induction
xs
=>
-
[|??];
constructor
;
auto
.
Qed
.
Global
Instance
imap_persistentL
{
A
}
(
f
:
nat
→
A
→
uPred
M
)
xs
:
(
∀
i
x
,
PersistentP
(
f
i
x
))
→
PersistentL
(
imap
f
xs
)
.
Proof
.
revert
f
.
induction
xs
;
simpl
;
constructor
;
naive_solver
.
Qed
.
(** ** Timelessness *)
Global
Instance
nil_timelessL
:
TimelessL
(
@
nil
(
uPred
M
))
.
Proof
.
constructor
.
Qed
.
Global
Instance
cons_timelessL
P
Ps
:
TimelessP
P
→
TimelessL
Ps
→
TimelessL
(
P
::
Ps
)
.
Proof
.
by
constructor
.
Qed
.
Global
Instance
app_timelessL
Ps
Ps'
:
TimelessL
Ps
→
TimelessL
Ps'
→
TimelessL
(
Ps
++
Ps'
)
.
Proof
.
apply
Forall_app_2
.
Qed
.
Global
Instance
fmap_timelessL
{
A
}
(
f
:
A
→
uPred
M
)
xs
:
(
∀
x
,
TimelessP
(
f
x
))
→
TimelessL
(
f
<$>
xs
)
.
Proof
.
intros
.
apply
Forall_fmap
,
Forall_forall
;
auto
.
Qed
.
Global
Instance
zip_with_timelessL
{
A
B
}
(
f
:
A
→
B
→
uPred
M
)
xs
ys
:
(
∀
x
y
,
TimelessP
(
f
x
y
))
→
TimelessL
(
zip_with
f
xs
ys
)
.
Proof
.
unfold
TimelessL
=>
?;
revert
ys
;
induction
xs
=>
-
[|??];
constructor
;
auto
.
Qed
.
Global
Instance
imap_timelessL
{
A
}
(
f
:
nat
→
A
→
uPred
M
)
xs
:
(
∀
i
x
,
TimelessP
(
f
i
x
))
→
TimelessL
(
imap
f
xs
)
.
Proof
.
revert
f
.
induction
xs
;
simpl
;
constructor
;
naive_solver
.
Qed
.
End
persistent_timeless
.
This diff is collapsed.
Click to expand it.
theories/base_logic/big_op.v
+
4
−
2
View file @
0100a7b1
...
@@ -155,7 +155,8 @@ Section list.
...
@@ -155,7 +155,8 @@ Section list.
Global
Instance
big_sepL_persistent
Φ
l
:
Global
Instance
big_sepL_persistent
Φ
l
:
(
∀
k
x
,
PersistentP
(
Φ
k
x
))
→
PersistentP
([
∗
list
]
k
↦
x
∈
l
,
Φ
k
x
)
.
(
∀
k
x
,
PersistentP
(
Φ
k
x
))
→
PersistentP
([
∗
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_persistent_id
Ps
:
PersistentL
Ps
→
PersistentP
([
∗
]
Ps
)
.
Global
Instance
big_sepL_persistent_id
Ps
:
TCForall
PersistentP
Ps
→
PersistentP
([
∗
]
Ps
)
.
Proof
.
induction
1
;
simpl
;
apply
_
.
Qed
.
Proof
.
induction
1
;
simpl
;
apply
_
.
Qed
.
Global
Instance
big_sepL_nil_timeless
Φ
:
Global
Instance
big_sepL_nil_timeless
Φ
:
...
@@ -164,7 +165,8 @@ Section list.
...
@@ -164,7 +165,8 @@ Section list.
Global
Instance
big_sepL_timeless
Φ
l
:
Global
Instance
big_sepL_timeless
Φ
l
:
(
∀
k
x
,
TimelessP
(
Φ
k
x
))
→
TimelessP
([
∗
list
]
k
↦
x
∈
l
,
Φ
k
x
)
.
(
∀
k
x
,
TimelessP
(
Φ
k
x
))
→
TimelessP
([
∗
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_timeless_id
Ps
:
TimelessL
Ps
→
TimelessP
([
∗
]
Ps
)
.
Global
Instance
big_sepL_timeless_id
Ps
:
TCForall
TimelessP
Ps
→
TimelessP
([
∗
]
Ps
)
.
Proof
.
induction
1
;
simpl
;
apply
_
.
Qed
.
Proof
.
induction
1
;
simpl
;
apply
_
.
Qed
.
End
list
.
End
list
.
...
...
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