Definition (strings)

Here the natural numbers are $\N = \set{0, 1, 2, \ldots}$ and we represent $n\in \N$ as $n=\set{0,1,\ldots,n-1}$.

Let $X$ be a set.