47 From identity to fields

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.

\[ \boxed { \begin {aligned} &a=a\ (\mathrm {id})\to \mathrm {J}=\text {Yoneda}\to \text {substitution, }\circ ,\text { units, associativity}\to \text {one-point}\to \Delta \simeq A\ (\pi \delta =1)\\ &\quad \to e=\delta \pi ,\ e^2=e\to \text {adjunction: unit }=\text {image of }\mathrm {id},\ \text {counit}=\text {preimage of }\mathrm {id}\\ &\quad \to \begin {cases} \wedge :\ \text {lattice}\to \text {Heyting}\to \text {Boolean}\\ \circ :\ \text {morphism}\to \mathrm {End}\to \mathbb N\to \mathbb Z\to \text {ring}\to \text {commutative ring} \end {cases}\\[6pt] &\quad \to x^2=x\to \text {module}\to \text {polynomial}\to \text {algebra}\to \text {ideal}\to \text {field} \end {aligned} } \]
I. Identity decides

Y0 (identity).

\begin{equation} \vdash a=a . \tag{1006}\end{equation}
Its only generator is \(\mathrm {refl}_a\), the identity of \(a\).

Y1 (J). Since \(\mathrm {refl}\) is the only generator,

\begin{equation} \Bigl (\prod _b\,(a=b)\to C(b)\Bigr )\ \simeq \ C(a), \tag{1007}\end{equation}
by evaluation at \(\mathrm {refl}_a\) [193, 1256]. What holds for every identification out of \(a\) is fixed at \(\mathrm {refl}_a\).

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})\):

\begin{equation} \sum _b(a=b)\simeq 1, \qquad \sum _b(a=b)\times P(b)\simeq P(a). \tag{1008}\end{equation}

Y4 (functions). An expression with an open place is a function \(\lambda x.\,t\).

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

\begin{equation} \delta =\lambda x.\,(x,x), \qquad \sigma =\lambda c.\,(\pi _2c,\pi _1c), \qquad \Delta =\sum _{a,b}(a=b). \tag{1009}\end{equation}

The diagonal is the fixed set of an idempotent that splits as \(\delta \) and \(\pi _1\).

II. Yoneda and adjunction

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\),

\begin{equation} \mathrm {Nat}\bigl (\mathrm {Hom}(A,-),F\bigr )\ \simeq \ F(A), \qquad \varphi \mapsto \varphi _A(\mathrm {id}_A), \qquad u\mapsto \bigl (f\mapsto F(f)(u)\bigr ). \tag{1010}\end{equation}
The round trips are the identity:

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

\begin{equation} \Phi :\mathrm {Hom}(F(P),Q)\ \simeq \ \mathrm {Hom}(P,G(Q)) \tag{1011}\end{equation}
be natural in \(P\) and \(Q\).

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.

Branch A: holding together

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 \):

\begin{equation} A\times (B+C)\simeq A\times B+A\times C . \tag{1014}\end{equation}

A3 (Boolean). With \(\neg A=A\Rightarrow \bot \), always \(A\vdash \neg \neg A\). Boolean means \(\neg \neg A=A\).

Branch B: composing

B1 (relations and maps). A relation is a two-place judgment. Then

\begin{equation} (S\circ R)(a,c)=\sum _bR(a,b)\times S(b,c), \qquad R^\dagger (b,a)=R(a,b). \tag{1015}\end{equation}

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:

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 \).

Where the branches meet: \(x^2=x\)

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 \):

\begin{align} (\varphi \vee \psi )\vee \chi &=\varphi +\psi +\chi +\varphi \psi +\varphi \chi +\psi \chi +\varphi \psi \chi =\varphi \vee (\psi \vee \chi ), \tag{1016}\\ (\varphi \wedge \psi )\wedge \chi &=\varphi \psi \chi =\varphi \wedge (\psi \wedge \chi ), \tag{1017}\\ \varphi \wedge (\psi \vee \chi )&=\varphi \psi +\varphi \chi +\varphi \psi \chi =(\varphi \wedge \psi )\vee (\varphi \wedge \chi ), \tag{1018}\\ \neg \neg \varphi &=1+1+\varphi =\varphi . \tag{1019}\end{align}

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.

