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

Theorem nneneq 8896
Description: Two equinumerous natural numbers are equal. Proposition 10.20 of [TakeutiZaring] p. 90 and its converse. Also compare Corollary 6E of [Enderton] p. 136. (Contributed by NM, 28-May-1998.)
Assertion
Ref Expression
nneneq ((𝐴 ∈ ω ∧ 𝐵 ∈ ω) → (𝐴𝐵𝐴 = 𝐵))

Proof of Theorem nneneq
Dummy variables 𝑥 𝑦 𝑧 𝑤 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 breq1 5073 . . . . . 6 (𝑥 = ∅ → (𝑥𝑧 ↔ ∅ ≈ 𝑧))
2 eqeq1 2742 . . . . . 6 (𝑥 = ∅ → (𝑥 = 𝑧 ↔ ∅ = 𝑧))
31, 2imbi12d 344 . . . . 5 (𝑥 = ∅ → ((𝑥𝑧𝑥 = 𝑧) ↔ (∅ ≈ 𝑧 → ∅ = 𝑧)))
43ralbidv 3120 . . . 4 (𝑥 = ∅ → (∀𝑧 ∈ ω (𝑥𝑧𝑥 = 𝑧) ↔ ∀𝑧 ∈ ω (∅ ≈ 𝑧 → ∅ = 𝑧)))
5 breq1 5073 . . . . . 6 (𝑥 = 𝑦 → (𝑥𝑧𝑦𝑧))
6 eqeq1 2742 . . . . . 6 (𝑥 = 𝑦 → (𝑥 = 𝑧𝑦 = 𝑧))
75, 6imbi12d 344 . . . . 5 (𝑥 = 𝑦 → ((𝑥𝑧𝑥 = 𝑧) ↔ (𝑦𝑧𝑦 = 𝑧)))
87ralbidv 3120 . . . 4 (𝑥 = 𝑦 → (∀𝑧 ∈ ω (𝑥𝑧𝑥 = 𝑧) ↔ ∀𝑧 ∈ ω (𝑦𝑧𝑦 = 𝑧)))
9 breq1 5073 . . . . . 6 (𝑥 = suc 𝑦 → (𝑥𝑧 ↔ suc 𝑦𝑧))
10 eqeq1 2742 . . . . . 6 (𝑥 = suc 𝑦 → (𝑥 = 𝑧 ↔ suc 𝑦 = 𝑧))
119, 10imbi12d 344 . . . . 5 (𝑥 = suc 𝑦 → ((𝑥𝑧𝑥 = 𝑧) ↔ (suc 𝑦𝑧 → suc 𝑦 = 𝑧)))
1211ralbidv 3120 . . . 4 (𝑥 = suc 𝑦 → (∀𝑧 ∈ ω (𝑥𝑧𝑥 = 𝑧) ↔ ∀𝑧 ∈ ω (suc 𝑦𝑧 → suc 𝑦 = 𝑧)))
13 breq1 5073 . . . . . 6 (𝑥 = 𝐴 → (𝑥𝑧𝐴𝑧))
14 eqeq1 2742 . . . . . 6 (𝑥 = 𝐴 → (𝑥 = 𝑧𝐴 = 𝑧))
1513, 14imbi12d 344 . . . . 5 (𝑥 = 𝐴 → ((𝑥𝑧𝑥 = 𝑧) ↔ (𝐴𝑧𝐴 = 𝑧)))
1615ralbidv 3120 . . . 4 (𝑥 = 𝐴 → (∀𝑧 ∈ ω (𝑥𝑧𝑥 = 𝑧) ↔ ∀𝑧 ∈ ω (𝐴𝑧𝐴 = 𝑧)))
17 ensym 8744 . . . . . 6 (∅ ≈ 𝑧𝑧 ≈ ∅)
18 en0 8758 . . . . . . 7 (𝑧 ≈ ∅ ↔ 𝑧 = ∅)
19 eqcom 2745 . . . . . . 7 (𝑧 = ∅ ↔ ∅ = 𝑧)
2018, 19bitri 274 . . . . . 6 (𝑧 ≈ ∅ ↔ ∅ = 𝑧)
2117, 20sylib 217 . . . . 5 (∅ ≈ 𝑧 → ∅ = 𝑧)
2221rgenw 3075 . . . 4 𝑧 ∈ ω (∅ ≈ 𝑧 → ∅ = 𝑧)
23 nn0suc 7716 . . . . . . 7 (𝑤 ∈ ω → (𝑤 = ∅ ∨ ∃𝑧 ∈ ω 𝑤 = suc 𝑧))
24 en0 8758 . . . . . . . . . . . 12 (suc 𝑦 ≈ ∅ ↔ suc 𝑦 = ∅)
25 breq2 5074 . . . . . . . . . . . . 13 (𝑤 = ∅ → (suc 𝑦𝑤 ↔ suc 𝑦 ≈ ∅))
26 eqeq2 2750 . . . . . . . . . . . . 13 (𝑤 = ∅ → (suc 𝑦 = 𝑤 ↔ suc 𝑦 = ∅))
2725, 26bibi12d 345 . . . . . . . . . . . 12 (𝑤 = ∅ → ((suc 𝑦𝑤 ↔ suc 𝑦 = 𝑤) ↔ (suc 𝑦 ≈ ∅ ↔ suc 𝑦 = ∅)))
2824, 27mpbiri 257 . . . . . . . . . . 11 (𝑤 = ∅ → (suc 𝑦𝑤 ↔ suc 𝑦 = 𝑤))
2928biimpd 228 . . . . . . . . . 10 (𝑤 = ∅ → (suc 𝑦𝑤 → suc 𝑦 = 𝑤))
3029a1i 11 . . . . . . . . 9 ((𝑦 ∈ ω ∧ ∀𝑧 ∈ ω (𝑦𝑧𝑦 = 𝑧)) → (𝑤 = ∅ → (suc 𝑦𝑤 → suc 𝑦 = 𝑤)))
31 nfv 1918 . . . . . . . . . . 11 𝑧 𝑦 ∈ ω
32 nfra1 3142 . . . . . . . . . . 11 𝑧𝑧 ∈ ω (𝑦𝑧𝑦 = 𝑧)
3331, 32nfan 1903 . . . . . . . . . 10 𝑧(𝑦 ∈ ω ∧ ∀𝑧 ∈ ω (𝑦𝑧𝑦 = 𝑧))
34 nfv 1918 . . . . . . . . . 10 𝑧(suc 𝑦𝑤 → suc 𝑦 = 𝑤)
35 vex 3426 . . . . . . . . . . . . . . . . 17 𝑦 ∈ V
36 vex 3426 . . . . . . . . . . . . . . . . 17 𝑧 ∈ V
3735, 36phplem4 8895 . . . . . . . . . . . . . . . 16 ((𝑦 ∈ ω ∧ 𝑧 ∈ ω) → (suc 𝑦 ≈ suc 𝑧𝑦𝑧))
3837imim1d 82 . . . . . . . . . . . . . . 15 ((𝑦 ∈ ω ∧ 𝑧 ∈ ω) → ((𝑦𝑧𝑦 = 𝑧) → (suc 𝑦 ≈ suc 𝑧𝑦 = 𝑧)))
3938ex 412 . . . . . . . . . . . . . 14 (𝑦 ∈ ω → (𝑧 ∈ ω → ((𝑦𝑧𝑦 = 𝑧) → (suc 𝑦 ≈ suc 𝑧𝑦 = 𝑧))))
4039a2d 29 . . . . . . . . . . . . 13 (𝑦 ∈ ω → ((𝑧 ∈ ω → (𝑦𝑧𝑦 = 𝑧)) → (𝑧 ∈ ω → (suc 𝑦 ≈ suc 𝑧𝑦 = 𝑧))))
41 rsp 3129 . . . . . . . . . . . . 13 (∀𝑧 ∈ ω (𝑦𝑧𝑦 = 𝑧) → (𝑧 ∈ ω → (𝑦𝑧𝑦 = 𝑧)))
4240, 41impel 505 . . . . . . . . . . . 12 ((𝑦 ∈ ω ∧ ∀𝑧 ∈ ω (𝑦𝑧𝑦 = 𝑧)) → (𝑧 ∈ ω → (suc 𝑦 ≈ suc 𝑧𝑦 = 𝑧)))
43 suceq 6316 . . . . . . . . . . . 12 (𝑦 = 𝑧 → suc 𝑦 = suc 𝑧)
4442, 43syl8 76 . . . . . . . . . . 11 ((𝑦 ∈ ω ∧ ∀𝑧 ∈ ω (𝑦𝑧𝑦 = 𝑧)) → (𝑧 ∈ ω → (suc 𝑦 ≈ suc 𝑧 → suc 𝑦 = suc 𝑧)))
45 breq2 5074 . . . . . . . . . . . . 13 (𝑤 = suc 𝑧 → (suc 𝑦𝑤 ↔ suc 𝑦 ≈ suc 𝑧))
46 eqeq2 2750 . . . . . . . . . . . . 13 (𝑤 = suc 𝑧 → (suc 𝑦 = 𝑤 ↔ suc 𝑦 = suc 𝑧))
4745, 46imbi12d 344 . . . . . . . . . . . 12 (𝑤 = suc 𝑧 → ((suc 𝑦𝑤 → suc 𝑦 = 𝑤) ↔ (suc 𝑦 ≈ suc 𝑧 → suc 𝑦 = suc 𝑧)))
4847biimprcd 249 . . . . . . . . . . 11 ((suc 𝑦 ≈ suc 𝑧 → suc 𝑦 = suc 𝑧) → (𝑤 = suc 𝑧 → (suc 𝑦𝑤 → suc 𝑦 = 𝑤)))
4944, 48syl6 35 . . . . . . . . . 10 ((𝑦 ∈ ω ∧ ∀𝑧 ∈ ω (𝑦𝑧𝑦 = 𝑧)) → (𝑧 ∈ ω → (𝑤 = suc 𝑧 → (suc 𝑦𝑤 → suc 𝑦 = 𝑤))))
5033, 34, 49rexlimd 3245 . . . . . . . . 9 ((𝑦 ∈ ω ∧ ∀𝑧 ∈ ω (𝑦𝑧𝑦 = 𝑧)) → (∃𝑧 ∈ ω 𝑤 = suc 𝑧 → (suc 𝑦𝑤 → suc 𝑦 = 𝑤)))
5130, 50jaod 855 . . . . . . . 8 ((𝑦 ∈ ω ∧ ∀𝑧 ∈ ω (𝑦𝑧𝑦 = 𝑧)) → ((𝑤 = ∅ ∨ ∃𝑧 ∈ ω 𝑤 = suc 𝑧) → (suc 𝑦𝑤 → suc 𝑦 = 𝑤)))
5251ex 412 . . . . . . 7 (𝑦 ∈ ω → (∀𝑧 ∈ ω (𝑦𝑧𝑦 = 𝑧) → ((𝑤 = ∅ ∨ ∃𝑧 ∈ ω 𝑤 = suc 𝑧) → (suc 𝑦𝑤 → suc 𝑦 = 𝑤))))
5323, 52syl7 74 . . . . . 6 (𝑦 ∈ ω → (∀𝑧 ∈ ω (𝑦𝑧𝑦 = 𝑧) → (𝑤 ∈ ω → (suc 𝑦𝑤 → suc 𝑦 = 𝑤))))
5453ralrimdv 3111 . . . . 5 (𝑦 ∈ ω → (∀𝑧 ∈ ω (𝑦𝑧𝑦 = 𝑧) → ∀𝑤 ∈ ω (suc 𝑦𝑤 → suc 𝑦 = 𝑤)))
55 breq2 5074 . . . . . . 7 (𝑤 = 𝑧 → (suc 𝑦𝑤 ↔ suc 𝑦𝑧))
56 eqeq2 2750 . . . . . . 7 (𝑤 = 𝑧 → (suc 𝑦 = 𝑤 ↔ suc 𝑦 = 𝑧))
5755, 56imbi12d 344 . . . . . 6 (𝑤 = 𝑧 → ((suc 𝑦𝑤 → suc 𝑦 = 𝑤) ↔ (suc 𝑦𝑧 → suc 𝑦 = 𝑧)))
5857cbvralvw 3372 . . . . 5 (∀𝑤 ∈ ω (suc 𝑦𝑤 → suc 𝑦 = 𝑤) ↔ ∀𝑧 ∈ ω (suc 𝑦𝑧 → suc 𝑦 = 𝑧))
5954, 58syl6ib 250 . . . 4 (𝑦 ∈ ω → (∀𝑧 ∈ ω (𝑦𝑧𝑦 = 𝑧) → ∀𝑧 ∈ ω (suc 𝑦𝑧 → suc 𝑦 = 𝑧)))
604, 8, 12, 16, 22, 59finds 7719 . . 3 (𝐴 ∈ ω → ∀𝑧 ∈ ω (𝐴𝑧𝐴 = 𝑧))
61 breq2 5074 . . . . 5 (𝑧 = 𝐵 → (𝐴𝑧𝐴𝐵))
62 eqeq2 2750 . . . . 5 (𝑧 = 𝐵 → (𝐴 = 𝑧𝐴 = 𝐵))
6361, 62imbi12d 344 . . . 4 (𝑧 = 𝐵 → ((𝐴𝑧𝐴 = 𝑧) ↔ (𝐴𝐵𝐴 = 𝐵)))
6463rspcv 3547 . . 3 (𝐵 ∈ ω → (∀𝑧 ∈ ω (𝐴𝑧𝐴 = 𝑧) → (𝐴𝐵𝐴 = 𝐵)))
6560, 64mpan9 506 . 2 ((𝐴 ∈ ω ∧ 𝐵 ∈ ω) → (𝐴𝐵𝐴 = 𝐵))
66 eqeng 8729 . . 3 (𝐴 ∈ ω → (𝐴 = 𝐵𝐴𝐵))
6766adantr 480 . 2 ((𝐴 ∈ ω ∧ 𝐵 ∈ ω) → (𝐴 = 𝐵𝐴𝐵))
6865, 67impbid 211 1 ((𝐴 ∈ ω ∧ 𝐵 ∈ ω) → (𝐴𝐵𝐴 = 𝐵))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 205  wa 395  wo 843   = wceq 1539  wcel 2108  wral 3063  wrex 3064  c0 4253   class class class wbr 5070  suc csuc 6253  ωcom 7687  cen 8688
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-sep 5218  ax-nul 5225  ax-pow 5283  ax-pr 5347  ax-un 7566
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-ral 3068  df-rex 3069  df-rab 3072  df-v 3424  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-br 5071  df-opab 5133  df-tr 5188  df-id 5480  df-eprel 5486  df-po 5494  df-so 5495  df-fr 5535  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-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-om 7688  df-er 8456  df-en 8692
This theorem is referenced by:  php  8897  onomeneq  8943  nnsdomo  8948  fineqvlem  8966  dif1enALT  8980  findcard2OLD  8986  cardnn  9652  satfun  33273
  Copyright terms: Public domain W3C validator