Section Uniq.
Variable A: Type.
Inductive uniq: list A -> Prop :=
uniq_nil: uniq nil
| uniq_cons: forall a l, ~ In a l -> uniq l -> uniq (a::l).
End Uniq.
destruct l as [|a l]; simpl; auto.
right; intros HH; discriminate.
Qed.
Arguments uniq[A].
(* Georges' trick for easy case analysis *)
Inductive eq_Spec (A: Type) (x y: A): bool -> Prop :=
|eq_Spect:  x = y -> eq_Spec A x y true
|eq_Specf: x <> y -> eq_Spec A x y false.
Arguments eq_Spec[A].
(** Binomial Coefficient defined using Pascal's triangle *)
Fixpoint bin (a b : nat) {struct a} : nat :=
match a, b with
_, O => 1
| O, S b' => 0
| S a', S b' => bin a' (S b') + bin a' b'
end.
intros n; induction n; auto.
Qed.
intros; induction n as [|n IH]; simpl; auto.
rewrite bin_0, IH, Plus.plus_comm; auto.
Qed.

Lemma bin_more: forall (n m : nat), n < m ->  bin n m = 0.