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

Theorem setsid 13203
Description: Value of the structure replacement function at a replaced index. (Contributed by Mario Carneiro, 1-Dec-2014.) (Revised by Mario Carneiro, 30-Apr-2015.)
Hypothesis
Ref Expression
setsid.e  |-  E  = Slot  ( E `  ndx )
Assertion
Ref Expression
setsid  |-  ( ( W  e.  A  /\  C  e.  V )  ->  C  =  ( E `
 ( W sSet  <. ( E `  ndx ) ,  C >. ) ) )

Proof of Theorem setsid
StepHypRef Expression
1 setsval 13188 . . 3  |-  ( ( W  e.  A  /\  C  e.  V )  ->  ( W sSet  <. ( E `  ndx ) ,  C >. )  =  ( ( W  |`  ( _V  \  { ( E `
 ndx ) } ) )  u.  { <. ( E `  ndx ) ,  C >. } ) )
21fveq2d 5545 . 2  |-  ( ( W  e.  A  /\  C  e.  V )  ->  ( E `  ( W sSet  <. ( E `  ndx ) ,  C >. ) )  =  ( E `
 ( ( W  |`  ( _V  \  {
( E `  ndx ) } ) )  u. 
{ <. ( E `  ndx ) ,  C >. } ) ) )
3 setsid.e . . 3  |-  E  = Slot  ( E `  ndx )
4 resexg 5010 . . . . 5  |-  ( W  e.  A  ->  ( W  |`  ( _V  \  { ( E `  ndx ) } ) )  e.  _V )
54adantr 451 . . . 4  |-  ( ( W  e.  A  /\  C  e.  V )  ->  ( W  |`  ( _V  \  { ( E `
 ndx ) } ) )  e.  _V )
