I have four math function definitions, and I want to center them, such that function names start from the same point, and after the colon there is some blank space before the domain and range is defined. Currently, I have this code segment:
\documentclass{paper}
\begin{document}
\begin{center}
$\mathsf{Gen}: \mathbb{N} \rightarrow \mathcal{K}_p \times \mathcal{K}_s \times \mathcal{K}_e$
$\mathsf{Enc}: \mathcal{K}_p \times \mathcal{P} \rightarrow \mathcal{X}$
$\mathsf{Dec}: \mathcal{K}_s \times \mathcal{Z} \rightarrow \mathcal{P}$
$\mathsf{Eval}: \mathcal{K}_e \times \mathcal{C} \times \mathcal{Z^*} \rightarrow \mathcal{Y}$
\end{center}
\end{document}
But this results in a kind of distorted output. I want the output to look like this:
Any ideas how to achieve it? Please note that the whole group of equations should also be centered in the page.
! Undefined control sequence. l.5 $\mathsf{Gen}: \mathbb