Continuation

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:

\begin{equation} \Bigl (\sum _\alpha f_\alpha x^\alpha \Bigr )\Bigl (\sum _\beta g_\beta x^\beta \Bigr )=\sum _\gamma \Bigl (\sum _{\alpha +\beta =\gamma }f_\alpha g_\beta \Bigr )x^\gamma , \tag{1020}\end{equation}
a matched middle that is then hidden, as in B1.

S3 (algebras). Evaluation is the counit (Y9) of

\begin{equation} \mathrm {Hom}(R[x_1,\ldots ,x_k],A)\simeq \{\text {commuting }k\text {-tuples}\}. \tag{1021}\end{equation}
Free algebras divided by relations:

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.

The ladder

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

47.1 From identity to polynomials

One primitive, \(a=a\), and one ladder. Each rung uses only rungs below it:

1.
identity yields substitution, order and adjunction;
2.
holding together, hiding and identity itself are the three adjoints along the diagonal;
3.
relations carry dagger from the exchange of places, and composition from transitivity, with associativity and units derived;
4.
adjunction and idempotence are one structure, and maps are the relations with \(f\dashv f^\dagger \);
5.
monoids, the free monoid and \(\mathbb N\) follow, then the commutative ring axioms as laws of additive endomaps;
6.
polynomials are expressions identified by those axioms, with convolution forced by distributivity;
7.
evaluation is an adjunction, and its consequences include the spectral theorem;
8.
Clifford algebras, quaternions and the Weyl algebra are free algebras divided by relations.
Identity

L0 (the primitive).

\begin{equation} \vdash a=a . \tag{1022}\end{equation}
Identity has exactly this one way of being established. Nothing else is assumed.

L1 (J). Since \(a=a\) is the only generator, whatever is to hold of every identification needs checking only on it:

\begin{equation} \text {if }C(a,a)\text { for every }a,\ \text {then }a=b\vdash C(a,b). \tag{1023}\end{equation}
This is the induction principle of a judgment with one generator [193, 1256]. Equivalently, identity is the least reflexive relation.

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,

\begin{equation} a=b,\ P(a)\vdash P(b). \tag{1024}\end{equation}

L3 (symmetry and transitivity).

Order and adjunction

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).

