Consider the nonlinear optimization problem below:
$$p^* := \min f(x)$$
$$\textrm{s.t. }\ g_i (x) \leq 0,\ \forall i = 1,...,m$$
$$h_j (x) = 0,\ \forall j = 1,..., p$$
$$x \in D$$
where $f, g_i, h_j : D \rightarrow R, i = 1,..., m, j = 1,...,p$ are $C^2$-smooth functions and $D$ is an open subset of $R^n$.
Whitney's Theorem: for any closed subset $D \subset R^n$ there exists a $C^\infty$-smooth function $g : R^n \rightarrow R$ satisfying $D = \{x : g (x) = 0 \}$. Thus without further conditions on the constraints, we might as well be optimizing a function over any closed set - an intractable problem.
What is the significance of this theorem in nonlinear optimization?