I'm trying to prove that if $f : \Bbb R\to\Bbb R$ is a continuous function that verifies: $$\lim\limits_{x\to-\infty}f=\lim_{x\to +\infty}f+\infty$$
Then $f$ has a global minimum
So, since:
$\lim\limits_{x\to-\infty}f=\lim\limits_{x\to+\infty}f=+\infty\to\exists x\in\Bbb R, \exists \delta_1,\delta_2 \gt 0 \phantom{2} / \phantom{2}\forall c\in (x, x + \delta_2) :f(c)\geqslant f(x), \forall c \in (x - \delta_1, x) : f(c) \leqslant f(x) $
Since x may not be unique, letting: $$m=\min \{f(x_1),\ldots,f(x_i)\}, \phantom{2} i\in\Bbb N$$
We have that there is a global minimum at the $x_i$ of $m$
Is my reasoning correct?
The correct idea would be to do something like the following:
Let $y_0 = f(0)$. Since $f(x) \to \infty$ as $x\to\pm\infty$, there exist $M_1, M_2$ with $M_1 < 0 < M_2$ such that $$f(x) > y_0 \quad \forall x < M_1$$ and $$f(x) > y_0 \quad \forall x > M_2.$$
Now, $I = [M_1, M_2]$ is compact and so, $f$ achieves its minimum on it. Let $m$ be this minimum. The claim is that this is the global minimum. Proving this is not tough. (Note that you must necessarily have $m \le y_0$ since $0 \in I$.)
Additional note: