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

Theorem facubnd 12352
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 5852 . . . 4  |-  ( m  =  0  ->  ( ! `  m )  =  ( ! ` 
0 ) )
2 fac0 12330 . . . 4  |-  ( ! `
 0 )  =  1
31, 2syl6eq 2498 . . 3  |-  ( m  =  0  ->  ( ! `  m )  =  1 )
4 id 22 . . . . 5  |-  ( m  =  0  ->  m  =  0 )
54, 4oveq12d 6295 . . . 4  |-  ( m  =  0  ->  (
m ^ m )  =  ( 0 ^ 0 ) )
6 0exp0e1 12145 . . . 4  |-  ( 0 ^ 0 )  =  1
75, 6syl6eq 2498 . . 3  |-  ( m  =  0  ->  (
m ^ m )  =  1 )
83, 7breq12d 4446 . 2  |-  ( m  =  0  ->  (
( ! `  m
)  <_  ( m ^ m )  <->  1  <_  1 ) )
9 fveq2 5852 . . 3  |-  ( m  =  k  ->  ( ! `  m )  =  ( ! `  k ) )
10 id 22 . . . 4  |-  ( m  =  k  ->  m  =  k )
1110, 10oveq12d 6295 . . 3  |-  ( m  =  k  ->  (
m ^ m )  =  ( k ^
k ) )
129, 11breq12d 4446 . 2  |-  ( m  =  k  ->  (
( ! `  m
)  <_  ( m ^ m )  <->  ( ! `  k )  <_  (
k ^ k ) ) )
13 fveq2 5852 . . 3  |-  ( m  =  ( k  +  1 )  ->  ( ! `  m )  =  ( ! `  ( k  +  1 ) ) )
14 id 22 . . . 4  |-  ( m  =  ( k  +  1 )  ->  m  =  ( k  +  1 ) )
1514, 14oveq12d 6295 . . 3  |-  ( m  =  ( k  +  1 )  ->  (
m ^ m )  =  ( ( k  +  1 ) ^
( k  +  1 ) ) )
1613, 15breq12d 4446 . 2  |-  ( m  =  ( k  +  1 )  ->  (
( ! `  m
)  <_  ( m ^ m )  <->  ( ! `  ( k  +  1 ) )  <_  (
( k  +  1 ) ^ ( k  +  1 ) ) ) )
17 fveq2 5852 . . 3  |-  ( m  =  N  ->  ( ! `  m )  =  ( ! `  N ) )
18 id 22 . . . 4  |-  ( m  =  N  ->  m  =  N )
1918, 18oveq12d 6295 . . 3  |-  ( m  =  N  ->  (
m ^ m )  =  ( N ^ N ) )
2017, 19breq12d 4446 . 2  |-  ( m  =  N  ->  (
( ! `  m
)  <_  ( m ^ m )  <->  ( ! `  N )  <_  ( N ^ N ) ) )
21 1le1 10178 . 2  |-  1  <_  1
22 faccl 12337 . . . . . . . 8  |-  ( k  e.  NN0  ->  ( ! `
 k )  e.  NN )
2322adantr 465 . . . . . . 7  |-  ( ( k  e.  NN0  /\  ( ! `  k )  <_  ( k ^
k ) )  -> 
( ! `  k
)  e.  NN )
2423nnred 10552 . . . . . 6  |-  ( ( k  e.  NN0  /\  ( ! `  k )  <_  ( k ^
k ) )  -> 
( ! `  k
)  e.  RR )
25 nn0re 10805 . . . . . . . 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 12301 . . . . . 6  |-  ( ( k  e.  NN0  /\  ( ! `  k )  <_  ( k ^
k ) )  -> 
( k ^ k
)  e.  RR )
29 nn0p1nn 10836 . . . . . . . . 9  |-  ( k  e.  NN0  ->  ( k  +  1 )  e.  NN )
3029adantr 465 . . . . . . . 8  |-  ( ( k  e.  NN0  /\  ( ! `  k )  <_  ( k ^
k ) )  -> 
( k  +  1 )  e.  NN )
3130nnred 10552 . . . . . . 7  |-  ( ( k  e.  NN0  /\  ( ! `  k )  <_  ( k ^
k ) )  -> 
( k  +  1 )  e.  RR )
3231, 27reexpcld 12301 . . . . . 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 10822 . . . . . . . 8  |-  ( k  e.  NN0  ->  0  <_ 
k )
3534adantr 465 . . . . . . 7  |-  ( ( k  e.  NN0  /\  ( ! `  k )  <_  ( k ^
k ) )  -> 
0  <_  k )
3626lep1d 10478 . . . . . . 7  |-  ( ( k  e.  NN0  /\  ( ! `  k )  <_  ( k ^
k ) )  -> 
k  <_  ( k  +  1 ) )
37 leexp1a 12198 . . . . . . 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 1235 . . . . . 6  |-  ( ( k  e.  NN0  /\  ( ! `  k )  <_  ( k ^
k ) )  -> 
( k ^ k
)  <_  ( (
k  +  1 ) ^ k ) )
3924, 28, 32, 33, 38letrd 9737 . . . . 5  |-  ( ( k  e.  NN0  /\  ( ! `  k )  <_  ( k ^
k ) )  -> 
( ! `  k
)  <_  ( (
k  +  1 ) ^ k ) )
4030nngt0d 10580 . . . . . 6  |-  ( ( k  e.  NN0  /\  ( ! `  k )  <_  ( k ^
k ) )  -> 
0  <  ( k  +  1 ) )
41 lemul1 10395 . . . . . 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 1231 . . . . 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 12332 . . . . 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 10553 . . . . 5  |-  ( ( k  e.  NN0  /\  ( ! `  k )  <_  ( k ^
k ) )  -> 
( k  +  1 )  e.  CC )
4746, 27expp1d 12285 . . . 4  |-  ( ( k  e.  NN0  /\  ( ! `  k )  <_  ( k ^
k ) )  -> 
( ( k  +  1 ) ^ (
k  +  1 ) )  =  ( ( ( k  +  1 ) ^ k )  x.  ( k  +  1 ) ) )
4843, 45, 473brtr4d 4463 . . 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 10960 1  |-  ( N  e.  NN0  ->  ( ! `
 N )  <_ 
( N ^ N
) )
Colors of variables: wff setvar class
Syntax hints:    -> wi 4    <-> wb 184    /\ wa 369    = wceq 1381    e. wcel 1802   class class class wbr 4433   ` cfv 5574  (class class class)co 6277   RRcr 9489   0cc0 9490   1c1 9491    + caddc 9493    x. cmul 9495    < clt 9626    <_ cle 9627   NNcn 10537   NN0cn0 10796   ^cexp 12140   !cfa 12327
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1603  ax-4 1616  ax-5 1689  ax-6 1732  ax-7 1774  ax-8 1804  ax-9 1806  ax-10 1821  ax-11 1826  ax-12 1838  ax-13 1983  ax-ext 2419  ax-sep 4554  ax-nul 4562  ax-pow 4611  ax-pr 4672  ax-un 6573  ax-cnex 9546  ax-resscn 9547  ax-1cn 9548  ax-icn 9549  ax-addcl 9550  ax-addrcl 9551  ax-mulcl 9552  ax-mulrcl 9553  ax-mulcom 9554  ax-addass 9555  ax-mulass 9556  ax-distr 9557  ax-i2m1 9558  ax-1ne0 9559  ax-1rid 9560  ax-rnegex 9561  ax-rrecex 9562  ax-cnre 9563  ax-pre-lttri 9564  ax-pre-lttrn 9565  ax-pre-ltadd 9566  ax-pre-mulgt0 9567
This theorem depends on definitions:  df-bi 185  df-or 370  df-an 371  df-3or 973  df-3an 974  df-tru 1384  df-ex 1598  df-nf 1602  df-sb 1725  df-eu 2270  df-mo 2271  df-clab 2427  df-cleq 2433  df-clel 2436  df-nfc 2591  df-ne 2638  df-nel 2639  df-ral 2796  df-rex 2797  df-reu 2798  df-rab 2800  df-v 3095  df-sbc 3312  df-csb 3418  df-dif 3461  df-un 3463  df-in 3465  df-ss 3472  df-pss 3474  df-nul 3768  df-if 3923  df-pw 3995  df-sn 4011  df-pr 4013  df-tp 4015  df-op 4017  df-uni 4231  df-iun 4313  df-br 4434  df-opab 4492  df-mpt 4493  df-tr 4527  df-eprel 4777  df-id 4781  df-po 4786  df-so 4787  df-fr 4824  df-we 4826  df-ord 4867  df-on 4868  df-lim 4869  df-suc 4870  df-xp 4991  df-rel 4992  df-cnv 4993  df-co 4994  df-dm 4995  df-rn 4996  df-res 4997  df-ima 4998  df-iota 5537  df-fun 5576  df-fn 5577  df-f 5578  df-f1 5579  df-fo 5580  df-f1o 5581  df-fv 5582  df-riota 6238  df-ov 6280  df-oprab 6281  df-mpt2 6282  df-om 6682  df-2nd 6782  df-recs 7040  df-rdg 7074  df-er 7309  df-en 7515  df-dom 7516  df-sdom 7517  df-pnf 9628  df-mnf 9629  df-xr 9630  df-ltxr 9631  df-le 9632  df-sub 9807  df-neg 9808  df-nn 10538  df-n0 10797  df-z 10866  df-uz 11086  df-seq 12082  df-exp 12141  df-fac 12328
This theorem is referenced by:  logfacubnd  23361  pgrple2abl  32666
  Copyright terms: Public domain W3C validator