6 snex 4232 . . . 4  |-  { <. ( E `  ndx ) ,  C >. }  e.  _V
7 unexg 4537 . . . 4  |-  ( ( ( W  |`  ( _V  \  { ( E `
 ndx ) } ) )  e.  _V  /\ 
{ <. ( E `  ndx ) ,  C >. }  e.  _V )  -> 
( ( W  |`  ( _V  \  { ( E `  ndx ) } ) )  u. 
{ <. ( E `  ndx ) ,  C >. } )  e.  _V )
85, 6, 7sylancl 643 . . 3  |-  ( ( W  e.  A  /\  C  e.  V )  ->  ( ( W  |`  ( _V  \  { ( E `  ndx ) } ) )  u. 
{ <. ( E `  ndx ) ,  C >. } )  e.  _V )
93, 8strfvnd 13179 . 2  |-  ( ( W  e.  A  /\  C  e.  V )  ->  ( E `  (
( W  |`  ( _V  \  { ( E `
 ndx ) } ) )  u.  { <. ( E `  ndx ) ,  C >. } ) )  =  ( ( ( W  |`  ( _V  \  { ( E `  ndx ) } ) )  u. 
{ <. ( E `  ndx ) ,  C >. } ) `  ( E `
 ndx ) ) )
10 fvex 5555 . . . . . 6  |-  ( E `
 ndx )  e. 
_V
1110snid 3680 . . . . 5  |-  ( E `
 ndx )  e. 
{ ( E `  ndx ) }
12 fvres 5558 . . . . 5  |-  ( ( E `  ndx )  e.  { ( E `  ndx ) }  ->  (
( ( ( W  |`  ( _V  \  {
( E `  ndx ) } ) )  u. 
{ <. ( E `  ndx ) ,  C >. } )  |`  { ( E `  ndx ) } ) `  ( E `
 ndx ) )  =  ( ( ( W  |`  ( _V  \  { ( E `  ndx ) } ) )  u.  { <. ( E `  ndx ) ,  C >. } ) `  ( E `  ndx )
) )
1311, 12ax-mp 8 . . . 4  |-  ( ( ( ( W  |`  ( _V  \  { ( E `  ndx ) } ) )  u. 
{ <. ( E `  ndx ) ,  C >. } )  |`  { ( E `  ndx ) } ) `  ( E `
 ndx ) )  =  ( ( ( W  |`  ( _V  \  { ( E `  ndx ) } ) )  u.  { <. ( E `  ndx ) ,  C >. } ) `  ( E `  ndx )
)
14 resres 4984 . . . . . . . . 9  |-  ( ( W  |`  ( _V  \  { ( E `  ndx ) } ) )  |`  { ( E `  ndx ) } )  =  ( W  |`  (
( _V  \  {
( E `  ndx ) } )  i^i  {
( E `  ndx ) } ) )
15 incom 3374 . . . . . . . . . . . 12  |-  ( ( _V  \  { ( E `  ndx ) } )  i^i  {
( E `  ndx ) } )  =  ( { ( E `  ndx ) }  i^i  ( _V  \  { ( E `
 ndx ) } ) )
16 disjdif 3539 . . . . . . . . . . . 12  |-  ( { ( E `  ndx ) }  i^i  ( _V  \  { ( E `
 ndx ) } ) )  =  (/)
1715, 16eqtri 2316 . . . . . . . . . . 11  |-  ( ( _V  \  { ( E `  ndx ) } )  i^i  {
( E `  ndx ) } )  =  (/)
1817reseq2i 4968 . . . . . . . . . 10  |-  ( W  |`  ( ( _V  \  { ( E `  ndx ) } )  i^i 
{ ( E `  ndx ) } ) )  =  ( W  |`  (/) )
19 res0 4975 . . . . . . . . . 10  |-  ( W  |`  (/) )  =  (/)
2018, 19eqtri 2316 . . . . . . . . 9  |-  ( W  |`  ( ( _V  \  { ( E `  ndx ) } )  i^i 
{ ( E `  ndx ) } ) )  =  (/)
2114, 20eqtri 2316 . . . . . . . 8  |-  ( ( W  |`  ( _V  \  { ( E `  ndx ) } ) )  |`  { ( E `  ndx ) } )  =  (/)
2221a1i 10 . . . . . . 7  |-  ( ( W  e.  A  /\  C  e.  V )  ->  ( ( W  |`  ( _V  \  { ( E `  ndx ) } ) )  |`  { ( E `  ndx ) } )  =  (/) )
23 elex 2809 . . . . . . . . . . 11  |-  ( C  e.  V  ->  C  e.  _V )
2423adantl 452 . . . . . . . . . 10  |-  ( ( W  e.  A  /\  C  e.  V )  ->  C  e.  _V )
25 opelxpi 4737 . . . . . . . . . 10  |-  ( ( ( E `  ndx )  e.  _V  /\  C  e.  _V )  ->  <. ( E `  ndx ) ,  C >.  e.  ( _V  X.  _V ) )
2610, 24, 25sylancr 644 . . . . . . . . 9  |-  ( ( W  e.  A  /\  C  e.  V )  -> 
<. ( E `  ndx ) ,  C >.  e.  ( _V  X.  _V ) )
27 opex 4253 . . . . . . . . . 10  |-  <. ( E `  ndx ) ,  C >.  e.  _V
2827relsn 4806 . . . . . . . . 9  |-  ( Rel 
{ <. ( E `  ndx ) ,  C >. }  <->  <. ( E `  ndx ) ,  C >.  e.  ( _V  X.  _V ) )
2926, 28sylibr 203 . . . . . . . 8  |-  ( ( W  e.  A  /\  C  e.  V )  ->  Rel  { <. ( E `  ndx ) ,  C >. } )
30 dmsnopss 5161 . . . . . . . 8  |-  dom  { <. ( E `  ndx ) ,  C >. } 
C_  { ( E `
 ndx ) }
31 relssres 5008 . . . . . . . 8  |-  ( ( Rel  { <. ( E `  ndx ) ,  C >. }  /\  dom  {
<. ( E `  ndx ) ,  C >. } 
C_  { ( E `
 ndx ) } )  ->  ( { <. ( E `  ndx ) ,  C >. }  |`  { ( E `  ndx ) } )  =  { <. ( E `  ndx ) ,  C >. } )
3229, 30, 31sylancl 643 . . . . . . 7  |-  ( ( W  e.  A  /\  C  e.  V )  ->  ( { <. ( E `  ndx ) ,  C >. }  |`  { ( E `  ndx ) } )  =  { <. ( E `  ndx ) ,  C >. } )
3322, 32uneq12d 3343 . . . . . 6  |-  ( ( W  e.  A  /\  C  e.  V )  ->  ( ( ( W  |`  ( _V  \  {
( E `  ndx ) } ) )  |`  { ( E `  ndx ) } )  u.  ( { <. ( E `  ndx ) ,  C >. }  |`  { ( E `  ndx ) } ) )  =  ( (/)  u.  { <. ( E `  ndx ) ,  C >. } ) )
34 resundir 4986 . . . . . 6  |-  ( ( ( W  |`  ( _V  \  { ( E `
 ndx ) } ) )  u.  { <. ( E `  ndx ) ,  C >. } )  |`  { ( E `  ndx ) } )  =  ( ( ( W  |`  ( _V  \  { ( E `
 ndx ) } ) )  |`  { ( E `  ndx ) } )  u.  ( { <. ( E `  ndx ) ,  C >. }  |`  { ( E `  ndx ) } ) )
35 un0 3492 . . . . . . 7  |-  ( {
<. ( E `  ndx ) ,  C >. }  u.  (/) )  =  { <. ( E `  ndx ) ,  C >. }
36 uncom 3332 . . . . . . 7  |-  ( {
<. ( E `  ndx ) ,  C >. }  u.  (/) )  =  (
(/)  u.  { <. ( E `  ndx ) ,  C >. } )
3735, 36eqtr3i 2318 . . . . . 6  |-  { <. ( E `  ndx ) ,  C >. }  =  (
(/)  u.  { <. ( E `  ndx ) ,  C >. } )
3833, 34, 373eqtr4g 2353 . . . . 5  |-  ( ( W  e.  A  /\  C  e.  V )  ->  ( ( ( W  |`  ( _V  \  {
( E `  ndx ) } ) )  u. 
{ <. ( E `  ndx ) ,  C >. } )  |`  { ( E `  ndx ) } )  =  { <. ( E `  ndx ) ,  C >. } )
3938fveq1d 5543 . . . 4  |-  ( ( W  e.  A  /\  C  e.  V )  ->  ( ( ( ( W  |`  ( _V  \  { ( E `  ndx ) } ) )  u.  { <. ( E `  ndx ) ,  C >. } )  |`  { ( E `  ndx ) } ) `  ( E `  ndx )
)  =  ( {
<. ( E `  ndx ) ,  C >. } `
 ( E `  ndx ) ) )
4013, 39syl5eqr 2342 . . 3  |-  ( ( W  e.  A  /\  C  e.  V )  ->  ( ( ( W  |`  ( _V  \  {
( E `  ndx ) } ) )  u. 
{ <. ( E `  ndx ) ,  C >. } ) `  ( E `
 ndx ) )  =  ( { <. ( E `  ndx ) ,  C >. } `  ( E `  ndx ) ) )
4110a1i 10 . . . 4  |-  ( ( W  e.  A  /\  C  e.  V )  ->  ( E `  ndx )  e.  _V )
42 fvsng 5730 . . . 4  |-  ( ( ( E `  ndx )  e.  _V  /\  C  e.  V )  ->  ( { <. ( E `  ndx ) ,  C >. } `
 ( E `  ndx ) )  =  C )
4341, 42sylancom 648 . . 3  |-  ( ( W  e.  A  /\  C  e.  V )  ->  ( { <. ( E `  ndx ) ,  C >. } `  ( E `  ndx ) )  =  C )
4440, 43eqtrd 2328 . 2  |-  ( ( W  e.  A  /\  C  e.  V )  ->  ( ( ( W  |`  ( _V  \  {
( E `  ndx ) } ) )  u. 
{ <. ( E `  ndx ) ,  C >. } ) `  ( E `
 ndx ) )  =  C )
452, 9, 443eqtrrd 2333 1  |-  ( ( W  e.  A  /\  C  e.  V )  ->  C  =  ( E `
 ( W sSet  <. ( E `  ndx ) ,  C >. ) ) )
Colors of variables: wff set class
Syntax hints:    -> wi 4    /\ wa 358    = wceq 1632    e. wcel 1696   _Vcvv 2801    \ cdif 3162    u. cun 3163    i^i cin 3164    C_ wss 3165   (/)c0 3468   {csn 3653   <.cop 3656    X. cxp 4703   dom cdm 4705    |` cres 4707   Rel wrel 4710   ` cfv 5271  (class class class)co 5874   ndxcnx 13161   sSet csts 13162  Slot cslot 13163
This theorem is referenced by:  ressbas  13214  oppchomfval  13633  oppccofval  13635  reschom  13723  oduleval  14251  oppgplusfval  14837  mgpplusg  15345  opprmulfval  15423  srasca  15950  sravsca  15951  opsrle  16233  zlmsca  16491  zlmvsca  16492  znle  16506  thloc  16615  setsmstset  18039  tngds  18180  tngtset  18181  matmulr  27570  hlhilnvl  32765
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-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-res 4717  df-iota 5235  df-fun 5273  df-fv 5279  df-ov 5877  df-oprab 5878  df-mpt2 5879  df-slot 13168  df-sets 13170
  Copyright terms: Public domain W3C validator