]> matita.cs.unibo.it Git - helm.git/blobdiff - matita/library/nat/exp.ma
Towards chebyshev.
[helm.git] / matita / library / nat / exp.ma
index 193478c0fd6706ddc075aa2d6402051f553489e8..49efe8525504d4f431e81de36ea702f7c9d46f76 100644 (file)
@@ -40,6 +40,12 @@ theorem exp_n_SO : \forall n:nat. n = n \sup (S O).
 intro.simplify.rewrite < times_n_SO.reflexivity.
 qed.
 
+theorem exp_SSO: \forall n. exp n (S(S O)) = n*n.
+intro.simplify.
+rewrite < times_n_SO.
+reflexivity.
+qed.
+
 theorem exp_exp_times : \forall n,p,q:nat. 
 (n \sup p) \sup q = n \sup (p * q).
 intros.
@@ -164,7 +170,22 @@ apply nat_elim2;intros
   ]
 qed.
 
-
+theorem lt_exp_to_lt: 
+\forall a,n,m. S O < a \to exp a n < exp a m \to n < m.
+intros.
+elim (le_to_or_lt_eq n m)
+  [assumption
+  |apply False_ind.
+   apply (lt_to_not_eq ? ? H1).
+   rewrite < H2.
+   reflexivity
+  |apply (le_exp_to_le a)
+    [assumption
+    |apply lt_to_le.
+     assumption
+    ]
+  ]
+qed.