I get the following error message when using the semantic package:
! Bad mathchar (32768).
<to be read again>
\relax
l.13 \begin{document}
The problem goes away if I load the semantic package with just the inference option. However, I do need math ligatures (the \mathlig command).
Also, the problem disappears if I do not load the mathtools package. Here is a minimal working example:
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{semantic}
% \usepackage{mathtools} % Uncommenting this causes the problem.
\mathlig{->}{\rightarrow}
\mathlig{|->}{\mapsto}
\begin{document}
Here is a formula: $a -> b |-> c$.
\end{document}

\documentclass{...}and ending with\end{document}. – Moriambar Jun 20 '17 at 20:19mathtools, thensemantic. – egreg Jun 20 '17 at 20:55$a^*$. The solution is of course to write$a^{*}$instead.Just felt like leaving this here.
– dow Jun 20 '17 at 21:09