|   | Mathbox for BJ | < Previous  
      Next > Nearby theorems | |
| Mirrors > Home > MPE Home > Th. List > Mathboxes > df-strset | Structured version Visualization version GIF version | ||
| Description: Component-setting in extensible structures. Define the extensible structure [𝐵 / 𝐴]struct𝑆, which is like the extensible structure 𝑆 except that the value 𝐵 has been put in the slot 𝐴 (replacing the current value if there was already one). In such expressions, 𝐴 is generally substituted for slot mnemonics like Base or +g or dist. The V in this definition was chosen to be closer to df-sets 17201, but since extensible structures are functions on ℕ, it will be more natural to replace it with ℕ when df-strset 37136 becomes the main definition. (Contributed by BJ, 13-Feb-2022.) | 
| Ref | Expression | 
|---|---|
| df-strset | ⊢ [𝐵 / 𝐴]struct𝑆 = ((𝑆 ↾ (V ∖ {(𝐴‘ndx)})) ∪ {〈(𝐴‘ndx), 𝐵〉}) | 
| Step | Hyp | Ref | Expression | 
|---|---|---|---|
| 1 | cA | . . 3 class 𝐴 | |
| 2 | cB | . . 3 class 𝐵 | |
| 3 | cS | . . 3 class 𝑆 | |
| 4 | 1, 2, 3 | cstrset 37135 | . 2 class [𝐵 / 𝐴]struct𝑆 | 
| 5 | cvv 3480 | . . . . 5 class V | |
| 6 | cnx 17230 | . . . . . . 7 class ndx | |
| 7 | 6, 1 | cfv 6561 | . . . . . 6 class (𝐴‘ndx) | 
| 8 | 7 | csn 4626 | . . . . 5 class {(𝐴‘ndx)} | 
| 9 | 5, 8 | cdif 3948 | . . . 4 class (V ∖ {(𝐴‘ndx)}) | 
| 10 | 3, 9 | cres 5687 | . . 3 class (𝑆 ↾ (V ∖ {(𝐴‘ndx)})) | 
| 11 | 7, 2 | cop 4632 | . . . 4 class 〈(𝐴‘ndx), 𝐵〉 | 
| 12 | 11 | csn 4626 | . . 3 class {〈(𝐴‘ndx), 𝐵〉} | 
| 13 | 10, 12 | cun 3949 | . 2 class ((𝑆 ↾ (V ∖ {(𝐴‘ndx)})) ∪ {〈(𝐴‘ndx), 𝐵〉}) | 
| 14 | 4, 13 | wceq 1540 | 1 wff [𝐵 / 𝐴]struct𝑆 = ((𝑆 ↾ (V ∖ {(𝐴‘ndx)})) ∪ {〈(𝐴‘ndx), 𝐵〉}) | 
| Colors of variables: wff setvar class | 
| This definition is referenced by: setsstrset 37137 | 
| Copyright terms: Public domain | W3C validator |