]> matita.cs.unibo.it Git - helm.git/blob - matita/matita/contribs/lambdadelta/ground/arith/ynat_pred_succ.ma
update in ground
[helm.git] / matita / matita / contribs / lambdadelta / ground / arith / ynat_pred_succ.ma
1 (**************************************************************************)
2 (*       ___                                                              *)
3 (*      ||M||                                                             *)
4 (*      ||A||       A project by Andrea Asperti                           *)
5 (*      ||T||                                                             *)
6 (*      ||I||       Developers:                                           *)
7 (*      ||T||         The HELM team.                                      *)
8 (*      ||A||         http://helm.cs.unibo.it                             *)
9 (*      \   /                                                             *)
10 (*       \ /        This file is distributed under the terms of the       *)
11 (*        v         GNU General Public License Version 2                  *)
12 (*                                                                        *)
13 (**************************************************************************)
14
15 include "ground/arith/nat_pred_succ.ma".
16 include "ground/arith/ynat_succ.ma".
17 include "ground/arith/ynat_pred.ma".
18
19 (* PREDECESSOR FOR NON-NEGATIVE INTEGERS WITH INFINITY **********************)
20
21 (* Constructions with ysucc *************************************************)
22
23 (*** ypred_succ ypred_S *)
24 lemma ypred_succ (x): x = ↓↑x.
25 #x @(ynat_split_nat_inf … x) -x //
26 qed.
27
28 (* Inversions with ysucc ****************************************************)
29
30 (*** ynat_cases *)
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/
35 qed-.