[example: Multiplication Algebra]
Let $(X,\mathcal E,\mu)$ be a [measure space](/page/Measure%20Space) and set $H=L^2(X,\mathcal E,\mu)$. For $f\in L^\infty(X,\mathcal E,\mu)$ and $g\in H$, the product $fg$ belongs to $L^2$ because
\begin{align*}
\|fg\|_2^2=\int_X |f|^2|g|^2\,d\mu \le \|f\|_\infty^2\int_X |g|^2\,d\mu=\|f\|_\infty^2\|g\|_2^2.
\end{align*}
Thus $M_f g=fg$ defines a bounded operator on $H$. If $f,h\in L^\infty$ and $g\in H$, then
\begin{align*}
M_fM_hg=M_f(hg)=f(hg)=(fh)g=M_{fh}g.
\end{align*}
Since $fh=hf$ almost everywhere, $M_fM_h=M_hM_f$. Also $M_1=I_H$, and for $g,k\in H$,
\begin{align*}
(M_f g,k)_H=\int_X f g\overline{k}\,d\mu=\int_X g\overline{\overline f k}\,d\mu=(g,M_{\overline f}k)_H.
\end{align*}
Therefore $M_f^*=M_{\overline f}$, so $\{M_f:f\in L^\infty(X,\mathcal E,\mu)\}$ is a unital commutative $*$-subalgebra of $\mathcal L(H)$.
It remains to see that it is weak operator closed. Suppose $M_{f_\lambda}$ converges weakly to some $S\in\mathcal L(H)$. By the uniform [boundedness theorem](/theorems/181), there is $C>0$ such that $\|M_{f_\lambda}\|\le C$ for all $\lambda$. For each $u\in L^1(X,\mathcal E,\mu)$, write
\begin{align*}
u=|u|^{1/2}\overline{\overline{\operatorname{sgn}(u)}|u|^{1/2}},
\end{align*}
where $\operatorname{sgn}(u)=0$ on $\{u=0\}$ and $\operatorname{sgn}(u)=u/|u|$ on $\{u\ne 0\}$. Both factors lie in $L^2$, and their $L^2$ norms multiply to $\|u\|_1$. Hence the limit
\begin{align*}
\Phi(u)=\lim_\lambda \int_X f_\lambda u\,d\mu
\end{align*}
exists, because it is a weak matrix coefficient of the net $M_{f_\lambda}$. Moreover
\begin{align*}
|\Phi(u)|\le C\|u\|_1.
\end{align*}
By $L^1$-$L^\infty$ duality, there is some $f\in L^\infty(X,\mathcal E,\mu)$ such that
\begin{align*}
\Phi(u)=\int_X fu\,d\mu
\end{align*}
for every $u\in L^1$. Taking $u=g\overline{k}$ with $g,k\in L^2$, we get
\begin{align*}
(Sg,k)_H=\lim_\lambda (M_{f_\lambda}g,k)_H=\lim_\lambda\int_X f_\lambda g\overline{k}\,d\mu=\int_X fg\overline{k}\,d\mu=(M_f g,k)_H.
\end{align*}
Since this holds for every $k\in H$, $Sg=M_fg$ for every $g\in H$, so $S=M_f$. Thus the multiplication operators form a weakly closed unital commutative $*$-subalgebra, hence a commutative von Neumann algebra.
Finally, its projections are exactly the multiplication operators by characteristic functions. If $M_f$ is a projection, then $M_f^*=M_f$ and $M_f^2=M_f$, so $f=\overline f$ and $f^2=f$ almost everywhere. A real number satisfying $t^2=t$ is either $0$ or $1$, hence $f=\mathbf 1_A$ almost everywhere for $A=\{x:f(x)=1\}$. Conversely,
\begin{align*}
M_{\mathbf 1_A}^2=M_{\mathbf 1_A\mathbf 1_A}=M_{\mathbf 1_A}, \qquad M_{\mathbf 1_A}^*=M_{\overline{\mathbf 1_A}}=M_{\mathbf 1_A}.
\end{align*}
So measurable sets give precisely the projections in this algebra, making its projection theory measure theory in operator form.
[/example]