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

Theorem elrnmpt2res 6399
Description: Membership in the range of a restricted operation class abstraction. (Contributed by Thierry Arnoux, 25-May-2019.)
Hypothesis
Ref Expression
rngop.1  |-  F  =  ( x  e.  A ,  y  e.  B  |->  C )
Assertion
Ref Expression
elrnmpt2res  |-  ( D  e.  V  ->  ( D  e.  ran  ( F  |`  R )  <->  E. x  e.  A  E. y  e.  B  ( D  =  C  /\  x R y ) ) )
Distinct variable groups:    y, A    x, y, D    x, R, y
Allowed substitution hints:    A( x)    B( x, y)    C( x, y)    F( x, y)    V( x, y)

Proof of Theorem elrnmpt2res
Dummy variables  z  p are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 eqeq1 2471 . . . . . 6  |-  ( z  =  D  ->  (
z  =  C  <->  D  =  C ) )
21anbi1d 704 . . . . 5  |-  ( z  =  D  ->  (
( z  =  C  /\  x R y )  <->  ( D  =  C  /\  x R y ) ) )
32anbi2d 703 . . . 4  |-  ( z  =  D  ->  (
( ( x  e.  A  /\  y  e.  B )  /\  (
z  =  C  /\  x R y ) )  <-> 
( ( x  e.  A  /\  y  e.  B )  /\  ( D  =  C  /\  x R y ) ) ) )
432exbidv 1692 . . 3  |-  ( z  =  D  ->  ( E. x E. y ( ( x  e.  A  /\  y  e.  B
)  /\  ( z  =  C  /\  x R y ) )  <->  E. x E. y ( ( x  e.  A  /\  y  e.  B
)  /\  ( D  =  C  /\  x R y ) ) ) )
5 an12 795 . . . . . . . . . 10  |-  ( ( p  e.  R  /\  ( p  =  <. x ,  y >.  /\  (
( x  e.  A  /\  y  e.  B
)  /\  z  =  C ) ) )  <-> 
( p  =  <. x ,  y >.  /\  (
p  e.  R  /\  ( ( x  e.  A  /\  y  e.  B )  /\  z  =  C ) ) ) )
6 an12 795 . . . . . . . . . . . 12  |-  ( ( p  e.  R  /\  ( ( x  e.  A  /\  y  e.  B )  /\  z  =  C ) )  <->  ( (
x  e.  A  /\  y  e.  B )  /\  ( p  e.  R  /\  z  =  C
) ) )
7 ancom 450 . . . . . . . . . . . . . 14  |-  ( ( z  =  C  /\  p  e.  R )  <->  ( p  e.  R  /\  z  =  C )
)
8 eleq1 2539 . . . . . . . . . . . . . . . 16  |-  ( p  =  <. x ,  y
>.  ->  ( p  e.  R  <->  <. x ,  y
>.  e.  R ) )
9 df-br 4448 . . . . . . . . . . . . . . . 16  |-  ( x R y  <->  <. x ,  y >.  e.  R
)
108, 9syl6bbr 263 . . . . . . . . . . . . . . 15  |-  ( p  =  <. x ,  y
>.  ->  ( p  e.  R  <->  x R y ) )
1110anbi2d 703 . . . . . . . . . . . . . 14  |-  ( p  =  <. x ,  y
>.  ->  ( ( z  =  C  /\  p  e.  R )  <->  ( z  =  C  /\  x R y ) ) )
127, 11syl5bbr 259 . . . . . . . . . . . . 13  |-  ( p  =  <. x ,  y
>.  ->  ( ( p  e.  R  /\  z  =  C )  <->  ( z  =  C  /\  x R y ) ) )
1312anbi2d 703 . . . . . . . . . . . 12  |-  ( p  =  <. x ,  y
>.  ->  ( ( ( x  e.  A  /\  y  e.  B )  /\  ( p  e.  R  /\  z  =  C
) )  <->  ( (
x  e.  A  /\  y  e.  B )  /\  ( z  =  C  /\  x R y ) ) ) )
146, 13syl5bb 257 . . . . . . . . . . 11  |-  ( p  =  <. x ,  y
>.  ->  ( ( p  e.  R  /\  (
( x  e.  A  /\  y  e.  B
)  /\  z  =  C ) )  <->  ( (
x  e.  A  /\  y  e.  B )  /\  ( z  =  C  /\  x R y ) ) ) )
1514pm5.32i 637 . . . . . . . . . 10  |-  ( ( p  =  <. x ,  y >.  /\  (
p  e.  R  /\  ( ( x  e.  A  /\  y  e.  B )  /\  z  =  C ) ) )  <-> 
( p  =  <. x ,  y >.  /\  (
( x  e.  A  /\  y  e.  B
)  /\  ( z  =  C  /\  x R y ) ) ) )
165, 15bitri 249 . . . . . . . . 9  |-  ( ( p  e.  R  /\  ( p  =  <. x ,  y >.  /\  (
( x  e.  A  /\  y  e.  B
)  /\  z  =  C ) ) )  <-> 
( p  =  <. x ,  y >.  /\  (
( x  e.  A  /\  y  e.  B
)  /\  ( z  =  C  /\  x R y ) ) ) )
17162exbii 1645 . . . . . . . 8  |-  ( E. x E. y ( p  e.  R  /\  ( p  =  <. x ,  y >.  /\  (
( x  e.  A  /\  y  e.  B
)  /\  z  =  C ) ) )  <->  E. x E. y ( p  =  <. x ,  y >.  /\  (
( x  e.  A  /\  y  e.  B
)  /\  ( z  =  C  /\  x R y ) ) ) )
18 19.42vv 1951 . . . . . . . 8  |-  ( E. x E. y ( p  e.  R  /\  ( p  =  <. x ,  y >.  /\  (
( x  e.  A  /\  y  e.  B
)  /\  z  =  C ) ) )  <-> 
( p  e.  R  /\  E. x E. y
( p  =  <. x ,  y >.  /\  (
( x  e.  A  /\  y  e.  B
)  /\  z  =  C ) ) ) )
1917, 18bitr3i 251 . . . . . . 7  |-  ( E. x E. y ( p  =  <. x ,  y >.  /\  (
( x  e.  A  /\  y  e.  B
)  /\  ( z  =  C  /\  x R y ) ) )  <->  ( p  e.  R  /\  E. x E. y ( p  = 
<. x ,  y >.  /\  ( ( x  e.  A  /\  y  e.  B )  /\  z  =  C ) ) ) )
2019opabbii 4511 . . . . . 6  |-  { <. p ,  z >.  |  E. x E. y ( p  =  <. x ,  y
>.  /\  ( ( x  e.  A  /\  y  e.  B )  /\  (
z  =  C  /\  x R y ) ) ) }  =  { <. p ,  z >.  |  ( p  e.  R  /\  E. x E. y ( p  = 
<. x ,  y >.  /\  ( ( x  e.  A  /\  y  e.  B )  /\  z  =  C ) ) ) }
21 dfoprab2 6326 . . . . . 6  |-  { <. <.
x ,  y >. ,  z >.  |  ( ( x  e.  A  /\  y  e.  B
)  /\  ( z  =  C  /\  x R y ) ) }  =  { <. p ,  z >.  |  E. x E. y ( p  =  <. x ,  y
>.  /\  ( ( x  e.  A  /\  y  e.  B )  /\  (
z  =  C  /\  x R y ) ) ) }
22 rngop.1 . . . . . . . . 9  |-  F  =  ( x  e.  A ,  y  e.  B  |->  C )
23 df-mpt2 6288 . . . . . . . . 9  |-  ( x  e.  A ,  y  e.  B  |->  C )  =  { <. <. x ,  y >. ,  z
>.  |  ( (
x  e.  A  /\  y  e.  B )  /\  z  =  C
) }
24 dfoprab2 6326 . . . . . . . . 9  |-  { <. <.
x ,  y >. ,  z >.  |  ( ( x  e.  A  /\  y  e.  B
)  /\  z  =  C ) }  =  { <. p ,  z
>.  |  E. x E. y ( p  = 
<. x ,  y >.  /\  ( ( x  e.  A  /\  y  e.  B )  /\  z  =  C ) ) }
2522, 23, 243eqtri 2500 . . . . . . . 8  |-  F  =  { <. p ,  z
>.  |  E. x E. y ( p  = 
<. x ,  y >.  /\  ( ( x  e.  A  /\  y  e.  B )  /\  z  =  C ) ) }
2625reseq1i 5268 . . . . . . 7  |-  ( F  |`  R )  =  ( { <. p ,  z
>.  |  E. x E. y ( p  = 
<. x ,  y >.  /\  ( ( x  e.  A  /\  y  e.  B )  /\  z  =  C ) ) }  |`  R )
27 resopab 5319 . . . . . . 7  |-  ( {
<. p ,  z >.  |  E. x E. y
( p  =  <. x ,  y >.  /\  (
( x  e.  A  /\  y  e.  B
)  /\  z  =  C ) ) }  |`  R )  =  { <. p ,  z >.  |  ( p  e.  R  /\  E. x E. y ( p  = 
<. x ,  y >.  /\  ( ( x  e.  A  /\  y  e.  B )  /\  z  =  C ) ) ) }
2826, 27eqtri 2496 . . . . . 6  |-  ( F  |`  R )  =  { <. p ,  z >.  |  ( p  e.  R  /\  E. x E. y ( p  = 
<. x ,  y >.  /\  ( ( x  e.  A  /\  y  e.  B )  /\  z  =  C ) ) ) }
2920, 21, 283eqtr4ri 2507 . . . . 5  |-  ( F  |`  R )  =  { <. <. x ,  y
>. ,  z >.  |  ( ( x  e.  A  /\  y  e.  B )  /\  (
z  =  C  /\  x R y ) ) }
3029rneqi 5228 . . . 4  |-  ran  ( F  |`  R )  =  ran  { <. <. x ,  y >. ,  z
>.  |  ( (
x  e.  A  /\  y  e.  B )  /\  ( z  =  C  /\  x R y ) ) }
31 rnoprab 6368 . . . 4  |-  ran  { <. <. x ,  y
>. ,  z >.  |  ( ( x  e.  A  /\  y  e.  B )  /\  (
z  =  C  /\  x R y ) ) }  =  { z  |  E. x E. y ( ( x  e.  A  /\  y  e.  B )  /\  (
z  =  C  /\  x R y ) ) }
3230, 31eqtri 2496 . . 3  |-  ran  ( F  |`  R )  =  { z  |  E. x E. y ( ( x  e.  A  /\  y  e.  B )  /\  ( z  =  C  /\  x R y ) ) }
334, 32elab2g 3252 . 2  |-  ( D  e.  V  ->  ( D  e.  ran  ( F  |`  R )  <->  E. x E. y ( ( x  e.  A  /\  y  e.  B )  /\  ( D  =  C  /\  x R y ) ) ) )
34 r2ex 2985 . 2  |-  ( E. x  e.  A  E. y  e.  B  ( D  =  C  /\  x R y )  <->  E. x E. y ( ( x  e.  A  /\  y  e.  B )  /\  ( D  =  C  /\  x R y ) ) )
3533, 34syl6bbr 263 1  |-  ( D  e.  V  ->  ( D  e.  ran  ( F  |`  R )  <->  E. x  e.  A  E. y  e.  B  ( D  =  C  /\  x R y ) ) )
Colors of variables: wff setvar class
Syntax hints:    -> wi 4    <-> wb 184    /\ wa 369    = wceq 1379   E.wex 1596    e. wcel 1767   {cab 2452   E.wrex 2815   <.cop 4033   class class class wbr 4447   {copab 4504   ran crn 5000    |` cres 5001   {coprab 6284    |-> cmpt2 6285
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1601  ax-4 1612  ax-5 1680  ax-6 1719  ax-7 1739  ax-9 1771  ax-10 1786  ax-11 1791  ax-12 1803  ax-13 1968  ax-ext 2445  ax-sep 4568  ax-nul 4576  ax-pr 4686
This theorem depends on definitions:  df-bi 185  df-or 370  df-an 371  df-3an 975  df-tru 1382  df-ex 1597  df-nf 1600  df-sb 1712  df-eu 2279  df-mo 2280  df-clab 2453  df-cleq 2459  df-clel 2462  df-nfc 2617  df-ne 2664  df-ral 2819  df-rex 2820  df-rab 2823  df-v 3115  df-dif 3479  df-un 3481  df-in 3483  df-ss 3490  df-nul 3786  df-if 3940  df-sn 4028  df-pr 4030  df-op 4034  df-br 4448  df-opab 4506  df-xp 5005  df-rel 5006  df-cnv 5007  df-dm 5009  df-rn 5010  df-res 5011  df-oprab 6287  df-mpt2 6288
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator