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

Definition df-splice 14391
Description: Define an operation which replaces portions of words. (Contributed by Stefan O'Rear, 15-Aug-2015.) (Revised by AV, 14-Oct-2022.)
Assertion
Ref Expression
df-splice splice = (𝑠 ∈ V, 𝑏 ∈ V ↦ (((𝑠 prefix (1st ‘(1st𝑏))) ++ (2nd𝑏)) ++ (𝑠 substr ⟨(2nd ‘(1st𝑏)), (♯‘𝑠)⟩)))
Distinct variable group:   𝑠,𝑏

Detailed syntax breakdown of Definition df-splice
StepHypRef Expression
1 csplice 14390 . 2 class splice
2 vs . . 3 setvar 𝑠
3 vb . . 3 setvar 𝑏
4 cvv 3422 . . 3 class V
52cv 1538 . . . . . 6 class 𝑠
63cv 1538 . . . . . . . 8 class 𝑏
7 c1st 7802 . . . . . . . 8 class 1st
86, 7cfv 6418 . . . . . . 7 class (1st𝑏)
98, 7cfv 6418 . . . . . 6 class (1st ‘(1st𝑏))
10 cpfx 14311 . . . . . 6 class prefix
115, 9, 10co 7255 . . . . 5 class (𝑠 prefix (1st ‘(1st𝑏)))
12 c2nd 7803 . . . . . 6 class 2nd
136, 12cfv 6418 . . . . 5 class (2nd𝑏)
14 cconcat 14201 . . . . 5 class ++
1511, 13, 14co 7255 . . . 4 class ((𝑠 prefix (1st ‘(1st𝑏))) ++ (2nd𝑏))
168, 12cfv 6418 . . . . . 6 class (2nd ‘(1st𝑏))
17 chash 13972 . . . . . . 7 class
185, 17cfv 6418 . . . . . 6 class (♯‘𝑠)
1916, 18cop 4564 . . . . 5 class ⟨(2nd ‘(1st𝑏)), (♯‘𝑠)⟩
20 csubstr 14281 . . . . 5 class substr
215, 19, 20co 7255 . . . 4 class (𝑠 substr ⟨(2nd ‘(1st𝑏)), (♯‘𝑠)⟩)
2215, 21, 14co 7255 . . 3 class (((𝑠 prefix (1st ‘(1st𝑏))) ++ (2nd𝑏)) ++ (𝑠 substr ⟨(2nd ‘(1st𝑏)), (♯‘𝑠)⟩))
232, 3, 4, 4, 22cmpo 7257 . 2 class (𝑠 ∈ V, 𝑏 ∈ V ↦ (((𝑠 prefix (1st ‘(1st𝑏))) ++ (2nd𝑏)) ++ (𝑠 substr ⟨(2nd ‘(1st𝑏)), (♯‘𝑠)⟩)))
241, 23wceq 1539 1 wff splice = (𝑠 ∈ V, 𝑏 ∈ V ↦ (((𝑠 prefix (1st ‘(1st𝑏))) ++ (2nd𝑏)) ++ (𝑠 substr ⟨(2nd ‘(1st𝑏)), (♯‘𝑠)⟩)))
Colors of variables: wff setvar class
This definition is referenced by:  splval  14392  splcl  14393
  Copyright terms: Public domain W3C validator