Users' Mathboxes Mathbox for Thierry Arnoux < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >   Mathboxes  >  eulerpartlemgs2 Structured version   Visualization version   GIF version

Theorem eulerpartlemgs2 32343
Description: Lemma for eulerpart 32345: The 𝐺 function also preserves partition sums. (Contributed by Thierry Arnoux, 10-Sep-2017.)
Hypotheses
Ref Expression
eulerpart.p 𝑃 = {𝑓 ∈ (ℕ0m ℕ) ∣ ((𝑓 “ ℕ) ∈ Fin ∧ Σ𝑘 ∈ ℕ ((𝑓𝑘) · 𝑘) = 𝑁)}
eulerpart.o 𝑂 = {𝑔𝑃 ∣ ∀𝑛 ∈ (𝑔 “ ℕ) ¬ 2 ∥ 𝑛}
eulerpart.d 𝐷 = {𝑔𝑃 ∣ ∀𝑛 ∈ ℕ (𝑔𝑛) ≤ 1}
eulerpart.j 𝐽 = {𝑧 ∈ ℕ ∣ ¬ 2 ∥ 𝑧}
eulerpart.f 𝐹 = (𝑥𝐽, 𝑦 ∈ ℕ0 ↦ ((2↑𝑦) · 𝑥))
eulerpart.h 𝐻 = {𝑟 ∈ ((𝒫 ℕ0 ∩ Fin) ↑m 𝐽) ∣ (𝑟 supp ∅) ∈ Fin}
eulerpart.m 𝑀 = (𝑟𝐻 ↦ {⟨𝑥, 𝑦⟩ ∣ (𝑥𝐽𝑦 ∈ (𝑟𝑥))})
eulerpart.r 𝑅 = {𝑓 ∣ (𝑓 “ ℕ) ∈ Fin}
eulerpart.t 𝑇 = {𝑓 ∈ (ℕ0m ℕ) ∣ (𝑓 “ ℕ) ⊆ 𝐽}
eulerpart.g 𝐺 = (𝑜 ∈ (𝑇𝑅) ↦ ((𝟭‘ℕ)‘(𝐹 “ (𝑀‘(bits ∘ (𝑜𝐽))))))
eulerpart.s 𝑆 = (𝑓 ∈ ((ℕ0m ℕ) ∩ 𝑅) ↦ Σ𝑘 ∈ ℕ ((𝑓𝑘) · 𝑘))
Assertion
Ref Expression
eulerpartlemgs2 (𝐴 ∈ (𝑇𝑅) → (𝑆‘(𝐺𝐴)) = (𝑆𝐴))
Distinct variable groups:   𝑓,𝑔,𝑘,𝑛,𝑜,𝑥,𝑦,𝑧   𝑓,𝑟,𝐴,𝑔,𝑘,𝑛,𝑜,𝑥,𝑦   𝑓,𝐺,𝑘   𝑛,𝐹,𝑜,𝑥,𝑦   𝑜,𝐻,𝑟   𝑓,𝐽,𝑛,𝑜,𝑟,𝑥,𝑦   𝑛,𝑀,𝑜,𝑟,𝑥,𝑦   𝑓,𝑁,𝑔,𝑘,𝑛,𝑥   𝑛,𝑂,𝑟,𝑥,𝑦   𝑃,𝑔,𝑘,𝑛   𝑅,𝑓,𝑘,𝑛,𝑜,𝑟,𝑥,𝑦   𝑇,𝑓,𝑘,𝑛,𝑜,𝑟,𝑥,𝑦
Allowed substitution hints:   𝐴(𝑧)   𝐷(𝑥,𝑦,𝑧,𝑓,𝑔,𝑘,𝑛,𝑜,𝑟)   𝑃(𝑥,𝑦,𝑧,𝑓,𝑜,𝑟)   𝑅(𝑧,𝑔)   𝑆(𝑥,𝑦,𝑧,𝑓,𝑔,𝑘,𝑛,𝑜,𝑟)   𝑇(𝑧,𝑔)   𝐹(𝑧,𝑓,𝑔,𝑘,𝑟)   𝐺(𝑥,𝑦,𝑧,𝑔,𝑛,𝑜,𝑟)   𝐻(𝑥,𝑦,𝑧,𝑓,𝑔,𝑘,𝑛)   𝐽(𝑧,𝑔,𝑘)   𝑀(𝑧,𝑓,𝑔,𝑘)   𝑁(𝑦,𝑧,𝑜,𝑟)   𝑂(𝑧,𝑓,𝑔,𝑘,𝑜)

