]> matita.cs.unibo.it Git - helm.git/blobdiff - matita/matita/contribs/lambdadelta/ground/arith/nat_minus_pminus.ma
wip ....
[helm.git] / matita / matita / contribs / lambdadelta / ground / arith / nat_minus_pminus.ma
diff --git a/matita/matita/contribs/lambdadelta/ground/arith/nat_minus_pminus.ma b/matita/matita/contribs/lambdadelta/ground/arith/nat_minus_pminus.ma
new file mode 100644 (file)
index 0000000..ba850fe
--- /dev/null
@@ -0,0 +1,27 @@
+(**************************************************************************)
+(*       ___                                                              *)
+(*      ||M||                                                             *)
+(*      ||A||       A project by Andrea Asperti                           *)
+(*      ||T||                                                             *)
+(*      ||I||       Developers:                                           *)
+(*      ||T||         The HELM team.                                      *)
+(*      ||A||         http://helm.cs.unibo.it                             *)
+(*      \   /                                                             *)
+(*       \ /        This file is distributed under the terms of the       *)
+(*        v         GNU General Public License Version 2                  *)
+(*                                                                        *)
+(**************************************************************************)
+
+include "ground/arith/pnat_minus.ma".
+include "ground/arith/pnat_lt.ma".
+include "ground/arith/nat_minus.ma".
+
+(* SUBTRACTION FOR NON-NEGATIVE INTEGERS ************************************)
+
+(* Constructions with pminus ************************************************)
+
+lemma nminus_inj_bi (p1) (p2):
+      p2 < p1 →
+      ninj (p1 - p2) = ninj p1 - ninj p2.
+#p2 #p1 #H0 @(plt_ind_alt … H0) -p1 -p2 //
+qed-.