(* This code is copyrighted by its authors; it is distributed under  *)
(* the terms of the LGPL license (see LICENSE and description files) *)
(* Contribution to the Coq Library   V6.3 (July 1999)                    *)
(****************************************************************************)
(*                                                                          *)
(*                                                                          *)
(*                   Solange Coupet-Grimal & Line Jakubiec                  *)
(*                                                                          *)
(*                                                                          *)
(*              Laboratoire d'Informatique de Marseille                     *)
(*               CMI-Technopole de Chateau-Gombert                          *)
(*                   39, Rue F. Joliot Curie                                *)
(*                   13453 MARSEILLE Cedex 13                               *)
(*           e-mail:{Solange.Coupet,Line.Jakubiec}@lim.univ-mrs.fr          *)
(*                                                                          *)
(*                                                                          *)
(*                                Coq V5.10                                 *)
(*                              May 30th 1996                               *)
(*                                                                          *)
(****************************************************************************)
(*                               Lib_Plus.v                                 *)
(****************************************************************************)
Require Export Lib_Minus.
intros n m; elim (plus_comm m n); apply minus_plus.
Qed.
Hint Resolve plus_opp.
intro; elim plus_comm; auto with arith.
Qed.
Hint Resolve S_plus.
simple induction n; simple induction m; auto with arith.
intros.
simpl in |- *; apply lt_n_S.
auto with arith.
Qed.
Hint Resolve lt_plus.
simple induction n; auto with arith.
Qed.
Hint Resolve le_minus_plus.
intros.
elim H.
elim minus_n_n; simpl in |- *; elim le_plus_minus; auto with arith.
intros.
elim minus_Sn_m; simpl in |- *.
apply eq_S; auto with arith.
assumption.
Qed.
Hint Resolve le_le_assoc_plus_minus.

Lemma le_lt_plus : forall n m p q : nat, n <= p -> m < q -> n + m < p + q.