[step:Prove uniqueness by comparing scalar spectral measures]
Let
\begin{align*}
F:\mathcal B(\sigma(T))\to\mathcal L(H)
\end{align*}
be another projection-valued measure such that
\begin{align*}
T=\int_{\sigma(T)}z\,dF(z).
\end{align*}
For $h,k\in H$, define finite complex measures
\begin{align*}
E_{h,k}(B):=(E(B)h,k)_H
\end{align*}
and
\begin{align*}
F_{h,k}(B):=(F(B)h,k)_H
\end{align*}
for $B\in\mathcal B(\sigma(T))$. These are finite complex Borel measures by the [Countable Additivity in Matrix Coefficients]([citetheorem:8404]).
Apply the [Basic Construction of Operator Integrals]([citetheorem:8407]) to both projection-valued measures $E$ and $F$ on the compact metric space $\sigma(T)$. Thus the associated operator-integral maps on $B_b(\sigma(T))$ are unital $*$-homomorphisms.
Let $p:\sigma(T)\to\mathbb C$ be any polynomial in the two coordinate functions $z$ and $\overline z$. Since both operator-integral maps send $z$ to $T$, the $*$-homomorphism property implies that both send $\overline z$ to $T^*$. Therefore
\begin{align*}
\int_{\sigma(T)}p(z,\overline z)\,dE_{h,k}(z)=\int_{\sigma(T)}p(z,\overline z)\,dF_{h,k}(z).
\end{align*}
The complex [Stone-Weierstrass theorem](/theorems/886) applies to the unital self-adjoint algebra of polynomials in $z$ and $\overline z$, which separates points of the [compact space](/page/Compact%20Space) $\sigma(T)$. Hence these polynomials are uniformly dense in $C(\sigma(T))$. Since $E_{h,k}$ and $F_{h,k}$ are finite measures, uniform approximation gives
\begin{align*}
\int_{\sigma(T)}g\,dE_{h,k}=\int_{\sigma(T)}g\,dF_{h,k}
\end{align*}
for every $g\in C(\sigma(T))$.
By the [Riesz representation theorem](/theorems/221) for finite regular complex Borel measures on compact Hausdorff spaces, equality of integrals against all functions in $C(\sigma(T))$ implies
\begin{align*}
E_{h,k}=F_{h,k}.
\end{align*}
Thus, for every $B\in\mathcal B(\sigma(T))$ and every $h,k\in H$,
\begin{align*}
(E(B)h,k)_H=(F(B)h,k)_H.
\end{align*}
Since the [inner product](/page/Inner%20Product) separates vectors in $H$, this implies $E(B)h=F(B)h$ for every $h\in H$. Hence $E(B)=F(B)$ for every Borel set $B\subset\sigma(T)$, so $E=F$.
This proves existence, the functional calculus properties, the norm formula, and uniqueness of the spectral measure.
[/step]