197 From \(A=A\) to Categorical Quantum Mechanics (CQM)

Categorical quantum mechanics [218, 221] is the internal language of a biproduct dagger-compact closed category, and this entire structure unfolds from the identity \(A=A\). The reflexivity \(\mathrm {refl}_x:x=x\) of the identity type seeds an \(\infty \)-groupoid; the reversed homotopy path \(p\mapsto p^{-1}\) becomes the dagger \(f\mapsto f^\dagger \); identity elimination gives duality (\(\eta ,\epsilon \)); path composition gives the Frobenius structure; and the idempotents \(\Pi ^2=\Pi \) are the biproduct projectors. The scalars recover \(\mathbb {C}\) in \(\mathbf {FdHilb}\) and the Boolean \(\mathbb {F}_2\) in \(\mathbf {Rel}\).

\begin{equation} {\footnotesize \boxed {\mathrm {HoTT} \xrightarrow {\mathrm {Id\ Type}} \infty \text {-Groupoid} \xrightarrow {p^{-1}} \mathrm {Dagger\ Category} \xrightarrow {\otimes ,\eta ,\epsilon } \mathrm {Dagger\ Compact\ Closed} \xrightarrow {\mathrm {Frobenius}} \mathrm {Categorical\ QM}.}} \tag{10984}\end{equation}

197.1 HoTT \(\to \) \(\infty \)-Groupoid

Identity type from \(A=A\)

For a type \(A:\mathcal {U}\) and terms \(x,y:A\), the identity type is \(\mathrm {Id}_A(x,y)\), whose terms are paths \(p:x=y\). The identity \(A=A\) is the reflexivity term:

\begin{equation} \mathrm {refl}_x:x=x. \tag{10985}\end{equation}
Paths admit inversion and composition:
\begin{equation} p^{-1}:y=x, \qquad p:x=y,\ q:y=z\;\Rightarrow \;q\circ p:x=z, \tag{10986}\end{equation}
with associativity up to higher path:
\begin{equation} (q\circ p)\circ r = q\circ (p\circ r). \tag{10987}\end{equation}
\begin{equation} \boxed {\mathrm {Id}_A\rightarrow \mathrm {Groupoid}.} \tag{10988}\end{equation}
Category extraction
\begin{equation} \mathrm {Ob}(\mathcal {C})=A, \qquad \mathrm {Hom}(x,y)=\mathrm {Id}_A(x,y), \qquad \mathrm {id}_x=\mathrm {refl}_x, \tag{10989}\end{equation}
with \(f:x\to y\), \(g:y\to z\) composing to \(g\circ f:x\to z\).
\begin{equation} \boxed {\mathrm {HoTT}\rightarrow \mathrm {Category}.} \tag{10990}\end{equation}

197.2 Groupoid \(\to \) Dagger: The Reversed Path

The path inverse becomes the dagger:

\begin{equation} p^\dagger := p^{-1}:y=x, \qquad (p^\dagger )^\dagger =p, \qquad (q\circ p)^\dagger =p^\dagger \circ q^\dagger . \tag{10991}\end{equation}
The identity path is self-dual, and for unitary morphisms the dagger is the inverse:
\begin{equation} \mathrm {id}_A^\dagger =\mathrm {id}_A, \qquad f^\dagger =f^{-1}\ (\text {unitary}). \tag{10992}\end{equation}
\begin{equation} \boxed {\mathrm {Path\ inverse}\rightarrow \dagger .} \tag{10993}\end{equation}

Logical reading. The dagger is the reverse implication. With \((A\to B)\equiv (\neg A\vee B)\) and \(\neg (A\to B)\equiv A\wedge \neg B\), the contravariant functor \(\dagger :\mathrm {Hom}(A,B)\to \mathrm {Hom}(B,A)\) sends

\begin{equation} f:A\to B\;\mapsto \;f^\dagger :B\to A, \qquad (A\Rightarrow B)^\dagger =(B\Rightarrow A). \tag{10994}\end{equation}
Modus Ponens \(\dfrac {A\quad A\to B}{B}\) is composition \(\dfrac {\psi :I\to A\quad f:A\to B}{f\circ \psi :I\to B}\).

197.3 Dagger Structure: Unitary, Hermitian, Positive

For \(\mathcal {C}=(\mathrm {Ob},\mathrm {Hom},\otimes ,I)\) and \(f:A\to B\), the dagger functor is contravariant, involutive, identity-on-objects:

\begin{equation} \boxed {(g\circ f)^\dagger =f^\dagger \circ g^\dagger ,} \qquad \boxed {(f^\dagger )^\dagger =f,} \qquad \boxed {\mathrm {id}_A^\dagger =\mathrm {id}_A.} \tag{10995}\end{equation}
The three morphism classes:
\begin{equation} \boxed {f^\dagger f=\mathrm {id}_A,\ ff^\dagger =\mathrm {id}_B} \ (\text {unitary}), \qquad \boxed {f=f^\dagger } \ (\text {Hermitian}), \qquad \boxed {f=g^\dagger g} \ (\text {positive}). \tag{10996}\end{equation}
Positivity (\(f=g^\dagger g\)) is the categorical density matrix; it is strictly stronger than Hermiticity.

197.4 Symmetric Monoidal Structure

\begin{equation} (A\otimes B)\otimes C\cong A\otimes (B\otimes C), \qquad \sigma _{A,B}:A\otimes B\to B\otimes A, \qquad I\otimes A\cong A, \tag{10997}\end{equation}
with associator, unitor, and braiding all unitary:
\begin{equation} (f\otimes g)^\dagger =f^\dagger \otimes g^\dagger , \qquad \alpha ^\dagger =\alpha ^{-1}, \qquad \lambda ^\dagger =\lambda ^{-1}, \qquad \sigma ^\dagger =\sigma ^{-1}. \tag{10998}\end{equation}
The type product becomes the tensor: \((f\otimes g)(x,y)=(fx,gy)\).
\begin{equation} \boxed {\mathrm {Type\ product}\rightarrow \otimes .} \tag{10999}\end{equation}

197.5 Compact Closure: Duality from Identity Elimination

Each object \(A\) has a dual \(A^*\) with unit and counit:

\begin{equation} \eta _A:I\to A^*\otimes A, \qquad \epsilon _A:A\otimes A^*\to I, \tag{11000}\end{equation}
satisfying the snake (yanking) equations:
\begin{equation} (\epsilon _A\otimes 1_A)(1_A\otimes \eta _A)=1_A, \qquad (1_{A^*}\otimes \epsilon _A)(\eta _A\otimes 1_{A^*})=1_{A^*}. \tag{11001}\end{equation}
The dagger-compact compatibility ties counit to unit:
\begin{equation} \boxed {\epsilon _A^\dagger =\eta _A,} \qquad \text {equivalently}\qquad \eta _A=\sigma _{A,A^*}\circ \epsilon _A^\dagger . \tag{11002}\end{equation}
The dual morphism \(f^*:B^*\to A^*\) and the lower star \(f_*=f^{*\dagger }=f^{\dagger *}:A^*\to B^*\) (a covariant functor, \((f\circ g)_*=f_*\circ g_*\)) complete the structure.
\begin{equation} \boxed {\mathrm {Identity\ elimination}\rightarrow \mathrm {Duality}, \qquad A\leftrightarrow A^*.} \tag{11003}\end{equation}

197.6 Frobenius Structure from Path Composition

Path composition and its dagger give the Frobenius algebra:

\begin{equation} \mu :A\otimes A\to A, \qquad \delta :A\to A\otimes A, \qquad \delta =\mu ^\dagger , \tag{11004}\end{equation}
with associativity \(\mu (\mu \otimes 1)=\mu (1\otimes \mu )\) inherited from path composition.
\begin{equation} \boxed {\mathrm {Path\ composition}\rightarrow \mathrm {Frobenius\ structure}.} \tag{11005}\end{equation}

197.7 Scalars, States, Effects, Inner Product

Scalars. The unit endomorphisms form a commutative monoid:

\begin{equation} \mathrm {Scalars}(\mathcal {C})=\mathrm {Hom}(I,I), \qquad s\circ t=t\circ s. \tag{11006}\end{equation}

States and effects.

\begin{equation} \psi :I\to A\ (\text {ket}), \qquad \pi :A\to I\ (\text {bra}), \qquad \pi =\psi ^\dagger . \tag{11007}\end{equation}

Inner product. The dagger produces the bra from the ket; their composite is a scalar:

\begin{equation} \boxed {\langle \psi |\phi \rangle =\psi ^\dagger \circ \phi :I\to I, \qquad \langle \psi |\psi \rangle =\psi ^\dagger \psi \geq 0.} \tag{11008}\end{equation}

197.8 Trace and Born Rule

Trace. Compact closure supplies the categorical trace:

\begin{equation} \mathrm {Tr}(f) =\epsilon _A\circ \sigma _{A,A^*}\circ (f\otimes 1_{A^*})\circ \eta _A :I\to I. \tag{11009}\end{equation}

Born rule. The transition probability is the squared inner product, a positive scalar:

\begin{equation} \boxed {\Pr (\phi \mid \psi ) =\langle \psi |\phi \rangle ^\dagger \langle \psi |\phi \rangle =|\langle \psi |\phi \rangle |^2.} \tag{11010}\end{equation}
The dagger makes this real and non-negative: \(s^\dagger s\geq 0\) for every scalar \(s\).

197.9 Biproducts and the Projectors \(\Pi ^2=\Pi \)

