Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Marianna Rapoport
iris-coq
Commits
1bbe5d15
Commit
1bbe5d15
authored
Sep 30, 2016
by
Robbert Krebbers
Browse files
Unfolding lemmas for big ops over lists with Z indices.
parent
834c66e0
Changes
1
Hide whitespace changes
Inline
Side-by-side
algebra/cmra_big_op.v
View file @
1bbe5d15
...
...
@@ -160,6 +160,13 @@ Section list.
(
big_opL
(
M
:
=
M
)
l
).
Proof
.
intros
f
g
Hf
.
apply
big_opL_forall
;
apply
_
||
intros
;
apply
Hf
.
Qed
.
Lemma
big_opL_consZ_l
(
f
:
Z
→
A
→
M
)
x
l
:
([
⋅
list
]
k
↦
y
∈
x
::
l
,
f
k
y
)
=
f
0
x
⋅
[
⋅
list
]
k
↦
y
∈
l
,
f
(
1
+
k
)%
Z
y
.
Proof
.
rewrite
big_opL_cons
.
auto
using
big_opL_ext
with
f_equal
lia
.
Qed
.
Lemma
big_opL_consZ_r
(
f
:
Z
→
A
→
M
)
x
l
:
([
⋅
list
]
k
↦
y
∈
x
::
l
,
f
k
y
)
=
f
0
x
⋅
[
⋅
list
]
k
↦
y
∈
l
,
f
(
k
+
1
)%
Z
y
.
Proof
.
rewrite
big_opL_cons
.
auto
using
big_opL_ext
with
f_equal
lia
.
Qed
.
Lemma
big_opL_lookup
f
l
i
x
:
l
!!
i
=
Some
x
→
f
i
x
≼
[
⋅
list
]
k
↦
y
∈
l
,
f
k
y
.
Proof
.
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment