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

Theorem phplem2 9251
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 5332. (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 9014 . 2 (suc 𝐴 ≈ suc 𝐵 ↔ ∃𝑓 𝑓:suc 𝐴⟶1-1ontosuc 𝐵)
2 f1of1 6848 . . . . . . . . 9 (𝑓:suc 𝐴⟶1-1ontosuc 𝐵 → 𝑓:suc 𝐴⟶1-1suc 𝐵)
3 nnfi 9214 . . . . . . . . 9 (𝐴 ∈ ω → 𝐴 ∈ Fin)
4 sssucid 6466 . . . . . . . . . 10 𝐴 ⊆ suc 𝐴
5 f1imaenfi 9241 . . . . . . . . . 10 ((𝑓:suc 𝐴⟶1-1suc 𝐵 ∧ 𝐴 ⊆ suc 𝐴 ∧ 𝐴 ∈ Fin) → (𝑓 “ 𝐴) ≈ 𝐴)
64, 5mp3an2 1479 . . . . . . . . 9 ((𝑓:suc 𝐴⟶1-1suc 𝐵 ∧ 𝐴 ∈ Fin) → (𝑓 “ 𝐴) ≈ 𝐴)
72, 3, 6syl2anr 609 . . . . . . . 8 ((𝐴 ∈ ω ∧ 𝑓:suc 𝐴⟶1-1ontosuc 𝐵) → (𝑓 “ 𝐴) ≈ 𝐴)
8 ensymfib 9230 . . . . . . . . . 10 (𝐴 ∈ Fin → (𝐴 ≈ (𝑓 “ 𝐴) ↔ (𝑓 “ 𝐴) ≈ 𝐴))
93, 8syl 18 . . . . . . . . 9 (𝐴 ∈ ω → (𝐴 ≈ (𝑓 “ 𝐴) ↔ (𝑓 “ 𝐴) ≈ 𝐴))
109adantr 486 . . . . . . . 8 ((𝐴 ∈ ω ∧ 𝑓:suc 𝐴⟶1-1ontosuc 𝐵) → (𝐴 ≈ (𝑓 “ 𝐴) ↔ (𝑓 “ 𝐴) ≈ 𝐴))
117, 10mpbird 260 . . . . . . 7 ((𝐴 ∈ ω ∧ 𝑓:suc 𝐴⟶1-1ontosuc 𝐵) → 𝐴 ≈ (𝑓 “ 𝐴))
12 nnord 7912 . . . . . . . . . 10 (𝐴 ∈ ω → Ord 𝐴)
13 orddif 6482 . . . . . . . . . 10 (Ord 𝐴 → 𝐴 = (suc 𝐴 ∖ {𝐴}))
1412, 13syl 18 . . . . . . . . 9 (𝐴 ∈ ω → 𝐴 = (suc 𝐴 ∖ {𝐴}))
1514imaeq2d 6065 . . . . . . . 8 (𝐴 ∈ ω → (𝑓 “ 𝐴) = (𝑓 “ (suc 𝐴 ∖ {𝐴})))
16 f1ofn 6850 . . . . . . . . . . 11 (𝑓:suc 𝐴⟶1-1ontosuc 𝐵 → 𝑓 Fn suc 𝐴)
17 phplem2.1 . . . . . . . . . . . 12 𝐴 ∈ V
1817sucid 6468 . . . . . . . . . . 11 𝐴 ∈ suc 𝐴
19 fnsnfv 6990 . . . . . . . . . . 11 ((𝑓 Fn suc 𝐴 ∧ 𝐴 ∈ suc 𝐴) → {(𝑓‘𝐴)} = (𝑓 “ {𝐴}))
2016, 18, 19sylancl 598 . . . . . . . . . 10 (𝑓:suc 𝐴⟶1-1ontosuc 𝐵 → {(𝑓‘𝐴)} = (𝑓 “ {𝐴}))
2120difeq2d 4066 . . . . . . . . 9 (𝑓:suc 𝐴⟶1-1ontosuc 𝐵 → ((𝑓 “ suc 𝐴) ∖ {(𝑓‘𝐴)}) = ((𝑓 “ suc 𝐴) ∖ (𝑓 “ {𝐴})))
22 imadmrn 6080 . . . . . . . . . . . 12 (𝑓 “ dom 𝑓) = ran 𝑓
2322eqcomi 2772 . . . . . . . . . . 11 ran 𝑓 = (𝑓 “ dom 𝑓)
24 f1ofo 6857 . . . . . . . . . . . 12 (𝑓:suc 𝐴⟶1-1ontosuc 𝐵 → 𝑓:suc 𝐴⟶ontosuc 𝐵)
25 forn 6824 . . . . . . . . . . . 12 (𝑓:suc 𝐴⟶ontosuc 𝐵 → ran 𝑓 = suc 𝐵)
2624, 25syl 18 . . . . . . . . . . 11 (𝑓:suc 𝐴⟶1-1ontosuc 𝐵 → ran 𝑓 = suc 𝐵)
27 f1odm 6853 . . . . . . . . . . . 12 (𝑓:suc 𝐴⟶1-1ontosuc 𝐵 → dom 𝑓 = suc 𝐴)
2827imaeq2d 6065 . . . . . . . . . . 11 (𝑓:suc 𝐴⟶1-1ontosuc 𝐵 → (𝑓 “ dom 𝑓) = (𝑓 “ suc 𝐴))
2923, 26, 283eqtr3a 2822 . . . . . . . . . 10 (𝑓:suc 𝐴⟶1-1ontosuc 𝐵 → suc 𝐵 = (𝑓 “ suc 𝐴))
3029difeq1d 4065 . . . . . . . . 9 (𝑓:suc 𝐴⟶1-1ontosuc 𝐵 → (suc 𝐵 ∖ {(𝑓‘𝐴)}) = ((𝑓 “ suc 𝐴) ∖ {(𝑓‘𝐴)}))
31 dff1o3 6856 . . . . . . . . . 10 (𝑓:suc 𝐴⟶1-1ontosuc 𝐵 ↔ (𝑓:suc 𝐴⟶ontosuc 𝐵 ∧ Fun ◡𝑓))
32 imadif 6649 . . . . . . . . . 10 (Fun ◡𝑓 → (𝑓 “ (suc 𝐴 ∖ {𝐴})) = ((𝑓 “ suc 𝐴) ∖ (𝑓 “ {𝐴})))
3331, 32simplbiim 514 . . . . . . . . 9 (𝑓:suc 𝐴⟶1-1ontosuc 𝐵 → (𝑓 “ (suc 𝐴 ∖ {𝐴})) = ((𝑓 “ suc 𝐴) ∖ (𝑓 “ {𝐴})))
3421, 30, 333eqtr4rd 2809 . . . . . . . 8 (𝑓:suc 𝐴⟶1-1ontosuc 𝐵 → (𝑓 “ (suc 𝐴 ∖ {𝐴})) = (suc 𝐵 ∖ {(𝑓‘𝐴)}))
3515, 34sylan9eq 2818 . . . . . . 7 ((𝐴 ∈ ω ∧ 𝑓:suc 𝐴⟶1-1ontosuc 𝐵) → (𝑓 “ 𝐴) = (suc 𝐵 ∖ {(𝑓‘𝐴)}))
3611, 35breqtrd 5135 . . . . . 6 ((𝐴 ∈ ω ∧ 𝑓:suc 𝐴⟶1-1ontosuc 𝐵) → 𝐴 ≈ (suc 𝐵 ∖ {(𝑓‘𝐴)}))
37 fnfvelrn 7107 . . . . . . . . . . . 12 ((𝑓 Fn suc 𝐴 ∧ 𝐴 ∈ suc 𝐴) → (𝑓‘𝐴) ∈ ran 𝑓)
3816, 18, 37sylancl 598 . . . . . . . . . . 11 (𝑓:suc 𝐴⟶1-1ontosuc 𝐵 → (𝑓‘𝐴) ∈ ran 𝑓)
3925eleq2d 2850 . . . . . . . . . . . 12 (𝑓:suc 𝐴⟶ontosuc 𝐵 → ((𝑓‘𝐴) ∈ ran 𝑓 ↔ (𝑓‘𝐴) ∈ suc 𝐵))
4024, 39syl 18 . . . . . . . . . . 11 (𝑓:suc 𝐴⟶1-1ontosuc 𝐵 → ((𝑓‘𝐴) ∈ ran 𝑓 ↔ (𝑓‘𝐴) ∈ suc 𝐵))
4138, 40mpbid 235 . . . . . . . . . 10 (𝑓:suc 𝐴⟶1-1ontosuc 𝐵 → (𝑓‘𝐴) ∈ suc 𝐵)
42 phplem1 9250 . . . . . . . . . 10 ((𝐵 ∈ ω ∧ (𝑓‘𝐴) ∈ suc 𝐵) → 𝐵 ≈ (suc 𝐵 ∖ {(𝑓‘𝐴)}))
4341, 42sylan2 605 . . . . . . . . 9 ((𝐵 ∈ ω ∧ 𝑓:suc 𝐴⟶1-1ontosuc 𝐵) → 𝐵 ≈ (suc 𝐵 ∖ {(𝑓‘𝐴)}))
44 nnfi 9214 . . . . . . . . . . 11 (𝐵 ∈ ω → 𝐵 ∈ Fin)
45 ensymfib 9230 . . . . . . . . . . 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 9231 . . . . . . . . 9 ((𝐴 ∈ Fin ∧ 𝐴 ≈ (suc 𝐵 ∖ {(𝑓‘𝐴)}) ∧ (suc 𝐵 ∖ {(𝑓‘𝐴)}) ≈ 𝐵) → 𝐴 ≈ 𝐵)
503, 49syl3an1 1181 . . . . . . . 8 ((𝐴 ∈ ω ∧ 𝐴 ≈ (suc 𝐵 ∖ {(𝑓‘𝐴)}) ∧ (suc 𝐵 ∖ {(𝑓‘𝐴)}) ≈ 𝐵) → 𝐴 ≈ 𝐵)
5148, 50syl3an3 1183 . . . . . . 7 ((𝐴 ∈ ω ∧ 𝐴 ≈ (suc 𝐵 ∖ {(𝑓‘𝐴)}) ∧ (𝐵 ∈ ω ∧ 𝑓:suc 𝐴⟶1-1ontosuc 𝐵)) → 𝐴 ≈ 𝐵)
52513expa 1136 . . . . . 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 1968 . 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 1570  ∃wex 1812   ∈ wcel 2147  Vcvv 3454   ⊆ wss 3900   ∖ cdif 4048  {csn 4588   class class class wbr 5106  ◡ccnv 5655  dom cdm 5656  ran crn 5657   “ cima 5659  Ord word 6382  suc csuc 6385  Fun wfun 6555   Fn wfn 6556  ⟶1-1wf1 6558  ⟶ontowfo 6559  ⟶1-1ontowf1o 6560  ‘cfv 6561  ωcom 7904   ≈ cen 9001  Fincfn 9004
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 1945  ax-6 2002  ax-7 2043  ax-8 2149  ax-9 2157  ax-10 2180  ax-11 2197  ax-12 2216  ax-ext 2735  ax-sep 5253  ax-nul 5264  ax-pr 5396  ax-un 7778
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 2102  df-mo 2567  df-eu 2597  df-clab 2742  df-cleq 2755  df-clel 2839  df-nfc 2913  df-ne 2960  df-ral 3081  df-rex 3091  df-reu 3370  df-rab 3417  df-v 3456  df-sbc 3743  df-csb 3852  df-ss 3901  df-pss 4017  df-dif 4050  df-in 4094  df-un 4154  df-nul 4282  df-if 4486  df-pw 4562  df-sn 4589  df-pr 4591  df-op 4839  df-uni 4871  df-br 5107  df-opab 5172  df-mpt 5191  df-tr 5217  df-id 5551  df-eprel 5556  df-po 5564  df-so 5565  df-fr 5609  df-we 5611  df-xp 5662  df-rel 5663  df-cnv 5664  df-co 5665  df-dm 5666  df-rn 5667  df-res 5668  df-ima 5669  df-ord 6386  df-on 6387  df-lim 6388  df-suc 6389  df-iota 6515  df-fun 6563  df-fn 6564  df-f 6565  df-f1 6566  df-fo 6567  df-f1o 6568  df-fv 6569  df-om 7905  df-1o 8507  df-en 9005  df-fin 9008
This theorem is used by:  nneneq  9252
  Copyright terms: Public domain W3C validator