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

Theorem dvdsflsumcom 25135
Description: A sum commutation from Σ𝑛𝐴, Σ𝑑𝑛, 𝐵(𝑛, 𝑑) to Σ𝑑𝐴, Σ𝑚𝐴 / 𝑑, 𝐵(𝑛, 𝑑𝑚). (Contributed by Mario Carneiro, 4-May-2016.)
Hypotheses
Ref Expression
dvdsflsumcom.1 (𝑛 = (𝑑 · 𝑚) → 𝐵 = 𝐶)
dvdsflsumcom.2 (𝜑𝐴 ∈ ℝ)
dvdsflsumcom.3 ((𝜑 ∧ (𝑛 ∈ (1...(⌊‘𝐴)) ∧ 𝑑 ∈ {𝑥 ∈ ℕ ∣ 𝑥𝑛})) → 𝐵 ∈ ℂ)
Assertion
Ref Expression
dvdsflsumcom (𝜑 → Σ𝑛 ∈ (1...(⌊‘𝐴))Σ𝑑 ∈ {𝑥 ∈ ℕ ∣ 𝑥𝑛}𝐵 = Σ𝑑 ∈ (1...(⌊‘𝐴))Σ𝑚 ∈ (1...(⌊‘(𝐴 / 𝑑)))𝐶)
Distinct variable groups:   𝑚,𝑑,𝑛,𝑥,𝐴   𝐵,𝑚   𝐶,𝑛   𝜑,𝑑,𝑚,𝑛
Allowed substitution hints:   𝜑(𝑥)   𝐵(𝑥,𝑛,𝑑)   𝐶(𝑥,𝑚,𝑑)

