22 One Diagonal: Polynomials and Fields

Only one thing is laid down: the diagonal \(\Delta \). Everything below is \(\Delta \) read by Yoneda. The swap, the projection and the idempotent are \(\Delta \) seen from three sides. The two operations are the two adjoints of \(\Delta \). Commutativity is the invariance of \(\Delta \) under the swap it produces, and distributivity is \(\Delta \) passing between its own adjoints. Convolution is \(\Delta \) read on gradings. Polynomials are the free algebra it generates, unique by Yoneda, and \(\mathbb F_p\), \(\mathbb Q\) and \(\mathbb C=\mathbb R[x]/(x^2+1)\) are one operation cut at three places.

D0 (Yoneda from \(\mathrm {id}\)). For a functor \(F:\mathcal C\to \mathbf {Set}\) and an object \(A\),

\begin{equation} \mathrm {Nat}\bigl (\mathrm {Hom}(A,-),F\bigr )\cong F(A),\qquad \eta \mapsto \eta _A(\mathrm {id}_A). \tag{401}\end{equation}
Proof. \(\mathrm {id}_A\) exists because \(A=A\). For any \(f:A\to B\), write \(f=f\circ \mathrm {id}_A\). Naturality of \(\eta \) along \(f\) gives
\begin{equation} \eta _B(f)=\eta _B\bigl (f\circ \mathrm {id}_A\bigr )=F(f)\bigl (\eta _A(\mathrm {id}_A)\bigr ), \tag{402}\end{equation}
so \(\eta \) is fixed by the single value \(\eta _A(\mathrm {id}_A)\). Conversely, each \(x\in F(A)\) defines \(\eta ^x_B(f)=F(f)(x)\), which is natural by functoriality, and \(\eta ^x_A(\mathrm {id}_A)=F(\mathrm {id}_A)(x)=x\). The two assignments are inverse. □

Everything Yoneda says is the value at \(\mathrm {id}\): an object is known by where its identity goes.

D1 (the one thing).

\begin{equation} \Delta :A\longrightarrow A\times A,\qquad \Delta (a)=(a,a), \tag{403}\end{equation}
the only map a mark admits into a pair without choosing anything, and the map whose image is \(a=a\). \(\Delta \) is the \(a=a\) as relation and map which is the only map with \(\pi _1\Delta =\mathrm {id}=\pi _2\Delta \).

D2 (swap, projection, idempotent are \(\Delta \)). Yoneda reads \(\Delta \) through \(\mathrm {Hom}(-,A\times A)\cong \mathrm {Hom}(-,A)\times \mathrm {Hom}(-,A)\), where \(\Delta \) is the image of the pair \((\mathrm {id},\mathrm {id})\).

Read off from \(\Delta \) Definition Law it satisfies, and why
swap \(\sigma \) the unique map with \(\sigma \Delta =\Delta \) \(\sigma ^2=\mathrm {id}\), since \((\mathrm {id},\mathrm {id})\) is unchanged twice
projections \(\pi _1,\pi _2\) the counit of \(\times \) \(\pi _i\Delta =\mathrm {id}\), the one-point rule
idempotent \(e\) \(e=\pi _i\circ \Delta \) at a factor \(e^2=e\), since \(\pi \Delta =\mathrm {id}\) is applied twice

\(\sigma \), \(\pi \) and \(e^2=e\) are not three further primitives. Each is a name for \(\Delta \) composed with the structure \(\Delta \) itself defines.

D3 (two operations, two adjoints of \(\Delta \)). \(\Delta \) has a left and a right adjoint, and these are the two operations:

\begin{equation} \Sigma \ \dashv \ \Delta \ \dashv \ \Pi , \qquad \Sigma (a,b)=a+b, \qquad \Pi (a,b)=a\cdot b . \tag{404}\end{equation}
Both units and counits are images of \(\mathrm {id}\) under Yoneda (Y9), so no further data is chosen.

Addition and multiplication are the same diagonal taken on its two sides.

D4 (commutativity). By D2, \(\sigma \Delta =\Delta \). Applying \(\Sigma \) and \(\Pi \) to this one equation,