\begin{equation} P\dashv \vdash P'\iff \bigl (P\vdash Q\Leftrightarrow P'\vdash Q\ \text {for all }Q\bigr ), \tag{1025}\end{equation}
by taking \(Q=P\) and \(Q=P'\) and using L4; dually for antecedents. This is Yoneda for an order, and the order form of L1.

L6 (adjunction). For monotone operations on judgments,

\begin{equation} F\dashv G\ :\Longleftrightarrow \ \bigl (F(P)\vdash Q\iff P\vdash G(Q)\bigr ), \tag{1026}\end{equation}
with unit \(P\vdash GF(P)\) and counit \(FG(Q)\vdash Q\). If \(F\dashv G\) and \(F'\dashv G\), then \(F(P)\) and \(F'(P)\) have the same consequences, so \(F\dashv \vdash F'\) by L5. Adjoints are unique.
Places and the involution

L7 (places). The judgment \(a=a\) has two places.

Filling, exchanging or renaming places preserves following: if \(P(x)\vdash Q(x)\) then \(P(t)\vdash Q(t)\).

The three adjoints along the diagonal

L8 (holding together). \(\wedge \) is the right adjoint of duplication:

\begin{equation} C\vdash A\wedge B\iff C\vdash A\ \text {and}\ C\vdash B, \tag{1027}\end{equation}
with the empty case \(\top \). By L5 it is associative, since both bracketings have the antecedents of \(A\), \(B\) and \(C\) together. It is commutative, since \(\sigma \delta =\delta \).

L9 (hiding). \(\exists \) is the left adjoint of weakening, in any context \(\Gamma \) without \(b\):

\begin{equation} \Gamma \wedge \exists b.\,P\vdash Q\iff \Gamma \wedge P\vdash Q\qquad (b\text { not in }Q). \tag{1028}\end{equation}
By L5,
\begin{equation} \exists b\,\exists c.\,P\dashv \vdash \exists c\,\exists b.\,P, \qquad (\exists b.\,P)\wedge Q\dashv \vdash \exists b.\,(P\wedge Q)\quad (b\text { not in }Q), \tag{1029}\end{equation}
the second being Frobenius.

L10 (identity is an adjoint).

\begin{equation} \Gamma (a,b)\wedge a=b\vdash R(a,b)\iff \Gamma (a,a)\vdash R(a,a). \tag{1030}\end{equation}
For \(\Rightarrow \), fill \(b\) with \(a\) (L7) and use L0. For \(\Leftarrow \), use L2 and L3. Identity is the left adjoint along the diagonal [1649]: L0–L2 in the language of order.

L11 (one-point rule).

\begin{equation} \exists b.\,(b=t\wedge P(b))\dashv \vdash P(t). \tag{1031}\end{equation}
For \(\vdash \), apply L9 and then L10 to reduce to \(P(t)\vdash P(t)\). For \(\dashv \), \(P(t)\vdash t=t\wedge P(t)\), then apply the unit of L9 at \(b=t\). Hiding a place pinned by identity is substitution.

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
Relations

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).

\begin{equation} R^\dagger (b,a):\Longleftrightarrow R(a,b), \qquad R^{\dagger \dagger }=R\ (\sigma ^2=1), \qquad \Delta ^\dagger =\Delta \ (\text {L3}). \tag{1032}\end{equation}

L14 (composition from transitivity).

\begin{equation} (S\circ R)(a,c):\Longleftrightarrow \exists b.\,\bigl (R(a,b)\wedge S(b,c)\bigr ). \tag{1033}\end{equation}
Hold together, then hide the middle: the shape of 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,

\begin{equation} \Delta _P\circ \Delta _Q=\Delta _{P\wedge Q}, \qquad \Delta _P\circ \Delta _P=\Delta _P, \qquad \Delta _P\le \Delta . \tag{1034}\end{equation}
The idempotents below the diagonal correspond exactly to judgments: a cut is a judgment.

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.

Adjunction, idempotence and maps

L20 (adjunction of relations).

\begin{equation} f\dashv g\ :\Longleftrightarrow \ \Delta \le g\circ f\ \text {and}\ f\circ g\le \Delta . \tag{1035}\end{equation}
From \(f\le fgf\le f\) and \(g\le gfg\le g\), the triangle identities hold.

L21 (adjunction and idempotence). If \(f\dashv g\), then \(gf\) is idempotent above \(\Delta \) and \(fg\) is idempotent below \(\Delta \):

\begin{equation} (gf)(gf)=g(fgf)=gf . \tag{1036}\end{equation}
Conversely, in an order, an idempotent \(c\) with \(P\vdash c(P)\) splits as an adjunction: onto its fixed points \(r\), inclusion \(i\), and
\begin{equation} c(P)\vdash Q\iff P\vdash Q\qquad (Q\text { fixed}), \tag{1037}\end{equation}
by \(P\vdash c(P)\vdash Q\) in one direction and \(c(P)\vdash c(Q)=Q\) in the other. Adjunctions and idempotents are one structure.

L22 (maps). A map is a relation with \(f\dashv f^\dagger \).

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\),

\begin{equation} \Delta \le f^\dagger f\le f^\dagger g^\dagger gf, \qquad gff^\dagger g^\dagger \le gg^\dagger \le \Delta , \tag{1038}\end{equation}
so \(g\circ f\) is a map, and by the one-point rule
\begin{equation} (g\circ f)(a,c)=\exists b.\,(b=f(a)\wedge c=g(b))\dashv \vdash c=g(f(a)). \tag{1039}\end{equation}

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].

The free monoid and \(\mathbb N\)

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:

