Skip to content

Instantly share code, notes, and snippets.

@mukeshtiwari
Created August 18, 2016 07:03
Show Gist options
  • Save mukeshtiwari/ff8311aca9c7407abde8fdab86e72d57 to your computer and use it in GitHub Desktop.
Save mukeshtiwari/ff8311aca9c7407abde8fdab86e72d57 to your computer and use it in GitHub Desktop.
Finite type no duplicate element
Theorem noduplicate : forall (l1 l2 : list bool), NoDup l1 -> NoDup l2 ->
(forall a : bool, In a l1) -> length l2 <= length l1.
@mukeshtiwari
Copy link
Author

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