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

Definition df-reverse 11504
Description: Define an operation which reverses the order of symbols in a word. (Contributed by Stefan O'Rear, 26-Aug-2015.)
Assertion
Ref Expression
df-reverse  |- reverse  =  ( s  e.  _V  |->  ( x  e.  ( 0..^ ( # `  s
) )  |->  ( s `
 ( ( (
# `  s )  -  1 )  -  x ) ) ) )
Distinct variable group:    x, s

Detailed syntax breakdown of Definition df-reverse
StepHypRef Expression
1 creverse 11498 . 2  class reverse
2 vs . . 3  set  s
3 cvv 2864 . . 3  class  _V
4 vx . . . 4  set  x
5 cc0 8824 . . . . 5  class  0
62cv 1641 . . . . . 6  class  s
7 chash 11427 . . . . . 6  class  #
86, 7cfv 5334 . . . . 5  class  ( # `  s )
9 cfzo 10959 . . . . 5  class ..^
105, 8, 9co 5942 . . . 4  class  ( 0..^ ( # `  s
) )
11 c1 8825 . . . . . . 7  class  1
12 cmin 9124 . . . . . . 7  class  -
138, 11, 12co 5942 . . . . . 6  class  ( (
# `  s )  -  1 )
144cv 1641 . . . . . 6  class  x
1513, 14, 12co 5942 . . . . 5  class  ( ( ( # `  s
)  -  1 )  -  x )
1615, 6cfv 5334 . . . 4  class  ( s `
 ( ( (
# `  s )  -  1 )  -  x ) )
174, 10, 16cmpt 4156 . . 3  class  ( x  e.  ( 0..^ (
# `  s )
)  |->  ( s `  ( ( ( # `  s )  -  1 )  -  x ) ) )
182, 3, 17cmpt 4156 . 2  class  ( s  e.  _V  |->  ( x  e.  ( 0..^ (
# `  s )
)  |->  ( s `  ( ( ( # `  s )  -  1 )  -  x ) ) ) )
191, 18wceq 1642 1  wff reverse  =  ( s  e.  _V  |->  ( x  e.  ( 0..^ ( # `  s
) )  |->  ( s `
 ( ( (
# `  s )  -  1 )  -  x ) ) ) )
Colors of variables: wff set class
This definition is referenced by:  revval  11568
  Copyright terms: Public domain W3C validator