Skip to content
Snippets Groups Projects
Commit 2d27f42b authored by Robbert Krebbers's avatar Robbert Krebbers
Browse files

More TCForall lemmas.

parent 3cb126ca
No related branches found
No related tags found
No related merge requests found
...@@ -3489,6 +3489,13 @@ Proof. ...@@ -3489,6 +3489,13 @@ Proof.
inversion_clear 1. rewrite reverse_cons, <-(assoc_L (++)). by apply IH. inversion_clear 1. rewrite reverse_cons, <-(assoc_L (++)). by apply IH.
Qed. Qed.
Lemma TCForall_Forall {A} (P : A Prop) xs : TCForall P xs Forall P xs.
Proof. split; induction 1; constructor; auto. Qed.
Instance TCForall_app {A} (P : A Prop) xs ys :
TCForall P xs TCForall P ys TCForall P (xs ++ ys).
Proof. rewrite !TCForall_Forall. apply Forall_app_2. Qed.
(** * Relection over lists *) (** * Relection over lists *)
(** We define a simple data structure [rlist] to capture a syntactic (** We define a simple data structure [rlist] to capture a syntactic
representation of lists consisting of constants, applications and the nil list. representation of lists consisting of constants, applications and the nil list.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment