Lemma. Torus cohomology and exact cochain multiplicities [fdip-00NN]

For the dual cellular complex and every \(N\ge 2\), including composite \(N\), \[H^j(K^*;A)\cong A^{\binom nj}\qquad (0\le j\le n).\] Writing \(|Z^j(K^*;A)|=N^{z_j}\), the integers \(z_j\) are determined by the actual dual cell counts: \[z_0=1,\qquad z_{j+1}=n_j^*-z_j+\binom n{j+1}\quad (0\le j<n).\] Consequently \(|Z^{n-3}|=N\) for \(n=3\), and \(|Z^{n-3}|=N^{n_0^*+3}\) for \(n=4\). These cardinalities are units in the weight ring.

Mathlib's Submodule.card_eq_card_quotient_mul_card supports the finite module cardinality step over a ring. Neither this step nor the proof above treats arbitrary submodules over \(\mathbb Z/N\) as vector spaces.