Set Implicit Arguments.
Fixpoint nats (b: nat) (w: nat) {struct w}: list nat :=
match w with
| 0 => nil
| S w' => b :: nats (S b) w'
end.
Proof with auto.
induction w in b |- * ...
simpl.
intros.
rewrite IHw...
Qed.
Proof with auto.
induction w in x, b |- *; intros H H0.
exfalso.
rewrite plus_0_r in H0.
apply (lt_not_le x b H0)...
simpl.
destruct (le_lt_eq_dec _ _ H); [right | left]...
apply IHw...
omega.
Qed.
Proof with auto.
induction w in x, b |- *; simpl; intros.
inversion H.
inversion H.
omega.
destruct (IHw x (S b) H0).
omega.
Qed.
Proof with auto.
induction w in b |- *; simpl; intros.
apply NoDup_nil.
apply NoDup_cons...
intro.
destruct (In_nats_inv _ _ _ H).
apply (le_Sn_n _ H0).
Qed.

Lemma nats_plus y x z: nats x (y + z) = nats x y ++ nats (y + x) z.