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

Theorem 1st2val 6374
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 4938 . . 3  |-  ( A  e.  ( _V  X.  _V )  <->  E. w E. v  A  =  <. w ,  v >. )
2 fveq2 5730 . . . . . 6  |-  ( A  =  <. w ,  v
>.  ->  ( { <. <.
x ,  y >. ,  z >.  |  z  =  x } `  A )  =  ( { <. <. x ,  y
>. ,  z >.  |  z  =  x } `  <. w ,  v
>. ) )
3 df-ov 6086 . . . . . . 7  |-  ( w { <. <. x ,  y
>. ,  z >.  |  z  =  x }
v )  =  ( { <. <. x ,  y
>. ,  z >.  |  z  =  x } `  <. w ,  v
>. )
4 vex 2961 . . . . . . . 8  |-  w  e. 
_V
5 vex 2961 . . . . . . . 8  |-  v  e. 
_V
6 simpl 445 . . . . . . . . 9  |-  ( ( x  =  w  /\  y  =  v )  ->  x  =  w )
7 mpt2v 6165 . . . . . . . . . 10  |-  ( x  e.  _V ,  y  e.  _V  |->  x )  =  { <. <. x ,  y >. ,  z
>.  |  z  =  x }
87eqcomi 2442 . . . . . . . . 9  |-  { <. <.
x ,  y >. ,  z >.  |  z  =  x }  =  ( x  e.  _V ,  y  e.  _V  |->  x )
96, 8, 4ovmpt2a 6206 . . . . . . . 8  |-  ( ( w  e.  _V  /\  v  e.  _V )  ->  ( w { <. <.
x ,  y >. ,  z >.  |  z  =  x } v )  =  w )
104, 5, 9mp2an 655 . . . . . . 7  |-  ( w { <. <. x ,  y
>. ,  z >.  |  z  =  x }
v )  =  w
113, 10eqtr3i 2460 . . . . . 6  |-  ( {
<. <. x ,  y
>. ,  z >.  |  z  =  x } `  <. w ,  v
>. )  =  w
122, 11syl6eq 2486 . . . . 5  |-  ( A  =  <. w ,  v
>.  ->  ( { <. <.
x ,  y >. ,  z >.  |  z  =  x } `  A )  =  w )
134, 5op1std 6359 . . . . 5  |-  ( A  =  <. w ,  v
>.  ->  ( 1st `  A
)  =  w )
1412, 13eqtr4d 2473 . . . 4  |-  ( A  =  <. w ,  v
>.  ->  ( { <. <.
x ,  y >. ,  z >.  |  z  =  x } `  A )  =  ( 1st `  A ) )
1514exlimivv 1646 . . 3  |-  ( E. w E. v  A  =  <. w ,  v
>.  ->  ( { <. <.
x ,  y >. ,  z >.  |  z  =  x } `  A )  =  ( 1st `  A ) )
161, 15sylbi 189 . 2  |-  ( A  e.  ( _V  X.  _V )  ->  ( {
<. <. x ,  y
>. ,  z >.  |  z  =  x } `  A )  =  ( 1st `  A ) )
17 vex 2961 . . . . . . . . . 10  |-  x  e. 
_V
18 vex 2961 . . . . . . . . . 10  |-  y  e. 
_V
1917, 18pm3.2i 443 . . . . . . . . 9  |-  ( x  e.  _V  /\  y  e.  _V )
20 a9ev 1669 . . . . . . . . 9  |-  E. z 
z  =  x
2119, 202th 232 . . . . . . . 8  |-  ( ( x  e.  _V  /\  y  e.  _V )  <->  E. z  z  =  x )
2221opabbii 4274 . . . . . . 7  |-  { <. x ,  y >.  |  ( x  e.  _V  /\  y  e.  _V ) }  =  { <. x ,  y >.  |  E. z  z  =  x }
23 df-xp 4886 . . . . . . 7  |-  ( _V 
X.  _V )  =  { <. x ,  y >.  |  ( x  e. 
_V  /\  y  e.  _V ) }
24 dmoprab 6156 . . . . . . 7  |-  dom  { <. <. x ,  y
>. ,  z >.  |  z  =  x }  =  { <. x ,  y
>.  |  E. z 
z  =  x }
2522, 23, 243eqtr4ri 2469 . . . . . 6  |-  dom  { <. <. x ,  y
>. ,  z >.  |  z  =  x }  =  ( _V  X.  _V )
2625eleq2i 2502 . . . . 5  |-  ( A  e.  dom  { <. <.
x ,  y >. ,  z >.  |  z  =  x }  <->  A  e.  ( _V  X.  _V )
)
27 ndmfv 5757 . . . . 5  |-  ( -.  A  e.  dom  { <. <. x ,  y
>. ,  z >.  |  z  =  x }  ->  ( { <. <. x ,  y >. ,  z
>.  |  z  =  x } `  A )  =  (/) )
2826, 27sylnbir 300 . . . 4  |-  ( -.  A  e.  ( _V 
X.  _V )  ->  ( { <. <. x ,  y
>. ,  z >.  |  z  =  x } `  A )  =  (/) )
29 dmsnn0 5337 . . . . . . . 8  |-  ( A  e.  ( _V  X.  _V )  <->  dom  { A }  =/=  (/) )
3029biimpri 199 . . . . . . 7  |-  ( dom 
{ A }  =/=  (/) 
->  A  e.  ( _V  X.  _V ) )
3130necon1bi 2649 . . . . . 6  |-  ( -.  A  e.  ( _V 
X.  _V )  ->  dom  { A }  =  (/) )
3231unieqd 4028 . . . . 5  |-  ( -.  A  e.  ( _V 
X.  _V )  ->  U. dom  { A }  =  U. (/) )
33 uni0 4044 . . . . 5  |-  U. (/)  =  (/)
3432, 33syl6eq 2486 . . . 4  |-  ( -.  A  e.  ( _V 
X.  _V )  ->  U. dom  { A }  =  (/) )
3528, 34eqtr4d 2473 . . 3  |-  ( -.  A  e.  ( _V 
X.  _V )  ->  ( { <. <. x ,  y
>. ,  z >.  |  z  =  x } `  A )  =  U. dom  { A } )
36 1stval 6353 . . 3  |-  ( 1st `  A )  =  U. dom  { A }
3735, 36syl6eqr 2488 . 2  |-  ( -.  A  e.  ( _V 
X.  _V )  ->  ( { <. <. x ,  y
>. ,  z >.  |  z  =  x } `  A )  =  ( 1st `  A ) )
3816, 37pm2.61i 159 1  |-  ( {
<. <. x ,  y
>. ,  z >.  |  z  =  x } `  A )  =  ( 1st `  A )
Colors of variables: wff set class
Syntax hints:   -. wn 3    /\ wa 360   E.wex 1551    = wceq 1653    e. wcel 1726    =/= wne 2601   _Vcvv 2958   (/)c0 3630   {csn 3816   <.cop 3819   U.cuni 4017   {copab 4267    X. cxp 4878   dom cdm 4880   ` cfv 5456  (class class class)co 6083   {coprab 6084    e. cmpt2 6085   1stc1st 6349
This theorem was proved from axioms:  ax-1 5  ax-2 6  ax-3 7  ax-mp 8  ax-gen 1556  ax-5 1567  ax-17 1627  ax-9 1667  ax-8 1688  ax-13 1728  ax-14 1730  ax-6 1745  ax-7 1750  ax-11 1762  ax-12 1951  ax-ext 2419  ax-sep 4332  ax-nul 4340  ax-pow 4379  ax-pr 4405  ax-un 4703
This theorem depends on definitions:  df-bi 179  df-or 361  df-an 362  df-3an 939  df-tru 1329  df-ex 1552  df-nf 1555  df-sb 1660  df-eu 2287  df-mo 2288  df-clab 2425  df-cleq 2431  df-clel 2434  df-nfc 2563  df-ne 2603  df-ral 2712  df-rex 2713  df-rab 2716  df-v 2960  df-sbc 3164  df-dif 3325  df-un 3327  df-in 3329  df-ss 3336  df-nul 3631  df-if 3742  df-sn 3822  df-pr 3823  df-op 3825  df-uni 4018  df-br 4215  df-opab 4269  df-mpt 4270  df-id 4500  df-xp 4886  df-rel 4887  df-cnv 4888  df-co 4889  df-dm 4890  df-rn 4891  df-iota 5420  df-fun 5458  df-fv 5464  df-ov 6086  df-oprab 6087  df-mpt2 6088  df-1st 6351
  Copyright terms: Public domain W3C validator