MWE:
\documentclass{article}
\usepackage{amsmath}
\begin{document}
$$
let p^k be the statement that, for some value n=k, A^k=\begin{pmatrix}1&0 \\ k&0 \end{pmatrix}
$$
\end{document}
It seems that Latex does not allow empty line in mathmode. The above code is perfectly compilable if I get rid of the last empty line. But it results in an error with the empty line. Is there a deeper reason why Latex doesn't just ignore the empty line?
\suppressmathparerror=1
to ignore the error.\[ … \]
preferable to$$
?