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

Theorem phplem4 7059
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  |-  A  e. 
_V
phplem2.2  |-  B  e. 
_V
Assertion
Ref Expression
phplem4  |-  ( ( A  e.  om  /\  B  e.  om )  ->  ( suc  A  ~~  suc  B  ->  A  ~~  B ) )

Proof of Theorem phplem4
Dummy variable  f is distinct from all other variables.
StepHypRef Expression
1 bren 6887 . 2  |-  ( suc 
A  ~~  suc  B  <->  E. f 
f : suc  A -1-1-onto-> suc  B )
2 f1of1 5487 . . . . . . . . . 10  |-  ( f : suc  A -1-1-onto-> suc  B  ->  f : suc  A -1-1-> suc 
B )
32adantl 452 . . . . . . . . 9  |-  ( ( A  e.  om  /\  f : suc  A -1-1-onto-> suc  B
)  ->  f : suc  A -1-1-> suc  B )
4 phplem2.2 . . . . . . . . . 10  |-  B  e. 
_V
54sucex 4618 . . . . . . . . 9  |-  suc  B  e.  _V
6 sssucid 4485 . . . . . . . . . 10  |-  A  C_  suc  A
7 phplem2.1 . . . . . . . . . 10  |-  A  e. 
_V
8 f1imaen2g 6938 . . . . . . . . . 10  |-  ( ( ( f : suc  A
-1-1-> suc  B  /\  suc  B  e.  _V )  /\  ( A  C_  suc  A  /\  A  e.  _V ) )  ->  (
f " A ) 
~~  A )
96, 7, 8mpanr12 666 . . . . . . . . 9  |-  ( ( f : suc  A -1-1-> suc 
B  /\  suc  B  e. 
_V )  ->  (
f " A ) 
~~  A )
103, 5, 9sylancl 643 . . . . . . . 8  |-  ( ( A  e.  om  /\  f : suc  A -1-1-onto-> suc  B
)  ->  ( f " A )  ~~  A
)
11 ensym 6926 . . . . . . . 8  |-  ( ( f " A ) 
~~  A  ->  A  ~~  ( f " A
) )
1210, 11syl 15 . . . . . . 7  |-  ( ( A  e.  om  /\  f : suc  A -1-1-onto-> suc  B
)  ->  A  ~~  ( f " A
) )
13 nnord 4680 . . . . . . . . . 10  |-  ( A  e.  om  ->  Ord  A )
14 orddif 4502 . . . . . . . . . 10  |-  ( Ord 
A  ->  A  =  ( suc  A  \  { A } ) )
1513, 14syl 15 . . . . . . . . 9  |-  ( A  e.  om  ->  A  =  ( suc  A  \  { A } ) )
1615imaeq2d 5028 . . . . . . . 8  |-  ( A  e.  om  ->  (
f " A )  =  ( f "
( suc  A  \  { A } ) ) )
17 f1ofn 5489 . . . . . . . . . . 11  |-  ( f : suc  A -1-1-onto-> suc  B  ->  f  Fn  suc  A
)
187sucid 4487 . . . . . . . . . . 11  |-  A  e. 
suc  A
19 fnsnfv 5598 . . . . . . . . . . 11  |-  ( ( f  Fn  suc  A  /\  A  e.  suc  A )  ->  { (
f `  A ) }  =  ( f " { A } ) )
2017, 18, 19sylancl 643 . . . . . . . . . 10  |-  ( f : suc  A -1-1-onto-> suc  B  ->  { ( f `  A ) }  =  ( f " { A } ) )
2120difeq2d 3307 . . . . . . . . 9  |-  ( f : suc  A -1-1-onto-> suc  B  ->  ( ( f " suc  A )  \  {
( f `  A
) } )  =  ( ( f " suc  A )  \  (
f " { A } ) ) )
22 imadmrn 5040 . . . . . . . . . . . 12  |-  ( f
" dom  f )  =  ran  f
2322eqcomi 2300 . . . . . . . . . . 11  |-  ran  f  =  ( f " dom  f )
24 f1ofo 5495 . . . . . . . . . . . 12  |-  ( f : suc  A -1-1-onto-> suc  B  ->  f : suc  A -onto-> suc  B )
25 forn 5470 . . . . . . . . . . . 12  |-  ( f : suc  A -onto-> suc  B  ->  ran  f  =  suc  B )
2624, 25syl 15 . . . . . . . . . . 11  |-  ( f : suc  A -1-1-onto-> suc  B  ->  ran  f  =  suc  B )
27 f1odm 5492 . . . . . . . . . . . 12  |-  ( f : suc  A -1-1-onto-> suc  B  ->  dom  f  =  suc  A )
2827imaeq2d 5028 . . . . . . . . . . 11  |-  ( f : suc  A -1-1-onto-> suc  B  ->  ( f " dom  f )  =  ( f " suc  A
) )
2923, 26, 283eqtr3a 2352 . . . . . . . . . 10  |-  ( f : suc  A -1-1-onto-> suc  B  ->  suc  B  =  ( f " suc  A
) )
3029difeq1d 3306 . . . . . . . . 9  |-  ( f : suc  A -1-1-onto-> suc  B  ->  ( suc  B  \  { ( f `  A ) } )  =  ( ( f
" suc  A )  \  { ( f `  A ) } ) )
31 dff1o3 5494 . . . . . . . . . . 11  |-  ( f : suc  A -1-1-onto-> suc  B  <->  ( f : suc  A -onto-> suc  B  /\  Fun  `' f ) )
3231simprbi 450 . . . . . . . . . 10  |-  ( f : suc  A -1-1-onto-> suc  B  ->  Fun  `' f )
33 imadif 5343 . . . . . . . . . 10  |-  ( Fun  `' f  ->  ( f
" ( suc  A  \  { A } ) )  =  ( ( f " suc  A
)  \  ( f " { A } ) ) )
3432, 33syl 15 . . . . . . . . 9  |-  ( f : suc  A -1-1-onto-> suc  B  ->  ( f " ( suc  A  \  { A } ) )  =  ( ( f " suc  A )  \  (
f " { A } ) ) )
3521, 30, 343eqtr4rd 2339 . . . . . . . 8  |-  ( f : suc  A -1-1-onto-> suc  B  ->  ( f " ( suc  A  \  { A } ) )  =  ( suc  B  \  { ( f `  A ) } ) )
3616, 35sylan9eq 2348 . . . . . . 7  |-  ( ( A  e.  om  /\  f : suc  A -1-1-onto-> suc  B
)  ->  ( f " A )  =  ( suc  B  \  {
( f `  A
) } ) )
3712, 36breqtrd 4063 . . . . . 6  |-  ( ( A  e.  om  /\  f : suc  A -1-1-onto-> suc  B
)  ->  A  ~~  ( suc  B  \  {
( f `  A
) } ) )
38 fnfvelrn 5678 . . . . . . . . . 10  |-  ( ( f  Fn  suc  A  /\  A  e.  suc  A )  ->  ( f `  A )  e.  ran  f )
3917, 18, 38sylancl 643 . . . . . . . . 9  |-  ( f : suc  A -1-1-onto-> suc  B  ->  ( f `  A
)  e.  ran  f
)
4025eleq2d 2363 . . . . . . . . . 10  |-  ( f : suc  A -onto-> suc  B  ->  ( ( f `
 A )  e. 
ran  f  <->  ( f `  A )  e.  suc  B ) )
4124, 40syl 15 . . . . . . . . 9  |-  ( f : suc  A -1-1-onto-> suc  B  ->  ( ( f `  A )  e.  ran  f 
<->  ( f `  A
)  e.  suc  B
) )
4239, 41mpbid 201 . . . . . . . 8  |-  ( f : suc  A -1-1-onto-> suc  B  ->  ( f `  A
)  e.  suc  B
)
43 fvex 5555 . . . . . . . . 9  |-  ( f `
 A )  e. 
_V
444, 43phplem3 7058 . . . . . . . 8  |-  ( ( B  e.  om  /\  ( f `  A
)  e.  suc  B
)  ->  B  ~~  ( suc  B  \  {
( f `  A
) } ) )
4542, 44sylan2 460 . . . . . . 7  |-  ( ( B  e.  om  /\  f : suc  A -1-1-onto-> suc  B
)  ->  B  ~~  ( suc  B  \  {
( f `  A
) } ) )
46 ensym 6926 . . . . . . 7  |-  ( B 
~~  ( suc  B  \  { ( f `  A ) } )  ->  ( suc  B  \  { ( f `  A ) } ) 
~~  B )
4745, 46syl 15 . . . . . 6  |-  ( ( B  e.  om  /\  f : suc  A -1-1-onto-> suc  B
)  ->  ( suc  B 
\  { ( f `
 A ) } )  ~~  B )
48 entr 6929 . . . . . 6  |-  ( ( A  ~~  ( suc 
B  \  { (
f `  A ) } )  /\  ( suc  B  \  { ( f `  A ) } )  ~~  B
)  ->  A  ~~  B )
4937, 47, 48syl2an 463 . . . . 5  |-  ( ( ( A  e.  om  /\  f : suc  A -1-1-onto-> suc  B )  /\  ( B  e.  om  /\  f : suc  A -1-1-onto-> suc  B ) )  ->  A  ~~  B
)
5049anandirs 804 . . . 4  |-  ( ( ( A  e.  om  /\  B  e.  om )  /\  f : suc  A -1-1-onto-> suc  B )  ->  A  ~~  B )
5150ex 423 . . 3  |-  ( ( A  e.  om  /\  B  e.  om )  ->  ( f : suc  A -1-1-onto-> suc 
B  ->  A  ~~  B ) )
5251exlimdv 1626 . 2  |-  ( ( A  e.  om  /\  B  e.  om )  ->  ( E. f  f : suc  A -1-1-onto-> suc  B  ->  A  ~~  B ) )
531, 52syl5bi 208 1  |-  ( ( A  e.  om  /\  B  e.  om )  ->  ( suc  A  ~~  suc  B  ->  A  ~~  B ) )
Colors of variables: wff set class
Syntax hints:    -> wi 4    <-> wb 176    /\ wa 358   E.wex 1531    = wceq 1632    e. wcel 1696   _Vcvv 2801    \ cdif 3162    C_ wss 3165   {csn 3653   class class class wbr 4039   Ord word 4407   suc csuc 4410   omcom 4672   `'ccnv 4704   dom cdm 4705   ran crn 4706   "cima 4708   Fun wfun 5265    Fn wfn 5266   -1-1->wf1 5268   -onto->wfo 5269   -1-1-onto->wf1o 5270   ` cfv 5271    ~~ cen 6876
This theorem is referenced by:  nneneq  7060
This theorem was proved from axioms:  ax-1 5  ax-2 6  ax-3 7  ax-mp 8  ax-gen 1536  ax-5 1547  ax-17 1606  ax-9 1644  ax-8 1661  ax-13 1698  ax-14 1700  ax-6 1715  ax-7 1720  ax-11 1727  ax-12 1878  ax-ext 2277  ax-sep 4157  ax-nul 4165  ax-pow 4204  ax-pr 4230  ax-un 4528
This theorem depends on definitions:  df-bi 177  df-or 359  df-an 360  df-3or 935  df-3an 936  df-tru 1310  df-ex 1532  df-nf 1535  df-sb 1639  df-eu 2160  df-mo 2161  df-clab 2283  df-cleq 2289  df-clel 2292  df-nfc 2421  df-ne 2461  df-ral 2561  df-rex 2562  df-rab 2565  df-v 2803  df-sbc 3005  df-dif 3168  df-un 3170  df-in 3172  df-ss 3179  df-pss 3181  df-nul 3469  df-if 3579  df-pw 3640  df-sn 3659  df-pr 3660  df-tp 3661  df-op 3662  df-uni 3844  df-br 4040  df-opab 4094  df-tr 4130  df-eprel 4321  df-id 4325  df-po 4330  df-so 4331  df-fr 4368  df-we 4370  df-ord 4411  df-on 4412  df-lim 4413  df-suc 4414  df-om 4673  df-xp 4711  df-rel 4712  df-cnv 4713  df-co 4714  df-dm 4715  df-rn 4716  df-res 4717  df-ima 4718  df-iota 5235  df-fun 5273  df-fn 5274  df-f 5275  df-f1 5276  df-fo 5277  df-f1o 5278  df-fv 5279  df-er 6676  df-en 6880
  Copyright terms: Public domain W3C validator