44 The Ladder from the Identity to Adjunction and Positivity

Thesis. One ladder leads from the identity to adjunctions, the dagger and the core inequalities. Its decisive rung is that associativity and transitivity are the same fact: chains joined end to end form one joint condition, which carries no brackets.

Every other rung follows from the ones below it.

44.1 Rungs 0–2: identity, places, relations

R0 (identity). \(\mathrm {id}\), with \(\mathrm {id}\circ \mathrm {id}=\mathrm {id}\).

R1 (places). Splitting the identity, \(1=\sum _{a\in V}e_a\) with \(e_ae_b=\delta _{ab}e_a\), gives the set \(V\) of places.

R2 (relations, diagonal, swap). A relation is a cut \(R\subseteq V\times V\). The diagonal is \(\Delta =\langle \mathrm {id},\mathrm {id}\rangle (V)=\{(a,a)\}\), and the swap is \(\sigma (a,b)=(b,a)\), with \(\sigma ^2=\mathrm {id}\).

44.2 Rungs 3–5: composition, unit, associativity

R3 (composition is matching along the diagonal).

\begin{equation} R\circ S=\bigl \{(a,c):\ \exists \,b,b'\ \ (a,b)\in S,\ (b,b')\in \Delta ,\ (b',c)\in R\bigr \}. \tag{948}\end{equation}

R4 (unit). \(\Delta \circ R=R=R\circ \Delta \).

R5 (associativity: the joint condition). Both \((T\circ R)\circ S\) and \(T\circ (R\circ S)\) equal

\begin{equation} \bigl \{(a,d):\ \exists \,b,c\ \ (a,b)\in S,\ (b,c)\in R,\ (c,d)\in T\bigr \}. \tag{949}\end{equation}
The condition on the chain \((a,b,c,d)\) is stated at once and has no brackets; the two bracketings forget the middle places in different orders.

44.3 Rungs 6–9: transitivity

R6 (equality). By R3,

\begin{equation} \Delta \circ \Delta =\{(a,c):\ \exists \,b\ \ a=b,\ b=c\}=\Delta . \tag{950}\end{equation}
The diagonal is idempotent under composition. With \(\sigma (\Delta )=\Delta \) and \(\Delta \subseteq \Delta \):

Property of \(=\) Form Source
reflexive \(\Delta \subseteq \Delta \) the identity
symmetric \(\sigma (\Delta )=\Delta \) the swap fixes the diagonal
transitive \(\Delta \circ \Delta =\Delta \) the diagonal is idempotent

An equivalence relation is any \(R\) with \(\Delta \subseteq R\), \(\sigma (R)=R\) and \(R\circ R=R\).

R7 (reachability is transitive). For any relation \(E\), let

\begin{equation} E^{*}=\bigcap \bigl \{R:\ \Delta \cup E\subseteq R,\ R\circ R\subseteq R\bigr \}. \tag{951}\end{equation}

No induction is used. \(E^{*}\) is the least relation containing \(E\) that is reflexive and transitive, and \((E^{*})^{*}=E^{*}\): an idempotent closure.

R8 (transitivity and associativity are one fact). For a relation of the form \(E^{*}\), the pair \((a,c)\) is related through \(b\) when the chain \((a,b,c)\) satisfies a joint condition. Joining chains end to end gives a longer chain with one joint condition:

R9 (the order of cuts). For cuts, \(e\le f\) means \(fe=e\). If \(fe=e\) and \(gf=f\), then

\begin{equation} ge=g(fe)=(gf)e=fe=e, \tag{952}\end{equation}
so transitivity of the order of cuts is associativity of their product.

44.4 Rungs 10–12: orders and monotone maps

R10 (preorders). A preorder is a relation fixed by the closure of R7: \(R=R^{*}\), equivalently \(\Delta \subseteq R\) and \(R\circ R\subseteq R\). Every preorder is idempotent, \(R\circ R=R\).

R11 (orders). A preorder is an order when \(R\cap \sigma (R)=\Delta \): places related both ways are equal.

R12 (monotone maps). \(f:V\to W\) is monotone if \((f\times f)(R)\subseteq R'\). Monotone maps are ordered pointwise.

44.5 Rungs 13–15: Galois connections

R13 (definition). Monotone \(f:V\to W\) and \(g:W\to V\) form a Galois connection when

\begin{equation} f(x)\le y\iff x\le g(y). \tag{953}\end{equation}

R14 (unit, counit, triangles). The diagonal gives \(f(x)\le f(x)\), hence the unit \(x\le gf(x)\); likewise the counit \(fg(y)\le y\). Then \(f(x)\le fgf(x)\le f(x)\), so by antisymmetry

\begin{equation} fgf=f, \qquad gfg=g, \tag{954}\end{equation}
and \(gf\) is an idempotent closure.

R15 (the rules for inequalities).

Rule Galois connection Range
moving a term \(x+a\le y\iff x\le y-a\) reals
dividing by \(c>0\) \(cx\le y\iff x\le y/c\) reals
dividing by \(c<0\) \(cx\le y\iff x\ge y/c\) reversed by the sign
floor \(n\le x\iff n\le \lfloor x\rfloor \) \(n\in \mathbb Z\)
ceiling \(\lceil x\rceil \le n\iff x\le n\) \(n\in \mathbb Z\)
square root \(x^2\le y\iff x\le \sqrt y\) \(x,y\ge 0\)
logarithm \(e^x\le y\iff x\le \log y\) \(y>0\)
Heyting implication \(a\wedge b\le c\iff a\le (b\Rightarrow c)\) Heyting algebras
image, preimage \(f(S)\subseteq T\iff S\subseteq f^{-1}(T)\) subsets

44.6 Rungs 16–19: categories

R16 (relations with multiplicity). Replace membership \((a,b)\in R\) by a set \(M(a,b)\) of ways from \(a\) to \(b\), and compose by the rule of R3, matching along the diagonal and summing over the middle:

\begin{equation} (N\circ M)(a,c)=\coprod _bN(b,c)\times M(a,b), \qquad \Delta (a,b)= \begin {cases} 1, & a=b,\\ \varnothing , & a\neq b. \end {cases} \tag{955}\end{equation}

R17 (associativity with multiplicity). Both bracketings give \(\coprod _{b,c}P(c,d)\times N(b,c)\times M(a,b)\), one sum over the joint middle, as in R5.

R18 (category). A category is a matrix of sets with \(\Delta \to M\) and \(M\circ M\to M\), associative and unital. Its homs are \(M(a,b)\). When each \(M(a,b)\) has at most one element it is a preorder, R10. A category is a relation with multiplicity that contains the diagonal and absorbs its own composite.

R19 (one rule, three systems; free categories).

Entries Sum Product Object
truth values or and relation, preorder
sets disjoint union product category
numbers \(+\) \(\times \) matrix

The free category on \(E\) is \(\Delta +E+E\circ E+\cdots \), formally \((1-E)^{-1}\); in the thin case, \(E^{*}\) of R7.

44.7 Rungs 20–22: functors, naturality, Yoneda

R20 (functors). Maps of places and of entries \(M(a,b)\to M'(Fa,Fb)\) preserving unit and composition. Between preorders, monotone maps.

R21 (naturality). \(\eta _a\in M'(Fa,Ga)\) with \(G(m)\circ \eta _a=\eta _b\circ F(m)\) for all \(m\): compatibility at both ends. Between monotone maps, \(F\le G\).

R22 (Yoneda). A natural transformation out of \(\mathrm {Hom}(-,B)\) is fixed by the image of \(\mathrm {id}_B\): \(\eta _a(p)=H(p)(\eta _B(\mathrm {id}_B))\).

44.8 Rungs 23–25: adjunction

R23 (definition). \(F\dashv G\) is a natural bijection \(\varphi :\mathrm {Hom}(FA,B)\cong \mathrm {Hom}(A,GB)\); between orders, R13.

R24 (unit, counit, triangles). \(\eta =\varphi (\mathrm {id})\), \(\varepsilon =\varphi ^{-1}(\mathrm {id})\), and transposing twice returns:

\begin{equation} G\varepsilon \circ \eta G=\mathrm {id}, \qquad \varepsilon F\circ F\eta =\mathrm {id}. \tag{956}\end{equation}

R25 (instances).

Adjunction Bijection
coproduct \(\dashv \) diagonal \(\mathrm {Hom}(A+B,C)\cong \mathrm {Hom}(A,C)\times \mathrm {Hom}(B,C)\)
diagonal \(\dashv \) product \(\mathrm {Hom}(C,A\times B)\cong \mathrm {Hom}(C,A)\times \mathrm {Hom}(C,B)\)
currying \(\mathrm {Hom}(A\times B,C)\cong \mathrm {Hom}(A,C^B)\)
free \(\dashv \) forgetful \(\mathrm {Hom}(\mathrm {Free}\,X,A)\cong \mathrm {Hom}(X,UA)\)

44.9 Rungs 26–28: the dagger

R26 (swap of indices). \((A^\dagger )_{ij}=\overline {A_{ji}}\): the swap applied to indices and conjugation to entries. For relations it is \(\sigma (R)\); for rows, reading backwards. Hence \((AB)^\dagger =B^\dagger A^\dagger \) and \(A^{\dagger \dagger }=A\).

R27 (adjunction with an inner product). \(\langle Af,g\rangle =\langle f,A^\dagger g\rangle \).

R28 (positive diagonal). \(\langle f,f\rangle \ge 0\), with equality only for \(f=0\).

44.10 Rungs 29–33: positivity in order

Rung Statement From
29, square \(x^\dagger x=x^2\ge 0\); trichotomy \(P\sqcup \{0\}\sqcup (-P)\) trivial dagger on \(\mathbb R\); sign
30, cone \(\mathcal A_+=\{\sum a_k^\dagger a_k\}\) diagonal of R28
31, Gram \(v^\dagger Gv=\langle \phi ,\phi \rangle \ge 0\) cone on combinations
32, state \(\omega (a^\dagger a)=\|a\Omega \|^2\ge 0\), \(\omega (1)=1\) wrapping by a point
33, inequalities Cauchy–Schwarz, triangle, Bessel, Jensen, Gram, cone, state, swap
Hölder, Minkowski, Markov, Chebyshev, Klein,
rearrangement

44.11 The ladder

Rungs Result From
0–2 identity, places, relations, \(\Delta \), \(\sigma \) splitting the identity
3–5 composition, unit, associativity matching along \(\Delta \); joint condition
6–9 transitivity of \(=\), of reachability, of cuts \(\Delta \circ \Delta =\Delta \); closure; associativity
10–12 preorders, orders, monotone maps \(R=R^{*}\); antisymmetry
13–15 Galois connections, inequality rules adjunctions on orders
16–19 categories; one rule for three systems multiplicity
20–22 functors, naturality, Yoneda compatibility at both ends
23–25 adjunction, triangles, instances transposing the identity
26–28 dagger, inner product, positive diagonal swap of indices
29–33 square, cone, Gram, state, inequalities positivity in order

Remark 44.1 (Composition, associativity, transitivity and adjunction from the diagonal and idempotence). Two primitives suffice: the diagonal \(\Delta =\langle \mathrm {id},\mathrm {id}\rangle \) and idempotence \(\mathrm {id}\circ \mathrm {id}=\mathrm {id}\).

1. Composition is matching along the diagonal. For relations \(S,R\subseteq V\times V\),

\begin{equation} R\circ S=\bigl \{(a,c):\ \exists \,b,b'\ \ (a,b)\in S,\ (b,b')\in \Delta ,\ (b',c)\in R\bigr \}. \tag{957}\end{equation}
The middle endpoints are required to lie on the diagonal and then forgotten.

2. The diagonal is the unit and is idempotent.

\begin{equation} \Delta \circ R=R=R\circ \Delta , \qquad \Delta \circ \Delta =\Delta . \tag{958}\end{equation}
The second is \(\mathrm {id}\circ \mathrm {id}=\mathrm {id}\), read on relations.

3. Associativity is the joint condition. \((T\circ R)\circ S\) and \(T\circ (R\circ S)\) both equal

\begin{equation} \bigl \{(a,d):\ \exists \,b,c\ \ (a,b)\in S,\ (b,c)\in R,\ (c,d)\in T\bigr \}, \tag{959}\end{equation}
a single condition on the chain \((a,b,c,d)\), which has no brackets.

4. Transitivity is idempotence. A relation is

Property Condition
reflexive \(\Delta \subseteq R\)
transitive \(R\circ R\subseteq R\)
both \(\Delta \subseteq R\) and \(R\circ R=R\)

since \(R=\Delta \circ R\subseteq R\circ R\) when \(\Delta \subseteq R\). A preorder is an idempotent relation containing the diagonal. Equality is the smallest, \(\Delta \) itself, transitive because \(\Delta \circ \Delta =\Delta \). For any \(E\), the intersection \(E^{*}\) of all idempotent relations containing \(\Delta \cup E\) is again one, because a pair lying in every such relation has its composites lying in every such relation: reachability is transitive, with no induction. Transitivity of a chain and associativity of composition are the same joint condition read on endpoints and on composites.

5. Galois connections transpose the diagonal. For monotone \(f:V\to W\) and \(g:W\to V\) with

\begin{equation} f(x)\le y\iff x\le g(y), \tag{960}\end{equation}
the diagonal \(f(x)\le f(x)\) transposes to the unit \(x\le gf(x)\), and \(g(y)\le g(y)\) to the counit \(fg(y)\le y\). Then \(f(x)\le fgf(x)\le f(x)\), so
\begin{equation} fgf=f, \qquad gfg=g, \qquad (gf)\circ (gf)=gf : \tag{961}\end{equation}
the triangle identities, and a closure that is idempotent.

6. Adjunctions transpose the identity. With multiplicity, homs replace relations and composition sums over the matched middle. An adjunction is a natural bijection \(\varphi :\mathrm {Hom}(FA,B)\cong \mathrm {Hom}(A,GB)\). Transposing the identity gives

\begin{equation} \eta =\varphi (\mathrm {id}), \qquad \varepsilon =\varphi ^{-1}(\mathrm {id}), \tag{962}\end{equation}
and transposing twice returns, so
\begin{equation} G\varepsilon \circ \eta G=\mathrm {id}, \qquad \varepsilon F\circ F\eta =\mathrm {id}. \tag{963}\end{equation}
The monad \(GF\) satisfies \(GFGF\to GF\), and it is idempotent exactly when the adjunction is a reflection, as in step 5.

The chain.

Step Result From
1 composition matching along \(\Delta \)
2 unit; \(\Delta \circ \Delta =\Delta \) \(\mathrm {id}\circ \mathrm {id}=\mathrm {id}\)
3 associativity one joint condition
4 reflexivity, transitivity \(\Delta \subseteq R\); \(R\circ R=R\)
5 Galois connection, triangles, closure transposing the diagonal
6 adjunction, unit, counit, triangles transposing the identity

Composition comes from the diagonal, transitivity from idempotence, and adjunction from transposing either one.