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

Theorem opiota 6654
Description: The property of a uniquely specified ordered pair. The proof uses properties of the  iota description binder. (Contributed by Mario Carneiro, 21-May-2015.)
Hypotheses
Ref Expression
opiota.1  |-  I  =  ( iota z E. x  e.  A  E. y  e.  B  (
z  =  <. x ,  y >.  /\  ph ) )
opiota.2  |-  X  =  ( 1st `  I
)
opiota.3  |-  Y  =  ( 2nd `  I
)
opiota.4  |-  ( x  =  C  ->  ( ph 
<->  ps ) )
opiota.5  |-  ( y  =  D  ->  ( ps 
<->  ch ) )
Assertion
Ref Expression
opiota  |-  ( E! z E. x  e.  A  E. y  e.  B  ( z  = 
<. x ,  y >.  /\  ph )  ->  (
( C  e.  A  /\  D  e.  B  /\  ch )  <->  ( C  =  X  /\  D  =  Y ) ) )
Distinct variable groups:    x, y,
z, A    x, B, y, z    x, C, y, z    ch, y    ph, z    x, D, y, z    ps, x
Allowed substitution hints:    ph( x, y)    ps( y, z)    ch( x, z)    I( x, y, z)    X( x, y, z)    Y( x, y, z)

Proof of Theorem opiota
StepHypRef Expression
1 opiota.4 . . . . . . 7  |-  ( x  =  C  ->  ( ph 
<->  ps ) )
2 opiota.5 . . . . . . 7  |-  ( y  =  D  ->  ( ps 
<->  ch ) )
31, 2ceqsrex2v 3116 . . . . . 6  |-  ( ( C  e.  A  /\  D  e.  B )  ->  ( E. x  e.  A  E. y  e.  B  ( ( x  =  C  /\  y  =  D )  /\  ph ) 
<->  ch ) )
43bicomd 201 . . . . 5  |-  ( ( C  e.  A  /\  D  e.  B )  ->  ( ch  <->  E. x  e.  A  E. y  e.  B  ( (
x  =  C  /\  y  =  D )  /\  ph ) ) )
5 opex 4577 . . . . . . . 8  |-  <. C ,  D >.  e.  _V
65a1i 11 . . . . . . 7  |-  ( E! z E. x  e.  A  E. y  e.  B  ( z  = 
<. x ,  y >.  /\  ph )  ->  <. C ,  D >.  e.  _V )
7 id 22 . . . . . . 7  |-  ( E! z E. x  e.  A  E. y  e.  B  ( z  = 
<. x ,  y >.  /\  ph )  ->  E! z E. x  e.  A  E. y  e.  B  ( z  =  <. x ,  y >.  /\  ph ) )
8 eqeq1 2449 . . . . . . . . . . 11  |-  ( z  =  <. C ,  D >.  ->  ( z  = 
<. x ,  y >.  <->  <. C ,  D >.  = 
<. x ,  y >.
) )
9 eqcom 2445 . . . . . . . . . . . 12  |-  ( <. C ,  D >.  = 
<. x ,  y >.  <->  <.
x ,  y >.  =  <. C ,  D >. )
10 vex 2996 . . . . . . . . . . . . 13  |-  x  e. 
_V
11 vex 2996 . . . . . . . . . . . . 13  |-  y  e. 
_V
1210, 11opth 4587 . . . . . . . . . . . 12  |-  ( <.
x ,  y >.  =  <. C ,  D >.  <-> 
( x  =  C  /\  y  =  D ) )
139, 12bitri 249 . . . . . . . . . . 11  |-  ( <. C ,  D >.  = 
<. x ,  y >.  <->  ( x  =  C  /\  y  =  D )
)
148, 13syl6bb 261 . . . . . . . . . 10  |-  ( z  =  <. C ,  D >.  ->  ( z  = 
<. x ,  y >.  <->  ( x  =  C  /\  y  =  D )
) )
1514anbi1d 704 . . . . . . . . 9  |-  ( z  =  <. C ,  D >.  ->  ( ( z  =  <. x ,  y
>.  /\  ph )  <->  ( (
x  =  C  /\  y  =  D )  /\  ph ) ) )
16152rexbidv 2779 . . . . . . . 8  |-  ( z  =  <. C ,  D >.  ->  ( E. x  e.  A  E. y  e.  B  ( z  =  <. x ,  y
>.  /\  ph )  <->  E. x  e.  A  E. y  e.  B  ( (
x  =  C  /\  y  =  D )  /\  ph ) ) )
1716adantl 466 . . . . . . 7  |-  ( ( E! z E. x  e.  A  E. y  e.  B  ( z  =  <. x ,  y
>.  /\  ph )  /\  z  =  <. C ,  D >. )  ->  ( E. x  e.  A  E. y  e.  B  ( z  =  <. x ,  y >.  /\  ph ) 
<->  E. x  e.  A  E. y  e.  B  ( ( x  =  C  /\  y  =  D )  /\  ph ) ) )
18 nfeu1 2266 . . . . . . 7  |-  F/ z E! z E. x  e.  A  E. y  e.  B  ( z  =  <. x ,  y
>.  /\  ph )
19 nfvd 1674 . . . . . . 7  |-  ( E! z E. x  e.  A  E. y  e.  B  ( z  = 
<. x ,  y >.  /\  ph )  ->  F/ z E. x  e.  A  E. y  e.  B  ( ( x  =  C  /\  y  =  D )  /\  ph ) )
20 nfcvd 2590 . . . . . . 7  |-  ( E! z E. x  e.  A  E. y  e.  B  ( z  = 
<. x ,  y >.  /\  ph )  ->  F/_ z <. C ,  D >. )
216, 7, 17, 18, 19, 20iota2df 5426 . . . . . 6  |-  ( E! z E. x  e.  A  E. y  e.  B  ( z  = 
<. x ,  y >.  /\  ph )  ->  ( E. x  e.  A  E. y  e.  B  ( ( x  =  C  /\  y  =  D )  /\  ph ) 
<->  ( iota z E. x  e.  A  E. y  e.  B  (
z  =  <. x ,  y >.  /\  ph ) )  =  <. C ,  D >. )
)
22 eqcom 2445 . . . . . . 7  |-  ( <. C ,  D >.  =  I  <->  I  =  <. C ,  D >. )
23 opiota.1 . . . . . . . 8  |-  I  =  ( iota z E. x  e.  A  E. y  e.  B  (
z  =  <. x ,  y >.  /\  ph ) )
2423eqeq1i 2450 . . . . . . 7  |-  ( I  =  <. C ,  D >.  <-> 
( iota z E. x  e.  A  E. y  e.  B  ( z  =  <. x ,  y
>.  /\  ph ) )  =  <. C ,  D >. )
2522, 24bitri 249 . . . . . 6  |-  ( <. C ,  D >.  =  I  <->  ( iota z E. x  e.  A  E. y  e.  B  ( z  =  <. x ,  y >.  /\  ph ) )  =  <. C ,  D >. )
2621, 25syl6bbr 263 . . . . 5  |-  ( E! z E. x  e.  A  E. y  e.  B  ( z  = 
<. x ,  y >.  /\  ph )  ->  ( E. x  e.  A  E. y  e.  B  ( ( x  =  C  /\  y  =  D )  /\  ph ) 
<-> 
<. C ,  D >.  =  I ) )
274, 26sylan9bbr 700 . . . 4  |-  ( ( E! z E. x  e.  A  E. y  e.  B  ( z  =  <. x ,  y
>.  /\  ph )  /\  ( C  e.  A  /\  D  e.  B
) )  ->  ( ch 
<-> 
<. C ,  D >.  =  I ) )
2827pm5.32da 641 . . 3  |-  ( E! z E. x  e.  A  E. y  e.  B  ( z  = 
<. x ,  y >.  /\  ph )  ->  (
( ( C  e.  A  /\  D  e.  B )  /\  ch ) 
<->  ( ( C  e.  A  /\  D  e.  B )  /\  <. C ,  D >.  =  I ) ) )
29 opelxpi 4892 . . . . . . . . . 10  |-  ( ( x  e.  A  /\  y  e.  B )  -> 
<. x ,  y >.  e.  ( A  X.  B
) )
30 simpl 457 . . . . . . . . . . 11  |-  ( ( z  =  <. x ,  y >.  /\  ph )  ->  z  =  <. x ,  y >. )
3130eleq1d 2509 . . . . . . . . . 10  |-  ( ( z  =  <. x ,  y >.  /\  ph )  ->  ( z  e.  ( A  X.  B
)  <->  <. x ,  y
>.  e.  ( A  X.  B ) ) )
3229, 31syl5ibrcom 222 . . . . . . . . 9  |-  ( ( x  e.  A  /\  y  e.  B )  ->  ( ( z  = 
<. x ,  y >.  /\  ph )  ->  z  e.  ( A  X.  B
) ) )
3332rexlimivv 2867 . . . . . . . 8  |-  ( E. x  e.  A  E. y  e.  B  (
z  =  <. x ,  y >.  /\  ph )  ->  z  e.  ( A  X.  B ) )
3433abssi 3448 . . . . . . 7  |-  { z  |  E. x  e.  A  E. y  e.  B  ( z  = 
<. x ,  y >.  /\  ph ) }  C_  ( A  X.  B
)
35 iotacl 5425 . . . . . . 7  |-  ( E! z E. x  e.  A  E. y  e.  B  ( z  = 
<. x ,  y >.  /\  ph )  ->  ( iota z E. x  e.  A  E. y  e.  B  ( z  = 
<. x ,  y >.  /\  ph ) )  e. 
{ z  |  E. x  e.  A  E. y  e.  B  (
z  =  <. x ,  y >.  /\  ph ) } )
3634, 35sseldi 3375 . . . . . 6  |-  ( E! z E. x  e.  A  E. y  e.  B  ( z  = 
<. x ,  y >.  /\  ph )  ->  ( iota z E. x  e.  A  E. y  e.  B  ( z  = 
<. x ,  y >.  /\  ph ) )  e.  ( A  X.  B
) )
3723, 36syl5eqel 2527 . . . . 5  |-  ( E! z E. x  e.  A  E. y  e.  B  ( z  = 
<. x ,  y >.  /\  ph )  ->  I  e.  ( A  X.  B
) )
38 opelxp 4890 . . . . . 6  |-  ( <. C ,  D >.  e.  ( A  X.  B
)  <->  ( C  e.  A  /\  D  e.  B ) )
39 eleq1 2503 . . . . . 6  |-  ( <. C ,  D >.  =  I  ->  ( <. C ,  D >.  e.  ( A  X.  B )  <-> 
I  e.  ( A  X.  B ) ) )
4038, 39syl5bbr 259 . . . . 5  |-  ( <. C ,  D >.  =  I  ->  ( ( C  e.  A  /\  D  e.  B )  <->  I  e.  ( A  X.  B ) ) )
4137, 40syl5ibrcom 222 . . . 4  |-  ( E! z E. x  e.  A  E. y  e.  B  ( z  = 
<. x ,  y >.  /\  ph )  ->  ( <. C ,  D >.  =  I  ->  ( C  e.  A  /\  D  e.  B ) ) )
4241pm4.71rd 635 . . 3  |-  ( E! z E. x  e.  A  E. y  e.  B  ( z  = 
<. x ,  y >.  /\  ph )  ->  ( <. C ,  D >.  =  I  <->  ( ( C  e.  A  /\  D  e.  B )  /\  <. C ,  D >.  =  I ) ) )
43 1st2nd2 6634 . . . . 5  |-  ( I  e.  ( A  X.  B )  ->  I  =  <. ( 1st `  I
) ,  ( 2nd `  I ) >. )
4437, 43syl 16 . . . 4  |-  ( E! z E. x  e.  A  E. y  e.  B  ( z  = 
<. x ,  y >.  /\  ph )  ->  I  =  <. ( 1st `  I
) ,  ( 2nd `  I ) >. )
4544eqeq2d 2454 . . 3  |-  ( E! z E. x  e.  A  E. y  e.  B  ( z  = 
<. x ,  y >.  /\  ph )  ->  ( <. C ,  D >.  =  I  <->  <. C ,  D >.  =  <. ( 1st `  I
) ,  ( 2nd `  I ) >. )
)
4628, 42, 453bitr2d 281 . 2  |-  ( E! z E. x  e.  A  E. y  e.  B  ( z  = 
<. x ,  y >.  /\  ph )  ->  (
( ( C  e.  A  /\  D  e.  B )  /\  ch ) 
<-> 
<. C ,  D >.  = 
<. ( 1st `  I
) ,  ( 2nd `  I ) >. )
)
47 df-3an 967 . 2  |-  ( ( C  e.  A  /\  D  e.  B  /\  ch )  <->  ( ( C  e.  A  /\  D  e.  B )  /\  ch ) )
48 opiota.2 . . . . 5  |-  X  =  ( 1st `  I
)
4948eqeq2i 2453 . . . 4  |-  ( C  =  X  <->  C  =  ( 1st `  I ) )
50 opiota.3 . . . . 5  |-  Y  =  ( 2nd `  I
)
5150eqeq2i 2453 . . . 4  |-  ( D  =  Y  <->  D  =  ( 2nd `  I ) )
5249, 51anbi12i 697 . . 3  |-  ( ( C  =  X  /\  D  =  Y )  <->  ( C  =  ( 1st `  I )  /\  D  =  ( 2nd `  I
) ) )
53 fvex 5722 . . . 4  |-  ( 1st `  I )  e.  _V
54 fvex 5722 . . . 4  |-  ( 2nd `  I )  e.  _V
5553, 54opth2 4591 . . 3  |-  ( <. C ,  D >.  = 
<. ( 1st `  I
) ,  ( 2nd `  I ) >.  <->  ( C  =  ( 1st `  I
)  /\  D  =  ( 2nd `  I ) ) )
5652, 55bitr4i 252 . 2  |-  ( ( C  =  X  /\  D  =  Y )  <->  <. C ,  D >.  = 
<. ( 1st `  I
) ,  ( 2nd `  I ) >. )
5746, 47, 563bitr4g 288 1  |-  ( E! z E. x  e.  A  E. y  e.  B  ( z  = 
<. x ,  y >.  /\  ph )  ->  (
( C  e.  A  /\  D  e.  B  /\  ch )  <->  ( C  =  X  /\  D  =  Y ) ) )
Colors of variables: wff setvar class
Syntax hints:    -> wi 4    <-> wb 184    /\ wa 369    /\ w3a 965    = wceq 1369    e. wcel 1756   E!weu 2253   {cab 2429   E.wrex 2737   _Vcvv 2993   <.cop 3904    X. cxp 4859   iotacio 5400   ` cfv 5439   1stc1st 6596   2ndc2nd 6597
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1591  ax-4 1602  ax-5 1670  ax-6 1708  ax-7 1728  ax-8 1758  ax-9 1760  ax-10 1775  ax-11 1780  ax-12 1792  ax-13 1943  ax-ext 2423  ax-sep 4434  ax-nul 4442  ax-pow 4491  ax-pr 4552  ax-un 6393
This theorem depends on definitions:  df-bi 185  df-or 370  df-an 371  df-3an 967  df-tru 1372  df-ex 1587  df-nf 1590  df-sb 1701  df-eu 2257  df-mo 2258  df-clab 2430  df-cleq 2436  df-clel 2439  df-nfc 2577  df-ne 2622  df-ral 2741  df-rex 2742  df-rab 2745  df-v 2995  df-sbc 3208  df-dif 3352  df-un 3354  df-in 3356  df-ss 3363  df-nul 3659  df-if 3813  df-sn 3899  df-pr 3901  df-op 3905  df-uni 4113  df-br 4314  df-opab 4372  df-mpt 4373  df-id 4657  df-xp 4867  df-rel 4868  df-cnv 4869  df-co 4870  df-dm 4871  df-rn 4872  df-iota 5402  df-fun 5441  df-fv 5447  df-1st 6598  df-2nd 6599
This theorem is referenced by:  oeeui  7062
  Copyright terms: Public domain W3C validator