In https://www.mimuw.edu.pl/~tarlecki/teaching/ct/slides/fnats.pdf , page 5, the carrier set functor is defined thus:
Carrier set functors: |_| : $Alg(Σ) → Set^S$, for any algebraic signature $Σ = \thinspace \langle \thinspace S, Ω \thinspace \rangle$, yielding the algebra carriers and homomorphisms as functions between them.
Here the author of the slides is defining "algebraic signature" as follows (I presume he is using the definition in p.18 of his book here: https://www.mimuw.edu.pl/~tarlecki/teaching/ct/papers/chap1.pdf):
$\textbf{Definition 1.2.1 (Many-sorted signature)}$. A (many-sorted) signature is a pair $Σ = \langle S,Ω \rangle$, where:
• $S$ is a set (of sort names); and
• $Ω$ is an $S* × S$-sorted set (of operation names)
where $S^∗$ is the set of finite (including empty) sequences of elements of $S$. We will sometimes write $sorts(Σ)$ for $S$ and $ops(Σ)$ for $Ω$. $\textit{Many-sorted signatures will be referred to as algebraic signatures}$ $\textit{when it is necessary to distinguish them from other kinds of signatures}$ $\textit{to be introduced later.}$
Three questions:
(1) What does |_| mean?
(2) I don't intuitively understand the definition of a many-sorted signature he is using? Could anyone help explain it. Is this a non-standard definition of the signature of an algebra? (I thought the signature of an algebra was a list of the arities of the operations of the algebra)
(3) Is $Set^S$ the category of functions from some (arbitrary?) set $S, \textit{considered as a category in its own right}$, to the category of sets?
Could anyone give an example that illustrates how this functor works?
Most descriptions of universal algebra or algebraic structures occur in a single-sorted context. This description is in a multi-sorted context. $S$ is the set of sorts. In the single-sorted case, all operations are of the form $f : X^n \to X$ where $X$ is the single sort, so all you need to record for each operation is $n$. In the multi-sorted case, you can have operations like $f : X\times Y\times Z\times X \to Y$, where $X,Y,Z \in S$, so for each operation you now need to record a list of input sorts, $[X,Y,Z,X]$, and the output sort, $Y$. For example, if we want to talk about the algebraic theory of modules over commutative rings, we have a 2-sorted signature, i.e. $S=\{R,M\}$, and operations like $+_R : R\times R \to R$, $+_M : M \times M \to M$, $\cdot : R\times M \to M$ and others.
When we consider the algebras for these signatures, we now need a set for each sort and a function for each operation. In the above example, we need a commutative ring for $R$ and a module over that ring for $M$. This $S$-indexed family of sets can be represented by a functor $DS \to \mathbf{Set}$ where $D : \mathbf{Set}\to\mathbf{Cat}$ is the discrete category functor that takes a set to a category whose class of objects is that set and otherwise only has identity arrows. This is basically the same thing as a function $S \to \mathsf{Ob}(\mathbf{Set})$. The algebra also implies that the functions are homomorphic, but that is what $|\_|$ forgets.