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

Theorem ressval 13195
Description: Value of structure restriction. (Contributed by Stefan O'Rear, 29-Nov-2014.)
Hypotheses
Ref Expression
ressbas.r  |-  R  =  ( Ws  A )
ressbas.b  |-  B  =  ( Base `  W
)
Assertion
Ref Expression
ressval  |-  ( ( W  e.  X  /\  A  e.  Y )  ->  R  =  if ( B  C_  A ,  W ,  ( W sSet  <.
( Base `  ndx ) ,  ( A  i^i  B
) >. ) ) )

Proof of Theorem ressval
Dummy variables  a  w are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 ressbas.r . 2  |-  R  =  ( Ws  A )
2 elex 2796 . . 3  |-  ( W  e.  X  ->  W  e.  _V )
3 elex 2796 . . 3  |-  ( A  e.  Y  ->  A  e.  _V )
4 simpl 443 . . . . 5  |-  ( ( W  e.  _V  /\  A  e.  _V )  ->  W  e.  _V )
5 ovex 5883 . . . . 5  |-  ( W sSet  <. ( Base `  ndx ) ,  ( A  i^i  B ) >. )  e.  _V
6 ifcl 3601 . . . . 5  |-  ( ( W  e.  _V  /\  ( W sSet  <. ( Base `  ndx ) ,  ( A  i^i  B )
>. )  e.  _V )  ->  if ( B 
C_  A ,  W ,  ( W sSet  <. (
Base `  ndx ) ,  ( A  i^i  B
) >. ) )  e. 
_V )
74, 5, 6sylancl 643 . . . 4  |-  ( ( W  e.  _V  /\  A  e.  _V )  ->  if ( B  C_  A ,  W , 
( W sSet  <. ( Base `  ndx ) ,  ( A  i^i  B )
>. ) )  e.  _V )
8 simpl 443 . . . . . . . . 9  |-  ( ( w  =  W  /\  a  =  A )  ->  w  =  W )
98fveq2d 5529 . . . . . . . 8  |-  ( ( w  =  W  /\  a  =  A )  ->  ( Base `  w
)  =  ( Base `  W ) )
10 ressbas.b . . . . . . . 8  |-  B  =  ( Base `  W
)
119, 10syl6eqr 2333 . . . . . . 7  |-  ( ( w  =  W  /\  a  =  A )  ->  ( Base `  w
)  =  B )
12 simpr 447 . . . . . . 7  |-  ( ( w  =  W  /\  a  =  A )  ->  a  =  A )
1311, 12sseq12d 3207 . . . . . 6  |-  ( ( w  =  W  /\  a  =  A )  ->  ( ( Base `  w
)  C_  a  <->  B  C_  A
) )
1412, 11ineq12d 3371 . . . . . . . 8  |-  ( ( w  =  W  /\  a  =  A )  ->  ( a  i^i  ( Base `  w ) )  =  ( A  i^i  B ) )
1514opeq2d 3803 . . . . . . 7  |-  ( ( w  =  W  /\  a  =  A )  -> 
<. ( Base `  ndx ) ,  ( a  i^i  ( Base `  w
) ) >.  =  <. (
Base `  ndx ) ,  ( A  i^i  B
) >. )
168, 15oveq12d 5876 . . . . . 6  |-  ( ( w  =  W  /\  a  =  A )  ->  ( w sSet  <. ( Base `  ndx ) ,  ( a  i^i  ( Base `  w ) )
>. )  =  ( W sSet  <. ( Base `  ndx ) ,  ( A  i^i  B ) >. )
)
1713, 8, 16ifbieq12d 3587 . . . . 5  |-  ( ( w  =  W  /\  a  =  A )  ->  if ( ( Base `  w )  C_  a ,  w ,  ( w sSet  <. ( Base `  ndx ) ,  ( a  i^i  ( Base `  w
) ) >. )
)  =  if ( B  C_  A ,  W ,  ( W sSet  <.
( Base `  ndx ) ,  ( A  i^i  B
) >. ) ) )
18 df-ress 13155 . . . . 5  |-s  =  ( w  e.  _V ,  a  e. 
_V  |->  if ( (
Base `  w )  C_  a ,  w ,  ( w sSet  <. ( Base `  ndx ) ,  ( a  i^i  ( Base `  w ) )
>. ) ) )
1917, 18ovmpt2ga 5977 . . . 4  |-  ( ( W  e.  _V  /\  A  e.  _V  /\  if ( B  C_  A ,  W ,  ( W sSet  <.
( Base `  ndx ) ,  ( A  i^i  B
) >. ) )  e. 
_V )  ->  ( Ws  A )  =  if ( B  C_  A ,  W ,  ( W sSet  <. ( Base `  ndx ) ,  ( A  i^i  B ) >. )
) )
207, 19mpd3an3 1278 . . 3  |-  ( ( W  e.  _V  /\  A  e.  _V )  ->  ( Ws  A )  =  if ( B  C_  A ,  W ,  ( W sSet  <. ( Base `  ndx ) ,  ( A  i^i  B ) >. )
) )
212, 3, 20syl2an 463 . 2  |-  ( ( W  e.  X  /\  A  e.  Y )  ->  ( Ws  A )  =  if ( B  C_  A ,  W ,  ( W sSet  <. ( Base `  ndx ) ,  ( A  i^i  B ) >. )
) )
221, 21syl5eq 2327 1  |-  ( ( W  e.  X  /\  A  e.  Y )  ->  R  =  if ( B  C_  A ,  W ,  ( W sSet  <.
( Base `  ndx ) ,  ( A  i^i  B
) >. ) ) )
Colors of variables: wff set class
Syntax hints:    -> wi 4    /\ wa 358    = wceq 1623    e. wcel 1684   _Vcvv 2788    i^i cin 3151    C_ wss 3152   ifcif 3565   <.cop 3643   ` cfv 5255  (class class class)co 5858   ndxcnx 13145   sSet csts 13146   Basecbs 13148   ↾s cress 13149
This theorem is referenced by:  ressid2  13196  ressval2  13197  wunress  13207
This theorem was proved from axioms:  ax-1 5  ax-2 6  ax-3 7  ax-mp 8  ax-gen 1533  ax-5 1544  ax-17 1603  ax-9 1635  ax-8 1643  ax-14 1688  ax-6 1703  ax-7 1708  ax-11 1715  ax-12 1866  ax-ext 2264  ax-sep 4141  ax-nul 4149  ax-pr 4214
This theorem depends on definitions:  df-bi 177  df-or 359  df-an 360  df-3an 936  df-tru 1310  df-ex 1529  df-nf 1532  df-sb 1630  df-eu 2147  df-mo 2148  df-clab 2270  df-cleq 2276  df-clel 2279  df-nfc 2408  df-ne 2448  df-ral 2548  df-rex 2549  df-rab 2552  df-v 2790  df-sbc 2992  df-dif 3155  df-un 3157  df-in 3159  df-ss 3166  df-nul 3456  df-if 3566  df-sn 3646  df-pr 3647  df-op 3649  df-uni 3828  df-br 4024  df-opab 4078  df-id 4309  df-xp 4695  df-rel 4696  df-cnv 4697  df-co 4698  df-dm 4699  df-iota 5219  df-fun 5257  df-fv 5263  df-ov 5861  df-oprab 5862  df-mpt2 5863  df-ress 13155
  Copyright terms: Public domain W3C validator