Consider $f: \mathbb{R}^n \to \overline{\mathbb{R}}$ a lower-semicontinuous, proper, closed and convex. My question is, can the subdifferential of $\partial f$ be unbounded in the interior of $\text{dom}(f)$ (all points where $f(x) < \infty$?
I was pretty convinced that it can only be unbounded on the boundary and not the interior until I found the following counter-example (unfortunately I've lost track of where I encountered it, possibly in some online notes by Dimitri Bertsekas):
Suppose $f(x) = \|x\|^2, x = (x_1, x_2, x_3)$ is defined on an affine hyperplane of $\mathbb{R}^3$, then the subdifferential necessarily includes a ray that is perpendular to that hyperplane at any point in the interior of the domain, hence the subdifferential of this function at any point (interior or not) is unbounded.
Can someone please verify or provide guidance on this matter?