Proof of Theorem eulerpartlemgs2
Dummy variables 𝑡 𝑚 𝑤 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 cnvimass 5988 . . . . . . . 8 ((𝐺𝐴) “ ℕ) ⊆ dom (𝐺𝐴)
2 eulerpart.p . . . . . . . . . . . . . 14 𝑃 = {𝑓 ∈ (ℕ0m ℕ) ∣ ((𝑓 “ ℕ) ∈ Fin ∧ Σ𝑘 ∈ ℕ ((𝑓𝑘) · 𝑘) = 𝑁)}
3 eulerpart.o . . . . . . . . . . . . . 14 𝑂 = {𝑔𝑃 ∣ ∀𝑛 ∈ (𝑔 “ ℕ) ¬ 2 ∥ 𝑛}
4 eulerpart.d . . . . . . . . . . . . . 14 𝐷 = {𝑔𝑃 ∣ ∀𝑛 ∈ ℕ (𝑔𝑛) ≤ 1}
5 eulerpart.j . . . . . . . . . . . . . 14 𝐽 = {𝑧 ∈ ℕ ∣ ¬ 2 ∥ 𝑧}
6 eulerpart.f . . . . . . . . . . . . . 14 𝐹 = (𝑥𝐽, 𝑦 ∈ ℕ0 ↦ ((2↑𝑦) · 𝑥))
7 eulerpart.h . . . . . . . . . . . . . 14 𝐻 = {𝑟 ∈ ((𝒫 ℕ0 ∩ Fin) ↑m 𝐽) ∣ (𝑟 supp ∅) ∈ Fin}
8 eulerpart.m . . . . . . . . . . . . . 14 𝑀 = (𝑟𝐻 ↦ {⟨𝑥, 𝑦⟩ ∣ (𝑥𝐽𝑦 ∈ (𝑟𝑥))})
9 eulerpart.r . . . . . . . . . . . . . 14 𝑅 = {𝑓 ∣ (𝑓 “ ℕ) ∈ Fin}
10 eulerpart.t . . . . . . . . . . . . . 14 𝑇 = {𝑓 ∈ (ℕ0m ℕ) ∣ (𝑓 “ ℕ) ⊆ 𝐽}
11 eulerpart.g . . . . . . . . . . . . . 14 𝐺 = (𝑜 ∈ (𝑇𝑅) ↦ ((𝟭‘ℕ)‘(𝐹 “ (𝑀‘(bits ∘ (𝑜𝐽))))))
122, 3, 4, 5, 6, 7, 8, 9, 10, 11eulerpartgbij 32335 . . . . . . . . . . . . 13 𝐺:(𝑇𝑅)–1-1-onto→(({0, 1} ↑m ℕ) ∩ 𝑅)
13 f1of 6714 . . . . . . . . . . . . 13 (𝐺:(𝑇𝑅)–1-1-onto→(({0, 1} ↑m ℕ) ∩ 𝑅) → 𝐺:(𝑇𝑅)⟶(({0, 1} ↑m ℕ) ∩ 𝑅))
1412, 13ax-mp 5 . . . . . . . . . . . 12 𝐺:(𝑇𝑅)⟶(({0, 1} ↑m ℕ) ∩ 𝑅)
1514ffvelrni 6957 . . . . . . . . . . 11 (𝐴 ∈ (𝑇𝑅) → (𝐺𝐴) ∈ (({0, 1} ↑m ℕ) ∩ 𝑅))
16 elin 3908 . . . . . . . . . . 11 ((𝐺𝐴) ∈ (({0, 1} ↑m ℕ) ∩ 𝑅) ↔ ((𝐺𝐴) ∈ ({0, 1} ↑m ℕ) ∧ (𝐺𝐴) ∈ 𝑅))
1715, 16sylib 217 . . . . . . . . . 10 (𝐴 ∈ (𝑇𝑅) → ((𝐺𝐴) ∈ ({0, 1} ↑m ℕ) ∧ (𝐺𝐴) ∈ 𝑅))
1817simpld 495 . . . . . . . . 9 (𝐴 ∈ (𝑇𝑅) → (𝐺𝐴) ∈ ({0, 1} ↑m ℕ))
19 elmapi 8620 . . . . . . . . 9 ((𝐺𝐴) ∈ ({0, 1} ↑m ℕ) → (𝐺𝐴):ℕ⟶{0, 1})
20 fdm 6607 . . . . . . . . 9 ((𝐺𝐴):ℕ⟶{0, 1} → dom (𝐺𝐴) = ℕ)
2118, 19, 203syl 18 . . . . . . . 8 (𝐴 ∈ (𝑇𝑅) → dom (𝐺𝐴) = ℕ)
221, 21sseqtrid 3978 . . . . . . 7 (𝐴 ∈ (𝑇𝑅) → ((𝐺𝐴) “ ℕ) ⊆ ℕ)
2322sselda 3926 . . . . . 6 ((𝐴 ∈ (𝑇𝑅) ∧ 𝑘 ∈ ((𝐺𝐴) “ ℕ)) → 𝑘 ∈ ℕ)
242, 3, 4, 5, 6, 7, 8, 9, 10, 11eulerpartlemgvv 32339 . . . . . . 7 ((𝐴 ∈ (𝑇𝑅) ∧ 𝑘 ∈ ℕ) → ((𝐺𝐴)‘𝑘) = if(∃𝑡 ∈ ℕ ∃𝑛 ∈ (bits‘(𝐴𝑡))((2↑𝑛) · 𝑡) = 𝑘, 1, 0))
2524oveq1d 7286 . . . . . 6 ((𝐴 ∈ (𝑇𝑅) ∧ 𝑘 ∈ ℕ) → (((𝐺𝐴)‘𝑘) · 𝑘) = (if(∃𝑡 ∈ ℕ ∃𝑛 ∈ (bits‘(𝐴𝑡))((2↑𝑛) · 𝑡) = 𝑘, 1, 0) · 𝑘))
2623, 25syldan 591 . . . . 5 ((𝐴 ∈ (𝑇𝑅) ∧ 𝑘 ∈ ((𝐺𝐴) “ ℕ)) → (((𝐺𝐴)‘𝑘) · 𝑘) = (if(∃𝑡 ∈ ℕ ∃𝑛 ∈ (bits‘(𝐴𝑡))((2↑𝑛) · 𝑡) = 𝑘, 1, 0) · 𝑘))
2726sumeq2dv 15413 . . . 4 (𝐴 ∈ (𝑇𝑅) → Σ𝑘 ∈ ((𝐺𝐴) “ ℕ)(((𝐺𝐴)‘𝑘) · 𝑘) = Σ𝑘 ∈ ((𝐺𝐴) “ ℕ)(if(∃𝑡 ∈ ℕ ∃𝑛 ∈ (bits‘(𝐴𝑡))((2↑𝑛) · 𝑡) = 𝑘, 1, 0) · 𝑘))
28 eqeq2 2752 . . . . . . . . . . . . 13 (𝑚 = 𝑘 → (((2↑𝑛) · 𝑡) = 𝑚 ↔ ((2↑𝑛) · 𝑡) = 𝑘))
29282rexbidv 3231 . . . . . . . . . . . 12 (𝑚 = 𝑘 → (∃𝑡 ∈ ℕ ∃𝑛 ∈ (bits‘(𝐴𝑡))((2↑𝑛) · 𝑡) = 𝑚 ↔ ∃𝑡 ∈ ℕ ∃𝑛 ∈ (bits‘(𝐴𝑡))((2↑𝑛) · 𝑡) = 𝑘))
3029elrab 3626 . . . . . . . . . . 11 (𝑘 ∈ {𝑚 ∈ ℕ ∣ ∃𝑡 ∈ ℕ ∃𝑛 ∈ (bits‘(𝐴𝑡))((2↑𝑛) · 𝑡) = 𝑚} ↔ (𝑘 ∈ ℕ ∧ ∃𝑡 ∈ ℕ ∃𝑛 ∈ (bits‘(𝐴𝑡))((2↑𝑛) · 𝑡) = 𝑘))
3130simprbi 497 . . . . . . . . . 10 (𝑘 ∈ {𝑚 ∈ ℕ ∣ ∃𝑡 ∈ ℕ ∃𝑛 ∈ (bits‘(𝐴𝑡))((2↑𝑛) · 𝑡) = 𝑚} → ∃𝑡 ∈ ℕ ∃𝑛 ∈ (bits‘(𝐴𝑡))((2↑𝑛) · 𝑡) = 𝑘)
3231iftrued 4473 . . . . . . . . 9 (𝑘 ∈ {𝑚 ∈ ℕ ∣ ∃𝑡 ∈ ℕ ∃𝑛 ∈ (bits‘(𝐴𝑡))((2↑𝑛) · 𝑡) = 𝑚} → if(∃𝑡 ∈ ℕ ∃𝑛 ∈ (bits‘(𝐴𝑡))((2↑𝑛) · 𝑡) = 𝑘, 1, 0) = 1)
3332oveq1d 7286 . . . . . . . 8 (𝑘 ∈ {𝑚 ∈ ℕ ∣ ∃𝑡 ∈ ℕ ∃𝑛 ∈ (bits‘(𝐴𝑡))((2↑𝑛) · 𝑡) = 𝑚} → (if(∃𝑡 ∈ ℕ ∃𝑛 ∈ (bits‘(𝐴𝑡))((2↑𝑛) · 𝑡) = 𝑘, 1, 0) · 𝑘) = (1 · 𝑘))
34 elrabi 3620 . . . . . . . . . 10 (𝑘 ∈ {𝑚 ∈ ℕ ∣ ∃𝑡 ∈ ℕ ∃𝑛 ∈ (bits‘(𝐴𝑡))((2↑𝑛) · 𝑡) = 𝑚} → 𝑘 ∈ ℕ)
3534nncnd 11989 . . . . . . . . 9 (𝑘 ∈ {𝑚 ∈ ℕ ∣ ∃𝑡 ∈ ℕ ∃𝑛 ∈ (bits‘(𝐴𝑡))((2↑𝑛) · 𝑡) = 𝑚} → 𝑘 ∈ ℂ)
3635mulid2d 10994 . . . . . . . 8 (𝑘 ∈ {𝑚 ∈ ℕ ∣ ∃𝑡 ∈ ℕ ∃𝑛 ∈ (bits‘(𝐴𝑡))((2↑𝑛) · 𝑡) = 𝑚} → (1 · 𝑘) = 𝑘)
3733, 36eqtrd 2780 . . . . . . 7 (𝑘 ∈ {𝑚 ∈ ℕ ∣ ∃𝑡 ∈ ℕ ∃𝑛 ∈ (bits‘(𝐴𝑡))((2↑𝑛) · 𝑡) = 𝑚} → (if(∃𝑡 ∈ ℕ ∃𝑛 ∈ (bits‘(𝐴𝑡))((2↑𝑛) · 𝑡) = 𝑘, 1, 0) · 𝑘) = 𝑘)
3837sumeq2i 15409 . . . . . 6 Σ𝑘 ∈ {𝑚 ∈ ℕ ∣ ∃𝑡 ∈ ℕ ∃𝑛 ∈ (bits‘(𝐴𝑡))((2↑𝑛) · 𝑡) = 𝑚} (if(∃𝑡 ∈ ℕ ∃𝑛 ∈ (bits‘(𝐴𝑡))((2↑𝑛) · 𝑡) = 𝑘, 1, 0) · 𝑘) = Σ𝑘 ∈ {𝑚 ∈ ℕ ∣ ∃𝑡 ∈ ℕ ∃𝑛 ∈ (bits‘(𝐴𝑡))((2↑𝑛) · 𝑡) = 𝑚}𝑘
39 id 22 . . . . . . 7 (𝑘 = ((2↑(2nd𝑤)) · (1st𝑤)) → 𝑘 = ((2↑(2nd𝑤)) · (1st𝑤)))
402, 3, 4, 5, 6, 7, 8, 9, 10, 11eulerpartlemgf 32342 . . . . . . . . 9 (𝐴 ∈ (𝑇𝑅) → ((𝐺𝐴) “ ℕ) ∈ Fin)
4134adantl 482 . . . . . . . . . . . 12 ((𝐴 ∈ (𝑇𝑅) ∧ 𝑘 ∈ {𝑚 ∈ ℕ ∣ ∃𝑡 ∈ ℕ ∃𝑛 ∈ (bits‘(𝐴𝑡))((2↑𝑛) · 𝑡) = 𝑚}) → 𝑘 ∈ ℕ)
4241, 24syldan 591 . . . . . . . . . . . . . 14 ((𝐴 ∈ (𝑇𝑅) ∧ 𝑘 ∈ {𝑚 ∈ ℕ ∣ ∃𝑡 ∈ ℕ ∃𝑛 ∈ (bits‘(𝐴𝑡))((2↑𝑛) · 𝑡) = 𝑚}) → ((𝐺𝐴)‘𝑘) = if(∃𝑡 ∈ ℕ ∃𝑛 ∈ (bits‘(𝐴𝑡))((2↑𝑛) · 𝑡) = 𝑘, 1, 0))
4331adantl 482 . . . . . . . . . . . . . . 15 ((𝐴 ∈ (𝑇𝑅) ∧ 𝑘 ∈ {𝑚 ∈ ℕ ∣ ∃𝑡 ∈ ℕ ∃𝑛 ∈ (bits‘(𝐴𝑡))((2↑𝑛) · 𝑡) = 𝑚}) → ∃𝑡 ∈ ℕ ∃𝑛 ∈ (bits‘(𝐴𝑡))((2↑𝑛) · 𝑡) = 𝑘)
4443iftrued 4473 . . . . . . . . . . . . . 14 ((𝐴 ∈ (𝑇𝑅) ∧ 𝑘 ∈ {𝑚 ∈ ℕ ∣ ∃𝑡 ∈ ℕ ∃𝑛 ∈ (bits‘(𝐴𝑡))((2↑𝑛) · 𝑡) = 𝑚}) → if(∃𝑡 ∈ ℕ ∃𝑛 ∈ (bits‘(𝐴𝑡))((2↑𝑛) · 𝑡) = 𝑘, 1, 0) = 1)
4542, 44eqtrd 2780 . . . . . . . . . . . . 13 ((𝐴 ∈ (𝑇𝑅) ∧ 𝑘 ∈ {𝑚 ∈ ℕ ∣ ∃𝑡 ∈ ℕ ∃𝑛 ∈ (bits‘(𝐴𝑡))((2↑𝑛) · 𝑡) = 𝑚}) → ((𝐺𝐴)‘𝑘) = 1)
46 1nn 11984 . . . . . . . . . . . . 13 1 ∈ ℕ
4745, 46eqeltrdi 2849 . . . . . . . . . . . 12 ((𝐴 ∈ (𝑇𝑅) ∧ 𝑘 ∈ {𝑚 ∈ ℕ ∣ ∃𝑡 ∈ ℕ ∃𝑛 ∈ (bits‘(𝐴𝑡))((2↑𝑛) · 𝑡) = 𝑚}) → ((𝐺𝐴)‘𝑘) ∈ ℕ)
4818, 19syl 17 . . . . . . . . . . . . . 14 (𝐴 ∈ (𝑇𝑅) → (𝐺𝐴):ℕ⟶{0, 1})
49 ffn 6598 . . . . . . . . . . . . . 14 ((𝐺𝐴):ℕ⟶{0, 1} → (𝐺𝐴) Fn ℕ)
50 elpreima 6932 . . . . . . . . . . . . . 14 ((𝐺𝐴) Fn ℕ → (𝑘 ∈ ((𝐺𝐴) “ ℕ) ↔ (𝑘 ∈ ℕ ∧ ((𝐺𝐴)‘𝑘) ∈ ℕ)))
5148, 49, 503syl 18 . . . . . . . . . . . . 13 (𝐴 ∈ (𝑇𝑅) → (𝑘 ∈ ((𝐺𝐴) “ ℕ) ↔ (𝑘 ∈ ℕ ∧ ((𝐺𝐴)‘𝑘) ∈ ℕ)))
5251adantr 481 . . . . . . . . . . . 12 ((𝐴 ∈ (𝑇𝑅) ∧ 𝑘 ∈ {𝑚 ∈ ℕ ∣ ∃𝑡 ∈ ℕ ∃𝑛 ∈ (bits‘(𝐴𝑡))((2↑𝑛) · 𝑡) = 𝑚}) → (𝑘 ∈ ((𝐺𝐴) “ ℕ) ↔ (𝑘 ∈ ℕ ∧ ((𝐺𝐴)‘𝑘) ∈ ℕ)))
5341, 47, 52mpbir2and 710 . . . . . . . . . . 11 ((𝐴 ∈ (𝑇𝑅) ∧ 𝑘 ∈ {𝑚 ∈ ℕ ∣ ∃𝑡 ∈ ℕ ∃𝑛 ∈ (bits‘(𝐴𝑡))((2↑𝑛) · 𝑡) = 𝑚}) → 𝑘 ∈ ((𝐺𝐴) “ ℕ))
5453ex 413 . . . . . . . . . 10 (𝐴 ∈ (𝑇𝑅) → (𝑘 ∈ {𝑚 ∈ ℕ ∣ ∃𝑡 ∈ ℕ ∃𝑛 ∈ (bits‘(𝐴𝑡))((2↑𝑛) · 𝑡) = 𝑚} → 𝑘 ∈ ((𝐺𝐴) “ ℕ)))
5554ssrdv 3932 . . . . . . . . 9 (𝐴 ∈ (𝑇𝑅) → {𝑚 ∈ ℕ ∣ ∃𝑡 ∈ ℕ ∃𝑛 ∈ (bits‘(𝐴𝑡))((2↑𝑛) · 𝑡) = 𝑚} ⊆ ((𝐺𝐴) “ ℕ))
56 ssfi 8938 . . . . . . . . 9 ((((𝐺𝐴) “ ℕ) ∈ Fin ∧ {𝑚 ∈ ℕ ∣ ∃𝑡 ∈ ℕ ∃𝑛 ∈ (bits‘(𝐴𝑡))((2↑𝑛) · 𝑡) = 𝑚} ⊆ ((𝐺𝐴) “ ℕ)) → {𝑚 ∈ ℕ ∣ ∃𝑡 ∈ ℕ ∃𝑛 ∈ (bits‘(𝐴𝑡))((2↑𝑛) · 𝑡) = 𝑚} ∈ Fin)
5740, 55, 56syl2anc 584 . . . . . . . 8 (𝐴 ∈ (𝑇𝑅) → {𝑚 ∈ ℕ ∣ ∃𝑡 ∈ ℕ ∃𝑛 ∈ (bits‘(𝐴𝑡))((2↑𝑛) · 𝑡) = 𝑚} ∈ Fin)
58 cnvexg 7765 . . . . . . . . . . 11 (𝐴 ∈ (𝑇𝑅) → 𝐴 ∈ V)
59 imaexg 7756 . . . . . . . . . . 11 (𝐴 ∈ V → (𝐴 “ ℕ) ∈ V)
60 inex1g 5247 . . . . . . . . . . 11 ((𝐴 “ ℕ) ∈ V → ((𝐴 “ ℕ) ∩ 𝐽) ∈ V)
6158, 59, 603syl 18 . . . . . . . . . 10 (𝐴 ∈ (𝑇𝑅) → ((𝐴 “ ℕ) ∩ 𝐽) ∈ V)
62 snex 5358 . . . . . . . . . . . 12 {𝑡} ∈ V
63 fvex 6784 . . . . . . . . . . . 12 (bits‘(𝐴𝑡)) ∈ V
6462, 63xpex 7597 . . . . . . . . . . 11 ({𝑡} × (bits‘(𝐴𝑡))) ∈ V
6564rgenw 3078 . . . . . . . . . 10 𝑡 ∈ ((𝐴 “ ℕ) ∩ 𝐽)({𝑡} × (bits‘(𝐴𝑡))) ∈ V
66 iunexg 7799 . . . . . . . . . 10 ((((𝐴 “ ℕ) ∩ 𝐽) ∈ V ∧ ∀𝑡 ∈ ((𝐴 “ ℕ) ∩ 𝐽)({𝑡} × (bits‘(𝐴𝑡))) ∈ V) → 𝑡 ∈ ((𝐴 “ ℕ) ∩ 𝐽)({𝑡} × (bits‘(𝐴𝑡))) ∈ V)
6761, 65, 66sylancl 586 . . . . . . . . 9 (𝐴 ∈ (𝑇𝑅) → 𝑡 ∈ ((𝐴 “ ℕ) ∩ 𝐽)({𝑡} × (bits‘(𝐴𝑡))) ∈ V)
68 eqid 2740 . . . . . . . . . 10 𝑡 ∈ ((𝐴 “ ℕ) ∩ 𝐽)({𝑡} × (bits‘(𝐴𝑡))) = 𝑡 ∈ ((𝐴 “ ℕ) ∩ 𝐽)({𝑡} × (bits‘(𝐴𝑡)))
692, 3, 4, 5, 6, 7, 8, 9, 10, 11, 68eulerpartlemgh 32341 . . . . . . . . 9 (𝐴 ∈ (𝑇𝑅) → (𝐹 𝑡 ∈ ((𝐴 “ ℕ) ∩ 𝐽)({𝑡} × (bits‘(𝐴𝑡)))): 𝑡 ∈ ((𝐴 “ ℕ) ∩ 𝐽)({𝑡} × (bits‘(𝐴𝑡)))–1-1-onto→{𝑚 ∈ ℕ ∣ ∃𝑡 ∈ ℕ ∃𝑛 ∈ (bits‘(𝐴𝑡))((2↑𝑛) · 𝑡) = 𝑚})
70 f1oeng 8742 . . . . . . . . 9 (( 𝑡 ∈ ((𝐴 “ ℕ) ∩ 𝐽)({𝑡} × (bits‘(𝐴𝑡))) ∈ V ∧ (𝐹 𝑡 ∈ ((𝐴 “ ℕ) ∩ 𝐽)({𝑡} × (bits‘(𝐴𝑡)))): 𝑡 ∈ ((𝐴 “ ℕ) ∩ 𝐽)({𝑡} × (bits‘(𝐴𝑡)))–1-1-onto→{𝑚 ∈ ℕ ∣ ∃𝑡 ∈ ℕ ∃𝑛 ∈ (bits‘(𝐴𝑡))((2↑𝑛) · 𝑡) = 𝑚}) → 𝑡 ∈ ((𝐴 “ ℕ) ∩ 𝐽)({𝑡} × (bits‘(𝐴𝑡))) ≈ {𝑚 ∈ ℕ ∣ ∃𝑡 ∈ ℕ ∃𝑛 ∈ (bits‘(𝐴𝑡))((2↑𝑛) · 𝑡) = 𝑚})
7167, 69, 70syl2anc 584 . . . . . . . 8 (𝐴 ∈ (𝑇𝑅) → 𝑡 ∈ ((𝐴 “ ℕ) ∩ 𝐽)({𝑡} × (bits‘(𝐴𝑡))) ≈ {𝑚 ∈ ℕ ∣ ∃𝑡 ∈ ℕ ∃𝑛 ∈ (bits‘(𝐴𝑡))((2↑𝑛) · 𝑡) = 𝑚})
72 enfii 8954 . . . . . . . 8 (({𝑚 ∈ ℕ ∣ ∃𝑡 ∈ ℕ ∃𝑛 ∈ (bits‘(𝐴𝑡))((2↑𝑛) · 𝑡) = 𝑚} ∈ Fin ∧ 𝑡 ∈ ((𝐴 “ ℕ) ∩ 𝐽)({𝑡} × (bits‘(𝐴𝑡))) ≈ {𝑚 ∈ ℕ ∣ ∃𝑡 ∈ ℕ ∃𝑛 ∈ (bits‘(𝐴𝑡))((2↑𝑛) · 𝑡) = 𝑚}) → 𝑡 ∈ ((𝐴 “ ℕ) ∩ 𝐽)({𝑡} × (bits‘(𝐴𝑡))) ∈ Fin)
7357, 71, 72syl2anc 584 . . . . . . 7 (𝐴 ∈ (𝑇𝑅) → 𝑡 ∈ ((𝐴 “ ℕ) ∩ 𝐽)({𝑡} × (bits‘(𝐴𝑡))) ∈ Fin)
74 fvres 6790 . . . . . . . . 9 (𝑤 𝑡 ∈ ((𝐴 “ ℕ) ∩ 𝐽)({𝑡} × (bits‘(𝐴𝑡))) → ((𝐹 𝑡 ∈ ((𝐴 “ ℕ) ∩ 𝐽)({𝑡} × (bits‘(𝐴𝑡))))‘𝑤) = (𝐹𝑤))
7574adantl 482 . . . . . . . 8 ((𝐴 ∈ (𝑇𝑅) ∧ 𝑤 𝑡 ∈ ((𝐴 “ ℕ) ∩ 𝐽)({𝑡} × (bits‘(𝐴𝑡)))) → ((𝐹 𝑡 ∈ ((𝐴 “ ℕ) ∩ 𝐽)({𝑡} × (bits‘(𝐴𝑡))))‘𝑤) = (𝐹𝑤))
76 inss2 4169 . . . . . . . . . . . . . . 15 ((𝐴 “ ℕ) ∩ 𝐽) ⊆ 𝐽
77 simpr 485 . . . . . . . . . . . . . . 15 ((𝐴 ∈ (𝑇𝑅) ∧ 𝑡 ∈ ((𝐴 “ ℕ) ∩ 𝐽)) → 𝑡 ∈ ((𝐴 “ ℕ) ∩ 𝐽))
7876, 77sselid 3924 . . . . . . . . . . . . . 14 ((𝐴 ∈ (𝑇𝑅) ∧ 𝑡 ∈ ((𝐴 “ ℕ) ∩ 𝐽)) → 𝑡𝐽)
7978snssd 4748 . . . . . . . . . . . . 13 ((𝐴 ∈ (𝑇𝑅) ∧ 𝑡 ∈ ((𝐴 “ ℕ) ∩ 𝐽)) → {𝑡} ⊆ 𝐽)
80 bitsss 16131 . . . . . . . . . . . . 13 (bits‘(𝐴𝑡)) ⊆ ℕ0
81 xpss12 5605 . . . . . . . . . . . . 13 (({𝑡} ⊆ 𝐽 ∧ (bits‘(𝐴𝑡)) ⊆ ℕ0) → ({𝑡} × (bits‘(𝐴𝑡))) ⊆ (𝐽 × ℕ0))
8279, 80, 81sylancl 586 . . . . . . . . . . . 12 ((𝐴 ∈ (𝑇𝑅) ∧ 𝑡 ∈ ((𝐴 “ ℕ) ∩ 𝐽)) → ({𝑡} × (bits‘(𝐴𝑡))) ⊆ (𝐽 × ℕ0))
8382ralrimiva 3110 . . . . . . . . . . 11 (𝐴 ∈ (𝑇𝑅) → ∀𝑡 ∈ ((𝐴 “ ℕ) ∩ 𝐽)({𝑡} × (bits‘(𝐴𝑡))) ⊆ (𝐽 × ℕ0))
84 iunss 4980 . . . . . . . . . . 11 ( 𝑡 ∈ ((𝐴 “ ℕ) ∩ 𝐽)({𝑡} × (bits‘(𝐴𝑡))) ⊆ (𝐽 × ℕ0) ↔ ∀𝑡 ∈ ((𝐴 “ ℕ) ∩ 𝐽)({𝑡} × (bits‘(𝐴𝑡))) ⊆ (𝐽 × ℕ0))
8583, 84sylibr 233 . . . . . . . . . 10 (𝐴 ∈ (𝑇𝑅) → 𝑡 ∈ ((𝐴 “ ℕ) ∩ 𝐽)({𝑡} × (bits‘(𝐴𝑡))) ⊆ (𝐽 × ℕ0))
8685sselda 3926 . . . . . . . . 9 ((𝐴 ∈ (𝑇𝑅) ∧ 𝑤 𝑡 ∈ ((𝐴 “ ℕ) ∩ 𝐽)({𝑡} × (bits‘(𝐴𝑡)))) → 𝑤 ∈ (𝐽 × ℕ0))
875, 6oddpwdcv 32318 . . . . . . . . 9 (𝑤 ∈ (𝐽 × ℕ0) → (𝐹𝑤) = ((2↑(2nd𝑤)) · (1st𝑤)))
8886, 87syl 17 . . . . . . . 8 ((𝐴 ∈ (𝑇𝑅) ∧ 𝑤 𝑡 ∈ ((𝐴 “ ℕ) ∩ 𝐽)({𝑡} × (bits‘(𝐴𝑡)))) → (𝐹𝑤) = ((2↑(2nd𝑤)) · (1st𝑤)))
8975, 88eqtrd 2780 . . . . . . 7 ((𝐴 ∈ (𝑇𝑅) ∧ 𝑤 𝑡 ∈ ((𝐴 “ ℕ) ∩ 𝐽)({𝑡} × (bits‘(𝐴𝑡)))) → ((𝐹 𝑡 ∈ ((𝐴 “ ℕ) ∩ 𝐽)({𝑡} × (bits‘(𝐴𝑡))))‘𝑤) = ((2↑(2nd𝑤)) · (1st𝑤)))
9041nncnd 11989 . . . . . . 7 ((𝐴 ∈ (𝑇𝑅) ∧ 𝑘 ∈ {𝑚 ∈ ℕ ∣ ∃𝑡 ∈ ℕ ∃𝑛 ∈ (bits‘(𝐴𝑡))((2↑𝑛) · 𝑡) = 𝑚}) → 𝑘 ∈ ℂ)
9139, 73, 69, 89, 90fsumf1o 15433 . . . . . 6 (𝐴 ∈ (𝑇𝑅) → Σ𝑘 ∈ {𝑚 ∈ ℕ ∣ ∃𝑡 ∈ ℕ ∃𝑛 ∈ (bits‘(𝐴𝑡))((2↑𝑛) · 𝑡) = 𝑚}𝑘 = Σ𝑤 𝑡 ∈ ((𝐴 “ ℕ) ∩ 𝐽)({𝑡} × (bits‘(𝐴𝑡)))((2↑(2nd𝑤)) · (1st𝑤)))
9238, 91eqtrid 2792 . . . . 5 (𝐴 ∈ (𝑇𝑅) → Σ𝑘 ∈ {𝑚 ∈ ℕ ∣ ∃𝑡 ∈ ℕ ∃𝑛 ∈ (bits‘(𝐴𝑡))((2↑𝑛) · 𝑡) = 𝑚} (if(∃𝑡 ∈ ℕ ∃𝑛 ∈ (bits‘(𝐴𝑡))((2↑𝑛) · 𝑡) = 𝑘, 1, 0) · 𝑘) = Σ𝑤 𝑡 ∈ ((𝐴 “ ℕ) ∩ 𝐽)({𝑡} × (bits‘(𝐴𝑡)))((2↑(2nd𝑤)) · (1st𝑤)))
93 ax-1cn 10930 . . . . . . . . 9 1 ∈ ℂ
94 0cn 10968 . . . . . . . . 9 0 ∈ ℂ
9593, 94ifcli 4512 . . . . . . . 8 if(∃𝑡 ∈ ℕ ∃𝑛 ∈ (bits‘(𝐴𝑡))((2↑𝑛) · 𝑡) = 𝑘, 1, 0) ∈ ℂ
9695a1i 11 . . . . . . 7 ((𝐴 ∈ (𝑇𝑅) ∧ 𝑘 ∈ {𝑚 ∈ ℕ ∣ ∃𝑡 ∈ ℕ ∃𝑛 ∈ (bits‘(𝐴𝑡))((2↑𝑛) · 𝑡) = 𝑚}) → if(∃𝑡 ∈ ℕ ∃𝑛 ∈ (bits‘(𝐴𝑡))((2↑𝑛) · 𝑡) = 𝑘, 1, 0) ∈ ℂ)
97 ssrab2 4018 . . . . . . . . 9 {𝑚 ∈ ℕ ∣ ∃𝑡 ∈ ℕ ∃𝑛 ∈ (bits‘(𝐴𝑡))((2↑𝑛) · 𝑡) = 𝑚} ⊆ ℕ
98 simpr 485 . . . . . . . . 9 ((𝐴 ∈ (𝑇𝑅) ∧ 𝑘 ∈ {𝑚 ∈ ℕ ∣ ∃𝑡 ∈ ℕ ∃𝑛 ∈ (bits‘(𝐴𝑡))((2↑𝑛) · 𝑡) = 𝑚}) → 𝑘 ∈ {𝑚 ∈ ℕ ∣ ∃𝑡 ∈ ℕ ∃𝑛 ∈ (bits‘(𝐴𝑡))((2↑𝑛) · 𝑡) = 𝑚})
9997, 98sselid 3924 . . . . . . . 8 ((𝐴 ∈ (𝑇𝑅) ∧ 𝑘 ∈ {𝑚 ∈ ℕ ∣ ∃𝑡 ∈ ℕ ∃𝑛 ∈ (bits‘(𝐴𝑡))((2↑𝑛) · 𝑡) = 𝑚}) → 𝑘 ∈ ℕ)
10099nncnd 11989 . . . . . . 7 ((𝐴 ∈ (𝑇𝑅) ∧ 𝑘 ∈ {𝑚 ∈ ℕ ∣ ∃𝑡 ∈ ℕ ∃𝑛 ∈ (bits‘(𝐴𝑡))((2↑𝑛) · 𝑡) = 𝑚}) → 𝑘 ∈ ℂ)
10196, 100mulcld 10996 . . . . . 6 ((𝐴 ∈ (𝑇𝑅) ∧ 𝑘 ∈ {𝑚 ∈ ℕ ∣ ∃𝑡 ∈ ℕ ∃𝑛 ∈ (bits‘(𝐴𝑡))((2↑𝑛) · 𝑡) = 𝑚}) → (if(∃𝑡 ∈ ℕ ∃𝑛 ∈ (bits‘(𝐴𝑡))((2↑𝑛) · 𝑡) = 𝑘, 1, 0) · 𝑘) ∈ ℂ)
102 simpr 485 . . . . . . . . . . 11 ((𝐴 ∈ (𝑇𝑅) ∧ 𝑘 ∈ (((𝐺𝐴) “ ℕ) ∖ {𝑚 ∈ ℕ ∣ ∃𝑡 ∈ ℕ ∃𝑛 ∈ (bits‘(𝐴𝑡))((2↑𝑛) · 𝑡) = 𝑚})) → 𝑘 ∈ (((𝐺𝐴) “ ℕ) ∖ {𝑚 ∈ ℕ ∣ ∃𝑡 ∈ ℕ ∃𝑛 ∈ (bits‘(𝐴𝑡))((2↑𝑛) · 𝑡) = 𝑚}))
103102eldifbd 3905 . . . . . . . . . 10 ((𝐴 ∈ (𝑇𝑅) ∧ 𝑘 ∈ (((𝐺𝐴) “ ℕ) ∖ {𝑚 ∈ ℕ ∣ ∃𝑡 ∈ ℕ ∃𝑛 ∈ (bits‘(𝐴𝑡))((2↑𝑛) · 𝑡) = 𝑚})) → ¬ 𝑘 ∈ {𝑚 ∈ ℕ ∣ ∃𝑡 ∈ ℕ ∃𝑛 ∈ (bits‘(𝐴𝑡))((2↑𝑛) · 𝑡) = 𝑚})
10422ssdifssd 4082 . . . . . . . . . . 11 (𝐴 ∈ (𝑇𝑅) → (((𝐺𝐴) “ ℕ) ∖ {𝑚 ∈ ℕ ∣ ∃𝑡 ∈ ℕ ∃𝑛 ∈ (bits‘(𝐴𝑡))((2↑𝑛) · 𝑡) = 𝑚}) ⊆ ℕ)
105104sselda 3926 . . . . . . . . . 10 ((𝐴 ∈ (𝑇𝑅) ∧ 𝑘 ∈ (((𝐺𝐴) “ ℕ) ∖ {𝑚 ∈ ℕ ∣ ∃𝑡 ∈ ℕ ∃𝑛 ∈ (bits‘(𝐴𝑡))((2↑𝑛) · 𝑡) = 𝑚})) → 𝑘 ∈ ℕ)
10630notbii 320 . . . . . . . . . . 11 𝑘 ∈ {𝑚 ∈ ℕ ∣ ∃𝑡 ∈ ℕ ∃𝑛 ∈ (bits‘(𝐴𝑡))((2↑𝑛) · 𝑡) = 𝑚} ↔ ¬ (𝑘 ∈ ℕ ∧ ∃𝑡 ∈ ℕ ∃𝑛 ∈ (bits‘(𝐴𝑡))((2↑𝑛) · 𝑡) = 𝑘))
107 imnan 400 . . . . . . . . . . 11 ((𝑘 ∈ ℕ → ¬ ∃𝑡 ∈ ℕ ∃𝑛 ∈ (bits‘(𝐴𝑡))((2↑𝑛) · 𝑡) = 𝑘) ↔ ¬ (𝑘 ∈ ℕ ∧ ∃𝑡 ∈ ℕ ∃𝑛 ∈ (bits‘(𝐴𝑡))((2↑𝑛) · 𝑡) = 𝑘))
108106, 107sylbb2 237 . . . . . . . . . 10 𝑘 ∈ {𝑚 ∈ ℕ ∣ ∃𝑡 ∈ ℕ ∃𝑛 ∈ (bits‘(𝐴𝑡))((2↑𝑛) · 𝑡) = 𝑚} → (𝑘 ∈ ℕ → ¬ ∃𝑡 ∈ ℕ ∃𝑛 ∈ (bits‘(𝐴𝑡))((2↑𝑛) · 𝑡) = 𝑘))
109103, 105, 108sylc 65 . . . . . . . . 9 ((𝐴 ∈ (𝑇𝑅) ∧ 𝑘 ∈ (((𝐺𝐴) “ ℕ) ∖ {𝑚 ∈ ℕ ∣ ∃𝑡 ∈ ℕ ∃𝑛 ∈ (bits‘(𝐴𝑡))((2↑𝑛) · 𝑡) = 𝑚})) → ¬ ∃𝑡 ∈ ℕ ∃𝑛 ∈ (bits‘(𝐴𝑡))((2↑𝑛) · 𝑡) = 𝑘)
110109iffalsed 4476 . . . . . . . 8 ((𝐴 ∈ (𝑇𝑅) ∧ 𝑘 ∈ (((𝐺𝐴) “ ℕ) ∖ {𝑚 ∈ ℕ ∣ ∃𝑡 ∈ ℕ ∃𝑛 ∈ (bits‘(𝐴𝑡))((2↑𝑛) · 𝑡) = 𝑚})) → if(∃𝑡 ∈ ℕ ∃𝑛 ∈ (bits‘(𝐴𝑡))((2↑𝑛) · 𝑡) = 𝑘, 1, 0) = 0)
111110oveq1d 7286 . . . . . . 7 ((𝐴 ∈ (𝑇𝑅) ∧ 𝑘 ∈ (((𝐺𝐴) “ ℕ) ∖ {𝑚 ∈ ℕ ∣ ∃𝑡 ∈ ℕ ∃𝑛 ∈ (bits‘(𝐴𝑡))((2↑𝑛) · 𝑡) = 𝑚})) → (if(∃𝑡 ∈ ℕ ∃𝑛 ∈ (bits‘(𝐴𝑡))((2↑𝑛) · 𝑡) = 𝑘, 1, 0) · 𝑘) = (0 · 𝑘))
112 nnsscn 11978 . . . . . . . . . 10 ℕ ⊆ ℂ
113104, 112sstrdi 3938 . . . . . . . . 9 (𝐴 ∈ (𝑇𝑅) → (((𝐺𝐴) “ ℕ) ∖ {𝑚 ∈ ℕ ∣ ∃𝑡 ∈ ℕ ∃𝑛 ∈ (bits‘(𝐴𝑡))((2↑𝑛) · 𝑡) = 𝑚}) ⊆ ℂ)
114113sselda 3926 . . . . . . . 8 ((𝐴 ∈ (𝑇𝑅) ∧ 𝑘 ∈ (((𝐺𝐴) “ ℕ) ∖ {𝑚 ∈ ℕ ∣ ∃𝑡 ∈ ℕ ∃𝑛 ∈ (bits‘(𝐴𝑡))((2↑𝑛) · 𝑡) = 𝑚})) → 𝑘 ∈ ℂ)
115114mul02d 11173 . . . . . . 7 ((𝐴 ∈ (𝑇𝑅) ∧ 𝑘 ∈ (((𝐺𝐴) “ ℕ) ∖ {𝑚 ∈ ℕ ∣ ∃𝑡 ∈ ℕ ∃𝑛 ∈ (bits‘(𝐴𝑡))((2↑𝑛) · 𝑡) = 𝑚})) → (0 · 𝑘) = 0)
116111, 115eqtrd 2780 . . . . . 6 ((𝐴 ∈ (𝑇𝑅) ∧ 𝑘 ∈ (((𝐺𝐴) “ ℕ) ∖ {𝑚 ∈ ℕ ∣ ∃𝑡 ∈ ℕ ∃𝑛 ∈ (bits‘(𝐴𝑡))((2↑𝑛) · 𝑡) = 𝑚})) → (if(∃𝑡 ∈ ℕ ∃𝑛 ∈ (bits‘(𝐴𝑡))((2↑𝑛) · 𝑡) = 𝑘, 1, 0) · 𝑘) = 0)
11755, 101, 116, 40fsumss 15435 . . . . 5 (𝐴 ∈ (𝑇𝑅) → Σ𝑘 ∈ {𝑚 ∈ ℕ ∣ ∃𝑡 ∈ ℕ ∃𝑛 ∈ (bits‘(𝐴𝑡))((2↑𝑛) · 𝑡) = 𝑚} (if(∃𝑡 ∈ ℕ ∃𝑛 ∈ (bits‘(𝐴𝑡))((2↑𝑛) · 𝑡) = 𝑘, 1, 0) · 𝑘) = Σ𝑘 ∈ ((𝐺𝐴) “ ℕ)(if(∃𝑡 ∈ ℕ ∃𝑛 ∈ (bits‘(𝐴𝑡))((2↑𝑛) · 𝑡) = 𝑘, 1, 0) · 𝑘))
11892, 117eqtr3d 2782 . . . 4 (𝐴 ∈ (𝑇𝑅) → Σ𝑤 𝑡 ∈ ((𝐴 “ ℕ) ∩ 𝐽)({𝑡} × (bits‘(𝐴𝑡)))((2↑(2nd𝑤)) · (1st𝑤)) = Σ𝑘 ∈ ((𝐺𝐴) “ ℕ)(if(∃𝑡 ∈ ℕ ∃𝑛 ∈ (bits‘(𝐴𝑡))((2↑𝑛) · 𝑡) = 𝑘, 1, 0) · 𝑘))
1192, 3, 4, 5, 6, 7, 8, 9, 10eulerpartlemt0 32332 . . . . . . . . . . . . 13 (𝐴 ∈ (𝑇𝑅) ↔ (𝐴 ∈ (ℕ0m ℕ) ∧ (𝐴 “ ℕ) ∈ Fin ∧ (𝐴 “ ℕ) ⊆ 𝐽))
120119simp1bi 1144 . . . . . . . . . . . 12 (𝐴 ∈ (𝑇𝑅) → 𝐴 ∈ (ℕ0m ℕ))
121 elmapi 8620 . . . . . . . . . . . 12 (𝐴 ∈ (ℕ0m ℕ) → 𝐴:ℕ⟶ℕ0)
122120, 121syl 17 . . . . . . . . . . 11 (𝐴 ∈ (𝑇𝑅) → 𝐴:ℕ⟶ℕ0)
123122adantr 481 . . . . . . . . . 10 ((𝐴 ∈ (𝑇𝑅) ∧ 𝑡 ∈ ((𝐴 “ ℕ) ∩ 𝐽)) → 𝐴:ℕ⟶ℕ0)
124 cnvimass 5988 . . . . . . . . . . . . 13 (𝐴 “ ℕ) ⊆ dom 𝐴
125124, 122fssdm 6618 . . . . . . . . . . . 12 (𝐴 ∈ (𝑇𝑅) → (𝐴 “ ℕ) ⊆ ℕ)
126125adantr 481 . . . . . . . . . . 11 ((𝐴 ∈ (𝑇𝑅) ∧ 𝑡 ∈ ((𝐴 “ ℕ) ∩ 𝐽)) → (𝐴 “ ℕ) ⊆ ℕ)
127 inss1 4168 . . . . . . . . . . . 12 ((𝐴 “ ℕ) ∩ 𝐽) ⊆ (𝐴 “ ℕ)
128127, 77sselid 3924 . . . . . . . . . . 11 ((𝐴 ∈ (𝑇𝑅) ∧ 𝑡 ∈ ((𝐴 “ ℕ) ∩ 𝐽)) → 𝑡 ∈ (𝐴 “ ℕ))
129126, 128sseldd 3927 . . . . . . . . . 10 ((𝐴 ∈ (𝑇𝑅) ∧ 𝑡 ∈ ((𝐴 “ ℕ) ∩ 𝐽)) → 𝑡 ∈ ℕ)
130123, 129ffvelrnd 6959 . . . . . . . . 9 ((𝐴 ∈ (𝑇𝑅) ∧ 𝑡 ∈ ((𝐴 “ ℕ) ∩ 𝐽)) → (𝐴𝑡) ∈ ℕ0)
131 bitsfi 16142 . . . . . . . . 9 ((𝐴𝑡) ∈ ℕ0 → (bits‘(𝐴𝑡)) ∈ Fin)
132130, 131syl 17 . . . . . . . 8 ((𝐴 ∈ (𝑇𝑅) ∧ 𝑡 ∈ ((𝐴 “ ℕ) ∩ 𝐽)) → (bits‘(𝐴𝑡)) ∈ Fin)
133129nncnd 11989 . . . . . . . 8 ((𝐴 ∈ (𝑇𝑅) ∧ 𝑡 ∈ ((𝐴 “ ℕ) ∩ 𝐽)) → 𝑡 ∈ ℂ)
134 2cnd 12051 . . . . . . . . . 10 ((𝐴 ∈ (𝑇𝑅) ∧ (𝑡 ∈ ((𝐴 “ ℕ) ∩ 𝐽) ∧ 𝑛 ∈ (bits‘(𝐴𝑡)))) → 2 ∈ ℂ)
135 simprr 770 . . . . . . . . . . 11 ((𝐴 ∈ (𝑇𝑅) ∧ (𝑡 ∈ ((𝐴 “ ℕ) ∩ 𝐽) ∧ 𝑛 ∈ (bits‘(𝐴𝑡)))) → 𝑛 ∈ (bits‘(𝐴𝑡)))
13680, 135sselid 3924 . . . . . . . . . 10 ((𝐴 ∈ (𝑇𝑅) ∧ (𝑡 ∈ ((𝐴 “ ℕ) ∩ 𝐽) ∧ 𝑛 ∈ (bits‘(𝐴𝑡)))) → 𝑛 ∈ ℕ0)
137134, 136expcld 13862 . . . . . . . . 9 ((𝐴 ∈ (𝑇𝑅) ∧ (𝑡 ∈ ((𝐴 “ ℕ) ∩ 𝐽) ∧ 𝑛 ∈ (bits‘(𝐴𝑡)))) → (2↑𝑛) ∈ ℂ)
138137anassrs 468 . . . . . . . 8 (((𝐴 ∈ (𝑇𝑅) ∧ 𝑡 ∈ ((𝐴 “ ℕ) ∩ 𝐽)) ∧ 𝑛 ∈ (bits‘(𝐴𝑡))) → (2↑𝑛) ∈ ℂ)
139132, 133, 138fsummulc1 15495 . . . . . . 7 ((𝐴 ∈ (𝑇𝑅) ∧ 𝑡 ∈ ((𝐴 “ ℕ) ∩ 𝐽)) → (Σ𝑛 ∈ (bits‘(𝐴𝑡))(2↑𝑛) · 𝑡) = Σ𝑛 ∈ (bits‘(𝐴𝑡))((2↑𝑛) · 𝑡))
140139sumeq2dv 15413 . . . . . 6 (𝐴 ∈ (𝑇𝑅) → Σ𝑡 ∈ ((𝐴 “ ℕ) ∩ 𝐽)(Σ𝑛 ∈ (bits‘(𝐴𝑡))(2↑𝑛) · 𝑡) = Σ𝑡 ∈ ((𝐴 “ ℕ) ∩ 𝐽𝑛 ∈ (bits‘(𝐴𝑡))((2↑𝑛) · 𝑡))
141 bitsinv1 16147 . . . . . . . . 9 ((𝐴𝑡) ∈ ℕ0 → Σ𝑛 ∈ (bits‘(𝐴𝑡))(2↑𝑛) = (𝐴𝑡))
142141oveq1d 7286 . . . . . . . 8 ((𝐴𝑡) ∈ ℕ0 → (Σ𝑛 ∈ (bits‘(𝐴𝑡))(2↑𝑛) · 𝑡) = ((𝐴𝑡) · 𝑡))
143130, 142syl 17 . . . . . . 7 ((𝐴 ∈ (𝑇𝑅) ∧ 𝑡 ∈ ((𝐴 “ ℕ) ∩ 𝐽)) → (Σ𝑛 ∈ (bits‘(𝐴𝑡))(2↑𝑛) · 𝑡) = ((𝐴𝑡) · 𝑡))
144143sumeq2dv 15413 . . . . . 6 (𝐴 ∈ (𝑇𝑅) → Σ𝑡 ∈ ((𝐴 “ ℕ) ∩ 𝐽)(Σ𝑛 ∈ (bits‘(𝐴𝑡))(2↑𝑛) · 𝑡) = Σ𝑡 ∈ ((𝐴 “ ℕ) ∩ 𝐽)((𝐴𝑡) · 𝑡))
145 vex 3435 . . . . . . . . . 10 𝑡 ∈ V
146 vex 3435 . . . . . . . . . 10 𝑛 ∈ V
147145, 146op2ndd 7835 . . . . . . . . 9 (𝑤 = ⟨𝑡, 𝑛⟩ → (2nd𝑤) = 𝑛)
148147oveq2d 7287 . . . . . . . 8 (𝑤 = ⟨𝑡, 𝑛⟩ → (2↑(2nd𝑤)) = (2↑𝑛))
149145, 146op1std 7834 . . . . . . . 8 (𝑤 = ⟨𝑡, 𝑛⟩ → (1st𝑤) = 𝑡)
150148, 149oveq12d 7289 . . . . . . 7 (𝑤 = ⟨𝑡, 𝑛⟩ → ((2↑(2nd𝑤)) · (1st𝑤)) = ((2↑𝑛) · 𝑡))
151 inss2 4169 . . . . . . . . . 10 (𝑇𝑅) ⊆ 𝑅
152151sseli 3922 . . . . . . . . 9 (𝐴 ∈ (𝑇𝑅) → 𝐴𝑅)
153 cnveq 5781 . . . . . . . . . . . 12 (𝑓 = 𝐴𝑓 = 𝐴)
154153imaeq1d 5967 . . . . . . . . . . 11 (𝑓 = 𝐴 → (𝑓 “ ℕ) = (𝐴 “ ℕ))
155154eleq1d 2825 . . . . . . . . . 10 (𝑓 = 𝐴 → ((𝑓 “ ℕ) ∈ Fin ↔ (𝐴 “ ℕ) ∈ Fin))
156155, 9elab2g 3613 . . . . . . . . 9 (𝐴 ∈ (𝑇𝑅) → (𝐴𝑅 ↔ (𝐴 “ ℕ) ∈ Fin))
157152, 156mpbid 231 . . . . . . . 8 (𝐴 ∈ (𝑇𝑅) → (𝐴 “ ℕ) ∈ Fin)
158 ssfi 8938 . . . . . . . 8 (((𝐴 “ ℕ) ∈ Fin ∧ ((𝐴 “ ℕ) ∩ 𝐽) ⊆ (𝐴 “ ℕ)) → ((𝐴 “ ℕ) ∩ 𝐽) ∈ Fin)
159157, 127, 158sylancl 586 . . . . . . 7 (𝐴 ∈ (𝑇𝑅) → ((𝐴 “ ℕ) ∩ 𝐽) ∈ Fin)
160133adantrr 714 . . . . . . . 8 ((𝐴 ∈ (𝑇𝑅) ∧ (𝑡 ∈ ((𝐴 “ ℕ) ∩ 𝐽) ∧ 𝑛 ∈ (bits‘(𝐴𝑡)))) → 𝑡 ∈ ℂ)
161137, 160mulcld 10996 . . . . . . 7 ((𝐴 ∈ (𝑇𝑅) ∧ (𝑡 ∈ ((𝐴 “ ℕ) ∩ 𝐽) ∧ 𝑛 ∈ (bits‘(𝐴𝑡)))) → ((2↑𝑛) · 𝑡) ∈ ℂ)
162150, 159, 132, 161fsum2d 15481 . . . . . 6 (𝐴 ∈ (𝑇𝑅) → Σ𝑡 ∈ ((𝐴 “ ℕ) ∩ 𝐽𝑛 ∈ (bits‘(𝐴𝑡))((2↑𝑛) · 𝑡) = Σ𝑤 𝑡 ∈ ((𝐴 “ ℕ) ∩ 𝐽)({𝑡} × (bits‘(𝐴𝑡)))((2↑(2nd𝑤)) · (1st𝑤)))
163140, 144, 1623eqtr3d 2788 . . . . 5 (𝐴 ∈ (𝑇𝑅) → Σ𝑡 ∈ ((𝐴 “ ℕ) ∩ 𝐽)((𝐴𝑡) · 𝑡) = Σ𝑤 𝑡 ∈ ((𝐴 “ ℕ) ∩ 𝐽)({𝑡} × (bits‘(𝐴𝑡)))((2↑(2nd𝑤)) · (1st𝑤)))
164 inss1 4168 . . . . . . . . 9 (𝑇𝑅) ⊆ 𝑇
165164sseli 3922 . . . . . . . 8 (𝐴 ∈ (𝑇𝑅) → 𝐴𝑇)
166154sseq1d 3957 . . . . . . . . . 10 (𝑓 = 𝐴 → ((𝑓 “ ℕ) ⊆ 𝐽 ↔ (𝐴 “ ℕ) ⊆ 𝐽))
167166, 10elrab2 3629 . . . . . . . . 9 (𝐴𝑇 ↔ (𝐴 ∈ (ℕ0m ℕ) ∧ (𝐴 “ ℕ) ⊆ 𝐽))
168167simprbi 497 . . . . . . . 8 (𝐴𝑇 → (𝐴 “ ℕ) ⊆ 𝐽)
169165, 168syl 17 . . . . . . 7 (𝐴 ∈ (𝑇𝑅) → (𝐴 “ ℕ) ⊆ 𝐽)
170 df-ss 3909 . . . . . . 7 ((𝐴 “ ℕ) ⊆ 𝐽 ↔ ((𝐴 “ ℕ) ∩ 𝐽) = (𝐴 “ ℕ))
171169, 170sylib 217 . . . . . 6 (𝐴 ∈ (𝑇𝑅) → ((𝐴 “ ℕ) ∩ 𝐽) = (𝐴 “ ℕ))
172171sumeq1d 15411 . . . . 5 (𝐴 ∈ (𝑇𝑅) → Σ𝑡 ∈ ((𝐴 “ ℕ) ∩ 𝐽)((𝐴𝑡) · 𝑡) = Σ𝑡 ∈ (𝐴 “ ℕ)((𝐴𝑡) · 𝑡))
173163, 172eqtr3d 2782 . . . 4 (𝐴 ∈ (𝑇𝑅) → Σ𝑤 𝑡 ∈ ((𝐴 “ ℕ) ∩ 𝐽)({𝑡} × (bits‘(𝐴𝑡)))((2↑(2nd𝑤)) · (1st𝑤)) = Σ𝑡 ∈ (𝐴 “ ℕ)((𝐴𝑡) · 𝑡))
17427, 118, 1733eqtr2d 2786 . . 3 (𝐴 ∈ (𝑇𝑅) → Σ𝑘 ∈ ((𝐺𝐴) “ ℕ)(((𝐺𝐴)‘𝑘) · 𝑘) = Σ𝑡 ∈ (𝐴 “ ℕ)((𝐴𝑡) · 𝑡))
175 fveq2 6771 . . . . 5 (𝑘 = 𝑡 → (𝐴𝑘) = (𝐴𝑡))
176 id 22 . . . . 5 (𝑘 = 𝑡𝑘 = 𝑡)
177175, 176oveq12d 7289 . . . 4 (𝑘 = 𝑡 → ((𝐴𝑘) · 𝑘) = ((𝐴𝑡) · 𝑡))
178177cbvsumv 15406 . . 3 Σ𝑘 ∈ (𝐴 “ ℕ)((𝐴𝑘) · 𝑘) = Σ𝑡 ∈ (𝐴 “ ℕ)((𝐴𝑡) · 𝑡)
179174, 178eqtr4di 2798 . 2 (𝐴 ∈ (𝑇𝑅) → Σ𝑘 ∈ ((𝐺𝐴) “ ℕ)(((𝐺𝐴)‘𝑘) · 𝑘) = Σ𝑘 ∈ (𝐴 “ ℕ)((𝐴𝑘) · 𝑘))
180 0nn0 12248 . . . . . . . 8 0 ∈ ℕ0
181 1nn0 12249 . . . . . . . 8 1 ∈ ℕ0
182 prssi 4760 . . . . . . . 8 ((0 ∈ ℕ0 ∧ 1 ∈ ℕ0) → {0, 1} ⊆ ℕ0)
183180, 181, 182mp2an 689 . . . . . . 7 {0, 1} ⊆ ℕ0
184 fss 6615 . . . . . . 7 (((𝐺𝐴):ℕ⟶{0, 1} ∧ {0, 1} ⊆ ℕ0) → (𝐺𝐴):ℕ⟶ℕ0)
185183, 184mpan2 688 . . . . . 6 ((𝐺𝐴):ℕ⟶{0, 1} → (𝐺𝐴):ℕ⟶ℕ0)
186 nn0ex 12239 . . . . . . . 8 0 ∈ V
187 nnex 11979 . . . . . . . 8 ℕ ∈ V
188186, 187elmap 8642 . . . . . . 7 ((𝐺𝐴) ∈ (ℕ0m ℕ) ↔ (𝐺𝐴):ℕ⟶ℕ0)
189188biimpri 227 . . . . . 6 ((𝐺𝐴):ℕ⟶ℕ0 → (𝐺𝐴) ∈ (ℕ0m ℕ))
19019, 185, 1893syl 18 . . . . 5 ((𝐺𝐴) ∈ ({0, 1} ↑m ℕ) → (𝐺𝐴) ∈ (ℕ0m ℕ))
191190anim1i 615 . . . 4 (((𝐺𝐴) ∈ ({0, 1} ↑m ℕ) ∧ (𝐺𝐴) ∈ 𝑅) → ((𝐺𝐴) ∈ (ℕ0m ℕ) ∧ (𝐺𝐴) ∈ 𝑅))
192 elin 3908 . . . 4 ((𝐺𝐴) ∈ ((ℕ0m ℕ) ∩ 𝑅) ↔ ((𝐺𝐴) ∈ (ℕ0m ℕ) ∧ (𝐺𝐴) ∈ 𝑅))
193191, 16, 1923imtr4i 292 . . 3 ((𝐺𝐴) ∈ (({0, 1} ↑m ℕ) ∩ 𝑅) → (𝐺𝐴) ∈ ((ℕ0m ℕ) ∩ 𝑅))
194 eulerpart.s . . . 4 𝑆 = (𝑓 ∈ ((ℕ0m ℕ) ∩ 𝑅) ↦ Σ𝑘 ∈ ℕ ((𝑓𝑘) · 𝑘))
1959, 194eulerpartlemsv2 32321 . . 3 ((𝐺𝐴) ∈ ((ℕ0m ℕ) ∩ 𝑅) → (𝑆‘(𝐺𝐴)) = Σ𝑘 ∈ ((𝐺𝐴) “ ℕ)(((𝐺𝐴)‘𝑘) · 𝑘))
19615, 193, 1953syl 18 . 2 (𝐴 ∈ (𝑇𝑅) → (𝑆‘(𝐺𝐴)) = Σ𝑘 ∈ ((𝐺𝐴) “ ℕ)(((𝐺𝐴)‘𝑘) · 𝑘))
197120, 152elind 4133 . . 3 (𝐴 ∈ (𝑇𝑅) → 𝐴 ∈ ((ℕ0m ℕ) ∩ 𝑅))
1989, 194eulerpartlemsv2 32321 . . 3 (𝐴 ∈ ((ℕ0m ℕ) ∩ 𝑅) → (𝑆𝐴) = Σ𝑘 ∈ (𝐴 “ ℕ)((𝐴𝑘) · 𝑘))
199197, 198syl 17 . 2 (𝐴 ∈ (𝑇𝑅) → (𝑆𝐴) = Σ𝑘 ∈ (𝐴 “ ℕ)((𝐴𝑘) · 𝑘))
200179, 196, 1993eqtr4d 2790 1 (𝐴 ∈ (𝑇𝑅) → (𝑆‘(𝐺𝐴)) = (𝑆𝐴))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 205  wa 396   = wceq 1542  wcel 2110  {cab 2717  wral 3066  wrex 3067  {crab 3070  Vcvv 3431  cdif 3889  cin 3891  wss 3892  c0 4262  ifcif 4465  𝒫 cpw 4539  {csn 4567  {cpr 4569  cop 4573   ciun 4930   class class class wbr 5079  {copab 5141  cmpt 5162   × cxp 5588  ccnv 5589  dom cdm 5590  cres 5592  cima 5593  ccom 5594   Fn wfn 6427  wf 6428  1-1-ontowf1o 6431  cfv 6432  (class class class)co 7271  cmpo 7273  1st c1st 7822  2nd c2nd 7823   supp csupp 7968  m cmap 8598  cen 8713  Fincfn 8716  cc 10870  0cc0 10872  1c1 10873   · cmul 10877  cle 11011  cn 11973  2c2 12028  0cn0 12233  cexp 13780  Σcsu 15395  cdvds 15961  bitscbits 16124  𝟭cind 31974
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1802  ax-4 1816  ax-5 1917  ax-6 1975  ax-7 2015  ax-8 2112  ax-9 2120  ax-10 2141  ax-11 2158  ax-12 2175  ax-ext 2711  ax-rep 5214  ax-sep 5227  ax-nul 5234  ax-pow 5292  ax-pr 5356  ax-un 7582  ax-inf2 9377  ax-ac2 10220  ax-cnex 10928  ax-resscn 10929  ax-1cn 10930  ax-icn 10931  ax-addcl 10932  ax-addrcl 10933  ax-mulcl 10934  ax-mulrcl 10935  ax-mulcom 10936  ax-addass 10937  ax-mulass 10938  ax-distr 10939  ax-i2m1 10940  ax-1ne0 10941  ax-1rid 10942  ax-rnegex 10943  ax-rrecex 10944  ax-cnre 10945  ax-pre-lttri 10946  ax-pre-lttrn 10947  ax-pre-ltadd 10948  ax-pre-mulgt0 10949  ax-pre-sup 10950
This theorem depends on definitions:  df-bi 206  df-an 397  df-or 845  df-3or 1087  df-3an 1088  df-tru 1545  df-fal 1555  df-ex 1787  df-nf 1791  df-sb 2072  df-mo 2542  df-eu 2571  df-clab 2718  df-cleq 2732  df-clel 2818  df-nfc 2891  df-ne 2946  df-nel 3052  df-ral 3071  df-rex 3072  df-reu 3073  df-rmo 3074  df-rab 3075  df-v 3433  df-sbc 3721  df-csb 3838  df-dif 3895  df-un 3897  df-in 3899  df-ss 3909  df-pss 3911  df-nul 4263  df-if 4466  df-pw 4541  df-sn 4568  df-pr 4570  df-op 4574  df-uni 4846  df-int 4886  df-iun 4932  df-disj 5045  df-br 5080  df-opab 5142  df-mpt 5163  df-tr 5197  df-id 5490  df-eprel 5496  df-po 5504  df-so 5505  df-fr 5545  df-se 5546  df-we 5547  df-xp 5596  df-rel 5597  df-cnv 5598  df-co 5599  df-dm 5600  df-rn 5601  df-res 5602  df-ima 5603  df-pred 6201  df-ord 6268  df-on 6269  df-lim 6270  df-suc 6271  df-iota 6390  df-fun 6434  df-fn 6435  df-f 6436  df-f1 6437  df-fo 6438  df-f1o 6439  df-fv 6440  df-isom 6441  df-riota 7228  df-ov 7274  df-oprab 7275  df-mpo 7276  df-om 7707  df-1st 7824  df-2nd 7825  df-supp 7969  df-frecs 8088  df-wrecs 8119  df-recs 8193  df-rdg 8232  df-1o 8288  df-2o 8289  df-oadd 8292  df-er 8481  df-map 8600  df-pm 8601  df-en 8717  df-dom 8718  df-sdom 8719  df-fin 8720  df-fsupp 9107  df-sup 9179  df-inf 9180  df-oi 9247  df-dju 9660  df-card 9698  df-acn 9701  df-ac 9873  df-pnf 11012  df-mnf 11013  df-xr 11014  df-ltxr 11015  df-le 11016  df-sub 11207  df-neg 11208  df-div 11633  df-nn 11974  df-2 12036  df-3 12037  df-n0 12234  df-xnn0 12306  df-z 12320  df-uz 12582  df-rp 12730  df-fz 13239  df-fzo 13382  df-fl 13510  df-mod 13588  df-seq 13720  df-exp 13781  df-hash 14043  df-cj 14808  df-re 14809  df-im 14810  df-sqrt 14944  df-abs 14945  df-clim 15195  df-sum 15396  df-dvds 15962  df-bits 16127  df-ind 31975
This theorem is referenced by:  eulerpartlemn  32344
  Copyright terms: Public domain W3C validator