Skip to content
GitLab
Menu
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
c3979536
Commit
c3979536
authored
Dec 05, 2016
by
Jacques-Henri Jourdan
Browse files
Accessor for big op on lists.
parent
c65aad41
Changes
1
Hide whitespace changes
Inline
Side-by-side
base_logic/big_op.v
View file @
c3979536
...
...
@@ -229,6 +229,16 @@ Section list.
(
big_opL
(
M
:
=
uPredUR
M
)
l
).
Proof
.
intros
f
g
Hf
.
apply
big_opL_forall
;
apply
_
||
intros
;
apply
Hf
.
Qed
.
Lemma
big_sepL_lookup_acc
Φ
l
i
x
:
l
!!
i
=
Some
x
→
([
∗
list
]
k
↦
y
∈
l
,
Φ
k
y
)
⊢
Φ
i
x
∗
(
Φ
i
x
-
∗
([
∗
list
]
k
↦
y
∈
l
,
Φ
k
y
)).
Proof
.
intros
Hli
.
apply
big_sep_elem_of_acc
.
revert
Φ
l
Hli
.
induction
i
as
[|?
IH
]=>
Φ
[]
//=
y
l
;
rewrite
imap_cons
.
-
intros
[=->].
constructor
.
-
intros
?.
constructor
.
by
apply
(
IH
(
_
∘
S
)).
Qed
.
Lemma
big_sepL_lookup
Φ
l
i
x
:
l
!!
i
=
Some
x
→
([
∗
list
]
k
↦
y
∈
l
,
Φ
k
y
)
⊢
Φ
i
x
.
Proof
.
intros
.
apply
uPred_included
.
by
apply
:
big_opL_lookup
.
Qed
.
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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