]> matita.cs.unibo.it Git - helm.git/blobdiff - matita/matita/contribs/lambdadelta/ground/arith/nat_pred_succ.ma
propagating the arithmetics library, partial commit
[helm.git] / matita / matita / contribs / lambdadelta / ground / arith / nat_pred_succ.ma
index 26f5f9152dc5db2c9cf860c9a2116d4b91b24b44..dafe179103c40e47e1826004af3b277d07961bd2 100644 (file)
@@ -17,9 +17,32 @@ include "ground/arith/nat_pred.ma".
 
 (* PREDECESSOR FOR NON-NEGATIVE INTEGERS ************************************)
 
-(* Rewrites with nsucc ******************************************************)
+(* Constructions with npsucc ************************************************)
 
-(*** pred_Sn *)
+lemma pnpred_succ (n): n = pnpred (npsucc n).
+* //
+qed.
+
+lemma npsucc_pred (p): p = npsucc (pnpred p).
+* //
+qed.
+
+(* Constructions with nsucc and psucc ***************************************)
+
+lemma pnpred_psucc (p): pnpred (psucc p) = nsucc (pnpred p).
+* // qed.
+
+(* Constructions with nsucc *************************************************)
+
+(*** pred_Sn pred_S *)
 lemma npred_succ (n): n = ↓↑n.
 * //
 qed.
+
+(* Inversions with nsucc ****************************************************)
+
+(*** nat_split *)
+lemma nat_split_zero_pos (n): ∨∨ 𝟎 = n | n = ↑↓n.
+#n @(nat_ind_succ … n) -n
+/2 width=1 by or_introl, or_intror/
+qed-.