]> matita.cs.unibo.it Git - helm.git/blob - matita/matita/contribs/lambdadelta/ground/arith/nat_pred.ma
arithmetics for λδ
[helm.git] / matita / matita / contribs / lambdadelta / ground / arith / nat_pred.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/notation/functions/downarrow_1.ma".
16 include "ground/arith/pnat_dis.ma".
17 include "ground/arith/nat.ma".
18
19 (* PREDECESSOR FOR NON-NEGATIVE INTEGERS ************************************)
20
21 (*** pred *)
22 definition npred (m): nat ≝ match m with
23 [ nzero  ⇒ 𝟎
24 | ninj p ⇒ pdis … (𝟎) ninj p
25 ].
26
27 interpretation
28   "predecessor (non-negative integers)"
29   'DownArrow m = (npred m).
30
31 (* Basic constructions ******************************************************)
32
33 (*** pred_O *)
34 lemma npred_zero: 𝟎 = ↓𝟎.
35 // qed.