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

Theorem phplem2 9204
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 5327. (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 8967 . 2 (suc 𝐴 ≈ suc 𝐵 ↔ ∃𝑓 𝑓:suc 𝐴–1-1-onto→suc 𝐵)
2 f1of1 6815 . . . . . . . . 9 (𝑓:suc 𝐴–1-1-onto→suc 𝐵 → 𝑓:suc 𝐴–1-1→suc 𝐵)
3 nnfi 9167 . . . . . . . . 9 (𝐴 ∈ ω → 𝐴 ∈ Fin)
4 sssucid 6438 . . . . . . . . . 10 𝐴 ⊆ suc 𝐴
5 f1imaenfi 9194 . . . . . . . . . 10 ((𝑓:suc 𝐴–1-1→suc 𝐵 ∧ 𝐴 ⊆ suc 𝐴 ∧ 𝐴 ∈ Fin) → (𝑓 “ 𝐴) ≈ 𝐴)
64, 5mp3an2 1478 . . . . . . . . 9 ((𝑓:suc 𝐴–1-1→suc 𝐵 ∧ 𝐴 ∈ Fin) → (𝑓 “ 𝐴) ≈ 𝐴)
72, 3, 6syl2anr 609 . . . . . . . 8 ((𝐴 ∈ ω ∧ 𝑓:suc 𝐴–1-1-onto→suc 𝐵) → (𝑓 “ 𝐴) ≈ 𝐴)
8 ensymfib 9183 . . . . . . . . . 10 (𝐴 ∈ Fin → (𝐴 ≈ (𝑓 “ 𝐴) ↔ (𝑓 “ 𝐴) ≈ 𝐴))
93, 8syl 18 . . . . . . . . 9 (𝐴 ∈ ω → (𝐴 ≈ (𝑓 “ 𝐴) ↔ (𝑓 “ 𝐴) ≈ 𝐴))
109adantr 486 . . . . . . . 8 ((𝐴 ∈ ω ∧ 𝑓:suc 𝐴–1-1-onto→suc 𝐵) → (𝐴 ≈ (𝑓 “ 𝐴) ↔ (𝑓 “ 𝐴) ≈ 𝐴))
117, 10mpbird 260 . . . . . . 7 ((𝐴 ∈ ω ∧ 𝑓:suc 𝐴–1-1-onto→suc 𝐵) → 𝐴 ≈ (𝑓 “ 𝐴))
12 nnord 7874 . . . . . . . . . 10 (𝐴 ∈ ω → Ord 𝐴)
13 orddif 6454 . . . . . . . . . 10 (Ord 𝐴 → 𝐴 = (suc 𝐴 ∖ {𝐴}))
1412, 13syl 18 . . . . . . . . 9 (𝐴 ∈ ω → 𝐴 = (suc 𝐴 ∖ {𝐴}))
1514imaeq2d 6054 . . . . . . . 8 (𝐴 ∈ ω → (𝑓 “ 𝐴) = (𝑓 “ (suc 𝐴 ∖ {𝐴})))
16 f1ofn 6817 . . . . . . . . . . 11 (𝑓:suc 𝐴–1-1-onto→suc 𝐵 → 𝑓 Fn suc 𝐴)
17 phplem2.1 . . . . . . . . . . . 12 𝐴 ∈ V
1817sucid 6440 . . . . . . . . . . 11 𝐴 ∈ suc 𝐴
19 fnsnfv 6956 . . . . . . . . . . 11 ((𝑓 Fn suc 𝐴 ∧ 𝐴 ∈ suc 𝐴) → {(𝑓‘𝐴)} = (𝑓 “ {𝐴}))
2016, 18, 19sylancl 598 . . . . . . . . . 10 (𝑓:suc 𝐴–1-1-onto→suc 𝐵 → {(𝑓‘𝐴)} = (𝑓 “ {𝐴}))
2120difeq2d 4074 . . . . . . . . 9 (𝑓:suc 𝐴–1-1-onto→suc 𝐵 → ((𝑓 “ suc 𝐴) ∖ {(𝑓‘𝐴)}) = ((𝑓 “ suc 𝐴) ∖ (𝑓 “ {𝐴})))
22 imadmrn 6064 . . . . . . . . . . . 12 (𝑓 “ dom 𝑓) = ran 𝑓
2322eqcomi 2770 . . . . . . . . . . 11 ran 𝑓 = (𝑓 “ dom 𝑓)
24 f1ofo 6824 . . . . . . . . . . . 12 (𝑓:suc 𝐴–1-1-onto→suc 𝐵 → 𝑓:suc 𝐴–onto→suc 𝐵)
25 forn 6791 . . . . . . . . . . . 12 (𝑓:suc 𝐴–onto→suc 𝐵 → ran 𝑓 = suc 𝐵)
2624, 25syl 18 . . . . . . . . . . 11 (𝑓:suc 𝐴–1-1-onto→suc 𝐵 → ran 𝑓 = suc 𝐵)
27 f1odm 6820 . . . . . . . . . . . 12 (𝑓:suc 𝐴–1-1-onto→suc 𝐵 → dom 𝑓 = suc 𝐴)
2827imaeq2d 6054 . . . . . . . . . . 11 (𝑓:suc 𝐴–1-1-onto→suc 𝐵 → (𝑓 “ dom 𝑓) = (𝑓 “ suc 𝐴))
2923, 26, 283eqtr3a 2820 . . . . . . . . . 10 (𝑓:suc 𝐴–1-1-onto→suc 𝐵 → suc 𝐵 = (𝑓 “ suc 𝐴))
3029difeq1d 4073 . . . . . . . . 9 (𝑓:suc 𝐴–1-1-onto→suc 𝐵 → (suc 𝐵 ∖ {(𝑓‘𝐴)}) = ((𝑓 “ suc 𝐴) ∖ {(𝑓‘𝐴)}))
31 dff1o3 6823 . . . . . . . . . 10 (𝑓:suc 𝐴–1-1-onto→suc 𝐵 ↔ (𝑓:suc 𝐴–onto→suc 𝐵 ∧ Fun ◡𝑓))
32 imadif 6616 . . . . . . . . . 10 (Fun ◡𝑓 → (𝑓 “ (suc 𝐴 ∖ {𝐴})) = ((𝑓 “ suc 𝐴) ∖ (𝑓 “ {𝐴})))
3331, 32simplbiim 514 . . . . . . . . 9 (𝑓:suc 𝐴–1-1-onto→suc 𝐵 → (𝑓 “ (suc 𝐴 ∖ {𝐴})) = ((𝑓 “ suc 𝐴) ∖ (𝑓 “ {𝐴})))
3421, 30, 333eqtr4rd 2807 . . . . . . . 8 (𝑓:suc 𝐴–1-1-onto→suc 𝐵 → (𝑓 “ (suc 𝐴 ∖ {𝐴})) = (suc 𝐵 ∖ {(𝑓‘𝐴)}))
3515, 34sylan9eq 2816 . . . . . . 7 ((𝐴 ∈ ω ∧ 𝑓:suc 𝐴–1-1-onto→suc 𝐵) → (𝑓 “ 𝐴) = (suc 𝐵 ∖ {(𝑓‘𝐴)}))
3611, 35breqtrd 5131 . . . . . 6 ((𝐴 ∈ ω ∧ 𝑓:suc 𝐴–1-1-onto→suc 𝐵) → 𝐴 ≈ (suc 𝐵 ∖ {(𝑓‘𝐴)}))
37 fnfvelrn 7072 . . . . . . . . . . . 12 ((𝑓 Fn suc 𝐴 ∧ 𝐴 ∈ suc 𝐴) → (𝑓‘𝐴) ∈ ran 𝑓)
3816, 18, 37sylancl 598 . . . . . . . . . . 11 (𝑓:suc 𝐴–1-1-onto→suc 𝐵 → (𝑓‘𝐴) ∈ ran 𝑓)
3925eleq2d 2847 . . . . . . . . . . . 12 (𝑓:suc 𝐴–onto→suc 𝐵 → ((𝑓‘𝐴) ∈ ran 𝑓 ↔ (𝑓‘𝐴) ∈ suc 𝐵))
4024, 39syl 18 . . . . . . . . . . 11 (𝑓:suc 𝐴–1-1-onto→suc 𝐵 → ((𝑓‘𝐴) ∈ ran 𝑓 ↔ (𝑓‘𝐴) ∈ suc 𝐵))
4138, 40mpbid 235 . . . . . . . . . 10 (𝑓:suc 𝐴–1-1-onto→suc 𝐵 → (𝑓‘𝐴) ∈ suc 𝐵)
42 phplem1 9203 . . . . . . . . . 10 ((𝐵 ∈ ω ∧ (𝑓‘𝐴) ∈ suc 𝐵) → 𝐵 ≈ (suc 𝐵 ∖ {(𝑓‘𝐴)}))
4341, 42sylan2 605 . . . . . . . . 9 ((𝐵 ∈ ω ∧ 𝑓:suc 𝐴–1-1-onto→suc 𝐵) → 𝐵 ≈ (suc 𝐵 ∖ {(𝑓‘𝐴)}))
44 nnfi 9167 . . . . . . . . . . 11 (𝐵 ∈ ω → 𝐵 ∈ Fin)
45 ensymfib 9183 . . . . . . . . . . 11 (𝐵 ∈ Fin → (𝐵 ≈ (suc 𝐵 ∖ {(𝑓‘𝐴)}) ↔ (suc 𝐵 ∖ {(𝑓‘𝐴)}) ≈ 𝐵))
4644, 45syl 18 . . . . . . . . . 10 (𝐵 ∈ ω → (𝐵 ≈ (suc 𝐵 ∖ {(𝑓‘𝐴)}) ↔ (suc 𝐵 ∖ {(𝑓‘𝐴)}) ≈ 𝐵))
4746adantr 486 . . . . . . . . 9 ((𝐵 ∈ ω ∧ 𝑓:suc 𝐴–1-1-onto→suc 𝐵) → (𝐵 ≈ (suc 𝐵 ∖ {(𝑓‘𝐴)}) ↔ (suc 𝐵 ∖ {(𝑓‘𝐴)}) ≈ 𝐵))
4843, 47mpbid 235 . . . . . . . 8 ((𝐵 ∈ ω ∧ 𝑓:suc 𝐴–1-1-onto→suc 𝐵) → (suc 𝐵 ∖ {(𝑓‘𝐴)}) ≈ 𝐵)
49 entrfil 9184 . . . . . . . . 9 ((𝐴 ∈ Fin ∧ 𝐴 ≈ (suc 𝐵 ∖ {(𝑓‘𝐴)}) ∧ (suc 𝐵 ∖ {(𝑓‘𝐴)}) ≈ 𝐵) → 𝐴 ≈ 𝐵)
503, 49syl3an1 1181 . . . . . . . 8 ((𝐴 ∈ ω ∧ 𝐴 ≈ (suc 𝐵 ∖ {(𝑓‘𝐴)}) ∧ (suc 𝐵 ∖ {(𝑓‘𝐴)}) ≈ 𝐵) → 𝐴 ≈ 𝐵)
5148, 50syl3an3 1183 . . . . . . 7 ((𝐴 ∈ ω ∧ 𝐴 ≈ (suc 𝐵 ∖ {(𝑓‘𝐴)}) ∧ (𝐵 ∈ ω ∧ 𝑓:suc 𝐴–1-1-onto→suc 𝐵)) → 𝐴 ≈ 𝐵)
52513expa 1136 . . . . . 6 (((𝐴 ∈ ω ∧ 𝐴 ≈ (suc 𝐵 ∖ {(𝑓‘𝐴)})) ∧ (𝐵 ∈ ω ∧ 𝑓:suc 𝐴–1-1-onto→suc 𝐵)) → 𝐴 ≈ 𝐵)
5336, 52syldanl 614 . . . . 5 (((𝐴 ∈ ω ∧ 𝑓:suc 𝐴–1-1-onto→suc 𝐵) ∧ (𝐵 ∈ ω ∧ 𝑓:suc 𝐴–1-1-onto→suc 𝐵)) → 𝐴 ≈ 𝐵)
5453anandirs 692 . . . 4 (((𝐴 ∈ ω ∧ 𝐵 ∈ ω) ∧ 𝑓:suc 𝐴–1-1-onto→suc 𝐵) → 𝐴 ≈ 𝐵)
5554ex 418 . . 3 ((𝐴 ∈ ω ∧ 𝐵 ∈ ω) → (𝑓:suc 𝐴–1-1-onto→suc 𝐵 → 𝐴 ≈ 𝐵))
5655exlimdv 1966 . 2 ((𝐴 ∈ ω ∧ 𝐵 ∈ ω) → (∃𝑓 𝑓:suc 𝐴–1-1-onto→suc 𝐵 → 𝐴 ≈ 𝐵))
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 1570  ∃wex 1812   ∈ wcel 2145  Vcvv 3451   ∖ cdif 3896   ⊆ wss 3899  {csn 4584   class class class wbr 5103  ◡ccnv 5650  dom cdm 5651  ran crn 5652   “ cima 5654  Ord word 6354  suc csuc 6357  Fun wfun 6525   Fn wfn 6526  –1-1→wf1 6528  –onto→wfo 6529  –1-1-onto→wf1o 6530  ‘cfv 6531  ωcom 7866   ≈ cen 8954  Fincfn 8957
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1828  ax-4 1842  ax-5 1943  ax-6 2000  ax-7 2041  ax-8 2147  ax-9 2155  ax-10 2178  ax-11 2194  ax-12 2213  ax-ext 2733  ax-sep 5249  ax-nul 5260  ax-pr 5391  ax-un 7740
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3or 1104  df-3an 1105  df-tru 1573  df-fal 1583  df-ex 1813  df-nf 1817  df-sb 2100  df-mo 2565  df-eu 2595  df-clab 2740  df-cleq 2753  df-clel 2836  df-nfc 2910  df-ne 2957  df-ral 3078  df-rex 3088  df-reu 3367  df-rab 3414  df-v 3453  df-sbc 3740  df-csb 3848  df-dif 3902  df-un 3904  df-in 3906  df-ss 3916  df-pss 3919  df-nul 4280  df-if 4483  df-pw 4559  df-sn 4585  df-pr 4587  df-op 4591  df-uni 4868  df-br 5104  df-opab 5168  df-mpt 5187  df-tr 5213  df-id 5546  df-eprel 5551  df-po 5559  df-so 5560  df-fr 5604  df-we 5606  df-xp 5657  df-rel 5658  df-cnv 5659  df-co 5660  df-dm 5661  df-rn 5662  df-res 5663  df-ima 5664  df-ord 6358  df-on 6359  df-lim 6360  df-suc 6361  df-iota 6487  df-fun 6533  df-fn 6534  df-f 6535  df-f1 6536  df-fo 6537  df-f1o 6538  df-fv 6539  df-om 7867  df-1o 8460  df-en 8958  df-fin 8961
This theorem is used by:  nneneq  9205
  Copyright terms: Public domain W3C validator