\begin{equation} A\oplus B, \qquad p_i:A\oplus B\to A_i, \qquad q_i:A_i\to A\oplus B, \qquad p_i q_j=\delta _{ij}, \tag{11011}\end{equation}
with identity decomposition and dagger-biproduct compatibility:
\begin{equation} \boxed {q_1 p_1+q_2 p_2=\mathrm {id}_{A\oplus B},} \qquad \boxed {p_i^\dagger =q_i,} \qquad (f\oplus g)^\dagger =f^\dagger \oplus g^\dagger . \tag{11012}\end{equation}
The composites \(q_i p_i\) are the orthogonal projectors:
\begin{equation} \Pi _i := q_i p_i, \qquad \Pi _i^2=q_i(p_i q_i)p_i=q_i p_i=\Pi _i, \qquad \Pi _i^\dagger =p_i^\dagger q_i^\dagger =q_i p_i=\Pi _i. \tag{11013}\end{equation}
\begin{equation} \boxed {\Pi ^2=\Pi =\Pi ^\dagger .} \tag{11014}\end{equation}
This is the same idempotent as the partition \(A=A\Rightarrow T=O\sqcup U\): biproducts provide superposition and superselection, \(\Pi _O+\Pi _U=\mathrm {id}\). The diagonal and codiagonal satisfy \(\Delta ^\dagger =\nabla \) with \(\langle f,g\rangle ^\dagger =[f^\dagger ,g^\dagger ]\).

197.10 The Complete Structure

\begin{equation} \boxed { \begin {aligned} &\text {Biproduct Dagger Compact Closed Category}\\ &=\text {Dagger}+\text {Symmetric Monoidal} +\text {Compact}+\text {Biproduct}. \end {aligned} } \tag{11015}\end{equation}
Enrichment in commutative monoids gives addition of morphisms (\((f+g)\circ h=f\circ h+g\circ h\)), a zero morphism (\(0\circ h=0\)), and tensor distributing over biproduct \((A\oplus B)\otimes C\cong (A\otimes C)\oplus (B\otimes C)\).

197.11 Examples

\(\mathbf {FdHilb}\). Objects are finite-dimensional Hilbert spaces, morphisms are linear maps, \(f^\dagger \) is the Hilbert adjoint \(\langle fv|w\rangle =\langle v|f^\dagger w\rangle \):

\begin{equation} \mathrm {Scalars}=\mathbb {C},\quad \text {states}=\text {vectors},\quad \text {inner product}=\text {Hilbert inner product},\quad \text {trace}=\text {matrix trace}. \tag{11016}\end{equation}

\(\mathbf {Rel}\).

\begin{equation} A\otimes B=A\times B, \qquad A\oplus B=A+B, \qquad A^*=A, \qquad R^\dagger =\{(y,x)\mid (x,y)\in R\}, \tag{11017}\end{equation}
with \(R^*=R^\dagger \), and crucially:
\begin{equation} \boxed {\mathrm {Scalars}(\mathbf {Rel})=\{0,1\}=\mathbb {B}=\mathbb {F}_2.} \tag{11018}\end{equation}
This is the same \(\mathbb {F}_2\) structure as the set-algebra idempotents of the partition \(T=O\sqcup U\), linking categorical QM directly to the bit-lattice origin.
\begin{equation} {\footnotesize \boxed {\mathbf {FdHilb}\approx \text {categorical formulation of QM},} \qquad \boxed {\text {Category}\to \text {Dagger}\to \text {Compact} \to \text {Quantum Mechanics}.} } \tag{11019}\end{equation}

Interpretation

Every ingredient of quantum mechanics lives inside a biproduct dagger-compact category with no external Hilbert space assumed. The dagger gives adjoints, bras, and the reality of probabilities; the monoidal product gives composite systems; compact closure gives duals, entangled units \(\eta \), the trace, and the graphical calculus; biproducts give superposition and the projectors \(\Pi ^2=\Pi \). The scalars \(\mathrm {Hom}(I,I)\) recover \(\mathbb {C}\) in \(\mathbf {FdHilb}\) and the Boolean \(\mathbb {F}_2\) in \(\mathbf {Rel}\), linking categorical QM to the \(\mathbb {F}_2\) set-algebra. Quantum mechanics is not imposed on a Hilbert space; it is the internal language of a dagger-compact category, and the dagger \(f\mapsto f^\dagger \) — the reversed homotopy path \(p\mapsto p^{-1}\) of the identity type \(\mathrm {Id}_A\), itself the categorical form of \(A=A\) — is its defining move.

\begin{equation} \boxed { A=A \xrightarrow {\mathrm {refl}} \mathrm {Id}_A \xrightarrow {p^{-1}} \dagger \xrightarrow {\eta ,\epsilon } \text {compact} \xrightarrow {\mu =\delta ^\dagger } \text {Frobenius} \xrightarrow {q_ip_i} \Pi ^2=\Pi \xrightarrow {} \text {QM}. } \tag{11020}\end{equation}

Remark 197.1 (The \(\mathbb {F}_2\) idempotent is a Frobenius algebra).

The single idempotent relation \(a^2=a\) over \(\mathbb {F}_2\) already carries the full Frobenius structure of the previous section. The partition idempotent is not merely an object in a dagger-compact category — it generates one.

Idempotent seed.

\begin{equation} a^2=a,\qquad a\in \{0,1\}, \qquad \Longrightarrow \qquad \textbf {idempotent algebra}\quad a\cdot a=a. \tag{11021}\end{equation}
Take the two-element carrier \(A=\{0,1\}\).

Multiplication.

\begin{equation} \mu :A\otimes A\to A, \qquad \mu (a\otimes b)=a\cdot b, \tag{11022}\end{equation}
associative by the idempotent product:
\begin{equation} \boxed {\mu (\mu \otimes \mathrm {id})=\mu (\mathrm {id}\otimes \mu ),} \qquad (ab)c=a(bc). \tag{11023}\end{equation}

Unit.

\begin{equation} \eta :\mathbb {F}_2\to A, \qquad \eta (1)=1_A, \qquad \boxed {\mu (\eta \otimes \mathrm {id})=\mathrm {id}=\mu (\mathrm {id}\otimes \eta ).} \tag{11024}\end{equation}

Comultiplication (the dagger of \(\mu \)).

\begin{equation} \delta =\mu ^\dagger :A\to A\otimes A, \qquad \boxed {\delta (a)=a\otimes a.} \tag{11025}\end{equation}
This is the diagonal — the copy map — forced as the dagger of the idempotent product.

Counit.

\begin{equation} \epsilon :A\to \mathbb {F}_2, \qquad \epsilon (a)=1. \tag{11026}\end{equation}

Frobenius law. The multiplication and comultiplication interlock:

\begin{equation} \delta \mu =(\mu \otimes \mathrm {id})(\mathrm {id}\otimes \delta ) =(\mathrm {id}\otimes \mu )(\delta \otimes \mathrm {id}), \qquad \boxed {\text {Frobenius law.}} \tag{11027}\end{equation}

Result.

\begin{equation} \boxed {a^2=a \rightarrow \mu (a,a)=a \rightarrow \delta =\mu ^\dagger \rightarrow (A,\mu ,\eta ,\delta ,\epsilon ).} \tag{11028}\end{equation}
\begin{equation} \boxed {\mathbb {F}_2\text { idempotent structure} \Rightarrow \text {Frobenius algebra}.} \tag{11029}\end{equation}
The idempotent \(a^2=a\) — the same relation as the projector \(\Pi ^2=\Pi \) and the partition \(O\cap U=\varnothing \) — is a special commutative dagger-Frobenius algebra. Its comultiplication \(\delta (a)=a\otimes a\) is the copy map, and in \(\mathbf {FdHilb}\) such Frobenius algebras are exactly orthonormal bases (the classical structures of categorical QM). The \(\mathbb {F}_2\) bit is therefore not just a carrier of quantum structure but the classical (copyable) object whose idempotent product is the Frobenius backbone of the whole category. \(A=A\) delivers a Frobenius algebra directly.

197.12 From \(\mathbb {F}_2\) Operations to Categorical Structure

The two algebraic operations of \(\mathbb {F}_2\) — multiplication \((\cdot )\) and addition \((+)\) — lift to the two categorical structures \(\otimes \) (monoidal product) and \(\oplus \) (biproduct). The bit algebra \((\mathbb {F}_2,+,\cdot )\) becomes the category \((\mathcal {C},\oplus ,\otimes )\): algebra operations lifted to categorical structure operations.

\begin{equation} \boxed {\mathbb {F}_2:(+,\cdot ) \quad \longrightarrow \quad \mathcal {C}:(\oplus ,\otimes ).} \tag{11030}\end{equation}
The \(\mathbb {F}_2\) carrier
\begin{equation} \boxed {\mathbb {F}_2=\{0,1\},} \qquad a^2=a. \tag{11031}\end{equation}
(1) Multiplication \((\cdot )\)
\begin{equation} \mu :A\otimes A\to A, \qquad \mu (a\otimes b)=a\cdot b, \qquad \boxed {a\cdot a=a.} \tag{11032}\end{equation}
The idempotent product \(a\cdot a=a\) is the AND / intersection operation (\(O\cap U\)).
(2) Addition \((+)\)
\begin{equation} +:A\oplus A\to A, \qquad a+b\pmod 2, \qquad \boxed {1+1=0.} \tag{11033}\end{equation}
The mod-2 sum is the XOR / symmetric difference; \(1+1=0\) is the \(\mathbb {Z}_2\) self-inverse structure.
(3) Tensor product \((\otimes )\)
\begin{equation} \otimes :A\times A\to A\otimes A, \qquad (a,b)\mapsto a\otimes b, \qquad \boxed {(A\otimes B)\otimes C\cong A\otimes (B\otimes C).} \tag{11034}\end{equation}
Multiplication lifts to the monoidal product.

Associativity from the idempotent product. The associator of \(\otimes \) is inherited directly from the associativity of \(\mathbb {F}_2\) multiplication. Mapping \((a,b,c)\mapsto (a\otimes b)\otimes c\) and using \(a\otimes b=ab\) on \(\mathbb {F}_2\):

\begin{equation} (a\otimes b)\otimes c = (ab)\otimes c = (ab)c = a(bc) = a\otimes (b\otimes c), \tag{11035}\end{equation}
so
\begin{equation} \boxed {(a\otimes b)\otimes c = a\otimes (b\otimes c)} \quad \Longleftrightarrow \quad \boxed {(ab)c=a(bc).} \tag{11036}\end{equation}
The two boundary cases verify it directly:
\begin{equation} a=b=c=0:\quad (0\cdot 0)\cdot 0=0\cdot (0\cdot 0)=0, \qquad a=b=c=1:\quad (1\cdot 1)\cdot 1=1\cdot (1\cdot 1)=1. \tag{11037}\end{equation}
Therefore:
\begin{equation} \boxed {\mathbb {F}_2\text { multiplication associativity} \;\Longleftrightarrow \; \otimes \text { associativity}.} \tag{11038}\end{equation}
The monoidal associator is not an extra axiom — it is the associative law of the bit product \((ab)c=a(bc)\) lifted to objects.
(4) Tensor sum \((\otimes _+)\): distributivity
\begin{equation} \otimes _+ = \otimes \oplus +, \qquad (A\oplus B)\otimes C\cong (A\otimes C)\oplus (B\otimes C), \tag{11039}\end{equation}
\begin{equation} \boxed {\otimes _+:\ \text {multiplication structure} +\text {additive structure}.} \tag{11040}\end{equation}
Distributivity of \(\otimes \) over \(\oplus \) is the categorical form of the ring distributivity \(a(b+c)=ab+ac\) in \(\mathbb {F}_2\).

Left distributivity. Mapping \(a\otimes (b+c)\) through \(a\otimes b=ab\):

\begin{equation} a\otimes (b+c) = a(b+c) = ab+ac = (a\otimes b)+(a\otimes c), \tag{11041}\end{equation}
\begin{equation} \boxed {a\otimes (b+c)=(a\otimes b)+(a\otimes c).} \tag{11042}\end{equation}

Right distributivity.

\begin{equation} (a+b)\otimes c = (a+b)c = ac+bc = (a\otimes c)+(b\otimes c), \tag{11043}\end{equation}
\begin{equation} \boxed {(a+b)\otimes c=(a\otimes c)+(b\otimes c).} \tag{11044}\end{equation}

Verification with \(1+1=0\). Using the \(\mathbb {F}_2\) relation \(1+1=0\):

\begin{equation} 1\otimes (1+1)=1\otimes 0=0, \qquad (1\otimes 1)+(1\otimes 1)=1+1=0, \tag{11045}\end{equation}
so both sides agree. Therefore:
\begin{equation} \boxed {\mathbb {F}_2\text { distributivity} \;\Longleftrightarrow \; \otimes \text {--}\oplus \text { distributive law}.} \tag{11046}\end{equation}
The distributive law of a biproduct category is not imposed — it is the ring distributivity \(a(b+c)=ab+ac\) of \(\mathbb {F}_2\) lifted to objects, with \(1+1=0\) guaranteeing consistency.

Left distributivity. Mapping \(a\otimes (b+c)\) through \(a\otimes b=ab\):

\begin{equation} a\otimes (b+c) = a(b+c) = ab+ac = (a\otimes b)+(a\otimes c), \tag{11047}\end{equation}
\begin{equation} \boxed {a\otimes (b+c)=(a\otimes b)+(a\otimes c).} \tag{11048}\end{equation}

Right distributivity.

\begin{equation} (a+b)\otimes c = (a+b)c = ac+bc = (a\otimes c)+(b\otimes c), \tag{11049}\end{equation}
\begin{equation} \boxed {(a+b)\otimes c=(a\otimes c)+(b\otimes c).} \tag{11050}\end{equation}

Verification with \(1+1=0\). Using the \(\mathbb {F}_2\) relation \(1+1=0\):

\begin{equation} 1\otimes (1+1)=1\otimes 0=0, \qquad (1\otimes 1)+(1\otimes 1)=1+1=0, \tag{11051}\end{equation}
so both sides agree. Therefore:
\begin{equation} \boxed {\mathbb {F}_2\text { distributivity} \;\Longleftrightarrow \; \otimes \text {--}\oplus \text { distributive law}.} \tag{11052}\end{equation}
The distributive law of a biproduct category is not imposed — it is the ring distributivity \(a(b+c)=ab+ac\) of \(\mathbb {F}_2\) lifted to objects, with \(1+1=0\) guaranteeing consistency.
The two categorical structures

Monoidal product \(\otimes \) (from multiplication).

\begin{equation} \otimes :\text {monoidal product}, \qquad A\otimes B, \qquad I:\text {tensor unit}, \tag{11053}\end{equation}
\begin{equation} \boxed {\text {combine two objects into one object}} \qquad \boxed {(A,\otimes ,I)\to \text {symmetric monoidal category}.} \tag{11054}\end{equation}

Biproduct \(\oplus \) (from addition).

\begin{equation} \oplus :\text {biproduct (additive structure)}, \qquad A\oplus B, \qquad 0:\text {zero object}, \tag{11055}\end{equation}
\begin{equation} \boxed {\text {direct sum of two objects}} \qquad \boxed {(A,\oplus ,0)\to \text {additive / biproduct category}.} \tag{11056}\end{equation}
Physical reading
\begin{equation} \boxed {\otimes =\text {composition of systems}} \qquad \boxed {\oplus =\text {sum of alternatives}.} \tag{11057}\end{equation}
The tensor \(\otimes \) builds composite quantum systems (joint Hilbert space \(\mathcal {H}_A\otimes \mathcal {H}_B\)); the biproduct \(\oplus \) superposes alternatives (direct sum \(\mathcal {H}_A\oplus \mathcal {H}_B\)), carrying the projectors \(\Pi ^2=\Pi \).
\begin{equation} \boxed {\mathbb {F}_2 \rightarrow (\cdot ,+) \rightarrow (\otimes ,\oplus ) \rightarrow \text {biproduct dagger compact category} \rightarrow \text {Frobenius algebra}.} \tag{11058}\end{equation}

The two operations \(+\) and \(\cdot \) are the operations of the algebra \(\mathbb {F}_2\); the two structures \(\oplus \) and \(\otimes \) are the same operations lifted categorically to the monoidal/additive structure of \(\mathcal {C}\). Multiplication becomes system composition (\(\otimes \)), addition becomes superposition of alternatives (\(\oplus \)), and their distributivity becomes the distributive law \((A\oplus B)\otimes C\cong (A\otimes C)\oplus (B\otimes C)\) of a biproduct dagger-compact category — the categorical home of quantum mechanics. The bit algebra \(\mathbb {F}_2\) is the arithmetic shadow of the categorical quantum structure.

197.13 Equality as Shared Value: Reflexivity, Symmetry, Transitivity

Equality \(a=b\) means sharing a common value: \(a=b\Longleftrightarrow \exists v:(a=v)\wedge (b=v)\). From this single characterisation, reflexivity (\(\mathrm {refl}_v:v=v\)), symmetry (\(a=b\Rightarrow b=a\)), and transitivity (\((a=b)\wedge (b=c)\Rightarrow a=c\)) all follow. In HoTT these become path composition (\(\circ =\) transitivity) and path inverse (\(^{-1}=\) symmetry).

I. Equality as shared value

The defining characterisation:

\begin{equation} a=b \quad \Longleftrightarrow \quad \exists \,v:\ a=v,\quad b=v, \qquad \boxed {a=b=v.} \tag{11059}\end{equation}
Both sides equal a common value \(v\), and in particular each is equal to itself through it:
\begin{equation} \boxed {a=a=v,\qquad b=b=v,} \qquad \boxed {(a=b)\Longleftrightarrow (a=v)\wedge (b=v).} \tag{11060}\end{equation}

Examples.

\begin{equation} 2=2:\quad a=b=2,\quad a=a=2,\quad b=b=2, \qquad 5=5:\quad a=b=5,\quad a=a=5,\quad b=b=5. \tag{11061}\end{equation}
II. Reflexivity

The reflexivity term \(\mathrm {refl}_v:v=v\) is the seed. Given \(a=v\) and \(b=v\):

\begin{equation} \mathrm {refl}_v:v=v \quad \Longrightarrow \quad a=v,\ b=v \quad \Longrightarrow \quad \boxed {a=b=v.} \tag{11062}\end{equation}
III. Symmetry

From \(a=v\) and \(b=v\), swapping the order:

\begin{equation} a=v,\ b=v \quad \Longrightarrow \quad b=v,\ a=v \quad \Longrightarrow \quad \boxed {b=a.} \tag{11063}\end{equation}
\begin{equation} \boxed {a=b\Longrightarrow b=a} \qquad (\text {Equality symmetry}). \tag{11064}\end{equation}
IV. Transitivity

From \(a=v\), \(b=v\), \(c=v\), dropping the middle:

