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}\).
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:
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
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.
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 ]\).
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 \):
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.
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.
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.
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.
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}
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\):
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 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).
Composition\(\Longleftrightarrow \) transitivity of \(=\): chaining \(a=b\) and \(b=c\) to \(a=c\) is the hypothetical syllogism,
cancelling the middle term \(b\).
Inverse\(\Longleftrightarrow \) symmetry of \(=\): reversing \(a=b\) to \(b=a\) is the path inverse \(p\mapsto p^{-1}\), the dagger/contrapositive.
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.
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:
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.
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}
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\).
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
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.
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\):
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:
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:
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 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.
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\):
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
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.
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:
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:
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}
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:
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}
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\).