]> matita.cs.unibo.it Git - helm.git/blobdiff - matita/matita/contribs/lambdadelta/ground/arith/pnat.ma
propagating the arithmetics library, partial commit
[helm.git] / matita / matita / contribs / lambdadelta / ground / arith / pnat.ma
index d90f8dd8d23ec00b536a5db1aeb06221aa0ab20d..516ba683a1687802780fa3b7eba0724612941562 100644 (file)
@@ -55,3 +55,14 @@ lemma eq_pnat_dec (p1,p2:pnat): Decidable (p1 = p2).
 | /2 width=1 by or_introl/
 ]
 qed-.
+
+(* Basic eliminations *******************************************************)
+
+lemma pnat_ind_2 (Q:relation2 …):
+      (∀q. Q (𝟏) q) →
+      (∀p. Q p (𝟏) → Q (↑p) (𝟏)) →
+      (∀p,q. Q p q → Q (↑p) (↑q)) →
+      ∀p,q. Q p q.
+#Q #IH1 #IH2 #IH3 #p elim p -p [ // ]
+#p #IH #q elim q -q /2 width=1 by/
+qed-.