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.
Equality is transitive because the diagonal is idempotent, \(\Delta \circ \Delta =\Delta \).
Reachability is transitive because an intersection of composition-closed relations is composition-closed, which needs no induction.
The order of cuts is transitive because multiplication is associative.
Every other rung follows from the ones below it.
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}\).
R3 (composition is matching along the diagonal).
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
R6 (equality). By R3,
| 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
\(\Delta \subseteq E^{*}\), since every \(R\) in the intersection contains \(\Delta \): reflexivity.
If \((a,b),(b,c)\in E^{*}\), then both lie in every \(R\) of the intersection, hence so does \((a,c)\), since each \(R\) is closed under composition. So \(E^{*}\circ E^{*}\subseteq E^{*}\): transitivity.
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:
read on endpoints, this is transitivity, \((a,b),(b,c)\Rightarrow (a,c)\);
read on composites, this is associativity, R5.
R9 (the order of cuts). For cuts, \(e\le f\) means \(fe=e\). If \(fe=e\) and \(gf=f\), then
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.
R13 (definition). Monotone \(f:V\to W\) and \(g:W\to V\) form a Galois connection when
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
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 |
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:
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.
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))\).
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:
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)\) |
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\).
| 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 | ||
| 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\),
2. The diagonal is the unit and is idempotent.
3. Associativity is the joint condition. \((T\circ R)\circ S\) and \(T\circ (R\circ S)\) both equal
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
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
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.