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

Theorem eulerpartlemgh 29569
Description: Lemma for eulerpart 29573: The 𝐹 function is a bijection on the 𝑈 subsets. (Contributed by Thierry Arnoux, 15-Aug-2018.)
Hypotheses
Ref Expression
eulerpart.p 𝑃 = {𝑓 ∈ (ℕ0𝑚 ℕ) ∣ ((𝑓 “ ℕ) ∈ Fin ∧ Σ𝑘 ∈ ℕ ((𝑓𝑘) · 𝑘) = 𝑁)}
eulerpart.o 𝑂 = {𝑔𝑃 ∣ ∀𝑛 ∈ (𝑔 “ ℕ) ¬ 2 ∥ 𝑛}
eulerpart.d 𝐷 = {𝑔𝑃 ∣ ∀𝑛 ∈ ℕ (𝑔𝑛) ≤ 1}
eulerpart.j 𝐽 = {𝑧 ∈ ℕ ∣ ¬ 2 ∥ 𝑧}
eulerpart.f 𝐹 = (𝑥𝐽, 𝑦 ∈ ℕ0 ↦ ((2↑𝑦) · 𝑥))
eulerpart.h 𝐻 = {𝑟 ∈ ((𝒫 ℕ0 ∩ Fin) ↑𝑚 𝐽) ∣ (𝑟 supp ∅) ∈ Fin}
eulerpart.m 𝑀 = (𝑟𝐻 ↦ {⟨𝑥, 𝑦⟩ ∣ (𝑥𝐽𝑦 ∈ (𝑟𝑥))})
eulerpart.r 𝑅 = {𝑓 ∣ (𝑓 “ ℕ) ∈ Fin}
eulerpart.t 𝑇 = {𝑓 ∈ (ℕ0𝑚 ℕ) ∣ (𝑓 “ ℕ) ⊆ 𝐽}
eulerpart.g 𝐺 = (𝑜 ∈ (𝑇𝑅) ↦ ((𝟭‘ℕ)‘(𝐹 “ (𝑀‘(bits ∘ (𝑜𝐽))))))
eulerpartlemgh.1 𝑈 = 𝑡 ∈ ((𝐴 “ ℕ) ∩ 𝐽)({𝑡} × (bits‘(𝐴𝑡)))
Assertion
Ref Expression
eulerpartlemgh (𝐴 ∈ (𝑇𝑅) → (𝐹𝑈):𝑈1-1-onto→{𝑚 ∈ ℕ ∣ ∃𝑡 ∈ ℕ ∃𝑛 ∈ (bits‘(𝐴𝑡))((2↑𝑛) · 𝑡) = 𝑚})
Distinct variable groups:   𝑧,𝑡   𝑓,𝑔,𝑘,𝑛,𝑡,𝐴   𝑓,𝐽,𝑛,𝑡   𝑓,𝑁,𝑘,𝑛,𝑡   𝑛,𝑂,𝑡   𝑃,𝑔,𝑘   𝑅,𝑓,𝑘,𝑛,𝑡   𝑇,𝑛,𝑡   𝑥,𝑡,𝑦,𝑧   𝑓,𝑚,𝑥,𝑔,𝑘,𝑛,𝑡,𝐴   𝑛,𝐹,𝑡,𝑥   𝑦,𝑓,𝑛   𝑥,𝐽,𝑦   𝑡,𝑃
Allowed substitution hints:   𝐴(𝑦,𝑧,𝑜,𝑟)   𝐷(𝑥,𝑦,𝑧,𝑡,𝑓,𝑔,𝑘,𝑚,𝑛,𝑜,𝑟)   𝑃(𝑥,𝑦,𝑧,𝑓,𝑚,𝑛,𝑜,𝑟)   𝑅(𝑥,𝑦,𝑧,𝑔,𝑚,𝑜,𝑟)   𝑇(𝑥,𝑦,𝑧,𝑓,𝑔,𝑘,𝑚,𝑜,𝑟)   𝑈(𝑥,𝑦,𝑧,𝑡,𝑓,𝑔,𝑘,𝑚,𝑛,𝑜,𝑟)   𝐹(𝑦,𝑧,𝑓,𝑔,𝑘,𝑚,𝑜,𝑟)   𝐺(𝑥,𝑦,𝑧,𝑡,𝑓,𝑔,𝑘,𝑚,𝑛,𝑜,𝑟)   𝐻(𝑥,𝑦,𝑧,𝑡,𝑓,𝑔,𝑘,𝑚,𝑛,𝑜,𝑟)   𝐽(𝑧,𝑔,𝑘,𝑚,𝑜,𝑟)   𝑀(𝑥,𝑦,𝑧,𝑡,𝑓,𝑔,𝑘,𝑚,𝑛,𝑜,𝑟)   𝑁(𝑥,𝑦,𝑧,𝑔,𝑚,𝑜,𝑟)   𝑂(𝑥,𝑦,𝑧,𝑓,𝑔,𝑘,𝑚,𝑜,𝑟)

