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
Tej Chajed
stdpp
Commits
1ed14abe
Commit
1ed14abe
authored
Jan 16, 2018
by
Robbert Krebbers
Browse files
Lemmas for constructing a `Forall2` from a `Forall`.
parent
a7f54bc4
Changes
1
Hide whitespace changes
Inline
Side-by-side
theories/list.v
View file @
1ed14abe
...
...
@@ -2409,6 +2409,13 @@ Section Forall2.
intros
H
.
revert
k2
.
induction
H
;
inversion_clear
1
;
intros
;
f_equal
;
eauto
.
Qed
.
Lemma
Forall_Forall2_l
l
k
:
length
l
=
length
k
→
Forall
(
λ
x
,
∀
y
,
P
x
y
)
l
→
Forall2
P
l
k
.
Proof
.
rewrite
<-
Forall2_same_length
.
induction
1
;
inversion
1
;
auto
.
Qed
.
Lemma
Forall_Forall2_r
l
k
:
length
l
=
length
k
→
Forall
(
λ
y
,
∀
x
,
P
x
y
)
k
→
Forall2
P
l
k
.
Proof
.
rewrite
<-
Forall2_same_length
.
induction
1
;
inversion
1
;
auto
.
Qed
.
Lemma
Forall2_Forall_l
(
Q
:
A
→
Prop
)
l
k
:
Forall2
P
l
k
→
Forall
(
λ
y
,
∀
x
,
P
x
y
→
Q
x
)
k
→
Forall
Q
l
.
Proof
.
induction
1
;
inversion_clear
1
;
eauto
.
Qed
.
...
...
Write
Preview
Markdown
is supported
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