Let $(X,\mathcal{A},\mu)$ be a measure space and let $f\colon X\to [-\infty,+\infty]$ be a measurable function. Denote with $\mathcal{N}_\mu$ the collection of $\mu$-null sets.
On same text the definition of essential supremum is
$$\operatorname{esssup}f:=\inf\left\{\sup_{x\in X\setminus N} f(x)\;\middle|\; N\in\mathcal{N}_\mu \right\}\tag 1$$
In other texts it is:
$$\operatorname{esssup}f:=\inf\left\{a\ge 0\;\middle|\;\mu\left(\{x\in X\;\middle|\; f(x)>a\}\right)=0 \right\}\tag2$$
Question Are $(1)$ and $(2)$ equivalent? Why?
^cas that is far more common on this site, never once have I seen\complementused, to improve readability. So too did I remove the large-text commands because - what’s the point? They also mess with readability especially for mobile users – FShrike May 31 '22 at 09:06