Update
This commit is contained in:
parent
dedf79490b
commit
57df938818
@ -508,8 +508,10 @@ Proof.
|
||||
Qed.
|
||||
|
||||
Theorem subsequence_reverse {X: Type} :
|
||||
forall (u v: list X), subsequence u v -> subsequence (rev u) (rev v).
|
||||
forall (u v: list X), subsequence u v <-> subsequence (rev u) (rev v).
|
||||
Proof.
|
||||
assert (MAIN: forall (u v: list X),
|
||||
subsequence u v -> subsequence (rev u) (rev v)).
|
||||
intros u v. intro H.
|
||||
apply subsequence_eq_def_3. apply subsequence_eq_def_2.
|
||||
apply subsequence_eq_def_1 in H. destruct H. destruct H.
|
||||
@ -538,6 +540,9 @@ Proof.
|
||||
simpl. destruct (v0 a). simpl. rewrite IHw. reflexivity.
|
||||
rewrite IHw. symmetry. apply app_nil_r. rewrite LEMMA3.
|
||||
reflexivity. assumption.
|
||||
split. apply MAIN. intro H. apply MAIN in H.
|
||||
rewrite rev_involutive in H. rewrite rev_involutive in H.
|
||||
assumption.
|
||||
Qed.
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user