327 Associativity in the Boolean Ring and the Cone of Squares

At the two-element level, the logical connectives are polynomials over \(\mathbb {F}_2\) with \(\varphi ^2=\varphi \), and associativity of both connectives is the symmetry of an expansion: a rebracketing cannot change a symmetric polynomial. At the level of order, the positive cone is not chosen but generated: it is the set of sums of squares, the three cone conditions follow from that description, and antisymmetry is equivalent to \(-1\) not being a sum of squares. This excludes \(\mathbb {F}_2\) — the Boolean level carries no order — and forces the cone on \(\mathbb {Z}\), \(\mathbb {R}\) and on operators, where \(\Pi =\Pi ^{\dagger }\Pi \).

327.1 The connectives as polynomials

On the two-element structure \(\mathbb {F}_2=\{0,1\}\), where \(\varphi ^2=\varphi \) (the projector equation) and \(\varphi +\varphi =0\), set

\begin{equation} \neg \varphi =1+\varphi , \qquad \varphi \wedge \psi =\varphi \psi , \qquad \varphi \vee \psi =\varphi +\psi +\varphi \psi . \tag{20503}\end{equation}
Negation is the involution, \(\neg \neg \varphi =1+1+\varphi =\varphi \), and idempotence of both connectives follows from \(\varphi ^2=\varphi \) and characteristic two:
\begin{equation} \varphi \wedge \varphi =\varphi ^2=\varphi , \qquad \varphi \vee \varphi =3\varphi =\varphi . \tag{20504}\end{equation}

327.2 Associativity is symmetry of the expansion

Conjunction is multiplication, so

\begin{equation} (\varphi \wedge \psi )\wedge \chi =\varphi \psi \chi =\varphi \wedge (\psi \wedge \chi ). \tag{20505}\end{equation}
For disjunction, expanding one bracketing,
\begin{equation} (\varphi \vee \psi )\vee \chi =(\varphi +\psi +\varphi \psi )+\chi +(\varphi +\psi +\varphi \psi )\chi =\varphi +\psi +\chi +\varphi \psi +\varphi \chi +\psi \chi +\varphi \psi \chi , \tag{20506}\end{equation}
which is \(e_1+e_2+e_3\), the sum of the elementary symmetric polynomials in \(\varphi ,\psi ,\chi \). A symmetric polynomial is unchanged by any permutation of its arguments, so the other bracketing, which expands to a polynomial in the same three arguments, must give the same result:
\begin{equation} (\varphi \vee \psi )\vee \chi =\varphi \vee (\psi \vee \chi ). \tag{20507}\end{equation}
The same conclusion follows by conjugation. Since
\begin{equation} 1+(\varphi \vee \psi )=(1+\varphi )(1+\psi ), \qquad \text {that is}\qquad \neg (\varphi \vee \psi )=\neg \varphi \wedge \neg \psi , \tag{20508}\end{equation}
disjunction is conjunction conjugated by the involution \(\vartheta =\neg \), and associativity of multiplication transfers to \(\vee \). In either reading associativity costs nothing: the value of a bracketed expression depends only on the set of its arguments, the idempotent version of the count-invariance that made multiplication of generators associative.

327.3 The cone of squares

In a commutative ring \(R\) let

\begin{equation} P=\Bigl \{\textstyle \sum _{i}x_i^2\Bigr \} \tag{20509}\end{equation}
be the set of finite sums of squares. Three properties are immediate:
\begin{equation} 0\in P, \qquad P+P\subseteq P, \qquad P\cdot P\subseteq P, \tag{20510}\end{equation}
the last because \(\bigl (\sum _i a_i^2\bigr )\bigl (\sum _j b_j^2\bigr )=\sum _{i,j}(a_ib_j)^2\). The first two are reflexivity and transitivity of \(x\le y:\iff y-x\in P\). The remaining condition is antisymmetry, and in a field it is equivalent to a single statement about \(-1\):
\begin{equation} P\cap (-P)=\{0\} \iff -1\notin P . \tag{20511}\end{equation}
Indeed, if \(-1\in P\) then \(1,-1\in P\). Conversely, if \(x\neq 0\) with \(x,-x\in P\), then
\begin{equation} -1=(-x)\cdot x\cdot \bigl (x^{-1}\bigr )^2\in P . \tag{20512}\end{equation}
A field admits an order precisely when it is formally real.

