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

Theorem ackbijnn 15468
Description: Translate the Ackermann bijection ackbij1 9925 onto the positive integers. (Contributed by Mario Carneiro, 16-Jan-2015.)
Hypothesis
Ref Expression
ackbijnn.1 𝐹 = (𝑥 ∈ (𝒫 ℕ0 ∩ Fin) ↦ Σ𝑦𝑥 (2↑𝑦))
Assertion
Ref Expression
ackbijnn 𝐹:(𝒫 ℕ0 ∩ Fin)–1-1-onto→ℕ0
Distinct variable group:   𝑥,𝑦
Allowed substitution hints:   𝐹(𝑥,𝑦)

Proof of Theorem ackbijnn
Dummy variables 𝑤 𝑧 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 hashgval2 14021 . . . 4 (♯ ↾ ω) = (rec((𝑥 ∈ V ↦ (𝑥 + 1)), 0) ↾ ω)
21hashgf1o 13619 . . 3 (♯ ↾ ω):ω–1-1-onto→ℕ0
3 sneq 4568 . . . . . . . . . 10 (𝑤 = 𝑦 → {𝑤} = {𝑦})
4 pweq 4546 . . . . . . . . . 10 (𝑤 = 𝑦 → 𝒫 𝑤 = 𝒫 𝑦)
53, 4xpeq12d 5611 . . . . . . . . 9 (𝑤 = 𝑦 → ({𝑤} × 𝒫 𝑤) = ({𝑦} × 𝒫 𝑦))
65cbviunv 4966 . . . . . . . 8 𝑤𝑧 ({𝑤} × 𝒫 𝑤) = 𝑦𝑧 ({𝑦} × 𝒫 𝑦)
7 iuneq1 4937 . . . . . . . 8 (𝑧 = 𝑥 𝑦𝑧 ({𝑦} × 𝒫 𝑦) = 𝑦𝑥 ({𝑦} × 𝒫 𝑦))
86, 7eqtrid 2790 . . . . . . 7 (𝑧 = 𝑥 𝑤𝑧 ({𝑤} × 𝒫 𝑤) = 𝑦𝑥 ({𝑦} × 𝒫 𝑦))
98fveq2d 6760 . . . . . 6 (𝑧 = 𝑥 → (card‘ 𝑤𝑧 ({𝑤} × 𝒫 𝑤)) = (card‘ 𝑦𝑥 ({𝑦} × 𝒫 𝑦)))
109cbvmptv 5183 . . . . 5 (𝑧 ∈ (𝒫 ω ∩ Fin) ↦ (card‘ 𝑤𝑧 ({𝑤} × 𝒫 𝑤))) = (𝑥 ∈ (𝒫 ω ∩ Fin) ↦ (card‘ 𝑦𝑥 ({𝑦} × 𝒫 𝑦)))
1110ackbij1 9925 . . . 4 (𝑧 ∈ (𝒫 ω ∩ Fin) ↦ (card‘ 𝑤𝑧 ({𝑤} × 𝒫 𝑤))):(𝒫 ω ∩ Fin)–1-1-onto→ω
12 f1ocnv 6712 . . . . . 6 ((♯ ↾ ω):ω–1-1-onto→ℕ0(♯ ↾ ω):ℕ01-1-onto→ω)
132, 12ax-mp 5 . . . . 5 (♯ ↾ ω):ℕ01-1-onto→ω
14 f1opwfi 9053 . . . . 5 ((♯ ↾ ω):ℕ01-1-onto→ω → (𝑥 ∈ (𝒫 ℕ0 ∩ Fin) ↦ ((♯ ↾ ω) “ 𝑥)):(𝒫 ℕ0 ∩ Fin)–1-1-onto→(𝒫 ω ∩ Fin))
1513, 14ax-mp 5 . . . 4 (𝑥 ∈ (𝒫 ℕ0 ∩ Fin) ↦ ((♯ ↾ ω) “ 𝑥)):(𝒫 ℕ0 ∩ Fin)–1-1-onto→(𝒫 ω ∩ Fin)
16 f1oco 6722 . . . 4 (((𝑧 ∈ (𝒫 ω ∩ Fin) ↦ (card‘ 𝑤𝑧 ({𝑤} × 𝒫 𝑤))):(𝒫 ω ∩ Fin)–1-1-onto→ω ∧ (𝑥 ∈ (𝒫 ℕ0 ∩ Fin) ↦ ((♯ ↾ ω) “ 𝑥)):(𝒫 ℕ0 ∩ Fin)–1-1-onto→(𝒫 ω ∩ Fin)) → ((𝑧 ∈ (𝒫 ω ∩ Fin) ↦ (card‘ 𝑤𝑧 ({𝑤} × 𝒫 𝑤))) ∘ (𝑥 ∈ (𝒫 ℕ0 ∩ Fin) ↦ ((♯ ↾ ω) “ 𝑥))):(𝒫 ℕ0 ∩ Fin)–1-1-onto→ω)
1711, 15, 16mp2an 688 . . 3 ((𝑧 ∈ (𝒫 ω ∩ Fin) ↦ (card‘ 𝑤𝑧 ({𝑤} × 𝒫 𝑤))) ∘ (𝑥 ∈ (𝒫 ℕ0 ∩ Fin) ↦ ((♯ ↾ ω) “ 𝑥))):(𝒫 ℕ0 ∩ Fin)–1-1-onto→ω
18 f1oco 6722 . . 3 (((♯ ↾ ω):ω–1-1-onto→ℕ0 ∧ ((𝑧 ∈ (𝒫 ω ∩ Fin) ↦ (card‘ 𝑤𝑧 ({𝑤} × 𝒫 𝑤))) ∘ (𝑥 ∈ (𝒫 ℕ0 ∩ Fin) ↦ ((♯ ↾ ω) “ 𝑥))):(𝒫 ℕ0 ∩ Fin)–1-1-onto→ω) → ((♯ ↾ ω) ∘ ((𝑧 ∈ (𝒫 ω ∩ Fin) ↦ (card‘ 𝑤𝑧 ({𝑤} × 𝒫 𝑤))) ∘ (𝑥 ∈ (𝒫 ℕ0 ∩ Fin) ↦ ((♯ ↾ ω) “ 𝑥)))):(𝒫 ℕ0 ∩ Fin)–1-1-onto→ℕ0)
192, 17, 18mp2an 688 . 2 ((♯ ↾ ω) ∘ ((𝑧 ∈ (𝒫 ω ∩ Fin) ↦ (card‘ 𝑤𝑧 ({𝑤} × 𝒫 𝑤))) ∘ (𝑥 ∈ (𝒫 ℕ0 ∩ Fin) ↦ ((♯ ↾ ω) “ 𝑥)))):(𝒫 ℕ0 ∩ Fin)–1-1-onto→ℕ0
20 inss2 4160 . . . . . . . . . 10 (𝒫 ω ∩ Fin) ⊆ Fin
21 f1of 6700 . . . . . . . . . . . . 13 ((𝑥 ∈ (𝒫 ℕ0 ∩ Fin) ↦ ((♯ ↾ ω) “ 𝑥)):(𝒫 ℕ0 ∩ Fin)–1-1-onto→(𝒫 ω ∩ Fin) → (𝑥 ∈ (𝒫 ℕ0 ∩ Fin) ↦ ((♯ ↾ ω) “ 𝑥)):(𝒫 ℕ0 ∩ Fin)⟶(𝒫 ω ∩ Fin))
2215, 21ax-mp 5 . . . . . . . . . . . 12 (𝑥 ∈ (𝒫 ℕ0 ∩ Fin) ↦ ((♯ ↾ ω) “ 𝑥)):(𝒫 ℕ0 ∩ Fin)⟶(𝒫 ω ∩ Fin)
23 eqid 2738 . . . . . . . . . . . . 13 (𝑥 ∈ (𝒫 ℕ0 ∩ Fin) ↦ ((♯ ↾ ω) “ 𝑥)) = (𝑥 ∈ (𝒫 ℕ0 ∩ Fin) ↦ ((♯ ↾ ω) “ 𝑥))
2423fmpt 6966 . . . . . . . . . . . 12 (∀𝑥 ∈ (𝒫 ℕ0 ∩ Fin)((♯ ↾ ω) “ 𝑥) ∈ (𝒫 ω ∩ Fin) ↔ (𝑥 ∈ (𝒫 ℕ0 ∩ Fin) ↦ ((♯ ↾ ω) “ 𝑥)):(𝒫 ℕ0 ∩ Fin)⟶(𝒫 ω ∩ Fin))
2522, 24mpbir 230 . . . . . . . . . . 11 𝑥 ∈ (𝒫 ℕ0 ∩ Fin)((♯ ↾ ω) “ 𝑥) ∈ (𝒫 ω ∩ Fin)
2625rspec 3131 . . . . . . . . . 10 (𝑥 ∈ (𝒫 ℕ0 ∩ Fin) → ((♯ ↾ ω) “ 𝑥) ∈ (𝒫 ω ∩ Fin))
2720, 26sselid 3915 . . . . . . . . 9 (𝑥 ∈ (𝒫 ℕ0 ∩ Fin) → ((♯ ↾ ω) “ 𝑥) ∈ Fin)
28 snfi 8788 . . . . . . . . . . 11 {𝑤} ∈ Fin
29 cnvimass 5978 . . . . . . . . . . . . . . 15 ((♯ ↾ ω) “ 𝑥) ⊆ dom (♯ ↾ ω)
30 dmhashres 13983 . . . . . . . . . . . . . . 15 dom (♯ ↾ ω) = ω
3129, 30sseqtri 3953 . . . . . . . . . . . . . 14 ((♯ ↾ ω) “ 𝑥) ⊆ ω
32 onfin2 8945 . . . . . . . . . . . . . . 15 ω = (On ∩ Fin)
33 inss2 4160 . . . . . . . . . . . . . . 15 (On ∩ Fin) ⊆ Fin
3432, 33eqsstri 3951 . . . . . . . . . . . . . 14 ω ⊆ Fin
3531, 34sstri 3926 . . . . . . . . . . . . 13 ((♯ ↾ ω) “ 𝑥) ⊆ Fin
36 simpr 484 . . . . . . . . . . . . 13 ((𝑥 ∈ (𝒫 ℕ0 ∩ Fin) ∧ 𝑤 ∈ ((♯ ↾ ω) “ 𝑥)) → 𝑤 ∈ ((♯ ↾ ω) “ 𝑥))
3735, 36sselid 3915 . . . . . . . . . . . 12 ((𝑥 ∈ (𝒫 ℕ0 ∩ Fin) ∧ 𝑤 ∈ ((♯ ↾ ω) “ 𝑥)) → 𝑤 ∈ Fin)
38 pwfi 8923 . . . . . . . . . . . 12 (𝑤 ∈ Fin ↔ 𝒫 𝑤 ∈ Fin)
3937, 38sylib 217 . . . . . . . . . . 11 ((𝑥 ∈ (𝒫 ℕ0 ∩ Fin) ∧ 𝑤 ∈ ((♯ ↾ ω) “ 𝑥)) → 𝒫 𝑤 ∈ Fin)
40 xpfi 9015 . . . . . . . . . . 11 (({𝑤} ∈ Fin ∧ 𝒫 𝑤 ∈ Fin) → ({𝑤} × 𝒫 𝑤) ∈ Fin)
4128, 39, 40sylancr 586 . . . . . . . . . 10 ((𝑥 ∈ (𝒫 ℕ0 ∩ Fin) ∧ 𝑤 ∈ ((♯ ↾ ω) “ 𝑥)) → ({𝑤} × 𝒫 𝑤) ∈ Fin)
4241ralrimiva 3107 . . . . . . . . 9 (𝑥 ∈ (𝒫 ℕ0 ∩ Fin) → ∀𝑤 ∈ ((♯ ↾ ω) “ 𝑥)({𝑤} × 𝒫 𝑤) ∈ Fin)
43 iunfi 9037 . . . . . . . . 9 ((((♯ ↾ ω) “ 𝑥) ∈ Fin ∧ ∀𝑤 ∈ ((♯ ↾ ω) “ 𝑥)({𝑤} × 𝒫 𝑤) ∈ Fin) → 𝑤 ∈ ((♯ ↾ ω) “ 𝑥)({𝑤} × 𝒫 𝑤) ∈ Fin)
4427, 42, 43syl2anc 583 . . . . . . . 8 (𝑥 ∈ (𝒫 ℕ0 ∩ Fin) → 𝑤 ∈ ((♯ ↾ ω) “ 𝑥)({𝑤} × 𝒫 𝑤) ∈ Fin)
45 ficardom 9650 . . . . . . . 8 ( 𝑤 ∈ ((♯ ↾ ω) “ 𝑥)({𝑤} × 𝒫 𝑤) ∈ Fin → (card‘ 𝑤 ∈ ((♯ ↾ ω) “ 𝑥)({𝑤} × 𝒫 𝑤)) ∈ ω)
4644, 45syl 17 . . . . . . 7 (𝑥 ∈ (𝒫 ℕ0 ∩ Fin) → (card‘ 𝑤 ∈ ((♯ ↾ ω) “ 𝑥)({𝑤} × 𝒫 𝑤)) ∈ ω)
4746fvresd 6776 . . . . . 6 (𝑥 ∈ (𝒫 ℕ0 ∩ Fin) → ((♯ ↾ ω)‘(card‘ 𝑤 ∈ ((♯ ↾ ω) “ 𝑥)({𝑤} × 𝒫 𝑤))) = (♯‘(card‘ 𝑤 ∈ ((♯ ↾ ω) “ 𝑥)({𝑤} × 𝒫 𝑤))))
48 hashcard 13998 . . . . . . 7 ( 𝑤 ∈ ((♯ ↾ ω) “ 𝑥)({𝑤} × 𝒫 𝑤) ∈ Fin → (♯‘(card‘ 𝑤 ∈ ((♯ ↾ ω) “ 𝑥)({𝑤} × 𝒫 𝑤))) = (♯‘ 𝑤 ∈ ((♯ ↾ ω) “ 𝑥)({𝑤} × 𝒫 𝑤)))
4944, 48syl 17 . . . . . 6 (𝑥 ∈ (𝒫 ℕ0 ∩ Fin) → (♯‘(card‘ 𝑤 ∈ ((♯ ↾ ω) “ 𝑥)({𝑤} × 𝒫 𝑤))) = (♯‘ 𝑤 ∈ ((♯ ↾ ω) “ 𝑥)({𝑤} × 𝒫 𝑤)))
50 xp1st 7836 . . . . . . . . . . . 12 (𝑧 ∈ ({𝑤} × 𝒫 𝑤) → (1st𝑧) ∈ {𝑤})
51 elsni 4575 . . . . . . . . . . . 12 ((1st𝑧) ∈ {𝑤} → (1st𝑧) = 𝑤)
5250, 51syl 17 . . . . . . . . . . 11 (𝑧 ∈ ({𝑤} × 𝒫 𝑤) → (1st𝑧) = 𝑤)
5352rgen 3073 . . . . . . . . . 10 𝑧 ∈ ({𝑤} × 𝒫 𝑤)(1st𝑧) = 𝑤
5453rgenw 3075 . . . . . . . . 9 𝑤 ∈ ((♯ ↾ ω) “ 𝑥)∀𝑧 ∈ ({𝑤} × 𝒫 𝑤)(1st𝑧) = 𝑤
55 invdisj 5054 . . . . . . . . 9 (∀𝑤 ∈ ((♯ ↾ ω) “ 𝑥)∀𝑧 ∈ ({𝑤} × 𝒫 𝑤)(1st𝑧) = 𝑤Disj 𝑤 ∈ ((♯ ↾ ω) “ 𝑥)({𝑤} × 𝒫 𝑤))
5654, 55mp1i 13 . . . . . . . 8 (𝑥 ∈ (𝒫 ℕ0 ∩ Fin) → Disj 𝑤 ∈ ((♯ ↾ ω) “ 𝑥)({𝑤} × 𝒫 𝑤))
5727, 41, 56hashiun 15462 . . . . . . 7 (𝑥 ∈ (𝒫 ℕ0 ∩ Fin) → (♯‘ 𝑤 ∈ ((♯ ↾ ω) “ 𝑥)({𝑤} × 𝒫 𝑤)) = Σ𝑤 ∈ ((♯ ↾ ω) “ 𝑥)(♯‘({𝑤} × 𝒫 𝑤)))
58 sneq 4568 . . . . . . . . . 10 (𝑤 = ((♯ ↾ ω)‘𝑦) → {𝑤} = {((♯ ↾ ω)‘𝑦)})
59 pweq 4546 . . . . . . . . . 10 (𝑤 = ((♯ ↾ ω)‘𝑦) → 𝒫 𝑤 = 𝒫 ((♯ ↾ ω)‘𝑦))
6058, 59xpeq12d 5611 . . . . . . . . 9 (𝑤 = ((♯ ↾ ω)‘𝑦) → ({𝑤} × 𝒫 𝑤) = ({((♯ ↾ ω)‘𝑦)} × 𝒫 ((♯ ↾ ω)‘𝑦)))
6160fveq2d 6760 . . . . . . . 8 (𝑤 = ((♯ ↾ ω)‘𝑦) → (♯‘({𝑤} × 𝒫 𝑤)) = (♯‘({((♯ ↾ ω)‘𝑦)} × 𝒫 ((♯ ↾ ω)‘𝑦))))
62 elinel2 4126 . . . . . . . 8 (𝑥 ∈ (𝒫 ℕ0 ∩ Fin) → 𝑥 ∈ Fin)
63 f1of1 6699 . . . . . . . . . 10 ((♯ ↾ ω):ℕ01-1-onto→ω → (♯ ↾ ω):ℕ01-1→ω)
6413, 63ax-mp 5 . . . . . . . . 9 (♯ ↾ ω):ℕ01-1→ω
65 elinel1 4125 . . . . . . . . . 10 (𝑥 ∈ (𝒫 ℕ0 ∩ Fin) → 𝑥 ∈ 𝒫 ℕ0)
6665elpwid 4541 . . . . . . . . 9 (𝑥 ∈ (𝒫 ℕ0 ∩ Fin) → 𝑥 ⊆ ℕ0)
67 f1ores 6714 . . . . . . . . 9 (((♯ ↾ ω):ℕ01-1→ω ∧ 𝑥 ⊆ ℕ0) → ((♯ ↾ ω) ↾ 𝑥):𝑥1-1-onto→((♯ ↾ ω) “ 𝑥))
6864, 66, 67sylancr 586 . . . . . . . 8 (𝑥 ∈ (𝒫 ℕ0 ∩ Fin) → ((♯ ↾ ω) ↾ 𝑥):𝑥1-1-onto→((♯ ↾ ω) “ 𝑥))
69 fvres 6775 . . . . . . . . 9 (𝑦𝑥 → (((♯ ↾ ω) ↾ 𝑥)‘𝑦) = ((♯ ↾ ω)‘𝑦))
7069adantl 481 . . . . . . . 8 ((𝑥 ∈ (𝒫 ℕ0 ∩ Fin) ∧ 𝑦𝑥) → (((♯ ↾ ω) ↾ 𝑥)‘𝑦) = ((♯ ↾ ω)‘𝑦))
71 hashcl 13999 . . . . . . . . 9 (({𝑤} × 𝒫 𝑤) ∈ Fin → (♯‘({𝑤} × 𝒫 𝑤)) ∈ ℕ0)
72 nn0cn 12173 . . . . . . . . 9 ((♯‘({𝑤} × 𝒫 𝑤)) ∈ ℕ0 → (♯‘({𝑤} × 𝒫 𝑤)) ∈ ℂ)
7341, 71, 723syl 18 . . . . . . . 8 ((𝑥 ∈ (𝒫 ℕ0 ∩ Fin) ∧ 𝑤 ∈ ((♯ ↾ ω) “ 𝑥)) → (♯‘({𝑤} × 𝒫 𝑤)) ∈ ℂ)
7461, 62, 68, 70, 73fsumf1o 15363 . . . . . . 7 (𝑥 ∈ (𝒫 ℕ0 ∩ Fin) → Σ𝑤 ∈ ((♯ ↾ ω) “ 𝑥)(♯‘({𝑤} × 𝒫 𝑤)) = Σ𝑦𝑥 (♯‘({((♯ ↾ ω)‘𝑦)} × 𝒫 ((♯ ↾ ω)‘𝑦))))
75 snfi 8788 . . . . . . . . . 10 {((♯ ↾ ω)‘𝑦)} ∈ Fin
7666sselda 3917 . . . . . . . . . . . . 13 ((𝑥 ∈ (𝒫 ℕ0 ∩ Fin) ∧ 𝑦𝑥) → 𝑦 ∈ ℕ0)
77 f1of 6700 . . . . . . . . . . . . . . 15 ((♯ ↾ ω):ℕ01-1-onto→ω → (♯ ↾ ω):ℕ0⟶ω)
7813, 77ax-mp 5 . . . . . . . . . . . . . 14 (♯ ↾ ω):ℕ0⟶ω
7978ffvelrni 6942 . . . . . . . . . . . . 13 (𝑦 ∈ ℕ0 → ((♯ ↾ ω)‘𝑦) ∈ ω)
8076, 79syl 17 . . . . . . . . . . . 12 ((𝑥 ∈ (𝒫 ℕ0 ∩ Fin) ∧ 𝑦𝑥) → ((♯ ↾ ω)‘𝑦) ∈ ω)
8134, 80sselid 3915 . . . . . . . . . . 11 ((𝑥 ∈ (𝒫 ℕ0 ∩ Fin) ∧ 𝑦𝑥) → ((♯ ↾ ω)‘𝑦) ∈ Fin)
82 pwfi 8923 . . . . . . . . . . 11 (((♯ ↾ ω)‘𝑦) ∈ Fin ↔ 𝒫 ((♯ ↾ ω)‘𝑦) ∈ Fin)
8381, 82sylib 217 . . . . . . . . . 10 ((𝑥 ∈ (𝒫 ℕ0 ∩ Fin) ∧ 𝑦𝑥) → 𝒫 ((♯ ↾ ω)‘𝑦) ∈ Fin)
84 hashxp 14077 . . . . . . . . . 10 (({((♯ ↾ ω)‘𝑦)} ∈ Fin ∧ 𝒫 ((♯ ↾ ω)‘𝑦) ∈ Fin) → (♯‘({((♯ ↾ ω)‘𝑦)} × 𝒫 ((♯ ↾ ω)‘𝑦))) = ((♯‘{((♯ ↾ ω)‘𝑦)}) · (♯‘𝒫 ((♯ ↾ ω)‘𝑦))))
8575, 83, 84sylancr 586 . . . . . . . . 9 ((𝑥 ∈ (𝒫 ℕ0 ∩ Fin) ∧ 𝑦𝑥) → (♯‘({((♯ ↾ ω)‘𝑦)} × 𝒫 ((♯ ↾ ω)‘𝑦))) = ((♯‘{((♯ ↾ ω)‘𝑦)}) · (♯‘𝒫 ((♯ ↾ ω)‘𝑦))))
86 hashsng 14012 . . . . . . . . . . 11 (((♯ ↾ ω)‘𝑦) ∈ ω → (♯‘{((♯ ↾ ω)‘𝑦)}) = 1)
8780, 86syl 17 . . . . . . . . . 10 ((𝑥 ∈ (𝒫 ℕ0 ∩ Fin) ∧ 𝑦𝑥) → (♯‘{((♯ ↾ ω)‘𝑦)}) = 1)
88 hashpw 14079 . . . . . . . . . . . 12 (((♯ ↾ ω)‘𝑦) ∈ Fin → (♯‘𝒫 ((♯ ↾ ω)‘𝑦)) = (2↑(♯‘((♯ ↾ ω)‘𝑦))))
8981, 88syl 17 . . . . . . . . . . 11 ((𝑥 ∈ (𝒫 ℕ0 ∩ Fin) ∧ 𝑦𝑥) → (♯‘𝒫 ((♯ ↾ ω)‘𝑦)) = (2↑(♯‘((♯ ↾ ω)‘𝑦))))
9080fvresd 6776 . . . . . . . . . . . . 13 ((𝑥 ∈ (𝒫 ℕ0 ∩ Fin) ∧ 𝑦𝑥) → ((♯ ↾ ω)‘((♯ ↾ ω)‘𝑦)) = (♯‘((♯ ↾ ω)‘𝑦)))
91 f1ocnvfv2 7130 . . . . . . . . . . . . . 14 (((♯ ↾ ω):ω–1-1-onto→ℕ0𝑦 ∈ ℕ0) → ((♯ ↾ ω)‘((♯ ↾ ω)‘𝑦)) = 𝑦)
922, 76, 91sylancr 586 . . . . . . . . . . . . 13 ((𝑥 ∈ (𝒫 ℕ0 ∩ Fin) ∧ 𝑦𝑥) → ((♯ ↾ ω)‘((♯ ↾ ω)‘𝑦)) = 𝑦)
9390, 92eqtr3d 2780 . . . . . . . . . . . 12 ((𝑥 ∈ (𝒫 ℕ0 ∩ Fin) ∧ 𝑦𝑥) → (♯‘((♯ ↾ ω)‘𝑦)) = 𝑦)
9493oveq2d 7271 . . . . . . . . . . 11 ((𝑥 ∈ (𝒫 ℕ0 ∩ Fin) ∧ 𝑦𝑥) → (2↑(♯‘((♯ ↾ ω)‘𝑦))) = (2↑𝑦))
9589, 94eqtrd 2778 . . . . . . . . . 10 ((𝑥 ∈ (𝒫 ℕ0 ∩ Fin) ∧ 𝑦𝑥) → (♯‘𝒫 ((♯ ↾ ω)‘𝑦)) = (2↑𝑦))
9687, 95oveq12d 7273 . . . . . . . . 9 ((𝑥 ∈ (𝒫 ℕ0 ∩ Fin) ∧ 𝑦𝑥) → ((♯‘{((♯ ↾ ω)‘𝑦)}) · (♯‘𝒫 ((♯ ↾ ω)‘𝑦))) = (1 · (2↑𝑦)))
97 2cn 11978 . . . . . . . . . . 11 2 ∈ ℂ
98 expcl 13728 . . . . . . . . . . 11 ((2 ∈ ℂ ∧ 𝑦 ∈ ℕ0) → (2↑𝑦) ∈ ℂ)
9997, 76, 98sylancr 586 . . . . . . . . . 10 ((𝑥 ∈ (𝒫 ℕ0 ∩ Fin) ∧ 𝑦𝑥) → (2↑𝑦) ∈ ℂ)
10099mulid2d 10924 . . . . . . . . 9 ((𝑥 ∈ (𝒫 ℕ0 ∩ Fin) ∧ 𝑦𝑥) → (1 · (2↑𝑦)) = (2↑𝑦))
10185, 96, 1003eqtrd 2782 . . . . . . . 8 ((𝑥 ∈ (𝒫 ℕ0 ∩ Fin) ∧ 𝑦𝑥) → (♯‘({((♯ ↾ ω)‘𝑦)} × 𝒫 ((♯ ↾ ω)‘𝑦))) = (2↑𝑦))
102101sumeq2dv 15343 . . . . . . 7 (𝑥 ∈ (𝒫 ℕ0 ∩ Fin) → Σ𝑦𝑥 (♯‘({((♯ ↾ ω)‘𝑦)} × 𝒫 ((♯ ↾ ω)‘𝑦))) = Σ𝑦𝑥 (2↑𝑦))
10357, 74, 1023eqtrd 2782 . . . . . 6 (𝑥 ∈ (𝒫 ℕ0 ∩ Fin) → (♯‘ 𝑤 ∈ ((♯ ↾ ω) “ 𝑥)({𝑤} × 𝒫 𝑤)) = Σ𝑦𝑥 (2↑𝑦))
10447, 49, 1033eqtrd 2782 . . . . 5 (𝑥 ∈ (𝒫 ℕ0 ∩ Fin) → ((♯ ↾ ω)‘(card‘ 𝑤 ∈ ((♯ ↾ ω) “ 𝑥)({𝑤} × 𝒫 𝑤))) = Σ𝑦𝑥 (2↑𝑦))
105104mpteq2ia 5173 . . . 4 (𝑥 ∈ (𝒫 ℕ0 ∩ Fin) ↦ ((♯ ↾ ω)‘(card‘ 𝑤 ∈ ((♯ ↾ ω) “ 𝑥)({𝑤} × 𝒫 𝑤)))) = (𝑥 ∈ (𝒫 ℕ0 ∩ Fin) ↦ Σ𝑦𝑥 (2↑𝑦))
10646adantl 481 . . . . . 6 ((⊤ ∧ 𝑥 ∈ (𝒫 ℕ0 ∩ Fin)) → (card‘ 𝑤 ∈ ((♯ ↾ ω) “ 𝑥)({𝑤} × 𝒫 𝑤)) ∈ ω)
10726adantl 481 . . . . . . 7 ((⊤ ∧ 𝑥 ∈ (𝒫 ℕ0 ∩ Fin)) → ((♯ ↾ ω) “ 𝑥) ∈ (𝒫 ω ∩ Fin))
108 eqidd 2739 . . . . . . 7 (⊤ → (𝑥 ∈ (𝒫 ℕ0 ∩ Fin) ↦ ((♯ ↾ ω) “ 𝑥)) = (𝑥 ∈ (𝒫 ℕ0 ∩ Fin) ↦ ((♯ ↾ ω) “ 𝑥)))
109 eqidd 2739 . . . . . . 7 (⊤ → (𝑧 ∈ (𝒫 ω ∩ Fin) ↦ (card‘ 𝑤𝑧 ({𝑤} × 𝒫 𝑤))) = (𝑧 ∈ (𝒫 ω ∩ Fin) ↦ (card‘ 𝑤𝑧 ({𝑤} × 𝒫 𝑤))))
110 iuneq1 4937 . . . . . . . 8 (𝑧 = ((♯ ↾ ω) “ 𝑥) → 𝑤𝑧 ({𝑤} × 𝒫 𝑤) = 𝑤 ∈ ((♯ ↾ ω) “ 𝑥)({𝑤} × 𝒫 𝑤))
111110fveq2d 6760 . . . . . . 7 (𝑧 = ((♯ ↾ ω) “ 𝑥) → (card‘ 𝑤𝑧 ({𝑤} × 𝒫 𝑤)) = (card‘ 𝑤 ∈ ((♯ ↾ ω) “ 𝑥)({𝑤} × 𝒫 𝑤)))
112107, 108, 109, 111fmptco 6983 . . . . . 6 (⊤ → ((𝑧 ∈ (𝒫 ω ∩ Fin) ↦ (card‘ 𝑤𝑧 ({𝑤} × 𝒫 𝑤))) ∘ (𝑥 ∈ (𝒫 ℕ0 ∩ Fin) ↦ ((♯ ↾ ω) “ 𝑥))) = (𝑥 ∈ (𝒫 ℕ0 ∩ Fin) ↦ (card‘ 𝑤 ∈ ((♯ ↾ ω) “ 𝑥)({𝑤} × 𝒫 𝑤))))
113 f1of 6700 . . . . . . . 8 ((♯ ↾ ω):ω–1-1-onto→ℕ0 → (♯ ↾ ω):ω⟶ℕ0)
1142, 113mp1i 13 . . . . . . 7 (⊤ → (♯ ↾ ω):ω⟶ℕ0)
115114feqmptd 6819 . . . . . 6 (⊤ → (♯ ↾ ω) = (𝑦 ∈ ω ↦ ((♯ ↾ ω)‘𝑦)))
116 fveq2 6756 . . . . . 6 (𝑦 = (card‘ 𝑤 ∈ ((♯ ↾ ω) “ 𝑥)({𝑤} × 𝒫 𝑤)) → ((♯ ↾ ω)‘𝑦) = ((♯ ↾ ω)‘(card‘ 𝑤 ∈ ((♯ ↾ ω) “ 𝑥)({𝑤} × 𝒫 𝑤))))
117106, 112, 115, 116fmptco 6983 . . . . 5 (⊤ → ((♯ ↾ ω) ∘ ((𝑧 ∈ (𝒫 ω ∩ Fin) ↦ (card‘ 𝑤𝑧 ({𝑤} × 𝒫 𝑤))) ∘ (𝑥 ∈ (𝒫 ℕ0 ∩ Fin) ↦ ((♯ ↾ ω) “ 𝑥)))) = (𝑥 ∈ (𝒫 ℕ0 ∩ Fin) ↦ ((♯ ↾ ω)‘(card‘ 𝑤 ∈ ((♯ ↾ ω) “ 𝑥)({𝑤} × 𝒫 𝑤)))))
118117mptru 1546 . . . 4 ((♯ ↾ ω) ∘ ((𝑧 ∈ (𝒫 ω ∩ Fin) ↦ (card‘ 𝑤𝑧 ({𝑤} × 𝒫 𝑤))) ∘ (𝑥 ∈ (𝒫 ℕ0 ∩ Fin) ↦ ((♯ ↾ ω) “ 𝑥)))) = (𝑥 ∈ (𝒫 ℕ0 ∩ Fin) ↦ ((♯ ↾ ω)‘(card‘ 𝑤 ∈ ((♯ ↾ ω) “ 𝑥)({𝑤} × 𝒫 𝑤))))
119 ackbijnn.1 . . . 4 𝐹 = (𝑥 ∈ (𝒫 ℕ0 ∩ Fin) ↦ Σ𝑦𝑥 (2↑𝑦))
120105, 118, 1193eqtr4i 2776 . . 3 ((♯ ↾ ω) ∘ ((𝑧 ∈ (𝒫 ω ∩ Fin) ↦ (card‘ 𝑤𝑧 ({𝑤} × 𝒫 𝑤))) ∘ (𝑥 ∈ (𝒫 ℕ0 ∩ Fin) ↦ ((♯ ↾ ω) “ 𝑥)))) = 𝐹
121 f1oeq1 6688 . . 3 (((♯ ↾ ω) ∘ ((𝑧 ∈ (𝒫 ω ∩ Fin) ↦ (card‘ 𝑤𝑧 ({𝑤} × 𝒫 𝑤))) ∘ (𝑥 ∈ (𝒫 ℕ0 ∩ Fin) ↦ ((♯ ↾ ω) “ 𝑥)))) = 𝐹 → (((♯ ↾ ω) ∘ ((𝑧 ∈ (𝒫 ω ∩ Fin) ↦ (card‘ 𝑤𝑧 ({𝑤} × 𝒫 𝑤))) ∘ (𝑥 ∈ (𝒫 ℕ0 ∩ Fin) ↦ ((♯ ↾ ω) “ 𝑥)))):(𝒫 ℕ0 ∩ Fin)–1-1-onto→ℕ0𝐹:(𝒫 ℕ0 ∩ Fin)–1-1-onto→ℕ0))
122120, 121ax-mp 5 . 2 (((♯ ↾ ω) ∘ ((𝑧 ∈ (𝒫 ω ∩ Fin) ↦ (card‘ 𝑤𝑧 ({𝑤} × 𝒫 𝑤))) ∘ (𝑥 ∈ (𝒫 ℕ0 ∩ Fin) ↦ ((♯ ↾ ω) “ 𝑥)))):(𝒫 ℕ0 ∩ Fin)–1-1-onto→ℕ0𝐹:(𝒫 ℕ0 ∩ Fin)–1-1-onto→ℕ0)
12319, 122mpbi 229 1 𝐹:(𝒫 ℕ0 ∩ Fin)–1-1-onto→ℕ0
Colors of variables: wff setvar class
Syntax hints:  wb 205  wa 395   = wceq 1539  wtru 1540  wcel 2108  wral 3063  cin 3882  wss 3883  𝒫 cpw 4530  {csn 4558   ciun 4921  Disj wdisj 5035  cmpt 5153   × cxp 5578  ccnv 5579  dom cdm 5580  cres 5582  cima 5583  ccom 5584  Oncon0 6251  wf 6414  1-1wf1 6415  1-1-ontowf1o 6417  cfv 6418  (class class class)co 7255  ωcom 7687  1st c1st 7802  Fincfn 8691  cardccrd 9624  cc 10800  1c1 10803   · cmul 10807  2c2 11958  0cn0 12163  cexp 13710  chash 13972  Σcsu 15325
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1799  ax-4 1813  ax-5 1914  ax-6 1972  ax-7 2012  ax-8 2110  ax-9 2118  ax-10 2139  ax-11 2156  ax-12 2173  ax-ext 2709  ax-rep 5205  ax-sep 5218  ax-nul 5225  ax-pow 5283  ax-pr 5347  ax-un 7566  ax-inf2 9329  ax-cnex 10858  ax-resscn 10859  ax-1cn 10860  ax-icn 10861  ax-addcl 10862  ax-addrcl 10863  ax-mulcl 10864  ax-mulrcl 10865  ax-mulcom 10866  ax-addass 10867  ax-mulass 10868  ax-distr 10869  ax-i2m1 10870  ax-1ne0 10871  ax-1rid 10872  ax-rnegex 10873  ax-rrecex 10874  ax-cnre 10875  ax-pre-lttri 10876  ax-pre-lttrn 10877  ax-pre-ltadd 10878  ax-pre-mulgt0 10879  ax-pre-sup 10880
This theorem depends on definitions:  df-bi 206  df-an 396  df-or 844  df-3or 1086  df-3an 1087  df-tru 1542  df-fal 1552  df-ex 1784  df-nf 1788  df-sb 2069  df-mo 2540  df-eu 2569  df-clab 2716  df-cleq 2730  df-clel 2817  df-nfc 2888  df-ne 2943  df-nel 3049  df-ral 3068  df-rex 3069  df-reu 3070  df-rmo 3071  df-rab 3072  df-v 3424  df-sbc 3712  df-csb 3829  df-dif 3886  df-un 3888  df-in 3890  df-ss 3900  df-pss 3902  df-nul 4254  df-if 4457  df-pw 4532  df-sn 4559  df-pr 4561  df-tp 4563  df-op 4565  df-uni 4837  df-int 4877  df-iun 4923  df-disj 5036  df-br 5071  df-opab 5133  df-mpt 5154  df-tr 5188  df-id 5480  df-eprel 5486  df-po 5494  df-so 5495  df-fr 5535  df-se 5536  df-we 5537  df-xp 5586  df-rel 5587  df-cnv 5588  df-co 5589  df-dm 5590  df-rn 5591  df-res 5592  df-ima 5593  df-pred 6191  df-ord 6254  df-on 6255  df-lim 6256  df-suc 6257  df-iota 6376  df-fun 6420  df-fn 6421  df-f 6422  df-f1 6423  df-fo 6424  df-f1o 6425  df-fv 6426  df-isom 6427  df-riota 7212  df-ov 7258  df-oprab 7259  df-mpo 7260  df-om 7688  df-1st 7804  df-2nd 7805  df-frecs 8068  df-wrecs 8099  df-recs 8173  df-rdg 8212  df-1o 8267  df-2o 8268  df-oadd 8271  df-er 8456  df-map 8575  df-pm 8576  df-en 8692  df-dom 8693  df-sdom 8694  df-fin 8695  df-sup 9131  df-oi 9199  df-dju 9590  df-card 9628  df-pnf 10942  df-mnf 10943  df-xr 10944  df-ltxr 10945  df-le 10946  df-sub 11137  df-neg 11138  df-div 11563  df-nn 11904  df-2 11966  df-3 11967  df-n0 12164  df-xnn0 12236  df-z 12250  df-uz 12512  df-rp 12660  df-fz 13169  df-fzo 13312  df-seq 13650  df-exp 13711  df-hash 13973  df-cj 14738  df-re 14739  df-im 14740  df-sqrt 14874  df-abs 14875  df-clim 15125  df-sum 15326
This theorem is referenced by:  bitsinv2  16078
  Copyright terms: Public domain W3C validator