\begin{equation} a=v,\ b=v,\quad b=v,\ c=v \quad \Longrightarrow \quad a=v,\ c=v \quad \Longrightarrow \quad \boxed {a=c.} \tag{11065}\end{equation}
\begin{equation} \boxed {(a=b)\wedge (b=c)\Longrightarrow a=c} \qquad (\text {Equality transitivity}). \tag{11066}\end{equation}
V. Summary of the three laws
\begin{equation} \boxed {\mathrm {refl}_v \;\Longrightarrow \; a=b=v \;\Longrightarrow \; b=a \;\Longrightarrow \; a=c.} \tag{11067}\end{equation}
\begin{equation} \boxed {a=b=v \Longrightarrow \begin {cases} b=a & (\text {Symmetry})\\[2mm] (a=b)\wedge (b=c)\Rightarrow a=c & (\text {Transitivity}) \end {cases}} \tag{11068}\end{equation}
VI. HoTT: composition and inverse

The three equality laws become the groupoid operations on paths. For \(p:x=y\), \(q:y=z\):

\begin{equation} q\circ p:x=z \qquad (\text {Composition = transitivity}), \qquad p^{-1}:y=x \qquad (\text {Inverse = symmetry}). \tag{11069}\end{equation}
\begin{equation} \boxed {\circ =\text {transitivity}, \qquad {}^{-1}=\text {symmetry}.} \tag{11070}\end{equation}

Logical reading.

Interpretation

Equality is sharing a value: \(a=b\) iff both equal a common \(v\). This one characterisation generates the entire equivalence-relation structure — reflexivity is \(\mathrm {refl}_v:v=v\), symmetry is the swap \(a=v,b=v\mapsto b=v,a=v\), and transitivity is the drop of the shared middle \(a=v,b=v,c=v\mapsto a=v,c=v\). Lifted to HoTT, symmetry becomes the path inverse \(p^{-1}\) (the dagger) and transitivity becomes path composition \(q\circ p\) (the categorical composite). The identity \(A=A\) — \(\mathrm {refl}_v:v=v\) — is the reflexivity that seeds both, making it the root of the groupoid, the dagger, and the composition of the category built in the previous subsections.

197.14 The inverse-to-identity mechanism is the same for numbers and paths

The multiplicative inverse of a number and the path inverse of HoTT are the same mechanism: an element composed with its inverse collapses to the identity. Only the identity element differs — \(1\) for numbers, \(\mathrm {id}\) for paths.

Numbers: inverse to \(1\)
\begin{equation} 5^{-1}=\frac {1}{5}, \qquad 5\cdot 5^{-1}=1, \qquad 5^{-1}\cdot 5=1. \tag{11071}\end{equation}
In general, for an element \(a\) with multiplicative inverse \(a^{-1}\):
\begin{equation} \boxed {a\cdot a^{-1}=1, \qquad a^{-1}\cdot a=1, \qquad a^{-1}\Longrightarrow 1.} \tag{11072}\end{equation}
The identity element is \(1\).
Paths / groups: inverse to \(\mathrm {id}\)

For a path \(p:a\to b\) in HoTT (or a morphism in a group/category):

\begin{equation} p^{-1}:b\to a, \qquad p^{-1}\circ p=\mathrm {id}_a, \qquad p\circ p^{-1}=\mathrm {id}_b. \tag{11073}\end{equation}
\begin{equation} \boxed {p^{-1}\circ p=\mathrm {id}, \qquad p\circ p^{-1}=\mathrm {id}, \qquad p^{-1}\Longrightarrow \mathrm {id}.} \tag{11074}\end{equation}
The identity element is \(\mathrm {id}\).
The same mechanism
\begin{equation} \boxed {a^{-1}\cdot a=1 \quad \Longleftrightarrow \quad p^{-1}\circ p=\mathrm {id}.} \tag{11075}\end{equation}




Numbers Paths / groups



Inverse \(5^{-1}=\tfrac {1}{5}\) \(p^{-1}:b\to a\)
Composition \(5\cdot 5^{-1}\) \(p\circ p^{-1}\)
Result \(=1\) \(=\mathrm {id}\)
Identity \(1\) \(\mathrm {id}\)



The number inverse is not the reciprocal in some special sense that sets it apart — it is the same inverse-to-identity law, with the multiplicative identity \(1\) playing the role that \(\mathrm {id}\) plays for paths. Composing an element with its inverse collapses to the identity in both cases: \(a\cdot a^{-1}=1\) and \(p^{-1}\circ p=\mathrm {id}\) are one structure. The identity (\(1\) or \(\mathrm {id}\)) is the fixed point of the composition, and it is \(A=A\): the reflexive \(\mathrm {refl}_x\) that every inverse cancels down to.

The three laws of equality from a single assignment

A single value assignment already generates the reflexivity, symmetry, and transitivity of equality — the three groupoid laws of the identity type.

Reflexivity. From \(v=5\), any two names for the value agree:

\begin{equation} v=5 \;\Rightarrow \; a=5,\ b=5 \;\Rightarrow \; a=b=5 \;\Rightarrow \; 5=5=5, \tag{11076}\end{equation}
so each term equals itself:
\begin{equation} a=a=5,\qquad b=b=5,\qquad v=v=5 \qquad (\text {reflexivity, }\mathrm {refl}). \tag{11077}\end{equation}

Symmetry.

\begin{equation} a=5,\ b=5 \;\Rightarrow \; b=5,\ a=5 \;\Rightarrow \; b=a \qquad (\text {symmetry, }p\mapsto p^{-1}). \tag{11078}\end{equation}

Transitivity.

\begin{equation} a=5,\ b=5,\ c=5 \;\Rightarrow \; a=b,\ b=c \;\Rightarrow \; a=c \qquad (\text {transitivity, }q\circ p). \tag{11079}\end{equation}

Result.

\begin{equation} \boxed {v=5 \;\Longrightarrow \; a=b=v=5 \;\Longrightarrow \; 5=5=5.} \tag{11080}\end{equation}
The three properties are exactly the groupoid structure of \(\mathrm {Id}_A\): reflexivity is \(\mathrm {refl}_x\) (the identity morphism), symmetry is the inverse \(p\mapsto p^{-1}\) (the dagger), and transitivity is composition \(q\circ p\). A single \(v=5\) — one instance of \(A=A\) — delivers all three, which is why the identity type is a groupoid and, with the dagger, the seed of the whole categorical quantum structure.

197.15 Singleton uniqueness forces \(1=1\)

\begin{equation} \{1\}=\{x\mid x=1\} \tag{11081}\end{equation}
\begin{equation} \boxed {\{5,6\}=\{x\mid x=5\lor x=6\}} \tag{11082}\end{equation}
\begin{equation} x\in \{5,6\} \;\Longleftrightarrow \; (x=5)\lor (x=6) \tag{11083}\end{equation}
\begin{equation} 5\in \{5,6\}\;\Longrightarrow \;5=5 \qquad 6\in \{5,6\}\;\Longrightarrow \;6=6 \tag{11084}\end{equation}
\begin{equation} \boxed {\{5,6\}=\{x\mid x=5\lor x=6\}} \tag{11085}\end{equation}

The identity element is unique because it inhabits a singleton. For any \(v\in V\) with \(a=v\) and \(b=v\):

\begin{equation} (a=v)\wedge (b=v)\;\Longrightarrow \;a=b. \tag{11086}\end{equation}
In particular, for the singleton \(V=\{1\}\):
\begin{equation} a\in \{1\},\ b\in \{1\} \;\Longrightarrow \; a=1,\ b=1 \;\Longrightarrow \; a=b, \tag{11087}\end{equation}
so \(a=b=1\), with \(a=a=1\) and \(b=b=1\). Written as one chain:
\begin{equation} \boxed {a,b\in \{1\} \;\Longleftrightarrow \; a=1\wedge b=1 \;\Longrightarrow \; a=b \;\Longleftrightarrow \; 1=1.} \tag{11088}\end{equation}
This follows directly from the uniqueness of the single element of \(\{1\}\): a singleton has exactly one inhabitant, so any two of its elements are equal, and that equality is \(1=1\). The identity to which every inverse collapses is unique because \(\{ \mathrm {id} \}\) (or \(\{1\}\)) is a singleton — and singleton uniqueness is \(A=A\) read as “there is exactly one thing equal to itself here.” The inverse-to-identity mechanism terminates at a unique fixed point precisely because that fixed point lives alone.

Remark 197.2 (Composition as cancellation: from inverse law to hypothetical syllogism).

Categorical composition is the cancellation of an intermediate object. The same move appears as the inverse law in groups, isomorphism in categories, path cancellation in HoTT, and the hypothetical syllogism in logic — all instances of \(A=A\).

I. Composition cancels the middle object

For \(f:x\to y\) and \(g:y\to z\):

\begin{equation} \boxed {x\xrightarrow {f}y\xrightarrow {g}z,} \qquad g\circ f:x\to z. \tag{11089}\end{equation}
Writing composition right-to-left, \(g\circ f=(z\leftarrow y)\circ (y\leftarrow x)\), the shared object \(y\) cancels:
\begin{equation} y\;\cancel {\rightarrow }\;y \quad \Longrightarrow \quad x\to z. \tag{11090}\end{equation}
\begin{equation} \boxed {f:x\to y,\ g:y\to z \;\Longrightarrow \; g\circ f:x\to z.} \tag{11091}\end{equation}
II. The inverse law: cancellation \(=1\)