327.4 The Boolean level has no order

In \(\mathbb {F}_2\),

\begin{equation} -1=1=1^2\in P , \tag{20513}\end{equation}
so \(P\cap (-P)\neq \{0\}\) and no order exists. This is why the connectives above are symmetric and carry no sign: the two-element structure supplies identity, involution and projector, but the distinction between \(<\) and \(>\) requires characteristic zero, reached through the pair construction of \(\mathbb {Z}\).

327.5 The cone on \(\mathbb {Z}\), \(\mathbb {R}\) and operators

Integers. In \(\mathbb {Z}\) the sums of squares are exactly \(\mathbb {N}\), since every natural number is a sum of four squares. Antisymmetry can also be read directly from the successor: if \(a,b\in \mathbb {N}\) with \(a=-b\), then \(a+b=0\); were \(b=S(c)\), then \(a+S(c)=S(a+c)\neq 0\), so \(b=0\) and hence \(a=0\). Totality, \(P\cup (-P)=\mathbb {Z}\), is the canonical representative of each pair class, \((a,b)\sim (k,0)\) or \((0,k)\).

Reals. In \(\mathbb {R}\) every non-negative element is a square, so

\begin{equation} P=\{x^2\} \tag{20514}\end{equation}
and the order is determined by the multiplication alone: any ring automorphism of \(\mathbb {R}\) preserves squares, hence preserves \(P\). The cone on \(\mathbb {R}\) is not a choice.

Operators. For a self-adjoint idempotent,

\begin{equation} \Pi =\Pi ^2=\Pi ^{\dagger }\Pi , \tag{20515}\end{equation}
so \(\Pi \) is itself a square and \(\langle v,\Pi v\rangle =\|\Pi v\|^2\). The positive cone of operators is the cone of squares \(\{A^{\dagger }A\}\), and \(\Pi \ge 0\) is membership in it — the positivity lemma in the form of this section.

327.6 Summary

Structure Cone \(P\) \(-1\in P\)? Order
\(\mathbb {F}_2\) \(\{0,1\}\) yes, \(-1=1^2\) none
\(\mathbb {Z}\) \(\mathbb {N}\) (four squares) no total
\(\mathbb {Q}\) sums of squares no total
\(\mathbb {R}\) \(\{x^2\}\) no total, forced
operators \(\{A^{\dagger }A\}\) no partial; \(\Pi =\Pi ^{\dagger }\Pi \in P\)
\begin{equation} A=A \;\Longrightarrow \;\varphi ^2=\varphi ,\ \neg \neg \varphi =\varphi \;\Longrightarrow \;\wedge ,\vee \ \text {associative} \;\Longrightarrow \;\mathbb {Z} \;\Longrightarrow \;P=\textstyle \sum x_i^2 \;\Longrightarrow \;-1\notin P \;\Longrightarrow \;\le _P . \tag{20516}\end{equation}

327.7 Order from the Diagonal

The only primitive is the diagonal of a set,

\begin{equation} \Delta _X:X\to X\times X, \qquad \Delta _X(x)=(x,x), \tag{20517}\end{equation}
which is \(A=A\) written as a map. Composition, associativity, idempotents and the order all follow.

Composition. A map is its graph, the diagonal pushed forward, \(\Gamma _f=(\operatorname {id}_X\times f)(\Delta _X)\), and the identity is the map whose graph is the diagonal, \(\Gamma _{\operatorname {id}_X}=\Delta _X\). Composing \(f:X\to Y\) with \(g:Y\to Z\) requires the output of \(f\) to be the same element as the input of \(g\), which is membership in \(\Delta _Y\):

