Users' Mathboxes Mathbox for Glauco Siliprandi < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >   Mathboxes  >  stirlingr Structured version   Visualization version   GIF version

Theorem stirlingr 46107
Description: Stirling's approximation formula for 𝑛 factorial: here convergence is expressed with respect to the standard topology on the reals. The main theorem stirling 46106 is proven for convergence in the topology of complex numbers. The variable 𝑅 is used to denote convergence with respect to the standard topology on the reals. (Contributed by Glauco Siliprandi, 29-Jun-2017.)
Hypotheses
Ref Expression
stirlingr.1 𝑆 = (𝑛 ∈ ℕ0 ↦ ((√‘((2 · π) · 𝑛)) · ((𝑛 / e)↑𝑛)))
stirlingr.2 𝑅 = (⇝𝑡‘(topGen‘ran (,)))
Assertion
Ref Expression
stirlingr (𝑛 ∈ ℕ ↦ ((!‘𝑛) / (𝑆𝑛)))𝑅1

Proof of Theorem stirlingr
StepHypRef Expression
1 stirlingr.1 . . 3 𝑆 = (𝑛 ∈ ℕ0 ↦ ((√‘((2 · π) · 𝑛)) · ((𝑛 / e)↑𝑛)))
21stirling 46106 . 2 (𝑛 ∈ ℕ ↦ ((!‘𝑛) / (𝑆𝑛))) ⇝ 1
3 stirlingr.2 . . . 4 𝑅 = (⇝𝑡‘(topGen‘ran (,)))
4 nnuz 12767 . . . 4 ℕ = (ℤ‘1)
5 1zzd 12495 . . . 4 (⊤ → 1 ∈ ℤ)
6 eqid 2730 . . . . . 6 (𝑛 ∈ ℕ ↦ ((!‘𝑛) / (𝑆𝑛))) = (𝑛 ∈ ℕ ↦ ((!‘𝑛) / (𝑆𝑛)))
7 nnnn0 12380 . . . . . . . 8 (𝑛 ∈ ℕ → 𝑛 ∈ ℕ0)
8 faccl 14182 . . . . . . . 8 (𝑛 ∈ ℕ0 → (!‘𝑛) ∈ ℕ)
9 nnre 12124 . . . . . . . 8 ((!‘𝑛) ∈ ℕ → (!‘𝑛) ∈ ℝ)
107, 8, 93syl 18 . . . . . . 7 (𝑛 ∈ ℕ → (!‘𝑛) ∈ ℝ)
11 2re 12191 . . . . . . . . . . . . . 14 2 ∈ ℝ
1211a1i 11 . . . . . . . . . . . . 13 (𝑛 ∈ ℕ → 2 ∈ ℝ)
13 pire 26386 . . . . . . . . . . . . . 14 π ∈ ℝ
1413a1i 11 . . . . . . . . . . . . 13 (𝑛 ∈ ℕ → π ∈ ℝ)
1512, 14remulcld 11134 . . . . . . . . . . . 12 (𝑛 ∈ ℕ → (2 · π) ∈ ℝ)
16 nnre 12124 . . . . . . . . . . . 12 (𝑛 ∈ ℕ → 𝑛 ∈ ℝ)
1715, 16remulcld 11134 . . . . . . . . . . 11 (𝑛 ∈ ℕ → ((2 · π) · 𝑛) ∈ ℝ)
18 0re 11106 . . . . . . . . . . . . . . 15 0 ∈ ℝ
1918a1i 11 . . . . . . . . . . . . . 14 (𝑛 ∈ ℕ → 0 ∈ ℝ)
20 2pos 12220 . . . . . . . . . . . . . . 15 0 < 2
2120a1i 11 . . . . . . . . . . . . . 14 (𝑛 ∈ ℕ → 0 < 2)
2219, 12, 21ltled 11253 . . . . . . . . . . . . 13 (𝑛 ∈ ℕ → 0 ≤ 2)
23 pipos 26388 . . . . . . . . . . . . . . 15 0 < π
2418, 13, 23ltleii 11228 . . . . . . . . . . . . . 14 0 ≤ π
2524a1i 11 . . . . . . . . . . . . 13 (𝑛 ∈ ℕ → 0 ≤ π)
2612, 14, 22, 25mulge0d 11686 . . . . . . . . . . . 12 (𝑛 ∈ ℕ → 0 ≤ (2 · π))
277nn0ge0d 12437 . . . . . . . . . . . 12 (𝑛 ∈ ℕ → 0 ≤ 𝑛)
2815, 16, 26, 27mulge0d 11686 . . . . . . . . . . 11 (𝑛 ∈ ℕ → 0 ≤ ((2 · π) · 𝑛))
2917, 28resqrtcld 15317 . . . . . . . . . 10 (𝑛 ∈ ℕ → (√‘((2 · π) · 𝑛)) ∈ ℝ)
30 ere 15988 . . . . . . . . . . . . 13 e ∈ ℝ
3130a1i 11 . . . . . . . . . . . 12 (𝑛 ∈ ℕ → e ∈ ℝ)
32 epos 16108 . . . . . . . . . . . . . 14 0 < e
3318, 32gtneii 11217 . . . . . . . . . . . . 13 e ≠ 0
3433a1i 11 . . . . . . . . . . . 12 (𝑛 ∈ ℕ → e ≠ 0)
3516, 31, 34redivcld 11941 . . . . . . . . . . 11 (𝑛 ∈ ℕ → (𝑛 / e) ∈ ℝ)
3635, 7reexpcld 14062 . . . . . . . . . 10 (𝑛 ∈ ℕ → ((𝑛 / e)↑𝑛) ∈ ℝ)
3729, 36remulcld 11134 . . . . . . . . 9 (𝑛 ∈ ℕ → ((√‘((2 · π) · 𝑛)) · ((𝑛 / e)↑𝑛)) ∈ ℝ)
381fvmpt2 6935 . . . . . . . . 9 ((𝑛 ∈ ℕ0 ∧ ((√‘((2 · π) · 𝑛)) · ((𝑛 / e)↑𝑛)) ∈ ℝ) → (𝑆𝑛) = ((√‘((2 · π) · 𝑛)) · ((𝑛 / e)↑𝑛)))
397, 37, 38syl2anc 584 . . . . . . . 8 (𝑛 ∈ ℕ → (𝑆𝑛) = ((√‘((2 · π) · 𝑛)) · ((𝑛 / e)↑𝑛)))
40 2rp 12887 . . . . . . . . . . . . 13 2 ∈ ℝ+
4140a1i 11 . . . . . . . . . . . 12 (𝑛 ∈ ℕ → 2 ∈ ℝ+)
42 pirp 26390 . . . . . . . . . . . . 13 π ∈ ℝ+
4342a1i 11 . . . . . . . . . . . 12 (𝑛 ∈ ℕ → π ∈ ℝ+)
4441, 43rpmulcld 12942 . . . . . . . . . . 11 (𝑛 ∈ ℕ → (2 · π) ∈ ℝ+)
45 nnrp 12894 . . . . . . . . . . 11 (𝑛 ∈ ℕ → 𝑛 ∈ ℝ+)
4644, 45rpmulcld 12942 . . . . . . . . . 10 (𝑛 ∈ ℕ → ((2 · π) · 𝑛) ∈ ℝ+)
4746rpsqrtcld 15311 . . . . . . . . 9 (𝑛 ∈ ℕ → (√‘((2 · π) · 𝑛)) ∈ ℝ+)
48 epr 16109 . . . . . . . . . . . 12 e ∈ ℝ+
4948a1i 11 . . . . . . . . . . 11 (𝑛 ∈ ℕ → e ∈ ℝ+)
5045, 49rpdivcld 12943 . . . . . . . . . 10 (𝑛 ∈ ℕ → (𝑛 / e) ∈ ℝ+)
51 nnz 12481 . . . . . . . . . 10 (𝑛 ∈ ℕ → 𝑛 ∈ ℤ)
5250, 51rpexpcld 14146 . . . . . . . . 9 (𝑛 ∈ ℕ → ((𝑛 / e)↑𝑛) ∈ ℝ+)
5347, 52rpmulcld 12942 . . . . . . . 8 (𝑛 ∈ ℕ → ((√‘((2 · π) · 𝑛)) · ((𝑛 / e)↑𝑛)) ∈ ℝ+)
5439, 53eqeltrd 2829 . . . . . . 7 (𝑛 ∈ ℕ → (𝑆𝑛) ∈ ℝ+)
5510, 54rerpdivcld 12957 . . . . . 6 (𝑛 ∈ ℕ → ((!‘𝑛) / (𝑆𝑛)) ∈ ℝ)
566, 55fmpti 7040 . . . . 5 (𝑛 ∈ ℕ ↦ ((!‘𝑛) / (𝑆𝑛))):ℕ⟶ℝ
5756a1i 11 . . . 4 (⊤ → (𝑛 ∈ ℕ ↦ ((!‘𝑛) / (𝑆𝑛))):ℕ⟶ℝ)
583, 4, 5, 57climreeq 45632 . . 3 (⊤ → ((𝑛 ∈ ℕ ↦ ((!‘𝑛) / (𝑆𝑛)))𝑅1 ↔ (𝑛 ∈ ℕ ↦ ((!‘𝑛) / (𝑆𝑛))) ⇝ 1))
5958mptru 1548 . 2 ((𝑛 ∈ ℕ ↦ ((!‘𝑛) / (𝑆𝑛)))𝑅1 ↔ (𝑛 ∈ ℕ ↦ ((!‘𝑛) / (𝑆𝑛))) ⇝ 1)
602, 59mpbir 231 1 (𝑛 ∈ ℕ ↦ ((!‘𝑛) / (𝑆𝑛)))𝑅1
Colors of variables: wff setvar class
Syntax hints:  wb 206   = wceq 1541  wtru 1542  wcel 2110  wne 2926   class class class wbr 5089  cmpt 5170  ran crn 5615  wf 6473  cfv 6477  (class class class)co 7341  cr 10997  0cc0 10998  1c1 10999   · cmul 11003   < clt 11138  cle 11139   / cdiv 11766  cn 12117  2c2 12172  0cn0 12373  +crp 12882  (,)cioo 13237  cexp 13960  !cfa 14172  csqrt 15132  cli 15383  eceu 15961  πcpi 15965  topGenctg 17333  𝑡clm 23134
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1796  ax-4 1810  ax-5 1911  ax-6 1968  ax-7 2009  ax-8 2112  ax-9 2120  ax-10 2143  ax-11 2159  ax-12 2179  ax-ext 2702  ax-rep 5215  ax-sep 5232  ax-nul 5242  ax-pow 5301  ax-pr 5368  ax-un 7663  ax-inf2 9526  ax-cc 10318  ax-cnex 11054  ax-resscn 11055  ax-1cn 11056  ax-icn 11057  ax-addcl 11058  ax-addrcl 11059  ax-mulcl 11060  ax-mulrcl 11061  ax-mulcom 11062  ax-addass 11063  ax-mulass 11064  ax-distr 11065  ax-i2m1 11066  ax-1ne0 11067  ax-1rid 11068  ax-rnegex 11069  ax-rrecex 11070  ax-cnre 11071  ax-pre-lttri 11072  ax-pre-lttrn 11073  ax-pre-ltadd 11074  ax-pre-mulgt0 11075  ax-pre-sup 11076  ax-addf 11077
This theorem depends on definitions:  df-bi 207  df-an 396  df-or 848  df-3or 1087  df-3an 1088  df-tru 1544  df-fal 1554  df-ex 1781  df-nf 1785  df-sb 2067  df-mo 2534  df-eu 2563  df-clab 2709  df-cleq 2722  df-clel 2804  df-nfc 2879  df-ne 2927  df-nel 3031  df-ral 3046  df-rex 3055  df-rmo 3344  df-reu 3345  df-rab 3394  df-v 3436  df-sbc 3740  df-csb 3849  df-dif 3903  df-un 3905  df-in 3907  df-ss 3917  df-pss 3920  df-symdif 4201  df-nul 4282  df-if 4474  df-pw 4550  df-sn 4575  df-pr 4577  df-tp 4579  df-op 4581  df-uni 4858  df-int 4896  df-iun 4941  df-iin 4942  df-disj 5057  df-br 5090  df-opab 5152  df-mpt 5171  df-tr 5197  df-id 5509  df-eprel 5514  df-po 5522  df-so 5523  df-fr 5567  df-se 5568  df-we 5569  df-xp 5620  df-rel 5621  df-cnv 5622  df-co 5623  df-dm 5624  df-rn 5625  df-res 5626  df-ima 5627  df-pred 6244  df-ord 6305  df-on 6306  df-lim 6307  df-suc 6308  df-iota 6433  df-fun 6479  df-fn 6480  df-f 6481  df-f1 6482  df-fo 6483  df-f1o 6484  df-fv 6485  df-isom 6486  df-riota 7298  df-ov 7344  df-oprab 7345  df-mpo 7346  df-of 7605  df-ofr 7606  df-om 7792  df-1st 7916  df-2nd 7917  df-supp 8086  df-frecs 8206  df-wrecs 8237  df-recs 8286  df-rdg 8324  df-1o 8380  df-2o 8381  df-oadd 8384  df-omul 8385  df-er 8617  df-map 8747  df-pm 8748  df-ixp 8817  df-en 8865  df-dom 8866  df-sdom 8867  df-fin 8868  df-fsupp 9241  df-fi 9290  df-sup 9321  df-inf 9322  df-oi 9391  df-dju 9786  df-card 9824  df-acn 9827  df-pnf 11140  df-mnf 11141  df-xr 11142  df-ltxr 11143  df-le 11144  df-sub 11338  df-neg 11339  df-div 11767  df-nn 12118  df-2 12180  df-3 12181  df-4 12182  df-5 12183  df-6 12184  df-7 12185  df-8 12186  df-9 12187  df-n0 12374  df-xnn0 12447  df-z 12461  df-dec 12581  df-uz 12725  df-q 12839  df-rp 12883  df-xneg 13003  df-xadd 13004  df-xmul 13005  df-ioo 13241  df-ioc 13242  df-ico 13243  df-icc 13244  df-fz 13400  df-fzo 13547  df-fl 13688  df-mod 13766  df-seq 13901  df-exp 13961  df-fac 14173  df-bc 14202  df-hash 14230  df-shft 14966  df-cj 14998  df-re 14999  df-im 15000  df-sqrt 15134  df-abs 15135  df-limsup 15370  df-clim 15387  df-rlim 15388  df-sum 15586  df-ef 15966  df-e 15967  df-sin 15968  df-cos 15969  df-tan 15970  df-pi 15971  df-dvds 16156  df-struct 17050  df-sets 17067  df-slot 17085  df-ndx 17097  df-base 17113  df-ress 17134  df-plusg 17166  df-mulr 17167  df-starv 17168  df-sca 17169  df-vsca 17170  df-ip 17171  df-tset 17172  df-ple 17173  df-ds 17175  df-unif 17176  df-hom 17177  df-cco 17178  df-rest 17318  df-topn 17319  df-0g 17337  df-gsum 17338  df-topgen 17339  df-pt 17340  df-prds 17343  df-xrs 17398  df-qtop 17403  df-imas 17404  df-xps 17406  df-mre 17480  df-mrc 17481  df-acs 17483  df-mgm 18540  df-sgrp 18619  df-mnd 18635  df-submnd 18684  df-mulg 18973  df-cntz 19222  df-cmn 19687  df-psmet 21276  df-xmet 21277  df-met 21278  df-bl 21279  df-mopn 21280  df-fbas 21281  df-fg 21282  df-cnfld 21285  df-top 22802  df-topon 22819  df-topsp 22841  df-bases 22854  df-cld 22927  df-ntr 22928  df-cls 22929  df-nei 23006  df-lp 23044  df-perf 23045  df-cn 23135  df-cnp 23136  df-lm 23137  df-haus 23223  df-cmp 23295  df-tx 23470  df-hmeo 23663  df-fil 23754  df-fm 23846  df-flim 23847  df-flf 23848  df-xms 24228  df-ms 24229  df-tms 24230  df-cncf 24791  df-ovol 25385  df-vol 25386  df-mbf 25540  df-itg1 25541  df-itg2 25542  df-ibl 25543  df-itg 25544  df-0p 25591  df-limc 25787  df-dv 25788  df-ulm 26306  df-log 26485  df-cxp 26486
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator