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

Theorem opbrop 4955
Description: Ordered pair membership in a relation. Special case. (Contributed by NM, 5-Aug-1995.)
Hypotheses
Ref Expression
opbrop.1  |-  ( ( ( z  =  A  /\  w  =  B )  /\  ( v  =  C  /\  u  =  D ) )  -> 
( ph  <->  ps ) )
opbrop.2  |-  R  =  { <. x ,  y
>.  |  ( (
x  e.  ( S  X.  S )  /\  y  e.  ( S  X.  S ) )  /\  E. z E. w E. v E. u ( ( x  =  <. z ,  w >.  /\  y  =  <. v ,  u >. )  /\  ph )
) }
Assertion
Ref Expression
opbrop  |-  ( ( ( A  e.  S  /\  B  e.  S
)  /\  ( C  e.  S  /\  D  e.  S ) )  -> 
( <. A ,  B >. R <. C ,  D >.  <->  ps ) )
Distinct variable groups:    x, y,
z, w, v, u, A    x, B, y, z, w, v, u   
x, C, y, z, w, v, u    x, D, y, z, w, v, u    x, S, y, z, w, v, u    ph, x, y    ps, z, w, v, u
Allowed substitution hints:    ph( z, w, v, u)    ps( x, y)    R( x, y, z, w, v, u)

Proof of Theorem opbrop
StepHypRef Expression
1 opex 4427 . . . 4  |-  <. A ,  B >.  e.  _V
2 opex 4427 . . . 4  |-  <. C ,  D >.  e.  _V
3 eleq1 2496 . . . . . 6  |-  ( x  =  <. A ,  B >.  ->  ( x  e.  ( S  X.  S
)  <->  <. A ,  B >.  e.  ( S  X.  S ) ) )
43anbi1d 686 . . . . 5  |-  ( x  =  <. A ,  B >.  ->  ( ( x  e.  ( S  X.  S )  /\  y  e.  ( S  X.  S
) )  <->  ( <. A ,  B >.  e.  ( S  X.  S )  /\  y  e.  ( S  X.  S ) ) ) )
5 eqeq1 2442 . . . . . . . 8  |-  ( x  =  <. A ,  B >.  ->  ( x  = 
<. z ,  w >.  <->  <. A ,  B >.  =  <. z ,  w >. )
)
65anbi1d 686 . . . . . . 7  |-  ( x  =  <. A ,  B >.  ->  ( ( x  =  <. z ,  w >.  /\  y  =  <. v ,  u >. )  <->  (
<. A ,  B >.  = 
<. z ,  w >.  /\  y  =  <. v ,  u >. ) ) )
76anbi1d 686 . . . . . 6  |-  ( x  =  <. A ,  B >.  ->  ( ( ( x  =  <. z ,  w >.  /\  y  =  <. v ,  u >. )  /\  ph )  <->  ( ( <. A ,  B >.  =  <. z ,  w >.  /\  y  =  <. v ,  u >. )  /\  ph ) ) )
874exbidv 1640 . . . . 5  |-  ( x  =  <. A ,  B >.  ->  ( E. z E. w E. v E. u ( ( x  =  <. z ,  w >.  /\  y  =  <. v ,  u >. )  /\  ph )  <->  E. z E. w E. v E. u ( ( <. A ,  B >.  = 
<. z ,  w >.  /\  y  =  <. v ,  u >. )  /\  ph ) ) )
94, 8anbi12d 692 . . . 4  |-  ( x  =  <. A ,  B >.  ->  ( ( ( x  e.  ( S  X.  S )  /\  y  e.  ( S  X.  S ) )  /\  E. z E. w E. v E. u ( ( x  =  <. z ,  w >.  /\  y  =  <. v ,  u >. )  /\  ph )
)  <->  ( ( <. A ,  B >.  e.  ( S  X.  S
)  /\  y  e.  ( S  X.  S
) )  /\  E. z E. w E. v E. u ( ( <. A ,  B >.  = 
<. z ,  w >.  /\  y  =  <. v ,  u >. )  /\  ph ) ) ) )
10 eleq1 2496 . . . . . 6  |-  ( y  =  <. C ,  D >.  ->  ( y  e.  ( S  X.  S
)  <->  <. C ,  D >.  e.  ( S  X.  S ) ) )
1110anbi2d 685 . . . . 5  |-  ( y  =  <. C ,  D >.  ->  ( ( <. A ,  B >.  e.  ( S  X.  S
)  /\  y  e.  ( S  X.  S
) )  <->  ( <. A ,  B >.  e.  ( S  X.  S )  /\  <. C ,  D >.  e.  ( S  X.  S ) ) ) )
12 eqeq1 2442 . . . . . . . 8  |-  ( y  =  <. C ,  D >.  ->  ( y  = 
<. v ,  u >.  <->  <. C ,  D >.  =  <. v ,  u >. )
)
1312anbi2d 685 . . . . . . 7  |-  ( y  =  <. C ,  D >.  ->  ( ( <. A ,  B >.  = 
<. z ,  w >.  /\  y  =  <. v ,  u >. )  <->  ( <. A ,  B >.  =  <. z ,  w >.  /\  <. C ,  D >.  =  <. v ,  u >. )
) )
1413anbi1d 686 . . . . . 6  |-  ( y  =  <. C ,  D >.  ->  ( ( (
<. A ,  B >.  = 
<. z ,  w >.  /\  y  =  <. v ,  u >. )  /\  ph ) 
<->  ( ( <. A ,  B >.  =  <. z ,  w >.  /\  <. C ,  D >.  =  <. v ,  u >. )  /\  ph ) ) )
15144exbidv 1640 . . . . 5  |-  ( y  =  <. C ,  D >.  ->  ( E. z E. w E. v E. u ( ( <. A ,  B >.  = 
<. z ,  w >.  /\  y  =  <. v ,  u >. )  /\  ph ) 
<->  E. z E. w E. v E. u ( ( <. A ,  B >.  =  <. z ,  w >.  /\  <. C ,  D >.  =  <. v ,  u >. )  /\  ph )
) )
1611, 15anbi12d 692 . . . 4  |-  ( y  =  <. C ,  D >.  ->  ( ( (
<. A ,  B >.  e.  ( S  X.  S
)  /\  y  e.  ( S  X.  S
) )  /\  E. z E. w E. v E. u ( ( <. A ,  B >.  = 
<. z ,  w >.  /\  y  =  <. v ,  u >. )  /\  ph ) )  <->  ( ( <. A ,  B >.  e.  ( S  X.  S
)  /\  <. C ,  D >.  e.  ( S  X.  S ) )  /\  E. z E. w E. v E. u ( ( <. A ,  B >.  = 
<. z ,  w >.  /\ 
<. C ,  D >.  = 
<. v ,  u >. )  /\  ph ) ) ) )
17 opbrop.2 . . . 4  |-  R  =  { <. x ,  y
>.  |  ( (
x  e.  ( S  X.  S )  /\  y  e.  ( S  X.  S ) )  /\  E. z E. w E. v E. u ( ( x  =  <. z ,  w >.  /\  y  =  <. v ,  u >. )  /\  ph )
) }
181, 2, 9, 16, 17brab 4477 . . 3  |-  ( <. A ,  B >. R
<. C ,  D >.  <->  (
( <. A ,  B >.  e.  ( S  X.  S )  /\  <. C ,  D >.  e.  ( S  X.  S ) )  /\  E. z E. w E. v E. u ( ( <. A ,  B >.  = 
<. z ,  w >.  /\ 
<. C ,  D >.  = 
<. v ,  u >. )  /\  ph ) ) )
19 opbrop.1 . . . . 5  |-  ( ( ( z  =  A  /\  w  =  B )  /\  ( v  =  C  /\  u  =  D ) )  -> 
( ph  <->  ps ) )
2019copsex4g 4445 . . . 4  |-  ( ( ( A  e.  S  /\  B  e.  S
)  /\  ( C  e.  S  /\  D  e.  S ) )  -> 
( E. z E. w E. v E. u ( ( <. A ,  B >.  = 
<. z ,  w >.  /\ 
<. C ,  D >.  = 
<. v ,  u >. )  /\  ph )  <->  ps )
)
2120anbi2d 685 . . 3  |-  ( ( ( A  e.  S  /\  B  e.  S
)  /\  ( C  e.  S  /\  D  e.  S ) )  -> 
( ( ( <. A ,  B >.  e.  ( S  X.  S
)  /\  <. C ,  D >.  e.  ( S  X.  S ) )  /\  E. z E. w E. v E. u ( ( <. A ,  B >.  = 
<. z ,  w >.  /\ 
<. C ,  D >.  = 
<. v ,  u >. )  /\  ph ) )  <-> 
( ( <. A ,  B >.  e.  ( S  X.  S )  /\  <. C ,  D >.  e.  ( S  X.  S
) )  /\  ps ) ) )
2218, 21syl5bb 249 . 2  |-  ( ( ( A  e.  S  /\  B  e.  S
)  /\  ( C  e.  S  /\  D  e.  S ) )  -> 
( <. A ,  B >. R <. C ,  D >.  <-> 
( ( <. A ,  B >.  e.  ( S  X.  S )  /\  <. C ,  D >.  e.  ( S  X.  S
) )  /\  ps ) ) )
23 opelxpi 4910 . . . 4  |-  ( ( A  e.  S  /\  B  e.  S )  -> 
<. A ,  B >.  e.  ( S  X.  S
) )
24 opelxpi 4910 . . . 4  |-  ( ( C  e.  S  /\  D  e.  S )  -> 
<. C ,  D >.  e.  ( S  X.  S
) )
2523, 24anim12i 550 . . 3  |-  ( ( ( A  e.  S  /\  B  e.  S
)  /\  ( C  e.  S  /\  D  e.  S ) )  -> 
( <. A ,  B >.  e.  ( S  X.  S )  /\  <. C ,  D >.  e.  ( S  X.  S ) ) )
2625biantrurd 495 . 2  |-  ( ( ( A  e.  S  /\  B  e.  S
)  /\  ( C  e.  S  /\  D  e.  S ) )  -> 
( ps  <->  ( ( <. A ,  B >.  e.  ( S  X.  S
)  /\  <. C ,  D >.  e.  ( S  X.  S ) )  /\  ps ) ) )
2722, 26bitr4d 248 1  |-  ( ( ( A  e.  S  /\  B  e.  S
)  /\  ( C  e.  S  /\  D  e.  S ) )  -> 
( <. A ,  B >. R <. C ,  D >.  <->  ps ) )
Colors of variables: wff set class
Syntax hints:    -> wi 4    <-> wb 177    /\ wa 359   E.wex 1550    = wceq 1652    e. wcel 1725   <.cop 3817   class class class wbr 4212   {copab 4265    X. cxp 4876
This theorem is referenced by:  ecopoveq  7005  ovec  7014
This theorem was proved from axioms:  ax-1 5  ax-2 6  ax-3 7  ax-mp 8  ax-gen 1555  ax-5 1566  ax-17 1626  ax-9 1666  ax-8 1687  ax-14 1729  ax-6 1744  ax-7 1749  ax-11 1761  ax-12 1950  ax-ext 2417  ax-sep 4330  ax-nul 4338  ax-pr 4403
This theorem depends on definitions:  df-bi 178  df-or 360  df-an 361  df-3an 938  df-tru 1328  df-ex 1551  df-nf 1554  df-sb 1659  df-eu 2285  df-mo 2286  df-clab 2423  df-cleq 2429  df-clel 2432  df-nfc 2561  df-ne 2601  df-ral 2710  df-rex 2711  df-rab 2714  df-v 2958  df-dif 3323  df-un 3325  df-in 3327  df-ss 3334  df-nul 3629  df-if 3740  df-sn 3820  df-pr 3821  df-op 3823  df-br 4213  df-opab 4267  df-xp 4884
  Copyright terms: Public domain W3C validator