\begin{equation} f^\dagger (yy')=f^\dagger \bigl (f(f^\dagger y\cdot f^\dagger y')\bigr )=f^\dagger y\cdot f^\dagger y' . \tag{1040}\end{equation}

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

\begin{equation} A^*=\sum _{n\ge 0}A^n . \tag{1041}\end{equation}

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\):

\begin{equation} \bar m(a_1\cdots a_n)=m(a_1)\cdots m(a_n). \tag{1042}\end{equation}
It exists because joining is respected. It is unique because every row is a row of letters.

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).

\begin{equation} \mathrm {Hom}_{\mathrm {Mon}}(A^*,M)\cong \mathrm {Hom}_{\mathrm {Set}}(A,M) \tag{1043}\end{equation}
[1645]. The unit makes a letter a one-letter row. The counit \(M^*\to M\) multiplies a row, which is evaluation.

L32 (one letter).

\begin{equation} \{x\}^*\cong (\mathbb N,+), \qquad x^mx^n=x^{m+n}, \qquad \sum _nx^n=\frac {1}{1-x}. \tag{1044}\end{equation}
Rows in \(k\) letters up to reordering form \(\mathbb N^k\).
The commutative ring axioms

L33 (additive endomaps). For a commutative monoid \((G,+,0)\), the maps preserving \(+\) and \(0\) carry two operations:

\begin{equation} (f+g)(a)=f(a)+g(a), \qquad (fg)(a)=f(g(a)). \tag{1045}\end{equation}

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\).

Expressions and polynomials

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:

\begin{equation} f=\sum _nf_nx^n, \qquad \text {finitely many }f_n\neq 0 . \tag{1046}\end{equation}

L41 (convolution).

\begin{equation} \Bigl (\sum _if_ix^i\Bigr )\Bigl (\sum _jg_jx^j\Bigr )=\sum _{i,j}f_ig_jx^{i+j}=\sum _k\Bigl (\sum _{i+j=k}f_ig_j\Bigr )x^k, \tag{1047}\end{equation}
by distributivity, then joining rows. The sum over \(i+j=k\) matches a middle and hides it: the shape of composition (L14).

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.

Evaluation

L43 (the evaluation adjunction). For a commutative ring \(S\),

\begin{equation} \mathrm {Hom}(R[x],S)\cong \mathrm {Hom}(R,S)\times S, \qquad \mathrm {ev}_s\Bigl (\sum _nf_nx^n\Bigr )=\sum _n\varphi (f_n)s^n . \tag{1048}\end{equation}
It is well defined by L39, a homomorphism by L41, and unique because \(R\) and \(x\) generate. \(R[x]\) is the composite of two left adjoints, rows (L31) and then linear combinations, with evaluation as counit.

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.

Consequences of evaluation

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).

\begin{equation} \ell _i=\prod _{j\neq i}\frac {x-a_j}{a_i-a_j}, \qquad \ell _i(a_j)=\delta _{ij}, \qquad \sum _i\ell _i=1, \qquad K[x]\Big /\prod _i(x-a_i)\cong K^n . \tag{1049}\end{equation}

L47 (spectral projections). Evaluating L46 at a matrix \(A\) with distinct eigenvalues,

\begin{equation} P_i=\ell _i(A), \qquad P_iP_j=\delta _{ij}P_i, \qquad \sum _iP_i=1, \qquad A=\sum _ia_iP_i \tag{1050}\end{equation}
[1646]. In particular \(\Pi ^2=\Pi \) exactly when the minimal polynomial divides \(x(x-1)\): the idempotents of L17 and L21 are polynomial facts.

L48 (Vieta, Cayley–Hamilton).

\begin{equation} \det (x-A)=x^n-(\mathrm {Tr}A)x^{n-1}+\cdots +(-1)^n\det A, \tag{1051}\end{equation}
and evaluating it at \(x=A\) gives \(0\).

L49 (derivative). Evaluating at \(x+\varepsilon \) in \(R[\varepsilon ]/(\varepsilon ^2)\),

