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

Theorem logfac 26989
Description: The logarithm of a factorial can be expressed as a finite sum of logs. (Contributed by Mario Carneiro, 17-Apr-2015.)
Assertion
Ref Expression
logfac (𝑁 ∈ ℕ0 → (log‘(!‘𝑁)) = Σ𝑘 ∈ (1...𝑁)(log‘𝑘))
Distinct variable group:   𝑘,𝑁

Proof of Theorem logfac
Dummy variable 𝑛 is distinct from all other variables.
StepHypRef Expression
1 elnn0 12648 . 2 (𝑁 ∈ ℕ0 ↔ (𝑁 ∈ ℕ ∨ 𝑁 = 0))
2 rpmulcl 13185 . . . . . 6 ((𝑘 ∈ ℝ+ ∧ 𝑛 ∈ ℝ+) → (𝑘 · 𝑛) ∈ ℝ+)
32adantl 487 . . . . 5 ((𝑁 ∈ ℕ ∧ (𝑘 ∈ ℝ+ ∧ 𝑛 ∈ ℝ+)) → (𝑘 · 𝑛) ∈ ℝ+)
4 fvi 6992 . . . . . . 7 (𝑘 ∈ V → ( I ‘𝑘) = 𝑘)
54elv 3458 . . . . . 6 ( I ‘𝑘) = 𝑘
6 elfznn 13727 . . . . . . . 8 (𝑘 ∈ (1...𝑁) → 𝑘 ∈ ℕ)
76adantl 487 . . . . . . 7 ((𝑁 ∈ ℕ ∧ 𝑘 ∈ (1...𝑁)) → 𝑘 ∈ ℕ)
87nnrpd 13202 . . . . . 6 ((𝑁 ∈ ℕ ∧ 𝑘 ∈ (1...𝑁)) → 𝑘 ∈ ℝ+)
95, 8eqeltrid 2871 . . . . 5 ((𝑁 ∈ ℕ ∧ 𝑘 ∈ (1...𝑁)) → ( I ‘𝑘) ∈ ℝ+)
10 elnnuz 13045 . . . . . 6 (𝑁 ∈ ℕ ↔ 𝑁 ∈ (ℤ≥‘1))
1110biimpi 219 . . . . 5 (𝑁 ∈ ℕ → 𝑁 ∈ (ℤ≥‘1))
12 relogmul 26980 . . . . . 6 ((𝑘 ∈ ℝ+ ∧ 𝑛 ∈ ℝ+) → (log‘(𝑘 · 𝑛)) = ((log‘𝑘) + (log‘𝑛)))
1312adantl 487 . . . . 5 ((𝑁 ∈ ℕ ∧ (𝑘 ∈ ℝ+ ∧ 𝑛 ∈ ℝ+)) → (log‘(𝑘 · 𝑛)) = ((log‘𝑘) + (log‘𝑛)))
145fveq2i 6919 . . . . . 6 (log‘( I ‘𝑘)) = (log‘𝑘)
1514a1i 11 . . . . 5 ((𝑁 ∈ ℕ ∧ 𝑘 ∈ (1...𝑁)) → (log‘( I ‘𝑘)) = (log‘𝑘))
163, 9, 11, 13, 15seqhomo 14232 . . . 4 (𝑁 ∈ ℕ → (log‘(seq1( · , I )‘𝑁)) = (seq1( + , log)‘𝑁))
17 facnn 14460 . . . . 5 (𝑁 ∈ ℕ → (!‘𝑁) = (seq1( · , I )‘𝑁))
1817fveq2d 6920 . . . 4 (𝑁 ∈ ℕ → (log‘(!‘𝑁)) = (log‘(seq1( · , I )‘𝑁)))
19 eqidd 2767 . . . . 5 ((𝑁 ∈ ℕ ∧ 𝑘 ∈ (1...𝑁)) → (log‘𝑘) = (log‘𝑘))
20 relogcl 26963 . . . . . . 7 (𝑘 ∈ ℝ+ → (log‘𝑘) ∈ ℝ)
218, 20syl 18 . . . . . 6 ((𝑁 ∈ ℕ ∧ 𝑘 ∈ (1...𝑁)) → (log‘𝑘) ∈ ℝ)
2221recnd 11376 . . . . 5 ((𝑁 ∈ ℕ ∧ 𝑘 ∈ (1...𝑁)) → (log‘𝑘) ∈ ℂ)
2319, 11, 22fsumser 15940 . . . 4 (𝑁 ∈ ℕ → Σ𝑘 ∈ (1...𝑁)(log‘𝑘) = (seq1( + , log)‘𝑁))
2416, 18, 233eqtr4d 2811 . . 3 (𝑁 ∈ ℕ → (log‘(!‘𝑁)) = Σ𝑘 ∈ (1...𝑁)(log‘𝑘))
25 log1 26973 . . . . 5 (log‘1) = 0
26 sum0 15931 . . . . 5 Σ𝑘 ∈ ∅ (log‘𝑘) = 0
2725, 26eqtr4i 2792 . . . 4 (log‘1) = Σ𝑘 ∈ ∅ (log‘𝑘)
28 fveq2 6916 . . . . . 6 (𝑁 = 0 → (!‘𝑁) = (!‘0))
29 fac0 14461 . . . . . 6 (!‘0) = 1
3028, 29eqtrdi 2817 . . . . 5 (𝑁 = 0 → (!‘𝑁) = 1)
3130fveq2d 6920 . . . 4 (𝑁 = 0 → (log‘(!‘𝑁)) = (log‘1))
32 oveq2 7459 . . . . . 6 (𝑁 = 0 → (1...𝑁) = (1...0))
33 fz10 13718 . . . . . 6 (1...0) = ∅
3432, 33eqtrdi 2817 . . . . 5 (𝑁 = 0 → (1...𝑁) = ∅)
3534sumeq1d 15911 . . . 4 (𝑁 = 0 → Σ𝑘 ∈ (1...𝑁)(log‘𝑘) = Σ𝑘 ∈ ∅ (log‘𝑘))
3627, 31, 353eqtr4a 2827 . . 3 (𝑁 = 0 → (log‘(!‘𝑁)) = Σ𝑘 ∈ (1...𝑁)(log‘𝑘))
3724, 36jaoi 871 . 2 ((𝑁 ∈ ℕ ∨ 𝑁 = 0) → (log‘(!‘𝑁)) = Σ𝑘 ∈ (1...𝑁)(log‘𝑘))
381, 37sylbi 220 1 (𝑁 ∈ ℕ0 → (log‘(!‘𝑁)) = Σ𝑘 ∈ (1...𝑁)(log‘𝑘))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   → wi 4   ∧ wa 401   ∨ wo 861   = wceq 1572   ∈ wcel 2150  Vcvv 3453  ∅c0 4280   I cid 5551  ‘cfv 6566  (class class class)co 7451  ℝcr 11238  0cc0 11239  1c1 11240   + caddc 11242   · cmul 11244  ℕcn 12375  ℕ0cn0 12646  ℤ≥cuz 13005  ℝ+crp 13160  ...cfz 13679  seqcseq 14184  !cfa 14458  Σcsu 15897  logclog 26942
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1830  ax-4 1844  ax-5 1947  ax-6 2004  ax-7 2045  ax-8 2152  ax-9 2160  ax-10 2183  ax-11 2200  ax-12 2219  ax-ext 2738  ax-rep 5237  ax-sep 5254  ax-nul 5265  ax-pow 5333  ax-pr 5397  ax-un 7783  ax-inf2 9679  ax-cnex 11295  ax-resscn 11296  ax-1cn 11297  ax-icn 11298  ax-addcl 11299  ax-addrcl 11300  ax-mulcl 11301  ax-mulrcl 11302  ax-mulcom 11303  ax-addass 11304  ax-mulass 11305  ax-distr 11306  ax-i2m1 11307  ax-1ne0 11308  ax-1rid 11309  ax-rnegex 11310  ax-rrecex 11311  ax-cnre 11312  ax-pre-lttri 11313  ax-pre-lttrn 11314  ax-pre-ltadd 11315  ax-pre-mulgt0 11316  ax-pre-sup 11317  ax-addf 11318
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3or 1105  df-3an 1106  df-tru 1575  df-fal 1585  df-ex 1815  df-nf 1819  df-sb 2104  df-mo 2570  df-eu 2600  df-clab 2745  df-cleq 2758  df-clel 2842  df-nfc 2916  df-ne 2963  df-nel 3069  df-ral 3084  df-rex 3094  df-rmo 3368  df-reu 3369  df-rab 3416  df-v 3455  df-sbc 3742  df-csb 3851  df-ss 3900  df-pss 4016  df-dif 4049  df-in 4093  df-un 4153  df-nul 4281  df-if 4485  df-pw 4561  df-sn 4588  df-pr 4590  df-tp 4592  df-op 4840  df-uni 4872  df-int 4912  df-iun 4957  df-iin 4958  df-br 5108  df-opab 5173  df-mpt 5192  df-tr 5218  df-id 5552  df-eprel 5557  df-po 5565  df-so 5566  df-fr 5610  df-se 5611  df-we 5612  df-xp 5663  df-rel 5664  df-cnv 5665  df-co 5666  df-dm 5667  df-rn 5668  df-res 5669  df-ima 5670  df-pred 6330  df-ord 6391  df-on 6392  df-lim 6393  df-suc 6394  df-iota 6520  df-fun 6568  df-fn 6569  df-f 6570  df-f1 6571  df-fo 6572  df-f1o 6573  df-fv 6574  df-isom 6575  df-riota 7408  df-ov 7454  df-oprab 7455  df-mpo 7456  df-of 7725  df-om 7912  df-1st 8035  df-2nd 8036  df-supp 8215  df-frecs 8337  df-wrecs 8368  df-recs 8417  df-rdg 8456  df-1o 8514  df-2o 8515  df-er 8755  df-map 8887  df-pm 8888  df-ixp 8964  df-en 9012  df-dom 9013  df-sdom 9014  df-fin 9015  df-fsupp 9392  df-fi 9440  df-sup 9471  df-inf 9472  df-oi 9541  df-card 10057  df-pnf 11384  df-mnf 11385  df-xr 11386  df-ltxr 11387  df-le 11388  df-sub 11582  df-neg 11583  df-div 12014  df-nn 12376  df-2 12445  df-3 12446  df-4 12447  df-5 12448  df-6 12449  df-7 12450  df-8 12451  df-9 12452  df-n0 12647  df-z 12734  df-dec 12855  df-uz 13006  df-q 13116  df-rp 13161  df-xneg 13281  df-xadd 13282  df-xmul 13283  df-ioo 13520  df-ioc 13521  df-ico 13522  df-icc 13523  df-fz 13680  df-fzo 13829  df-fl 13972  df-mod 14050  df-seq 14185  df-exp 14245  df-fac 14459  df-bc 14488  df-hash 14516  df-shft 15263  df-cj 15309  df-re 15310  df-im 15311  df-sqrt 15445  df-abs 15446  df-limsup 15682  df-clim 15699  df-rlim 15700  df-sum 15898  df-ef 16277  df-sin 16279  df-cos 16280  df-pi 16282  df-struct 17372  df-sets 17389  df-slot 17407  df-ndx 17419  df-base 17435  df-ress 17456  df-plusg 17489  df-mulr 17490  df-starv 17491  df-sca 17492  df-vsca 17493  df-ip 17494  df-tset 17495  df-ple 17496  df-ds 17498  df-unif 17499  df-hom 17500  df-cco 17501  df-euf 17502  df-rest 17646  df-topn 17647  df-0g 17665  df-gsum 17666  df-topgen 17667  df-pt 17668  df-prds 17671  df-xrs 17727  df-qtop 17732  df-imas 17733  df-xps 17735  df-mre 17809  df-mrc 17810  df-acs 17812  df-mgm 18869  df-sgrp 18961  df-mnd 18977  df-submnd 19032  df-mulg 19331  df-cntz 19585  df-cmn 20050  df-psmet 21724  df-xmet 21725  df-met 21726  df-bl 21727  df-mopn 21728  df-fbas 21729  df-fg 21730  df-cnfld 21733  df-top 23270  df-topon 23287  df-topsp 23309  df-bases 23322  df-cld 23395  df-ntr 23396  df-cls 23397  df-nei 23474  df-lp 23512  df-perf 23513  df-cn 23603  df-cnp 23604  df-haus 23691  df-tx 23939  df-hmeo 24132  df-fil 24223  df-fm 24315  df-flim 24316  df-flf 24317  df-xms 24697  df-ms 24698  df-tms 24699  df-cncf 25257  df-limc 26244  df-dv 26245  df-log 26944
This theorem is used by:  birthdaylem2  27340  logfac2  27604  logfaclbnd  27609  logfacbnd3  27610
  Copyright terms: Public domain W3C validator