Let $(X,\Sigma,\mu)$ be a measure space and consider the algebra $L^\infty(X)$. The real-valued functions carry a canonical order, where $g\leq f$ if $g(x)\leq f(x)$ a.e. The following result holds:
Let $B\subset L^\infty(X)$ be a set of real valued functions which is bounded (that is, there exists $c>0$ with $\|f\|_\infty\leq c$ for all $f\in B$). Then $B$ admits a least upper bound $g$ in $L^\infty(X)$.
As far as I can tell, the straightforward argument that one first thinks about does not work; because one would attempt to take the pointwise supremum, which of course will be bounded but there is no obvious reason why it has to be measurable. Moreover, taking the pointwise supremum raises the issue of dealing with possibly uncountably many nullsets, which kind of puts the argument away from usual measure theory.
The reason I know the result is true is the following. For any $F\subset B$ finite, we can define $g_F=\max\{f:\ f\in F\}$. Because we are dealing with finitely many functions, $g_F\in L^\infty(X)$ and $f\leq g_F$ a.e. for all $f\in F$. Now the net $\{g_F\}_{F\in B}$ is a monotone increasing bounded net of real-valued functions. Here is where I need to appeal to higher level stuff: since $L^\infty(X)$ is a von Neumann algebra, any bounded monotone increasing net of selfadjoint elements admits a least upper bound. So there exists $g\in L^\infty(X)$ that is the least upper bound of $\{g_F\}_{F\in B}$. The reason $g$ is a least upper bound for $B$ is that if $h$ is an upper bound for $B$, then $g_F\leq h$ for all $F$, and then $g\leq h$.
And now we get to the question: is it possible to prove the existence of the least upper bound for $B$, with measure theory arguments?
The proof using von Neumann algebra ideas is not crazy hard, but it uses non-trivial results. Basically one represents $L^\infty(X)$ faithfully on $B(\ell^2(X))$ acting by left multiplication, that is $\pi(f)\eta=f\,\eta$, and considers the numerical nets $\{\langle \pi(g_F)\xi,\xi\rangle\}$ for each $\xi\in \ell^2(X)$. As these are bounded monotone nets in $\mathbb R$, they converge. This way one gets numbers $\{\langle T\xi,\xi\rangle\}$ and it is standard Hilbert space theory using polarization that this defines an operator $T\in B(\ell^2(X))$. The operator $T$ is a weak-operator limit of elements of $\pi(L^\infty(X))$, which is a von Neumann algebra, and so $T\in \pi(L^\infty(X))$, which means that there exists $g\in L^\infty(X)$ with $\pi(g)=T$.
It would be nice to have instead a proof intrinsic to $L^\infty(X)$.