The cancellation is exactly the inverse law: composing an arrow with its inverse yields the identity:

\begin{equation} \boxed {y^{-1}\circ y=\mathrm {id}_y,} \qquad \boxed {y\circ y^{-1}=\mathrm {id}_y,} \qquad \mathrm {id}_y=1. \tag{11092}\end{equation}
\begin{equation} \boxed {y\to y^{-1}\text { cancellation}=1.} \tag{11093}\end{equation}
The identity \(\mathrm {id}_y=1\) is the multiplicative unit; cancelling \(y\) against \(y^{-1}\) leaves \(1\), so the composite passes straight through from \(x\) to \(z\).
III. The same law across four settings




Setting Statement Name



Algebra \(a\circ b=a\circ c\Rightarrow b=c\) Cancellation law
Group \(xx^{-1}=x^{-1}x=e\) Inverse axiom
Category \(f^{-1}\circ f=\mathrm {id}_A,\ f\circ f^{-1}=\mathrm {id}_B\) Isomorphism
HoTT \(p\circ p^{-1}=\mathrm {refl}\) Path cancellation



All four are the same equation: an element composed with its inverse collapses to the identity, and the identity is transparent to composition.

IV. Logical form: contrapositive and hypothetical syllogism

Inverse / bidirectional.

\begin{equation} A\to B,\quad B\to A \quad \Longrightarrow \quad \boxed {A\leftrightarrow B.} \tag{11094}\end{equation}

Contrapositive.

\begin{equation} A\to B \quad \Longleftrightarrow \quad \neg B\to \neg A \qquad (\text {Contrapositive}). \tag{11095}\end{equation}

Hypothetical syllogism (composition).

\begin{equation} A\to B,\quad B\to C \quad \therefore \quad A\to C, \qquad \boxed {(A\to B)\wedge (B\to C)\Rightarrow (A\to C).} \tag{11096}\end{equation}
This is composition \(g\circ f\) with the middle term \(B\) cancelled — the logical form of \(y\;\cancel {\to }\;y\).

Syllogism on contrapositives. Applying the contrapositive to each premise:

\begin{equation} A\to B\;\Rightarrow \;\neg B\to \neg A, \qquad B\to C\;\Rightarrow \;\neg C\to \neg B, \tag{11097}\end{equation}
then chaining \(\neg C\to \neg B\to \neg A\):
\begin{equation} \boxed {\neg C\to \neg A} \qquad (\text {Hypothetical syllogism on contrapositives}). \tag{11098}\end{equation}
This is the contrapositive of \(A\to C\) — confirming that composition commutes with the dagger/contrapositive: reversing all arrows and chaining gives the reversed composite.

Composition, the inverse law, isomorphism, path cancellation, and the hypothetical syllogism are one structure. In each, an object composed with its inverse cancels to the identity (\(y^{-1}\circ y=\mathrm {id}_y\), \(\mathrm {id}=1\)), and composition chains two arrows by cancelling the shared middle term. The contrapositive is the dagger (\((A\to B)^\dagger =(\neg B\to \neg A)\), arrows reversed), and the hypothetical syllogism on contrapositives shows composition and dagger commute: \((g\circ f)^\dagger =f^\dagger \circ g^\dagger \) read logically. The identity \(\mathrm {id}_A=\mathrm {refl}_x\) that makes cancellation possible is \(A=A\); composition is the transitivity of \(=\), and the inverse is its symmetry.

197.16 Cardinality versus Dimension: \(|\mathbb {F}_2^n|=2^n=\dim _\mathbb {C}(\mathbb {C}^2)^{\otimes n}\)

The binary space \(\mathbb {F}_2^n\) and the qubit Hilbert space \((\mathbb {C}^2)^{\otimes n}\) share the number \(2^n\), but the equality is only numerical: on the \(\mathbb {F}_2\) side \(2^n\) is a cardinality (the number of classical configurations); on the \(\mathbb {C}\) side \(2^n\) is a dimension (the size of the Hilbert basis). The two spaces are not equal — \(\mathbb {F}_2^n\) is the set of basis labels, \((\mathbb {C}^2)^{\otimes n}\) is their complex span.

