Blog Archive

Saturday, April 13, 2024

The Naturalness of Addition and Multiplication: A Categorical Perspective

未命名4

The aim of this blog is to explain why the + and × operators on N are natural from a categorical point of view.

Let us consider the category of finite sets, Fset.

It has an initial object 0:= and a final object 1:={}, finite products X×Y, and coproducts X+Y, exponential object YX. Here YX:=HomFset(X,Y).

It is not hard to see the correspondence between Fset and N. I would like to say that + and × are the most natural two binary operations you can define. Why? If you want to define a binary operator on a set S or something similar, you have to pass through Δ(S)=S×S. Since a binary operator is a function from S×S to S.

The next proposition will claim that + and × actually come from the adjoint of Δ.

Proposition. +Δ×. Here, Δ:CC×C,XX×X is the diagonal functor. Coproduct and product are binary functors from C×C to C, if the coproduct and product exist in C.

Proof.

We need to prove that:

(1)HomC(X+Y,Z)HomC×C((X,Y),Δ(Z))

and

(2)HomC×C(Δ(X),(Y,Z))HomC(X,Y×Z)

Both follow directly from the universal property (draw the diagram then see).

This adjunction tells us that in the category of finite sets,

(3)ZX+YZX×ZY,YX×ZX(Y×Z)X

Since if C is a locally small category, then the target of HomC(,), HomC×C(,) are Set!

We also have the product-exponential adjunction (or tensor-hom adjunction if you view Fset as a tensor category):

(4)HomFset(X×Y,Z)HomFset(X,ZY)

Hence we have ZX×Y(ZY)X.

Obviously, × and + are associative and commutative by the property of product and coproduct.

The distributive law:

(5)(A+B)×YA×Y+B×Y

holds since ×Y is a left adjoint of HomFset(Y,) and hence preserves colimits.

The natural isomorphism IdFsetHomFset({},) tells us that Y1Y. {} being the final object tells us that 1X1.

The empty set 0 is the initial object, hence Y01. There is no function f:X. Hence 0X0.

Obviously, × and + are associative and commutative by the property of products and coproducts.

The distributive law:

(6)(A+B)×YA×Y+B×Y

holds since ×Y is a left adjoint of HomFset(Y,) and hence preserves colimits.

The natural isomorphism IdFsetHomFset({},) tells us that Y1Y. {} being the final object tells us that 1X1.

The empty set 0 is the initial object, hence Y01. There is no function f:X. Hence 0X0​.

0×X0 since HomFset(0×X,Y)HomFset(0,YX), and there exists a unique homomorphism from 0 to YX since 0 is the initial object. Hence Y,!f:0×XY. Hence 0×X is initial object as well. Hence 0×X0​.

Similarly, X×1X since HomFset(X×1,Y)HomFset(X,Y1)HomFset(X,Y). By Yoneda lemma, X×1X.

As you can see, the adherence of these arithmetic laws is not due to magic or coincidence. The operations +, ×, and even the exponential are defined by the adjoint functor. These arithmetic laws either stem from the isomorphism of two Hom functors or from the properties of the adjoint functor, i.e., their ability to preserve colimits. The specific values of YX are determined by the universal properties of initial and final objects. The cardinality gives us the natural number semantic meaning. But, as you can see, lots of the argument do not depend on the properties of Fset. We will generalize it to cartesian closed category dive in to topos theory.

 

No comments:

Post a Comment

Popular Posts