Proof of Theorem dvdsflsumcom
Dummy variable 𝑦 is distinct from all other variables.
StepHypRef Expression
1 fzfid 12980 . . 3 (𝜑 → (1...(⌊‘𝐴)) ∈ Fin)
2 fzfid 12980 . . . 4 ((𝜑𝑛 ∈ (1...(⌊‘𝐴))) → (1...𝑛) ∈ Fin)
3 elfznn 12577 . . . . . 6 (𝑛 ∈ (1...(⌊‘𝐴)) → 𝑛 ∈ ℕ)
43adantl 467 . . . . 5 ((𝜑𝑛 ∈ (1...(⌊‘𝐴))) → 𝑛 ∈ ℕ)
5 dvdsssfz1 15249 . . . . 5 (𝑛 ∈ ℕ → {𝑥 ∈ ℕ ∣ 𝑥𝑛} ⊆ (1...𝑛))
64, 5syl 17 . . . 4 ((𝜑𝑛 ∈ (1...(⌊‘𝐴))) → {𝑥 ∈ ℕ ∣ 𝑥𝑛} ⊆ (1...𝑛))
7 ssfi 8340 . . . 4 (((1...𝑛) ∈ Fin ∧ {𝑥 ∈ ℕ ∣ 𝑥𝑛} ⊆ (1...𝑛)) → {𝑥 ∈ ℕ ∣ 𝑥𝑛} ∈ Fin)
82, 6, 7syl2anc 573 . . 3 ((𝜑𝑛 ∈ (1...(⌊‘𝐴))) → {𝑥 ∈ ℕ ∣ 𝑥𝑛} ∈ Fin)
9 nnre 11233 . . . . . . . . . . . 12 (𝑑 ∈ ℕ → 𝑑 ∈ ℝ)
109ad2antrl 707 . . . . . . . . . . 11 (((𝜑𝑛 ∈ (1...(⌊‘𝐴))) ∧ (𝑑 ∈ ℕ ∧ 𝑑𝑛)) → 𝑑 ∈ ℝ)
114adantr 466 . . . . . . . . . . . 12 (((𝜑𝑛 ∈ (1...(⌊‘𝐴))) ∧ (𝑑 ∈ ℕ ∧ 𝑑𝑛)) → 𝑛 ∈ ℕ)
1211nnred 11241 . . . . . . . . . . 11 (((𝜑𝑛 ∈ (1...(⌊‘𝐴))) ∧ (𝑑 ∈ ℕ ∧ 𝑑𝑛)) → 𝑛 ∈ ℝ)
13 dvdsflsumcom.2 . . . . . . . . . . . 12 (𝜑𝐴 ∈ ℝ)
1413ad2antrr 705 . . . . . . . . . . 11 (((𝜑𝑛 ∈ (1...(⌊‘𝐴))) ∧ (𝑑 ∈ ℕ ∧ 𝑑𝑛)) → 𝐴 ∈ ℝ)
15 nnz 11606 . . . . . . . . . . . . 13 (𝑑 ∈ ℕ → 𝑑 ∈ ℤ)
16 dvdsle 15241 . . . . . . . . . . . . 13 ((𝑑 ∈ ℤ ∧ 𝑛 ∈ ℕ) → (𝑑𝑛𝑑𝑛))
1715, 4, 16syl2anr 584 . . . . . . . . . . . 12 (((𝜑𝑛 ∈ (1...(⌊‘𝐴))) ∧ 𝑑 ∈ ℕ) → (𝑑𝑛𝑑𝑛))
1817impr 442 . . . . . . . . . . 11 (((𝜑𝑛 ∈ (1...(⌊‘𝐴))) ∧ (𝑑 ∈ ℕ ∧ 𝑑𝑛)) → 𝑑𝑛)
19 fznnfl 12869 . . . . . . . . . . . . . 14 (𝐴 ∈ ℝ → (𝑛 ∈ (1...(⌊‘𝐴)) ↔ (𝑛 ∈ ℕ ∧ 𝑛𝐴)))
2013, 19syl 17 . . . . . . . . . . . . 13 (𝜑 → (𝑛 ∈ (1...(⌊‘𝐴)) ↔ (𝑛 ∈ ℕ ∧ 𝑛𝐴)))
2120simplbda 487 . . . . . . . . . . . 12 ((𝜑𝑛 ∈ (1...(⌊‘𝐴))) → 𝑛𝐴)
2221adantr 466 . . . . . . . . . . 11 (((𝜑𝑛 ∈ (1...(⌊‘𝐴))) ∧ (𝑑 ∈ ℕ ∧ 𝑑𝑛)) → 𝑛𝐴)
2310, 12, 14, 18, 22letrd 10400 . . . . . . . . . 10 (((𝜑𝑛 ∈ (1...(⌊‘𝐴))) ∧ (𝑑 ∈ ℕ ∧ 𝑑𝑛)) → 𝑑𝐴)
2423ex 397 . . . . . . . . 9 ((𝜑𝑛 ∈ (1...(⌊‘𝐴))) → ((𝑑 ∈ ℕ ∧ 𝑑𝑛) → 𝑑𝐴))
2524pm4.71rd 552 . . . . . . . 8 ((𝜑𝑛 ∈ (1...(⌊‘𝐴))) → ((𝑑 ∈ ℕ ∧ 𝑑𝑛) ↔ (𝑑𝐴 ∧ (𝑑 ∈ ℕ ∧ 𝑑𝑛))))
26 ancom 448 . . . . . . . . 9 ((𝑑𝐴 ∧ (𝑑 ∈ ℕ ∧ 𝑑𝑛)) ↔ ((𝑑 ∈ ℕ ∧ 𝑑𝑛) ∧ 𝑑𝐴))
27 an32 625 . . . . . . . . 9 (((𝑑 ∈ ℕ ∧ 𝑑𝑛) ∧ 𝑑𝐴) ↔ ((𝑑 ∈ ℕ ∧ 𝑑𝐴) ∧ 𝑑𝑛))
2826, 27bitri 264 . . . . . . . 8 ((𝑑𝐴 ∧ (𝑑 ∈ ℕ ∧ 𝑑𝑛)) ↔ ((𝑑 ∈ ℕ ∧ 𝑑𝐴) ∧ 𝑑𝑛))
2925, 28syl6bb 276 . . . . . . 7 ((𝜑𝑛 ∈ (1...(⌊‘𝐴))) → ((𝑑 ∈ ℕ ∧ 𝑑𝑛) ↔ ((𝑑 ∈ ℕ ∧ 𝑑𝐴) ∧ 𝑑𝑛)))
30 fznnfl 12869 . . . . . . . . . 10 (𝐴 ∈ ℝ → (𝑑 ∈ (1...(⌊‘𝐴)) ↔ (𝑑 ∈ ℕ ∧ 𝑑𝐴)))
3113, 30syl 17 . . . . . . . . 9 (𝜑 → (𝑑 ∈ (1...(⌊‘𝐴)) ↔ (𝑑 ∈ ℕ ∧ 𝑑𝐴)))
3231adantr 466 . . . . . . . 8 ((𝜑𝑛 ∈ (1...(⌊‘𝐴))) → (𝑑 ∈ (1...(⌊‘𝐴)) ↔ (𝑑 ∈ ℕ ∧ 𝑑𝐴)))
3332anbi1d 615 . . . . . . 7 ((𝜑𝑛 ∈ (1...(⌊‘𝐴))) → ((𝑑 ∈ (1...(⌊‘𝐴)) ∧ 𝑑𝑛) ↔ ((𝑑 ∈ ℕ ∧ 𝑑𝐴) ∧ 𝑑𝑛)))
3429, 33bitr4d 271 . . . . . 6 ((𝜑𝑛 ∈ (1...(⌊‘𝐴))) → ((𝑑 ∈ ℕ ∧ 𝑑𝑛) ↔ (𝑑 ∈ (1...(⌊‘𝐴)) ∧ 𝑑𝑛)))
3534pm5.32da 568 . . . . 5 (𝜑 → ((𝑛 ∈ (1...(⌊‘𝐴)) ∧ (𝑑 ∈ ℕ ∧ 𝑑𝑛)) ↔ (𝑛 ∈ (1...(⌊‘𝐴)) ∧ (𝑑 ∈ (1...(⌊‘𝐴)) ∧ 𝑑𝑛))))
36 an12 624 . . . . 5 ((𝑛 ∈ (1...(⌊‘𝐴)) ∧ (𝑑 ∈ (1...(⌊‘𝐴)) ∧ 𝑑𝑛)) ↔ (𝑑 ∈ (1...(⌊‘𝐴)) ∧ (𝑛 ∈ (1...(⌊‘𝐴)) ∧ 𝑑𝑛)))
3735, 36syl6bb 276 . . . 4 (𝜑 → ((𝑛 ∈ (1...(⌊‘𝐴)) ∧ (𝑑 ∈ ℕ ∧ 𝑑𝑛)) ↔ (𝑑 ∈ (1...(⌊‘𝐴)) ∧ (𝑛 ∈ (1...(⌊‘𝐴)) ∧ 𝑑𝑛))))
38 breq1 4790 . . . . . 6 (𝑥 = 𝑑 → (𝑥𝑛𝑑𝑛))
3938elrab 3515 . . . . 5 (𝑑 ∈ {𝑥 ∈ ℕ ∣ 𝑥𝑛} ↔ (𝑑 ∈ ℕ ∧ 𝑑𝑛))
4039anbi2i 609 . . . 4 ((𝑛 ∈ (1...(⌊‘𝐴)) ∧ 𝑑 ∈ {𝑥 ∈ ℕ ∣ 𝑥𝑛}) ↔ (𝑛 ∈ (1...(⌊‘𝐴)) ∧ (𝑑 ∈ ℕ ∧ 𝑑𝑛)))
41 breq2 4791 . . . . . 6 (𝑥 = 𝑛 → (𝑑𝑥𝑑𝑛))
4241elrab 3515 . . . . 5 (𝑛 ∈ {𝑥 ∈ (1...(⌊‘𝐴)) ∣ 𝑑𝑥} ↔ (𝑛 ∈ (1...(⌊‘𝐴)) ∧ 𝑑𝑛))
4342anbi2i 609 . . . 4 ((𝑑 ∈ (1...(⌊‘𝐴)) ∧ 𝑛 ∈ {𝑥 ∈ (1...(⌊‘𝐴)) ∣ 𝑑𝑥}) ↔ (𝑑 ∈ (1...(⌊‘𝐴)) ∧ (𝑛 ∈ (1...(⌊‘𝐴)) ∧ 𝑑𝑛)))
4437, 40, 433bitr4g 303 . . 3 (𝜑 → ((𝑛 ∈ (1...(⌊‘𝐴)) ∧ 𝑑 ∈ {𝑥 ∈ ℕ ∣ 𝑥𝑛}) ↔ (𝑑 ∈ (1...(⌊‘𝐴)) ∧ 𝑛 ∈ {𝑥 ∈ (1...(⌊‘𝐴)) ∣ 𝑑𝑥})))
45 dvdsflsumcom.3 . . 3 ((𝜑 ∧ (𝑛 ∈ (1...(⌊‘𝐴)) ∧ 𝑑 ∈ {𝑥 ∈ ℕ ∣ 𝑥𝑛})) → 𝐵 ∈ ℂ)
461, 1, 8, 44, 45fsumcom2 14713 . 2 (𝜑 → Σ𝑛 ∈ (1...(⌊‘𝐴))Σ𝑑 ∈ {𝑥 ∈ ℕ ∣ 𝑥𝑛}𝐵 = Σ𝑑 ∈ (1...(⌊‘𝐴))Σ𝑛 ∈ {𝑥 ∈ (1...(⌊‘𝐴)) ∣ 𝑑𝑥}𝐵)
47 dvdsflsumcom.1 . . . 4 (𝑛 = (𝑑 · 𝑚) → 𝐵 = 𝐶)
48 fzfid 12980 . . . 4 ((𝜑𝑑 ∈ (1...(⌊‘𝐴))) → (1...(⌊‘(𝐴 / 𝑑))) ∈ Fin)
4913adantr 466 . . . . 5 ((𝜑𝑑 ∈ (1...(⌊‘𝐴))) → 𝐴 ∈ ℝ)
5031simprbda 486 . . . . 5 ((𝜑𝑑 ∈ (1...(⌊‘𝐴))) → 𝑑 ∈ ℕ)
51 eqid 2771 . . . . 5 (𝑦 ∈ (1...(⌊‘(𝐴 / 𝑑))) ↦ (𝑑 · 𝑦)) = (𝑦 ∈ (1...(⌊‘(𝐴 / 𝑑))) ↦ (𝑑 · 𝑦))
5249, 50, 51dvdsflf1o 25134 . . . 4 ((𝜑𝑑 ∈ (1...(⌊‘𝐴))) → (𝑦 ∈ (1...(⌊‘(𝐴 / 𝑑))) ↦ (𝑑 · 𝑦)):(1...(⌊‘(𝐴 / 𝑑)))–1-1-onto→{𝑥 ∈ (1...(⌊‘𝐴)) ∣ 𝑑𝑥})
53 oveq2 6804 . . . . . 6 (𝑦 = 𝑚 → (𝑑 · 𝑦) = (𝑑 · 𝑚))
54 ovex 6827 . . . . . 6 (𝑑 · 𝑚) ∈ V
5553, 51, 54fvmpt 6426 . . . . 5 (𝑚 ∈ (1...(⌊‘(𝐴 / 𝑑))) → ((𝑦 ∈ (1...(⌊‘(𝐴 / 𝑑))) ↦ (𝑑 · 𝑦))‘𝑚) = (𝑑 · 𝑚))
5655adantl 467 . . . 4 (((𝜑𝑑 ∈ (1...(⌊‘𝐴))) ∧ 𝑚 ∈ (1...(⌊‘(𝐴 / 𝑑)))) → ((𝑦 ∈ (1...(⌊‘(𝐴 / 𝑑))) ↦ (𝑑 · 𝑦))‘𝑚) = (𝑑 · 𝑚))
5744biimpar 463 . . . . . 6 ((𝜑 ∧ (𝑑 ∈ (1...(⌊‘𝐴)) ∧ 𝑛 ∈ {𝑥 ∈ (1...(⌊‘𝐴)) ∣ 𝑑𝑥})) → (𝑛 ∈ (1...(⌊‘𝐴)) ∧ 𝑑 ∈ {𝑥 ∈ ℕ ∣ 𝑥𝑛}))
5857, 45syldan 579 . . . . 5 ((𝜑 ∧ (𝑑 ∈ (1...(⌊‘𝐴)) ∧ 𝑛 ∈ {𝑥 ∈ (1...(⌊‘𝐴)) ∣ 𝑑𝑥})) → 𝐵 ∈ ℂ)
5958anassrs 453 . . . 4 (((𝜑𝑑 ∈ (1...(⌊‘𝐴))) ∧ 𝑛 ∈ {𝑥 ∈ (1...(⌊‘𝐴)) ∣ 𝑑𝑥}) → 𝐵 ∈ ℂ)
6047, 48, 52, 56, 59fsumf1o 14662 . . 3 ((𝜑𝑑 ∈ (1...(⌊‘𝐴))) → Σ𝑛 ∈ {𝑥 ∈ (1...(⌊‘𝐴)) ∣ 𝑑𝑥}𝐵 = Σ𝑚 ∈ (1...(⌊‘(𝐴 / 𝑑)))𝐶)
6160sumeq2dv 14641 . 2 (𝜑 → Σ𝑑 ∈ (1...(⌊‘𝐴))Σ𝑛 ∈ {𝑥 ∈ (1...(⌊‘𝐴)) ∣ 𝑑𝑥}𝐵 = Σ𝑑 ∈ (1...(⌊‘𝐴))Σ𝑚 ∈ (1...(⌊‘(𝐴 / 𝑑)))𝐶)
6246, 61eqtrd 2805 1 (𝜑 → Σ𝑛 ∈ (1...(⌊‘𝐴))Σ𝑑 ∈ {𝑥 ∈ ℕ ∣ 𝑥𝑛}𝐵 = Σ𝑑 ∈ (1...(⌊‘𝐴))Σ𝑚 ∈ (1...(⌊‘(𝐴 / 𝑑)))𝐶)
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 196  wa 382   = wceq 1631  wcel 2145  {crab 3065  wss 3723   class class class wbr 4787  cmpt 4864  cfv 6030  (class class class)co 6796  Fincfn 8113  cc 10140  cr 10141  1c1 10143   · cmul 10147  cle 10281   / cdiv 10890  cn 11226  cz 11584  ...cfz 12533  cfl 12799  Σcsu 14624  cdvds 15189
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1870  ax-4 1885  ax-5 1991  ax-6 2057  ax-7 2093  ax-8 2147  ax-9 2154  ax-10 2174  ax-11 2190  ax-12 2203  ax-13 2408  ax-ext 2751  ax-rep 4905  ax-sep 4916  ax-nul 4924  ax-pow 4975  ax-pr 5035  ax-un 7100  ax-inf2 8706  ax-cnex 10198  ax-resscn 10199  ax-1cn 10200  ax-icn 10201  ax-addcl 10202  ax-addrcl 10203  ax-mulcl 10204  ax-mulrcl 10205  ax-mulcom 10206  ax-addass 10207  ax-mulass 10208  ax-distr 10209  ax-i2m1 10210  ax-1ne0 10211  ax-1rid 10212  ax-rnegex 10213  ax-rrecex 10214  ax-cnre 10215  ax-pre-lttri 10216  ax-pre-lttrn 10217  ax-pre-ltadd 10218  ax-pre-mulgt0 10219  ax-pre-sup 10220
This theorem depends on definitions:  df-bi 197  df-an 383  df-or 837  df-3or 1072  df-3an 1073  df-tru 1634  df-fal 1637  df-ex 1853  df-nf 1858  df-sb 2050  df-eu 2622  df-mo 2623  df-clab 2758  df-cleq 2764  df-clel 2767  df-nfc 2902  df-ne 2944  df-nel 3047  df-ral 3066  df-rex 3067  df-reu 3068  df-rmo 3069  df-rab 3070  df-v 3353  df-sbc 3588  df-csb 3683  df-dif 3726  df-un 3728  df-in 3730  df-ss 3737  df-pss 3739  df-nul 4064  df-if 4227  df-pw 4300  df-sn 4318  df-pr 4320  df-tp 4322  df-op 4324  df-uni 4576  df-int 4613  df-iun 4657  df-br 4788  df-opab 4848  df-mpt 4865  df-tr 4888  df-id 5158  df-eprel 5163  df-po 5171  df-so 5172  df-fr 5209  df-se 5210  df-we 5211  df-xp 5256  df-rel 5257  df-cnv 5258  df-co 5259  df-dm 5260  df-rn 5261  df-res 5262  df-ima 5263  df-pred 5822  df-ord 5868  df-on 5869  df-lim 5870  df-suc 5871  df-iota 5993  df-fun 6032  df-fn 6033  df-f 6034  df-f1 6035  df-fo 6036  df-f1o 6037  df-fv 6038  df-isom 6039  df-riota 6757  df-ov 6799  df-oprab 6800  df-mpt2 6801  df-om 7217  df-1st 7319  df-2nd 7320  df-wrecs 7563  df-recs 7625  df-rdg 7663  df-1o 7717  df-oadd 7721  df-er 7900  df-en 8114  df-dom 8115  df-sdom 8116  df-fin 8117  df-sup 8508  df-inf 8509  df-oi 8575  df-card 8969  df-pnf 10282  df-mnf 10283  df-xr 10284  df-ltxr 10285  df-le 10286  df-sub 10474  df-neg 10475  df-div 10891  df-nn 11227  df-2 11285  df-3 11286  df-n0 11500  df-z 11585  df-uz 11894  df-rp 12036  df-fz 12534  df-fzo 12674  df-fl 12801  df-seq 13009  df-exp 13068  df-hash 13322  df-cj 14047  df-re 14048  df-im 14049  df-sqrt 14183  df-abs 14184  df-clim 14427  df-sum 14625  df-dvds 15190
This theorem is referenced by:  dchrmusum2  25404  dchrvmasumlem1  25405  dchrvmasum2lem  25406  dchrisum0  25430  mudivsum  25440  mulogsum  25442  mulog2sumlem2  25445  vmalogdivsum2  25448  selberglem3  25457  selberg  25458  selberg34r  25481  pntsval2  25486
  Copyright terms: Public domain W3C validator