Created
August 18, 2016 07:03
-
-
Save mukeshtiwari/ff8311aca9c7407abde8fdab86e72d57 to your computer and use it in GitHub Desktop.
Finite type no duplicate element
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Theorem noduplicate : forall (l1 l2 : list bool), NoDup l1 -> NoDup l2 -> | |
(forall a : bool, In a l1) -> length l2 <= length l1. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Finally proved :)
Proof.
intros l1 l2 H1 H2 H3.
apply NoDup_incl_length. assumption.
unfold incl. intros. specialize (H3 a).
assumption.
Qed.