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

Theorem phplem4 8307
 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.)
Hypotheses
Ref Expression
phplem2.1 𝐴 ∈ V
phplem2.2 𝐵 ∈ V
Assertion
Ref Expression
phplem4 ((𝐴 ∈ ω ∧ 𝐵 ∈ ω) → (suc 𝐴 ≈ suc 𝐵𝐴𝐵))

Proof of Theorem phplem4
Dummy variable 𝑓 is distinct from all other variables.
StepHypRef Expression
1 bren 8130 . 2 (suc 𝐴 ≈ suc 𝐵 ↔ ∃𝑓 𝑓:suc 𝐴1-1-onto→suc 𝐵)
2 f1of1 6297 . . . . . . . . . 10 (𝑓:suc 𝐴1-1-onto→suc 𝐵𝑓:suc 𝐴1-1→suc 𝐵)
32adantl 473 . . . . . . . . 9 ((𝐴 ∈ ω ∧ 𝑓:suc 𝐴1-1-onto→suc 𝐵) → 𝑓:suc 𝐴1-1→suc 𝐵)
4 phplem2.2 . . . . . . . . . 10 𝐵 ∈ V
54sucex 7176 . . . . . . . . 9 suc 𝐵 ∈ V
6 sssucid 5963 . . . . . . . . . 10 𝐴 ⊆ suc 𝐴
7 phplem2.1 . . . . . . . . . 10 𝐴 ∈ V
8 f1imaen2g 8182 . . . . . . . . . 10 (((𝑓:suc 𝐴1-1→suc 𝐵 ∧ suc 𝐵 ∈ V) ∧ (𝐴 ⊆ suc 𝐴𝐴 ∈ V)) → (𝑓𝐴) ≈ 𝐴)
96, 7, 8mpanr12 723 . . . . . . . . 9 ((𝑓:suc 𝐴1-1→suc 𝐵 ∧ suc 𝐵 ∈ V) → (𝑓𝐴) ≈ 𝐴)
103, 5, 9sylancl 697 . . . . . . . 8 ((𝐴 ∈ ω ∧ 𝑓:suc 𝐴1-1-onto→suc 𝐵) → (𝑓𝐴) ≈ 𝐴)
1110ensymd 8172 . . . . . . 7 ((𝐴 ∈ ω ∧ 𝑓:suc 𝐴1-1-onto→suc 𝐵) → 𝐴 ≈ (𝑓𝐴))
12 nnord 7238 . . . . . . . . . 10 (𝐴 ∈ ω → Ord 𝐴)
13 orddif 5981 . . . . . . . . . 10 (Ord 𝐴𝐴 = (suc 𝐴 ∖ {𝐴}))
1412, 13syl 17 . . . . . . . . 9 (𝐴 ∈ ω → 𝐴 = (suc 𝐴 ∖ {𝐴}))
1514imaeq2d 5624 . . . . . . . 8 (𝐴 ∈ ω → (𝑓𝐴) = (𝑓 “ (suc 𝐴 ∖ {𝐴})))
16 f1ofn 6299 . . . . . . . . . . 11 (𝑓:suc 𝐴1-1-onto→suc 𝐵𝑓 Fn suc 𝐴)
177sucid 5965 . . . . . . . . . . 11 𝐴 ∈ suc 𝐴
18 fnsnfv 6420 . . . . . . . . . . 11 ((𝑓 Fn suc 𝐴𝐴 ∈ suc 𝐴) → {(𝑓𝐴)} = (𝑓 “ {𝐴}))
1916, 17, 18sylancl 697 . . . . . . . . . 10 (𝑓:suc 𝐴1-1-onto→suc 𝐵 → {(𝑓𝐴)} = (𝑓 “ {𝐴}))
2019difeq2d 3871 . . . . . . . . 9 (𝑓:suc 𝐴1-1-onto→suc 𝐵 → ((𝑓 “ suc 𝐴) ∖ {(𝑓𝐴)}) = ((𝑓 “ suc 𝐴) ∖ (𝑓 “ {𝐴})))
21 imadmrn 5634 . . . . . . . . . . . 12 (𝑓 “ dom 𝑓) = ran 𝑓
2221eqcomi 2769 . . . . . . . . . . 11 ran 𝑓 = (𝑓 “ dom 𝑓)
23 f1ofo 6305 . . . . . . . . . . . 12 (𝑓:suc 𝐴1-1-onto→suc 𝐵𝑓:suc 𝐴onto→suc 𝐵)
24 forn 6279 . . . . . . . . . . . 12 (𝑓:suc 𝐴onto→suc 𝐵 → ran 𝑓 = suc 𝐵)
2523, 24syl 17 . . . . . . . . . . 11 (𝑓:suc 𝐴1-1-onto→suc 𝐵 → ran 𝑓 = suc 𝐵)
26 f1odm 6302 . . . . . . . . . . . 12 (𝑓:suc 𝐴1-1-onto→suc 𝐵 → dom 𝑓 = suc 𝐴)
2726imaeq2d 5624 . . . . . . . . . . 11 (𝑓:suc 𝐴1-1-onto→suc 𝐵 → (𝑓 “ dom 𝑓) = (𝑓 “ suc 𝐴))
2822, 25, 273eqtr3a 2818 . . . . . . . . . 10 (𝑓:suc 𝐴1-1-onto→suc 𝐵 → suc 𝐵 = (𝑓 “ suc 𝐴))
2928difeq1d 3870 . . . . . . . . 9 (𝑓:suc 𝐴1-1-onto→suc 𝐵 → (suc 𝐵 ∖ {(𝑓𝐴)}) = ((𝑓 “ suc 𝐴) ∖ {(𝑓𝐴)}))
30 dff1o3 6304 . . . . . . . . . . 11 (𝑓:suc 𝐴1-1-onto→suc 𝐵 ↔ (𝑓:suc 𝐴onto→suc 𝐵 ∧ Fun 𝑓))
3130simprbi 483 . . . . . . . . . 10 (𝑓:suc 𝐴1-1-onto→suc 𝐵 → Fun 𝑓)
32 imadif 6134 . . . . . . . . . 10 (Fun 𝑓 → (𝑓 “ (suc 𝐴 ∖ {𝐴})) = ((𝑓 “ suc 𝐴) ∖ (𝑓 “ {𝐴})))
3331, 32syl 17 . . . . . . . . 9 (𝑓:suc 𝐴1-1-onto→suc 𝐵 → (𝑓 “ (suc 𝐴 ∖ {𝐴})) = ((𝑓 “ suc 𝐴) ∖ (𝑓 “ {𝐴})))
3420, 29, 333eqtr4rd 2805 . . . . . . . 8 (𝑓:suc 𝐴1-1-onto→suc 𝐵 → (𝑓 “ (suc 𝐴 ∖ {𝐴})) = (suc 𝐵 ∖ {(𝑓𝐴)}))
3515, 34sylan9eq 2814 . . . . . . 7 ((𝐴 ∈ ω ∧ 𝑓:suc 𝐴1-1-onto→suc 𝐵) → (𝑓𝐴) = (suc 𝐵 ∖ {(𝑓𝐴)}))
3611, 35breqtrd 4830 . . . . . 6 ((𝐴 ∈ ω ∧ 𝑓:suc 𝐴1-1-onto→suc 𝐵) → 𝐴 ≈ (suc 𝐵 ∖ {(𝑓𝐴)}))
37 fnfvelrn 6519 . . . . . . . . . 10 ((𝑓 Fn suc 𝐴𝐴 ∈ suc 𝐴) → (𝑓𝐴) ∈ ran 𝑓)
3816, 17, 37sylancl 697 . . . . . . . . 9 (𝑓:suc 𝐴1-1-onto→suc 𝐵 → (𝑓𝐴) ∈ ran 𝑓)
3924eleq2d 2825 . . . . . . . . . 10 (𝑓:suc 𝐴onto→suc 𝐵 → ((𝑓𝐴) ∈ ran 𝑓 ↔ (𝑓𝐴) ∈ suc 𝐵))
4023, 39syl 17 . . . . . . . . 9 (𝑓:suc 𝐴1-1-onto→suc 𝐵 → ((𝑓𝐴) ∈ ran 𝑓 ↔ (𝑓𝐴) ∈ suc 𝐵))
4138, 40mpbid 222 . . . . . . . 8 (𝑓:suc 𝐴1-1-onto→suc 𝐵 → (𝑓𝐴) ∈ suc 𝐵)
42 fvex 6362 . . . . . . . . 9 (𝑓𝐴) ∈ V
434, 42phplem3 8306 . . . . . . . 8 ((𝐵 ∈ ω ∧ (𝑓𝐴) ∈ suc 𝐵) → 𝐵 ≈ (suc 𝐵 ∖ {(𝑓𝐴)}))
4441, 43sylan2 492 . . . . . . 7 ((𝐵 ∈ ω ∧ 𝑓:suc 𝐴1-1-onto→suc 𝐵) → 𝐵 ≈ (suc 𝐵 ∖ {(𝑓𝐴)}))
4544ensymd 8172 . . . . . 6 ((𝐵 ∈ ω ∧ 𝑓:suc 𝐴1-1-onto→suc 𝐵) → (suc 𝐵 ∖ {(𝑓𝐴)}) ≈ 𝐵)
46 entr 8173 . . . . . 6 ((𝐴 ≈ (suc 𝐵 ∖ {(𝑓𝐴)}) ∧ (suc 𝐵 ∖ {(𝑓𝐴)}) ≈ 𝐵) → 𝐴𝐵)
4736, 45, 46syl2an 495 . . . . 5 (((𝐴 ∈ ω ∧ 𝑓:suc 𝐴1-1-onto→suc 𝐵) ∧ (𝐵 ∈ ω ∧ 𝑓:suc 𝐴1-1-onto→suc 𝐵)) → 𝐴𝐵)
4847anandirs 909 . . . 4 (((𝐴 ∈ ω ∧ 𝐵 ∈ ω) ∧ 𝑓:suc 𝐴1-1-onto→suc 𝐵) → 𝐴𝐵)
4948ex 449 . . 3 ((𝐴 ∈ ω ∧ 𝐵 ∈ ω) → (𝑓:suc 𝐴1-1-onto→suc 𝐵𝐴𝐵))
5049exlimdv 2010 . 2 ((𝐴 ∈ ω ∧ 𝐵 ∈ ω) → (∃𝑓 𝑓:suc 𝐴1-1-onto→suc 𝐵𝐴𝐵))
511, 50syl5bi 232 1 ((𝐴 ∈ ω ∧ 𝐵 ∈ ω) → (suc 𝐴 ≈ suc 𝐵𝐴𝐵))
 Colors of variables: wff setvar class Syntax hints:   → wi 4   ↔ wb 196   ∧ wa 383   = wceq 1632  ∃wex 1853   ∈ wcel 2139  Vcvv 3340   ∖ cdif 3712   ⊆ wss 3715  {csn 4321   class class class wbr 4804  ◡ccnv 5265  dom cdm 5266  ran crn 5267   “ cima 5269  Ord word 5883  suc csuc 5886  Fun wfun 6043   Fn wfn 6044  –1-1→wf1 6046  –onto→wfo 6047  –1-1-onto→wf1o 6048  ‘cfv 6049  ωcom 7230   ≈ cen 8118 This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1871  ax-4 1886  ax-5 1988  ax-6 2054  ax-7 2090  ax-8 2141  ax-9 2148  ax-10 2168  ax-11 2183  ax-12 2196  ax-13 2391  ax-ext 2740  ax-sep 4933  ax-nul 4941  ax-pow 4992  ax-pr 5055  ax-un 7114 This theorem depends on definitions:  df-bi 197  df-or 384  df-an 385  df-3or 1073  df-3an 1074  df-tru 1635  df-ex 1854  df-nf 1859  df-sb 2047  df-eu 2611  df-mo 2612  df-clab 2747  df-cleq 2753  df-clel 2756  df-nfc 2891  df-ne 2933  df-ral 3055  df-rex 3056  df-rab 3059  df-v 3342  df-sbc 3577  df-dif 3718  df-un 3720  df-in 3722  df-ss 3729  df-pss 3731  df-nul 4059  df-if 4231  df-pw 4304  df-sn 4322  df-pr 4324  df-tp 4326  df-op 4328  df-uni 4589  df-br 4805  df-opab 4865  df-tr 4905  df-id 5174  df-eprel 5179  df-po 5187  df-so 5188  df-fr 5225  df-we 5227  df-xp 5272  df-rel 5273  df-cnv 5274  df-co 5275  df-dm 5276  df-rn 5277  df-res 5278  df-ima 5279  df-ord 5887  df-on 5888  df-lim 5889  df-suc 5890  df-iota 6012  df-fun 6051  df-fn 6052  df-f 6053  df-f1 6054  df-fo 6055  df-f1o 6056  df-fv 6057  df-om 7231  df-er 7911  df-en 8122 This theorem is referenced by:  nneneq  8308
 Copyright terms: Public domain W3C validator