holonomic constraints are relations between the position variables (and possibly time1) which can be expressed in the following form: $$f(q_{1},q_{2},q_{3},\ldots ,q_{n},t)=0$$
where $\{q_{1},q_{2},q_{3},\ldots ,q_{n}\}$ are the $n$ coordinates which describe the system. For example, the motion of a particle constrained to lie on the surface of a sphere is subject to a holonomic constraint, but if the particle is able to fall off the sphere under the influence of gravity, the constraint becomes non-holonomic. [...] the second non-holonomic case may be given by: $$r^{2}-a^{2}\geq 0.$$
Is this really a non-holonomic constraint? Consider the following function $f(r)=\min(r^2-a^2,0)$. Then we have $$r^{2}-a^{2}\geq 0\quad\text{iff}\quad f(r)=0.$$
Doesn't this mean that the constraint is in fact holonomic?