Users' Mathboxes Mathbox for Stefan O'Rear < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >   Mathboxes  >  fphpd Unicode version

Theorem fphpd 26899
Description: Pigeonhole principle expressed with implicit substitution. If the range is smaller than the domain, two inputs must be mapped to the same output. (Contributed by Stefan O'Rear, 19-Oct-2014.) (Revised by Stefan O'Rear, 6-May-2015.)
Hypotheses
Ref Expression
fphpd.a  |-  ( ph  ->  B  ~<  A )
fphpd.b  |-  ( (
ph  /\  x  e.  A )  ->  C  e.  B )
fphpd.c  |-  ( x  =  y  ->  C  =  D )
Assertion
Ref Expression
fphpd  |-  ( ph  ->  E. x  e.  A  E. y  e.  A  ( x  =/=  y  /\  C  =  D
) )
Distinct variable groups:    x, A, y    x, B, y    y, C    x, D    ph, x, y
Allowed substitution hints:    C( x)    D( y)

Proof of Theorem fphpd
Dummy variables  a 
b are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 domnsym 6987 . . . 4  |-  ( A  ~<_  B  ->  -.  B  ~<  A )
2 fphpd.a . . . 4  |-  ( ph  ->  B  ~<  A )
31, 2nsyl3 111 . . 3  |-  ( ph  ->  -.  A  ~<_  B )
4 relsdom 6870 . . . . . . 7  |-  Rel  ~<
54brrelexi 4729 . . . . . 6  |-  ( B 
~<  A  ->  B  e. 
_V )
62, 5syl 15 . . . . 5  |-  ( ph  ->  B  e.  _V )
76adantr 451 . . . 4  |-  ( (
ph  /\  A. x  e.  A  A. y  e.  A  ( C  =  D  ->  x  =  y ) )  ->  B  e.  _V )
8 nfv 1605 . . . . . . . . 9  |-  F/ x
( ph  /\  a  e.  A )
9 nfcsb1v 3113 . . . . . . . . . 10  |-  F/_ x [_ a  /  x ]_ C
109nfel1 2429 . . . . . . . . 9  |-  F/ x [_ a  /  x ]_ C  e.  B
118, 10nfim 1769 . . . . . . . 8  |-  F/ x
( ( ph  /\  a  e.  A )  ->  [_ a  /  x ]_ C  e.  B
)
12 eleq1 2343 . . . . . . . . . 10  |-  ( x  =  a  ->  (
x  e.  A  <->  a  e.  A ) )
1312anbi2d 684 . . . . . . . . 9  |-  ( x  =  a  ->  (
( ph  /\  x  e.  A )  <->  ( ph  /\  a  e.  A ) ) )
14 csbeq1a 3089 . . . . . . . . . 10  |-  ( x  =  a  ->  C  =  [_ a  /  x ]_ C )
1514eleq1d 2349 . . . . . . . . 9  |-  ( x  =  a  ->  ( C  e.  B  <->  [_ a  /  x ]_ C  e.  B
) )
1613, 15imbi12d 311 . . . . . . . 8  |-  ( x  =  a  ->  (
( ( ph  /\  x  e.  A )  ->  C  e.  B )  <-> 
( ( ph  /\  a  e.  A )  ->  [_ a  /  x ]_ C  e.  B
) ) )
17 fphpd.b . . . . . . . 8  |-  ( (
ph  /\  x  e.  A )  ->  C  e.  B )
1811, 16, 17chvar 1926 . . . . . . 7  |-  ( (
ph  /\  a  e.  A )  ->  [_ a  /  x ]_ C  e.  B )
1918ex 423 . . . . . 6  |-  ( ph  ->  ( a  e.  A  ->  [_ a  /  x ]_ C  e.  B
) )
2019adantr 451 . . . . 5  |-  ( (
ph  /\  A. x  e.  A  A. y  e.  A  ( C  =  D  ->  x  =  y ) )  -> 
( a  e.  A  ->  [_ a  /  x ]_ C  e.  B
) )
21 csbid 3088 . . . . . . . . . . 11  |-  [_ x  /  x ]_ C  =  C
22 vex 2791 . . . . . . . . . . . 12  |-  y  e. 
_V
23 nfcv 2419 . . . . . . . . . . . 12  |-  F/_ x D
24 fphpd.c . . . . . . . . . . . 12  |-  ( x  =  y  ->  C  =  D )
2522, 23, 24csbief 3122 . . . . . . . . . . 11  |-  [_ y  /  x ]_ C  =  D
2621, 25eqeq12i 2296 . . . . . . . . . 10  |-  ( [_ x  /  x ]_ C  =  [_ y  /  x ]_ C  <->  C  =  D
)
2726imbi1i 315 . . . . . . . . 9  |-  ( (
[_ x  /  x ]_ C  =  [_ y  /  x ]_ C  ->  x  =  y )  <->  ( C  =  D  ->  x  =  y )
)
28272ralbii 2569 . . . . . . . 8  |-  ( A. x  e.  A  A. y  e.  A  ( [_ x  /  x ]_ C  =  [_ y  /  x ]_ C  ->  x  =  y )  <->  A. x  e.  A  A. y  e.  A  ( C  =  D  ->  x  =  y ) )
29 nfcsb1v 3113 . . . . . . . . . . . 12  |-  F/_ x [_ y  /  x ]_ C
309, 29nfeq 2426 . . . . . . . . . . 11  |-  F/ x [_ a  /  x ]_ C  =  [_ y  /  x ]_ C
31 nfv 1605 . . . . . . . . . . 11  |-  F/ x  a  =  y
3230, 31nfim 1769 . . . . . . . . . 10  |-  F/ x
( [_ a  /  x ]_ C  =  [_ y  /  x ]_ C  -> 
a  =  y )
33 nfv 1605 . . . . . . . . . 10  |-  F/ y ( [_ a  /  x ]_ C  =  [_ b  /  x ]_ C  ->  a  =  b )
34 csbeq1 3084 . . . . . . . . . . . 12  |-  ( x  =  a  ->  [_ x  /  x ]_ C  = 
[_ a  /  x ]_ C )
3534eqeq1d 2291 . . . . . . . . . . 11  |-  ( x  =  a  ->  ( [_ x  /  x ]_ C  =  [_ y  /  x ]_ C  <->  [_ a  /  x ]_ C  =  [_ y  /  x ]_ C
) )
36 equequ1 1648 . . . . . . . . . . 11  |-  ( x  =  a  ->  (
x  =  y  <->  a  =  y ) )
3735, 36imbi12d 311 . . . . . . . . . 10  |-  ( x  =  a  ->  (
( [_ x  /  x ]_ C  =  [_ y  /  x ]_ C  ->  x  =  y )  <->  (
[_ a  /  x ]_ C  =  [_ y  /  x ]_ C  -> 
a  =  y ) ) )
38 csbeq1 3084 . . . . . . . . . . . 12  |-  ( y  =  b  ->  [_ y  /  x ]_ C  = 
[_ b  /  x ]_ C )
3938eqeq2d 2294 . . . . . . . . . . 11  |-  ( y  =  b  ->  ( [_ a  /  x ]_ C  =  [_ y  /  x ]_ C  <->  [_ a  /  x ]_ C  =  [_ b  /  x ]_ C
) )
40 equequ2 1649 . . . . . . . . . . 11  |-  ( y  =  b  ->  (
a  =  y  <->  a  =  b ) )
4139, 40imbi12d 311 . . . . . . . . . 10  |-  ( y  =  b  ->  (
( [_ a  /  x ]_ C  =  [_ y  /  x ]_ C  -> 
a  =  y )  <-> 
( [_ a  /  x ]_ C  =  [_ b  /  x ]_ C  -> 
a  =  b ) ) )
4232, 33, 37, 41rspc2 2889 . . . . . . . . 9  |-  ( ( a  e.  A  /\  b  e.  A )  ->  ( A. x  e.  A  A. y  e.  A  ( [_ x  /  x ]_ C  = 
[_ y  /  x ]_ C  ->  x  =  y )  ->  ( [_ a  /  x ]_ C  =  [_ b  /  x ]_ C  -> 
a  =  b ) ) )
4342com12 27 . . . . . . . 8  |-  ( A. x  e.  A  A. y  e.  A  ( [_ x  /  x ]_ C  =  [_ y  /  x ]_ C  ->  x  =  y )  ->  ( ( a  e.  A  /\  b  e.  A )  ->  ( [_ a  /  x ]_ C  =  [_ b  /  x ]_ C  -> 
a  =  b ) ) )
4428, 43sylbir 204 . . . . . . 7  |-  ( A. x  e.  A  A. y  e.  A  ( C  =  D  ->  x  =  y )  -> 
( ( a  e.  A  /\  b  e.  A )  ->  ( [_ a  /  x ]_ C  =  [_ b  /  x ]_ C  -> 
a  =  b ) ) )
45 id 19 . . . . . . . 8  |-  ( (
[_ a  /  x ]_ C  =  [_ b  /  x ]_ C  -> 
a  =  b )  ->  ( [_ a  /  x ]_ C  = 
[_ b  /  x ]_ C  ->  a  =  b ) )
46 csbeq1 3084 . . . . . . . 8  |-  ( a  =  b  ->  [_ a  /  x ]_ C  = 
[_ b  /  x ]_ C )
4745, 46impbid1 194 . . . . . . 7  |-  ( (
[_ a  /  x ]_ C  =  [_ b  /  x ]_ C  -> 
a  =  b )  ->  ( [_ a  /  x ]_ C  = 
[_ b  /  x ]_ C  <->  a  =  b ) )
4844, 47syl6 29 . . . . . 6  |-  ( A. x  e.  A  A. y  e.  A  ( C  =  D  ->  x  =  y )  -> 
( ( a  e.  A  /\  b  e.  A )  ->  ( [_ a  /  x ]_ C  =  [_ b  /  x ]_ C  <->  a  =  b ) ) )
4948adantl 452 . . . . 5  |-  ( (
ph  /\  A. x  e.  A  A. y  e.  A  ( C  =  D  ->  x  =  y ) )  -> 
( ( a  e.  A  /\  b  e.  A )  ->  ( [_ a  /  x ]_ C  =  [_ b  /  x ]_ C  <->  a  =  b ) ) )
5020, 49dom2d 6902 . . . 4  |-  ( (
ph  /\  A. x  e.  A  A. y  e.  A  ( C  =  D  ->  x  =  y ) )  -> 
( B  e.  _V  ->  A  ~<_  B ) )
517, 50mpd 14 . . 3  |-  ( (
ph  /\  A. x  e.  A  A. y  e.  A  ( C  =  D  ->  x  =  y ) )  ->  A  ~<_  B )
523, 51mtand 640 . 2  |-  ( ph  ->  -.  A. x  e.  A  A. y  e.  A  ( C  =  D  ->  x  =  y ) )
53 ancom 437 . . . . . . 7  |-  ( ( -.  x  =  y  /\  C  =  D )  <->  ( C  =  D  /\  -.  x  =  y ) )
54 df-ne 2448 . . . . . . . 8  |-  ( x  =/=  y  <->  -.  x  =  y )
5554anbi1i 676 . . . . . . 7  |-  ( ( x  =/=  y  /\  C  =  D )  <->  ( -.  x  =  y  /\  C  =  D ) )
56 pm4.61 415 . . . . . . 7  |-  ( -.  ( C  =  D  ->  x  =  y )  <->  ( C  =  D  /\  -.  x  =  y ) )
5753, 55, 563bitr4i 268 . . . . . 6  |-  ( ( x  =/=  y  /\  C  =  D )  <->  -.  ( C  =  D  ->  x  =  y ) )
5857rexbii 2568 . . . . 5  |-  ( E. y  e.  A  ( x  =/=  y  /\  C  =  D )  <->  E. y  e.  A  -.  ( C  =  D  ->  x  =  y ) )
59 rexnal 2554 . . . . 5  |-  ( E. y  e.  A  -.  ( C  =  D  ->  x  =  y )  <->  -.  A. y  e.  A  ( C  =  D  ->  x  =  y ) )
6058, 59bitri 240 . . . 4  |-  ( E. y  e.  A  ( x  =/=  y  /\  C  =  D )  <->  -. 
A. y  e.  A  ( C  =  D  ->  x  =  y ) )
6160rexbii 2568 . . 3  |-  ( E. x  e.  A  E. y  e.  A  (
x  =/=  y  /\  C  =  D )  <->  E. x  e.  A  -.  A. y  e.  A  ( C  =  D  ->  x  =  y )
)
62 rexnal 2554 . . 3  |-  ( E. x  e.  A  -.  A. y  e.  A  ( C  =  D  ->  x  =  y )  <->  -. 
A. x  e.  A  A. y  e.  A  ( C  =  D  ->  x  =  y ) )
6361, 62bitri 240 . 2  |-  ( E. x  e.  A  E. y  e.  A  (
x  =/=  y  /\  C  =  D )  <->  -. 
A. x  e.  A  A. y  e.  A  ( C  =  D  ->  x  =  y ) )
6452, 63sylibr 203 1  |-  ( ph  ->  E. x  e.  A  E. y  e.  A  ( x  =/=  y  /\  C  =  D
) )
Colors of variables: wff set class
Syntax hints:   -. wn 3    -> wi 4    <-> wb 176    /\ wa 358    = wceq 1623    e. wcel 1684    =/= wne 2446   A.wral 2543   E.wrex 2544   _Vcvv 2788   [_csb 3081   class class class wbr 4023    ~<_ cdom 6861    ~< csdm 6862
This theorem is referenced by:  fphpdo  26900  pellex  26920
This theorem was proved from axioms:  ax-1 5  ax-2 6  ax-3 7  ax-mp 8  ax-gen 1533  ax-5 1544  ax-17 1603  ax-9 1635  ax-8 1643  ax-13 1686  ax-14 1688  ax-6 1703  ax-7 1708  ax-11 1715  ax-12 1866  ax-ext 2264  ax-rep 4131  ax-sep 4141  ax-nul 4149  ax-pow 4188  ax-pr 4214  ax-un 4512
This theorem depends on definitions:  df-bi 177  df-or 359  df-an 360  df-3an 936  df-tru 1310  df-ex 1529  df-nf 1532  df-sb 1630  df-eu 2147  df-mo 2148  df-clab 2270  df-cleq 2276  df-clel 2279  df-nfc 2408  df-ne 2448  df-ral 2548  df-rex 2549  df-reu 2550  df-rab 2552  df-v 2790  df-sbc 2992  df-csb 3082  df-dif 3155  df-un 3157  df-in 3159  df-ss 3166  df-nul 3456  df-if 3566  df-pw 3627  df-sn 3646  df-pr 3647  df-op 3649  df-uni 3828  df-iun 3907  df-br 4024  df-opab 4078  df-mpt 4079  df-id 4309  df-xp 4695  df-rel 4696  df-cnv 4697  df-co 4698  df-dm 4699  df-rn 4700  df-res 4701  df-ima 4702  df-iota 5219  df-fun 5257  df-fn 5258  df-f 5259  df-f1 5260  df-fo 5261  df-f1o 5262  df-fv 5263  df-er 6660  df-en 6864  df-dom 6865  df-sdom 6866
  Copyright terms: Public domain W3C validator