X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=matita%2Flibrary%2Fnat%2Fexp.ma;h=49efe8525504d4f431e81de36ea702f7c9d46f76;hb=9e028235daa0abea353d06b4226d4c6698ede3d4;hp=193478c0fd6706ddc075aa2d6402051f553489e8;hpb=77709bf94f34fdd1eff53e59b20544d2e7149140;p=helm.git diff --git a/matita/library/nat/exp.ma b/matita/library/nat/exp.ma index 193478c0f..49efe8525 100644 --- a/matita/library/nat/exp.ma +++ b/matita/library/nat/exp.ma @@ -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.