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_pred_succ.ma".
16 include "ground/arith/ynat_succ.ma".
17 include "ground/arith/ynat_pred.ma".
19 (* PREDECESSOR FOR NON-NEGATIVE INTEGERS WITH INFINITY **********************)
21 (* Constructions with ysucc *************************************************)
23 (*** ypred_succ ypred_S *)
24 lemma ypred_succ (x): x = ↓↑x.
25 #x @(ynat_split_nat_inf … x) -x //
28 (* Inversions with ysucc ****************************************************)
31 lemma ynat_split_zero_pos (x): ∨∨ 𝟎 = x | x = ↑↓x.
32 #x @(ynat_split_nat_inf … x) -x //
33 #n elim (nat_split_zero_pos n)
34 /2 width=1 by or_introl, or_intror/