\begin{equation} \Gamma _{g\circ f} =\pi _{13}\Bigl [(\Gamma _f\times \Gamma _g)\cap (X\times \Delta _Y\times Z)\Bigr ], \qquad (g\circ f)(x)=g\bigl (f(x)\bigr ). \tag{20518}\end{equation}

Associativity and identity. Both bracketings of a composite reduce to one flat expression,

\begin{equation} \begin {aligned} \bigl ((f\circ g)\circ h\bigr )(x)&=(f\circ g)\bigl (h(x)\bigr )=f\bigl (g(h(x))\bigr ),\\ \bigl (f\circ (g\circ h)\bigr )(x)&=f\bigl ((g\circ h)(x)\bigr )=f\bigl (g(h(x))\bigr ), \end {aligned} \tag{20519}\end{equation}
and the flat expression \(f(g(h(x)))\) is a single value, so it carries no bracketing at all. Hence \((f\circ g)\circ h=f\circ (g\circ h)\), and gluing with \(\Delta _X\) changes nothing, \(f\circ \operatorname {id}_X=f=\operatorname {id}_X\circ f\), so \(\bigl (X^X,\circ ,\operatorname {id}_X\bigr )\) is a monoid.

The same pattern governs any homomorphism \(f\) into an associative target. Both bracketings of a sum flatten to the same expression,

\begin{equation} \begin {aligned} f\bigl ((a+b)+c\bigr )&=f(a+b)+f(c)=f(a)+f(b)+f(c),\\ f\bigl (a+(b+c)\bigr )&=f(a)+f(b+c)=f(a)+f(b)+f(c), \end {aligned} \tag{20520}\end{equation}
where the unbracketed right-hand side is meaningful because the target’s addition is associative. Associativity is therefore the statement that every bracketing reaches one normal form: for composition the normal form is a single value and needs nothing further, and for any other operation it is transported along a homomorphism from a target where it already holds.

Idempotents. In this monoid a projector is an idempotent, \(\Pi \circ \Pi =\Pi \). Consider an algebra under composition in which every element is idempotent, \(x^2=x\), sums included. Then

\begin{equation} \begin {aligned} (x+x)^2&=x+x &&\Longrightarrow \ 2x=0,\quad -x=x,\\ (a+b)^2&=a+b &&\Longrightarrow \ ab+ba=0,\quad ab=ba,\\ \neg x&:=1+x &&\Longrightarrow \ (\neg x)^2=\neg x,\quad \neg \neg x=x , \end {aligned} \tag{20521}\end{equation}
so characteristic two, commutativity and the involution are consequences of \(x^2=x\), not further assumptions.

Order. Define \(a\le b:\Longleftrightarrow ab=a\). Then

\begin{equation} \begin {aligned} &\text {reflexivity:} && aa=a,\\ &\text {transitivity:} && ab=a,\ bc=b\ \Longrightarrow \ ac=(ab)c=a(bc)=a,\\ &\text {antisymmetry:} && ab=a,\ ba=b\ \Longrightarrow \ a=ab=ba=b . \end {aligned} \tag{20522}\end{equation}

Step Statement Source
composition glue graphs along \(\Delta _Y\) diagonal
associativity, identity both bracketings agree; \(\Gamma _{\operatorname {id}}=\Delta \) diagonal
commutativity \((a+b)^2=a+b\) \(x^2=x\)
involution \(\neg x=1+x\) \(x^2=x\)
reflexivity \(aa=a\) \(x^2=x\)
transitivity \(ac=(ab)c=a(bc)\) associativity
antisymmetry \(a=ab=ba=b\) commutativity

For commuting self-adjoint projections this is the cone order: if \(\Pi _a\Pi _b=\Pi _a\) then \(\Pi _b-\Pi _a\) is a self-adjoint idempotent, so \(\Pi _b-\Pi _a=(\Pi _b-\Pi _a)^{\dagger }(\Pi _b-\Pi _a)\in P\).

