MPE Home Metamath Proof Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >  df-substr Unicode version

Definition df-substr 11428
Description: Define an operation which extracts portions of words. (Contributed by Stefan O'Rear, 15-Aug-2015.)
Assertion
Ref Expression
df-substr  |- substr  =  ( s  e.  _V , 
b  e.  ( ZZ 
X.  ZZ )  |->  if ( ( ( 1st `  b )..^ ( 2nd `  b ) )  C_  dom  s ,  ( x  e.  ( 0..^ ( ( 2nd `  b
)  -  ( 1st `  b ) ) ) 
|->  ( s `  (
x  +  ( 1st `  b ) ) ) ) ,  (/) ) )
Distinct variable group:    s, b, x

Detailed syntax breakdown of Definition df-substr
StepHypRef Expression
1 csubstr 11422 . 2  class substr
2 vs . . 3  set  s
3 vb . . 3  set  b
4 cvv 2801 . . 3  class  _V
5 cz 10040 . . . 4  class  ZZ
65, 5cxp 4703 . . 3  class  ( ZZ 
X.  ZZ )
73cv 1631 . . . . . . 7  class  b
8 c1st 6136 . . . . . . 7  class  1st
97, 8cfv 5271 . . . . . 6  class  ( 1st `  b )
10 c2nd 6137 . . . . . . 7  class  2nd
117, 10cfv 5271 . . . . . 6  class  ( 2nd `  b )
12 cfzo 10886 . . . . . 6  class ..^
139, 11, 12co 5874 . . . . 5  class  ( ( 1st `  b )..^ ( 2nd `  b
) )
142cv 1631 . . . . . 6  class  s
1514cdm 4705 . . . . 5  class  dom  s
1613, 15wss 3165 . . . 4  wff  ( ( 1st `  b )..^ ( 2nd `  b
) )  C_  dom  s
17 vx . . . . 5  set  x
18 cc0 8753 . . . . . 6  class  0
19 cmin 9053 . . . . . . 7  class  -
2011, 9, 19co 5874 . . . . . 6  class  ( ( 2nd `  b )  -  ( 1st `  b
) )
2118, 20, 12co 5874 . . . . 5  class  ( 0..^ ( ( 2nd `  b
)  -  ( 1st `  b ) ) )
2217cv 1631 . . . . . . 7  class  x
23 caddc 8756 . . . . . . 7  class  +
2422, 9, 23co 5874 . . . . . 6  class  ( x  +  ( 1st `  b
) )
2524, 14cfv 5271 . . . . 5  class  ( s `
 ( x  +  ( 1st `  b ) ) )
2617, 21, 25cmpt 4093 . . . 4  class  ( x  e.  ( 0..^ ( ( 2nd `  b
)  -  ( 1st `  b ) ) ) 
|->  ( s `  (
x  +  ( 1st `  b ) ) ) )
27 c0 3468 . . . 4  class  (/)
2816, 26, 27cif 3578 . . 3  class  if ( ( ( 1st `  b
)..^ ( 2nd `  b
) )  C_  dom  s ,  ( x  e.  ( 0..^ ( ( 2nd `  b )  -  ( 1st `  b
) ) )  |->  ( s `  ( x  +  ( 1st `  b
) ) ) ) ,  (/) )
292, 3, 4, 6, 28cmpt2 5876 . 2  class  ( s  e.  _V ,  b  e.  ( ZZ  X.  ZZ )  |->  if ( ( ( 1st `  b
)..^ ( 2nd `  b
) )  C_  dom  s ,  ( x  e.  ( 0..^ ( ( 2nd `  b )  -  ( 1st `  b
) ) )  |->  ( s `  ( x  +  ( 1st `  b
) ) ) ) ,  (/) ) )
301, 29wceq 1632 1  wff substr  =  ( s  e.  _V , 
b  e.  ( ZZ 
X.  ZZ )  |->  if ( ( ( 1st `  b )..^ ( 2nd `  b ) )  C_  dom  s ,  ( x  e.  ( 0..^ ( ( 2nd `  b
)  -  ( 1st `  b ) ) ) 
|->  ( s `  (
x  +  ( 1st `  b ) ) ) ) ,  (/) ) )
Colors of variables: wff set class
This definition is referenced by:  swrdval  11466  swrd00  11467  swrdcl  11468
  Copyright terms: Public domain W3C validator