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. |
Finally proved :)
(forall a : bool, In a l1) -> length l2 <= length l1.
Proof.
intros l1 l2 H1 H2 H3.
apply NoDup_incl_length. assumption.
unfold incl. intros. specialize (H3 a).
assumption.
Qed.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Proof.
intros l1 l2 H1 H2 H3.
apply NoDup_incl_length. assumption.
H1 : NoDup l1
H2 : NoDup l2
H3 : forall a : bool, In a l1
incl l2 l1