The \(\mathbb {F}_2\) side: multiplication and addition
\begin{equation} \boxed {\mathbb {F}_2}, \qquad A=\{0,1\}, \qquad a+b\in \mathbb {F}_2, \qquad a\cdot b\in \mathbb {F}_2, \tag{11099}\end{equation}
with ring distributivity \(a(b+c)=ab+ac\) and structure \((A,\oplus ,\cdot )\).
The \(\mathbb {C}\) side: amplitudes and superposition
\begin{equation} \boxed {\mathcal {H}_Q}, \qquad \mathcal {H}=(\mathbb {C}^2)^{\otimes n}, \qquad |0\rangle =\begin {pmatrix}1\\0\end {pmatrix}, \quad |1\rangle =\begin {pmatrix}0\\1\end {pmatrix}, \tag{11100}\end{equation}
\begin{equation} |\psi \rangle =\alpha |0\rangle +\beta |1\rangle , \qquad |\alpha |^2+|\beta |^2=1. \tag{11101}\end{equation}
The passage \(\mathbb {F}_2\to \mathbb {C}^2\)
\begin{equation} \boxed {\mathbb {F}_2\to \mathbb {C}^2}, \qquad 0,1\;\mapsto \;|0\rangle ,|1\rangle , \tag{11102}\end{equation}
and the ring distributivity lifts to the categorical distributivity:
\begin{equation} a(b+c)=ab+ac \quad \Longrightarrow \quad A(B+C)=AB+AC, \qquad \boxed {\otimes (\oplus )=(\otimes )\oplus (\otimes ).} \tag{11103}\end{equation}
Cardinality: counting points
\begin{equation} \boxed {|\mathbb {F}_2^n|=2^n,} \qquad \boxed {\text {cardinality}=\#\{\text {points}\}.} \tag{11104}\end{equation}
A point is a bit-string \(x=(x_1,\dots ,x_n)\) with \(x_i\in \mathbb {F}_2\):
\begin{equation} \boxed {\mathbb {F}_2^n=\{0,1\}^n,} \qquad \#(\mathbb {F}_2^n)=2^n. \tag{11105}\end{equation}
Dimension: counting basis vectors
\begin{equation} \boxed {\mathcal {H}_n=(\mathbb {C}^2)^{\otimes n},} \qquad \boxed {\dim _\mathbb {C}(\mathcal {H}_n)=2^n.} \tag{11106}\end{equation}
A basis vector is \(|i_1 i_2\cdots i_n\rangle \) with \(i_k\in \{0,1\}\):
\begin{equation} \boxed {\{|0\cdots 0\rangle ,\dots ,|1\cdots 1\rangle \}}, \qquad \#\{\text {basis vectors}\}=2^n. \tag{11107}\end{equation}
The distinction
\begin{equation} \boxed {|\mathbb {F}_2^n|=2^n} \qquad \text {vs}\qquad \boxed {\dim _\mathbb {C}(\mathbb {C}^2)^{\otimes n}=2^n}, \tag{11108}\end{equation}
\begin{equation} \boxed {2^n_{\mathrm {points}}\neq 2^n_{\mathrm {dimension}}} \qquad \Longrightarrow \qquad \boxed {\mathbb {F}_2^n\neq (\mathbb {C}^2)^{\otimes n}.} \tag{11109}\end{equation}
The \(\mathbb {F}_2^n\) side lists configurations; the \((\mathbb {C}^2)^{\otimes n}\) side spans them:
\begin{equation} \boxed {\mathbb {F}_2^n:\ \{x_i\}} \qquad \boxed {(\mathbb {C}^2)^{\otimes n}:\ \sum _{i=0}^{2^n-1}c_i|i\rangle ,} \qquad \boxed {c_i\in \mathbb {C},\ \sum _i|c_i|^2=1.} \tag{11110}\end{equation}
The classical bit-strings sit inside the Hilbert space as the computational basis:
\begin{equation} \{0,1\}^n\subset \mathbb {C}^{2^n}. \tag{11111}\end{equation}
\begin{equation} \boxed { \text {same }2^n: \begin {cases} \text {number of configurations} & (\mathbb {F}_2^n,\ \text {cardinality})\\[4pt] \text {Hilbert basis dimension} & ((\mathbb {C}^2)^{\otimes n},\ \text {dimension}) \end {cases} } \tag{11112}\end{equation}

The number \(2^n\) appears on both sides, but it counts different things: on the \(\mathbb {F}_2\) side it is the cardinality of the set of classical configurations; on the \(\mathbb {C}\) side it is the complex dimension of the Hilbert space, i.e. the number of orthonormal basis vectors. The binary space \(\mathbb {F}_2^n\) provides the labels; the qubit space \((\mathbb {C}^2)^{\otimes n}\) provides their complex span with amplitudes \(c_i\in \mathbb {C}\) and normalisation \(\sum _i|c_i|^2=1\). Superposition, interference, and continuous phase are exactly what the \(\mathbb {C}\)-span adds to the discrete \(\mathbb {F}_2\)-skeleton. They are the same \(n\)-bit system viewed at two levels: the characteristic-2 configuration count and the characteristic-0 state space.

Remark 197.3 (The computational-basis embedding \(\mathbb {F}_2^n\hookrightarrow (\mathbb {C}^2)^{\otimes n}\)).

The passage from the binary space to the qubit Hilbert space is a concrete embedding: each bit-string becomes a basis vector, and the free \(\mathbb {C}\)-linear span of these vectors is the qubit space.

The tower.

\begin{equation} \mathbb {F}_2=\{0,1\} \;\Downarrow \; \mathbb {F}_2^n=\{0,1\}^n \;\Downarrow \; \{0,1\}^n\to \{|0\rangle ,|1\rangle \}^{\otimes n} \;\Downarrow \; (\mathbb {C}^2)^{\otimes n}. \tag{11113}\end{equation}

Single bit.

\begin{equation} 0\mapsto |0\rangle , \qquad 1\mapsto |1\rangle . \tag{11114}\end{equation}

Bit-string to basis vector.

\begin{equation} (x_1,\dots ,x_n)\in \mathbb {F}_2^n \;\mapsto \; |x_1\rangle \otimes \cdots \otimes |x_n\rangle , \tag{11115}\end{equation}
\begin{equation} \boxed {\mathbb {F}_2^n\to (\mathbb {C}^2)^{\otimes n},} \qquad \boxed {x\mapsto |x\rangle .} \tag{11116}\end{equation}

Free complex span. Extending \(\mathbb {C}\)-linearly, a formal combination over \(\mathbb {F}_2^n\) maps to a quantum superposition:

\begin{equation} \sum _{x\in \mathbb {F}_2^n}c_x\,x \;\mapsto \; \sum _{x\in \mathbb {F}_2^n}c_x\,|x\rangle , \qquad c_x\in \mathbb {C}. \tag{11117}\end{equation}
\begin{equation} \boxed {\mathbb {F}_2^n\to \mathbb {C}^{2^n}.} \tag{11118}\end{equation}

Reading. The map \(x\mapsto |x\rangle \) sends each of the \(2^n\) classical configurations to one orthonormal basis vector; the \(\mathbb {C}\)-linear extension then fills out the entire Hilbert space \(\mathbb {C}^{2^n}\cong (\mathbb {C}^2)^{\otimes n}\). The embedding is the identity on labels (\(x\) and \(|x\rangle \) carry the same bit-string) but adds the free complex span — amplitudes \(c_x\in \mathbb {C}\), superposition, and normalisation \(\sum _x|c_x|^2=1\). This is the precise sense in which \(\mathbb {F}_2^n\) is the classical skeleton and \((\mathbb {C}^2)^{\otimes n}\) is its quantum completion: the qubit space is the free \(\mathbb {C}\)-vector space on the set \(\mathbb {F}_2^n\).

197.17 Three Independent Ladders: Characteristic, Completion, Division Algebra

Thesis. The passage from the bit \(\mathbb {F}_2\) to the octonions \(\mathbb {O}\) is not a single ladder but three independent ones that are often conflated. The characteristic axis changes the field characteristic (\(2\to 0\)); the completion axis is a metric limit (\(\mathbb {Q}\to \mathbb {R}\)); the division-algebra axis raises the coefficient dimension (\(1\to 2\to 4\to 8\)). Only the completion axis is a limit; the other two are algebraic. Separating them resolves the apparent confusion between \(\mathbb {F}_2\to \mathbb {R}\), bit\(\to \)qubit, and \(\mathbb {R}\to \mathbb {C}\to \mathbb {H}\to \mathbb {O}\).

Ladder 1: Characteristic (\(2\to 0\))

The field \(\mathbb {F}_2\) has characteristic \(2\):

\begin{equation} \boxed {\operatorname {char}(\mathbb {F}_2)=2,} \qquad 1+1=0 \quad \Longrightarrow \quad \mathbb {F}_2. \tag{11119}\end{equation}
The division algebras all have characteristic \(0\):
\begin{equation} \boxed {\operatorname {char}(\mathbb {R}) =\operatorname {char}(\mathbb {C}) =\operatorname {char}(\mathbb {H}) =\operatorname {char}(\mathbb {O})=0,} \qquad 1+1\neq 0. \tag{11120}\end{equation}
The characteristic step is the passage
\begin{equation} \boxed {\operatorname {char}2\longrightarrow \operatorname {char}0.} \tag{11121}\end{equation}
This is algebraic, not a limit: it replaces the arithmetic \(1+1=0\) with \(1+1=2\).
Ladder 2: Completion (\(\mathbb {Q}\to \mathbb {R}\))

Once in characteristic \(0\), the prime field is \(\mathbb {Q}\):

\begin{equation} \mathbb {F}_2 \xrightarrow {\operatorname {char}\,2\to 0} \mathbb {Q}, \qquad \mathbb {Q}:\ \frac {m}{n},\quad m,n\in \mathbb {Z},\ n\neq 0. \tag{11122}\end{equation}
The real numbers are the Cauchy completion of \(\mathbb {Q}\):
\begin{equation} \mathbb {R}:\ \lim _{k\to \infty }q_k,\quad q_k\in \mathbb {Q}, \qquad \boxed {\mathbb {R}=\widehat {\mathbb {Q}}.} \tag{11123}\end{equation}
\begin{equation} \boxed {\mathbb {F}_2 \xrightarrow {\operatorname {char}\,2\to 0} \mathbb {Q} \xrightarrow {\text {Cauchy completion}} \mathbb {R}=\widehat {\mathbb {Q}}.} \tag{11124}\end{equation}
This is the only limit. The completion \(\mathbb {Q}\to \mathbb {R}\) is the analytic step where calculus becomes possible; it is the algebraic analogue of the lattice-to-continuum limit \(\Lambda _a\to \mathbb {R}^d\).
Ladder 3: Division algebra (\(1\to 2\to 4\to 8\))

Within characteristic \(0\), the Cayley–Dickson tower raises the coefficient dimension:

\begin{equation} \mathbb {R}\to \mathbb {C}\to \mathbb {H}\to \mathbb {O}, \qquad \dim _{\mathbb {R}}:\ 1\to 2\to 4\to 8. \tag{11125}\end{equation}
Each step adds imaginary units and loses one algebraic property:
\begin{equation} \mathbb {R}\ (\text {ordered}) \to \mathbb {C}\ (i^2=-1) \to \mathbb {H}\ (\text {non-commutative}) \to \mathbb {O}\ (\text {non-associative}). \tag{11126}\end{equation}
By Hurwitz’s theorem the tower terminates at \(\mathbb {O}\). This is algebraic, not a limit.
Ladder 4: Quantisation (bit \(\to \) qubit)

A separate characteristic step lifts the classical bit to the qubit:

\begin{equation} \boxed {\mathbb {F}_2\rightarrow \mathbb {C}^2,} \qquad \boxed {\{0,1\}^n\rightarrow \{|0\rangle ,|1\rangle \}^{\otimes n}.} \tag{11127}\end{equation}
The dimension is unchanged (\(2^n\) either way) — this is not a limit. Only the coefficients change from \(\{0,1\}\subset \mathbb {F}_2\) to \(\mathbb {C}\), adding superposition:
\begin{equation} \boxed {1+1=0\ \rightarrow \ 1+1=2\ \rightarrow \ i^2=-1,} \tag{11128}\end{equation}
i.e. characteristic \(2\to 0\) (bit becomes real amplitude) followed by dimension \(1\to 2\) (real becomes complex amplitude).
Summary: which steps are limits





Ladder Axis Limit? What changes




1 characteristic no \(\operatorname {char}2\to 0\) (\(1+1=0\to 2\))
2 completion yes \(\mathbb {Q}\to \mathbb {R}=\widehat {\mathbb {Q}}\) (calculus)
3 division algebra no \(\dim 1\to 2\to 4\to 8\)
4 quantisation no bit \(\to \) qubit (\(\mathbb {F}_2\to \mathbb {C}^2\))




\begin{equation} \boxed {\text {finite field} \xrightarrow {\operatorname {char}} \text {continuous field} \xrightarrow {\text {completion}} \text {calculus} \xrightarrow {\text {Cayley--Dickson}} \mathbb {C},\mathbb {H},\mathbb {O}.} \tag{11129}\end{equation}
Interpretation

The confusion between “\(\mathbb {F}_2\to \mathbb {R}\)” and “\(\mathbb {R}\to \mathbb {C}\to \mathbb {H}\to \mathbb {O}\)” dissolves once the three axes are separated. Going from \(\mathbb {F}_2\) to \(\mathbb {R}\) is two moves — a characteristic jump \(2\to 0\) (algebraic) and a Cauchy completion \(\mathbb {Q}\to \mathbb {R}\) (the limit that enables calculus). Going from \(\mathbb {R}\) up the division-algebra tower is a third, independent move that only raises dimension. The bit-to-qubit promotion \(\mathbb {F}_2\to \mathbb {C}^2\) is a characteristic jump with a dimension step, but no limit: the \(2^n\) configurations are unchanged, only their coefficients gain superposition. Only the completion axis uses a limit. Calculus lives at \(\mathbb {R}=\widehat {\mathbb {Q}}\); superposition lives at \(\mathbb {C}\); spin lives at \(\mathbb {H}\); the exceptional structures live at \(\mathbb {O}\); and the classical bit sits at the bottom in \(\mathbb {F}_2\), characteristic \(2\). Each is a distinct axis, and the \(\mathbb {F}_2\) partition idempotent \(a^2=a\) is the seed of all of them.

197.18 From \(\mathbb {F}_2^n\) to \(L^2(\mathbb {R}^d)\): which arrow is a limit?

The chain from the classical bit-string to continuum wavefunctions passes through three arrows of different character. Only the middle one is a genuine limit; the first is algebraic and the last is a unitary isomorphism.

The infinite-dimensional Hilbert space.

\begin{equation} \boxed {\mathcal {H}_\infty ,} \qquad \dim _{\mathbb {C}}\mathcal {H}_\infty =\infty , \qquad \boxed {\mathcal {H}_\infty =\ell ^2(\mathbb {N}),} \tag{11130}\end{equation}
\begin{equation} \left \{|\psi \rangle =\sum _{n=0}^\infty c_n|n\rangle \right \}, \qquad c_n\in \mathbb {C}, \qquad \sum _{n=0}^\infty |c_n|^2<\infty . \tag{11131}\end{equation}

Arrow 1: bit \(\to \) qubit (algebraic, not a limit).

\begin{equation} \mathbb {F}_2^n\rightarrow (\mathbb {C}^2)^{\otimes n}, \qquad \dim _{\mathbb {C}}(\mathbb {C}^2)^{\otimes n}=2^n. \tag{11132}\end{equation}
The number of configurations is unchanged (\(2^n\) either way); only the coefficients change from \(\{0,1\}\subset \mathbb {F}_2\) to \(\mathbb {C}\), adding superposition. This is the characteristic step \(2\to 0\), not a limit.

Arrow 2: \(n\to \infty \) (the genuine limit).

\begin{equation} \boxed {\lim _{n\to \infty }(\mathbb {C}^2)^{\otimes n}=\mathcal {H}_\infty .} \tag{11133}\end{equation}
This is the only limit in the chain. The finite dimension \(2^n\) grows to \(\aleph _0\), and the limit is taken in the infinite tensor product (ITPFI / inductive limit) sense, requiring a fixed reference state \(|\Omega \rangle =\bigotimes _n|0\rangle _n\):
\begin{equation} \bigotimes _n^{(\Omega )}\mathbb {C}^2, \qquad \prod _n|\Omega _n|=1, \qquad \sum _n\||\psi _n\rangle -|\Omega _n\rangle \|^2<\infty . \tag{11134}\end{equation}
The reference state is what makes the infinite product converge — the same compactness/normalisation that governed the LQG refinement limit.

Arrow 3: \(\ell ^2\to L^2\) (unitary isomorphism, not a limit).

\begin{equation} \text {Continuum QM}:\quad \mathcal {H}=L^2(\mathbb {R}^d), \qquad \psi (x)\in \mathbb {C}, \qquad \int _{\mathbb {R}^d}|\psi (x)|^2dx=1. \tag{11135}\end{equation}
\begin{equation} \boxed {\ell ^2(\mathbb {N})\xrightarrow {\ \cong \ }L^2(\mathbb {R}^d),} \qquad \boxed {\sum _n|c_n|^2\rightarrow \int |\psi (x)|^2dx.} \tag{11136}\end{equation}
This arrow is not a limit: every separable infinite-dimensional Hilbert space is unitarily isomorphic, so \(\ell ^2(\mathbb {N})\cong L^2(\mathbb {R}^d)\).

The explicit unitary. There exists a unitary \(U:\ell ^2(\mathbb {N})\to L^2(\mathbb {R})\) with

\begin{equation} \boxed {\ell ^2(\mathbb {N})\cong L^2(\mathbb {R}),} \qquad \exists \,U:\ell ^2(\mathbb {N})\to L^2(\mathbb {R}), \tag{11137}\end{equation}
\begin{equation} \boxed {U^\dagger U=I_{\ell ^2},} \qquad \boxed {UU^\dagger =I_{L^2},} \qquad \boxed {U^\dagger =U^{-1}.} \tag{11138}\end{equation}
It carries the discrete expansion to the continuous one:
\begin{equation} \ell ^2(\mathbb {N})=\left \{\sum _{n=0}^\infty c_n|n\rangle \right \}, \quad \sum _{n=0}^\infty |c_n|^2<\infty \;\xRightarrow {\ U\ }\; L^2(\mathbb {R})=\left \{\psi (x)=\int \psi (x)|x\rangle \,dx\right \}, \quad \int _{\mathbb {R}}|\psi (x)|^2dx<\infty . \tag{11139}\end{equation}
The two bases correspond,
\begin{equation} \{|n\rangle \}_{n\in \mathbb {N}} \;\longleftrightarrow \; \{|x\rangle \}_{x\in \mathbb {R}}, \tag{11140}\end{equation}
with the discrete Kronecker orthogonality becoming the continuous Dirac orthogonality:
\begin{equation} \boxed {\langle n|m\rangle =\delta _{nm},} \qquad \boxed {\langle x|x'\rangle =\delta (x-x').} \tag{11141}\end{equation}
Concretely \(U\) is the Hermite-function expansion, \(|n\rangle \mapsto h_n(x)\) with \(h_n\) the \(n\)-th Hermite function.
\begin{equation} \boxed {\ell ^2(\mathbb {N}) \xrightarrow [\text {unitary}]{U} L^2(\mathbb {R}),} \qquad \boxed {\text {discrete basis}\leftrightarrow \text {continuous basis},} \qquad \boxed {\mathcal {H}_{\mathrm {sep},\infty }\cong \ell ^2\cong L^2.} \tag{11142}\end{equation}
The passage is a change of basis — discrete \(\{|n\rangle \}\) versus continuous (rigged) \(\{|x\rangle \}\) — the same space in two representations. This is the Stone–von Neumann content: the discrete and continuous descriptions carry the same information.

