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
Iris
stdpp
Commits
1657d8d0
Commit
1657d8d0
authored
Apr 30, 2019
by
Robbert Krebbers
Browse files
Add `Forall_reverse`.
parent
5727c9aa
Pipeline
#16392
passed with stage
in 8 minutes and 7 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
theories/list.v
View file @
1657d8d0
...
...
@@ -2317,6 +2317,11 @@ Section Forall_Exists.
Proof
.
rewrite
Forall_lookup
.
eauto
.
Qed
.
Lemma
Forall_lookup_2
l
:
(
∀
i
x
,
l
!!
i
=
Some
x
→
P
x
)
→
Forall
P
l
.
Proof
.
by
rewrite
Forall_lookup
.
Qed
.
Lemma
Forall_reverse
l
:
Forall
P
(
reverse
l
)
↔
Forall
P
l
.
Proof
.
induction
l
as
[|
x
l
IH
]
;
simpl
;
[
done
|].
rewrite
reverse_cons
,
Forall_cons
,
Forall_app
,
Forall_singleton
.
naive_solver
.
Qed
.
Lemma
Forall_tail
l
:
Forall
P
l
→
Forall
P
(
tail
l
).
Proof
.
destruct
1
;
simpl
;
auto
.
Qed
.
Lemma
Forall_nth
d
l
:
Forall
P
l
↔
∀
i
,
i
<
length
l
→
P
(
nth
i
l
d
).
...
...
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