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

Theorem ackbij1 9272
Description: The Ackermann bijection, part 1: each natural number can be uniquely coded in binary as a finite set of natural numbers and conversely. (Contributed by Stefan O'Rear, 18-Nov-2014.)
Hypothesis
Ref Expression
ackbij.f 𝐹 = (𝑥 ∈ (𝒫 ω ∩ Fin) ↦ (card‘ 𝑦𝑥 ({𝑦} × 𝒫 𝑦)))
Assertion
Ref Expression
ackbij1 𝐹:(𝒫 ω ∩ Fin)–1-1-onto→ω
Distinct variable group:   𝑥,𝐹,𝑦

Proof of Theorem ackbij1
Dummy variables 𝑎 𝑏 𝑐 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 ackbij.f . . 3 𝐹 = (𝑥 ∈ (𝒫 ω ∩ Fin) ↦ (card‘ 𝑦𝑥 ({𝑦} × 𝒫 𝑦)))
21ackbij1lem17 9270 . 2 𝐹:(𝒫 ω ∩ Fin)–1-1→ω
3 f1f 6262 . . . 4 (𝐹:(𝒫 ω ∩ Fin)–1-1→ω → 𝐹:(𝒫 ω ∩ Fin)⟶ω)
4 frn 6214 . . . 4 (𝐹:(𝒫 ω ∩ Fin)⟶ω → ran 𝐹 ⊆ ω)
52, 3, 4mp2b 10 . . 3 ran 𝐹 ⊆ ω
6 eleq1 2827 . . . . 5 (𝑏 = ∅ → (𝑏 ∈ ran 𝐹 ↔ ∅ ∈ ran 𝐹))
7 eleq1 2827 . . . . 5 (𝑏 = 𝑎 → (𝑏 ∈ ran 𝐹𝑎 ∈ ran 𝐹))
8 eleq1 2827 . . . . 5 (𝑏 = suc 𝑎 → (𝑏 ∈ ran 𝐹 ↔ suc 𝑎 ∈ ran 𝐹))
9 peano1 7251 . . . . . . . 8 ∅ ∈ ω
10 ackbij1lem3 9256 . . . . . . . 8 (∅ ∈ ω → ∅ ∈ (𝒫 ω ∩ Fin))
119, 10ax-mp 5 . . . . . . 7 ∅ ∈ (𝒫 ω ∩ Fin)
121ackbij1lem13 9266 . . . . . . 7 (𝐹‘∅) = ∅
13 fveq2 6353 . . . . . . . . 9 (𝑎 = ∅ → (𝐹𝑎) = (𝐹‘∅))
1413eqeq1d 2762 . . . . . . . 8 (𝑎 = ∅ → ((𝐹𝑎) = ∅ ↔ (𝐹‘∅) = ∅))
1514rspcev 3449 . . . . . . 7 ((∅ ∈ (𝒫 ω ∩ Fin) ∧ (𝐹‘∅) = ∅) → ∃𝑎 ∈ (𝒫 ω ∩ Fin)(𝐹𝑎) = ∅)
1611, 12, 15mp2an 710 . . . . . 6 𝑎 ∈ (𝒫 ω ∩ Fin)(𝐹𝑎) = ∅
17 f1fn 6263 . . . . . . . 8 (𝐹:(𝒫 ω ∩ Fin)–1-1→ω → 𝐹 Fn (𝒫 ω ∩ Fin))
182, 17ax-mp 5 . . . . . . 7 𝐹 Fn (𝒫 ω ∩ Fin)
19 fvelrnb 6406 . . . . . . 7 (𝐹 Fn (𝒫 ω ∩ Fin) → (∅ ∈ ran 𝐹 ↔ ∃𝑎 ∈ (𝒫 ω ∩ Fin)(𝐹𝑎) = ∅))
2018, 19ax-mp 5 . . . . . 6 (∅ ∈ ran 𝐹 ↔ ∃𝑎 ∈ (𝒫 ω ∩ Fin)(𝐹𝑎) = ∅)
2116, 20mpbir 221 . . . . 5 ∅ ∈ ran 𝐹
221ackbij1lem18 9271 . . . . . . . . 9 (𝑐 ∈ (𝒫 ω ∩ Fin) → ∃𝑏 ∈ (𝒫 ω ∩ Fin)(𝐹𝑏) = suc (𝐹𝑐))
2322adantl 473 . . . . . . . 8 ((𝑎 ∈ ω ∧ 𝑐 ∈ (𝒫 ω ∩ Fin)) → ∃𝑏 ∈ (𝒫 ω ∩ Fin)(𝐹𝑏) = suc (𝐹𝑐))
24 suceq 5951 . . . . . . . . . 10 ((𝐹𝑐) = 𝑎 → suc (𝐹𝑐) = suc 𝑎)
2524eqeq2d 2770 . . . . . . . . 9 ((𝐹𝑐) = 𝑎 → ((𝐹𝑏) = suc (𝐹𝑐) ↔ (𝐹𝑏) = suc 𝑎))
2625rexbidv 3190 . . . . . . . 8 ((𝐹𝑐) = 𝑎 → (∃𝑏 ∈ (𝒫 ω ∩ Fin)(𝐹𝑏) = suc (𝐹𝑐) ↔ ∃𝑏 ∈ (𝒫 ω ∩ Fin)(𝐹𝑏) = suc 𝑎))
2723, 26syl5ibcom 235 . . . . . . 7 ((𝑎 ∈ ω ∧ 𝑐 ∈ (𝒫 ω ∩ Fin)) → ((𝐹𝑐) = 𝑎 → ∃𝑏 ∈ (𝒫 ω ∩ Fin)(𝐹𝑏) = suc 𝑎))
2827rexlimdva 3169 . . . . . 6 (𝑎 ∈ ω → (∃𝑐 ∈ (𝒫 ω ∩ Fin)(𝐹𝑐) = 𝑎 → ∃𝑏 ∈ (𝒫 ω ∩ Fin)(𝐹𝑏) = suc 𝑎))
29 fvelrnb 6406 . . . . . . 7 (𝐹 Fn (𝒫 ω ∩ Fin) → (𝑎 ∈ ran 𝐹 ↔ ∃𝑐 ∈ (𝒫 ω ∩ Fin)(𝐹𝑐) = 𝑎))
3018, 29ax-mp 5 . . . . . 6 (𝑎 ∈ ran 𝐹 ↔ ∃𝑐 ∈ (𝒫 ω ∩ Fin)(𝐹𝑐) = 𝑎)
31 fvelrnb 6406 . . . . . . 7 (𝐹 Fn (𝒫 ω ∩ Fin) → (suc 𝑎 ∈ ran 𝐹 ↔ ∃𝑏 ∈ (𝒫 ω ∩ Fin)(𝐹𝑏) = suc 𝑎))
3218, 31ax-mp 5 . . . . . 6 (suc 𝑎 ∈ ran 𝐹 ↔ ∃𝑏 ∈ (𝒫 ω ∩ Fin)(𝐹𝑏) = suc 𝑎)
3328, 30, 323imtr4g 285 . . . . 5 (𝑎 ∈ ω → (𝑎 ∈ ran 𝐹 → suc 𝑎 ∈ ran 𝐹))
346, 7, 8, 7, 21, 33finds 7258 . . . 4 (𝑎 ∈ ω → 𝑎 ∈ ran 𝐹)
3534ssriv 3748 . . 3 ω ⊆ ran 𝐹
365, 35eqssi 3760 . 2 ran 𝐹 = ω
37 dff1o5 6308 . 2 (𝐹:(𝒫 ω ∩ Fin)–1-1-onto→ω ↔ (𝐹:(𝒫 ω ∩ Fin)–1-1→ω ∧ ran 𝐹 = ω))
382, 36, 37mpbir2an 993 1 𝐹:(𝒫 ω ∩ Fin)–1-1-onto→ω
Colors of variables: wff setvar class
Syntax hints:  wb 196  wa 383   = wceq 1632  wcel 2139  wrex 3051  cin 3714  wss 3715  c0 4058  𝒫 cpw 4302  {csn 4321   ciun 4672  cmpt 4881   × cxp 5264  ran crn 5267  suc csuc 5886   Fn wfn 6044  wf 6045  1-1wf1 6046  1-1-ontowf1o 6048  cfv 6049  ωcom 7231  Fincfn 8123  cardccrd 8971
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1871  ax-4 1886  ax-5 1988  ax-6 2054  ax-7 2090  ax-8 2141  ax-9 2148  ax-10 2168  ax-11 2183  ax-12 2196  ax-13 2391  ax-ext 2740  ax-rep 4923  ax-sep 4933  ax-nul 4941  ax-pow 4992  ax-pr 5055  ax-un 7115
This theorem depends on definitions:  df-bi 197  df-or 384  df-an 385  df-3or 1073  df-3an 1074  df-tru 1635  df-ex 1854  df-nf 1859  df-sb 2047  df-eu 2611  df-mo 2612  df-clab 2747  df-cleq 2753  df-clel 2756  df-nfc 2891  df-ne 2933  df-ral 3055  df-rex 3056  df-reu 3057  df-rmo 3058  df-rab 3059  df-v 3342  df-sbc 3577  df-csb 3675  df-dif 3718  df-un 3720  df-in 3722  df-ss 3729  df-pss 3731  df-nul 4059  df-if 4231  df-pw 4304  df-sn 4322  df-pr 4324  df-tp 4326  df-op 4328  df-uni 4589  df-int 4628  df-iun 4674  df-br 4805  df-opab 4865  df-mpt 4882  df-tr 4905  df-id 5174  df-eprel 5179  df-po 5187  df-so 5188  df-fr 5225  df-we 5227  df-xp 5272  df-rel 5273  df-cnv 5274  df-co 5275  df-dm 5276  df-rn 5277  df-res 5278  df-ima 5279  df-pred 5841  df-ord 5887  df-on 5888  df-lim 5889  df-suc 5890  df-iota 6012  df-fun 6051  df-fn 6052  df-f 6053  df-f1 6054  df-fo 6055  df-f1o 6056  df-fv 6057  df-ov 6817  df-oprab 6818  df-mpt2 6819  df-om 7232  df-1st 7334  df-2nd 7335  df-wrecs 7577  df-recs 7638  df-rdg 7676  df-1o 7730  df-2o 7731  df-oadd 7734  df-er 7913  df-map 8027  df-en 8124  df-dom 8125  df-sdom 8126  df-fin 8127  df-card 8975  df-cda 9202
This theorem is referenced by:  fictb  9279  ackbijnn  14779
  Copyright terms: Public domain W3C validator