The complete chain.

\begin{equation} \boxed {\underbrace {\mathbb {F}_2^n \xrightarrow {\text {char, bit}\to \text {qubit}} (\mathbb {C}^2)^{\otimes n}}_{\text {algebraic}} \xrightarrow [n\to \infty ]{\text {ITPFI limit}} \underbrace {\mathcal {H}_\infty =\ell ^2(\mathbb {N}) \xrightarrow {\ \cong \ } L^2(\mathbb {R}^d)}_{\text {unitary isomorphism}}.} \tag{11143}\end{equation}




Arrow Type Limit?



\(\mathbb {F}_2^n\to (\mathbb {C}^2)^{\otimes n}\) characteristic (bit\(\to \)qubit) no
\((\mathbb {C}^2)^{\otimes n}\to \mathcal {H}_\infty \) \(n\to \infty \) (ITPFI) yes
\(\ell ^2(\mathbb {N})\to L^2(\mathbb {R}^d)\) unitary isomorphism no



Only the middle arrow \(n\to \infty \) is a true limit. The bit-to-qubit step is an algebraic change of coefficients (characteristic \(2\to 0\), dimension fixed), and the \(\ell ^2\to L^2\) step is a unitary isomorphism (same abstract Hilbert space, discrete versus continuous basis). The apparent journey “from finite bits to continuum wavefunctions” is therefore one algebraic promotion, one genuine limit, and one change of representation — not three limits. The continuum \(L^2(\mathbb {R}^d)\) is not a further limit beyond \(\mathcal {H}_\infty \); it is the same separable Hilbert space wearing a continuous basis.

197.19 The Left\(=\)Right Principle: \(A=A\) as the Root of Composition, Duality, and Compactness

Every structural equation of a dagger-compact category is an instance of a single principle: the left-hand side equals the right-hand side. This is \(A=A\) read categorically. Composition (\(g\circ f=gf\)), the involution (\(A^{**}=A\)), the idempotent (\(a^2=a\)), and the snake identity are all the same statement — two ways of writing a morphism that turn out to be one morphism.

I. Composition: \(g\circ f=gf\)

For \(f:A\to B\), \(g:B\to C\), define \(h=g\circ f\). The two notations agree pointwise:

\begin{equation} (g\circ f)(a)=g(f(a)), \qquad (gf)(a)=g(f(a)) \;\Longrightarrow \; (g\circ f)(a)=(gf)(a), \tag{11144}\end{equation}
hence the two composite arrows are equal, and the equality of arrows is itself an instance of \(a=a\):
\begin{equation} \boxed {g\circ f=gf} \;\Longleftrightarrow \; \boxed {a_L=a_R} \;\Longleftrightarrow \; \boxed {a=a.} \tag{11145}\end{equation}

Concrete instance. Take \(g(x)=2x\), \(f(x)=3x\), and evaluate at \(a=5\):

\begin{align} (g\circ f)(5) &= g(f(5)): \qquad f(5)=15,\quad g(15)=30,\quad (g\circ f)(5)=30, \tag{11146}\\ (gf)(5) &= g(f(5)): \qquad f(5)=15,\quad g(15)=30,\quad (gf)(5)=30. \tag{11147}\end{align}

Both sides land on the same number:

\begin{equation} (g\circ f)(5)=30=(gf)(5) \;\Longrightarrow \; \boxed {30=30} \;\Longleftrightarrow \; a_L=a_R=30. \tag{11148}\end{equation}
The composition law \(g\circ f=gf\) is, at every point, the bare identity \(a=a\) (here \(30=30\)). Associativity is the same left\(=\)right one level up:
\begin{equation} (k\circ g)\circ f = k\circ (g\circ f), \qquad (kg)f = k(gf). \tag{11149}\end{equation}
II. Duality involution: \(A^{**}=A\)

The dual functor is contravariant and involutive:

\begin{equation} A\xrightarrow {\ *\ }A^*\xrightarrow {\ *\ }A^{**}=A, \qquad *\circ * = \mathrm {id}, \qquad *^2=\mathrm {id}. \tag{11150}\end{equation}
On morphisms:
\begin{equation} f\xleftrightarrow {\ *\ }f^*, \qquad (f^*)^*=f, \qquad f^{**}=f. \tag{11151}\end{equation}
\begin{equation} \boxed {A^{**}=A \;\Longleftrightarrow \; (*\circ *)A=A \;\Longleftrightarrow \; *^2=\mathrm {id}.} \tag{11152}\end{equation}
The contravariant composition law is again left\(=\)right:
\begin{equation} (gf)^*=g^*f^*, \qquad (gf)^{**}=gf, \qquad g^{**}=g,\ f^{**}=f. \tag{11153}\end{equation}
III. Idempotent versus involution

