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

Theorem 1st2val 6161
Description: Value of an alternate definition of the  1st function. (Contributed by NM, 14-Oct-2004.) (Revised by Mario Carneiro, 30-Dec-2014.)
Assertion
Ref Expression
1st2val  |-  ( {
<. <. x ,  y
>. ,  z >.  |  z  =  x } `  A )  =  ( 1st `  A )
Distinct variable group:    x, y, z
Allowed substitution hints:    A( x, y, z)

Proof of Theorem 1st2val
Dummy variables  w  v are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 elvv 4764 . . 3  |-  ( A  e.  ( _V  X.  _V )  <->  E. w E. v  A  =  <. w ,  v >. )
2 fveq2 5541 . . . . . 6  |-  ( A  =  <. w ,  v
>.  ->  ( { <. <.
x ,  y >. ,  z >.  |  z  =  x } `  A )  =  ( { <. <. x ,  y
>. ,  z >.  |  z  =  x } `  <. w ,  v
>. ) )
3 df-ov 5877 . . . . . . 7  |-  ( w { <. <. x ,  y
>. ,  z >.  |  z  =  x }
v )  =  ( { <. <. x ,  y
>. ,  z >.  |  z  =  x } `  <. w ,  v
>. )
4 vex 2804 . . . . . . . 8  |-  w  e. 
_V
5 vex 2804 . . . . . . . 8  |-  v  e. 
_V
6 simpl 443 . . . . . . . . 9  |-  ( ( x  =  w  /\  y  =  v )  ->  x  =  w )
7 mpt2v 5953 . . . . . . . . . 10  |-  ( x  e.  _V ,  y  e.  _V  |->  x )  =  { <. <. x ,  y >. ,  z
>.  |  z  =  x }
87eqcomi 2300 . . . . . . . . 9  |-  { <. <.
x ,  y >. ,  z >.  |  z  =  x }  =  ( x  e.  _V ,  y  e.  _V  |->  x )
96, 8, 4ovmpt2a 5994 . . . . . . . 8  |-  ( ( w  e.  _V  /\  v  e.  _V )  ->  ( w { <. <.
x ,  y >. ,  z >.  |  z  =  x } v )  =  w )
104, 5, 9mp2an 653 . . . . . . 7  |-  ( w { <. <. x ,  y
>. ,  z >.  |  z  =  x }
v )  =  w
113, 10eqtr3i 2318 . . . . . 6  |-  ( {
<. <. x ,  y
>. ,  z >.  |  z  =  x } `  <. w ,  v
>. )  =  w
122, 11syl6eq 2344 . . . . 5  |-  ( A  =  <. w ,  v
>.  ->  ( { <. <.
x ,  y >. ,  z >.  |  z  =  x } `  A )  =  w )
134, 5op1std 6146 . . . . 5  |-  ( A  =  <. w ,  v
>.  ->  ( 1st `  A
)  =  w )
1412, 13eqtr4d 2331 . . . 4  |-  ( A  =  <. w ,  v
>.  ->  ( { <. <.
x ,  y >. ,  z >.  |  z  =  x } `  A )  =  ( 1st `  A ) )
1514exlimivv 1625 . . 3  |-  ( E. w E. v  A  =  <. w ,  v
>.  ->  ( { <. <.
x ,  y >. ,  z >.  |  z  =  x } `  A )  =  ( 1st `  A ) )
161, 15sylbi 187 . 2  |-  ( A  e.  ( _V  X.  _V )  ->  ( {
<. <. x ,  y
>. ,  z >.  |  z  =  x } `  A )  =  ( 1st `  A ) )
17 vex 2804 . . . . . . . . . 10  |-  x  e. 
_V
18 vex 2804 . . . . . . . . . 10  |-  y  e. 
_V
1917, 18pm3.2i 441 . . . . . . . . 9  |-  ( x  e.  _V  /\  y  e.  _V )
20 a9ev 1646 . . . . . . . . 9  |-  E. z 
z  =  x
2119, 202th 230 . . . . . . . 8  |-  ( ( x  e.  _V  /\  y  e.  _V )  <->  E. z  z  =  x )
2221opabbii 4099 . . . . . . 7  |-  { <. x ,  y >.  |  ( x  e.  _V  /\  y  e.  _V ) }  =  { <. x ,  y >.  |  E. z  z  =  x }
23 df-xp 4711 . . . . . . 7  |-  ( _V 
X.  _V )  =  { <. x ,  y >.  |  ( x  e. 
_V  /\  y  e.  _V ) }
24 dmoprab 5944 . . . . . . 7  |-  dom  { <. <. x ,  y
>. ,  z >.  |  z  =  x }  =  { <. x ,  y
>.  |  E. z 
z  =  x }
2522, 23, 243eqtr4ri 2327 . . . . . 6  |-  dom  { <. <. x ,  y
>. ,  z >.  |  z  =  x }  =  ( _V  X.  _V )
2625eleq2i 2360 . . . . 5  |-  ( A  e.  dom  { <. <.
x ,  y >. ,  z >.  |  z  =  x }  <->  A  e.  ( _V  X.  _V )
)
27 ndmfv 5568 . . . . 5  |-  ( -.  A  e.  dom  { <. <. x ,  y
>. ,  z >.  |  z  =  x }  ->  ( { <. <. x ,  y >. ,  z
>.  |  z  =  x } `  A )  =  (/) )
2826, 27sylnbir 298 . . . 4  |-  ( -.  A  e.  ( _V 
X.  _V )  ->  ( { <. <. x ,  y
>. ,  z >.  |  z  =  x } `  A )  =  (/) )
29 dmsnn0 5154 . . . . . . . 8  |-  ( A  e.  ( _V  X.  _V )  <->  dom  { A }  =/=  (/) )
3029biimpri 197 . . . . . . 7  |-  ( dom 
{ A }  =/=  (/) 
->  A  e.  ( _V  X.  _V ) )
3130necon1bi 2502 . . . . . 6  |-  ( -.  A  e.  ( _V 
X.  _V )  ->  dom  { A }  =  (/) )
3231unieqd 3854 . . . . 5  |-  ( -.  A  e.  ( _V 
X.  _V )  ->  U. dom  { A }  =  U. (/) )
33 uni0 3870 . . . . 5  |-  U. (/)  =  (/)
3432, 33syl6eq 2344 . . . 4  |-  ( -.  A  e.  ( _V 
X.  _V )  ->  U. dom  { A }  =  (/) )
3528, 34eqtr4d 2331 . . 3  |-  ( -.  A  e.  ( _V 
X.  _V )  ->  ( { <. <. x ,  y
>. ,  z >.  |  z  =  x } `  A )  =  U. dom  { A } )
36 1stval 6140 . . 3  |-  ( 1st `  A )  =  U. dom  { A }
3735, 36syl6eqr 2346 . 2  |-  ( -.  A  e.  ( _V 
X.  _V )  ->  ( { <. <. x ,  y
>. ,  z >.  |  z  =  x } `  A )  =  ( 1st `  A ) )
3816, 37pm2.61i 156 1  |-  ( {
<. <. x ,  y
>. ,  z >.  |  z  =  x } `  A )  =  ( 1st `  A )
Colors of variables: wff set class
Syntax hints:   -. wn 3    /\ wa 358   E.wex 1531    = wceq 1632    e. wcel 1696    =/= wne 2459   _Vcvv 2801   (/)c0 3468   {csn 3653   <.cop 3656   U.cuni 3843   {copab 4092    X. cxp 4703   dom cdm 4705   ` cfv 5271  (class class class)co 5874   {coprab 5875    e. cmpt2 5876   1stc1st 6136
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-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-nul 3469  df-if 3579  df-sn 3659  df-pr 3660  df-op 3662  df-uni 3844  df-br 4040  df-opab 4094  df-mpt 4095  df-id 4325  df-xp 4711  df-rel 4712  df-cnv 4713  df-co 4714  df-dm 4715  df-rn 4716  df-iota 5235  df-fun 5273  df-fv 5279  df-ov 5877  df-oprab 5878  df-mpt2 5879  df-1st 6138
  Copyright terms: Public domain W3C validator