\begin{equation} \Delta _X \ \Longrightarrow \ \circ \ \Longrightarrow \ \text {associativity} \ \Longrightarrow \ x^2=x \ \Longrightarrow \ ab=ba,\ \neg \neg x=x \ \Longrightarrow \ \le \ \Longrightarrow \ P . \tag{20523}\end{equation}

327.8 Involution, Characteristic Two and Idempotence

Three conditions appear at the two-element level: the involution \(\neg \neg a=a\), the additive condition \(a+a=0\), and idempotence \(a\cdot a=a\). The involution can be written in two forms, \(1-a\) and \(1+a\), and the relation between them is exactly the relation between these three conditions.

The involution in any ring. In any ring with unit set

\begin{equation} \neg a:=1-a . \tag{20524}\end{equation}
With no condition on the characteristic,
\begin{equation} \neg \neg a=1-(1-a)=a, \qquad (\neg a)^2=1-2a+a^2=1-a=\neg a\quad \text {whenever } a^2=a , \tag{20525}\end{equation}
so complementation is an involution and preserves idempotents, using nothing beyond \(a^2=a\).

The involution in characteristic two. Written instead as

\begin{equation} \neg a:=a+1, \tag{20526}\end{equation}
the same checks read
\begin{equation} \neg \neg a=(a+1)+1=a+(1+1), \qquad (a+1)^2=a^2+2a+1 , \tag{20527}\end{equation}
and both reduce to the desired form precisely when \(1+1=0\): then \(\neg \neg a=a+0=a\) and \((a+1)^2=a+1\) for idempotent \(a\).

When the two forms coincide. The condition \(1+1=0\) gives \(a+a=a(1+1)=0\) for every \(a\), hence \(-a=a\) and

\begin{equation} 1-a=1+a . \tag{20528}\end{equation}
So \(a\mapsto 1-a\) is the general involution, and \(a\mapsto a+1\) is the same map once the characteristic is two. In an algebra where every element is idempotent the characteristic is two automatically — shown next — so there either form may be used.

Idempotence implies characteristic two. If every element is idempotent, sums included, then

\begin{equation} (a+a)^2=a+a \ \Longrightarrow \ 4a=2a \ \Longrightarrow \ a+a=0 . \tag{20529}\end{equation}
The hypothesis must cover \(a+a\): a single idempotent does not suffice, since \(1\in \mathbb {Z}\) satisfies \(1\cdot 1=1\) while \(1+1\neq 0\).

The converses fail.

\begin{equation} a+a=0\ \not \Longrightarrow \ a\cdot a=a, \qquad \neg \neg a=a\ \not \Longrightarrow \ a+a=0 . \tag{20530}\end{equation}
In \(\mathbb {F}_2[x]\) one has \(x+x=0\) but \(x^2\neq x\); in \(\mathbb {R}\) the map \(a\mapsto 1-a\) is an involution while \(1+1=2\neq 0\).

From To Holds?
\(\neg a=1-a\) \(\neg \neg a=a\) yes, any ring
\(\neg a=1+a\) \(\neg \neg a=a\) only if \(1+1=0\)
\(1+1=0\) \(1-a=1+a\) yes
\(x^2=x\) for all \(x\) \(a+a=0\) yes, via \((a+a)^2=a+a\)
\(a^2=a\) for one \(a\) \(a+a=0\) no, \(1\in \mathbb {Z}\)
\(a+a=0\) \(a^2=a\) no, \(x\in \mathbb {F}_2[x]\)
\(\neg \neg a=a\) \(a+a=0\) no, \(1-a\) on \(\mathbb {R}\)

Idempotence is the strongest of the three: it forces characteristic two, and characteristic two makes the two forms of the involution one map. The involution itself does not need characteristic two, since \(a\mapsto 1-a\) is available in every ring; the form \(a\mapsto a+1\) is that same map read at the two-element level. This is why, in Subsection 327.7, the line \(\neg x:=1+x\) is valid as written: it follows the line \(2x=0\), after which \(1+x=1-x\).