\begin{equation} f(x+\varepsilon )=f(x)+\varepsilon f'(x), \qquad (fg)'=f'g+fg'. \tag{1052}\end{equation}
A root \(a\) is multiple exactly when \(f(a)=f'(a)=0\).

L50 (counting).

\begin{equation} (1+x)^n=\sum _k\binom nkx^k , \tag{1053}\end{equation}
choosing \(1\) or \(x\) in each factor.

L51 (circle).

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.

Algebras presented by relations

L53 (free algebras). Without reordering, linear combinations of rows form \(R\langle A\rangle =R[A^*]\). For any ring \(S\),

\begin{equation} \mathrm {Hom}(R\langle A\rangle ,S)\cong \{\text {maps }A\to S\}, \tag{1054}\end{equation}
by L31 and linearity, with evaluation as counit.

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
The ladder

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

47.2 Induction, arithmetic and calculus from identity

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:

\begin{equation} \begin {aligned} &\neg (a=a)\to 0\to S=(-)+1\to \text {injectivity by cancelling a point}\to \mathbb N\\ &\quad \to \text {recursion}\to \text {induction}\to +,\times \text { as counts}\to \text {well-ordering}\to \mathbb N^{(A)}\\ &\quad \to \text {FTA}\to \mathbb R\ (\text {cuts})\to \vee \to \text {real induction}\to \text {Ritz}\to \text {slope}\to \text {FTC}. \end {aligned} \tag{1055}\end{equation}
I. Zero, successor, \(\mathbb N\)

N0 (counts). Two kinds have the same count when they are isomorphic:

\begin{equation} |X|=|Y|\ :\Longleftrightarrow \ X\simeq Y . \tag{1056}\end{equation}
Isomorphism is reflexive (\(\mathrm {id}\)), symmetric (\(f^{-1}=f^\dagger \)) and transitive (\(\circ \)): it is identity one level up (B1), so counts are well defined.

N1 (zero, from the negation of identity). The kind of things not identical to themselves,

\begin{equation} \bot :=\{a:\ \neg (a=a)\}, \tag{1057}\end{equation}
has no element, since every \(a\) has \(\mathrm {refl}_a\) (Y0). It has no generators. Its use rule is vacuous: there is exactly one map \(\bot \to C\) for every \(C\), so \(\bot \) is the empty sum (Y10). Define
\begin{equation} 0:=|\bot | \tag{1058}\end{equation}
[1650]. Negation is then \(\neg P:=(P\to \bot )\).

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:

\begin{equation} S|X|:=|X+1|, \qquad X\xrightarrow {\ \mathrm {inl}\ }X+1\xleftarrow {\ \mathrm {inr}\ }1 . \tag{1059}\end{equation}
The old elements enter by \(\mathrm {inl}\), which is the identity on \(X\), and the new point is \(\ast =\mathrm {inr}(a,\mathrm {refl})\). \(S\) is well defined, since \(X\simeq Y\) gives \(X+1\simeq Y+1\) (sums of isomorphisms, \(\mathrm {id}\) on the new point).

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):

\begin{equation} h(x)= \begin {cases} y & \text {if }f(\mathrm {inl}\,x)=\mathrm {inl}\,y,\\ y' & \text {if }f(\mathrm {inl}\,x)=\ast \text { and }f(\ast )=\mathrm {inl}\,y'. \end {cases} \tag{1060}\end{equation}
The second case is forced: if \(f(\mathrm {inl}\,x)=\ast \), then \(f(\ast )\neq \ast \) because \(f\) is injective. Built the same way from \(f^{-1}\), the map \(k:Y\to X\) satisfies \(kh=\mathrm {id}\) and \(hk=\mathrm {id}\), by the round trips of \(f\). Hence
\begin{equation} S|X|=S|Y|\ \Longrightarrow \ |X|=|Y| . \tag{1061}\end{equation}

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

\begin{equation} 0:1\to \mathbb N, \qquad S:\mathbb N\to \mathbb N, \tag{1062}\end{equation}
which are the generators of \(1+\mathbb N\) [692]. By N4 and N5, \(S\) is injective and \(0\) is not in its image. So \(\mathbb N\) is infinite in Dedekind’s sense: it is isomorphic to a proper part of itself.

