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/ynat_lt_succ.ma".
16 include "ground/arith/ynat_lt_le.ma".
18 (* STRICT ORDER FOR NON-NEGATIVE INTEGERS WITH INFINITY *********************)
20 (* Constructions with ysucc *************************************************)
22 (*** yle_lt yle_succ1_inj *)
23 lemma ylt_le_succ_sn (x) (y):
24 x < ∞ → ↑x ≤ y → x < y.
25 /3 width=3 by ylt_yle_trans, ylt_succ_dx_refl/ qed.
27 (* Inversions with yle and ysucc ********************************************)
30 lemma ylt_inv_le_succ_sn (x) (y):
31 x < y → ∧∧ x < ∞ & ↑x ≤ y.
33 /3 width=1 by yle_inj, conj/
36 (* Destructions with yle and ysucc ******************************************)
38 (*** ylt_fwd_le_succ1 *)
39 lemma ylt_des_le_succ_sn (x) (y): x < y → ↑x ≤ y.
41 elim (ylt_inv_le_succ_sn … H) -H #_ //
45 lemma ylt_des_succ_dx (x) (y): x < ↑y → x ≤ y.
46 #x #y @(ynat_split_nat_inf … y) -y //
48 elim (ylt_inv_inj_dx … H) -H #m #Hm #H destruct
49 /3 width=1 by yle_inj, nlt_inv_succ_dx/