Use the extended-real characteristic functional
For its sublevel set is empty, while for every finite its sublevel set is . Both are closed when is closed, so part ii proves that this indicator functional of a constraint set is lower semicontinuous.
For a nonempty closed convex set , the squared-distance function is the Moreau envelope of its indicator functional of a constraint set. It is convex and differentiable with
and this gradient is one-Lipschitz.