Let x˙(t)=f(x(t)) be a dynamical system where x∈Rn, assuming that the safe set C is the Level Set of a smooth function h:Rn→R, i.e. C:={x∈Rn:h(x)≥0} and that ∂x∂h(x)=0,∀x∈Rn:h(x)=0.Then, Nagumo’s Theorem gives necessary and sufficient conditions for set invariance based upon the derivative of h and the boundary of C: C invariant⟺h˙(x)≥0,∀x∈∂C