]> matita.cs.unibo.it Git - helm.git/blob - matita/matita/contribs/lambdadelta/ground/arith/nat_rplus.ma
propagating the arithmetics library, partial commit
[helm.git] / matita / matita / contribs / lambdadelta / ground / arith / nat_rplus.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_iter.ma".
16
17 (* RIGHT ADDITION FOR NON-NEGATIVE INTEGERS *********************************)
18
19 definition nrplus: pnat → nat → pnat ≝
20            λp,n. psucc^n p.
21
22 interpretation
23   "right plus (non-negative integers)"
24   'plus p n = (nrplus p n).
25
26 (* Basic constructions ******************************************************)
27
28 lemma nrplus_zero_dx (p): p = p + 𝟎.
29 // qed.
30
31 lemma nrplus_unit_dx (p): ↑p = p + 𝟏.
32 // qed.
33
34 lemma nrplus_succ_sn (p) (n): ↑(p+n) = ↑p + n.
35 #p #n @(niter_appl … psucc)
36 qed.