Provedmachine-checked: its own exact check passesid synthesis.set-and-clear-of-a-bit-generate-the-hyperbolic-plane, version 1
Over any commutative ring, set $v$ and clear $w$ on a two-state module satisfy $v^{2} = w^{2} = 0$, $vw + wv = 1$, generate $\mathrm{End}(M)$ with $(\alpha v + \beta w)^{2} = \alpha\beta$ (the Clifford algebra of the hyperbolic plane, no $\tfrac12$ needed), and $v \pm w$ are orthonormal of squares $\pm 1$.
Think of a light switch with two operations: switch on and switch off. Switching on something that is already on does nothing useful, and at any moment the light is either on or off. Written as algebra, those two facts are exactly the rules physicists use for a single particle of matter. From the two operations alone, by adding and subtracting them, one gets two directions, one that squares to plus one and one that squares to minus one, which is the pair of directions the series adds at each step. No halves are needed along the way.
Let $R$ be a commutative ring. A bit over $R$ is the free module $M = R\,s_{\mathrm{off}} \oplus R\,s_{\mathrm{on}}$ on two states; set is the $R$-linear map $v$ with $v\,s_{\mathrm{off}} = s_{\mathrm{on}}$, $v\,s_{\mathrm{on}} = 0$, and clear the $R$-linear map $w$ with $w\,s_{\mathrm{on}} = s_{\mathrm{off}}$, $w\,s_{\mathrm{off}} = 0$. A switch in an associative unital ring is a pair $(a, b)$ with $a^{2} = b^{2} = 0$ and $ab + ba = 1$.
(i) $v^{2}$ sends $s_{\mathrm{off}}$ to $v\,s_{\mathrm{on}} = 0$ and $s_{\mathrm{on}}$ to $0$; likewise $w^{2} = 0$. $vw$ sends $s_{\mathrm{on}}$ to $v\,s_{\mathrm{off}} = s_{\mathrm{on}}$ and $s_{\mathrm{off}}$ to $0$; $wv$ sends $s_{\mathrm{off}}$ to $s_{\mathrm{off}}$ and $s_{\mathrm{on}}$ to $0$. So $vw$ and $wv$ are the two coordinate projections: idempotent, with sum $1$ and products $0$.
(ii) In the basis $(s_{\mathrm{off}}, s_{\mathrm{on}})$ the maps $wv$, $w$, $v$, $vw$ are the four matrices with a single entry $1$, a basis of the $2 \times 2$ matrices over $R$, and $wv = 1 - vw$; so $1, v, w, vw$ is a basis as well (the change of basis has determinant $\pm 1$).
(iii) $x^{2} = \alpha^{2}v^{2} + \beta^{2}w^{2} + \alpha\beta\,(vw + wv) = \alpha\beta$. Let $\phi : L \to B$ be $R$-linear with $\phi(x)^{2} = Q(x)\,1$, and put $a = \phi(v)$, $b = \phi(w)$. Then $a^{2} = Q(v) = 0$, $b^{2} = Q(w) = 0$ and $ab + ba = (a + b)^{2} - a^{2} - b^{2} = Q(v + w) = 1$: $(a, b)$ is a switch in $B$. Define the $R$-linear map $\Phi$ on the basis of (ii) by $1 \mapsto 1$, $v \mapsto a$, $w \mapsto b$, $vw \mapsto ab$. The sixteen products of basis elements are reduced to the basis using only $v^{2} = w^{2} = 0$ and $wv = 1 - vw$: $v \cdot w = vw$, $w \cdot v = 1 - vw$, $v \cdot vw = 0$, $vw \cdot v = v(1 - vw) = v$, $w \cdot vw = (1 - vw)w = w$, $vw \cdot w = 0$, $vw \cdot vw = v(1 - vw)w = vw$, and the rest are $0$ or involve $1$. The same reductions hold for $a$, $b$, which satisfy the same relations, so $\Phi$ is multiplicative on the basis and hence a homomorphism. It is unique because $v$ and $w$ generate $\mathrm{End}_{R}(M)$ by (ii).
(iv) $(v \pm w)^{2} = v^{2} + w^{2} \pm (vw + wv) = \pm 1$, and $(v + w)(v - w) = v^{2} - vw + wv - w^{2} = wv - vw = -(v - w)(v + w)$. By (i), $v + w$ sends $s_{\mathrm{off}}$ to $s_{\mathrm{on}}$ and back, and $wv - vw$ is $+1$ on $s_{\mathrm{off}}$ and $-1$ on $s_{\mathrm{on}}$.
none
check.py::check_set_and_clear_are_a_switch_with_testscheck.py::check_basis_of_the_endomorphisms_over_the_integerscheck.py::check_square_is_the_hyperbolic_formcheck.py::check_universal_property_on_target_switchescheck.py::check_orthonormal_pair_from_the_switchRun them on a clone of the repository: python -m tp check-one synthesis.set-and-clear-of-a-bit-generate-the-hyperbolic-plane --store store
Leon Butler (observation and direction); Claude Fable 5.2 (proposal, mathematics and drafting); Claude Opus 5.5 (independent review).