]> matita.cs.unibo.it Git - helm.git/blobdiff - matita/matita/contribs/lambdadelta/ground/arith/nat_succ.ma
milestone update in ground, partial commit
[helm.git] / matita / matita / contribs / lambdadelta / ground / arith / nat_succ.ma
index 916e6be1e5785f651c9208fc4c18c0a7ac236709..63627965422fbdbc5a604e86c774497d3516f433 100644 (file)
@@ -16,11 +16,19 @@ include "ground/arith/nat.ma".
 
 (* SUCCESSOR FOR NON-NEGATIVE INTEGERS **************************************)
 
-definition nsucc: nat → nat ≝ λm. match m with
-[ nzero  ⇒ ninj (𝟏)
-| ninj p ⇒ ninj (↑p)
+definition nsucc_pos (m): pnat ≝
+match m with
+[ nzero  ⇒ 𝟏
+| ninj p ⇒ ↑p
 ].
 
+interpretation
+  "positive successor (non-negative integers)"
+  'UpArrow m = (nsucc_pos m).
+
+definition nsucc (m): nat ≝
+           ninj (↑m).
+
 interpretation
   "successor (non-negative integers)"
   'UpArrow m = (nsucc m).