I'm reading about convex conjugate and its relation to subdifferential.
In order to characterise subgradients we will use the convex conjugate defined below. This is essentially a special case of the Legendre-Fenchel transform we defined in Section 4.2. we recall that the Legendre-Fenchel transform (a.k.a. the convex conjugate) is defined as $$ \varphi^{*}(y)=\sup _{x \in \mathbb{R}^{d}}(x \cdot y-\varphi(x)) . $$ The following proposition characterises the subdifferential.
Proposition 6.4. Let $\varphi$ be a proper, lower semi-continuous, convex function on $\mathbb{R}^{d}$. Then for all $x, y \in \mathbb{R}^{d}$ $$ x \cdot y=\varphi(x)+\varphi^{*}(y) \quad \Leftrightarrow \quad y \in \partial \varphi(x) . $$ Proof. Since $\varphi^{*}(y) \geq x \cdot y-\varphi(x)$ for all $x, y$ we have $$ \begin{aligned} x \cdot y=\varphi(x)+\varphi^{*}(y) & \Leftrightarrow x \cdot y \geq \varphi(x)+\varphi^{*}(y) \\ & \Leftrightarrow x \cdot y \geq \varphi(x)+y \cdot z-\varphi(z) \quad \forall z \in \mathbb{R}^{d} \\ & \Leftrightarrow \varphi(z) \geq \varphi(x)+y \cdot(z-x) \quad \forall z \in \mathbb{R}^{d} \\ & \Leftrightarrow y \in \partial \varphi(x) \end{aligned} $$ which proves the proposition. In fact if $\varphi$ is convex then $\varphi$ is differentiable almost everywhere, hence we have that $\partial \varphi(x)=$ $\{\nabla \varphi(x)\}$ for almost every $x$.
In the proof, the author does not use the lower semi-continuity of $f$ nor its convexity. As such, I feel that the proposition holds for arbitrary proper function. Could you confirm if my understanding is correct?