One principle, identity decides: whatever holds for every arrow out of \(A\) is fixed by its value at \(\mathrm {id}_A\). For identifications this is J, and for arrows in general it is Yoneda. From it come composition, associativity, units, the diagonal and its idempotent, and the unit and counit of every adjunction. The basic operations (\(\mathrm {refl}\), transport, \(\delta \), \(\pi \), pairing, \(\lambda \), evaluation, injections, case) are those units and counits.
Y0 (identity).
Y1 (J). Since \(\mathrm {refl}\) is the only generator,
Y2 (consequences of J). Each of the following is defined at \(\mathrm {refl}\) and extended by Y1:
| Result | Value at \(\mathrm {refl}\) |
| transport \(p_*:P(a)\to P(b)\) (substitution) | \(\mathrm {refl}_*=\mathrm {id}\) |
| inverse \(p^{-1}:b=a\) | \(\mathrm {refl}^{-1}=\mathrm {refl}\) |
| composite \(p\cdot q:a=c\) | \(p\cdot \mathrm {refl}=p\) |
| \(\mathrm {refl}\cdot p=p\), \(p\cdot p^{-1}=\mathrm {refl}\) | both sides \(\mathrm {refl}\) |
| \((p\cdot q)\cdot r=p\cdot (q\cdot r)\) | both sides \(p\cdot q\) at \(r=\mathrm {refl}\) |
Substitution, composition, units and associativity of identifications are all J.
Y3 (one-point). By J, every pair \((b,p)\) with \(p:a=b\) is \((a,\mathrm {refl})\):
Y4 (functions). An expression with an open place is a function \(\lambda x.\,t\).
Its identity is \(\mathrm {id}=\lambda x.\,x\), the place filled by itself: \(\mathrm {refl}\) on places.
Filling \(x\) by \(u\) pins \(x\) by \(x=u\) and hides it. By Y3, \((\lambda x.\,t)\,u=t[u/x]\) \((\beta )\).
A function is fixed by its value at the generic place, \(\lambda x.\,f\,x=f\) \((\eta )\): identity decides.
Y5 (composition of functions). \(g\circ f=\lambda x.\,g(f\,x)\). Both \((h\circ g)\circ f\) and \(h\circ (g\circ f)\) compute by \(\beta \) to \(\lambda x.\,h(g(f\,x))\), and \(\mathrm {id}\circ f=f=f\circ \mathrm {id}\) by \(\eta \).
Y6 (the diagonal and its idempotent). Pairs \((a,b)\) have projections with \(\pi _1(a,b)=a\) and \((\pi _1c,\pi _2c)=c\). Let
\(\pi _1\delta =\mathrm {id}\) by \(\beta \).
\(\Delta \simeq A\) by \(a\mapsto (a,a,\mathrm {refl})\) and \((a,b,p)\mapsto a\), with round trips \(\mathrm {id}\) by \(\beta \) and Y3.
\(e=\delta \pi _1\) satisfies \(ee=\delta (\pi _1\delta )\pi _1=\delta \pi _1\) by Y5.
The fixed points of \(e\) are the pairs with \((a,a)=(a,b)\), which is \(\Delta \).
\(\sigma \sigma =\mathrm {id}\) and \(\sigma \delta =\delta \), by computation.
The diagonal is the fixed set of an idempotent that splits as \(\delta \) and \(\pi _1\).
Y7 (functors and naturality). A functor sends things to things and arrows to arrows, preserving \(\mathrm {id}\) and \(\circ \). \(\mathrm {Hom}(A,-)\) is a functor by Y5. A family \(\varphi _X:F(X)\to H(X)\) is natural when \(\varphi _Y\circ F(f)=H(f)\circ \varphi _X\).
Y8 (Yoneda). For a functor \(F\),
\(F(\mathrm {id})(u)=u\);
\(\varphi _X(f)=\varphi _X(f\circ \mathrm {id})=F(f)\bigl (\varphi _A(\mathrm {id})\bigr )\) by naturality.
J (Y1) is the case \(\mathrm {Hom}(a,-)=(a=-)\). In particular \(A\simeq B\) exactly when \(\mathrm {Hom}(A,-)\simeq \mathrm {Hom}(B,-)\).
Y9 (adjunction: unit and counit derived). Let
Unit. By Y8 in \(Q\), \(\Phi \) is fixed by one element,
Counit. By Y8 in \(P\),
Triangle identities. The round trip \(\Phi ^{-1}\Phi =\mathrm {id}\) at \(\mathrm {id}_{F(P)}\) gives \(\varepsilon _{F(P)}\circ F(\eta _P)=\mathrm {id}\). The round trip \(\Phi \Phi ^{-1}=\mathrm {id}\) at \(\mathrm {id}_{G(Q)}\) gives \(G(\varepsilon _Q)\circ \eta _{G(Q)}=\mathrm {id}\).
Converse. Unit and counit with the triangle identities define \(\Phi \) and \(\Phi ^{-1}\) by the formulas above.
Uniqueness. \(G(Q)\) represents \(\mathrm {Hom}(F(-),Q)\), so it is fixed up to unique isomorphism by Y8.
Unit and counit are the images of identities. Nothing is chosen.
Y10 (the basic operations are units and counits).
| Adjunction | Correspondence | Unit | Counit |
| identity along \(\delta \) | \(\bigl (\prod _b(a=b)\to C(b)\bigr )\simeq C(a)\) | \(\mathrm {refl}\) | transport |
| product | \((C\to A\times B)\simeq (C\to A)\times (C\to B)\) | \(\delta \) | \(\pi _1,\pi _2\) |
| sum | \((A+B\to C)\simeq (A\to C)\times (B\to C)\) | \(\mathrm {inl},\mathrm {inr}\) | case \(=\nabla \) |
| currying | \((A\times B\to C)\simeq (A\to (B\to C))\) | \(a\mapsto \lambda b.\,(a,b)\) | evaluation |
| some, left of \(\pi ^*\) | \(\bigl (\sum _bP\to Q\bigr )\simeq \prod _b(P\to Q)\) | \(p\mapsto (b,p)\) | \((b,q)\mapsto q\) |
| all, right of \(\pi ^*\) | \(\bigl (Q\to \prod _bP\bigr )\simeq \prod _b(Q\to P)\) | \(q\mapsto \lambda b.\,q\) | evaluation at \(b\) |
Each unit and counit is computed by Y9 from an identity.
Y11 (logic). A judgment is a kind whose things are its proofs, and \(P\vdash Q\) is a function [182]. Y10 is then logic:
| Logic | Kind | Adjoint |
| \(\wedge \) / \(\vee \) | \(\times \) / \(+\) | right / left of \(\delta \) |
| \(\Rightarrow \) | function kind | right of \(A\wedge -\) |
| \(\forall \) / \(\exists \) | \(\prod \) / \(\sum \) | right / left of \(\pi ^*\) |
| \(=\) | identity | left along \(\delta \) |
For judgments, \(A\wedge A\simeq A\) by \(\delta \) and \(\pi _1\). Commutativity is \(\sigma \delta =\delta \), associativity is regrouping pairs, and Frobenius \(\sum _b(P\times Q)\simeq (\sum _bP)\times Q\) is regrouping as well.
A1 (lattice). Judgments with \(\wedge ,\vee ,\top ,\bot \) form a bounded lattice (Y11).
A2 (Heyting). \(\Rightarrow \) comes from currying. Since \(A\wedge -\) is a left adjoint, it preserves \(\vee \):
A3 (Boolean). With \(\neg A=A\Rightarrow \bot \), always \(A\vdash \neg \neg A\). Boolean means \(\neg \neg A=A\).
B1 (relations and maps). A relation is a two-place judgment. Then
Units: \(R\circ \Delta \simeq R\), by one-point (Y3).
Associativity: by regrouping pairs and \(\sigma \).
\(R^{\dagger \dagger }=R\), by \(\sigma \sigma =\mathrm {id}\).
A map is a relation with \(f\dashv f^\dagger \). Then \((g\circ f)(a)=g(f(a))\) by Y3.
B2 (monoids; Cayley is Yoneda). A monoid is a category with one object. Y8 at that object gives:
\(\lambda _a=(m\mapsto am)\) with \(\lambda _{ab}=\lambda _a\lambda _b\);
\(\lambda _a(1)=a\);
every right-equivariant \(f\) is \(\lambda _{f(1)}\).
This is Cayley’s theorem [1644].
B3 (rows, \(\mathbb N\), \(\mathbb Z\)). Rows \(A^*\) are free on \(A\): \(\mathrm {Hom}(A^*,M)\simeq (A\to M)\). By Y9, the unit is the one-letter row and the counit multiplies a row, which is evaluation [1645]. One letter gives \(\mathbb N\), \(k\) letters up to reordering give the monomials \(\mathbb N^k\), and pairs with negation \(\sigma \) give \(\mathbb Z\).
B4 (rings). Additive endomaps carry pointwise \(+\) and composition. Left distributivity is \(f\) preserving \(+\), and right distributivity is the definition of \(+\). By B2, every ring embeds in its additive endomaps. \(\mathrm {End}_+(\mathbb Z)\simeq \mathbb Z\) is commutative: one rectangle read two ways, by \(\sigma \).
M1 (Boolean rings by computation). If \(x^2=x\) for all \(x\), then \(2x=0\) and \(xy=yx\). With \(\varphi \wedge \psi =\varphi \psi \), \(\varphi \vee \psi =\varphi +\psi +\varphi \psi \) and \(\neg \varphi =1+\varphi \):
A Boolean ring is a Boolean algebra [185].
M2 (idempotents split). In a commutative ring, idempotents form a Boolean algebra, and each \(e\) gives \(R\simeq eR\times (1-e)R\), as \(e=\delta \pi _1\) splits in Y6.
S1 (modules). A module is a commutative group \(M\) with \(R\to \mathrm {End}_+(M)\). The free module satisfies \(\mathrm {Hom}_R(R^{(S)},M)\simeq (S\to M)\), with evaluation as counit.
S2 (polynomials). \(R[x_1,\ldots ,x_k]=R^{(\mathbb N^k)}\), with product forced by distributivity:
S3 (algebras). Evaluation is the counit (Y9) of
| Relation | Algebra |
| \(xy=yx\) | polynomials |
| \(x^2=x\) | Boolean |
| \(\varepsilon ^2=0\) | dual numbers |
| \(J^2=-1\) | \(\mathbb C\) |
| \(\gamma _i\gamma _j+\gamma _j\gamma _i=2\eta _{ij}\) | Clifford |
| \(i^2=j^2=-1\), \(ij=-ji\) | \(\mathbb H\) |
| \(xp-px=i\hbar \) | Weyl |
S4 (ideals). An equivalence relation is \(E\) with \(\Delta \le E\), \(E^\dagger =E\) and \(EE=E\): a symmetric idempotent above \(\Delta \). One compatible with the ring operations is fixed by an ideal \(I=\{a:a\sim 0\}\), with quotient \(R/I\).
S5 (fields). A field is a commutative ring with \(0\neq 1\) and no proper nonzero ideal. \(R/I\) is a field exactly when \(I\) is maximal.
\(\mathbb F_p=\mathbb Z/(p)\).
\(\mathbb Q\) comes from pairs \(a/b\).
\(K[x]/(p)\) for \(p\) irreducible; \(\mathbb C=\mathbb R[x]/(x^2+1)\).
Evaluation gives Lagrange interpolation and spectral projections \(P_i=\ell _i(A)\) [1646].
| Step | Result | From |
| Y0–Y3 | J; substitution, \(\circ \), units, associativity; one-point | identity decides |
| Y4–Y6 | functions, \(\beta \), \(\eta \); \(\Delta \simeq A\); \(e^2=e\) | one-point |
| Y7–Y9 | Yoneda; unit, counit, triangles derived | J for all arrows |
| Y10–Y11 | basic operations as units and counits; logic | Y9 |
| A1–A3 | lattice, Heyting, Boolean | holding together |
| B1–B4 | maps, monoids (Cayley \(=\) Yoneda), \(\mathbb N\), \(\mathbb Z\), rings | composing |
| M1–M2 | Boolean rings; idempotents split | \(x^2=x\) |
| S1–S5 | modules, polynomials, algebras, ideals, fields | M1 |
One primitive, \(a=a\), and one ladder. Each rung uses only rungs below it:
L0 (the primitive).
L1 (J). Since \(a=a\) is the only generator, whatever is to hold of every identification needs checking only on it:
L2 (substitution). Fix a judgment \(P\) and set \(C(a,b):=\) “\(P(b)\) follows from \(P(a)\)”. \(C(a,a)\) holds because a judgment is itself. By L1,
L3 (symmetry and transitivity).
With \(C(a,b):=(b=a)\), \(C(a,a)\) is \(a=a\), so L1 gives \(a=b\vdash b=a\).
Substituting \(c\) for \(b\) in \(a=b\), using \(b=c\) (L2), gives \(a=c\).
L4 (following is an order). \(P\vdash P\), since \(P\) is \(P\) (L0). If \(P\vdash Q\) and \(Q\vdash R\), substituting the derivation of \(Q\) for the assumption \(Q\) (L2) gives \(P\vdash R\). Following is identity without symmetry. Write \(P\dashv \vdash Q\) when both hold.
L5 (identity decides).
L6 (adjunction). For monotone operations on judgments,
L7 (places). The judgment \(a=a\) has two places.
Exchange. The only rearrangement of two places besides leaving them is \(\sigma (a,b)=(b,a)\), and exchanging twice returns each place: \(\sigma ^2=1\), the first involution.
Duplication. One thing filling both places is \(\delta (a)=(a,a)\), the diagonal, with \(\sigma \delta =\delta \).
Weakening. A place is added and left unused.
Filling, exchanging or renaming places preserves following: if \(P(x)\vdash Q(x)\) then \(P(t)\vdash Q(t)\).
L8 (holding together). \(\wedge \) is the right adjoint of duplication:
L9 (hiding). \(\exists \) is the left adjoint of weakening, in any context \(\Gamma \) without \(b\):
L10 (identity is an adjoint).
L11 (one-point rule).
| Operation | Adjoint | Laws |
| \(a=b\) | left, along duplication | J, substitution, one-point rule |
| \(A\wedge B\) | right, of duplication | associative, commutative |
| \(\exists b\) | left, of weakening | order-free, Frobenius |
L12 (relations). A relation is a two-place judgment \(R(a,b)\). Identity is the diagonal \(\Delta (a,b):\Leftrightarrow a=b\).
L13 (dagger from the involution).
L14 (composition from transitivity).
L15 (associativity). By Frobenius and associativity of \(\wedge \), both \(T\circ (S\circ R)\) and \((T\circ S)\circ R\) equal \(\exists x\,\exists y.\,(R\wedge S\wedge T)\), up to the order of hiding, which is free (L9).
L16 (units). \(R\circ \Delta =R=\Delta \circ R\), by the one-point rule.
L17 (idempotence and cuts). \(\Delta \circ \Delta =\Delta \) is the first idempotent. For a judgment \(P\), set \(\Delta _P(a,b):\Leftrightarrow a=b\wedge P(a)\). By L11,
L18 (reversal). \((S\circ R)^\dagger =R^\dagger \circ S^\dagger \), by commutativity of \(\wedge \).
L19 (order on relations). \(R\le R'\) means \(R\vdash R'\). Composition and dagger are monotone, being built from adjoints.
L20 (adjunction of relations).
L21 (adjunction and idempotence). If \(f\dashv g\), then \(gf\) is idempotent above \(\Delta \) and \(fg\) is idempotent below \(\Delta \):
L22 (maps). A map is a relation with \(f\dashv f^\dagger \).
\(\Delta \le f^\dagger f\) unpacks to \(\vdash \exists b.\,f(a,b)\): total.
\(ff^\dagger \le \Delta \) unpacks to \(f(a,b)\wedge f(a,b')\vdash b=b'\): single-valued.
L23 (values and composites). Naming the unique \(b\) as \(f(a)\) gives \(f(a,b)\dashv \vdash b=f(a)\). \(\Delta \) is a map with \(\mathrm {id}(a)=a\). For maps \(f\) and \(g\),
L24 (isomorphism). If \(f^\dagger \) is also a map, \(\Delta \le f^\dagger f\le \Delta \) and \(\Delta \le ff^\dagger \le \Delta \), so \(f^{-1}=f^\dagger \). Isomorphism is reflexive (\(\Delta \)), symmetric (\(\dagger \)) and transitive (\(\circ \)): the three properties of identity, one level up.
L25 (monoids). The maps \(X\to X\) form \(\mathrm {End}(X)\): closed under composition (L23), associative (L15), with unit \(\Delta \) (L16). A monoid is a set obeying exactly these laws. Every monoid \(M\) embeds in \(\mathrm {End}(M)\) by \(a\mapsto (m\mapsto am)\), injectively since \(a=a\cdot 1\) and preserving products since \((ab)m=a(bm)\) [1644].
L26 (homomorphisms). A homomorphism is a map with \(f(ab)=f(a)f(b)\) and \(f(1)=1\). If it is an isomorphism, the inverse \(f^\dagger \) is a homomorphism:
L27 (rows). For sets, the adjoints of duplication and weakening (L8, L9) are product and sum. A row of length \(n\) fills \(n\) places, so the rows of length \(n\) are \(A^n\), with \(A^0=1\) the empty row \(\epsilon \). All rows form
L28 (joining). Joining rows puts their places side by side. Joining in stages gives the same row, so \(A^*\) is a monoid with unit \(\epsilon \).
L29 (universal property). For a monoid \(M\) and \(m:A\to M\), there is exactly one homomorphism \(\bar m:A^*\to M\) extending \(m\):
L30 (uniqueness). Two monoids with the property of L29 for \(A\) are isomorphic by a unique isomorphism over \(A\): the composite of the two extensions is the identity on \(A\), hence the identity by uniqueness.
L31 (the adjunction; evaluation).
L32 (one letter).
L33 (additive endomaps). For a commutative monoid \((G,+,0)\), the maps preserving \(+\) and \(0\) carry two operations:
L34 (the laws).
| Law | Reason |
| \(+\) commutative monoid | pointwise from \(G\) |
| \(\circ \) associative, unit \(\Delta \) | L15, L16 |
| \(f(g+h)=fg+fh\) | \(f\) is a homomorphism |
| \((g+h)f=gf+hf\) | definition of \(+\) |
| \(0f=0=f0\) | pointwise; \(f(0)=0\) |
L35 (rings). A ring is a set with the laws of L34 and additive inverses. Every ring embeds in its additive endomaps by left multiplication, so these laws are the ring axioms.
L36 (natural numbers). An additive endomap of \(\mathbb N\) is fixed by \(f(1)\), so \(\mathrm {End}_+(\mathbb N)\cong \mathbb N\) with multiplication as composition. It is commutative, since \(g(1)\) copies of \(f(1)\) and \(f(1)\) copies of \(g(1)\) count one rectangle, related by \(\sigma \).
L37 (integers; the commutative ring axioms). Pairs of natural numbers with negation \(\sigma \) give \(\mathbb Z\), and \(\mathrm {End}_+(\mathbb Z)\cong \mathbb Z\).
| Axiom | Rung |
| \(a+b=b+a\), \((a+b)+c=a+(b+c)\) | L27; \(\sigma \) |
| \(a+0=a\), \(a+(-a)=0\) | empty sum; \(\sigma \) on pairs |
| \((ab)c=a(bc)\), \(1a=a\) | L15, L16 |
| \(a(b+c)=ab+ac\), \((a+b)c=ac+bc\) | L34 |
| \(ab=ba\) | L36 |
Then \(0a=(0+0)a=0a+0a\) gives \(0a=0\), and \((-1)(-1)=1\) is \(\sigma ^2=1\).
L38 (expressions). Over a commutative ring \(R\), an expression is a finite tree with leaves \(x\) or \(c\in R\) and nodes \(+\) or \(\times \). Given a ring map \(\varphi :R\to S\) and \(s\in S\), there is exactly one evaluation of trees computing each node from its children, as in L29.
L39 (identification). Expressions are identified when the axioms of L37 transform one into the other. These axioms hold in every commutative ring, so identified expressions have equal values everywhere.
L40 (normal form). Distributivity pushes \(\times \) below \(+\). Each product becomes one row, by L25. Commutativity gathers it into \(c\,x^n\) with \(x^n\) a row (L32), and distributivity collects like terms:
L41 (convolution).
L42 (the polynomial ring). For a row of polynomials, the coefficient of \(x^n\) in their product is one sum over \(i_1+\cdots +i_m=n\). Every bracketing gives this sum, so the product is associative. It is commutative by \(\sigma \) on indices, distributive from \(R\), and has unit \(x^0\). The normal forms form \(R[x]=R[\mathbb N]\), and distinct normal forms are distinct elements.
L43 (the evaluation adjunction). For a commutative ring \(S\),
L44 (expressions are not functions). Over an infinite field, polynomials are determined by their values. Over \(\mathbb F_p\), \(x^p-x\) is the zero function.
L45 (factor theorem). \(\ker \mathrm {ev}_a=(x-a)\). Since \(\deg (fg)=\deg f+\deg g\) over a domain, degree \(n\) allows at most \(n\) roots.
L46 (Lagrange, a splitting of identity).
L47 (spectral projections). Evaluating L46 at a matrix \(A\) with distinct eigenvalues,
L48 (Vieta, Cayley–Hamilton).
L49 (derivative). Evaluating at \(x+\varepsilon \) in \(R[\varepsilon ]/(\varepsilon ^2)\),
L50 (counting).
L51 (circle).
\(x^n-1=\prod _{d\mid n}\Phi _d\), whose roots are the characters of \(\mathbb Z/n\).
\(\mathbb C[x]/(x^n-1)\cong \mathbb C^n\) is the discrete Fourier transform.
\(T_n(\cos \theta )=\cos n\theta \).
A monic polynomial of degree \(n\) winds \(n\) times on a large circle and \(0\) times on a small one, so it has a root.
L52 (cone). For a positive measure, the Gram matrix \([m_{i+j}]\) of \(1,x,x^2,\ldots \) [1647] gives orthogonal polynomials, with three-term recurrence and real interlacing zeros [1648]. Hermite polynomials give oscillator states and Laguerre polynomials give hydrogen radial functions.
L53 (free algebras). Without reordering, linear combinations of rows form \(R\langle A\rangle =R[A^*]\). For any ring \(S\),
L54 (relations). Dividing by relations gives the algebra whose homomorphisms to \(S\) are the maps \(A\to S\) satisfying those relations.
| Relations on \(R\langle A\rangle \) | Algebra | Origin |
| \(xy=yx\) | \(R[x,y,\ldots ]\) | L42 |
| \(\varepsilon ^2=0\) | dual numbers | derivative (L49) |
| \(J^2=-1\) | \(\mathbb C\) | exchange with sign |
| \(\gamma _i\gamma _j+\gamma _j\gamma _i=2\eta _{ij}\) | Clifford algebras | anticommuting involutions |
| \(i^2=j^2=-1\), \(ij=-ji\) | quaternions \(\mathbb H\) | two anticommuting \(J\) |
| \(xp-px=i\hbar \) | Weyl algebra | translations |
| \(x_ix_j=-x_jx_i\) | exterior algebra | alternating forms |
| Rungs | Result | From |
| L0–L3 | J, substitution, symmetry, transitivity | \(a=a\) |
| L4–L6 | order, Yoneda, adjunction | L0, L2 |
| L7 | exchange \(\sigma ^2=1\), duplication, weakening | two places |
| L8–L11 | \(\wedge \), \(\exists \), \(=\) as adjoints; one-point rule | L6, L7 |
| L12–L19 | relations, dagger, composition, associativity, units | L8–L11 |
| L20–L24 | adjunction \(=\) idempotence; maps; isomorphism | L19 |
| L25–L32 | monoids, free monoid, \(\mathbb N\) | L23, L15 |
| L33–L37 | commutative ring axioms | additive endomaps |
| L38–L42 | expressions, polynomials, convolution | L37 |
| L43–L52 | evaluation and its consequences | L31 |
| L53–L54 | Clifford, \(\mathbb H\), Weyl | relations on rows |
Thesis. Numbers are counts, and two kinds have the same count when they are isomorphic. Zero counts what is not identical to itself, and successor adds one point that can be cancelled. Everything below is built on the ladder of Subsection 47:
N0 (counts). Two kinds have the same count when they are isomorphic:
N1 (zero, from the negation of identity). The kind of things not identical to themselves,
N2 (one). By one-point (Y3), \(1:=\sum _b(a=b)\) has exactly one element, \((a,\mathrm {refl})\).
N3 (successor). Adding one new point is the sum with the one-point kind:
N4 (\(S\) is injective: a point can be cancelled). Let \(f:X+1\simeq Y+1\). Define \(h:X\to Y\) by cases on sums (Y10):
N5 (zero is not a successor). \(X+1\) contains \(\ast \), while \(\bot \) has no element. So there is no map \(X+1\to \bot \), and \(0\neq S|X|\).
N6 (\(\mathbb N\)). \(\mathbb N\) is the kind of counts generated from \(0\) by \(S\), with generators
N7 (recursion and uniqueness). As for \(\mathrm {refl}\) in Y1, “only these generators” gives two rules:
Recursion. For \(x_0\in X\) and \(s:X\to X\) there is \(h\) with \(h(0)=x_0\) and \(h(Sn)=s(h(n))\).
Uniqueness. Such \(h\) is unique. In particular, the only \(h:\mathbb N\to \mathbb N\) with \(h(0)=0\) and \(hS=Sh\) is \(\mathrm {id}\).
Recursing into pairs gives access to \(n\) in the step [170].
N8 (induction, derived). Given \(c_0:C(0)\) and \(t:\prod _nC(n)\to C(Sn)\), recurse into \(X=\sum _nC(n)\) with
N9 (arithmetic as counts).
| Law | Isomorphism |
| \(m+0=m\), \(m\cdot 1=m\) | \(X+\bot \simeq X\), \(X\times 1\simeq X\) |
| \(m+Sn=S(m+n)\) | \(X+(Y+1)\simeq (X+Y)+1\) |
| \(m\cdot Sn=m\cdot n+m\) | \(X\times (Y+1)\simeq X\times Y+X\) |
| commutativity | \(\sigma \) |
| associativity | regrouping pairs |
| distributivity | \(X\times (Y+Z)\simeq X\times Y+X\times Z\) |
| \(m\cdot 0=0\) | \(X\times \bot \simeq \bot \) |
The second and third rows are the recursion equations of \(+\) and \(\cdot \). Cancellation, \(m+k=n+k\Rightarrow m=n\), follows from N4 by induction on \(k\).
N10 (order and decidability). \(m\le n:\Leftrightarrow \sum _k(m+k=n)\): \(X\) embeds into \(Y\). Using N4 and N5, double induction gives:
equality on \(\mathbb N\) is decidable;
\(\le \) is a total, decidable order.
N11 (strong induction). If \(\bigl (\forall k<n.\ C(k)\bigr )\to C(n)\) for all \(n\), then \(C(n)\) for all \(n\). Apply N8 to \(C'(n):=\forall k<n.\ C(k)\).
N12 (well-ordering). A decidable predicate on \(\mathbb N\) is a Boolean cut (A3). If such an \(S\) is inhabited, it has a least element: otherwise N11 with \(C(n):=n\notin S\) empties \(S\). Conversely, a least counterexample cannot exist, which gives induction. On decidable cuts the two are one statement.
N13 (free commutative monoid). \(\mathbb N^{(A)}\) is the finitely supported \(\alpha :A\to \mathbb N\), with pointwise \(+\): rows in \(A\) up to reordering. For a commutative monoid \(M\),
N14 (\(\mathbb Z\) and its ideals). \(\mathbb Z\) is pairs from \(\mathbb N\) with negation \(\sigma \) (B3).
Division. For \(d>0\), the least element of \(\{m-qd\ge 0\}\) (N12) gives \(m=qd+r\) with \(0\le r<d\).
Principal ideals. A nonzero ideal is \((d)\), for \(d\) its least positive element.
Bézout. \((a,b)=(d)\) gives \(d=\gcd (a,b)=ua+vb\).
N15 (primes). For \(p>1\) the following agree: \(p\) is irreducible; \((p)\) is maximal; \(\mathbb F_p\) is a field (S5); and \(p\mid ab\Rightarrow p\mid a\) or \(p\mid b\). The last holds because, if \(p\nmid a\), then \(1=up+va\), so \(p\mid upb+vab=b\).
N16 (the fundamental theorem of arithmetic). By N13, the inclusion of the primes \(P\) extends uniquely to
N17 (\(\mathbb Q\)). \(\mathbb Q\) is pairs \(a/b\), \(b\neq 0\), with the exchange read multiplicatively. It is an ordered field.
N18 (\(\mathbb R\) as cuts). A real number is a Dedekind cut: a judgment on \(\mathbb Q\) that is inhabited, not everything, downward closed, and without largest element [1652]. Order is inclusion, that is following.
N19 (completeness is \(\vee \)). For an inhabited family of cuts bounded by a cut \(u\), the union is a cut:
inhabited and downward closed;
without largest element;
contained in \(u\).
Every upper bound contains it. Hence \(\sup _ix_i=\bigcup _ix_i=\bigvee _ix_i\).
N20 (real induction). Let \(S\subseteq [a,b]\) satisfy
Then \(S=[a,b]\). Let \(s=\sup \{x:[a,x]\subseteq S\}\) (N19). By (2), \(s\in S\). If \(s<b\), (3) extends past \(s\) [1653]. This is N8 with \(0\) replaced by \(a\) and \(S\) by a small step to the right.
N21 (Ritz: additive means difference). If \(I(a,c)=I(a,b)+I(b,c)\), then \(I(a,a)=0\), and with \(F(x)=I(a_0,x)\),
N22 (local slope). \(f\) has slope \(f'(c)\) at \(c\) when
product rule: \(fg(x)-fg(c)=\bigl (\varphi (x)g(x)+f(c)\psi (x)\bigr )(x-c)\);
chain rule: \(g(f(x))-g(f(c))=\chi (f(x))\,\varphi (x)(x-c)\), so slopes of composites compose;
for polynomials, \(\varphi \) is the quotient of the factor theorem, and \(f'\) agrees with \(f(x+\varepsilon )=f(x)+\varepsilon f'(x)\).
N23 (zero slope means constant). If \(G'=0\) on \([a,b]\), apply N20 to
N24 (the integral). For continuous \(f\) on \([a,b]\), N20 gives uniform continuity. Upper and lower sums then meet at \(\int _a^bf\) (N19), which is additive along a shared endpoint and monotone.
N25 (FTC).
For \(F(x)=\int _c^xf\), \(F(x)-F(c)=\mu (x)(x-c)\) with \(\mu (x)\to f(c)\), so \(F'=f\) (N22).
If \(G'=f\), then \(F-G\) is constant (N23), so
N26 (FTC as a splitting of identity). On \(\mathbb Q[x]\), with \(d\) the derivative, \(I(f)(x)=\int _0^xf\) and \(\mathrm {ev}_0(f)=f(0)\),
| Step | Result | From |
| N0 | counts | isomorphism as identity of kinds |
| N1–N2 | \(0=|\bot |\), \(\bot =\{a:\neg (a=a)\}\); \(1\) | negation of identity; one-point |
| N3–N5 | \(S=(-)+1\); injective; \(0\neq Sn\) | cancelling a point by cases |
| N6–N8 | \(\mathbb N\); recursion; induction | generators \(0\), \(S\) |
| N9–N10 | \(+\), \(\times \) as counts; order; decidability | isomorphisms of kinds |
| N11–N12 | strong induction; well-ordering | N8; Boolean cuts |
| N13–N16 | free commutative monoid; \(\mathbb Z\); primes; FTA | Y9; N12 |
| N17–N20 | \(\mathbb Q\), \(\mathbb R\); completeness as \(\vee \); real induction | cuts |
| N21–N26 | Ritz; slope; integral; FTC; \(1=Id+\mathrm {ev}_0\) | composition of pairs |
Every law of arithmetic is an isomorphism of kinds (N9) built from identity and two seeds:
Q1 (idempotent). \(e=\delta \pi _1\) satisfies \(e^2=e\) (Y6). Its two legs are:
duplication \(\delta \), the section, which copies;
weakening \(\pi _1\), the retraction, which forgets.
They satisfy \(\pi _1\delta =1\). A normalizer \(N\), sending an expression to its normal form, is idempotent: \(N^2=N\), since normalizing a normal form changes nothing.
Q2 (involution). \(\sigma (a,b)=(b,a)\) satisfies \(\sigma ^2=1\) (Y6). It is its own inverse, so any isomorphism built from it has its inverse for free.
Q3 (\(m+0=m\) is \(m=m\)). \(\bot \) has no element (N1), so every element of \(X+\bot \) is \(\mathrm {inl}\,x\):
Q4 (\(m\cdot 1=m\) is \(\pi \delta =1\)).
Q5 (\(m\cdot 0=0\)). \(X\times \bot \) has no element, since a pair needs a second component. So \(X\times \bot \simeq \bot \).
Q6 (commutativity is \(\sigma ^2=1\)).
Q7 (distributivity is \(\delta \)).
Q8 (associativity is \(N^2=N\)). Every expression in \(+\), \(\times \), \(0\), \(1\) has a normal form \(N\):
\(N\)is idempotent. Both \((m+n)+k\) and \(m+(n+k)\) flatten to the same row \(m,n,k\), and likewise for \(\times \). So
Q9 (the recursion equations).
as kinds: \(X+(Y+1)\simeq (X+Y)+1\) and \(X\times (Y+1)\simeq X\times Y+X\).
Q10 (absorption).
In a lattice. \(a\le a\vee b\), and a meet with something above \(a\) is \(a\), so
In a Boolean ring, by computation. From \(x^2=x\) follows \(x+x=(x+x)^2-(x+x)=0\), so addition is involutive. Then
The last step in each line is \(x+x=0\).
Q11 (the seeds are the operations). In a Boolean ring:
| Operation | Seed | Consequence |
| \(x\cdot x=x\) | idempotent, \(e^2=e\) | \(\wedge \); cuts; absorption |
| \(x+x=0\) | involution, \(\sigma ^2=1\) | \(\neg x=1+x\), \(\neg \neg x=x\); addition self-inverse |
The involution follows from the idempotent: \(x^2=x\) gives \(2=0\), so translation by any \(a\) satisfies \((x+a)+a=x\).
| Law | Isomorphism of kinds | Source |
| \(m+0=m\) | \(X+\bot \simeq X\) | identity, nothing added |
| \(m\cdot 1=m\) | \(X\times 1\simeq X\) | \(\pi \delta =1\) |
| \(m\cdot 0=0\) | \(X\times \bot \simeq \bot \) | \(\bot \) has no element |
| \(m+Sn=S(m+n)\) | \(X+(Y+1)\simeq (X+Y)+1\) | regrouping |
| \(m\cdot Sn=mn+m\) | \(X\times (Y+1)\simeq X\times Y+X\) | \(\delta \), \(\pi \delta =1\) |
| commutativity | \(\sigma \) | \(\sigma ^2=1\) |
| associativity | regrouping; \(N(\text {lhs})=N(\text {rhs})\) | \(N^2=N\) |
| distributivity | copy \(x\) into each summand | \(\delta \) |
| absorption | \(a(a+b+ab)=a\) | \(x^2=x\), \(x+x=0\) |