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

Theorem phplem2 9269
Description: Lemma for Pigeonhole Principle. Equinumerosity of successors implies equinumerosity of the original natural numbers. (Contributed by NM, 28-May-1998.) (Revised by Mario Carneiro, 24-Jun-2015.) Avoid ax-pow 5337. (Revised by BTernaryTau, 4-Nov-2024.)
Hypothesis
Ref Expression
phplem2.1 𝐴 ∈ V
Assertion
Ref Expression
phplem2 ((𝐴 ∈ ω ∧ 𝐵 ∈ ω) → (suc 𝐴 ≈ suc 𝐵 → 𝐴 ≈ 𝐵))

Proof of Theorem phplem2
Dummy variable 𝑓 is distinct from all other variables.
StepHypRef Expression
1 bren 9032 . 2 (suc 𝐴 ≈ suc 𝐵 ↔ ∃𝑓 𝑓:suc 𝐴⟶1-1ontosuc 𝐵)
2 f1of1 6863 . . . . . . . . 9 (𝑓:suc 𝐴⟶1-1ontosuc 𝐵 → 𝑓:suc 𝐴⟶1-1suc 𝐵)
3 nnfi 9232 . . . . . . . . 9 (𝐴 ∈ ω → 𝐴 ∈ Fin)
4 sssucid 6478 . . . . . . . . . 10 𝐴 ⊆ suc 𝐴
5 f1imaenfi 9259 . . . . . . . . . 10 ((𝑓:suc 𝐴⟶1-1suc 𝐵 ∧ 𝐴 ⊆ suc 𝐴 ∧ 𝐴 ∈ Fin) → (𝑓 “ 𝐴) ≈ 𝐴)
64, 5mp3an2 1481 . . . . . . . . 9 ((𝑓:suc 𝐴⟶1-1suc 𝐵 ∧ 𝐴 ∈ Fin) → (𝑓 “ 𝐴) ≈ 𝐴)
72, 3, 6syl2anr 609 . . . . . . . 8 ((𝐴 ∈ ω ∧ 𝑓:suc 𝐴⟶1-1ontosuc 𝐵) → (𝑓 “ 𝐴) ≈ 𝐴)
8 ensymfib 9248 . . . . . . . . . 10 (𝐴 ∈ Fin → (𝐴 ≈ (𝑓 “ 𝐴) ↔ (𝑓 “ 𝐴) ≈ 𝐴))
93, 8syl 18 . . . . . . . . 9 (𝐴 ∈ ω → (𝐴 ≈ (𝑓 “ 𝐴) ↔ (𝑓 “ 𝐴) ≈ 𝐴))
109adantr 486 . . . . . . . 8 ((𝐴 ∈ ω ∧ 𝑓:suc 𝐴⟶1-1ontosuc 𝐵) → (𝐴 ≈ (𝑓 “ 𝐴) ↔ (𝑓 “ 𝐴) ≈ 𝐴))
117, 10mpbird 260 . . . . . . 7 ((𝐴 ∈ ω ∧ 𝑓:suc 𝐴⟶1-1ontosuc 𝐵) → 𝐴 ≈ (𝑓 “ 𝐴))
12 nnord 7930 . . . . . . . . . 10 (𝐴 ∈ ω → Ord 𝐴)
13 orddif 6494 . . . . . . . . . 10 (Ord 𝐴 → 𝐴 = (suc 𝐴 ∖ {𝐴}))
1412, 13syl 18 . . . . . . . . 9 (𝐴 ∈ ω → 𝐴 = (suc 𝐴 ∖ {𝐴}))
1514imaeq2d 6074 . . . . . . . 8 (𝐴 ∈ ω → (𝑓 “ 𝐴) = (𝑓 “ (suc 𝐴 ∖ {𝐴})))
16 f1ofn 6865 . . . . . . . . . . 11 (𝑓:suc 𝐴⟶1-1ontosuc 𝐵 → 𝑓 Fn suc 𝐴)
17 phplem2.1 . . . . . . . . . . . 12 𝐴 ∈ V
1817sucid 6480 . . . . . . . . . . 11 𝐴 ∈ suc 𝐴
19 fnsnfv 7005 . . . . . . . . . . 11 ((𝑓 Fn suc 𝐴 ∧ 𝐴 ∈ suc 𝐴) → {(𝑓‘𝐴)} = (𝑓 “ {𝐴}))
2016, 18, 19sylancl 598 . . . . . . . . . 10 (𝑓:suc 𝐴⟶1-1ontosuc 𝐵 → {(𝑓‘𝐴)} = (𝑓 “ {𝐴}))
2120difeq2d 4068 . . . . . . . . 9 (𝑓:suc 𝐴⟶1-1ontosuc 𝐵 → ((𝑓 “ suc 𝐴) ∖ {(𝑓‘𝐴)}) = ((𝑓 “ suc 𝐴) ∖ (𝑓 “ {𝐴})))
22 imadmrn 6089 . . . . . . . . . . . 12 (𝑓 “ dom 𝑓) = ran 𝑓
2322eqcomi 2778 . . . . . . . . . . 11 ran 𝑓 = (𝑓 “ dom 𝑓)
24 f1ofo 6872 . . . . . . . . . . . 12 (𝑓:suc 𝐴⟶1-1ontosuc 𝐵 → 𝑓:suc 𝐴⟶ontosuc 𝐵)
25 forn 6839 . . . . . . . . . . . 12 (𝑓:suc 𝐴⟶ontosuc 𝐵 → ran 𝑓 = suc 𝐵)
2624, 25syl 18 . . . . . . . . . . 11 (𝑓:suc 𝐴⟶1-1ontosuc 𝐵 → ran 𝑓 = suc 𝐵)
27 f1odm 6868 . . . . . . . . . . . 12 (𝑓:suc 𝐴⟶1-1ontosuc 𝐵 → dom 𝑓 = suc 𝐴)
2827imaeq2d 6074 . . . . . . . . . . 11 (𝑓:suc 𝐴⟶1-1ontosuc 𝐵 → (𝑓 “ dom 𝑓) = (𝑓 “ suc 𝐴))
2923, 26, 283eqtr3a 2828 . . . . . . . . . 10 (𝑓:suc 𝐴⟶1-1ontosuc 𝐵 → suc 𝐵 = (𝑓 “ suc 𝐴))
3029difeq1d 4067 . . . . . . . . 9 (𝑓:suc 𝐴⟶1-1ontosuc 𝐵 → (suc 𝐵 ∖ {(𝑓‘𝐴)}) = ((𝑓 “ suc 𝐴) ∖ {(𝑓‘𝐴)}))
31 dff1o3 6871 . . . . . . . . . 10 (𝑓:suc 𝐴⟶1-1ontosuc 𝐵 ↔ (𝑓:suc 𝐴⟶ontosuc 𝐵 ∧ Fun ◡𝑓))
32 imadif 6664 . . . . . . . . . 10 (Fun ◡𝑓 → (𝑓 “ (suc 𝐴 ∖ {𝐴})) = ((𝑓 “ suc 𝐴) ∖ (𝑓 “ {𝐴})))
3331, 32simplbiim 514 . . . . . . . . 9 (𝑓:suc 𝐴⟶1-1ontosuc 𝐵 → (𝑓 “ (suc 𝐴 ∖ {𝐴})) = ((𝑓 “ suc 𝐴) ∖ (𝑓 “ {𝐴})))
3421, 30, 333eqtr4rd 2815 . . . . . . . 8 (𝑓:suc 𝐴⟶1-1ontosuc 𝐵 → (𝑓 “ (suc 𝐴 ∖ {𝐴})) = (suc 𝐵 ∖ {(𝑓‘𝐴)}))
3515, 34sylan9eq 2824 . . . . . . 7 ((𝐴 ∈ ω ∧ 𝑓:suc 𝐴⟶1-1ontosuc 𝐵) → (𝑓 “ 𝐴) = (suc 𝐵 ∖ {(𝑓‘𝐴)}))
3611, 35breqtrd 5140 . . . . . 6 ((𝐴 ∈ ω ∧ 𝑓:suc 𝐴⟶1-1ontosuc 𝐵) → 𝐴 ≈ (suc 𝐵 ∖ {(𝑓‘𝐴)}))
37 fnfvelrn 7122 . . . . . . . . . . . 12 ((𝑓 Fn suc 𝐴 ∧ 𝐴 ∈ suc 𝐴) → (𝑓‘𝐴) ∈ ran 𝑓)
3816, 18, 37sylancl 598 . . . . . . . . . . 11 (𝑓:suc 𝐴⟶1-1ontosuc 𝐵 → (𝑓‘𝐴) ∈ ran 𝑓)
3925eleq2d 2856 . . . . . . . . . . . 12 (𝑓:suc 𝐴⟶ontosuc 𝐵 → ((𝑓‘𝐴) ∈ ran 𝑓 ↔ (𝑓‘𝐴) ∈ suc 𝐵))
4024, 39syl 18 . . . . . . . . . . 11 (𝑓:suc 𝐴⟶1-1ontosuc 𝐵 → ((𝑓‘𝐴) ∈ ran 𝑓 ↔ (𝑓‘𝐴) ∈ suc 𝐵))
4138, 40mpbid 235 . . . . . . . . . 10 (𝑓:suc 𝐴⟶1-1ontosuc 𝐵 → (𝑓‘𝐴) ∈ suc 𝐵)
42 phplem1 9268 . . . . . . . . . 10 ((𝐵 ∈ ω ∧ (𝑓‘𝐴) ∈ suc 𝐵) → 𝐵 ≈ (suc 𝐵 ∖ {(𝑓‘𝐴)}))
4341, 42sylan2 605 . . . . . . . . 9 ((𝐵 ∈ ω ∧ 𝑓:suc 𝐴⟶1-1ontosuc 𝐵) → 𝐵 ≈ (suc 𝐵 ∖ {(𝑓‘𝐴)}))
44 nnfi 9232 . . . . . . . . . . 11 (𝐵 ∈ ω → 𝐵 ∈ Fin)
45 ensymfib 9248 . . . . . . . . . . 11 (𝐵 ∈ Fin → (𝐵 ≈ (suc 𝐵 ∖ {(𝑓‘𝐴)}) ↔ (suc 𝐵 ∖ {(𝑓‘𝐴)}) ≈ 𝐵))
4644, 45syl 18 . . . . . . . . . 10 (𝐵 ∈ ω → (𝐵 ≈ (suc 𝐵 ∖ {(𝑓‘𝐴)}) ↔ (suc 𝐵 ∖ {(𝑓‘𝐴)}) ≈ 𝐵))
4746adantr 486 . . . . . . . . 9 ((𝐵 ∈ ω ∧ 𝑓:suc 𝐴⟶1-1ontosuc 𝐵) → (𝐵 ≈ (suc 𝐵 ∖ {(𝑓‘𝐴)}) ↔ (suc 𝐵 ∖ {(𝑓‘𝐴)}) ≈ 𝐵))
4843, 47mpbid 235 . . . . . . . 8 ((𝐵 ∈ ω ∧ 𝑓:suc 𝐴⟶1-1ontosuc 𝐵) → (suc 𝐵 ∖ {(𝑓‘𝐴)}) ≈ 𝐵)
49 entrfil 9249 . . . . . . . . 9 ((𝐴 ∈ Fin ∧ 𝐴 ≈ (suc 𝐵 ∖ {(𝑓‘𝐴)}) ∧ (suc 𝐵 ∖ {(𝑓‘𝐴)}) ≈ 𝐵) → 𝐴 ≈ 𝐵)
503, 49syl3an1 1183 . . . . . . . 8 ((𝐴 ∈ ω ∧ 𝐴 ≈ (suc 𝐵 ∖ {(𝑓‘𝐴)}) ∧ (suc 𝐵 ∖ {(𝑓‘𝐴)}) ≈ 𝐵) → 𝐴 ≈ 𝐵)
5148, 50syl3an3 1185 . . . . . . 7 ((𝐴 ∈ ω ∧ 𝐴 ≈ (suc 𝐵 ∖ {(𝑓‘𝐴)}) ∧ (𝐵 ∈ ω ∧ 𝑓:suc 𝐴⟶1-1ontosuc 𝐵)) → 𝐴 ≈ 𝐵)
52513expa 1137 . . . . . 6 (((𝐴 ∈ ω ∧ 𝐴 ≈ (suc 𝐵 ∖ {(𝑓‘𝐴)})) ∧ (𝐵 ∈ ω ∧ 𝑓:suc 𝐴⟶1-1ontosuc 𝐵)) → 𝐴 ≈ 𝐵)
5336, 52syldanl 614 . . . . 5 (((𝐴 ∈ ω ∧ 𝑓:suc 𝐴⟶1-1ontosuc 𝐵) ∧ (𝐵 ∈ ω ∧ 𝑓:suc 𝐴⟶1-1ontosuc 𝐵)) → 𝐴 ≈ 𝐵)
5453anandirs 692 . . . 4 (((𝐴 ∈ ω ∧ 𝐵 ∈ ω) ∧ 𝑓:suc 𝐴⟶1-1ontosuc 𝐵) → 𝐴 ≈ 𝐵)
5554ex 418 . . 3 ((𝐴 ∈ ω ∧ 𝐵 ∈ ω) → (𝑓:suc 𝐴⟶1-1ontosuc 𝐵 → 𝐴 ≈ 𝐵))
5655exlimdv 1970 . 2 ((𝐴 ∈ ω ∧ 𝐵 ∈ ω) → (∃𝑓 𝑓:suc 𝐴⟶1-1ontosuc 𝐵 → 𝐴 ≈ 𝐵))
571, 56biimtrid 245 1 ((𝐴 ∈ ω ∧ 𝐵 ∈ ω) → (suc 𝐴 ≈ suc 𝐵 → 𝐴 ≈ 𝐵))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   → wi 4   ↔ wb 209   ∧ wa 401   = wceq 1572  ∃wex 1814   ∈ wcel 2151  Vcvv 3456   ⊆ wss 3902   ∖ cdif 4050  {csn 4590   class class class wbr 5111  ◡ccnv 5660  dom cdm 5661  ran crn 5662   “ cima 5664  Ord word 6394  suc csuc 6397  Fun wfun 6567   Fn wfn 6568  ⟶1-1wf1 6570  ⟶ontowfo 6571  ⟶1-1ontowf1o 6572  ‘cfv 6573  ωcom 7922   ≈ cen 9019  Fincfn 9022
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1830  ax-4 1844  ax-5 1947  ax-6 2004  ax-7 2045  ax-8 2153  ax-9 2161  ax-10 2184  ax-11 2201  ax-12 2220  ax-ext 2741  ax-sep 5258  ax-nul 5269  ax-pr 5401  ax-un 7794
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3or 1105  df-3an 1106  df-tru 1575  df-fal 1585  df-ex 1815  df-nf 1819  df-sb 2105  df-mo 2571  df-eu 2601  df-clab 2748  df-cleq 2761  df-clel 2845  df-nfc 2919  df-ne 2966  df-ral 3087  df-rex 3097  df-reu 3372  df-rab 3419  df-v 3458  df-sbc 3745  df-csb 3854  df-ss 3903  df-pss 4019  df-dif 4052  df-in 4096  df-un 4156  df-nul 4284  df-if 4488  df-pw 4564  df-sn 4591  df-pr 4593  df-op 4844  df-uni 4876  df-br 5112  df-opab 5177  df-mpt 5196  df-tr 5222  df-id 5556  df-eprel 5561  df-po 5569  df-so 5570  df-fr 5614  df-we 5616  df-xp 5667  df-rel 5668  df-cnv 5669  df-co 5670  df-dm 5671  df-rn 5672  df-res 5673  df-ima 5674  df-ord 6398  df-on 6399  df-lim 6400  df-suc 6401  df-iota 6527  df-fun 6575  df-fn 6576  df-f 6577  df-f1 6578  df-fo 6579  df-f1o 6580  df-fv 6581  df-om 7923  df-1o 8525  df-en 9023  df-fin 9026
This theorem is used by:  nneneq  9270
  Copyright terms: Public domain W3C validator