Proceed by induction on \(n\). Write \(h_r(n)\) for the
degree-\(r\) dimension, with \(h_r(n)=0\) outside
\(0\le r\le n\) and \(h_{-1}(n)=0\).
For \(n=1\), a closed vertex function is constant, so
\(h_0(1)=1\). The values of any vertex coboundary on the edges sum
to zero. Conversely, if an edge cochain sums to zero, set the
vertex value at \(0\) equal to zero and let each later value be the
sum of the preceding edge values. The last step closes because
that sum vanishes, and the forward differences reproduce the edge
cochain. The sum of the edge values is a surjective linear form,
so these coboundaries have codimension one and \(h_1(1)=1\).
Fix \(n\ge 2\) and assume the binomial count in dimension
\(n-1\). Let \(L\) be the cochains supported on cubes whose
direction set contains the largest label \(n\), and let \(Q\) be
the quotient by \(L\). On a cube that omits \(n\), every face in
the coboundary of Theorem [fdip-00OK] omits \(n\) and stays in the
same last coordinate. Thus \(L\) is a subcomplex, and each fixed
last coordinate in \(Q\) carries the coboundary of the
\((n-1)\)-torus. Hence the degree-\(r\) cohomology of \(Q\) has
dimension \(N\,h_r(n-1)\).
On a cube that contains \(n\), a face that still contains \(n\)
lies in the same last coordinate, while the face that drops \(n\)
lies outside \(L\). The differential on \(L\) is the \((n-1)\)
coboundary on each slice. Shifting degree by one, the
degree-\(r\) cohomology of \(L\) has dimension
\(N\,h_{r-1}(n-1)\).
Lift a cocycle family \(\beta _t\) by those values on cubes that
omit \(n\) and by zero on cubes that contain \(n\). The coboundary
of the lift is supported on cubes containing \(n\). On a cube of
direction set \(I\), only the face that drops \(n\) survives, with
sign \((-1)^{\sigma (n,I)}\). Since
\(\sigma (n,I)=\lvert I\rvert -1\) and \(\lvert I\rvert =r+1\), the
sign is \((-1)^r\). The connecting homomorphism sends \((b_t)\) to
\((-1)^r(b_{t+1}-b_t)\). Its kernel is the constant families, of
dimension \(h_r(n-1)\). Its image is the families whose sum is
zero, and partial sums recover every such family.
The short exact sequence of complexes gives a long exact
sequence on cohomology. Exactness at the cohomology of \(Q\)
identifies the image of the torus cohomology with the kernel of
the connecting map, of dimension \(h_r(n-1)\). Exactness at the
cohomology of \(L\) identifies the kernel of the map into the
torus cohomology with the image of the preceding connecting map.
That image has dimension \((N-1)h_{r-1}(n-1)\), so the image in
the torus cohomology has dimension \(h_{r-1}(n-1)\). Exactness at
the torus cohomology adds the two contributions:
\[h_r(n)=h_{r-1}(n-1)+h_r(n-1).\]
The binomial coefficients satisfy the same recurrence and the
same values at \(n=1\). Thus \(h_r(n)=\binom {n}{r}\). Summing over
\(r\) gives \(2^n\).