Users' Mathboxes Mathbox for Norm Megill < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >   Mathboxes  >  mapdhval Structured version   Unicode version

Theorem mapdhval 37867
Description: Lemmma for ~? mapdh . (Contributed by NM, 3-Apr-2015.) (Revised by Mario Carneiro, 6-May-2015.)
Hypotheses
Ref Expression
mapdh.q  |-  Q  =  ( 0g `  C
)
mapdh.i  |-  I  =  ( x  e.  _V  |->  if ( ( 2nd `  x
)  =  .0.  ,  Q ,  ( iota_ h  e.  D  ( ( M `  ( N `
 { ( 2nd `  x ) } ) )  =  ( J `
 { h }
)  /\  ( M `  ( N `  {
( ( 1st `  ( 1st `  x ) ) 
.-  ( 2nd `  x
) ) } ) )  =  ( J `
 { ( ( 2nd `  ( 1st `  x ) ) R h ) } ) ) ) ) )
mapdh.x  |-  ( ph  ->  X  e.  A )
mapdh.f  |-  ( ph  ->  F  e.  B )
mapdh.y  |-  ( ph  ->  Y  e.  E )
Assertion
Ref Expression
mapdhval  |-  ( ph  ->  ( I `  <. X ,  F ,  Y >. )  =  if ( Y  =  .0.  ,  Q ,  ( iota_ h  e.  D  ( ( M `  ( N `
 { Y }
) )  =  ( J `  { h } )  /\  ( M `  ( N `  { ( X  .-  Y ) } ) )  =  ( J `
 { ( F R h ) } ) ) ) ) )
Distinct variable groups:    x, D    x, h, F    x, J    x, M    x, N    x,  .0.    x, Q    x, R    x, 
.-    h, X, x    h, Y, x    ph, h
Allowed substitution hints:    ph( x)    A( x, h)    B( x, h)    C( x, h)    D( h)    Q( h)    R( h)    E( x, h)    I( x, h)    J( h)    M( h)    .- ( h)    N( h)    .0. ( h)

Proof of Theorem mapdhval
StepHypRef Expression
1 otex 4702 . . 3  |-  <. X ,  F ,  Y >.  e. 
_V
2 fveq2 5848 . . . . . 6  |-  ( x  =  <. X ,  F ,  Y >.  ->  ( 2nd `  x )  =  ( 2nd `  <. X ,  F ,  Y >. ) )
32eqeq1d 2456 . . . . 5  |-  ( x  =  <. X ,  F ,  Y >.  ->  ( ( 2nd `  x )  =  .0.  <->  ( 2nd ` 
<. X ,  F ,  Y >. )  =  .0.  ) )
42sneqd 4028 . . . . . . . . . 10  |-  ( x  =  <. X ,  F ,  Y >.  ->  { ( 2nd `  x ) }  =  { ( 2nd `  <. X ,  F ,  Y >. ) } )
54fveq2d 5852 . . . . . . . . 9  |-  ( x  =  <. X ,  F ,  Y >.  ->  ( N `
 { ( 2nd `  x ) } )  =  ( N `  { ( 2nd `  <. X ,  F ,  Y >. ) } ) )
65fveq2d 5852 . . . . . . . 8  |-  ( x  =  <. X ,  F ,  Y >.  ->  ( M `
 ( N `  { ( 2nd `  x
) } ) )  =  ( M `  ( N `  { ( 2nd `  <. X ,  F ,  Y >. ) } ) ) )
76eqeq1d 2456 . . . . . . 7  |-  ( x  =  <. X ,  F ,  Y >.  ->  ( ( M `  ( N `
 { ( 2nd `  x ) } ) )  =  ( J `
 { h }
)  <->  ( M `  ( N `  { ( 2nd `  <. X ,  F ,  Y >. ) } ) )  =  ( J `  {
h } ) ) )
8 fveq2 5848 . . . . . . . . . . . . 13  |-  ( x  =  <. X ,  F ,  Y >.  ->  ( 1st `  x )  =  ( 1st `  <. X ,  F ,  Y >. ) )
98fveq2d 5852 . . . . . . . . . . . 12  |-  ( x  =  <. X ,  F ,  Y >.  ->  ( 1st `  ( 1st `  x
) )  =  ( 1st `  ( 1st `  <. X ,  F ,  Y >. ) ) )
109, 2oveq12d 6288 . . . . . . . . . . 11  |-  ( x  =  <. X ,  F ,  Y >.  ->  ( ( 1st `  ( 1st `  x ) )  .-  ( 2nd `  x ) )  =  ( ( 1st `  ( 1st `  <. X ,  F ,  Y >. ) )  .-  ( 2nd `  <. X ,  F ,  Y >. ) ) )
1110sneqd 4028 . . . . . . . . . 10  |-  ( x  =  <. X ,  F ,  Y >.  ->  { ( ( 1st `  ( 1st `  x ) ) 
.-  ( 2nd `  x
) ) }  =  { ( ( 1st `  ( 1st `  <. X ,  F ,  Y >. ) )  .-  ( 2nd `  <. X ,  F ,  Y >. ) ) } )
1211fveq2d 5852 . . . . . . . . 9  |-  ( x  =  <. X ,  F ,  Y >.  ->  ( N `
 { ( ( 1st `  ( 1st `  x ) )  .-  ( 2nd `  x ) ) } )  =  ( N `  {
( ( 1st `  ( 1st `  <. X ,  F ,  Y >. ) )  .-  ( 2nd `  <. X ,  F ,  Y >. ) ) } ) )
1312fveq2d 5852 . . . . . . . 8  |-  ( x  =  <. X ,  F ,  Y >.  ->  ( M `
 ( N `  { ( ( 1st `  ( 1st `  x
) )  .-  ( 2nd `  x ) ) } ) )  =  ( M `  ( N `  { (
( 1st `  ( 1st `  <. X ,  F ,  Y >. ) )  .-  ( 2nd `  <. X ,  F ,  Y >. ) ) } ) ) )
148fveq2d 5852 . . . . . . . . . . 11  |-  ( x  =  <. X ,  F ,  Y >.  ->  ( 2nd `  ( 1st `  x
) )  =  ( 2nd `  ( 1st `  <. X ,  F ,  Y >. ) ) )
1514oveq1d 6285 . . . . . . . . . 10  |-  ( x  =  <. X ,  F ,  Y >.  ->  ( ( 2nd `  ( 1st `  x ) ) R h )  =  ( ( 2nd `  ( 1st `  <. X ,  F ,  Y >. ) ) R h ) )
1615sneqd 4028 . . . . . . . . 9  |-  ( x  =  <. X ,  F ,  Y >.  ->  { ( ( 2nd `  ( 1st `  x ) ) R h ) }  =  { ( ( 2nd `  ( 1st `  <. X ,  F ,  Y >. ) ) R h ) } )
1716fveq2d 5852 . . . . . . . 8  |-  ( x  =  <. X ,  F ,  Y >.  ->  ( J `
 { ( ( 2nd `  ( 1st `  x ) ) R h ) } )  =  ( J `  { ( ( 2nd `  ( 1st `  <. X ,  F ,  Y >. ) ) R h ) } ) )
1813, 17eqeq12d 2476 . . . . . . 7  |-  ( x  =  <. X ,  F ,  Y >.  ->  ( ( M `  ( N `
 { ( ( 1st `  ( 1st `  x ) )  .-  ( 2nd `  x ) ) } ) )  =  ( J `  { ( ( 2nd `  ( 1st `  x
) ) R h ) } )  <->  ( M `  ( N `  {
( ( 1st `  ( 1st `  <. X ,  F ,  Y >. ) )  .-  ( 2nd `  <. X ,  F ,  Y >. ) ) } ) )  =  ( J `  { ( ( 2nd `  ( 1st `  <. X ,  F ,  Y >. ) ) R h ) } ) ) )
197, 18anbi12d 708 . . . . . 6  |-  ( x  =  <. X ,  F ,  Y >.  ->  ( ( ( M `  ( N `  { ( 2nd `  x ) } ) )  =  ( J `  { h } )  /\  ( M `  ( N `  { ( ( 1st `  ( 1st `  x
) )  .-  ( 2nd `  x ) ) } ) )  =  ( J `  {
( ( 2nd `  ( 1st `  x ) ) R h ) } ) )  <->  ( ( M `  ( N `  { ( 2nd `  <. X ,  F ,  Y >. ) } ) )  =  ( J `  { h } )  /\  ( M `  ( N `  { ( ( 1st `  ( 1st `  <. X ,  F ,  Y >. ) )  .-  ( 2nd `  <. X ,  F ,  Y >. ) ) } ) )  =  ( J `  { ( ( 2nd `  ( 1st `  <. X ,  F ,  Y >. ) ) R h ) } ) ) ) )
2019riotabidv 6234 . . . . 5  |-  ( x  =  <. X ,  F ,  Y >.  ->  ( iota_ h  e.  D  ( ( M `  ( N `
 { ( 2nd `  x ) } ) )  =  ( J `
 { h }
)  /\  ( M `  ( N `  {
( ( 1st `  ( 1st `  x ) ) 
.-  ( 2nd `  x
) ) } ) )  =  ( J `
 { ( ( 2nd `  ( 1st `  x ) ) R h ) } ) ) )  =  (
iota_ h  e.  D  ( ( M `  ( N `  { ( 2nd `  <. X ,  F ,  Y >. ) } ) )  =  ( J `  {
h } )  /\  ( M `  ( N `
 { ( ( 1st `  ( 1st `  <. X ,  F ,  Y >. ) )  .-  ( 2nd `  <. X ,  F ,  Y >. ) ) } ) )  =  ( J `  { ( ( 2nd `  ( 1st `  <. X ,  F ,  Y >. ) ) R h ) } ) ) ) )
213, 20ifbieq2d 3954 . . . 4  |-  ( x  =  <. X ,  F ,  Y >.  ->  if ( ( 2nd `  x
)  =  .0.  ,  Q ,  ( iota_ h  e.  D  ( ( M `  ( N `
 { ( 2nd `  x ) } ) )  =  ( J `
 { h }
)  /\  ( M `  ( N `  {
( ( 1st `  ( 1st `  x ) ) 
.-  ( 2nd `  x
) ) } ) )  =  ( J `
 { ( ( 2nd `  ( 1st `  x ) ) R h ) } ) ) ) )  =  if ( ( 2nd `  <. X ,  F ,  Y >. )  =  .0. 
,  Q ,  (
iota_ h  e.  D  ( ( M `  ( N `  { ( 2nd `  <. X ,  F ,  Y >. ) } ) )  =  ( J `  {
h } )  /\  ( M `  ( N `
 { ( ( 1st `  ( 1st `  <. X ,  F ,  Y >. ) )  .-  ( 2nd `  <. X ,  F ,  Y >. ) ) } ) )  =  ( J `  { ( ( 2nd `  ( 1st `  <. X ,  F ,  Y >. ) ) R h ) } ) ) ) ) )
22 mapdh.i . . . 4  |-  I  =  ( x  e.  _V  |->  if ( ( 2nd `  x
)  =  .0.  ,  Q ,  ( iota_ h  e.  D  ( ( M `  ( N `
 { ( 2nd `  x ) } ) )  =  ( J `
 { h }
)  /\  ( M `  ( N `  {
( ( 1st `  ( 1st `  x ) ) 
.-  ( 2nd `  x
) ) } ) )  =  ( J `
 { ( ( 2nd `  ( 1st `  x ) ) R h ) } ) ) ) ) )
23 mapdh.q . . . . . 6  |-  Q  =  ( 0g `  C
)
24 fvex 5858 . . . . . 6  |-  ( 0g
`  C )  e. 
_V
2523, 24eqeltri 2538 . . . . 5  |-  Q  e. 
_V
26 riotaex 6236 . . . . 5  |-  ( iota_ h  e.  D  ( ( M `  ( N `
 { ( 2nd `  <. X ,  F ,  Y >. ) } ) )  =  ( J `
 { h }
)  /\  ( M `  ( N `  {
( ( 1st `  ( 1st `  <. X ,  F ,  Y >. ) )  .-  ( 2nd `  <. X ,  F ,  Y >. ) ) } ) )  =  ( J `  { ( ( 2nd `  ( 1st `  <. X ,  F ,  Y >. ) ) R h ) } ) ) )  e.  _V
2725, 26ifex 3997 . . . 4  |-  if ( ( 2nd `  <. X ,  F ,  Y >. )  =  .0.  ,  Q ,  ( iota_ h  e.  D  ( ( M `  ( N `
 { ( 2nd `  <. X ,  F ,  Y >. ) } ) )  =  ( J `
 { h }
)  /\  ( M `  ( N `  {
( ( 1st `  ( 1st `  <. X ,  F ,  Y >. ) )  .-  ( 2nd `  <. X ,  F ,  Y >. ) ) } ) )  =  ( J `  { ( ( 2nd `  ( 1st `  <. X ,  F ,  Y >. ) ) R h ) } ) ) ) )  e.  _V
2821, 22, 27fvmpt 5931 . . 3  |-  ( <. X ,  F ,  Y >.  e.  _V  ->  ( I `  <. X ,  F ,  Y >. )  =  if ( ( 2nd `  <. X ,  F ,  Y >. )  =  .0.  ,  Q ,  ( iota_ h  e.  D  ( ( M `
 ( N `  { ( 2nd `  <. X ,  F ,  Y >. ) } ) )  =  ( J `  { h } )  /\  ( M `  ( N `  { ( ( 1st `  ( 1st `  <. X ,  F ,  Y >. ) )  .-  ( 2nd `  <. X ,  F ,  Y >. ) ) } ) )  =  ( J `  { ( ( 2nd `  ( 1st `  <. X ,  F ,  Y >. ) ) R h ) } ) ) ) ) )
291, 28mp1i 12 . 2  |-  ( ph  ->  ( I `  <. X ,  F ,  Y >. )  =  if ( ( 2nd `  <. X ,  F ,  Y >. )  =  .0.  ,  Q ,  ( iota_ h  e.  D  ( ( M `  ( N `
 { ( 2nd `  <. X ,  F ,  Y >. ) } ) )  =  ( J `
 { h }
)  /\  ( M `  ( N `  {
( ( 1st `  ( 1st `  <. X ,  F ,  Y >. ) )  .-  ( 2nd `  <. X ,  F ,  Y >. ) ) } ) )  =  ( J `  { ( ( 2nd `  ( 1st `  <. X ,  F ,  Y >. ) ) R h ) } ) ) ) ) )
30 mapdh.y . . . . 5  |-  ( ph  ->  Y  e.  E )
31 ot3rdg 6789 . . . . 5  |-  ( Y  e.  E  ->  ( 2nd `  <. X ,  F ,  Y >. )  =  Y )
3230, 31syl 16 . . . 4  |-  ( ph  ->  ( 2nd `  <. X ,  F ,  Y >. )  =  Y )
3332eqeq1d 2456 . . 3  |-  ( ph  ->  ( ( 2nd `  <. X ,  F ,  Y >. )  =  .0.  <->  Y  =  .0.  ) )
3432sneqd 4028 . . . . . . . 8  |-  ( ph  ->  { ( 2nd `  <. X ,  F ,  Y >. ) }  =  { Y } )
3534fveq2d 5852 . . . . . . 7  |-  ( ph  ->  ( N `  {
( 2nd `  <. X ,  F ,  Y >. ) } )  =  ( N `  { Y } ) )
3635fveq2d 5852 . . . . . 6  |-  ( ph  ->  ( M `  ( N `  { ( 2nd `  <. X ,  F ,  Y >. ) } ) )  =  ( M `
 ( N `  { Y } ) ) )
3736eqeq1d 2456 . . . . 5  |-  ( ph  ->  ( ( M `  ( N `  { ( 2nd `  <. X ,  F ,  Y >. ) } ) )  =  ( J `  {
h } )  <->  ( M `  ( N `  { Y } ) )  =  ( J `  {
h } ) ) )
38 mapdh.x . . . . . . . . . . 11  |-  ( ph  ->  X  e.  A )
39 mapdh.f . . . . . . . . . . 11  |-  ( ph  ->  F  e.  B )
40 ot1stg 6787 . . . . . . . . . . 11  |-  ( ( X  e.  A  /\  F  e.  B  /\  Y  e.  E )  ->  ( 1st `  ( 1st `  <. X ,  F ,  Y >. ) )  =  X )
4138, 39, 30, 40syl3anc 1226 . . . . . . . . . 10  |-  ( ph  ->  ( 1st `  ( 1st `  <. X ,  F ,  Y >. ) )  =  X )
4241, 32oveq12d 6288 . . . . . . . . 9  |-  ( ph  ->  ( ( 1st `  ( 1st `  <. X ,  F ,  Y >. ) )  .-  ( 2nd `  <. X ,  F ,  Y >. ) )  =  ( X 
.-  Y ) )
4342sneqd 4028 . . . . . . . 8  |-  ( ph  ->  { ( ( 1st `  ( 1st `  <. X ,  F ,  Y >. ) )  .-  ( 2nd `  <. X ,  F ,  Y >. ) ) }  =  { ( X 
.-  Y ) } )
4443fveq2d 5852 . . . . . . 7  |-  ( ph  ->  ( N `  {
( ( 1st `  ( 1st `  <. X ,  F ,  Y >. ) )  .-  ( 2nd `  <. X ,  F ,  Y >. ) ) } )  =  ( N `  {
( X  .-  Y
) } ) )
4544fveq2d 5852 . . . . . 6  |-  ( ph  ->  ( M `  ( N `  { (
( 1st `  ( 1st `  <. X ,  F ,  Y >. ) )  .-  ( 2nd `  <. X ,  F ,  Y >. ) ) } ) )  =  ( M `  ( N `  { ( X  .-  Y ) } ) ) )
46 ot2ndg 6788 . . . . . . . . . 10  |-  ( ( X  e.  A  /\  F  e.  B  /\  Y  e.  E )  ->  ( 2nd `  ( 1st `  <. X ,  F ,  Y >. ) )  =  F )
4738, 39, 30, 46syl3anc 1226 . . . . . . . . 9  |-  ( ph  ->  ( 2nd `  ( 1st `  <. X ,  F ,  Y >. ) )  =  F )
4847oveq1d 6285 . . . . . . . 8  |-  ( ph  ->  ( ( 2nd `  ( 1st `  <. X ,  F ,  Y >. ) ) R h )  =  ( F R h ) )
4948sneqd 4028 . . . . . . 7  |-  ( ph  ->  { ( ( 2nd `  ( 1st `  <. X ,  F ,  Y >. ) ) R h ) }  =  {
( F R h ) } )
5049fveq2d 5852 . . . . . 6  |-  ( ph  ->  ( J `  {
( ( 2nd `  ( 1st `  <. X ,  F ,  Y >. ) ) R h ) } )  =  ( J `  { ( F R h ) } ) )
5145, 50eqeq12d 2476 . . . . 5  |-  ( ph  ->  ( ( M `  ( N `  { ( ( 1st `  ( 1st `  <. X ,  F ,  Y >. ) )  .-  ( 2nd `  <. X ,  F ,  Y >. ) ) } ) )  =  ( J `  { ( ( 2nd `  ( 1st `  <. X ,  F ,  Y >. ) ) R h ) } )  <->  ( M `  ( N `  {
( X  .-  Y
) } ) )  =  ( J `  { ( F R h ) } ) ) )
5237, 51anbi12d 708 . . . 4  |-  ( ph  ->  ( ( ( M `
 ( N `  { ( 2nd `  <. X ,  F ,  Y >. ) } ) )  =  ( J `  { h } )  /\  ( M `  ( N `  { ( ( 1st `  ( 1st `  <. X ,  F ,  Y >. ) )  .-  ( 2nd `  <. X ,  F ,  Y >. ) ) } ) )  =  ( J `  { ( ( 2nd `  ( 1st `  <. X ,  F ,  Y >. ) ) R h ) } ) )  <-> 
( ( M `  ( N `  { Y } ) )  =  ( J `  {
h } )  /\  ( M `  ( N `
 { ( X 
.-  Y ) } ) )  =  ( J `  { ( F R h ) } ) ) ) )
5352riotabidv 6234 . . 3  |-  ( ph  ->  ( iota_ h  e.  D  ( ( M `  ( N `  { ( 2nd `  <. X ,  F ,  Y >. ) } ) )  =  ( J `  {
h } )  /\  ( M `  ( N `
 { ( ( 1st `  ( 1st `  <. X ,  F ,  Y >. ) )  .-  ( 2nd `  <. X ,  F ,  Y >. ) ) } ) )  =  ( J `  { ( ( 2nd `  ( 1st `  <. X ,  F ,  Y >. ) ) R h ) } ) ) )  =  ( iota_ h  e.  D  ( ( M `  ( N `
 { Y }
) )  =  ( J `  { h } )  /\  ( M `  ( N `  { ( X  .-  Y ) } ) )  =  ( J `
 { ( F R h ) } ) ) ) )
5433, 53ifbieq2d 3954 . 2  |-  ( ph  ->  if ( ( 2nd `  <. X ,  F ,  Y >. )  =  .0. 
,  Q ,  (
iota_ h  e.  D  ( ( M `  ( N `  { ( 2nd `  <. X ,  F ,  Y >. ) } ) )  =  ( J `  {
h } )  /\  ( M `  ( N `
 { ( ( 1st `  ( 1st `  <. X ,  F ,  Y >. ) )  .-  ( 2nd `  <. X ,  F ,  Y >. ) ) } ) )  =  ( J `  { ( ( 2nd `  ( 1st `  <. X ,  F ,  Y >. ) ) R h ) } ) ) ) )  =  if ( Y  =  .0. 
,  Q ,  (
iota_ h  e.  D  ( ( M `  ( N `  { Y } ) )  =  ( J `  {
h } )  /\  ( M `  ( N `
 { ( X 
.-  Y ) } ) )  =  ( J `  { ( F R h ) } ) ) ) ) )
5529, 54eqtrd 2495 1  |-  ( ph  ->  ( I `  <. X ,  F ,  Y >. )  =  if ( Y  =  .0.  ,  Q ,  ( iota_ h  e.  D  ( ( M `  ( N `
 { Y }
) )  =  ( J `  { h } )  /\  ( M `  ( N `  { ( X  .-  Y ) } ) )  =  ( J `
 { ( F R h ) } ) ) ) ) )
Colors of variables: wff setvar class
Syntax hints:    -> wi 4    /\ wa 367    = wceq 1398    e. wcel 1823   _Vcvv 3106   ifcif 3929   {csn 4016   <.cotp 4024    |-> cmpt 4497   ` cfv 5570   iota_crio 6231  (class class class)co 6270   1stc1st 6771   2ndc2nd 6772   0gc0g 14932
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1623  ax-4 1636  ax-5 1709  ax-6 1752  ax-7 1795  ax-8 1825  ax-9 1827  ax-10 1842  ax-11 1847  ax-12 1859  ax-13 2004  ax-ext 2432  ax-sep 4560  ax-nul 4568  ax-pow 4615  ax-pr 4676  ax-un 6565
This theorem depends on definitions:  df-bi 185  df-or 368  df-an 369  df-3an 973  df-tru 1401  df-ex 1618  df-nf 1622  df-sb 1745  df-eu 2288  df-mo 2289  df-clab 2440  df-cleq 2446  df-clel 2449  df-nfc 2604  df-ne 2651  df-ral 2809  df-rex 2810  df-rab 2813  df-v 3108  df-sbc 3325  df-dif 3464  df-un 3466  df-in 3468  df-ss 3475  df-nul 3784  df-if 3930  df-sn 4017  df-pr 4019  df-op 4023  df-ot 4025  df-uni 4236  df-br 4440  df-opab 4498  df-mpt 4499  df-id 4784  df-xp 4994  df-rel 4995  df-cnv 4996  df-co 4997  df-dm 4998  df-rn 4999  df-iota 5534  df-fun 5572  df-fv 5578  df-riota 6232  df-ov 6273  df-1st 6773  df-2nd 6774
This theorem is referenced by:  mapdhval0  37868  mapdhval2  37869  hdmap1valc  37947
  Copyright terms: Public domain W3C validator