I know how to do this:
where the Definition 3 is bold. You just do this:
\newtheorem{def}{Definition}
...
\begin{def}
A \textit{field} $\mathbb{F}$.
\end{def}
Wondering how to do it like this though:
where it has the name of the definition in bold to. Wondering if there is a function or something I could create to do this:
\newtheorem{defn}{Definition ([PARAMETER])}
...
\begin{def[label="Field"]}
A \textit{field} $\mathbb{F}$.
\end{def}