N7 (recursion and uniqueness). As for \(\mathrm {refl}\) in Y1, “only these generators” gives two rules:

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

\begin{equation} x_0=(0,c_0), \qquad s(n,c)=(Sn,t_n(c)). \tag{1063}\end{equation}
Then \(\pi _1h\) commutes with \(0\) and \(S\), so \(\pi _1h=\mathrm {id}\) by uniqueness, and transport along \(\pi _1h(n)=n\) gives \(C(n)\). Induction is the J of \(\mathbb N\).

N9 (arithmetic as counts).

\begin{equation} |X|+|Y|:=|X+Y|, \qquad |X|\cdot |Y|:=|X\times Y| . \tag{1064}\end{equation}
Laws are isomorphisms of kinds:

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:

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.

II. Free commutative monoids and the fundamental theorem of arithmetic

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\),

\begin{equation} \mathrm {Hom}_{\mathrm {CMon}}(\mathbb N^{(A)},M)\simeq (A\to M), \qquad g\mapsto \Bigl (\alpha \mapsto \sum _a\alpha _a\,g(a)\Bigr ), \tag{1065}\end{equation}
with unit \(a\mapsto e_a\) and counit the order-free product. The round trips hold by computation and by induction on \(\sum _a\alpha _a\) (N8, Y9).

N14 (\(\mathbb Z\) and its ideals). \(\mathbb Z\) is pairs from \(\mathbb N\) with negation \(\sigma \) (B3).

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

\begin{equation} \mathbb N^{(P)}\to (\mathbb Z_{>0},\times ), \qquad \alpha \mapsto \prod _pp^{\alpha _p}. \tag{1066}\end{equation}
It is surjective by N11, since each \(n>1\) is prime or a product of smaller factors. It is injective by N15 and induction, since equal products share a prime, which cancels as in N4. So it is an isomorphism [1651]. Multiplication is addition of exponents, the monomials of S2. Divisibility is the distributive lattice with \(\gcd =\min \) and \(\mathrm {lcm}=\max \) of exponents (Branch A).
III. The real numbers

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:

Every upper bound contains it. Hence \(\sup _ix_i=\bigcup _ix_i=\bigvee _ix_i\).

N20 (real induction). Let \(S\subseteq [a,b]\) satisfy

1.
\(a\in S\);
2.
if \([a,x)\subseteq S\), then \(x\in S\);
3.
if \(x\in S\) and \(x<b\), then \([x,x+\epsilon )\subseteq S\) for some \(\epsilon >0\).

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.

IV. Ritz, local slope and the fundamental theorem of calculus

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)\),

\begin{equation} I(a,b)=F(b)-F(a). \tag{1067}\end{equation}

N22 (local slope). \(f\) has slope \(f'(c)\) at \(c\) when

\begin{equation} f(x)-f(c)=\varphi (x)(x-c) \tag{1068}\end{equation}
with \(\varphi \) continuous at \(c\) and \(\varphi (c)=f'(c)\) [1654]. Then \(f\) is continuous at \(c\), and:

N23 (zero slope means constant). If \(G'=0\) on \([a,b]\), apply N20 to

\begin{equation} S=\{x:\ |G(x)-G(a)|\le \epsilon (x-a)\}. \tag{1069}\end{equation}
This gives \(|G(b)-G(a)|\le \epsilon (b-a)\) for all \(\epsilon \), so \(G(b)=G(a)\).

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).

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)\),

\begin{equation} dI=1, \qquad Id+\mathrm {ev}_0=1, \qquad (Id)^2=Id, \qquad \mathrm {ev}_0^2=\mathrm {ev}_0, \qquad (Id)\,\mathrm {ev}_0=0=\mathrm {ev}_0\,(Id). \tag{1071}\end{equation}
The identity splits into two cuts: what the slope recovers, and the value at the base point.
The ladder

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