\begin{equation} a+b=b+a,\qquad a\cdot b=b\cdot a . \tag{405}\end{equation}
Both commutativities are the single fact that \(\Delta \) does not record which copy came first, and \(\sigma ^2=\mathrm {id}\) is that fact used twice.

D5 (distributivity). \(\Delta \) passes between its adjoints. The composite

\begin{equation} A\times (B\sqcup C) \ \xrightarrow {\ \Delta \times \mathrm {id}\ }\ (A\times A)\times (B\sqcup C) \ \xrightarrow {\ \ \ }\ (A\times B)\sqcup (A\times C) \tag{406}\end{equation}
is an isomorphism, because by Yoneda both sides represent the same functor: a map out of either is a pair of maps, one on \(B\) and one on \(C\), each using the mark of \(A\). Applying \(\Sigma \) and \(\Pi \),
\begin{equation} a\cdot (b+c)=ab+ac . \tag{407}\end{equation}
Distributivity is \(\Delta \) copying its input across the two summands. With D4 and the associativity of Z7 this is a commutative semiring; adjoining \(\sigma \) on the additive side gives \(-1=\sigma \) and \((-1)(-1)=\sigma ^2=1\), hence a commutative ring. Only \(\Delta \) was used.

D6 (convolution: \(\Delta \) on gradings). Let marks carry a grade in a commutative monoid \((M,+,0)\), which is itself generated by \(\Delta \) on one generator (D8 below). \(\Delta \) on the grading is

\begin{equation} \Delta _M:M\to M\times M,\qquad \text {read backwards as } (m,n)\mapsto m+n . \tag{408}\end{equation}
Transporting a product of graded families along \(\Delta _M\) and forgetting the middle grade, exactly the act of Z5, gives
\begin{equation} (f\ast g)(k)=\sum _{m+n=k}f(m)\,g(n). \tag{409}\end{equation}
Gluing is the pair \(f(m)g(n)\), forgetting is the sum over the splittings of \(k\). Convolution is composition (Z5) carried out on grades instead of places. Its unit is \(\delta _0\), the family concentrated at the grade \(0\), which is the image of \(\mathrm {id}\) again.

D7 (polynomials, and nothing else). Take \(M=\mathbb N\), the free commutative monoid on one grade, and let \(R\) be a commutative ring as in D5. The finitely supported graded families over \(R\), with \(+\) pointwise and \(\ast \) as in D6, form \(R[x]\), where \(x\) is the family concentrated at grade \(1\).

Polynomials are the free object the diagonal makes, and no construction is chosen. Several grades, \(M=\mathbb N^n\), give \(R[x_1,\dots ,x_n]\) the same way. Evaluation at a mark is the counit of this adjunction, which is again the image of \(\mathrm {id}\).

D8 (\(\mathbb N\) itself is \(\Delta \) on one generator). The grading monoid \(M\) is not an extra input. With one generator, the free commutative monoid is \(\mathbb N\), where the successor is \(\Delta \) followed by adding the generator (Z2, N6). So D6 and D7 use the same diagonal as D1.

D9 (one operation, cut by \(e^2=e\)). A quotient \(R[x]/(f)\) splits \(R[x]\) exactly when the class of \(f\) produces an idempotent \(e^2=e\) in the quotient, which is the idempotent of D2. One operation, cut at three places:

Cut Result \(e^2=e\) or \(\sigma ^2=1\) there Reading
\(\mathbb Z/(p)\), \(p\) prime \(\mathbb F_p\) no idempotent but \(0,1\) the cut is a field: \((p)\) is maximal
\(\mathbb Z\) localised at \(\mathbb Z\setminus \{0\}\) \(\mathbb Q\) \(e=0\) or \(e=1\) only every nonzero mark gets an inverse
\(\mathbb R[x]/(x^2+1)\) \(\mathbb C\) \(\sigma :x\mapsto -x\), \(\sigma ^2=1\) the cut adjoins \(J\) with \(J^2=-1\)
\(\mathbb R[x]/(x^2-1)\) \(\mathbb R\times \mathbb R\) \(e=\tfrac {1+x}{2}\), \(e^2=e\) the cut splits: not a field

