Library Chinese.Nat_complements
Require Import Arith.
Require Import Compare_dec.
Lemma eq_gt_O_dec : ∀ n : nat, {n = 0} + {n > 0}.
simple destruct n; auto with arith.
Qed.
Lemma mult_commut : ∀ n m : nat, n × m = m × n.
intros; elim n; simpl in |- ×.
auto with arith.
intros; rewrite H; elim mult_n_Sm; auto with arith.
Qed.
Lemma mult_neutr : ∀ n : nat, 1 × n = n.
unfold mult in |- *; auto with arith.
Qed.
Lemma technical_lemma :
∀ y m : nat, S (y × m + (y + m) + m) = S y × m + (S y + m).
intros; simpl in |- *; elim (plus_comm m (y × m + (y + m))).
rewrite (plus_assoc m (y × m) (y + m)); auto with arith.
Qed.
Lemma lt_minus2 : ∀ n m : nat, n < m → 0 < m - n.
simple induction 1; intros; elim minus_Sn_m; auto with arith.
Qed.
Lemma minus_n_Sm : ∀ n m : nat, m < n → pred (n - m) = n - S m.
simple induction 1; intros; elim minus_Sn_m; auto with arith.
Qed.
Lemma lt_succ : ∀ n m : nat, n ≤ S m → {n ≤ m} + {n = S m}.
intros; elim (le_lt_eq_dec n (S m) H); auto with arith.
Qed.