47.3 Arithmetic laws from \(x^2=x\) and \(x^2=1\)

Every law of arithmetic is an isomorphism of kinds (N9) built from identity and two seeds:

\begin{equation} e^2=e\quad \text {(idempotent: the diagonal, normal forms)}, \qquad \sigma ^2=1\quad \text {(involution: the exchange)}. \tag{1072}\end{equation}
In a Boolean ring the two seeds are the two operations: multiplication is idempotent, \(x\cdot x=x\), and addition is involutive, \(x+x=0\).
The two seeds

Q1 (idempotent). \(e=\delta \pi _1\) satisfies \(e^2=e\) (Y6). Its two legs are:

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.

The laws

Q3 (\(m+0=m\) is \(m=m\)). \(\bot \) has no element (N1), so every element of \(X+\bot \) is \(\mathrm {inl}\,x\):

\begin{equation} \mathrm {inl}:X\to X+\bot , \qquad \mathrm {case}(\mathrm {id},!):X+\bot \to X . \tag{1073}\end{equation}
Both round trips are \(\mathrm {id}\): one by computation, the other by cases, the \(\bot \)-case being empty. The isomorphism is the identity of \(X\) with nothing added:
\begin{equation} m+0=m\quad \text {is}\quad m=m\ \text {with }{+0}. \tag{1074}\end{equation}

Q4 (\(m\cdot 1=m\) is \(\pi \delta =1\)).

\begin{equation} \pi _1:X\times 1\to X, \qquad x\mapsto (x,\ast ), \tag{1075}\end{equation}
with round trips \(\mathrm {id}\) by \(\beta \) and by one-point (Y3, \(1\) has one element). This is the retraction of the idempotent: forgetting a place that carries nothing.

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\)).

\begin{equation} \sigma :X\times Y\simeq Y\times X, \qquad \sigma :X+Y\simeq Y+X, \tag{1076}\end{equation}
each its own inverse by \(\sigma ^2=1\). Hence \(mn=nm\) and \(m+n=n+m\).

Q7 (distributivity is \(\delta \)).

\begin{equation} X\times (Y+Z)\simeq X\times Y+X\times Z, \qquad (x,\mathrm {inl}\,y)\mapsto \mathrm {inl}(x,y), \quad (x,\mathrm {inr}\,z)\mapsto \mathrm {inr}(x,z). \tag{1077}\end{equation}
The factor \(x\) is copied into whichever summand is chosen: duplication, the section of \(e\). Hence \(m(n+k)=mn+mk\).

Q8 (associativity is \(N^2=N\)). Every expression in \(+\), \(\times \), \(0\), \(1\) has a normal form \(N\):

1.
distribute (Q7);
2.
flatten brackets;
3.
sort the factors and summands (Q6);
4.
remove \(+0\) and \(\cdot 1\) (Q3, Q4) and terms with \(\cdot 0\) (Q5).

\(N\)is idempotent. Both \((m+n)+k\) and \(m+(n+k)\) flatten to the same row \(m,n,k\), and likewise for \(\times \). So

\begin{equation} N\bigl ((m+n)+k\bigr )=N\bigl (m+(n+k)\bigr ), \qquad N\bigl ((mn)k\bigr )=N\bigl (m(nk)\bigr ), \tag{1078}\end{equation}
an instance of \(a=a\) on normal forms. As kinds, the regrouping \(((x,y),z)\leftrightarrow (x,(y,z))\) has round trips \(\mathrm {id}\) by uniqueness of pairs.

Q9 (the recursion equations).

\begin{align} m+Sn&=m+(n+1)=(m+n)+1=S(m+n), &&\text {Q8} \tag{1079}\\ m\cdot Sn&=m(n+1)=mn+m\cdot 1=mn+m, &&\text {Q7, Q4} \tag{1080}\end{align}

as kinds: \(X+(Y+1)\simeq (X+Y)+1\) and \(X\times (Y+1)\simeq X\times Y+X\).

Q10 (absorption).

The two operations of a Boolean ring

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\).

Summary

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\)