1 (**************************************************************************)
4 (* ||A|| A project by Andrea Asperti *)
6 (* ||I|| Developers: *)
7 (* ||T|| The HELM team. *)
8 (* ||A|| http://helm.cs.unibo.it *)
10 (* \ / This file is distributed under the terms of the *)
11 (* v GNU General Public License Version 2 *)
13 (**************************************************************************)
15 include "ground/arith/nat_le_minus_plus.ma".
16 include "ground/arith/nat_lt_minus.ma".
18 (* STRICT ORDER FOR NON-NEGATIVE INTEGERS ***********************************)
20 (* Constructions with nminus and nplus **************************************)
22 (*** lt_plus_to_minus *)
23 lemma nlt_minus_sn (o) (m) (n): m ≤ n → n < o + m → n - m < o.
25 lapply (nle_minus_sn_sn … Ho) -Ho
29 (*** lt_plus_to_minus_r *)
30 lemma nlt_minus_dx (o) (m) (n): m + o < n → m < n - o.
31 /2 width=1 by nle_minus_dx_sn/ qed.
34 lemma nlt_minus_dx_full (o) (m) (n): m + o < n → ∧∧ o < n & m < n - o.
35 /3 width=3 by nlt_minus_dx, nle_nlt_trans, conj/ qed-.
37 (* Inversions with nminus and nplus *****************************************)
39 (*** lt_minus_to_plus *)
40 lemma nlt_inv_minus_sn (o) (m) (n): m - o < n → m < n + o.
43 @(nle_trans … Ho) -Ho //
46 (*** lt_minus_to_plus_r *)
47 lemma nlt_inv_minus_dx (o) (m) (n): m < n - o → m + o < n.
49 lapply (nle_inv_minus_dx ???? Ho) //
50 /3 width=2 by nlt_des_minus_dx, nlt_des_le/