Following a book "Elementary Algebraic Geometry" by K. Hulek, I would like to ask how to use Nakayama's Lemma to prove the following statement:
Let $C$ be a smooth curve. Then dim$_k m_P / m_P^2=$ dim$C=1$. If $t \in m_P$ and its residue class $\bar{t} \in m_P / m_P^2$ spans the $k$-vector space $m_P / m_P^2$, then $t$ generates $m_P$.
I can not come up with the proof. Unless $m_P$ is always (or in this case) a finitely generated $\mathcal{O}_{C,P}$-module.
Thank you.