I am almost positive I am incorrect, but I was hoping someone could explain why I am wrong because for the life of me I am at a loss. I am not asking for a counterexample or some contra-reasoning as to why my conclusion is incorrect, but rather I am hoping someone can point out the flaw in my actual argument.
Suppose $f\in C^{\infty}(\mathbb{C})$. Suppose $|f(z)|\to 0$ as $|z|\to \infty$. My claim is that $f\equiv 0$.
Reasoning: If $f$ is smooth on $\mathbb{C}$, then by definition $f$ is holomorphic, since $f$ is $\mathbb{C}$-differentiable. So then $f$ is entire. But if $|f(z)|\to 0$ as $|z|\to \infty$, then there exists some $N$ such that $|z|>N$ implies that $|f(z)|<1$. So then consider the closed disk of radius $N$. We know that $f$ is holomorphic on this disc. But such a disc is compact, so $f$ must achieve a maximum and minimum on this disc. So $f$ is bounded on this disc, and $f$ is also bounded outside of the disc by $1$. So $f$ is bounded and entire, so then by Liouville it is constant. But we know that it goes to $0$ as $|z|\to \infty$. So then $f\equiv 0$.
I am almost certain this is wrong somewhere, but to me my argument seems sounds. Any insight would be helpful.