Theorem. Square tori have Betti numbers (1, 2, 1) [fdip-008Z]

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 \(d\) is the transpose of the boundary, in the sense that \(\langle 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: \((df)(e)=f(h(e))-f(s(e))\). In coordinates, \[\begin {aligned} (d_0f)^h(x,y)&=f(x+1,y)-f(x,y),\\ (d_0f)^v(x,y)&=f(x,y+1)-f(x,y),\\ (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 \(d_1\circ d_0\) is zero. Write \(b_0\) for the dimension of \(\ker d_0\), write \(b_1\) for the dimension of the quotient of \(\ker d_1\) by the image of \(d_0\), and write \(b_2\) for the dimension of the quotient of \(C^2\) by the image of \(d_1\). These Betti numbers are \(1\), \(2\) and \(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.