Cochains, Stokes and Hodge theory [fdip-008Y]
✍️sourceAGENTDRAFTED
- November 2, 2026
Cochains, Stokes and Hodge theory [fdip-008Y]
✍️sourceAGENTDRAFTED
- November 2, 2026
What replaces a derivative when the only space is a grid? The zero-mode count for the centered Dirac operator gives \(\dim _{\mathbb C}\ker D=2^{n+e}\), where \(e\) is the number of even periods among \(N_1,\ldots ,N_n\). For \(n=2\) that dimension is \(2^{2+e}\), so it changes when a side length changes parity.
The square cell complex on the same vertices does not. For every pair of positive integers, the coboundary composed with itself is zero and the real cohomology has dimensions \((1,2,1)\). The following section takes up the adjoint of this coboundary.
Theorem 1. Square tori have Betti numbers (1, 2, 1) [fdip-008Z]AGENTDRAFTED
- November 2, 2026
Theorem 1. Square tori have Betti numbers (1, 2, 1) [fdip-008Z]AGENTDRAFTED
- November 2, 2026
Let \(N_1\) and \(N_2\) be positive integers, and set \(V=N_1N_2\). The vertices are the \(V\) pairs \((x,y)\) of integers modulo \(N_1\) and \(N_2\), with addition of coordinates taken modulo those side lengths. For each vertex there is a horizontal edge \(e^h_{x,y}\) from \((x,y)\) to \((x+1,y)\), a vertical edge \(e^v_{x,y}\) from \((x,y)\) to \((x,y+1)\), and a face \(\sigma _{x,y}\). When a side length equals \(1\), each edge in that direction is a loop. The boundary of the face is \[\partial \sigma _{x,y} =e^h_{x,y}+e^v_{x+1,y}-e^h_{x,y+1}-e^v_{x,y}.\]
Real cochains are real functions on these cells. Write \(C^0\), \(C^1\) and \(C^2\) for the functions on vertices, edges and faces, of dimensions \(V\), \(2V\) and \(V\). A chain is a real linear combination of cells of one dimension, and the evaluation pairing \(\langle \beta ,c\rangle \) sums the pointwise products of a cochain with the coefficients of a chain. The coboundary \(\mathrm {d}\) is the transpose of the boundary, in the sense that \(\langle \mathrm {d}\beta ,c\rangle =\langle \beta ,\partial c\rangle \) whenever the degrees match. On vertex functions this is the incidence map of the ring-valued incidence: \((\mathrm {d} f)(e)=f(h(e))-f(s(e))\). In coordinates, \[\begin {aligned} (\mathrm {d}_0f)^h(x,y)&=f(x+1,y)-f(x,y),\\ (\mathrm {d}_0f)^v(x,y)&=f(x,y+1)-f(x,y),\\ (\mathrm {d}_1\alpha )(\sigma _{x,y}) &=\alpha ^h(x,y)+\alpha ^v(x+1,y) -\alpha ^h(x,y+1)-\alpha ^v(x,y). \end {aligned}\]
The composite \(\mathrm {d}_1\circ \mathrm {d}_0\) is zero. Write \(b_0\) for the dimension of \(\ker \mathrm {d}_0\), write \(b_1\) for the dimension of the quotient of \(\ker \mathrm {d}_1\) by the image of \(\mathrm {d}_0\), and write \(b_2\) for the dimension of the quotient of \(C^2\) by the image of \(\mathrm {d}_1\). These Betti numbers are \(1\), \(2\) and \(1\).
Proof.
- November 2, 2026
Proof.
- November 2, 2026
Substitute the coordinate formulas. At the face \(\sigma _{x,y}\), \[\begin {aligned} (\mathrm {d}_1\mathrm {d}_0f)(\sigma _{x,y}) &=\bigl (f(x+1,y)-f(x,y)\bigr )\\ &\quad +\bigl (f(x+1,y+1)-f(x+1,y)\bigr )\\ &\quad -\bigl (f(x+1,y+1)-f(x,y+1)\bigr )\\ &\quad -\bigl (f(x,y+1)-f(x,y)\bigr ). \end {aligned}\] The 8 terms cancel in pairs, so \(\mathrm {d}_1\mathrm {d}_0f=0\). The pairing separates chains, and therefore the boundary of every face boundary is zero as well.
If \(\mathrm {d}_0f=0\), then \(f(x+1,y)=f(x,y)\) and \(f(x,y+1)=f(x,y)\) for every vertex. Following the horizontal steps from \((0,0)\) and then the vertical steps gives \(f(x,y)=f(0,0)\). The kernel consists of the constant functions, so \(\dim \ker \mathrm {d}_0=1\) and the rank of \(\mathrm {d}_0\) is \(V-1\).
On a single cycle of length \(N\ge 1\), a real function \(g\) on the residues modulo \(N\) is the coboundary of a vertex function if and only if the sum of its values is zero. The forward difference of any vertex function sums to zero. Conversely, if that sum vanishes, set \(f(0)=0\) and let \(f(k)\) be the sum of \(g(0),\ldots ,g(k-1)\) for \(1\le k\le N-1\), with the empty sum equal to zero when \(N=1\). For \(0\le k\le N-2\) the forward difference equals \(g(k)\). The remaining difference is \(f(0)-f(N-1)\). It equals the negative of the sum of \(g(0),\ldots ,g(N-2)\), which the vanishing-sum hypothesis rewrites as \(g(N-1)\). When \(N=1\) both that difference and \(g(0)\) are zero. Thus \(g\) is a coboundary. The functions with vanishing difference are the constants, a one-dimensional space, so the coboundary on the cycle has rank \(N-1\).
Let \(\alpha \) satisfy \(\mathrm {d}_1\alpha =0\). Write \(P^h(y)=\sum _x\alpha ^h(x,y)\) and \(P^v(x)=\sum _y\alpha ^v(x,y)\). Sum the face equation over \(x\). The vertical terms cancel because \(x+1\) runs through every residue, and the result is \(P^h(y)=P^h(y+1)\). Sum the face equation over \(y\). The horizontal terms cancel, and the result is \(P^v(x)=P^v(x+1)\). Thus both quantities are constants; call them \(P^h\) and \(P^v\). If \(\alpha =\mathrm {d}_0f\), each is a sum of a telescoping difference, so \((P^h,P^v)=(0,0)\).
Conversely, suppose \(\mathrm {d}_1\alpha =0\) and \((P^h,P^v)=(0,0)\). For each fixed \(y\), the horizontal row sums to zero, so the cycle criterion supplies a function \(f(\cdot ,y)\) with \(f(0,y)=0\) and horizontal difference \(\alpha ^h\). Define \(\delta (x,y)=\alpha ^v(x,y)-\bigl (f(x,y+1)-f(x,y)\bigr )\). Its horizontal difference is \[\alpha ^v(x+1,y)-\alpha ^v(x,y) -\bigl (\alpha ^h(x,y+1)-\alpha ^h(x,y)\bigr ).\] The face equation rearranges to the vanishing of that expression. Hence \(\delta (x,y)\) depends only on \(y\). The normalization \(f(0,y)=0\) gives the common value \(k(y)=\alpha ^v(0,y)\). The sum of \(k\) is \(P^v=0\), so the cycle criterion supplies \(c\) with \(c(y+1)-c(y)=k(y)\). The function \(f(x,y)+c(y)\) then has horizontal difference \(\alpha ^h\) and vertical difference \(\alpha ^v\). Every cocycle with vanishing periods is therefore a coboundary.
The identity \(\mathrm {d}_1\mathrm {d}_0=0\) puts the image of \(\mathrm {d}_0\) inside \(\ker \mathrm {d}_1\). Coboundaries have vanishing periods, and every cocycle with vanishing periods is a coboundary, so that image is exactly the set of cocycles whose periods vanish. The edge field with every horizontal value \(1\) and every vertical value \(0\) has coboundary zero on each face, because the face sees \(+1\) on its lower edge and \(-1\) on its upper edge. Its periods are \((N_1,0)\). The field with the two roles exchanged is likewise a cocycle, with periods \((0,N_2)\). For real \(a\) and \(b\), the combination with horizontal value \(a/N_1\) and vertical value \(b/N_2\) is a cocycle of periods \((a,b)\). The period map on \(\ker \mathrm {d}_1\) is therefore a surjective linear map to \(\mathbb R^2\), with kernel equal to the image of \(\mathrm {d}_0\). Rank nullity gives \[\dim \ker \mathrm {d}_1=(V-1)+2=V+1,\] and the quotient dimension is \[b_1=(V+1)-(V-1)=2.\] The rank of \(\mathrm {d}_1\) is \(2V-(V+1)=V-1\).
Summing a coboundary over every face cancels: each horizontal value appears once with each sign as \(y\) runs through a full set of residues, and each vertical value does the same as \(x\) does. The sum of the face values is therefore a linear functional vanishing on the image of \(\mathrm {d}_1\). The constant function \(1\) has sum \(V\ne 0\), so the functional is nonzero, its kernel has dimension \(V-1\), and that constant is not a coboundary. The image already has dimension \(V-1\), so the image equals the kernel of the sum. Therefore \(b_2=1\).
The constant vertex functions span the degree-zero cohomology. The two edge fields just named have linearly independent periods, and the degree-one quotient is two-dimensional, so their classes form a basis: one winds around the first coordinate and the other winds around the second. The constant face functions span the degree-two cohomology.
Theorem 2. Harmonic cochains realize the Betti numbers [fdip-0090]AGENTDRAFTED
- November 2, 2026
Theorem 2. Harmonic cochains realize the Betti numbers [fdip-0090]AGENTDRAFTED
- November 2, 2026
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 1, 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.
Proof.
- November 2, 2026
Proof.
- November 2, 2026
Nondegeneracy gives a unique adjoint. Declare a basis of each degree and let \(G_k\) be the Gram matrix of its inner product. Both sides of \(\mathrm {d}_k^\dagger =G_k^{-1}\mathrm {d}_k^{T}G_{k+1}\) equal \(\alpha ^{T}\mathrm {d}_k^{T}G_{k+1}\beta \), since \(G_k\) cancels on the right. Identity Gram matrices make this adjoint the counting transpose. Adjoints reverse composition, so \(\mathrm {d}_k^\dagger \circ \mathrm {d}_{k+1}^\dagger =0\). On one degree, \((\mathrm {d}+\mathrm {d}^{\dagger })\circ (\mathrm {d}+\mathrm {d}^{\dagger })=\Delta _k\) because \(\mathrm {d}\circ \mathrm {d}\) and \(\mathrm {d}^{\dagger }\circ \mathrm {d}^{\dagger }\) vanish, and \[\langle \Delta _k\gamma ,\gamma \rangle =\langle \mathrm {d}_k\gamma ,\mathrm {d}_k\gamma \rangle +\langle \mathrm {d}_{k-1}^\dagger \gamma ,\mathrm {d}_{k-1}^\dagger \gamma \rangle .\] Thus \(\Delta _k\gamma =0\) exactly when both maps vanish on \(\gamma \). On the orthogonal sum of the degrees, \(\mathrm {d}+\mathrm {d}^{\dagger }\) vanishes exactly on harmonic tuples, so the kernel dimension adds.
Equal ranks give \(\dim \ker \mathrm {d}_{k-1}^\dagger =\dim C^k-\operatorname {rank}\mathrm {d}_{k-1}\). If \(\mathrm {d}_{k-1}\alpha \) lies in that kernel, then \(\langle \mathrm {d}_{k-1}\alpha ,\mathrm {d}_{k-1}\alpha \rangle =\langle \alpha ,\mathrm {d}_{k-1}^\dagger \mathrm {d}_{k-1}\alpha \rangle =0\), so \(\mathrm {d}_{k-1}\alpha =0\). The sum of image and kernel is therefore all of \(C^k\). A closed cochain splits as \(\mathrm {d}_{k-1}\alpha +\rho \) with \(\mathrm {d}_{k-1}^\dagger \rho =0\) and \(\mathrm {d}_k\rho =0\), hence \(\rho \) is harmonic. Harmonic coboundaries vanish, so the class map is an isomorphism onto \(H^k\). The same count splits off \(\operatorname {im}\mathrm {d}_k^\dagger \). Cross pairings among the three summands vanish by that adjoint identity.
The torus Gram matrices are identities. Constants are closed and have no incoming adjoint. Each winding is closed, and the counting adjoint returns zero, since one edge enters each vertex and one leaves it with equal values. The constant face function is closed. Summing a coboundary over every face cancels (Theorem 1), so the adjoint vanishes. The 4 cochains occupy three degrees, and the two edge fields are not scalar multiples, so they are independent. Kernel dimension \(4\) makes them a basis. The pairing with the constant \(1\) is the vertex sum. When the horizontal side has length at least \(2\), one horizontal edge of weight \(2\) and all other edges of weight \(1\) leave that winding closed, and the adjoint at its head equals \(1\). On a horizontal loop the two contributions agree.
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.
Remark 3. A positive product gives the finite Hodge decomposition [fdip-00S7]AGENTDRAFTED
- November 15, 2026
Remark 3. A positive product gives the finite Hodge decomposition [fdip-00S7]AGENTDRAFTED
- November 15, 2026
For real matrices \(A\) and \(B\) with \(AB=0\), and for the positive coordinate inner product, [lim2020hodgelaplacians, Theorem 5.2, p. 16] states \(\ker (A^{\dagger }A+BB^{\dagger })=\ker A\cap \ker B^{\dagger }\) and the middle space splits as \({\operatorname {im}}A^{\dagger }\oplus \ker (A^{\dagger }A+BB^{\dagger })\oplus {\operatorname {im}}B\). [lim2020hodgelaplacians, Theorem 5.3, p. 16] gives the isomorphism of that kernel with the cohomology \(\ker A/{\operatorname {im}}B\). Taking \(A\) to be the coboundary leaving the degree and \(B\) the coboundary entering it, this is the orthogonal sum of Theorem 2. For the Whitney inner product, the same three statements are [dodziuk1976hodge, (4.5)-(4.7), p. 94]: the harmonics are the joint kernel, the cochain space is the orthogonal sum of the two images and the harmonics, and the harmonics realize the cohomology of the cochain complex. The opening of that section credits Eckmann, [dodziuk1976hodge, p. 93].
The hypothesis is a positive-definite inner product. Over \(\mathbb {F}_2\), the matrix of [lim2020hodgelaplacians, p. 17], \[A=B=\begin {pmatrix}1&1\\1&1\end {pmatrix},\] has \(AB=0\) and \(A^{T}A+BB^{T}=0\), since each product entry is \(1+1=0\). The kernel of the sum is the whole plane, while \(\ker A\cap \ker B^{T}\) is the line of vectors \((x,x)\). The sum of \({\operatorname {im}}A^{T}\), the kernel of the sum, and \({\operatorname {im}}B\) is not direct. The quotient \(\ker A/{\operatorname {im}}B\) is zero and the intersection is not, so the isomorphism fails on this matrix. These are the clauses the matrix kills. The prime-period form of the same obstruction is Example [fdip-00OM]. Theorem [fdip-00OP] is the ordered-field case proved for positive weights on the torus.
On an oriented triangulation, with real or complex cochains, the operator \(K_D\) of [catteralllaihounmuthyockey2018anomaly, Section 3, pp. 3-5] has kernel the harmonic cochains, isomorphic to the cohomology, and its square is block diagonal by degree, [catteralllaihounmuthyockey2018anomaly, (3.8), p. 5]. Theorem 2 already gives the decomposition for a finite real cochain complex with a positive-definite product.
The same source writes \(K_D=\partial -\bar \partial \) in [catteralllaihounmuthyockey2018anomaly, (3.4), p. 4]. By the coefficient formulas, [catteralllaihounmuthyockey2018anomaly, (3.2), p. 4] sends a cochain on \((p-1)\)-simplices to a cochain on \(p\)-simplices, so the source's \(\partial \) acts as \(\nabla \wedge \), and [catteralllaihounmuthyockey2018anomaly, (3.3), p. 4] is its counting transpose \(\mathrm {d}^{\dagger }\). For the counting product, \(K_D={\nabla \wedge }-\mathrm {d}^{\dagger }={\nabla \wedge }+{\nabla \cdot }=\nabla \), where \(\mathrm {d}^{\dagger }=-\nabla \cdot \) and \(\nabla =\nabla \cdot +\nabla \wedge \). That operator is anti-self-adjoint. The negative sum of the two incidence products in [catteralllaihounmuthyockey2018anomaly, (3.8), p. 5] equals \(K_D^2=\nabla ^{2}\). The operator \(\mathbf {D}=\nabla \wedge +\mathrm {d}^{\dagger }\) is self-adjoint and \(\mathbf {D}^2=-\nabla ^{2}\). The two kernels are the harmonic cochains of Theorem 2. Outside the quoted formula, \(\partial \) is the chain boundary only.