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

Theorem setsid 16532
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 𝐸 = Slot (𝐸‘ndx)
Assertion
Ref Expression
setsid ((𝑊𝐴𝐶𝑉) → 𝐶 = (𝐸‘(𝑊 sSet ⟨(𝐸‘ndx), 𝐶⟩)))

Proof of Theorem setsid
StepHypRef Expression
1 setsval 16507 . . 3 ((𝑊𝐴𝐶𝑉) → (𝑊 sSet ⟨(𝐸‘ndx), 𝐶⟩) = ((𝑊 ↾ (V ∖ {(𝐸‘ndx)})) ∪ {⟨(𝐸‘ndx), 𝐶⟩}))
21fveq2d 6668 . 2 ((𝑊𝐴𝐶𝑉) → (𝐸‘(𝑊 sSet ⟨(𝐸‘ndx), 𝐶⟩)) = (𝐸‘((𝑊 ↾ (V ∖ {(𝐸‘ndx)})) ∪ {⟨(𝐸‘ndx), 𝐶⟩})))
3 setsid.e . . 3 𝐸 = Slot (𝐸‘ndx)
4 resexg 5892 . . . . 5 (𝑊𝐴 → (𝑊 ↾ (V ∖ {(𝐸‘ndx)})) ∈ V)
54adantr 483 . . . 4 ((𝑊𝐴𝐶𝑉) → (𝑊 ↾ (V ∖ {(𝐸‘ndx)})) ∈ V)
6 snex 5323 . . . 4 {⟨(𝐸‘ndx), 𝐶⟩} ∈ V
7 unexg 7466 . . . 4 (((𝑊 ↾ (V ∖ {(𝐸‘ndx)})) ∈ V ∧ {⟨(𝐸‘ndx), 𝐶⟩} ∈ V) → ((𝑊 ↾ (V ∖ {(𝐸‘ndx)})) ∪ {⟨(𝐸‘ndx), 𝐶⟩}) ∈ V)
85, 6, 7sylancl 588 . . 3 ((𝑊𝐴𝐶𝑉) → ((𝑊 ↾ (V ∖ {(𝐸‘ndx)})) ∪ {⟨(𝐸‘ndx), 𝐶⟩}) ∈ V)
93, 8strfvnd 16496 . 2 ((𝑊𝐴𝐶𝑉) → (𝐸‘((𝑊 ↾ (V ∖ {(𝐸‘ndx)})) ∪ {⟨(𝐸‘ndx), 𝐶⟩})) = (((𝑊 ↾ (V ∖ {(𝐸‘ndx)})) ∪ {⟨(𝐸‘ndx), 𝐶⟩})‘(𝐸‘ndx)))
10 fvex 6677 . . . . . 6 (𝐸‘ndx) ∈ V
1110snid 4594 . . . . 5 (𝐸‘ndx) ∈ {(𝐸‘ndx)}
12 fvres 6683 . . . . 5 ((𝐸‘ndx) ∈ {(𝐸‘ndx)} → ((((𝑊 ↾ (V ∖ {(𝐸‘ndx)})) ∪ {⟨(𝐸‘ndx), 𝐶⟩}) ↾ {(𝐸‘ndx)})‘(𝐸‘ndx)) = (((𝑊 ↾ (V ∖ {(𝐸‘ndx)})) ∪ {⟨(𝐸‘ndx), 𝐶⟩})‘(𝐸‘ndx)))
1311, 12ax-mp 5 . . . 4 ((((𝑊 ↾ (V ∖ {(𝐸‘ndx)})) ∪ {⟨(𝐸‘ndx), 𝐶⟩}) ↾ {(𝐸‘ndx)})‘(𝐸‘ndx)) = (((𝑊 ↾ (V ∖ {(𝐸‘ndx)})) ∪ {⟨(𝐸‘ndx), 𝐶⟩})‘(𝐸‘ndx))
14 resres 5860 . . . . . . . . 9 ((𝑊 ↾ (V ∖ {(𝐸‘ndx)})) ↾ {(𝐸‘ndx)}) = (𝑊 ↾ ((V ∖ {(𝐸‘ndx)}) ∩ {(𝐸‘ndx)}))
15 incom 4177 . . . . . . . . . . . 12 ((V ∖ {(𝐸‘ndx)}) ∩ {(𝐸‘ndx)}) = ({(𝐸‘ndx)} ∩ (V ∖ {(𝐸‘ndx)}))
16 disjdif 4420 . . . . . . . . . . . 12 ({(𝐸‘ndx)} ∩ (V ∖ {(𝐸‘ndx)})) = ∅
1715, 16eqtri 2844 . . . . . . . . . . 11 ((V ∖ {(𝐸‘ndx)}) ∩ {(𝐸‘ndx)}) = ∅
1817reseq2i 5844 . . . . . . . . . 10 (𝑊 ↾ ((V ∖ {(𝐸‘ndx)}) ∩ {(𝐸‘ndx)})) = (𝑊 ↾ ∅)
19 res0 5851 . . . . . . . . . 10 (𝑊 ↾ ∅) = ∅
2018, 19eqtri 2844 . . . . . . . . 9 (𝑊 ↾ ((V ∖ {(𝐸‘ndx)}) ∩ {(𝐸‘ndx)})) = ∅
2114, 20eqtri 2844 . . . . . . . 8 ((𝑊 ↾ (V ∖ {(𝐸‘ndx)})) ↾ {(𝐸‘ndx)}) = ∅
2221a1i 11 . . . . . . 7 ((𝑊𝐴𝐶𝑉) → ((𝑊 ↾ (V ∖ {(𝐸‘ndx)})) ↾ {(𝐸‘ndx)}) = ∅)
23 elex 3512 . . . . . . . . . . 11 (𝐶𝑉𝐶 ∈ V)
2423adantl 484 . . . . . . . . . 10 ((𝑊𝐴𝐶𝑉) → 𝐶 ∈ V)
25 opelxpi 5586 . . . . . . . . . 10 (((𝐸‘ndx) ∈ V ∧ 𝐶 ∈ V) → ⟨(𝐸‘ndx), 𝐶⟩ ∈ (V × V))
2610, 24, 25sylancr 589 . . . . . . . . 9 ((𝑊𝐴𝐶𝑉) → ⟨(𝐸‘ndx), 𝐶⟩ ∈ (V × V))
27 opex 5348 . . . . . . . . . 10 ⟨(𝐸‘ndx), 𝐶⟩ ∈ V
2827relsn 5671 . . . . . . . . 9 (Rel {⟨(𝐸‘ndx), 𝐶⟩} ↔ ⟨(𝐸‘ndx), 𝐶⟩ ∈ (V × V))
2926, 28sylibr 236 . . . . . . . 8 ((𝑊𝐴𝐶𝑉) → Rel {⟨(𝐸‘ndx), 𝐶⟩})
30 dmsnopss 6065 . . . . . . . 8 dom {⟨(𝐸‘ndx), 𝐶⟩} ⊆ {(𝐸‘ndx)}
31 relssres 5887 . . . . . . . 8 ((Rel {⟨(𝐸‘ndx), 𝐶⟩} ∧ dom {⟨(𝐸‘ndx), 𝐶⟩} ⊆ {(𝐸‘ndx)}) → ({⟨(𝐸‘ndx), 𝐶⟩} ↾ {(𝐸‘ndx)}) = {⟨(𝐸‘ndx), 𝐶⟩})
3229, 30, 31sylancl 588 . . . . . . 7 ((𝑊𝐴𝐶𝑉) → ({⟨(𝐸‘ndx), 𝐶⟩} ↾ {(𝐸‘ndx)}) = {⟨(𝐸‘ndx), 𝐶⟩})
3322, 32uneq12d 4139 . . . . . 6 ((𝑊𝐴𝐶𝑉) → (((𝑊 ↾ (V ∖ {(𝐸‘ndx)})) ↾ {(𝐸‘ndx)}) ∪ ({⟨(𝐸‘ndx), 𝐶⟩} ↾ {(𝐸‘ndx)})) = (∅ ∪ {⟨(𝐸‘ndx), 𝐶⟩}))
34 resundir 5862 . . . . . 6 (((𝑊 ↾ (V ∖ {(𝐸‘ndx)})) ∪ {⟨(𝐸‘ndx), 𝐶⟩}) ↾ {(𝐸‘ndx)}) = (((𝑊 ↾ (V ∖ {(𝐸‘ndx)})) ↾ {(𝐸‘ndx)}) ∪ ({⟨(𝐸‘ndx), 𝐶⟩} ↾ {(𝐸‘ndx)}))
35 un0 4343 . . . . . . 7 ({⟨(𝐸‘ndx), 𝐶⟩} ∪ ∅) = {⟨(𝐸‘ndx), 𝐶⟩}
36 uncom 4128 . . . . . . 7 ({⟨(𝐸‘ndx), 𝐶⟩} ∪ ∅) = (∅ ∪ {⟨(𝐸‘ndx), 𝐶⟩})
3735, 36eqtr3i 2846 . . . . . 6 {⟨(𝐸‘ndx), 𝐶⟩} = (∅ ∪ {⟨(𝐸‘ndx), 𝐶⟩})
3833, 34, 373eqtr4g 2881 . . . . 5 ((𝑊𝐴𝐶𝑉) → (((𝑊 ↾ (V ∖ {(𝐸‘ndx)})) ∪ {⟨(𝐸‘ndx), 𝐶⟩}) ↾ {(𝐸‘ndx)}) = {⟨(𝐸‘ndx), 𝐶⟩})
3938fveq1d 6666 . . . 4 ((𝑊𝐴𝐶𝑉) → ((((𝑊 ↾ (V ∖ {(𝐸‘ndx)})) ∪ {⟨(𝐸‘ndx), 𝐶⟩}) ↾ {(𝐸‘ndx)})‘(𝐸‘ndx)) = ({⟨(𝐸‘ndx), 𝐶⟩}‘(𝐸‘ndx)))
4013, 39syl5eqr 2870 . . 3 ((𝑊𝐴𝐶𝑉) → (((𝑊 ↾ (V ∖ {(𝐸‘ndx)})) ∪ {⟨(𝐸‘ndx), 𝐶⟩})‘(𝐸‘ndx)) = ({⟨(𝐸‘ndx), 𝐶⟩}‘(𝐸‘ndx)))
4110a1i 11 . . . 4 ((𝑊𝐴𝐶𝑉) → (𝐸‘ndx) ∈ V)
42 fvsng 6936 . . . 4 (((𝐸‘ndx) ∈ V ∧ 𝐶𝑉) → ({⟨(𝐸‘ndx), 𝐶⟩}‘(𝐸‘ndx)) = 𝐶)
4341, 42sylancom 590 . . 3 ((𝑊𝐴𝐶𝑉) → ({⟨(𝐸‘ndx), 𝐶⟩}‘(𝐸‘ndx)) = 𝐶)
4440, 43eqtrd 2856 . 2 ((𝑊𝐴𝐶𝑉) → (((𝑊 ↾ (V ∖ {(𝐸‘ndx)})) ∪ {⟨(𝐸‘ndx), 𝐶⟩})‘(𝐸‘ndx)) = 𝐶)
452, 9, 443eqtrrd 2861 1 ((𝑊𝐴𝐶𝑉) → 𝐶 = (𝐸‘(𝑊 sSet ⟨(𝐸‘ndx), 𝐶⟩)))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 398   = wceq 1533  wcel 2110  Vcvv 3494  cdif 3932  cun 3933  cin 3934  wss 3935  c0 4290  {csn 4560  cop 4566   × cxp 5547  dom cdm 5549  cres 5551  Rel wrel 5554  cfv 6349  (class class class)co 7150  ndxcnx 16474   sSet csts 16475  Slot cslot 16476
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1792  ax-4 1806  ax-5 1907  ax-6 1966  ax-7 2011  ax-8 2112  ax-9 2120  ax-10 2141  ax-11 2157  ax-12 2173  ax-ext 2793  ax-sep 5195  ax-nul 5202  ax-pr 5321  ax-un 7455
This theorem depends on definitions:  df-bi 209  df-an 399  df-or 844  df-3an 1085  df-tru 1536  df-ex 1777  df-nf 1781  df-sb 2066  df-mo 2618  df-eu 2650  df-clab 2800  df-cleq 2814  df-clel 2893  df-nfc 2963  df-ne 3017  df-ral 3143  df-rex 3144  df-rab 3147  df-v 3496  df-sbc 3772  df-dif 3938  df-un 3940  df-in 3942  df-ss 3951  df-nul 4291  df-if 4467  df-sn 4561  df-pr 4563  df-op 4567  df-uni 4832  df-br 5059  df-opab 5121  df-mpt 5139  df-id 5454  df-xp 5555  df-rel 5556  df-cnv 5557  df-co 5558  df-dm 5559  df-res 5561  df-iota 6308  df-fun 6351  df-fv 6357  df-ov 7153  df-oprab 7154  df-mpo 7155  df-slot 16481  df-sets 16484
This theorem is referenced by:  ressbas  16548  oppchomfval  16978  oppccofval  16980  reschom  17094  oduleval  17735  oppgplusfval  18470  mgpplusg  19237  opprmulfval  19369  rmodislmod  19696  srasca  19947  sravsca  19948  sraip  19949  opsrle  20250  zlmsca  20662  zlmvsca  20663  znle  20677  thloc  20837  matmulr  21041  tuslem  22870  setsmstset  23081  tngds  23251  tngtset  23252  ttgval  26655  setsiedg  26815  resvsca  30898  hlhilnvl  39080  cznrng  44220  cznnring  44221
  Copyright terms: Public domain W3C validator