Theorem. Harmonic cochains realize the Betti numbers [fdip-0090]

Let \(C^0,\ldots ,C^n\) be finite-dimensional real vector spaces and let \(\mathrm {d}_k:C^k\to C^{k+1}\) be linear maps with \(\mathrm {d}_{k+1}\circ \mathrm {d}_k=0\). Degree \(0\) has no incoming map, and degree \(n\) has no outgoing map. Each degree has a positive-definite inner product. Its adjoint is the unique linear map obeying \(\langle \mathrm {d}_k\alpha ,\beta \rangle _{k+1} =\langle \alpha ,\mathrm {d}_k^\dagger \beta \rangle _k\). No Gram matrix enters this definition.

The Hodge Laplacian of degree \(k\) is \(\Delta _k=\mathrm {d}_{k-1}\mathrm {d}_{k-1}^\dagger +\mathrm {d}_k^\dagger \mathrm {d}_k\), with either summand omitted at an endpoint. A cochain \(\gamma \) is harmonic when \(\Delta _k\gamma =0\). Then \(\ker \Delta _k\) is isomorphic to \(H^k=\ker \mathrm {d}_k/\operatorname {im}\mathrm {d}_{k-1}\), and \(C^k\) is the orthogonal sum \(\operatorname {im}\mathrm {d}_{k-1}\oplus \ker \Delta _k\oplus \operatorname {im}\mathrm {d}_k^\dagger \). The kernel of \(\mathrm {d}+\mathrm {d}^{\dagger }\) has dimension equal to the sum of the Betti numbers.

On the square torus of Theorem [fdip-008Z], the evaluation pairing meets the hypotheses. The edge adjoint is the counting adjoint, and at edge weight \(1\) the vertex operator is the negative of the unit-weight weighted graph Laplacian. The Betti numbers \((1,2,1)\) give kernel dimension \(4\). The constant vertex functions, the two winding edge fields, and the constant face function form a basis of counting-harmonic cochains. A vertex function lies in the counting-adjoint image exactly when its values sum to zero. A different positive-definite edge product can leave a winding field with nonzero adjoint.

Remark. Once a basis of each degree has been declared, the Gram matrices \(G_k\) of the inner products satisfy \(\mathrm {d}_k^\dagger =G_k^{-1}\mathrm {d}_k^{T}G_{k+1}\). Identity Gram matrices make this adjoint the counting transpose. The proof above derives that formula, and the Hodge decomposition itself does not use it.