Skip to content

Instantly share code, notes, and snippets.

@yoshihiro503
Created April 24, 2014 10:38
Show Gist options
  • Save yoshihiro503/11249864 to your computer and use it in GitHub Desktop.
Save yoshihiro503/11249864 to your computer and use it in GitHub Desktop.
Theorem map_length: forall A B:Type f xs,
length (map f xs) = length xs.
Proof.
intros A B f xs. induction xs.
reflexivity.
simpl. rewrite IHxs. reflexivity.
Qed.
Theorem map_length: forall A B:Type f xs, length (map f xs) = length xs.
Proof.
intros A B f xs. induction xs.
reflexivity.
simpl. rewrite IHxs. reflexivity.
Qed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment