  In this paper, we prove the following version of the famous Bernstein's
theorem: Let $X\subset \mathbb R^{n+k}$ be a closed and connected set with
Hausdorff dimension $n$. Assume that $X$ satisfies the monotonicity formula at
$p\in X$. Then, the following statements are equivalent: (1) $X$ is an affine
linear subspace; (2) $X$ is a definable set that is Lipschitz regular at
infinity and its geometric tangent cone at infinity, $C(X,\infty)$, is a linear
subspace; (3) $X$ is a definable set, blow-spherical regular at infinity and
$C(X,\infty)$ is a linear subspace; (4) $X$ is an LNE at infinity definable set
and $C(X,\infty)$ is a linear subspace.
  As a consequence, we obtain a proof of the following generalization of
Bernstein's theorem: Let $X\subset \mathbb R^{n+1}$ be a closed and connected
set with Hasdorff dimension $n$. Assume that $X$ satisfies the monotonicity
formula at $p\in X$ and there are compact sets $K\subset \mathbb{R}^n$ and
$\tilde K\subset \mathbb{R}^{n+1}$ such that $X\setminus \tilde K$ is a minimal
hypersurface that is the graph of a $C^2$ smooth function $u\colon
\mathbb{R}^{n}\setminus K\to \mathbb{R}$. Assume that $u$ has bounded
derivative whenever $n>7$. Then $X$ is a hyperplane. Several other consequences
are also presented.
