Provedmachine-checked: its own exact check passesid primer.sign, version 3
The pseudoscalar of $\Cl(p,q)$ satisfies $\omega^{2} = (-1)^{(p-q)(p-q-1)/2}$, so $\omega^{2} = +1$ exactly when $p - q \equiv 0$ or $1 \pmod 4$.
Multiplying all the basis directions of a Clifford algebra together gives a special element called the pseudoscalar. Its square is always plus one or minus one, and this result says which. The answer depends only on the number of positive directions minus the number of negative ones: plus one when that difference leaves remainder 0 or 1 on division by four, and minus one otherwise.
$\displaystyle \omega^2 = (-1)^{\tfrac{n(n-1)}{2}} (-1)^q = (-1)^{\tfrac{(p-q)(p-q-1)}{2}}$. In particular $\omega^2 = +1$ if and only if $p - q \equiv 0$ or $1 \pmod 4$.
Reversion reverses the factors of $\omega$, which takes $\binom{n}{2} = \tfrac{n(n-1)}{2}$ transpositions of orthogonal (hence anticommuting) generators: $\tilde{\omega} = (-1)^{n(n-1)/2}\,\omega$. On the other hand $\omega \tilde{\omega} = e_1 \cdots e_n\, e_n \cdots e_1 = e_1^2 \cdots e_n^2 = (+1)^p(-1)^q$, collapsing from the inside out. Combining, $\omega^2 = (-1)^{n(n-1)/2}(-1)^q$. For the second form set $m = p - q$, so $n \equiv m \pmod 2$ and $q = (n-m)/2$; the exponent is \[ \frac{n(n-1)}{2} + \frac{n-m}{2} \;=\; \frac{n^2 - m}{2}, \qquad \frac{n^2 - m}{2} - \frac{m^2 - m}{2} \;=\; \frac{(n-m)(n+m)}{2} \;=\; 2pq, \] an even integer, so the exponent is congruent mod 2 to $\tfrac{m^2 - m}{2} = \tfrac{m(m-1)}{2}$. Hence $\omega^2 = (-1)^{m(m-1)/2}$, and $m(m-1)/2$ is even exactly for $m \equiv 0, 1 \pmod 4$.
none
check.py::check_omega_squarecheck.py::check_exponent_parity_identityRun them on a clone of the repository: python -m tp check-one primer.sign --store store
Leon Butler (idea, direction and review); Claude Fable 5 (mathematics and drafting); Claude Opus 5.5 (maintainer pass, foundation layer, version 3).