ILE Home Intuitionistic Logic Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  ILE Home  >  Th. List  >  setsslid Unicode version

Theorem setsslid 12444
Description: Value of the structure replacement function at a replaced index. (Contributed by Mario Carneiro, 1-Dec-2014.) (Revised by Jim Kingdon, 24-Jan-2023.)
Hypothesis
Ref Expression
setsslid.e  |-  ( E  = Slot  ( E `  ndx )  /\  ( E `  ndx )  e.  NN )
Assertion
Ref Expression
setsslid  |-  ( ( W  e.  A  /\  C  e.  V )  ->  C  =  ( E `
 ( W sSet  <. ( E `  ndx ) ,  C >. ) ) )

Proof of Theorem setsslid
StepHypRef Expression
1 setsslid.e . . . . 5  |-  ( E  = Slot  ( E `  ndx )  /\  ( E `  ndx )  e.  NN )
21simpri 112 . . . 4  |-  ( E `
 ndx )  e.  NN
3 setsvala 12425 . . . 4  |-  ( ( W  e.  A  /\  ( E `  ndx )  e.  NN  /\  C  e.  V )  ->  ( W sSet  <. ( E `  ndx ) ,  C >. )  =  ( ( W  |`  ( _V  \  {
( E `  ndx ) } ) )  u. 
{ <. ( E `  ndx ) ,  C >. } ) )
42, 3mp3an2 1315 . . 3  |-  ( ( W  e.  A  /\  C  e.  V )  ->  ( W sSet  <. ( E `  ndx ) ,  C >. )  =  ( ( W  |`  ( _V  \  { ( E `
 ndx ) } ) )  u.  { <. ( E `  ndx ) ,  C >. } ) )
54fveq2d 5490 . 2  |-  ( ( W  e.  A  /\  C  e.  V )  ->  ( E `  ( W sSet  <. ( E `  ndx ) ,  C >. ) )  =  ( E `
 ( ( W  |`  ( _V  \  {
( E `  ndx ) } ) )  u. 
{ <. ( E `  ndx ) ,  C >. } ) ) )
61simpli 110 . . 3  |-  E  = Slot  ( E `  ndx )
7 resexg 4924 . . . 4  |-  ( W  e.  A  ->  ( W  |`  ( _V  \  { ( E `  ndx ) } ) )  e.  _V )
8 simpr 109 . . . . . 6  |-  ( ( W  e.  A  /\  C  e.  V )  ->  C  e.  V )
9 opexg 4206 . . . . . 6  |-  ( ( ( E `  ndx )  e.  NN  /\  C  e.  V )  ->  <. ( E `  ndx ) ,  C >.  e.  _V )
102, 8, 9sylancr 411 . . . . 5  |-  ( ( W  e.  A  /\  C  e.  V )  -> 
<. ( E `  ndx ) ,  C >.  e. 
_V )
11 snexg 4163 . . . . 5  |-  ( <.
( E `  ndx ) ,  C >.  e. 
_V  ->  { <. ( E `  ndx ) ,  C >. }  e.  _V )
1210, 11syl 14 . . . 4  |-  ( ( W  e.  A  /\  C  e.  V )  ->  { <. ( E `  ndx ) ,  C >. }  e.  _V )
13 unexg 4421 . . . 4  |-  ( ( ( W  |`  ( _V  \  { ( E `
 ndx ) } ) )  e.  _V  /\ 
{ <. ( E `  ndx ) ,  C >. }  e.  _V )  -> 
( ( W  |`  ( _V  \  { ( E `  ndx ) } ) )  u. 
{ <. ( E `  ndx ) ,  C >. } )  e.  _V )
147, 12, 13syl2an2r 585 . . 3  |-  ( ( W  e.  A  /\  C  e.  V )  ->  ( ( W  |`  ( _V  \  { ( E `  ndx ) } ) )  u. 
{ <. ( E `  ndx ) ,  C >. } )  e.  _V )
152a1i 9 . . 3  |-  ( ( W  e.  A  /\  C  e.  V )  ->  ( E `  ndx )  e.  NN )
166, 14, 15strnfvnd 12414 . 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 ) ) )
17 snidg 3605 . . . . 5  |-  ( ( E `  ndx )  e.  NN  ->  ( E `  ndx )  e.  {
( E `  ndx ) } )
18 fvres 5510 . . . . 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 )
) )
192, 17, 18mp2b 8 . . . 4  |-  ( ( ( ( W  |`  ( _V  \  { ( E `  ndx ) } ) )  u. 
{ <. ( E `  ndx ) ,  C >. } )  |`  { ( E `  ndx ) } ) `  ( E `
 ndx ) )  =  ( ( ( W  |`  ( _V  \  { ( E `  ndx ) } ) )  u.  { <. ( E `  ndx ) ,  C >. } ) `  ( E `  ndx )
)
20 resres 4896 . . . . . . . . 9  |-  ( ( W  |`  ( _V  \  { ( E `  ndx ) } ) )  |`  { ( E `  ndx ) } )  =  ( W  |`  (
( _V  \  {
( E `  ndx ) } )  i^i  {
( E `  ndx ) } ) )
21 incom 3314 . . . . . . . . . . . 12  |-  ( ( _V  \  { ( E `  ndx ) } )  i^i  {
( E `  ndx ) } )  =  ( { ( E `  ndx ) }  i^i  ( _V  \  { ( E `
 ndx ) } ) )
22 disjdif 3481 . . . . . . . . . . . 12  |-  ( { ( E `  ndx ) }  i^i  ( _V  \  { ( E `
 ndx ) } ) )  =  (/)
2321, 22eqtri 2186 . . . . . . . . . . 11  |-  ( ( _V  \  { ( E `  ndx ) } )  i^i  {
( E `  ndx ) } )  =  (/)
2423reseq2i 4881 . . . . . . . . . 10  |-  ( W  |`  ( ( _V  \  { ( E `  ndx ) } )  i^i 
{ ( E `  ndx ) } ) )  =  ( W  |`  (/) )
25 res0 4888 . . . . . . . . . 10  |-  ( W  |`  (/) )  =  (/)
2624, 25eqtri 2186 . . . . . . . . 9  |-  ( W  |`  ( ( _V  \  { ( E `  ndx ) } )  i^i 
{ ( E `  ndx ) } ) )  =  (/)
2720, 26eqtri 2186 . . . . . . . 8  |-  ( ( W  |`  ( _V  \  { ( E `  ndx ) } ) )  |`  { ( E `  ndx ) } )  =  (/)
2827a1i 9 . . . . . . 7  |-  ( ( W  e.  A  /\  C  e.  V )  ->  ( ( W  |`  ( _V  \  { ( E `  ndx ) } ) )  |`  { ( E `  ndx ) } )  =  (/) )
292elexi 2738 . . . . . . . . . 10  |-  ( E `
 ndx )  e. 
_V
308elexd 2739 . . . . . . . . . 10  |-  ( ( W  e.  A  /\  C  e.  V )  ->  C  e.  _V )
31 opelxpi 4636 . . . . . . . . . 10  |-  ( ( ( E `  ndx )  e.  _V  /\  C  e.  _V )  ->  <. ( E `  ndx ) ,  C >.  e.  ( _V  X.  _V ) )
3229, 30, 31sylancr 411 . . . . . . . . 9  |-  ( ( W  e.  A  /\  C  e.  V )  -> 
<. ( E `  ndx ) ,  C >.  e.  ( _V  X.  _V ) )
33 relsng 4707 . . . . . . . . . 10  |-  ( <.
( E `  ndx ) ,  C >.  e. 
_V  ->  ( Rel  { <. ( E `  ndx ) ,  C >. }  <->  <. ( E `  ndx ) ,  C >.  e.  ( _V  X.  _V ) ) )
3410, 33syl 14 . . . . . . . . 9  |-  ( ( W  e.  A  /\  C  e.  V )  ->  ( Rel  { <. ( E `  ndx ) ,  C >. }  <->  <. ( E `
 ndx ) ,  C >.  e.  ( _V  X.  _V ) ) )
3532, 34mpbird 166 . . . . . . . 8  |-  ( ( W  e.  A  /\  C  e.  V )  ->  Rel  { <. ( E `  ndx ) ,  C >. } )
36 dmsnopg 5075 . . . . . . . . . 10  |-  ( C  e.  V  ->  dom  {
<. ( E `  ndx ) ,  C >. }  =  { ( E `
 ndx ) } )
3736adantl 275 . . . . . . . . 9  |-  ( ( W  e.  A  /\  C  e.  V )  ->  dom  { <. ( E `  ndx ) ,  C >. }  =  {
( E `  ndx ) } )
38 eqimss 3196 . . . . . . . . 9  |-  ( dom 
{ <. ( E `  ndx ) ,  C >. }  =  { ( E `
 ndx ) }  ->  dom  { <. ( E `  ndx ) ,  C >. }  C_  { ( E `  ndx ) } )
3937, 38syl 14 . . . . . . . 8  |-  ( ( W  e.  A  /\  C  e.  V )  ->  dom  { <. ( E `  ndx ) ,  C >. }  C_  { ( E `  ndx ) } )
40 relssres 4922 . . . . . . . 8  |-  ( ( Rel  { <. ( E `  ndx ) ,  C >. }  /\  dom  {
<. ( E `  ndx ) ,  C >. } 
C_  { ( E `
 ndx ) } )  ->  ( { <. ( E `  ndx ) ,  C >. }  |`  { ( E `  ndx ) } )  =  { <. ( E `  ndx ) ,  C >. } )
4135, 39, 40syl2anc 409 . . . . . . 7  |-  ( ( W  e.  A  /\  C  e.  V )  ->  ( { <. ( E `  ndx ) ,  C >. }  |`  { ( E `  ndx ) } )  =  { <. ( E `  ndx ) ,  C >. } )
4228, 41uneq12d 3277 . . . . . 6  |-  ( ( W  e.  A  /\  C  e.  V )  ->  ( ( ( W  |`  ( _V  \  {
( E `  ndx ) } ) )  |`  { ( E `  ndx ) } )  u.  ( { <. ( E `  ndx ) ,  C >. }  |`  { ( E `  ndx ) } ) )  =  ( (/)  u.  { <. ( E `  ndx ) ,  C >. } ) )
43 resundir 4898 . . . . . 6  |-  ( ( ( W  |`  ( _V  \  { ( E `
 ndx ) } ) )  u.  { <. ( E `  ndx ) ,  C >. } )  |`  { ( E `  ndx ) } )  =  ( ( ( W  |`  ( _V  \  { ( E `
 ndx ) } ) )  |`  { ( E `  ndx ) } )  u.  ( { <. ( E `  ndx ) ,  C >. }  |`  { ( E `  ndx ) } ) )
44 un0 3442 . . . . . . 7  |-  ( {
<. ( E `  ndx ) ,  C >. }  u.  (/) )  =  { <. ( E `  ndx ) ,  C >. }
45 uncom 3266 . . . . . . 7  |-  ( {
<. ( E `  ndx ) ,  C >. }  u.  (/) )  =  (
(/)  u.  { <. ( E `  ndx ) ,  C >. } )
4644, 45eqtr3i 2188 . . . . . 6  |-  { <. ( E `  ndx ) ,  C >. }  =  (
(/)  u.  { <. ( E `  ndx ) ,  C >. } )
4742, 43, 463eqtr4g 2224 . . . . 5  |-  ( ( W  e.  A  /\  C  e.  V )  ->  ( ( ( W  |`  ( _V  \  {
( E `  ndx ) } ) )  u. 
{ <. ( E `  ndx ) ,  C >. } )  |`  { ( E `  ndx ) } )  =  { <. ( E `  ndx ) ,  C >. } )
4847fveq1d 5488 . . . 4  |-  ( ( W  e.  A  /\  C  e.  V )  ->  ( ( ( ( W  |`  ( _V  \  { ( E `  ndx ) } ) )  u.  { <. ( E `  ndx ) ,  C >. } )  |`  { ( E `  ndx ) } ) `  ( E `  ndx )
)  =  ( {
<. ( E `  ndx ) ,  C >. } `
 ( E `  ndx ) ) )
4919, 48eqtr3id 2213 . . 3  |-  ( ( W  e.  A  /\  C  e.  V )  ->  ( ( ( W  |`  ( _V  \  {
( E `  ndx ) } ) )  u. 
{ <. ( E `  ndx ) ,  C >. } ) `  ( E `
 ndx ) )  =  ( { <. ( E `  ndx ) ,  C >. } `  ( E `  ndx ) ) )
50 fvsng 5681 . . . 4  |-  ( ( ( E `  ndx )  e.  NN  /\  C  e.  V )  ->  ( { <. ( E `  ndx ) ,  C >. } `
 ( E `  ndx ) )  =  C )
512, 8, 50sylancr 411 . . 3  |-  ( ( W  e.  A  /\  C  e.  V )  ->  ( { <. ( E `  ndx ) ,  C >. } `  ( E `  ndx ) )  =  C )
5249, 51eqtrd 2198 . 2  |-  ( ( W  e.  A  /\  C  e.  V )  ->  ( ( ( W  |`  ( _V  \  {
( E `  ndx ) } ) )  u. 
{ <. ( E `  ndx ) ,  C >. } ) `  ( E `
 ndx ) )  =  C )
535, 16, 523eqtrrd 2203 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 103    <-> wb 104    = wceq 1343    e. wcel 2136   _Vcvv 2726    \ cdif 3113    u. cun 3114    i^i cin 3115    C_ wss 3116   (/)c0 3409   {csn 3576   <.cop 3579    X. cxp 4602   dom cdm 4604    |` cres 4606   Rel wrel 4609   ` cfv 5188  (class class class)co 5842   NNcn 8857   ndxcnx 12391   sSet csts 12392  Slot cslot 12393
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-ia1 105  ax-ia2 106  ax-ia3 107  ax-in1 604  ax-in2 605  ax-io 699  ax-5 1435  ax-7 1436  ax-gen 1437  ax-ie1 1481  ax-ie2 1482  ax-8 1492  ax-10 1493  ax-11 1494  ax-i12 1495  ax-bndl 1497  ax-4 1498  ax-17 1514  ax-i9 1518  ax-ial 1522  ax-i5r 1523  ax-13 2138  ax-14 2139  ax-ext 2147  ax-sep 4100  ax-pow 4153  ax-pr 4187  ax-un 4411  ax-setind 4514
This theorem depends on definitions:  df-bi 116  df-3an 970  df-tru 1346  df-fal 1349  df-nf 1449  df-sb 1751  df-eu 2017  df-mo 2018  df-clab 2152  df-cleq 2158  df-clel 2161  df-nfc 2297  df-ne 2337  df-ral 2449  df-rex 2450  df-rab 2453  df-v 2728  df-sbc 2952  df-dif 3118  df-un 3120  df-in 3122  df-ss 3129  df-nul 3410  df-pw 3561  df-sn 3582  df-pr 3583  df-op 3585  df-uni 3790  df-br 3983  df-opab 4044  df-mpt 4045  df-id 4271  df-xp 4610  df-rel 4611  df-cnv 4612  df-co 4613  df-dm 4614  df-rn 4615  df-res 4616  df-iota 5153  df-fun 5190  df-fv 5196  df-ov 5845  df-oprab 5846  df-mpo 5847  df-slot 12398  df-sets 12401
This theorem is referenced by:  setsmstsetg  13121
  Copyright terms: Public domain W3C validator