The same left\(=\)right principle appears as two idempotent-type relations:

\begin{equation} \boxed {a^2=a} \qquad \text {(multiplication)}, \qquad \boxed {*^2=\mathrm {id}} \qquad \text {(involution)}. \tag{11154}\end{equation}
Substituting numbers into \(a^2=a\) gives \(1=1\) and \(0=0\) — the bare \(A=A\). The involution \(*^2=\mathrm {id}\) gives \(A^{**}=A\). Both are \(A=A\): one for the product, one for the dual.
IV. Compact structure from \(A\cong A^*\)

When the object is self-dual, \(A\cong A^*\), the unit and counit simplify:

\begin{equation} A^*\otimes A\cong A\otimes A, \qquad A\otimes A^*\cong A\otimes A, \tag{11155}\end{equation}
\begin{equation} \eta _A:I\to A^*\otimes A\;\cong \;I\to A\otimes A, \qquad \epsilon _A:A\otimes A^*\to I\;\cong \;A\otimes A\to I. \tag{11156}\end{equation}
\begin{equation} \boxed {A=A^* \;\Longrightarrow \; \eta _A:I\to A\otimes A, \quad \epsilon _A:A\otimes A\to I.} \tag{11157}\end{equation}
V. Snake identity is left\(=\)right

The compact-closure axiom is the yanking equation:

\begin{equation} \boxed {(\epsilon _A\otimes \mathrm {id}_A)\circ (\mathrm {id}_A\otimes \eta _A) =\mathrm {id}_A.} \tag{11158}\end{equation}
Reading the two sides:
\begin{equation} \underbrace {(\epsilon _A\otimes \mathrm {id}_A)\circ (\mathrm {id}_A\otimes \eta _A)}_{\text {composite (bent path)}} \;=\; \underbrace {\mathrm {id}_A}_{\text {identity (straight path)}}. \tag{11159}\end{equation}
Explicitly, the bent path
\begin{equation} A\xrightarrow {\mathrm {id}_A\otimes \eta _A} A\otimes A^*\otimes A \xrightarrow {\epsilon _A\otimes \mathrm {id}_A} A \tag{11160}\end{equation}
equals the straight arrow \(A\xrightarrow {\mathrm {id}_A}A\). The second snake:
\begin{equation} (\mathrm {id}_{A^*}\otimes \epsilon _A)\circ (\eta _A\otimes \mathrm {id}_{A^*}) =\mathrm {id}_{A^*}. \tag{11161}\end{equation}
\begin{equation} \boxed {\text {LHS}_\circ = \text {RHS}_{\mathrm {id}}.} \tag{11162}\end{equation}
The bent composite and the straight identity are the same morphism — this is \(A=A\) with a detour through the dual.
VI. Unit and counit as adjoint by dagger

The dagger ties the two together:

\begin{equation} \epsilon _A^\dagger =\eta _A, \qquad \eta _A=\sigma _{A,A^*}\circ \epsilon _A^\dagger . \tag{11163}\end{equation}
The counit is the reversed unit — the same left\(=\)right principle now mediated by the dagger \(f\mapsto f^\dagger \), itself the reversed homotopy path of the identity type.
Result

Every structural equation reduces to left\(=\)right:




Structure Equation Left\(=\)Right reading



Composition \(g\circ f=gf\) two notations, one arrow
Associativity \((kg)f=k(gf)\) two bracketings, one arrow
Involution \(A^{**}=A\) double dual, same object
Idempotent \(a^2=a\) \(1=1\), \(0=0\)
Snake \((\epsilon \otimes 1)(1\otimes \eta )=\mathrm {id}\) bent path \(=\) straight
Dagger \(\epsilon ^\dagger =\eta \) reversed \(=\) original



\begin{equation} \boxed { A=A \;\Longrightarrow \; \begin {cases} g\circ f = gf & \text {(composition)}\\ A^{**}=A,\ *^2=\mathrm {id} & \text {(duality)}\\ a^2=a & \text {(idempotent)}\\ (\epsilon \otimes 1)(1\otimes \eta )=\mathrm {id} & \text {(snake)} \end {cases} } \tag{11164}\end{equation}
The categorical machinery is not a tower of independent axioms. It is the single statement \(A=A\) — left-hand side equals right-hand side — appearing as composition equality, as the involution \(A^{**}=A\), as the idempotent \(a^2=a\), and as the snake identity where a bent path through the dual equals the straight identity. Order does not matter, notation does not matter; what remains invariant is that the two sides are the same. That invariance is \(A=A\).

197.20 Hom-set composition is left\(=\)right at every level

The composition operation on hom-sets is well-defined precisely because of matching-object equalities, and its every law reduces to \(a=a\) — at the level of objects (matching domains) and at the level of elements (pointwise values).

Setup.

\begin{equation} \mathrm {Hom}(D,E)=\{f:D\to E\}, \qquad g:E\to F,\ f:D\to E \;\Longrightarrow \; g\circ f:D\to F. \tag{11165}\end{equation}
Composition is a map of hom-sets:
\begin{equation} \circ :\mathrm {Hom}(E,F)\times \mathrm {Hom}(D,E)\to \mathrm {Hom}(D,F), \qquad (g,f)\mapsto g\circ f. \tag{11166}\end{equation}

Composability: matching object \(E=E\). \(g\circ f\) is defined only when the codomain of \(f\) equals the domain of \(g\):

\begin{equation} f:D\to \boxed {E},\quad g:\boxed {E}\to F \;\Longrightarrow \; \underbrace {\mathrm {cod}(f)}_{=E}=\underbrace {\mathrm {dom}(g)}_{=E}. \tag{11167}\end{equation}
The middle object must be the same: \(E=E\). This is \(A=A\) at the level of objects — without it, composition does not exist.

Result object.

\begin{equation} \mathrm {dom}(g\circ f)=\mathrm {dom}(f)=D, \qquad \mathrm {cod}(g\circ f)=\mathrm {cod}(g)=F, \qquad g\circ f\in \mathrm {Hom}(D,F). \tag{11168}\end{equation}

Pointwise value.

\begin{equation} \forall a\in D:\quad (g\circ f)(a)=g(f(a)), \qquad \underbrace {f(a)}_{\in E}\xrightarrow {\ g\ }\underbrace {g(f(a))}_{\in F}. \tag{11169}\end{equation}
At each point the left side (the composite value) equals the right side (\(g(f(a))\)).

Associativity is \(a=a\). With \(h:F\to G\):

\begin{align} [h\circ (g\circ f)](a) &= h((g\circ f)(a)) = h(g(f(a))), \tag{11170}\\ [(h\circ g)\circ f](a) &= (h\circ g)(f(a)) = h(g(f(a))), \tag{11171}\end{align}

so

\begin{equation} h(g(f(a)))=h(g(f(a))) \;\Longleftrightarrow \; a_L=a_R \;\Longleftrightarrow \; a=a. \tag{11172}\end{equation}

Identity is \(a=a\). With \(\mathrm {id}_D\in \mathrm {Hom}(D,D)\), \(\mathrm {id}_E\in \mathrm {Hom}(E,E)\):

\begin{align} (f\circ \mathrm {id}_D)(a) &= f(\mathrm {id}_D(a)) = f(a), \tag{11173}\\ (\mathrm {id}_E\circ f)(a) &= \mathrm {id}_E(f(a)) = f(a), \tag{11174}\end{align}

so \(f(a)=f(a)\Longleftrightarrow a=a\).

Summary.



Condition Left\(=\)Right


Composability \(\mathrm {cod}(f)=\mathrm {dom}(g)\) (middle \(E=E\))
Result object \(\mathrm {dom}=D\), \(\mathrm {cod}=F\)
Pointwise \((g\circ f)(a)=g(f(a))\)
Associativity \(h(g(f(a)))=h(g(f(a)))\)
Identity \(f(a)=f(a)\)


\begin{equation} \boxed {f:D\rightarrow E} \qquad \boxed {g:E\rightarrow F} \tag{11175}\end{equation}
\begin{equation} \boxed {\operatorname {cod}(f)=E} \qquad \boxed {\operatorname {dom}(g)=E} \tag{11176}\end{equation}
\begin{equation} \boxed {\operatorname {cod}(f)=\operatorname {dom}(g)} \qquad \boxed {E=E} \qquad \boxed {g\circ f:D\rightarrow F} \tag{11177}\end{equation}
\begin{equation} \boxed {\operatorname {cod}(f)=\operatorname {dom}(g) \;\Longleftrightarrow \; E=E} \tag{11178}\end{equation}
\begin{equation} \boxed { \mathrm {Hom}(E,F)\times \mathrm {Hom}(D,E)\to \mathrm {Hom}(D,F) } \tag{11179}\end{equation}

holds because the middle object matches (\(E=E\), object-level \(A=A\)) and because every value equation is \(g(f(a))=g(f(a))\) (element-level \(a=a\)). Hom-set composition is not an extra axiom layered on top of a category — it is \(A=A\) realised twice: once for the objects that must agree before arrows compose, and once for the elements whose images must agree after they do. Composability is \(E=E\); the composite is \(a=a\).