]> 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 71e5e921fd48558b7f890ba5b3bdfdddeabafcc2..dafe179103c40e47e1826004af3b277d07961bd2 100644 (file)
 include "ground/arith/nat_succ.ma".
 include "ground/arith/nat_pred.ma".
 
-(* NON-NEGATIVE INTEGERS ****************************************************)
+(* PREDECESSOR FOR NON-NEGATIVE INTEGERS ************************************)
 
-(* Basic rewrites with succ *************************************************)
+(* 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-.