The last two rows are the whole criterion. A quotient is a field exactly when the only idempotents are \(0\) and \(1\) and no nonzero mark is killed; it splits into a product exactly when a nontrivial \(e^2=e\) appears. For \(x^2-1=(x-1)(x+1)\) the two factors are coprime, so the cut splits. For \(x^2+1\) no factorisation over \(\mathbb R\) exists, since a root would give \(r^2=-1\) against the cone \(\bar zz\ge 0\), so the cut stays whole and produces \(\mathbb C\). The involution left behind is \(\sigma \), complex conjugation, with \(\sigma ^2=1\) as in D2.

D10 (what \(\mathbb C\) inherits). In \(\mathbb C=\mathbb R[x]/(x^2+1)\) write \(J\) for the class of \(x\), so \(J^2=-1\) and \(\sigma (J)=-J\).

D11 (the ladder).

\begin{equation} \begin {aligned} &\Delta \ (\text {D1})\to \sigma ,\ \pi ,\ e^2=e\ \text {by Yoneda}\ (\text {D2})\to \Sigma \dashv \Delta \dashv \Pi ,\ \text {that is }+\text { and }\cdot \ (\text {D3})\\ &\quad \to \text {commutativity}=\sigma \Delta =\Delta \ (\text {D4})\to \text {distributivity}=\Delta \ \text {across a sum}\ (\text {D5})\\ &\quad \to \mathbb N=\Delta \ \text {on one generator}\ (\text {D8})\to \text {convolution}=\Delta \ \text {on grades}\ (\text {D6})\\ &\quad \to R[x]\ \text {free, unique by Yoneda}\ (\text {D7})\\ &\quad \to \text {cut by }e^2=e:\ \mathbb F_p,\ \mathbb Q,\ \mathbb C=\mathbb R[x]/(x^2+1)\ (\text {D9, D10}) \end {aligned} \tag{410}\end{equation}

22.1 Identity, Diagonal, Composition, Category

Only equality is laid down. Relations are statements on places, maps are relations satisfying two inequalities against equality, and the diagonal, the projections and \(\mathrm {id}\times g\) are relations written with equality alone. Each passes the map conditions by \(a=a\) and substitution, so they are all derived at once. Composition, units, associativity and the category follow.

I1 (primitive: equality). For every \(A\), the equality relation is

