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

Theorem facubnd 13656
Description: An upper bound for the factorial function. (Contributed by Mario Carneiro, 15-Apr-2016.)
Assertion
Ref Expression
facubnd (𝑁 ∈ ℕ0 → (!‘𝑁) ≤ (𝑁𝑁))

Proof of Theorem facubnd
Dummy variables 𝑚 𝑘 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 fveq2 6645 . . . 4 (𝑚 = 0 → (!‘𝑚) = (!‘0))
2 fac0 13632 . . . 4 (!‘0) = 1
31, 2eqtrdi 2849 . . 3 (𝑚 = 0 → (!‘𝑚) = 1)
4 id 22 . . . . 5 (𝑚 = 0 → 𝑚 = 0)
54, 4oveq12d 7153 . . . 4 (𝑚 = 0 → (𝑚𝑚) = (0↑0))
6 0exp0e1 13430 . . . 4 (0↑0) = 1
75, 6eqtrdi 2849 . . 3 (𝑚 = 0 → (𝑚𝑚) = 1)
83, 7breq12d 5043 . 2 (𝑚 = 0 → ((!‘𝑚) ≤ (𝑚𝑚) ↔ 1 ≤ 1))
9 fveq2 6645 . . 3 (𝑚 = 𝑘 → (!‘𝑚) = (!‘𝑘))
10 id 22 . . . 4 (𝑚 = 𝑘𝑚 = 𝑘)
1110, 10oveq12d 7153 . . 3 (𝑚 = 𝑘 → (𝑚𝑚) = (𝑘𝑘))
129, 11breq12d 5043 . 2 (𝑚 = 𝑘 → ((!‘𝑚) ≤ (𝑚𝑚) ↔ (!‘𝑘) ≤ (𝑘𝑘)))
13 fveq2 6645 . . 3 (𝑚 = (𝑘 + 1) → (!‘𝑚) = (!‘(𝑘 + 1)))
14 id 22 . . . 4 (𝑚 = (𝑘 + 1) → 𝑚 = (𝑘 + 1))
1514, 14oveq12d 7153 . . 3 (𝑚 = (𝑘 + 1) → (𝑚𝑚) = ((𝑘 + 1)↑(𝑘 + 1)))
1613, 15breq12d 5043 . 2 (𝑚 = (𝑘 + 1) → ((!‘𝑚) ≤ (𝑚𝑚) ↔ (!‘(𝑘 + 1)) ≤ ((𝑘 + 1)↑(𝑘 + 1))))
17 fveq2 6645 . . 3 (𝑚 = 𝑁 → (!‘𝑚) = (!‘𝑁))
18 id 22 . . . 4 (𝑚 = 𝑁𝑚 = 𝑁)
1918, 18oveq12d 7153 . . 3 (𝑚 = 𝑁 → (𝑚𝑚) = (𝑁𝑁))
2017, 19breq12d 5043 . 2 (𝑚 = 𝑁 → ((!‘𝑚) ≤ (𝑚𝑚) ↔ (!‘𝑁) ≤ (𝑁𝑁)))
21 1le1 11257 . 2 1 ≤ 1
22 faccl 13639 . . . . . . . 8 (𝑘 ∈ ℕ0 → (!‘𝑘) ∈ ℕ)
2322adantr 484 . . . . . . 7 ((𝑘 ∈ ℕ0 ∧ (!‘𝑘) ≤ (𝑘𝑘)) → (!‘𝑘) ∈ ℕ)
2423nnred 11640 . . . . . 6 ((𝑘 ∈ ℕ0 ∧ (!‘𝑘) ≤ (𝑘𝑘)) → (!‘𝑘) ∈ ℝ)
25 nn0re 11894 . . . . . . . 8 (𝑘 ∈ ℕ0𝑘 ∈ ℝ)
2625adantr 484 . . . . . . 7 ((𝑘 ∈ ℕ0 ∧ (!‘𝑘) ≤ (𝑘𝑘)) → 𝑘 ∈ ℝ)
27 simpl 486 . . . . . . 7 ((𝑘 ∈ ℕ0 ∧ (!‘𝑘) ≤ (𝑘𝑘)) → 𝑘 ∈ ℕ0)
2826, 27reexpcld 13523 . . . . . 6 ((𝑘 ∈ ℕ0 ∧ (!‘𝑘) ≤ (𝑘𝑘)) → (𝑘𝑘) ∈ ℝ)
29 nn0p1nn 11924 . . . . . . . . 9 (𝑘 ∈ ℕ0 → (𝑘 + 1) ∈ ℕ)
3029adantr 484 . . . . . . . 8 ((𝑘 ∈ ℕ0 ∧ (!‘𝑘) ≤ (𝑘𝑘)) → (𝑘 + 1) ∈ ℕ)
3130nnred 11640 . . . . . . 7 ((𝑘 ∈ ℕ0 ∧ (!‘𝑘) ≤ (𝑘𝑘)) → (𝑘 + 1) ∈ ℝ)
3231, 27reexpcld 13523 . . . . . 6 ((𝑘 ∈ ℕ0 ∧ (!‘𝑘) ≤ (𝑘𝑘)) → ((𝑘 + 1)↑𝑘) ∈ ℝ)
33 simpr 488 . . . . . 6 ((𝑘 ∈ ℕ0 ∧ (!‘𝑘) ≤ (𝑘𝑘)) → (!‘𝑘) ≤ (𝑘𝑘))
34 nn0ge0 11910 . . . . . . . 8 (𝑘 ∈ ℕ0 → 0 ≤ 𝑘)
3534adantr 484 . . . . . . 7 ((𝑘 ∈ ℕ0 ∧ (!‘𝑘) ≤ (𝑘𝑘)) → 0 ≤ 𝑘)
3626lep1d 11560 . . . . . . 7 ((𝑘 ∈ ℕ0 ∧ (!‘𝑘) ≤ (𝑘𝑘)) → 𝑘 ≤ (𝑘 + 1))
37 leexp1a 13535 . . . . . . 7 (((𝑘 ∈ ℝ ∧ (𝑘 + 1) ∈ ℝ ∧ 𝑘 ∈ ℕ0) ∧ (0 ≤ 𝑘𝑘 ≤ (𝑘 + 1))) → (𝑘𝑘) ≤ ((𝑘 + 1)↑𝑘))
3826, 31, 27, 35, 36, 37syl32anc 1375 . . . . . 6 ((𝑘 ∈ ℕ0 ∧ (!‘𝑘) ≤ (𝑘𝑘)) → (𝑘𝑘) ≤ ((𝑘 + 1)↑𝑘))
3924, 28, 32, 33, 38letrd 10786 . . . . 5 ((𝑘 ∈ ℕ0 ∧ (!‘𝑘) ≤ (𝑘𝑘)) → (!‘𝑘) ≤ ((𝑘 + 1)↑𝑘))
4030nngt0d 11674 . . . . . 6 ((𝑘 ∈ ℕ0 ∧ (!‘𝑘) ≤ (𝑘𝑘)) → 0 < (𝑘 + 1))
41 lemul1 11481 . . . . . 6 (((!‘𝑘) ∈ ℝ ∧ ((𝑘 + 1)↑𝑘) ∈ ℝ ∧ ((𝑘 + 1) ∈ ℝ ∧ 0 < (𝑘 + 1))) → ((!‘𝑘) ≤ ((𝑘 + 1)↑𝑘) ↔ ((!‘𝑘) · (𝑘 + 1)) ≤ (((𝑘 + 1)↑𝑘) · (𝑘 + 1))))
4224, 32, 31, 40, 41syl112anc 1371 . . . . 5 ((𝑘 ∈ ℕ0 ∧ (!‘𝑘) ≤ (𝑘𝑘)) → ((!‘𝑘) ≤ ((𝑘 + 1)↑𝑘) ↔ ((!‘𝑘) · (𝑘 + 1)) ≤ (((𝑘 + 1)↑𝑘) · (𝑘 + 1))))
4339, 42mpbid 235 . . . 4 ((𝑘 ∈ ℕ0 ∧ (!‘𝑘) ≤ (𝑘𝑘)) → ((!‘𝑘) · (𝑘 + 1)) ≤ (((𝑘 + 1)↑𝑘) · (𝑘 + 1)))
44 facp1 13634 . . . . 5 (𝑘 ∈ ℕ0 → (!‘(𝑘 + 1)) = ((!‘𝑘) · (𝑘 + 1)))
4544adantr 484 . . . 4 ((𝑘 ∈ ℕ0 ∧ (!‘𝑘) ≤ (𝑘𝑘)) → (!‘(𝑘 + 1)) = ((!‘𝑘) · (𝑘 + 1)))
4630nncnd 11641 . . . . 5 ((𝑘 ∈ ℕ0 ∧ (!‘𝑘) ≤ (𝑘𝑘)) → (𝑘 + 1) ∈ ℂ)
4746, 27expp1d 13507 . . . 4 ((𝑘 ∈ ℕ0 ∧ (!‘𝑘) ≤ (𝑘𝑘)) → ((𝑘 + 1)↑(𝑘 + 1)) = (((𝑘 + 1)↑𝑘) · (𝑘 + 1)))
4843, 45, 473brtr4d 5062 . . 3 ((𝑘 ∈ ℕ0 ∧ (!‘𝑘) ≤ (𝑘𝑘)) → (!‘(𝑘 + 1)) ≤ ((𝑘 + 1)↑(𝑘 + 1)))
4948ex 416 . 2 (𝑘 ∈ ℕ0 → ((!‘𝑘) ≤ (𝑘𝑘) → (!‘(𝑘 + 1)) ≤ ((𝑘 + 1)↑(𝑘 + 1))))
508, 12, 16, 20, 21, 49nn0ind 12065 1 (𝑁 ∈ ℕ0 → (!‘𝑁) ≤ (𝑁𝑁))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 209  wa 399   = wceq 1538  wcel 2111   class class class wbr 5030  cfv 6324  (class class class)co 7135  cr 10525  0cc0 10526  1c1 10527   + caddc 10529   · cmul 10531   < clt 10664  cle 10665  cn 11625  0cn0 11885  cexp 13425  !cfa 13629
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1797  ax-4 1811  ax-5 1911  ax-6 1970  ax-7 2015  ax-8 2113  ax-9 2121  ax-10 2142  ax-11 2158  ax-12 2175  ax-ext 2770  ax-sep 5167  ax-nul 5174  ax-pow 5231  ax-pr 5295  ax-un 7441  ax-cnex 10582  ax-resscn 10583  ax-1cn 10584  ax-icn 10585  ax-addcl 10586  ax-addrcl 10587  ax-mulcl 10588  ax-mulrcl 10589  ax-mulcom 10590  ax-addass 10591  ax-mulass 10592  ax-distr 10593  ax-i2m1 10594  ax-1ne0 10595  ax-1rid 10596  ax-rnegex 10597  ax-rrecex 10598  ax-cnre 10599  ax-pre-lttri 10600  ax-pre-lttrn 10601  ax-pre-ltadd 10602  ax-pre-mulgt0 10603
This theorem depends on definitions:  df-bi 210  df-an 400  df-or 845  df-3or 1085  df-3an 1086  df-tru 1541  df-ex 1782  df-nf 1786  df-sb 2070  df-mo 2598  df-eu 2629  df-clab 2777  df-cleq 2791  df-clel 2870  df-nfc 2938  df-ne 2988  df-nel 3092  df-ral 3111  df-rex 3112  df-reu 3113  df-rab 3115  df-v 3443  df-sbc 3721  df-csb 3829  df-dif 3884  df-un 3886  df-in 3888  df-ss 3898  df-pss 3900  df-nul 4244  df-if 4426  df-pw 4499  df-sn 4526  df-pr 4528  df-tp 4530  df-op 4532  df-uni 4801  df-iun 4883  df-br 5031  df-opab 5093  df-mpt 5111  df-tr 5137  df-id 5425  df-eprel 5430  df-po 5438  df-so 5439  df-fr 5478  df-we 5480  df-xp 5525  df-rel 5526  df-cnv 5527  df-co 5528  df-dm 5529  df-rn 5530  df-res 5531  df-ima 5532  df-pred 6116  df-ord 6162  df-on 6163  df-lim 6164  df-suc 6165  df-iota 6283  df-fun 6326  df-fn 6327  df-f 6328  df-f1 6329  df-fo 6330  df-f1o 6331  df-fv 6332  df-riota 7093  df-ov 7138  df-oprab 7139  df-mpo 7140  df-om 7561  df-2nd 7672  df-wrecs 7930  df-recs 7991  df-rdg 8029  df-er 8272  df-en 8493  df-dom 8494  df-sdom 8495  df-pnf 10666  df-mnf 10667  df-xr 10668  df-ltxr 10669  df-le 10670  df-sub 10861  df-neg 10862  df-nn 11626  df-n0 11886  df-z 11970  df-uz 12232  df-seq 13365  df-exp 13426  df-fac 13630
This theorem is referenced by:  logfacubnd  25805  pgrple2abl  44767
  Copyright terms: Public domain W3C validator