MPE Home Metamath Proof Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >  facubnd Structured version   Unicode version

Theorem facubnd 12068
Description: An upper bound for the factorial function. (Contributed by Mario Carneiro, 15-Apr-2016.)
Assertion
Ref Expression
facubnd  |-  ( N  e.  NN0  ->  ( ! `
 N )  <_ 
( N ^ N
) )

Proof of Theorem facubnd
Dummy variables  m  k are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 fveq2 5686 . . . 4  |-  ( m  =  0  ->  ( ! `  m )  =  ( ! ` 
0 ) )
2 fac0 12046 . . . 4  |-  ( ! `
 0 )  =  1
31, 2syl6eq 2486 . . 3  |-  ( m  =  0  ->  ( ! `  m )  =  1 )
4 id 22 . . . . 5  |-  ( m  =  0  ->  m  =  0 )
54, 4oveq12d 6104 . . . 4  |-  ( m  =  0  ->  (
m ^ m )  =  ( 0 ^ 0 ) )
6 0exp0e1 11862 . . . 4  |-  ( 0 ^ 0 )  =  1
75, 6syl6eq 2486 . . 3  |-  ( m  =  0  ->  (
m ^ m )  =  1 )
83, 7breq12d 4300 . 2  |-  ( m  =  0  ->  (
( ! `  m
)  <_  ( m ^ m )  <->  1  <_  1 ) )
9 fveq2 5686 . . 3  |-  ( m  =  k  ->  ( ! `  m )  =  ( ! `  k ) )
10 id 22 . . . 4  |-  ( m  =  k  ->  m  =  k )
1110, 10oveq12d 6104 . . 3  |-  ( m  =  k  ->  (
m ^ m )  =  ( k ^
k ) )
129, 11breq12d 4300 . 2  |-  ( m  =  k  ->  (
( ! `  m
)  <_  ( m ^ m )  <->  ( ! `  k )  <_  (
k ^ k ) ) )
13 fveq2 5686 . . 3  |-  ( m  =  ( k  +  1 )  ->  ( ! `  m )  =  ( ! `  ( k  +  1 ) ) )
14 id 22 . . . 4  |-  ( m  =  ( k  +  1 )  ->  m  =  ( k  +  1 ) )
1514, 14oveq12d 6104 . . 3  |-  ( m  =  ( k  +  1 )  ->  (
m ^ m )  =  ( ( k  +  1 ) ^
( k  +  1 ) ) )
1613, 15breq12d 4300 . 2  |-  ( m  =  ( k  +  1 )  ->  (
( ! `  m
)  <_  ( m ^ m )  <->  ( ! `  ( k  +  1 ) )  <_  (
( k  +  1 ) ^ ( k  +  1 ) ) ) )
17 fveq2 5686 . . 3  |-  ( m  =  N  ->  ( ! `  m )  =  ( ! `  N ) )
18 id 22 . . . 4  |-  ( m  =  N  ->  m  =  N )
1918, 18oveq12d 6104 . . 3  |-  ( m  =  N  ->  (
m ^ m )  =  ( N ^ N ) )
2017, 19breq12d 4300 . 2  |-  ( m  =  N  ->  (
( ! `  m
)  <_  ( m ^ m )  <->  ( ! `  N )  <_  ( N ^ N ) ) )
21 1le1 9956 . 2  |-  1  <_  1
22 faccl 12053 . . . . . . . 8  |-  ( k  e.  NN0  ->  ( ! `
 k )  e.  NN )
2322adantr 465 . . . . . . 7  |-  ( ( k  e.  NN0  /\  ( ! `  k )  <_  ( k ^
k ) )  -> 
( ! `  k
)  e.  NN )
2423nnred 10329 . . . . . 6  |-  ( ( k  e.  NN0  /\  ( ! `  k )  <_  ( k ^
k ) )  -> 
( ! `  k
)  e.  RR )
25 nn0re 10580 . . . . . . . 8  |-  ( k  e.  NN0  ->  k  e.  RR )
2625adantr 465 . . . . . . 7  |-  ( ( k  e.  NN0  /\  ( ! `  k )  <_  ( k ^
k ) )  -> 
k  e.  RR )
27 simpl 457 . . . . . . 7  |-  ( ( k  e.  NN0  /\  ( ! `  k )  <_  ( k ^
k ) )  -> 
k  e.  NN0 )
2826, 27reexpcld 12017 . . . . . 6  |-  ( ( k  e.  NN0  /\  ( ! `  k )  <_  ( k ^
k ) )  -> 
( k ^ k
)  e.  RR )
29 nn0p1nn 10611 . . . . . . . . 9  |-  ( k  e.  NN0  ->  ( k  +  1 )  e.  NN )
3029adantr 465 . . . . . . . 8  |-  ( ( k  e.  NN0  /\  ( ! `  k )  <_  ( k ^
k ) )  -> 
( k  +  1 )  e.  NN )
3130nnred 10329 . . . . . . 7  |-  ( ( k  e.  NN0  /\  ( ! `  k )  <_  ( k ^
k ) )  -> 
( k  +  1 )  e.  RR )
3231, 27reexpcld 12017 . . . . . 6  |-  ( ( k  e.  NN0  /\  ( ! `  k )  <_  ( k ^
k ) )  -> 
( ( k  +  1 ) ^ k
)  e.  RR )
33 simpr 461 . . . . . 6  |-  ( ( k  e.  NN0  /\  ( ! `  k )  <_  ( k ^
k ) )  -> 
( ! `  k
)  <_  ( k ^ k ) )
34 nn0ge0 10597 . . . . . . . 8  |-  ( k  e.  NN0  ->  0  <_ 
k )
3534adantr 465 . . . . . . 7  |-  ( ( k  e.  NN0  /\  ( ! `  k )  <_  ( k ^
k ) )  -> 
0  <_  k )
3626lep1d 10256 . . . . . . 7  |-  ( ( k  e.  NN0  /\  ( ! `  k )  <_  ( k ^
k ) )  -> 
k  <_  ( k  +  1 ) )
37 leexp1a 11914 . . . . . . 7  |-  ( ( ( k  e.  RR  /\  ( k  +  1 )  e.  RR  /\  k  e.  NN0 )  /\  ( 0  <_  k  /\  k  <_  ( k  +  1 ) ) )  ->  ( k ^ k )  <_ 
( ( k  +  1 ) ^ k
) )
3826, 31, 27, 35, 36, 37syl32anc 1226 . . . . . 6  |-  ( ( k  e.  NN0  /\  ( ! `  k )  <_  ( k ^
k ) )  -> 
( k ^ k
)  <_  ( (
k  +  1 ) ^ k ) )
3924, 28, 32, 33, 38letrd 9520 . . . . 5  |-  ( ( k  e.  NN0  /\  ( ! `  k )  <_  ( k ^
k ) )  -> 
( ! `  k
)  <_  ( (
k  +  1 ) ^ k ) )
4030nngt0d 10357 . . . . . 6  |-  ( ( k  e.  NN0  /\  ( ! `  k )  <_  ( k ^
k ) )  -> 
0  <  ( k  +  1 ) )
41 lemul1 10173 . . . . . 6  |-  ( ( ( ! `  k
)  e.  RR  /\  ( ( k  +  1 ) ^ k
)  e.  RR  /\  ( ( k  +  1 )  e.  RR  /\  0  <  ( k  +  1 ) ) )  ->  ( ( ! `  k )  <_  ( ( k  +  1 ) ^ k
)  <->  ( ( ! `
 k )  x.  ( k  +  1 ) )  <_  (
( ( k  +  1 ) ^ k
)  x.  ( k  +  1 ) ) ) )
4224, 32, 31, 40, 41syl112anc 1222 . . . . 5  |-  ( ( k  e.  NN0  /\  ( ! `  k )  <_  ( k ^
k ) )  -> 
( ( ! `  k )  <_  (
( k  +  1 ) ^ k )  <-> 
( ( ! `  k )  x.  (
k  +  1 ) )  <_  ( (
( k  +  1 ) ^ k )  x.  ( k  +  1 ) ) ) )
4339, 42mpbid 210 . . . 4  |-  ( ( k  e.  NN0  /\  ( ! `  k )  <_  ( k ^
k ) )  -> 
( ( ! `  k )  x.  (
k  +  1 ) )  <_  ( (
( k  +  1 ) ^ k )  x.  ( k  +  1 ) ) )
44 facp1 12048 . . . . 5  |-  ( k  e.  NN0  ->  ( ! `
 ( k  +  1 ) )  =  ( ( ! `  k )  x.  (
k  +  1 ) ) )
4544adantr 465 . . . 4  |-  ( ( k  e.  NN0  /\  ( ! `  k )  <_  ( k ^
k ) )  -> 
( ! `  (
k  +  1 ) )  =  ( ( ! `  k )  x.  ( k  +  1 ) ) )
4630nncnd 10330 . . . . 5  |-  ( ( k  e.  NN0  /\  ( ! `  k )  <_  ( k ^
k ) )  -> 
( k  +  1 )  e.  CC )
4746, 27expp1d 12001 . . . 4  |-  ( ( k  e.  NN0  /\  ( ! `  k )  <_  ( k ^
k ) )  -> 
( ( k  +  1 ) ^ (
k  +  1 ) )  =  ( ( ( k  +  1 ) ^ k )  x.  ( k  +  1 ) ) )
4843, 45, 473brtr4d 4317 . . 3  |-  ( ( k  e.  NN0  /\  ( ! `  k )  <_  ( k ^
k ) )  -> 
( ! `  (
k  +  1 ) )  <_  ( (
k  +  1 ) ^ ( k  +  1 ) ) )
4948ex 434 . 2  |-  ( k  e.  NN0  ->  ( ( ! `  k )  <_  ( k ^
k )  ->  ( ! `  ( k  +  1 ) )  <_  ( ( k  +  1 ) ^
( k  +  1 ) ) ) )
508, 12, 16, 20, 21, 49nn0ind 10730 1  |-  ( N  e.  NN0  ->  ( ! `
 N )  <_ 
( N ^ N
) )
Colors of variables: wff setvar class
Syntax hints:    -> wi 4    <-> wb 184    /\ wa 369    = wceq 1369    e. wcel 1756   class class class wbr 4287   ` cfv 5413  (class class class)co 6086   RRcr 9273   0cc0 9274   1c1 9275    + caddc 9277    x. cmul 9279    < clt 9410    <_ cle 9411   NNcn 10314   NN0cn0 10571   ^cexp 11857   !cfa 12043
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1591  ax-4 1602  ax-5 1670  ax-6 1708  ax-7 1728  ax-8 1758  ax-9 1760  ax-10 1775  ax-11 1780  ax-12 1792  ax-13 1943  ax-ext 2419  ax-sep 4408  ax-nul 4416  ax-pow 4465  ax-pr 4526  ax-un 6367  ax-cnex 9330  ax-resscn 9331  ax-1cn 9332  ax-icn 9333  ax-addcl 9334  ax-addrcl 9335  ax-mulcl 9336  ax-mulrcl 9337  ax-mulcom 9338  ax-addass 9339  ax-mulass 9340  ax-distr 9341  ax-i2m1 9342  ax-1ne0 9343  ax-1rid 9344  ax-rnegex 9345  ax-rrecex 9346  ax-cnre 9347  ax-pre-lttri 9348  ax-pre-lttrn 9349  ax-pre-ltadd 9350  ax-pre-mulgt0 9351
This theorem depends on definitions:  df-bi 185  df-or 370  df-an 371  df-3or 966  df-3an 967  df-tru 1372  df-ex 1587  df-nf 1590  df-sb 1701  df-eu 2256  df-mo 2257  df-clab 2425  df-cleq 2431  df-clel 2434  df-nfc 2563  df-ne 2603  df-nel 2604  df-ral 2715  df-rex 2716  df-reu 2717  df-rab 2719  df-v 2969  df-sbc 3182  df-csb 3284  df-dif 3326  df-un 3328  df-in 3330  df-ss 3337  df-pss 3339  df-nul 3633  df-if 3787  df-pw 3857  df-sn 3873  df-pr 3875  df-tp 3877  df-op 3879  df-uni 4087  df-iun 4168  df-br 4288  df-opab 4346  df-mpt 4347  df-tr 4381  df-eprel 4627  df-id 4631  df-po 4636  df-so 4637  df-fr 4674  df-we 4676  df-ord 4717  df-on 4718  df-lim 4719  df-suc 4720  df-xp 4841  df-rel 4842  df-cnv 4843  df-co 4844  df-dm 4845  df-rn 4846  df-res 4847  df-ima 4848  df-iota 5376  df-fun 5415  df-fn 5416  df-f 5417  df-f1 5418  df-fo 5419  df-f1o 5420  df-fv 5421  df-riota 6047  df-ov 6089  df-oprab 6090  df-mpt2 6091  df-om 6472  df-2nd 6573  df-recs 6824  df-rdg 6858  df-er 7093  df-en 7303  df-dom 7304  df-sdom 7305  df-pnf 9412  df-mnf 9413  df-xr 9414  df-ltxr 9415  df-le 9416  df-sub 9589  df-neg 9590  df-nn 10315  df-n0 10572  df-z 10639  df-uz 10854  df-seq 11799  df-exp 11858  df-fac 12044
This theorem is referenced by:  logfacubnd  22535  pgrple2abel  30719
  Copyright terms: Public domain W3C validator