\begin{equation} E_A(a,a')\iff a=a'. \tag{411}\end{equation}
\(a=a\) makes it reflexive, and substitution (Z0) makes it symmetric and transitive.

I2 (relations and their operations). A relation \(R:A\to B\) is a statement \(R(a,b)\) on two places. Three operations are defined from places alone (Z3, Z5):

\begin{equation} \begin {aligned} R^\dagger (b,a) &\iff R(a,b),\\ (R;S)(a,c) &\iff \exists b.\ R(a,b)\wedge S(b,c),\\ R\subseteq R' &\iff \forall a,b.\ R(a,b)\Rightarrow R'(a,b). \end {aligned} \tag{412}\end{equation}
The converse \(\dagger \) is the swap \(\sigma \) of the two places. By Z6, \(E;R=R=R;E\), and by Z7, \(;\) is associative. Moreover \(;\) is monotone in each argument.

I3 (maps from equality). A relation \(R:A\to B\) is a map when

\begin{equation} E_A\subseteq R;R^\dagger \quad (\text {total}), \qquad R^\dagger ;R\subseteq E_B\quad (\text {single-valued}). \tag{413}\end{equation}
Unfolded, totality says every \(a\) has some \(b\) with \(R(a,b)\). Single-valuedness says \(R(a,b)\) and \(R(a,b')\) give \(b=b'\). So every \(a\) has exactly one partner, written \(f(a)\), and \(R(a,b)\iff b=f(a)\). A map is a relation, and the word “function” adds nothing beyond the two inequalities.

I4 (identity, diagonal, projections, products are maps). Each relation below is written with equality alone. Its map conditions follow from \(a=a\), which supplies the witness, and substitution, which gives uniqueness.

Name Relation Partner
\(\mathrm {id}_A:A\to A\) \(E_A(a,a')\) \(a'=a\)
\(\Delta _B:B\to B\times B\) \(b_1=b\wedge b_2=b\) \((b,b)\)
\(\pi _1:B\times C\to B\) \(b'=b\) \(b\)
\(\pi _2:B\times C\to C\) \(c'=c\) \(c\)
\(\mathrm {id}_B\times g:B\times B\to B\times C\) \(b'=b_1\wedge c=g(b_2)\) \((b_1,g(b_2))\)

For instance, for \(\pi _2\): totality is \(c'=c\) for \(c'=c\), true by \(a=a\); and from \(c'=c\) and \(c''=c\), substitution gives \(c'=c''\). The other rows are the same argument applied coordinatewise. In particular

\begin{equation} \pi _1\circ \Delta _B=\mathrm {id}_B=\pi _2\circ \Delta _B, \tag{414}\end{equation}
since \(\exists (b_1,b_2).\ (b_1=b\wedge b_2=b)\wedge b'=b_2\) reduces to \(b'=b\) by the one-point rule. The projections are the maps that undo the diagonal.

I5 (maps compose to maps). Let \(R:A\to B\) and \(S:B\to C\) be maps.

So \(R;S\) is a map. For maps write \(g\circ f=R;S\).

I6 (the diagonal formula for composition). For maps \(f:A\to B\) and \(g:B\to C\), the chain

\begin{equation} A\xrightarrow {\ f\ }B\xrightarrow {\ \Delta _B\ }B\times B \xrightarrow {\ \mathrm {id}_B\times g\ }B\times C\xrightarrow {\ \pi _2\ }C \tag{417}\end{equation}
is a composite of maps from I4, hence a map by I5. Composing the relations and applying the one-point rule at each middle place,
\begin{equation} \begin {aligned} a&\mapsto b=f(a)\\ &\mapsto (b_1,b_2)=(b,b)\\ &\mapsto (b',c)=(b_1,g(b_2))=(f(a),g(f(a)))\\ &\mapsto c'=c=g(f(a)). \end {aligned} \tag{418}\end{equation}
Hence
\begin{equation} g\circ f=\pi _2\circ (\mathrm {id}_B\times g)\circ \Delta _B\circ f, \qquad (g\circ f)(a)=g(f(a)). \tag{419}\end{equation}
The diagonal copies the middle, \(g\) acts on one copy, and \(\pi _2\) forgets the witness: Z5 written with maps.

I7 (units and associativity). By I2, \(E;R=R=R;E\) and \(;\) is associative. For maps this reads

\begin{equation} f\circ \mathrm {id}_A=f=\mathrm {id}_B\circ f, \qquad h\circ (g\circ f)=(h\circ g)\circ f . \tag{420}\end{equation}
On marks, both sides of the second equation are \(h(g(f(a)))\).

I8 (category). Kinds, maps (I3), identities and the diagonal (I4), composition (I5, I6), units and associativity (I7) form a category. Every ingredient is equality:

\begin{equation} \begin {gathered} \text {Equality } E\\ \Downarrow \\ \text {Relations, converse, composite}\\ \Downarrow \\ \text {Maps: two inequalities against }E\\ \Downarrow \\ \mathrm {id},\ \Delta ,\ \pi _1,\ \pi _2,\ \mathrm {id}\times g\\ \Downarrow \\ \text {Composition }g\circ f=\pi _2\circ (\mathrm {id}\times g)\circ \Delta \circ f\\ \Downarrow \\ \text {Units and associativity}\\ \Downarrow \\ \text {Category} \end {gathered} \tag{421}\end{equation}

22.2 Weakening, Some and All from the Diagonal

Only the diagonal is laid down. Its adjunction with the product gives the projections as counit, with \(\Delta \) itself as unit. Substitution along a projection is weakening. Some and all are the two adjoints of weakening. Equality is some along the diagonal, which closes the loop back to \(\Delta \). A map \(f\) is then a statement that is “for all, exactly some”, and the step \(\pi _2\) in \(g\circ f=\pi _2\circ (\mathrm {id}_B\times g)\circ \Delta _B\circ f\) is some, forgetting the witness.

E1 (the one thing).

\begin{equation} \Delta _A:A\to A\times A,\qquad \Delta _A(a)=(a,a). \tag{422}\end{equation}

E2 (projections are the counit of \(\Delta \)). \(\Delta \) has a right adjoint, the product:

\begin{equation} \mathrm {Hom}\bigl ((X,X),(A,B)\bigr )\cong \mathrm {Hom}(X,A\times B), \qquad \Delta \dashv \times . \tag{423}\end{equation}
By Yoneda (D0), unit and counit are images of identities.

The triangle identities give

\begin{equation} \pi _1\circ \Delta _A=\mathrm {id}_A=\pi _2\circ \Delta _A, \qquad (\pi _1,\pi _2)(a,b)=(a,b). \tag{424}\end{equation}
So \(\pi \) is the diagonal’s own counit and needs no separate introduction.

E3 (statements and substitution). A statement on \(A\) is a cut \(\varphi :A\to \Omega \) (L22), ordered by \(\varphi \le \psi \iff \forall a.\ \varphi (a)\Rightarrow \psi (a)\). Along any map \(h:X\to A\), substitution is

\begin{equation} h^*\varphi =\varphi \circ h, \qquad (g\circ f)^*=f^*\circ g^*, \qquad \mathrm {id}^*=\mathrm {id}. \tag{425}\end{equation}
\(h^*\) preserves \(\top \) and \(\wedge \), since both are computed pointwise.

E4 (the structural rules are \(\pi ^*\), \(\Delta ^*\), \(\sigma ^*\)).

Rule Substitution Effect on a statement
weakening \(\pi _1^*:\Omega ^A\to \Omega ^{A\times B}\) \((\pi _1^*\varphi )(a,b)=\varphi (a)\): add an unused place
contraction \(\Delta ^*:\Omega ^{A\times A}\to \Omega ^A\) \((\Delta ^*\psi )(a)=\psi (a,a)\): identify two places
exchange \(\sigma ^*:\Omega ^{A\times B}\to \Omega ^{B\times A}\) \((\sigma ^*\psi )(b,a)=\psi (a,b)\): swap two places

All three are substitution along maps that E2 has produced from \(\Delta \).

E5 (some is the left adjoint of weakening). Define \(\exists _B:\Omega ^{A\times B}\to \Omega ^A\) by the adjunction

\begin{equation} \exists _B\psi \le \varphi \iff \psi \le \pi _1^*\varphi . \tag{426}\end{equation}
Write \(\psi \le \pi _1^*\varphi \) pointwise: for all \(a,b\), \(\psi (a,b)\Rightarrow \varphi (a)\). Equivalently, for all \(a\): if some \(b\) has \(\psi (a,b)\), then \(\varphi (a)\). The least \(\varphi \) with this property is therefore
\begin{equation} (\exists _B\psi )(a)\iff \text {some }b\text { has }\psi (a,b). \tag{427}\end{equation}
Adjoints are unique (V1), so this is the only choice. “Some” is not assumed; it is the formula the adjunction forces.

E6 (all is the right adjoint of weakening). Define \(\forall _B:\Omega ^{A\times B}\to \Omega ^A\) by

\begin{equation} \pi _1^*\varphi \le \psi \iff \varphi \le \forall _B\psi . \tag{428}\end{equation}
Pointwise, \(\pi _1^*\varphi \le \psi \) says: for all \(a\), if \(\varphi (a)\), then \(\psi (a,b)\) for every \(b\). The greatest \(\varphi \) with this property is
\begin{equation} (\forall _B\psi )(a)\iff \text {every }b\text { has }\psi (a,b). \tag{429}\end{equation}
So \(\exists _B\dashv \pi _1^*\dashv \forall _B\). Some and all are the two sides of one weakening.

E7 (equality is some along the diagonal). Substitution along \(\Delta \) has a left adjoint by the same recipe as E5,

\begin{equation} (\exists _\Delta \varphi )(a,a')\iff \text {some }a''\text { has }\varphi (a'')\text { and }(a'',a'')=(a,a'). \tag{430}\end{equation}
Taking \(\varphi =\top \),
\begin{equation} (\exists _\Delta \top )(a,a')\iff a=a' . \tag{431}\end{equation}
Equality is the image of the diagonal, so the loop closes at E1. Frobenius, \(\exists _\Delta (\Delta ^*\psi \wedge \varphi )=\psi \wedge \exists _\Delta \varphi \), applied to \(\varphi =\top \) gives the one-point rule
\begin{equation} \exists b.\ \bigl (\psi (a,b)\wedge b=c\bigr )\iff \psi (a,c). \tag{432}\end{equation}

E8 (maps from all, some and equality). A statement \(\Gamma \) on \(A\times B\) is the graph of a map when

\begin{equation} \forall a.\ \exists b.\ \Gamma (a,b) \qquad \text {and}\qquad \forall a.\ \forall b.\ \forall b'.\ \bigl (\Gamma (a,b)\wedge \Gamma (a,b')\Rightarrow b=b'\bigr ). \tag{433}\end{equation}
The first condition is “for all, some” (E5, E6). The second is “for all, at most one”, stated with equality (E7). The unique \(b\) is written \(f(a)\), and
\begin{equation} \Gamma _f(a,b)\iff f(a)=b, \qquad \Gamma _f=(f\times \mathrm {id}_B)^*\bigl (\exists _\Delta \top \bigr ). \tag{434}\end{equation}
The map \(f\) is the statement “for all \(a\), exactly one \(b\)”. Along \(f\), the same adjunctions give
\begin{equation} (\exists _f\varphi )(b)\iff \exists a.\ \varphi (a)\wedge f(a)=b, \qquad (\forall _f\varphi )(b)\iff \forall a.\ f(a)=b\Rightarrow \varphi (a), \tag{435}\end{equation}
which are image and coimage, built from \(\exists \), \(\forall \) and \(=\) alone.

E9 (the composite, read with some). For \(f:A\to B\) and \(g:B\to C\), the chain

\begin{equation} A\xrightarrow {\ f\ }B\xrightarrow {\ \Delta _B\ }B\times B \xrightarrow {\ \mathrm {id}_B\times g\ }B\times C\xrightarrow {\ \pi _2\ }C \tag{436}\end{equation}
sends \(a\) to \(\bigl (f(a),g(f(a))\bigr )\) and then to \(g(f(a))\). In graphs, the final \(\pi _2\) is some applied to the first coordinate:
\begin{equation} \Gamma _{g\circ f}(a,c) \iff \exists b.\ \Gamma _f(a,b)\wedge \Gamma _g(b,c) =\exists _B\bigl (\pi _{AB}^*\Gamma _f\wedge \pi _{BC}^*\Gamma _g\bigr )(a,c). \tag{437}\end{equation}
Reading the right side:

So

\begin{equation} g\circ f=\pi _2\circ (\mathrm {id}_B\times g)\circ \Delta _B\circ f \tag{438}\end{equation}
and the some-formula are one statement: \(\Delta _B\) copies the middle, and \(\pi _2\) with its adjoint \(\exists _B\) forgets it.

E10 (what came from what).

Item Built as From
\(\Delta \) the one thing E1
\(\pi _1,\pi _2\) counit of \(\Delta \dashv \times \) E2
weakening \(\pi ^*\) E4
contraction, exchange \(\Delta ^*\), \(\sigma ^*\) E4
some left adjoint of \(\pi ^*\) E5
all right adjoint of \(\pi ^*\) E6
equality \(\exists _\Delta \top \) E7
one-point rule Frobenius at \(\Delta \) E7
map \(f\) for all, exactly one E8
image, coimage \(\exists _f\), \(\forall _f\) E8
composite weaken, glue, some E9

E11 (the ladder).

\begin{equation} \begin {gathered} \Delta \\ \Downarrow \\ \Delta \dashv \times :\ \text {unit }\Delta ,\ \text {counit }\pi _1,\pi _2\\ \Downarrow \\ \text {weakening }\pi ^*,\ \text {contraction }\Delta ^*,\ \text {exchange }\sigma ^*\\ \Downarrow \\ \exists \dashv \pi ^*\dashv \forall :\ \text {some and all}\\ \Downarrow \\ \text {equality }\exists _\Delta \top ,\ \text {one-point rule}\\ \Downarrow \\ \text {maps }f:\ \forall \,\exists !\\ \Downarrow \\ g\circ f=\pi _2\circ (\mathrm {id}_B\times g)\circ \Delta _B\circ f=\exists _B(\Gamma _f\wedge \Gamma _g) \end {gathered} \tag{439}\end{equation}