Topological states of matter can be classified only in terms of global topological invariants. These global topological invariants are encoded in terms of global observable topological phase factors in the state vectors of electrons. In condensed matter, the energy spectrum of the Hamiltonian operator has a band structure, meaning that it is piecewise continuous. The energy in each continuous piece depends on the quasi-momentum which varies in the Brillouin zone. Thus, the Brillouin zone of quasi-momentum variables constitutes the base localization space of the energy eigenstates of electrons. This is a continuous topological parameter space bearing the homotopy of a torus. Since the base localization space has the homotopy of a torus, if we vary the quasi-momentum in a direction, when the edge of the zone is reached, we obtain a closed path. Then, if we lift this loop from the base space to the sections of the sheaf-theoretic fibration induced by the localization of the energy eigenfunctions, we obtain a global topological phase factor which encodes the topological structure of the Brillouin zone. Because it is homotopically equivalent to a torus, the global phase factor turns out to be quantized, taking integer values. The experimental significance of this model stems from the recent discovery that there are observable global topological phase factors in fairly ordinary materials. In this communication, we show that it is the unitary representation theory of the discrete Heisenberg group in terms of commutative modular symplectic variables, giving rise to a joint commutative representation space endowed with an integral and Z2-invariant symplectic form that articulates the specific form of the topological conditions characterizing both the quantum Hall effect and the spin quantum Hall effect under a unified sheaf-theoretic cohomological framework.