I have come across the following definition: Let $(X, d)$ be a metric space . Given a function $f \colon X \to \mathbb{R}$, the pointwise Lipschitz constant of $f$ at a non isolated point $x \in X$ is defined as
$$Lipf(x)=\limsup_{y \to x} |f(x)-f(y)|/d(x,y)$$ I am not quite sure how this definition is supposed to work. Do you take the supremum of that ratio over all $y$ which would then depend on $y$ and afterwards you take the limit as $y \to \infty$ ? I would really appreciate it if someone could give a (non-trivial) example of finding the constant. The definition also made me wonder when can you exchange $\sup$ and $\lim$ in the above definition and how the following theorem can be proved
If $f\in C^{1}(\Omega)$ where $\Omega$ is an open subset of Euclidean space, then $Lipf(x)=|\nabla f|$.
Source: https://www.ipam.ucla.edu/publications/iagws1/iagws1_11193.pdf (slide 7)