A finite sum of squares in an ordered field vanishes only when
every square vanishes, and \(x^2=0\) forces \(x=0\). Thus
\(\langle \alpha ,\alpha \rangle =0\) forces \(\alpha =0\). For a
subspace \(W\), the intersection \(W\cap W^\perp \) is zero. The
map from the cochain space to the dual of \(W\) sending
\(\alpha \) to the form \(\beta \mapsto \langle \alpha ,\beta \rangle \)
has kernel \(W^\perp \). The restriction to \(W\) has kernel
\(W\cap W^\perp \), so it is injective. A finite-dimensional
vector space has the same dimension as its dual. An injective
linear map between finite-dimensional spaces of equal
dimension is bijective, so the restriction is bijective onto
that dual.
The image of the map contains this dual, so the map is
surjective. Rank-nullity gives the direct sum of \(W\) and
\(W^\perp \). Take \(W=\ker \mathbf {D}\).
If \(\alpha \) is orthogonal to \(\ker \mathbf {D}\) and \(\beta \) is
harmonic, then
\(\langle \mathbf {D}\alpha ,\beta \rangle =\langle \alpha ,\mathbf {D}\beta \rangle =0\),
so \(\mathbf {D}\) preserves the complement. Its kernel on the complement
is zero, and the complement is finite-dimensional, so \(\mathbf {D}\) is
an isomorphism there. On that complement both \(\mathbf {D} E\) and \(E\mathbf {D}\)
are the identity, and on the kernel both are zero, so
\(\mathbf {D} E=E\mathbf {D}=\mathbb {I} -H\). Since \(E\) maps into the complement and vanishes
on the kernel, \(EH=HE=0\).
For the projection,
\(\langle H\alpha ,\beta \rangle =\langle H\alpha ,H\beta \rangle \),
because \(H\alpha \) is orthogonal to \(\beta -H\beta \). The same
value is \(\langle \alpha ,H\beta \rangle \). If \(\alpha \) and
\(\gamma \) lie in the complement, then \(\mathbf {D} E\gamma =\gamma \) and
\(E\alpha \) lies in the complement, so
\[\langle E\alpha ,\gamma \rangle =\langle E\alpha ,\mathbf {D} E\gamma \rangle
=\langle \mathbf {D} E\alpha ,E\gamma \rangle =\langle \alpha ,E\gamma \rangle .\]
If either argument lies in \(\ker \mathbf {D}\), then \(E\) kills the
harmonic argument and the remaining argument of \(E\) is
orthogonal to \(\ker \mathbf {D}\), so both sides vanish. The direct sum
gives the general case.