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_rplus_succ.ma".
16 include "ground/arith/nat_plus.ma".
18 (* ADDITION FOR NON-NEGATIVE INTEGERS ***************************************)
20 (* Constructions with nrplus ************************************************)
22 lemma nrplus_inj_sn (p) (n):
23 ninj (p + n) = ninj p + n.
24 #p #n @(nat_ind_succ … n) -n //
25 #n #IH <nplus_succ_dx <IH //
28 (* Constructions with nrplus and npsucc *************************************)
30 lemma nrplus_npsucc_sn (m) (n):
31 npsucc (m + n) = npsucc m + n.
32 #m @(nat_ind_succ … m) -m //
33 #m #IH #n <npsucc_succ <nrplus_succ_sn //