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

Theorem phplem2 8991
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 5288. (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 8743 . 2 (suc 𝐴 ≈ suc 𝐵 ↔ ∃𝑓 𝑓:suc 𝐴1-1-onto→suc 𝐵)
2 f1of1 6715 . . . . . . . . 9 (𝑓:suc 𝐴1-1-onto→suc 𝐵𝑓:suc 𝐴1-1→suc 𝐵)
3 nnfi 8950 . . . . . . . . 9 (𝐴 ∈ ω → 𝐴 ∈ Fin)
4 sssucid 6343 . . . . . . . . . 10 𝐴 ⊆ suc 𝐴
5 f1imaenfi 8981 . . . . . . . . . 10 ((𝑓:suc 𝐴1-1→suc 𝐵𝐴 ⊆ suc 𝐴𝐴 ∈ Fin) → (𝑓𝐴) ≈ 𝐴)
64, 5mp3an2 1448 . . . . . . . . 9 ((𝑓:suc 𝐴1-1→suc 𝐵𝐴 ∈ Fin) → (𝑓𝐴) ≈ 𝐴)
72, 3, 6syl2anr 597 . . . . . . . 8 ((𝐴 ∈ ω ∧ 𝑓:suc 𝐴1-1-onto→suc 𝐵) → (𝑓𝐴) ≈ 𝐴)
8 ensymfib 8970 . . . . . . . . . 10 (𝐴 ∈ Fin → (𝐴 ≈ (𝑓𝐴) ↔ (𝑓𝐴) ≈ 𝐴))
93, 8syl 17 . . . . . . . . 9 (𝐴 ∈ ω → (𝐴 ≈ (𝑓𝐴) ↔ (𝑓𝐴) ≈ 𝐴))
109adantr 481 . . . . . . . 8 ((𝐴 ∈ ω ∧ 𝑓:suc 𝐴1-1-onto→suc 𝐵) → (𝐴 ≈ (𝑓𝐴) ↔ (𝑓𝐴) ≈ 𝐴))
117, 10mpbird 256 . . . . . . 7 ((𝐴 ∈ ω ∧ 𝑓:suc 𝐴1-1-onto→suc 𝐵) → 𝐴 ≈ (𝑓𝐴))
12 nnord 7720 . . . . . . . . . 10 (𝐴 ∈ ω → Ord 𝐴)
13 orddif 6359 . . . . . . . . . 10 (Ord 𝐴𝐴 = (suc 𝐴 ∖ {𝐴}))
1412, 13syl 17 . . . . . . . . 9 (𝐴 ∈ ω → 𝐴 = (suc 𝐴 ∖ {𝐴}))
1514imaeq2d 5969 . . . . . . . 8 (𝐴 ∈ ω → (𝑓𝐴) = (𝑓 “ (suc 𝐴 ∖ {𝐴})))
16 f1ofn 6717 . . . . . . . . . . 11 (𝑓:suc 𝐴1-1-onto→suc 𝐵𝑓 Fn suc 𝐴)
17 phplem2.1 . . . . . . . . . . . 12 𝐴 ∈ V
1817sucid 6345 . . . . . . . . . . 11 𝐴 ∈ suc 𝐴
19 fnsnfv 6847 . . . . . . . . . . 11 ((𝑓 Fn suc 𝐴𝐴 ∈ suc 𝐴) → {(𝑓𝐴)} = (𝑓 “ {𝐴}))
2016, 18, 19sylancl 586 . . . . . . . . . 10 (𝑓:suc 𝐴1-1-onto→suc 𝐵 → {(𝑓𝐴)} = (𝑓 “ {𝐴}))
2120difeq2d 4057 . . . . . . . . 9 (𝑓:suc 𝐴1-1-onto→suc 𝐵 → ((𝑓 “ suc 𝐴) ∖ {(𝑓𝐴)}) = ((𝑓 “ suc 𝐴) ∖ (𝑓 “ {𝐴})))
22 imadmrn 5979 . . . . . . . . . . . 12 (𝑓 “ dom 𝑓) = ran 𝑓
2322eqcomi 2747 . . . . . . . . . . 11 ran 𝑓 = (𝑓 “ dom 𝑓)
24 f1ofo 6723 . . . . . . . . . . . 12 (𝑓:suc 𝐴1-1-onto→suc 𝐵𝑓:suc 𝐴onto→suc 𝐵)
25 forn 6691 . . . . . . . . . . . 12 (𝑓:suc 𝐴onto→suc 𝐵 → ran 𝑓 = suc 𝐵)
2624, 25syl 17 . . . . . . . . . . 11 (𝑓:suc 𝐴1-1-onto→suc 𝐵 → ran 𝑓 = suc 𝐵)
27 f1odm 6720 . . . . . . . . . . . 12 (𝑓:suc 𝐴1-1-onto→suc 𝐵 → dom 𝑓 = suc 𝐴)
2827imaeq2d 5969 . . . . . . . . . . 11 (𝑓:suc 𝐴1-1-onto→suc 𝐵 → (𝑓 “ dom 𝑓) = (𝑓 “ suc 𝐴))
2923, 26, 283eqtr3a 2802 . . . . . . . . . 10 (𝑓:suc 𝐴1-1-onto→suc 𝐵 → suc 𝐵 = (𝑓 “ suc 𝐴))
3029difeq1d 4056 . . . . . . . . 9 (𝑓:suc 𝐴1-1-onto→suc 𝐵 → (suc 𝐵 ∖ {(𝑓𝐴)}) = ((𝑓 “ suc 𝐴) ∖ {(𝑓𝐴)}))
31 dff1o3 6722 . . . . . . . . . 10 (𝑓:suc 𝐴1-1-onto→suc 𝐵 ↔ (𝑓:suc 𝐴onto→suc 𝐵 ∧ Fun 𝑓))
32 imadif 6518 . . . . . . . . . 10 (Fun 𝑓 → (𝑓 “ (suc 𝐴 ∖ {𝐴})) = ((𝑓 “ suc 𝐴) ∖ (𝑓 “ {𝐴})))
3331, 32simplbiim 505 . . . . . . . . 9 (𝑓:suc 𝐴1-1-onto→suc 𝐵 → (𝑓 “ (suc 𝐴 ∖ {𝐴})) = ((𝑓 “ suc 𝐴) ∖ (𝑓 “ {𝐴})))
3421, 30, 333eqtr4rd 2789 . . . . . . . 8 (𝑓:suc 𝐴1-1-onto→suc 𝐵 → (𝑓 “ (suc 𝐴 ∖ {𝐴})) = (suc 𝐵 ∖ {(𝑓𝐴)}))
3515, 34sylan9eq 2798 . . . . . . 7 ((𝐴 ∈ ω ∧ 𝑓:suc 𝐴1-1-onto→suc 𝐵) → (𝑓𝐴) = (suc 𝐵 ∖ {(𝑓𝐴)}))
3611, 35breqtrd 5100 . . . . . 6 ((𝐴 ∈ ω ∧ 𝑓:suc 𝐴1-1-onto→suc 𝐵) → 𝐴 ≈ (suc 𝐵 ∖ {(𝑓𝐴)}))
37 fnfvelrn 6958 . . . . . . . . . . . 12 ((𝑓 Fn suc 𝐴𝐴 ∈ suc 𝐴) → (𝑓𝐴) ∈ ran 𝑓)
3816, 18, 37sylancl 586 . . . . . . . . . . 11 (𝑓:suc 𝐴1-1-onto→suc 𝐵 → (𝑓𝐴) ∈ ran 𝑓)
3925eleq2d 2824 . . . . . . . . . . . 12 (𝑓:suc 𝐴onto→suc 𝐵 → ((𝑓𝐴) ∈ ran 𝑓 ↔ (𝑓𝐴) ∈ suc 𝐵))
4024, 39syl 17 . . . . . . . . . . 11 (𝑓:suc 𝐴1-1-onto→suc 𝐵 → ((𝑓𝐴) ∈ ran 𝑓 ↔ (𝑓𝐴) ∈ suc 𝐵))
4138, 40mpbid 231 . . . . . . . . . 10 (𝑓:suc 𝐴1-1-onto→suc 𝐵 → (𝑓𝐴) ∈ suc 𝐵)
42 phplem1 8990 . . . . . . . . . 10 ((𝐵 ∈ ω ∧ (𝑓𝐴) ∈ suc 𝐵) → 𝐵 ≈ (suc 𝐵 ∖ {(𝑓𝐴)}))
4341, 42sylan2 593 . . . . . . . . 9 ((𝐵 ∈ ω ∧ 𝑓:suc 𝐴1-1-onto→suc 𝐵) → 𝐵 ≈ (suc 𝐵 ∖ {(𝑓𝐴)}))
44 nnfi 8950 . . . . . . . . . . 11 (𝐵 ∈ ω → 𝐵 ∈ Fin)
45 ensymfib 8970 . . . . . . . . . . 11 (𝐵 ∈ Fin → (𝐵 ≈ (suc 𝐵 ∖ {(𝑓𝐴)}) ↔ (suc 𝐵 ∖ {(𝑓𝐴)}) ≈ 𝐵))
4644, 45syl 17 . . . . . . . . . 10 (𝐵 ∈ ω → (𝐵 ≈ (suc 𝐵 ∖ {(𝑓𝐴)}) ↔ (suc 𝐵 ∖ {(𝑓𝐴)}) ≈ 𝐵))
4746adantr 481 . . . . . . . . 9 ((𝐵 ∈ ω ∧ 𝑓:suc 𝐴1-1-onto→suc 𝐵) → (𝐵 ≈ (suc 𝐵 ∖ {(𝑓𝐴)}) ↔ (suc 𝐵 ∖ {(𝑓𝐴)}) ≈ 𝐵))
4843, 47mpbid 231 . . . . . . . 8 ((𝐵 ∈ ω ∧ 𝑓:suc 𝐴1-1-onto→suc 𝐵) → (suc 𝐵 ∖ {(𝑓𝐴)}) ≈ 𝐵)
49 entrfil 8971 . . . . . . . . 9 ((𝐴 ∈ Fin ∧ 𝐴 ≈ (suc 𝐵 ∖ {(𝑓𝐴)}) ∧ (suc 𝐵 ∖ {(𝑓𝐴)}) ≈ 𝐵) → 𝐴𝐵)
503, 49syl3an1 1162 . . . . . . . 8 ((𝐴 ∈ ω ∧ 𝐴 ≈ (suc 𝐵 ∖ {(𝑓𝐴)}) ∧ (suc 𝐵 ∖ {(𝑓𝐴)}) ≈ 𝐵) → 𝐴𝐵)
5148, 50syl3an3 1164 . . . . . . 7 ((𝐴 ∈ ω ∧ 𝐴 ≈ (suc 𝐵 ∖ {(𝑓𝐴)}) ∧ (𝐵 ∈ ω ∧ 𝑓:suc 𝐴1-1-onto→suc 𝐵)) → 𝐴𝐵)
52513expa 1117 . . . . . 6 (((𝐴 ∈ ω ∧ 𝐴 ≈ (suc 𝐵 ∖ {(𝑓𝐴)})) ∧ (𝐵 ∈ ω ∧ 𝑓:suc 𝐴1-1-onto→suc 𝐵)) → 𝐴𝐵)
5336, 52syldanl 602 . . . . 5 (((𝐴 ∈ ω ∧ 𝑓:suc 𝐴1-1-onto→suc 𝐵) ∧ (𝐵 ∈ ω ∧ 𝑓:suc 𝐴1-1-onto→suc 𝐵)) → 𝐴𝐵)
5453anandirs 676 . . . 4 (((𝐴 ∈ ω ∧ 𝐵 ∈ ω) ∧ 𝑓:suc 𝐴1-1-onto→suc 𝐵) → 𝐴𝐵)
5554ex 413 . . 3 ((𝐴 ∈ ω ∧ 𝐵 ∈ ω) → (𝑓:suc 𝐴1-1-onto→suc 𝐵𝐴𝐵))
5655exlimdv 1936 . 2 ((𝐴 ∈ ω ∧ 𝐵 ∈ ω) → (∃𝑓 𝑓:suc 𝐴1-1-onto→suc 𝐵𝐴𝐵))
571, 56syl5bi 241 1 ((𝐴 ∈ ω ∧ 𝐵 ∈ ω) → (suc 𝐴 ≈ suc 𝐵𝐴𝐵))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 205  wa 396   = wceq 1539  wex 1782  wcel 2106  Vcvv 3432  cdif 3884  wss 3887  {csn 4561   class class class wbr 5074  ccnv 5588  dom cdm 5589  ran crn 5590  cima 5592  Ord word 6265  suc csuc 6268  Fun wfun 6427   Fn wfn 6428  1-1wf1 6430  ontowfo 6431  1-1-ontowf1o 6432  cfv 6433  ωcom 7712  cen 8730  Fincfn 8733
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1798  ax-4 1812  ax-5 1913  ax-6 1971  ax-7 2011  ax-8 2108  ax-9 2116  ax-10 2137  ax-11 2154  ax-12 2171  ax-ext 2709  ax-sep 5223  ax-nul 5230  ax-pr 5352  ax-un 7588
This theorem depends on definitions:  df-bi 206  df-an 397  df-or 845  df-3or 1087  df-3an 1088  df-tru 1542  df-fal 1552  df-ex 1783  df-nf 1787  df-sb 2068  df-mo 2540  df-eu 2569  df-clab 2716  df-cleq 2730  df-clel 2816  df-nfc 2889  df-ne 2944  df-ral 3069  df-rex 3070  df-reu 3072  df-rab 3073  df-v 3434  df-sbc 3717  df-csb 3833  df-dif 3890  df-un 3892  df-in 3894  df-ss 3904  df-pss 3906  df-nul 4257  df-if 4460  df-pw 4535  df-sn 4562  df-pr 4564  df-op 4568  df-uni 4840  df-br 5075  df-opab 5137  df-mpt 5158  df-tr 5192  df-id 5489  df-eprel 5495  df-po 5503  df-so 5504  df-fr 5544  df-we 5546  df-xp 5595  df-rel 5596  df-cnv 5597  df-co 5598  df-dm 5599  df-rn 5600  df-res 5601  df-ima 5602  df-ord 6269  df-on 6270  df-lim 6271  df-suc 6272  df-iota 6391  df-fun 6435  df-fn 6436  df-f 6437  df-f1 6438  df-fo 6439  df-f1o 6440  df-fv 6441  df-om 7713  df-1o 8297  df-en 8734  df-fin 8737
This theorem is referenced by:  nneneq  8992
  Copyright terms: Public domain W3C validator