Proof of Theorem eulerpartlemgh
Dummy variable 𝑝 is distinct from all other variables.
StepHypRef Expression
1 eulerpart.j . . . . 5 𝐽 = {𝑧 ∈ ℕ ∣ ¬ 2 ∥ 𝑧}
2 eulerpart.f . . . . 5 𝐹 = (𝑥𝐽, 𝑦 ∈ ℕ0 ↦ ((2↑𝑦) · 𝑥))
31, 2oddpwdc 29545 . . . 4 𝐹:(𝐽 × ℕ0)–1-1-onto→ℕ
4 f1of1 6030 . . . 4 (𝐹:(𝐽 × ℕ0)–1-1-onto→ℕ → 𝐹:(𝐽 × ℕ0)–1-1→ℕ)
53, 4ax-mp 5 . . 3 𝐹:(𝐽 × ℕ0)–1-1→ℕ
6 eulerpartlemgh.1 . . . 4 𝑈 = 𝑡 ∈ ((𝐴 “ ℕ) ∩ 𝐽)({𝑡} × (bits‘(𝐴𝑡)))
7 iunss 4487 . . . . 5 ( 𝑡 ∈ ((𝐴 “ ℕ) ∩ 𝐽)({𝑡} × (bits‘(𝐴𝑡))) ⊆ (𝐽 × ℕ0) ↔ ∀𝑡 ∈ ((𝐴 “ ℕ) ∩ 𝐽)({𝑡} × (bits‘(𝐴𝑡))) ⊆ (𝐽 × ℕ0))
8 inss2 3791 . . . . . . . 8 ((𝐴 “ ℕ) ∩ 𝐽) ⊆ 𝐽
98sseli 3559 . . . . . . 7 (𝑡 ∈ ((𝐴 “ ℕ) ∩ 𝐽) → 𝑡𝐽)
109snssd 4276 . . . . . 6 (𝑡 ∈ ((𝐴 “ ℕ) ∩ 𝐽) → {𝑡} ⊆ 𝐽)
11 bitsss 14928 . . . . . 6 (bits‘(𝐴𝑡)) ⊆ ℕ0
12 xpss12 5133 . . . . . 6 (({𝑡} ⊆ 𝐽 ∧ (bits‘(𝐴𝑡)) ⊆ ℕ0) → ({𝑡} × (bits‘(𝐴𝑡))) ⊆ (𝐽 × ℕ0))
1310, 11, 12sylancl 692 . . . . 5 (𝑡 ∈ ((𝐴 “ ℕ) ∩ 𝐽) → ({𝑡} × (bits‘(𝐴𝑡))) ⊆ (𝐽 × ℕ0))
147, 13mprgbir 2906 . . . 4 𝑡 ∈ ((𝐴 “ ℕ) ∩ 𝐽)({𝑡} × (bits‘(𝐴𝑡))) ⊆ (𝐽 × ℕ0)
156, 14eqsstri 3593 . . 3 𝑈 ⊆ (𝐽 × ℕ0)
16 f1ores 6045 . . 3 ((𝐹:(𝐽 × ℕ0)–1-1→ℕ ∧ 𝑈 ⊆ (𝐽 × ℕ0)) → (𝐹𝑈):𝑈1-1-onto→(𝐹𝑈))
175, 15, 16mp2an 703 . 2 (𝐹𝑈):𝑈1-1-onto→(𝐹𝑈)
18 simpr 475 . . . . . . . . . . 11 ((((𝐴 ∈ (𝑇𝑅) ∧ 𝑡 ∈ ℕ) ∧ 𝑛 ∈ (bits‘(𝐴𝑡))) ∧ ((2↑𝑛) · 𝑡) = 𝑝) → ((2↑𝑛) · 𝑡) = 𝑝)
19 2nn 11028 . . . . . . . . . . . . . . 15 2 ∈ ℕ
2019a1i 11 . . . . . . . . . . . . . 14 (((𝐴 ∈ (𝑇𝑅) ∧ 𝑡 ∈ ℕ) ∧ 𝑛 ∈ (bits‘(𝐴𝑡))) → 2 ∈ ℕ)
2111sseli 3559 . . . . . . . . . . . . . . 15 (𝑛 ∈ (bits‘(𝐴𝑡)) → 𝑛 ∈ ℕ0)
2221adantl 480 . . . . . . . . . . . . . 14 (((𝐴 ∈ (𝑇𝑅) ∧ 𝑡 ∈ ℕ) ∧ 𝑛 ∈ (bits‘(𝐴𝑡))) → 𝑛 ∈ ℕ0)
2320, 22nnexpcld 12843 . . . . . . . . . . . . 13 (((𝐴 ∈ (𝑇𝑅) ∧ 𝑡 ∈ ℕ) ∧ 𝑛 ∈ (bits‘(𝐴𝑡))) → (2↑𝑛) ∈ ℕ)
24 simplr 787 . . . . . . . . . . . . 13 (((𝐴 ∈ (𝑇𝑅) ∧ 𝑡 ∈ ℕ) ∧ 𝑛 ∈ (bits‘(𝐴𝑡))) → 𝑡 ∈ ℕ)
2523, 24nnmulcld 10911 . . . . . . . . . . . 12 (((𝐴 ∈ (𝑇𝑅) ∧ 𝑡 ∈ ℕ) ∧ 𝑛 ∈ (bits‘(𝐴𝑡))) → ((2↑𝑛) · 𝑡) ∈ ℕ)
2625adantr 479 . . . . . . . . . . 11 ((((𝐴 ∈ (𝑇𝑅) ∧ 𝑡 ∈ ℕ) ∧ 𝑛 ∈ (bits‘(𝐴𝑡))) ∧ ((2↑𝑛) · 𝑡) = 𝑝) → ((2↑𝑛) · 𝑡) ∈ ℕ)
2718, 26eqeltrrd 2684 . . . . . . . . . 10 ((((𝐴 ∈ (𝑇𝑅) ∧ 𝑡 ∈ ℕ) ∧ 𝑛 ∈ (bits‘(𝐴𝑡))) ∧ ((2↑𝑛) · 𝑡) = 𝑝) → 𝑝 ∈ ℕ)
2827exp31 627 . . . . . . . . 9 ((𝐴 ∈ (𝑇𝑅) ∧ 𝑡 ∈ ℕ) → (𝑛 ∈ (bits‘(𝐴𝑡)) → (((2↑𝑛) · 𝑡) = 𝑝𝑝 ∈ ℕ)))
2928rexlimdv 3007 . . . . . . . 8 ((𝐴 ∈ (𝑇𝑅) ∧ 𝑡 ∈ ℕ) → (∃𝑛 ∈ (bits‘(𝐴𝑡))((2↑𝑛) · 𝑡) = 𝑝𝑝 ∈ ℕ))
3029rexlimdva 3008 . . . . . . 7 (𝐴 ∈ (𝑇𝑅) → (∃𝑡 ∈ ℕ ∃𝑛 ∈ (bits‘(𝐴𝑡))((2↑𝑛) · 𝑡) = 𝑝𝑝 ∈ ℕ))
3130pm4.71rd 664 . . . . . 6 (𝐴 ∈ (𝑇𝑅) → (∃𝑡 ∈ ℕ ∃𝑛 ∈ (bits‘(𝐴𝑡))((2↑𝑛) · 𝑡) = 𝑝 ↔ (𝑝 ∈ ℕ ∧ ∃𝑡 ∈ ℕ ∃𝑛 ∈ (bits‘(𝐴𝑡))((2↑𝑛) · 𝑡) = 𝑝)))
32 rex0 3889 . . . . . . . . . . . . . . 15 ¬ ∃𝑛 ∈ ∅ ((2↑𝑛) · 𝑡) = 𝑝
33 simplr 787 . . . . . . . . . . . . . . . . . . . 20 (((𝐴 ∈ (𝑇𝑅) ∧ 𝑡 ∈ ℕ) ∧ ¬ 𝑡 ∈ (𝐴 “ ℕ)) → 𝑡 ∈ ℕ)
34 simpr 475 . . . . . . . . . . . . . . . . . . . . . 22 (((𝐴 ∈ (𝑇𝑅) ∧ 𝑡 ∈ ℕ) ∧ ¬ 𝑡 ∈ (𝐴 “ ℕ)) → ¬ 𝑡 ∈ (𝐴 “ ℕ))
35 eulerpart.p . . . . . . . . . . . . . . . . . . . . . . . . . . 27 𝑃 = {𝑓 ∈ (ℕ0𝑚 ℕ) ∣ ((𝑓 “ ℕ) ∈ Fin ∧ Σ𝑘 ∈ ℕ ((𝑓𝑘) · 𝑘) = 𝑁)}
36 eulerpart.o . . . . . . . . . . . . . . . . . . . . . . . . . . 27 𝑂 = {𝑔𝑃 ∣ ∀𝑛 ∈ (𝑔 “ ℕ) ¬ 2 ∥ 𝑛}
37 eulerpart.d . . . . . . . . . . . . . . . . . . . . . . . . . . 27 𝐷 = {𝑔𝑃 ∣ ∀𝑛 ∈ ℕ (𝑔𝑛) ≤ 1}
38 eulerpart.h . . . . . . . . . . . . . . . . . . . . . . . . . . 27 𝐻 = {𝑟 ∈ ((𝒫 ℕ0 ∩ Fin) ↑𝑚 𝐽) ∣ (𝑟 supp ∅) ∈ Fin}
39 eulerpart.m . . . . . . . . . . . . . . . . . . . . . . . . . . 27 𝑀 = (𝑟𝐻 ↦ {⟨𝑥, 𝑦⟩ ∣ (𝑥𝐽𝑦 ∈ (𝑟𝑥))})
40 eulerpart.r . . . . . . . . . . . . . . . . . . . . . . . . . . 27 𝑅 = {𝑓 ∣ (𝑓 “ ℕ) ∈ Fin}
41 eulerpart.t . . . . . . . . . . . . . . . . . . . . . . . . . . 27 𝑇 = {𝑓 ∈ (ℕ0𝑚 ℕ) ∣ (𝑓 “ ℕ) ⊆ 𝐽}
4235, 36, 37, 1, 2, 38, 39, 40, 41eulerpartlemt0 29560 . . . . . . . . . . . . . . . . . . . . . . . . . 26 (𝐴 ∈ (𝑇𝑅) ↔ (𝐴 ∈ (ℕ0𝑚 ℕ) ∧ (𝐴 “ ℕ) ∈ Fin ∧ (𝐴 “ ℕ) ⊆ 𝐽))
4342simp1bi 1068 . . . . . . . . . . . . . . . . . . . . . . . . 25 (𝐴 ∈ (𝑇𝑅) → 𝐴 ∈ (ℕ0𝑚 ℕ))
44 elmapi 7738 . . . . . . . . . . . . . . . . . . . . . . . . 25 (𝐴 ∈ (ℕ0𝑚 ℕ) → 𝐴:ℕ⟶ℕ0)
4543, 44syl 17 . . . . . . . . . . . . . . . . . . . . . . . 24 (𝐴 ∈ (𝑇𝑅) → 𝐴:ℕ⟶ℕ0)
4645ad2antrr 757 . . . . . . . . . . . . . . . . . . . . . . 23 (((𝐴 ∈ (𝑇𝑅) ∧ 𝑡 ∈ ℕ) ∧ ¬ 𝑡 ∈ (𝐴 “ ℕ)) → 𝐴:ℕ⟶ℕ0)
47 ffn 5940 . . . . . . . . . . . . . . . . . . . . . . 23 (𝐴:ℕ⟶ℕ0𝐴 Fn ℕ)
48 elpreima 6226 . . . . . . . . . . . . . . . . . . . . . . 23 (𝐴 Fn ℕ → (𝑡 ∈ (𝐴 “ ℕ) ↔ (𝑡 ∈ ℕ ∧ (𝐴𝑡) ∈ ℕ)))
4946, 47, 483syl 18 . . . . . . . . . . . . . . . . . . . . . 22 (((𝐴 ∈ (𝑇𝑅) ∧ 𝑡 ∈ ℕ) ∧ ¬ 𝑡 ∈ (𝐴 “ ℕ)) → (𝑡 ∈ (𝐴 “ ℕ) ↔ (𝑡 ∈ ℕ ∧ (𝐴𝑡) ∈ ℕ)))
5034, 49mtbid 312 . . . . . . . . . . . . . . . . . . . . 21 (((𝐴 ∈ (𝑇𝑅) ∧ 𝑡 ∈ ℕ) ∧ ¬ 𝑡 ∈ (𝐴 “ ℕ)) → ¬ (𝑡 ∈ ℕ ∧ (𝐴𝑡) ∈ ℕ))
51 imnan 436 . . . . . . . . . . . . . . . . . . . . 21 ((𝑡 ∈ ℕ → ¬ (𝐴𝑡) ∈ ℕ) ↔ ¬ (𝑡 ∈ ℕ ∧ (𝐴𝑡) ∈ ℕ))
5250, 51sylibr 222 . . . . . . . . . . . . . . . . . . . 20 (((𝐴 ∈ (𝑇𝑅) ∧ 𝑡 ∈ ℕ) ∧ ¬ 𝑡 ∈ (𝐴 “ ℕ)) → (𝑡 ∈ ℕ → ¬ (𝐴𝑡) ∈ ℕ))
5333, 52mpd 15 . . . . . . . . . . . . . . . . . . 19 (((𝐴 ∈ (𝑇𝑅) ∧ 𝑡 ∈ ℕ) ∧ ¬ 𝑡 ∈ (𝐴 “ ℕ)) → ¬ (𝐴𝑡) ∈ ℕ)
5446, 33ffvelrnd 6249 . . . . . . . . . . . . . . . . . . . 20 (((𝐴 ∈ (𝑇𝑅) ∧ 𝑡 ∈ ℕ) ∧ ¬ 𝑡 ∈ (𝐴 “ ℕ)) → (𝐴𝑡) ∈ ℕ0)
55 elnn0 11137 . . . . . . . . . . . . . . . . . . . 20 ((𝐴𝑡) ∈ ℕ0 ↔ ((𝐴𝑡) ∈ ℕ ∨ (𝐴𝑡) = 0))
5654, 55sylib 206 . . . . . . . . . . . . . . . . . . 19 (((𝐴 ∈ (𝑇𝑅) ∧ 𝑡 ∈ ℕ) ∧ ¬ 𝑡 ∈ (𝐴 “ ℕ)) → ((𝐴𝑡) ∈ ℕ ∨ (𝐴𝑡) = 0))
57 orel1 395 . . . . . . . . . . . . . . . . . . 19 (¬ (𝐴𝑡) ∈ ℕ → (((𝐴𝑡) ∈ ℕ ∨ (𝐴𝑡) = 0) → (𝐴𝑡) = 0))
5853, 56, 57sylc 62 . . . . . . . . . . . . . . . . . 18 (((𝐴 ∈ (𝑇𝑅) ∧ 𝑡 ∈ ℕ) ∧ ¬ 𝑡 ∈ (𝐴 “ ℕ)) → (𝐴𝑡) = 0)
5958fveq2d 6088 . . . . . . . . . . . . . . . . 17 (((𝐴 ∈ (𝑇𝑅) ∧ 𝑡 ∈ ℕ) ∧ ¬ 𝑡 ∈ (𝐴 “ ℕ)) → (bits‘(𝐴𝑡)) = (bits‘0))
60 0bits 14941 . . . . . . . . . . . . . . . . 17 (bits‘0) = ∅
6159, 60syl6eq 2655 . . . . . . . . . . . . . . . 16 (((𝐴 ∈ (𝑇𝑅) ∧ 𝑡 ∈ ℕ) ∧ ¬ 𝑡 ∈ (𝐴 “ ℕ)) → (bits‘(𝐴𝑡)) = ∅)
6261rexeqdv 3117 . . . . . . . . . . . . . . 15 (((𝐴 ∈ (𝑇𝑅) ∧ 𝑡 ∈ ℕ) ∧ ¬ 𝑡 ∈ (𝐴 “ ℕ)) → (∃𝑛 ∈ (bits‘(𝐴𝑡))((2↑𝑛) · 𝑡) = 𝑝 ↔ ∃𝑛 ∈ ∅ ((2↑𝑛) · 𝑡) = 𝑝))
6332, 62mtbiri 315 . . . . . . . . . . . . . 14 (((𝐴 ∈ (𝑇𝑅) ∧ 𝑡 ∈ ℕ) ∧ ¬ 𝑡 ∈ (𝐴 “ ℕ)) → ¬ ∃𝑛 ∈ (bits‘(𝐴𝑡))((2↑𝑛) · 𝑡) = 𝑝)
6463ex 448 . . . . . . . . . . . . 13 ((𝐴 ∈ (𝑇𝑅) ∧ 𝑡 ∈ ℕ) → (¬ 𝑡 ∈ (𝐴 “ ℕ) → ¬ ∃𝑛 ∈ (bits‘(𝐴𝑡))((2↑𝑛) · 𝑡) = 𝑝))
6564con4d 112 . . . . . . . . . . . 12 ((𝐴 ∈ (𝑇𝑅) ∧ 𝑡 ∈ ℕ) → (∃𝑛 ∈ (bits‘(𝐴𝑡))((2↑𝑛) · 𝑡) = 𝑝𝑡 ∈ (𝐴 “ ℕ)))
6665impr 646 . . . . . . . . . . 11 ((𝐴 ∈ (𝑇𝑅) ∧ (𝑡 ∈ ℕ ∧ ∃𝑛 ∈ (bits‘(𝐴𝑡))((2↑𝑛) · 𝑡) = 𝑝)) → 𝑡 ∈ (𝐴 “ ℕ))
67 eldif 3545 . . . . . . . . . . . . . . . . . . . 20 (𝑡 ∈ (ℕ ∖ 𝐽) ↔ (𝑡 ∈ ℕ ∧ ¬ 𝑡𝐽))
6835, 36, 37, 1, 2, 38, 39, 40, 41eulerpartlemf 29561 . . . . . . . . . . . . . . . . . . . 20 ((𝐴 ∈ (𝑇𝑅) ∧ 𝑡 ∈ (ℕ ∖ 𝐽)) → (𝐴𝑡) = 0)
6967, 68sylan2br 491 . . . . . . . . . . . . . . . . . . 19 ((𝐴 ∈ (𝑇𝑅) ∧ (𝑡 ∈ ℕ ∧ ¬ 𝑡𝐽)) → (𝐴𝑡) = 0)
7069anassrs 677 . . . . . . . . . . . . . . . . . 18 (((𝐴 ∈ (𝑇𝑅) ∧ 𝑡 ∈ ℕ) ∧ ¬ 𝑡𝐽) → (𝐴𝑡) = 0)
7170fveq2d 6088 . . . . . . . . . . . . . . . . 17 (((𝐴 ∈ (𝑇𝑅) ∧ 𝑡 ∈ ℕ) ∧ ¬ 𝑡𝐽) → (bits‘(𝐴𝑡)) = (bits‘0))
7271, 60syl6eq 2655 . . . . . . . . . . . . . . . 16 (((𝐴 ∈ (𝑇𝑅) ∧ 𝑡 ∈ ℕ) ∧ ¬ 𝑡𝐽) → (bits‘(𝐴𝑡)) = ∅)
7372rexeqdv 3117 . . . . . . . . . . . . . . 15 (((𝐴 ∈ (𝑇𝑅) ∧ 𝑡 ∈ ℕ) ∧ ¬ 𝑡𝐽) → (∃𝑛 ∈ (bits‘(𝐴𝑡))((2↑𝑛) · 𝑡) = 𝑝 ↔ ∃𝑛 ∈ ∅ ((2↑𝑛) · 𝑡) = 𝑝))
7432, 73mtbiri 315 . . . . . . . . . . . . . 14 (((𝐴 ∈ (𝑇𝑅) ∧ 𝑡 ∈ ℕ) ∧ ¬ 𝑡𝐽) → ¬ ∃𝑛 ∈ (bits‘(𝐴𝑡))((2↑𝑛) · 𝑡) = 𝑝)
7574ex 448 . . . . . . . . . . . . 13 ((𝐴 ∈ (𝑇𝑅) ∧ 𝑡 ∈ ℕ) → (¬ 𝑡𝐽 → ¬ ∃𝑛 ∈ (bits‘(𝐴𝑡))((2↑𝑛) · 𝑡) = 𝑝))
7675con4d 112 . . . . . . . . . . . 12 ((𝐴 ∈ (𝑇𝑅) ∧ 𝑡 ∈ ℕ) → (∃𝑛 ∈ (bits‘(𝐴𝑡))((2↑𝑛) · 𝑡) = 𝑝𝑡𝐽))
7776impr 646 . . . . . . . . . . 11 ((𝐴 ∈ (𝑇𝑅) ∧ (𝑡 ∈ ℕ ∧ ∃𝑛 ∈ (bits‘(𝐴𝑡))((2↑𝑛) · 𝑡) = 𝑝)) → 𝑡𝐽)
7866, 77elind 3755 . . . . . . . . . 10 ((𝐴 ∈ (𝑇𝑅) ∧ (𝑡 ∈ ℕ ∧ ∃𝑛 ∈ (bits‘(𝐴𝑡))((2↑𝑛) · 𝑡) = 𝑝)) → 𝑡 ∈ ((𝐴 “ ℕ) ∩ 𝐽))
79 simprr 791 . . . . . . . . . 10 ((𝐴 ∈ (𝑇𝑅) ∧ (𝑡 ∈ ℕ ∧ ∃𝑛 ∈ (bits‘(𝐴𝑡))((2↑𝑛) · 𝑡) = 𝑝)) → ∃𝑛 ∈ (bits‘(𝐴𝑡))((2↑𝑛) · 𝑡) = 𝑝)
8078, 79jca 552 . . . . . . . . 9 ((𝐴 ∈ (𝑇𝑅) ∧ (𝑡 ∈ ℕ ∧ ∃𝑛 ∈ (bits‘(𝐴𝑡))((2↑𝑛) · 𝑡) = 𝑝)) → (𝑡 ∈ ((𝐴 “ ℕ) ∩ 𝐽) ∧ ∃𝑛 ∈ (bits‘(𝐴𝑡))((2↑𝑛) · 𝑡) = 𝑝))
8180ex 448 . . . . . . . 8 (𝐴 ∈ (𝑇𝑅) → ((𝑡 ∈ ℕ ∧ ∃𝑛 ∈ (bits‘(𝐴𝑡))((2↑𝑛) · 𝑡) = 𝑝) → (𝑡 ∈ ((𝐴 “ ℕ) ∩ 𝐽) ∧ ∃𝑛 ∈ (bits‘(𝐴𝑡))((2↑𝑛) · 𝑡) = 𝑝)))
8281reximdv2 2992 . . . . . . 7 (𝐴 ∈ (𝑇𝑅) → (∃𝑡 ∈ ℕ ∃𝑛 ∈ (bits‘(𝐴𝑡))((2↑𝑛) · 𝑡) = 𝑝 → ∃𝑡 ∈ ((𝐴 “ ℕ) ∩ 𝐽)∃𝑛 ∈ (bits‘(𝐴𝑡))((2↑𝑛) · 𝑡) = 𝑝))
83 ssrab2 3645 . . . . . . . . . 10 {𝑧 ∈ ℕ ∣ ¬ 2 ∥ 𝑧} ⊆ ℕ
841, 83eqsstri 3593 . . . . . . . . 9 𝐽 ⊆ ℕ
858, 84sstri 3572 . . . . . . . 8 ((𝐴 “ ℕ) ∩ 𝐽) ⊆ ℕ
86 ssrexv 3625 . . . . . . . 8 (((𝐴 “ ℕ) ∩ 𝐽) ⊆ ℕ → (∃𝑡 ∈ ((𝐴 “ ℕ) ∩ 𝐽)∃𝑛 ∈ (bits‘(𝐴𝑡))((2↑𝑛) · 𝑡) = 𝑝 → ∃𝑡 ∈ ℕ ∃𝑛 ∈ (bits‘(𝐴𝑡))((2↑𝑛) · 𝑡) = 𝑝))
8785, 86mp1i 13 . . . . . . 7 (𝐴 ∈ (𝑇𝑅) → (∃𝑡 ∈ ((𝐴 “ ℕ) ∩ 𝐽)∃𝑛 ∈ (bits‘(𝐴𝑡))((2↑𝑛) · 𝑡) = 𝑝 → ∃𝑡 ∈ ℕ ∃𝑛 ∈ (bits‘(𝐴𝑡))((2↑𝑛) · 𝑡) = 𝑝))
8882, 87impbid 200 . . . . . 6 (𝐴 ∈ (𝑇𝑅) → (∃𝑡 ∈ ℕ ∃𝑛 ∈ (bits‘(𝐴𝑡))((2↑𝑛) · 𝑡) = 𝑝 ↔ ∃𝑡 ∈ ((𝐴 “ ℕ) ∩ 𝐽)∃𝑛 ∈ (bits‘(𝐴𝑡))((2↑𝑛) · 𝑡) = 𝑝))
8931, 88bitr3d 268 . . . . 5 (𝐴 ∈ (𝑇𝑅) → ((𝑝 ∈ ℕ ∧ ∃𝑡 ∈ ℕ ∃𝑛 ∈ (bits‘(𝐴𝑡))((2↑𝑛) · 𝑡) = 𝑝) ↔ ∃𝑡 ∈ ((𝐴 “ ℕ) ∩ 𝐽)∃𝑛 ∈ (bits‘(𝐴𝑡))((2↑𝑛) · 𝑡) = 𝑝))
90 eqeq2 2616 . . . . . . . 8 (𝑚 = 𝑝 → (((2↑𝑛) · 𝑡) = 𝑚 ↔ ((2↑𝑛) · 𝑡) = 𝑝))
91902rexbidv 3034 . . . . . . 7 (𝑚 = 𝑝 → (∃𝑡 ∈ ℕ ∃𝑛 ∈ (bits‘(𝐴𝑡))((2↑𝑛) · 𝑡) = 𝑚 ↔ ∃𝑡 ∈ ℕ ∃𝑛 ∈ (bits‘(𝐴𝑡))((2↑𝑛) · 𝑡) = 𝑝))
9291elrab 3326 . . . . . 6 (𝑝 ∈ {𝑚 ∈ ℕ ∣ ∃𝑡 ∈ ℕ ∃𝑛 ∈ (bits‘(𝐴𝑡))((2↑𝑛) · 𝑡) = 𝑚} ↔ (𝑝 ∈ ℕ ∧ ∃𝑡 ∈ ℕ ∃𝑛 ∈ (bits‘(𝐴𝑡))((2↑𝑛) · 𝑡) = 𝑝))
9392a1i 11 . . . . 5 (𝐴 ∈ (𝑇𝑅) → (𝑝 ∈ {𝑚 ∈ ℕ ∣ ∃𝑡 ∈ ℕ ∃𝑛 ∈ (bits‘(𝐴𝑡))((2↑𝑛) · 𝑡) = 𝑚} ↔ (𝑝 ∈ ℕ ∧ ∃𝑡 ∈ ℕ ∃𝑛 ∈ (bits‘(𝐴𝑡))((2↑𝑛) · 𝑡) = 𝑝)))
946imaeq2i 5366 . . . . . . . . 9 (𝐹𝑈) = (𝐹 𝑡 ∈ ((𝐴 “ ℕ) ∩ 𝐽)({𝑡} × (bits‘(𝐴𝑡))))
95 imaiun 6381 . . . . . . . . 9 (𝐹 𝑡 ∈ ((𝐴 “ ℕ) ∩ 𝐽)({𝑡} × (bits‘(𝐴𝑡)))) = 𝑡 ∈ ((𝐴 “ ℕ) ∩ 𝐽)(𝐹 “ ({𝑡} × (bits‘(𝐴𝑡))))
9694, 95eqtri 2627 . . . . . . . 8 (𝐹𝑈) = 𝑡 ∈ ((𝐴 “ ℕ) ∩ 𝐽)(𝐹 “ ({𝑡} × (bits‘(𝐴𝑡))))
9796eleq2i 2675 . . . . . . 7 (𝑝 ∈ (𝐹𝑈) ↔ 𝑝 𝑡 ∈ ((𝐴 “ ℕ) ∩ 𝐽)(𝐹 “ ({𝑡} × (bits‘(𝐴𝑡)))))
98 eliun 4450 . . . . . . 7 (𝑝 𝑡 ∈ ((𝐴 “ ℕ) ∩ 𝐽)(𝐹 “ ({𝑡} × (bits‘(𝐴𝑡)))) ↔ ∃𝑡 ∈ ((𝐴 “ ℕ) ∩ 𝐽)𝑝 ∈ (𝐹 “ ({𝑡} × (bits‘(𝐴𝑡)))))
99 f1ofn 6032 . . . . . . . . . . . . 13 (𝐹:(𝐽 × ℕ0)–1-1-onto→ℕ → 𝐹 Fn (𝐽 × ℕ0))
1003, 99ax-mp 5 . . . . . . . . . . . 12 𝐹 Fn (𝐽 × ℕ0)
101 snssi 4275 . . . . . . . . . . . . 13 (𝑡𝐽 → {𝑡} ⊆ 𝐽)
102101, 11, 12sylancl 692 . . . . . . . . . . . 12 (𝑡𝐽 → ({𝑡} × (bits‘(𝐴𝑡))) ⊆ (𝐽 × ℕ0))
103 ovelimab 6683 . . . . . . . . . . . 12 ((𝐹 Fn (𝐽 × ℕ0) ∧ ({𝑡} × (bits‘(𝐴𝑡))) ⊆ (𝐽 × ℕ0)) → (𝑝 ∈ (𝐹 “ ({𝑡} × (bits‘(𝐴𝑡)))) ↔ ∃𝑥 ∈ {𝑡}∃𝑛 ∈ (bits‘(𝐴𝑡))𝑝 = (𝑥𝐹𝑛)))
104100, 102, 103sylancr 693 . . . . . . . . . . 11 (𝑡𝐽 → (𝑝 ∈ (𝐹 “ ({𝑡} × (bits‘(𝐴𝑡)))) ↔ ∃𝑥 ∈ {𝑡}∃𝑛 ∈ (bits‘(𝐴𝑡))𝑝 = (𝑥𝐹𝑛)))
105 vex 3171 . . . . . . . . . . . 12 𝑡 ∈ V
106 oveq1 6530 . . . . . . . . . . . . . 14 (𝑥 = 𝑡 → (𝑥𝐹𝑛) = (𝑡𝐹𝑛))
107106eqeq2d 2615 . . . . . . . . . . . . 13 (𝑥 = 𝑡 → (𝑝 = (𝑥𝐹𝑛) ↔ 𝑝 = (𝑡𝐹𝑛)))
108107rexbidv 3029 . . . . . . . . . . . 12 (𝑥 = 𝑡 → (∃𝑛 ∈ (bits‘(𝐴𝑡))𝑝 = (𝑥𝐹𝑛) ↔ ∃𝑛 ∈ (bits‘(𝐴𝑡))𝑝 = (𝑡𝐹𝑛)))
109105, 108rexsn 4165 . . . . . . . . . . 11 (∃𝑥 ∈ {𝑡}∃𝑛 ∈ (bits‘(𝐴𝑡))𝑝 = (𝑥𝐹𝑛) ↔ ∃𝑛 ∈ (bits‘(𝐴𝑡))𝑝 = (𝑡𝐹𝑛))
110104, 109syl6bb 274 . . . . . . . . . 10 (𝑡𝐽 → (𝑝 ∈ (𝐹 “ ({𝑡} × (bits‘(𝐴𝑡)))) ↔ ∃𝑛 ∈ (bits‘(𝐴𝑡))𝑝 = (𝑡𝐹𝑛)))
111 df-ov 6526 . . . . . . . . . . . . . . 15 (𝑡𝐹𝑛) = (𝐹‘⟨𝑡, 𝑛⟩)
112111eqeq1i 2610 . . . . . . . . . . . . . 14 ((𝑡𝐹𝑛) = 𝑝 ↔ (𝐹‘⟨𝑡, 𝑛⟩) = 𝑝)
113 eqcom 2612 . . . . . . . . . . . . . 14 ((𝑡𝐹𝑛) = 𝑝𝑝 = (𝑡𝐹𝑛))
114112, 113bitr3i 264 . . . . . . . . . . . . 13 ((𝐹‘⟨𝑡, 𝑛⟩) = 𝑝𝑝 = (𝑡𝐹𝑛))
115 opelxpi 5058 . . . . . . . . . . . . . . 15 ((𝑡𝐽𝑛 ∈ ℕ0) → ⟨𝑡, 𝑛⟩ ∈ (𝐽 × ℕ0))
1161, 2oddpwdcv 29546 . . . . . . . . . . . . . . . 16 (⟨𝑡, 𝑛⟩ ∈ (𝐽 × ℕ0) → (𝐹‘⟨𝑡, 𝑛⟩) = ((2↑(2nd ‘⟨𝑡, 𝑛⟩)) · (1st ‘⟨𝑡, 𝑛⟩)))
117 vex 3171 . . . . . . . . . . . . . . . . . . 19 𝑛 ∈ V
118105, 117op2nd 7041 . . . . . . . . . . . . . . . . . 18 (2nd ‘⟨𝑡, 𝑛⟩) = 𝑛
119118oveq2i 6534 . . . . . . . . . . . . . . . . 17 (2↑(2nd ‘⟨𝑡, 𝑛⟩)) = (2↑𝑛)
120105, 117op1st 7040 . . . . . . . . . . . . . . . . 17 (1st ‘⟨𝑡, 𝑛⟩) = 𝑡
121119, 120oveq12i 6535 . . . . . . . . . . . . . . . 16 ((2↑(2nd ‘⟨𝑡, 𝑛⟩)) · (1st ‘⟨𝑡, 𝑛⟩)) = ((2↑𝑛) · 𝑡)
122116, 121syl6eq 2655 . . . . . . . . . . . . . . 15 (⟨𝑡, 𝑛⟩ ∈ (𝐽 × ℕ0) → (𝐹‘⟨𝑡, 𝑛⟩) = ((2↑𝑛) · 𝑡))
123115, 122syl 17 . . . . . . . . . . . . . 14 ((𝑡𝐽𝑛 ∈ ℕ0) → (𝐹‘⟨𝑡, 𝑛⟩) = ((2↑𝑛) · 𝑡))
124123eqeq1d 2607 . . . . . . . . . . . . 13 ((𝑡𝐽𝑛 ∈ ℕ0) → ((𝐹‘⟨𝑡, 𝑛⟩) = 𝑝 ↔ ((2↑𝑛) · 𝑡) = 𝑝))
125114, 124syl5bbr 272 . . . . . . . . . . . 12 ((𝑡𝐽𝑛 ∈ ℕ0) → (𝑝 = (𝑡𝐹𝑛) ↔ ((2↑𝑛) · 𝑡) = 𝑝))
12621, 125sylan2 489 . . . . . . . . . . 11 ((𝑡𝐽𝑛 ∈ (bits‘(𝐴𝑡))) → (𝑝 = (𝑡𝐹𝑛) ↔ ((2↑𝑛) · 𝑡) = 𝑝))
127126rexbidva 3026 . . . . . . . . . 10 (𝑡𝐽 → (∃𝑛 ∈ (bits‘(𝐴𝑡))𝑝 = (𝑡𝐹𝑛) ↔ ∃𝑛 ∈ (bits‘(𝐴𝑡))((2↑𝑛) · 𝑡) = 𝑝))
128110, 127bitrd 266 . . . . . . . . 9 (𝑡𝐽 → (𝑝 ∈ (𝐹 “ ({𝑡} × (bits‘(𝐴𝑡)))) ↔ ∃𝑛 ∈ (bits‘(𝐴𝑡))((2↑𝑛) · 𝑡) = 𝑝))
1299, 128syl 17 . . . . . . . 8 (𝑡 ∈ ((𝐴 “ ℕ) ∩ 𝐽) → (𝑝 ∈ (𝐹 “ ({𝑡} × (bits‘(𝐴𝑡)))) ↔ ∃𝑛 ∈ (bits‘(𝐴𝑡))((2↑𝑛) · 𝑡) = 𝑝))
130129rexbiia 3017 . . . . . . 7 (∃𝑡 ∈ ((𝐴 “ ℕ) ∩ 𝐽)𝑝 ∈ (𝐹 “ ({𝑡} × (bits‘(𝐴𝑡)))) ↔ ∃𝑡 ∈ ((𝐴 “ ℕ) ∩ 𝐽)∃𝑛 ∈ (bits‘(𝐴𝑡))((2↑𝑛) · 𝑡) = 𝑝)
13197, 98, 1303bitri 284 . . . . . 6 (𝑝 ∈ (𝐹𝑈) ↔ ∃𝑡 ∈ ((𝐴 “ ℕ) ∩ 𝐽)∃𝑛 ∈ (bits‘(𝐴𝑡))((2↑𝑛) · 𝑡) = 𝑝)
132131a1i 11 . . . . 5 (𝐴 ∈ (𝑇𝑅) → (𝑝 ∈ (𝐹𝑈) ↔ ∃𝑡 ∈ ((𝐴 “ ℕ) ∩ 𝐽)∃𝑛 ∈ (bits‘(𝐴𝑡))((2↑𝑛) · 𝑡) = 𝑝))
13389, 93, 1323bitr4rd 299 . . . 4 (𝐴 ∈ (𝑇𝑅) → (𝑝 ∈ (𝐹𝑈) ↔ 𝑝 ∈ {𝑚 ∈ ℕ ∣ ∃𝑡 ∈ ℕ ∃𝑛 ∈ (bits‘(𝐴𝑡))((2↑𝑛) · 𝑡) = 𝑚}))
134133eqrdv 2603 . . 3 (𝐴 ∈ (𝑇𝑅) → (𝐹𝑈) = {𝑚 ∈ ℕ ∣ ∃𝑡 ∈ ℕ ∃𝑛 ∈ (bits‘(𝐴𝑡))((2↑𝑛) · 𝑡) = 𝑚})
135 f1oeq3 6023 . . 3 ((𝐹𝑈) = {𝑚 ∈ ℕ ∣ ∃𝑡 ∈ ℕ ∃𝑛 ∈ (bits‘(𝐴𝑡))((2↑𝑛) · 𝑡) = 𝑚} → ((𝐹𝑈):𝑈1-1-onto→(𝐹𝑈) ↔ (𝐹𝑈):𝑈1-1-onto→{𝑚 ∈ ℕ ∣ ∃𝑡 ∈ ℕ ∃𝑛 ∈ (bits‘(𝐴𝑡))((2↑𝑛) · 𝑡) = 𝑚}))
136134, 135syl 17 . 2 (𝐴 ∈ (𝑇𝑅) → ((𝐹𝑈):𝑈1-1-onto→(𝐹𝑈) ↔ (𝐹𝑈):𝑈1-1-onto→{𝑚 ∈ ℕ ∣ ∃𝑡 ∈ ℕ ∃𝑛 ∈ (bits‘(𝐴𝑡))((2↑𝑛) · 𝑡) = 𝑚}))
13717, 136mpbii 221 1 (𝐴 ∈ (𝑇𝑅) → (𝐹𝑈):𝑈1-1-onto→{𝑚 ∈ ℕ ∣ ∃𝑡 ∈ ℕ ∃𝑛 ∈ (bits‘(𝐴𝑡))((2↑𝑛) · 𝑡) = 𝑚})
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 194  wo 381  wa 382   = wceq 1474  wcel 1975  {cab 2591  wral 2891  wrex 2892  {crab 2895  cdif 3532  cin 3534  wss 3535  c0 3869  𝒫 cpw 4103  {csn 4120  cop 4126   ciun 4445   class class class wbr 4573  {copab 4632  cmpt 4633   × cxp 5022  ccnv 5023  cres 5026  cima 5027  ccom 5028   Fn wfn 5781  wf 5782  1-1wf1 5783  1-1-ontowf1o 5785  cfv 5786  (class class class)co 6523  cmpt2 6525  1st c1st 7030  2nd c2nd 7031   supp csupp 7155  𝑚 cmap 7717  Fincfn 7814  0cc0 9788  1c1 9789   · cmul 9793  cle 9927  cn 10863  2c2 10913  0cn0 11135  cexp 12673  Σcsu 14206  cdvds 14763  bitscbits 14921  𝟭cind 29202
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1711  ax-4 1726  ax-5 1825  ax-6 1873  ax-7 1920  ax-8 1977  ax-9 1984  ax-10 2004  ax-11 2019  ax-12 2031  ax-13 2228  ax-ext 2585  ax-sep 4699  ax-nul 4708  ax-pow 4760  ax-pr 4824  ax-un 6820  ax-cnex 9844  ax-resscn 9845  ax-1cn 9846  ax-icn 9847  ax-addcl 9848  ax-addrcl 9849  ax-mulcl 9850  ax-mulrcl 9851  ax-mulcom 9852  ax-addass 9853  ax-mulass 9854  ax-distr 9855  ax-i2m1 9856  ax-1ne0 9857  ax-1rid 9858  ax-rnegex 9859  ax-rrecex 9860  ax-cnre 9861  ax-pre-lttri 9862  ax-pre-lttrn 9863  ax-pre-ltadd 9864  ax-pre-mulgt0 9865  ax-pre-sup 9866
This theorem depends on definitions:  df-bi 195  df-or 383  df-an 384  df-3or 1031  df-3an 1032  df-tru 1477  df-ex 1695  df-nf 1700  df-sb 1866  df-eu 2457  df-mo 2458  df-clab 2592  df-cleq 2598  df-clel 2601  df-nfc 2735  df-ne 2777  df-nel 2778  df-ral 2896  df-rex 2897  df-reu 2898  df-rmo 2899  df-rab 2900  df-v 3170  df-sbc 3398  df-csb 3495  df-dif 3538  df-un 3540  df-in 3542  df-ss 3549  df-pss 3551  df-nul 3870  df-if 4032  df-pw 4105  df-sn 4121  df-pr 4123  df-tp 4125  df-op 4127  df-uni 4363  df-iun 4447  df-br 4574  df-opab 4634  df-mpt 4635  df-tr 4671  df-eprel 4935  df-id 4939  df-po 4945  df-so 4946  df-fr 4983  df-we 4985  df-xp 5030  df-rel 5031  df-cnv 5032  df-co 5033  df-dm 5034  df-rn 5035  df-res 5036  df-ima 5037  df-pred 5579  df-ord 5625  df-on 5626  df-lim 5627  df-suc 5628  df-iota 5750  df-fun 5788  df-fn 5789  df-f 5790  df-f1 5791  df-fo 5792  df-f1o 5793  df-fv 5794  df-riota 6485  df-ov 6526  df-oprab 6527  df-mpt2 6528  df-om 6931  df-1st 7032  df-2nd 7033  df-wrecs 7267  df-recs 7328  df-rdg 7366  df-1o 7420  df-er 7602  df-map 7719  df-en 7815  df-dom 7816  df-sdom 7817  df-fin 7818  df-sup 8204  df-inf 8205  df-pnf 9928  df-mnf 9929  df-xr 9930  df-ltxr 9931  df-le 9932  df-sub 10115  df-neg 10116  df-div 10530  df-nn 10864  df-2 10922  df-n0 11136  df-z 11207  df-uz 11516  df-rp 11661  df-fz 12149  df-fzo 12286  df-fl 12406  df-seq 12615  df-exp 12674  df-dvds 14764  df-bits 14924
This theorem is referenced by:  eulerpartlemgs2  29571
  Copyright terms: Public domain W3C validator