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
2b96b14d
Commit
2b96b14d
authored
9 years ago
by
Robbert Krebbers
Browse files
Options
Downloads
Patches
Plain Diff
Make use of COFE on lists in big ops.
parent
0781afe2
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
algebra/cmra_big_op.v
+3
-2
3 additions, 2 deletions
algebra/cmra_big_op.v
algebra/upred_big_op.v
+3
-5
3 additions, 5 deletions
algebra/upred_big_op.v
with
6 additions
and
7 deletions
algebra/cmra_big_op.v
+
3
−
2
View file @
2b96b14d
From
iris
.
algebra
Require
Export
cmra
.
From
iris
.
algebra
Require
Export
cmra
list
.
From
iris
.
prelude
Require
Import
gmap
.
Fixpoint
big_op
{
A
:
cmraT
}
`{
Empty
A
}
(
xs
:
list
A
)
:
A
:=
...
...
@@ -25,8 +25,9 @@ Proof.
-
by
rewrite
!
assoc
(
comm
_
x
)
.
-
by
trans
(
big_op
xs2
)
.
Qed
.
Global
Instance
big_op_
proper
:
Proper
(
(
≡
)
==>
(
≡
)
)
big_op
.
Global
Instance
big_op_
ne
n
:
Proper
(
dist
n
==>
dist
n
)
big_op
.
Proof
.
by
induction
1
;
simpl
;
repeat
apply
(_
:
Proper
(_
==>
_
==>
_)
op
)
.
Qed
.
Global
Instance
big_op_proper
:
Proper
((
≡
)
==>
(
≡
))
big_op
:=
ne_proper
_
.
Lemma
big_op_app
xs
ys
:
big_op
(
xs
++
ys
)
≡
big_op
xs
⋅
big_op
ys
.
Proof
.
induction
xs
as
[|
x
xs
IH
];
simpl
;
first
by
rewrite
?left_id
.
...
...
This diff is collapsed.
Click to expand it.
algebra/upred_big_op.v
+
3
−
5
View file @
2b96b14d
From
iris
.
algebra
Require
Export
upred
.
From
iris
.
algebra
Require
Export
upred
list
.
From
iris
.
prelude
Require
Import
gmap
fin_collections
.
Import
uPred
.
...
...
@@ -44,11 +44,9 @@ Proof. by induction 1 as [|P Q Ps Qs HPQ ? IH]; rewrite /= ?HPQ ?IH. Qed.
Global
Instance
big_sep_proper
:
Proper
((
≡
)
==>
(
⊣⊢
))
(
@
uPred_big_sep
M
)
.
Proof
.
by
induction
1
as
[|
P
Q
Ps
Qs
HPQ
?
IH
];
rewrite
/=
?HPQ
?IH
.
Qed
.
Global
Instance
big_and_ne
n
:
Proper
(
Forall2
(
dist
n
)
==>
dist
n
)
(
@
uPred_big_and
M
)
.
Global
Instance
big_and_ne
n
:
Proper
(
dist
n
==>
dist
n
)
(
@
uPred_big_and
M
)
.
Proof
.
by
induction
1
as
[|
P
Q
Ps
Qs
HPQ
?
IH
];
rewrite
/=
?HPQ
?IH
.
Qed
.
Global
Instance
big_sep_ne
n
:
Proper
(
Forall2
(
dist
n
)
==>
dist
n
)
(
@
uPred_big_sep
M
)
.
Global
Instance
big_sep_ne
n
:
Proper
(
dist
n
==>
dist
n
)
(
@
uPred_big_sep
M
)
.
Proof
.
by
induction
1
as
[|
P
Q
Ps
Qs
HPQ
?
IH
];
rewrite
/=
?HPQ
?IH
.
Qed
.
Global
Instance
big_and_mono'
:
Proper
(
Forall2
(
⊢
)
==>
(
⊢
))
(
@
uPred_big_and
M
)
.
...
...
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