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

Theorem hdmap1cbv 35445
Description: Frequently used lemma to change bound variables in  L hypothesis. (Contributed by NM, 15-May-2015.)
Hypothesis
Ref Expression
hdmap1cbv.l  |-  L  =  ( 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 ) } ) ) ) ) )
Assertion
Ref Expression
hdmap1cbv  |-  L  =  ( y  e.  _V  |->  if ( ( 2nd `  y
)  =  .0.  ,  Q ,  ( iota_ i  e.  D  ( ( M `  ( N `
 { ( 2nd `  y ) } ) )  =  ( J `
 { i } )  /\  ( M `
 ( N `  { ( ( 1st `  ( 1st `  y
) )  .-  ( 2nd `  y ) ) } ) )  =  ( J `  {
( ( 2nd `  ( 1st `  y ) ) R i ) } ) ) ) ) )
Distinct variable groups:    h, i, x, y, D    h, J, i, x, y    h, M, i, x, y    h, N, i, x, y    x,  .0. , y    x, Q, y    R, h, i, x, y    .- , h, i, x, y
Allowed substitution hints:    Q( h, i)    L( x, y, h, i)    .0. ( h, i)

Proof of Theorem hdmap1cbv
StepHypRef Expression
1 hdmap1cbv.l . 2  |-  L  =  ( 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 ) } ) ) ) ) )
2 fveq2 5689 . . . . 5  |-  ( x  =  y  ->  ( 2nd `  x )  =  ( 2nd `  y
) )
32eqeq1d 2449 . . . 4  |-  ( x  =  y  ->  (
( 2nd `  x
)  =  .0.  <->  ( 2nd `  y )  =  .0.  ) )
42sneqd 3887 . . . . . . . . 9  |-  ( x  =  y  ->  { ( 2nd `  x ) }  =  { ( 2nd `  y ) } )
54fveq2d 5693 . . . . . . . 8  |-  ( x  =  y  ->  ( N `  { ( 2nd `  x ) } )  =  ( N `
 { ( 2nd `  y ) } ) )
65fveq2d 5693 . . . . . . 7  |-  ( x  =  y  ->  ( M `  ( N `  { ( 2nd `  x
) } ) )  =  ( M `  ( N `  { ( 2nd `  y ) } ) ) )
76eqeq1d 2449 . . . . . 6  |-  ( x  =  y  ->  (
( M `  ( N `  { ( 2nd `  x ) } ) )  =  ( J `  { h } )  <->  ( M `  ( N `  {
( 2nd `  y
) } ) )  =  ( J `  { h } ) ) )
8 fveq2 5689 . . . . . . . . . . . 12  |-  ( x  =  y  ->  ( 1st `  x )  =  ( 1st `  y
) )
98fveq2d 5693 . . . . . . . . . . 11  |-  ( x  =  y  ->  ( 1st `  ( 1st `  x
) )  =  ( 1st `  ( 1st `  y ) ) )
109, 2oveq12d 6107 . . . . . . . . . 10  |-  ( x  =  y  ->  (
( 1st `  ( 1st `  x ) ) 
.-  ( 2nd `  x
) )  =  ( ( 1st `  ( 1st `  y ) ) 
.-  ( 2nd `  y
) ) )
1110sneqd 3887 . . . . . . . . 9  |-  ( x  =  y  ->  { ( ( 1st `  ( 1st `  x ) ) 
.-  ( 2nd `  x
) ) }  =  { ( ( 1st `  ( 1st `  y
) )  .-  ( 2nd `  y ) ) } )
1211fveq2d 5693 . . . . . . . 8  |-  ( x  =  y  ->  ( N `  { (
( 1st `  ( 1st `  x ) ) 
.-  ( 2nd `  x
) ) } )  =  ( N `  { ( ( 1st `  ( 1st `  y
) )  .-  ( 2nd `  y ) ) } ) )
1312fveq2d 5693 . . . . . . 7  |-  ( x  =  y  ->  ( M `  ( N `  { ( ( 1st `  ( 1st `  x
) )  .-  ( 2nd `  x ) ) } ) )  =  ( M `  ( N `  { (
( 1st `  ( 1st `  y ) ) 
.-  ( 2nd `  y
) ) } ) ) )
148fveq2d 5693 . . . . . . . . . 10  |-  ( x  =  y  ->  ( 2nd `  ( 1st `  x
) )  =  ( 2nd `  ( 1st `  y ) ) )
1514oveq1d 6104 . . . . . . . . 9  |-  ( x  =  y  ->  (
( 2nd `  ( 1st `  x ) ) R h )  =  ( ( 2nd `  ( 1st `  y ) ) R h ) )
1615sneqd 3887 . . . . . . . 8  |-  ( x  =  y  ->  { ( ( 2nd `  ( 1st `  x ) ) R h ) }  =  { ( ( 2nd `  ( 1st `  y ) ) R h ) } )
1716fveq2d 5693 . . . . . . 7  |-  ( x  =  y  ->  ( J `  { (
( 2nd `  ( 1st `  x ) ) R h ) } )  =  ( J `
 { ( ( 2nd `  ( 1st `  y ) ) R h ) } ) )
1813, 17eqeq12d 2455 . . . . . 6  |-  ( x  =  y  ->  (
( M `  ( N `  { (
( 1st `  ( 1st `  x ) ) 
.-  ( 2nd `  x
) ) } ) )  =  ( J `
 { ( ( 2nd `  ( 1st `  x ) ) R h ) } )  <-> 
( M `  ( N `  { (
( 1st `  ( 1st `  y ) ) 
.-  ( 2nd `  y
) ) } ) )  =  ( J `
 { ( ( 2nd `  ( 1st `  y ) ) R h ) } ) ) )
197, 18anbi12d 710 . . . . 5  |-  ( x  =  y  ->  (
( ( M `  ( N `  { ( 2nd `  x ) } ) )  =  ( J `  {
h } )  /\  ( M `  ( N `
 { ( ( 1st `  ( 1st `  x ) )  .-  ( 2nd `  x ) ) } ) )  =  ( J `  { ( ( 2nd `  ( 1st `  x
) ) R h ) } ) )  <-> 
( ( M `  ( N `  { ( 2nd `  y ) } ) )  =  ( J `  {
h } )  /\  ( M `  ( N `
 { ( ( 1st `  ( 1st `  y ) )  .-  ( 2nd `  y ) ) } ) )  =  ( J `  { ( ( 2nd `  ( 1st `  y
) ) R h ) } ) ) ) )
2019riotabidv 6052 . . . 4  |-  ( x  =  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 `  y ) } ) )  =  ( J `  {
h } )  /\  ( M `  ( N `
 { ( ( 1st `  ( 1st `  y ) )  .-  ( 2nd `  y ) ) } ) )  =  ( J `  { ( ( 2nd `  ( 1st `  y
) ) R h ) } ) ) ) )
213, 20ifbieq2d 3812 . . 3  |-  ( x  =  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 `  y )  =  .0. 
,  Q ,  (
iota_ h  e.  D  ( ( M `  ( N `  { ( 2nd `  y ) } ) )  =  ( J `  {
h } )  /\  ( M `  ( N `
 { ( ( 1st `  ( 1st `  y ) )  .-  ( 2nd `  y ) ) } ) )  =  ( J `  { ( ( 2nd `  ( 1st `  y
) ) R h ) } ) ) ) ) )
2221cbvmptv 4381 . 2  |-  ( 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 ) } ) ) ) ) )  =  ( y  e. 
_V  |->  if ( ( 2nd `  y )  =  .0.  ,  Q ,  ( iota_ h  e.  D  ( ( M `
 ( N `  { ( 2nd `  y
) } ) )  =  ( J `  { h } )  /\  ( M `  ( N `  { ( ( 1st `  ( 1st `  y ) ) 
.-  ( 2nd `  y
) ) } ) )  =  ( J `
 { ( ( 2nd `  ( 1st `  y ) ) R h ) } ) ) ) ) )
23 sneq 3885 . . . . . . . 8  |-  ( h  =  i  ->  { h }  =  { i } )
2423fveq2d 5693 . . . . . . 7  |-  ( h  =  i  ->  ( J `  { h } )  =  ( J `  { i } ) )
2524eqeq2d 2452 . . . . . 6  |-  ( h  =  i  ->  (
( M `  ( N `  { ( 2nd `  y ) } ) )  =  ( J `  { h } )  <->  ( M `  ( N `  {
( 2nd `  y
) } ) )  =  ( J `  { i } ) ) )
26 oveq2 6097 . . . . . . . . 9  |-  ( h  =  i  ->  (
( 2nd `  ( 1st `  y ) ) R h )  =  ( ( 2nd `  ( 1st `  y ) ) R i ) )
2726sneqd 3887 . . . . . . . 8  |-  ( h  =  i  ->  { ( ( 2nd `  ( 1st `  y ) ) R h ) }  =  { ( ( 2nd `  ( 1st `  y ) ) R i ) } )
2827fveq2d 5693 . . . . . . 7  |-  ( h  =  i  ->  ( J `  { (
( 2nd `  ( 1st `  y ) ) R h ) } )  =  ( J `
 { ( ( 2nd `  ( 1st `  y ) ) R i ) } ) )
2928eqeq2d 2452 . . . . . 6  |-  ( h  =  i  ->  (
( M `  ( N `  { (
( 1st `  ( 1st `  y ) ) 
.-  ( 2nd `  y
) ) } ) )  =  ( J `
 { ( ( 2nd `  ( 1st `  y ) ) R h ) } )  <-> 
( M `  ( N `  { (
( 1st `  ( 1st `  y ) ) 
.-  ( 2nd `  y
) ) } ) )  =  ( J `
 { ( ( 2nd `  ( 1st `  y ) ) R i ) } ) ) )
3025, 29anbi12d 710 . . . . 5  |-  ( h  =  i  ->  (
( ( M `  ( N `  { ( 2nd `  y ) } ) )  =  ( J `  {
h } )  /\  ( M `  ( N `
 { ( ( 1st `  ( 1st `  y ) )  .-  ( 2nd `  y ) ) } ) )  =  ( J `  { ( ( 2nd `  ( 1st `  y
) ) R h ) } ) )  <-> 
( ( M `  ( N `  { ( 2nd `  y ) } ) )  =  ( J `  {
i } )  /\  ( M `  ( N `
 { ( ( 1st `  ( 1st `  y ) )  .-  ( 2nd `  y ) ) } ) )  =  ( J `  { ( ( 2nd `  ( 1st `  y
) ) R i ) } ) ) ) )
3130cbvriotav 6061 . . . 4  |-  ( iota_ h  e.  D  ( ( M `  ( N `
 { ( 2nd `  y ) } ) )  =  ( J `
 { h }
)  /\  ( M `  ( N `  {
( ( 1st `  ( 1st `  y ) ) 
.-  ( 2nd `  y
) ) } ) )  =  ( J `
 { ( ( 2nd `  ( 1st `  y ) ) R h ) } ) ) )  =  (
iota_ i  e.  D  ( ( M `  ( N `  { ( 2nd `  y ) } ) )  =  ( J `  {
i } )  /\  ( M `  ( N `
 { ( ( 1st `  ( 1st `  y ) )  .-  ( 2nd `  y ) ) } ) )  =  ( J `  { ( ( 2nd `  ( 1st `  y
) ) R i ) } ) ) )
32 ifeq2 3794 . . . 4  |-  ( (
iota_ h  e.  D  ( ( M `  ( N `  { ( 2nd `  y ) } ) )  =  ( J `  {
h } )  /\  ( M `  ( N `
 { ( ( 1st `  ( 1st `  y ) )  .-  ( 2nd `  y ) ) } ) )  =  ( J `  { ( ( 2nd `  ( 1st `  y
) ) R h ) } ) ) )  =  ( iota_ i  e.  D  ( ( M `  ( N `
 { ( 2nd `  y ) } ) )  =  ( J `
 { i } )  /\  ( M `
 ( N `  { ( ( 1st `  ( 1st `  y
) )  .-  ( 2nd `  y ) ) } ) )  =  ( J `  {
( ( 2nd `  ( 1st `  y ) ) R i ) } ) ) )  ->  if ( ( 2nd `  y
)  =  .0.  ,  Q ,  ( iota_ h  e.  D  ( ( M `  ( N `
 { ( 2nd `  y ) } ) )  =  ( J `
 { h }
)  /\  ( M `  ( N `  {
( ( 1st `  ( 1st `  y ) ) 
.-  ( 2nd `  y
) ) } ) )  =  ( J `
 { ( ( 2nd `  ( 1st `  y ) ) R h ) } ) ) ) )  =  if ( ( 2nd `  y )  =  .0. 
,  Q ,  (
iota_ i  e.  D  ( ( M `  ( N `  { ( 2nd `  y ) } ) )  =  ( J `  {
i } )  /\  ( M `  ( N `
 { ( ( 1st `  ( 1st `  y ) )  .-  ( 2nd `  y ) ) } ) )  =  ( J `  { ( ( 2nd `  ( 1st `  y
) ) R i ) } ) ) ) ) )
3331, 32ax-mp 5 . . 3  |-  if ( ( 2nd `  y
)  =  .0.  ,  Q ,  ( iota_ h  e.  D  ( ( M `  ( N `
 { ( 2nd `  y ) } ) )  =  ( J `
 { h }
)  /\  ( M `  ( N `  {
( ( 1st `  ( 1st `  y ) ) 
.-  ( 2nd `  y
) ) } ) )  =  ( J `
 { ( ( 2nd `  ( 1st `  y ) ) R h ) } ) ) ) )  =  if ( ( 2nd `  y )  =  .0. 
,  Q ,  (
iota_ i  e.  D  ( ( M `  ( N `  { ( 2nd `  y ) } ) )  =  ( J `  {
i } )  /\  ( M `  ( N `
 { ( ( 1st `  ( 1st `  y ) )  .-  ( 2nd `  y ) ) } ) )  =  ( J `  { ( ( 2nd `  ( 1st `  y
) ) R i ) } ) ) ) )
3433mpteq2i 4373 . 2  |-  ( y  e.  _V  |->  if ( ( 2nd `  y
)  =  .0.  ,  Q ,  ( iota_ h  e.  D  ( ( M `  ( N `
 { ( 2nd `  y ) } ) )  =  ( J `
 { h }
)  /\  ( M `  ( N `  {
( ( 1st `  ( 1st `  y ) ) 
.-  ( 2nd `  y
) ) } ) )  =  ( J `
 { ( ( 2nd `  ( 1st `  y ) ) R h ) } ) ) ) ) )  =  ( y  e. 
_V  |->  if ( ( 2nd `  y )  =  .0.  ,  Q ,  ( iota_ i  e.  D  ( ( M `
 ( N `  { ( 2nd `  y
) } ) )  =  ( J `  { i } )  /\  ( M `  ( N `  { ( ( 1st `  ( 1st `  y ) ) 
.-  ( 2nd `  y
) ) } ) )  =  ( J `
 { ( ( 2nd `  ( 1st `  y ) ) R i ) } ) ) ) ) )
351, 22, 343eqtri 2465 1  |-  L  =  ( y  e.  _V  |->  if ( ( 2nd `  y
)  =  .0.  ,  Q ,  ( iota_ i  e.  D  ( ( M `  ( N `
 { ( 2nd `  y ) } ) )  =  ( J `
 { i } )  /\  ( M `
 ( N `  { ( ( 1st `  ( 1st `  y
) )  .-  ( 2nd `  y ) ) } ) )  =  ( J `  {
( ( 2nd `  ( 1st `  y ) ) R i ) } ) ) ) ) )
Colors of variables: wff setvar class
Syntax hints:    /\ wa 369    = wceq 1369   _Vcvv 2970   ifcif 3789   {csn 3875    e. cmpt 4348   ` cfv 5416   iota_crio 6049  (class class class)co 6089   1stc1st 6573   2ndc2nd 6574
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-10 1775  ax-11 1780  ax-12 1792  ax-13 1943  ax-ext 2422
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-clab 2428  df-cleq 2434  df-clel 2437  df-nfc 2566  df-ral 2718  df-rex 2719  df-rab 2722  df-v 2972  df-dif 3329  df-un 3331  df-in 3333  df-ss 3340  df-nul 3636  df-if 3790  df-sn 3876  df-pr 3878  df-op 3882  df-uni 4090  df-br 4291  df-opab 4349  df-mpt 4350  df-iota 5379  df-fv 5424  df-riota 6050  df-ov 6092
This theorem is referenced by:  hdmap1valc  35446  hdmap1eu  35468  hdmap1euOLDN  35469
  Copyright terms: Public domain W3C validator