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

Theorem setsid 17137
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 17096 . . 3 ((π‘Š ∈ 𝐴 ∧ 𝐢 ∈ 𝑉) β†’ (π‘Š sSet ⟨(πΈβ€˜ndx), 𝐢⟩) = ((π‘Š β†Ύ (V βˆ– {(πΈβ€˜ndx)})) βˆͺ {⟨(πΈβ€˜ndx), 𝐢⟩}))
21fveq2d 6892 . 2 ((π‘Š ∈ 𝐴 ∧ 𝐢 ∈ 𝑉) β†’ (πΈβ€˜(π‘Š sSet ⟨(πΈβ€˜ndx), 𝐢⟩)) = (πΈβ€˜((π‘Š β†Ύ (V βˆ– {(πΈβ€˜ndx)})) βˆͺ {⟨(πΈβ€˜ndx), 𝐢⟩})))
3 setsid.e . . 3 𝐸 = Slot (πΈβ€˜ndx)
4 resexg 6025 . . . . 5 (π‘Š ∈ 𝐴 β†’ (π‘Š β†Ύ (V βˆ– {(πΈβ€˜ndx)})) ∈ V)
54adantr 481 . . . 4 ((π‘Š ∈ 𝐴 ∧ 𝐢 ∈ 𝑉) β†’ (π‘Š β†Ύ (V βˆ– {(πΈβ€˜ndx)})) ∈ V)
6 snex 5430 . . . 4 {⟨(πΈβ€˜ndx), 𝐢⟩} ∈ V
7 unexg 7732 . . . 4 (((π‘Š β†Ύ (V βˆ– {(πΈβ€˜ndx)})) ∈ V ∧ {⟨(πΈβ€˜ndx), 𝐢⟩} ∈ V) β†’ ((π‘Š β†Ύ (V βˆ– {(πΈβ€˜ndx)})) βˆͺ {⟨(πΈβ€˜ndx), 𝐢⟩}) ∈ V)
85, 6, 7sylancl 586 . . 3 ((π‘Š ∈ 𝐴 ∧ 𝐢 ∈ 𝑉) β†’ ((π‘Š β†Ύ (V βˆ– {(πΈβ€˜ndx)})) βˆͺ {⟨(πΈβ€˜ndx), 𝐢⟩}) ∈ V)
93, 8strfvnd 17114 . 2 ((π‘Š ∈ 𝐴 ∧ 𝐢 ∈ 𝑉) β†’ (πΈβ€˜((π‘Š β†Ύ (V βˆ– {(πΈβ€˜ndx)})) βˆͺ {⟨(πΈβ€˜ndx), 𝐢⟩})) = (((π‘Š β†Ύ (V βˆ– {(πΈβ€˜ndx)})) βˆͺ {⟨(πΈβ€˜ndx), 𝐢⟩})β€˜(πΈβ€˜ndx)))
10 fvex 6901 . . . . . 6 (πΈβ€˜ndx) ∈ V
1110snid 4663 . . . . 5 (πΈβ€˜ndx) ∈ {(πΈβ€˜ndx)}
12 fvres 6907 . . . . 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 5992 . . . . . . . . 9 ((π‘Š β†Ύ (V βˆ– {(πΈβ€˜ndx)})) β†Ύ {(πΈβ€˜ndx)}) = (π‘Š β†Ύ ((V βˆ– {(πΈβ€˜ndx)}) ∩ {(πΈβ€˜ndx)}))
15 disjdifr 4471 . . . . . . . . . . 11 ((V βˆ– {(πΈβ€˜ndx)}) ∩ {(πΈβ€˜ndx)}) = βˆ…
1615reseq2i 5976 . . . . . . . . . 10 (π‘Š β†Ύ ((V βˆ– {(πΈβ€˜ndx)}) ∩ {(πΈβ€˜ndx)})) = (π‘Š β†Ύ βˆ…)
17 res0 5983 . . . . . . . . . 10 (π‘Š β†Ύ βˆ…) = βˆ…
1816, 17eqtri 2760 . . . . . . . . 9 (π‘Š β†Ύ ((V βˆ– {(πΈβ€˜ndx)}) ∩ {(πΈβ€˜ndx)})) = βˆ…
1914, 18eqtri 2760 . . . . . . . 8 ((π‘Š β†Ύ (V βˆ– {(πΈβ€˜ndx)})) β†Ύ {(πΈβ€˜ndx)}) = βˆ…
2019a1i 11 . . . . . . 7 ((π‘Š ∈ 𝐴 ∧ 𝐢 ∈ 𝑉) β†’ ((π‘Š β†Ύ (V βˆ– {(πΈβ€˜ndx)})) β†Ύ {(πΈβ€˜ndx)}) = βˆ…)
21 elex 3492 . . . . . . . . . . 11 (𝐢 ∈ 𝑉 β†’ 𝐢 ∈ V)
2221adantl 482 . . . . . . . . . 10 ((π‘Š ∈ 𝐴 ∧ 𝐢 ∈ 𝑉) β†’ 𝐢 ∈ V)
23 opelxpi 5712 . . . . . . . . . 10 (((πΈβ€˜ndx) ∈ V ∧ 𝐢 ∈ V) β†’ ⟨(πΈβ€˜ndx), 𝐢⟩ ∈ (V Γ— V))
2410, 22, 23sylancr 587 . . . . . . . . 9 ((π‘Š ∈ 𝐴 ∧ 𝐢 ∈ 𝑉) β†’ ⟨(πΈβ€˜ndx), 𝐢⟩ ∈ (V Γ— V))
25 opex 5463 . . . . . . . . . 10 ⟨(πΈβ€˜ndx), 𝐢⟩ ∈ V
2625relsn 5802 . . . . . . . . 9 (Rel {⟨(πΈβ€˜ndx), 𝐢⟩} ↔ ⟨(πΈβ€˜ndx), 𝐢⟩ ∈ (V Γ— V))
2724, 26sylibr 233 . . . . . . . 8 ((π‘Š ∈ 𝐴 ∧ 𝐢 ∈ 𝑉) β†’ Rel {⟨(πΈβ€˜ndx), 𝐢⟩})
28 dmsnopss 6210 . . . . . . . 8 dom {⟨(πΈβ€˜ndx), 𝐢⟩} βŠ† {(πΈβ€˜ndx)}
29 relssres 6020 . . . . . . . 8 ((Rel {⟨(πΈβ€˜ndx), 𝐢⟩} ∧ dom {⟨(πΈβ€˜ndx), 𝐢⟩} βŠ† {(πΈβ€˜ndx)}) β†’ ({⟨(πΈβ€˜ndx), 𝐢⟩} β†Ύ {(πΈβ€˜ndx)}) = {⟨(πΈβ€˜ndx), 𝐢⟩})
3027, 28, 29sylancl 586 . . . . . . 7 ((π‘Š ∈ 𝐴 ∧ 𝐢 ∈ 𝑉) β†’ ({⟨(πΈβ€˜ndx), 𝐢⟩} β†Ύ {(πΈβ€˜ndx)}) = {⟨(πΈβ€˜ndx), 𝐢⟩})
3120, 30uneq12d 4163 . . . . . 6 ((π‘Š ∈ 𝐴 ∧ 𝐢 ∈ 𝑉) β†’ (((π‘Š β†Ύ (V βˆ– {(πΈβ€˜ndx)})) β†Ύ {(πΈβ€˜ndx)}) βˆͺ ({⟨(πΈβ€˜ndx), 𝐢⟩} β†Ύ {(πΈβ€˜ndx)})) = (βˆ… βˆͺ {⟨(πΈβ€˜ndx), 𝐢⟩}))
32 resundir 5994 . . . . . 6 (((π‘Š β†Ύ (V βˆ– {(πΈβ€˜ndx)})) βˆͺ {⟨(πΈβ€˜ndx), 𝐢⟩}) β†Ύ {(πΈβ€˜ndx)}) = (((π‘Š β†Ύ (V βˆ– {(πΈβ€˜ndx)})) β†Ύ {(πΈβ€˜ndx)}) βˆͺ ({⟨(πΈβ€˜ndx), 𝐢⟩} β†Ύ {(πΈβ€˜ndx)}))
33 un0 4389 . . . . . . 7 ({⟨(πΈβ€˜ndx), 𝐢⟩} βˆͺ βˆ…) = {⟨(πΈβ€˜ndx), 𝐢⟩}
34 uncom 4152 . . . . . . 7 ({⟨(πΈβ€˜ndx), 𝐢⟩} βˆͺ βˆ…) = (βˆ… βˆͺ {⟨(πΈβ€˜ndx), 𝐢⟩})
3533, 34eqtr3i 2762 . . . . . 6 {⟨(πΈβ€˜ndx), 𝐢⟩} = (βˆ… βˆͺ {⟨(πΈβ€˜ndx), 𝐢⟩})
3631, 32, 353eqtr4g 2797 . . . . 5 ((π‘Š ∈ 𝐴 ∧ 𝐢 ∈ 𝑉) β†’ (((π‘Š β†Ύ (V βˆ– {(πΈβ€˜ndx)})) βˆͺ {⟨(πΈβ€˜ndx), 𝐢⟩}) β†Ύ {(πΈβ€˜ndx)}) = {⟨(πΈβ€˜ndx), 𝐢⟩})
3736fveq1d 6890 . . . 4 ((π‘Š ∈ 𝐴 ∧ 𝐢 ∈ 𝑉) β†’ ((((π‘Š β†Ύ (V βˆ– {(πΈβ€˜ndx)})) βˆͺ {⟨(πΈβ€˜ndx), 𝐢⟩}) β†Ύ {(πΈβ€˜ndx)})β€˜(πΈβ€˜ndx)) = ({⟨(πΈβ€˜ndx), 𝐢⟩}β€˜(πΈβ€˜ndx)))
3813, 37eqtr3id 2786 . . 3 ((π‘Š ∈ 𝐴 ∧ 𝐢 ∈ 𝑉) β†’ (((π‘Š β†Ύ (V βˆ– {(πΈβ€˜ndx)})) βˆͺ {⟨(πΈβ€˜ndx), 𝐢⟩})β€˜(πΈβ€˜ndx)) = ({⟨(πΈβ€˜ndx), 𝐢⟩}β€˜(πΈβ€˜ndx)))
3910a1i 11 . . . 4 ((π‘Š ∈ 𝐴 ∧ 𝐢 ∈ 𝑉) β†’ (πΈβ€˜ndx) ∈ V)
40 fvsng 7174 . . . 4 (((πΈβ€˜ndx) ∈ V ∧ 𝐢 ∈ 𝑉) β†’ ({⟨(πΈβ€˜ndx), 𝐢⟩}β€˜(πΈβ€˜ndx)) = 𝐢)
4139, 40sylancom 588 . . 3 ((π‘Š ∈ 𝐴 ∧ 𝐢 ∈ 𝑉) β†’ ({⟨(πΈβ€˜ndx), 𝐢⟩}β€˜(πΈβ€˜ndx)) = 𝐢)
4238, 41eqtrd 2772 . 2 ((π‘Š ∈ 𝐴 ∧ 𝐢 ∈ 𝑉) β†’ (((π‘Š β†Ύ (V βˆ– {(πΈβ€˜ndx)})) βˆͺ {⟨(πΈβ€˜ndx), 𝐢⟩})β€˜(πΈβ€˜ndx)) = 𝐢)
432, 9, 423eqtrrd 2777 1 ((π‘Š ∈ 𝐴 ∧ 𝐢 ∈ 𝑉) β†’ 𝐢 = (πΈβ€˜(π‘Š sSet ⟨(πΈβ€˜ndx), 𝐢⟩)))
Colors of variables: wff setvar class
Syntax hints:   β†’ wi 4   ∧ wa 396   = wceq 1541   ∈ wcel 2106  Vcvv 3474   βˆ– cdif 3944   βˆͺ cun 3945   ∩ cin 3946   βŠ† wss 3947  βˆ…c0 4321  {csn 4627  βŸ¨cop 4633   Γ— cxp 5673  dom cdm 5675   β†Ύ cres 5677  Rel wrel 5680  β€˜cfv 6540  (class class class)co 7405   sSet csts 17092  Slot cslot 17110  ndxcnx 17122
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1797  ax-4 1811  ax-5 1913  ax-6 1971  ax-7 2011  ax-8 2108  ax-9 2116  ax-10 2137  ax-11 2154  ax-12 2171  ax-ext 2703  ax-sep 5298  ax-nul 5305  ax-pr 5426  ax-un 7721
This theorem depends on definitions:  df-bi 206  df-an 397  df-or 846  df-3an 1089  df-tru 1544  df-fal 1554  df-ex 1782  df-nf 1786  df-sb 2068  df-mo 2534  df-eu 2563  df-clab 2710  df-cleq 2724  df-clel 2810  df-nfc 2885  df-ne 2941  df-ral 3062  df-rex 3071  df-rab 3433  df-v 3476  df-sbc 3777  df-dif 3950  df-un 3952  df-in 3954  df-ss 3964  df-nul 4322  df-if 4528  df-sn 4628  df-pr 4630  df-op 4634  df-uni 4908  df-br 5148  df-opab 5210  df-mpt 5231  df-id 5573  df-xp 5681  df-rel 5682  df-cnv 5683  df-co 5684  df-dm 5685  df-res 5687  df-iota 6492  df-fun 6542  df-fv 6548  df-ov 7408  df-oprab 7409  df-mpo 7410  df-sets 17093  df-slot 17111
This theorem is referenced by:  ressbas  17175  ressbasOLD  17176  oppchomfval  17654  oppchomfvalOLD  17655  oppccofval  17657  reschom  17774  oduleval  18238  oppgplusfval  19206  mgpplusg  19985  opprmulfval  20144  rmodislmod  20532  rmodislmodOLD  20533  srasca  20790  srascaOLD  20791  sravsca  20792  sravscaOLD  20793  sraip  20794  zlmsca  21065  zlmvsca  21066  znle  21079  thloc  21245  opsrle  21593  matmulr  21931  tuslem  23762  tuslemOLD  23763  setsmstset  23976  tngds  24155  tngdsOLD  24156  tngtset  24157  ttgval  28115  ttgvalOLD  28116  setsiedg  28285  resvsca  32432  hlhilnvl  40813  mnringmulrd  42965  cznrng  46806  cznnring  46807  prstchomval  47647  prstcthin  47649
  Copyright terms: Public domain W3C validator