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_minus_plus.ma".
16 include "ground/arith/ynat_plus.ma".
17 include "ground/arith/ynat_lminus_succ.ma".
19 (* LEFT SUBTRACTION FOR NON-NEGATIVE INTEGERS WITH INFINITY *****************)
21 (* Constructions with yplus *************************************************)
24 lemma ylminus_plus_sn_refl_sn (x) (n):
25 x = x + yinj_nat n - n.
26 #x @(ynat_split_nat_inf … x) -x //
31 lemma yminus_plus_dx (x:ynat) (n) (o):
32 x - n - o = x - (n + o).
33 #x @(ynat_split_nat_inf … x) -x //