Blog Archive

Saturday, September 16, 2023

Counting with Natural Numbers: A Categorical Perspective

 

The idea is to use category theory to define +,×,YX,2X and prime number in N.

Just for fun. Do not use category theory to teach six-year-old kids to count.

Consider FinSet , then

.is set.

. if S is a Finite set, then S{} is a finite set.

. for any finite set S, S{}.

.ForN,MFinSet, if N{}M{}, then NM

.Let P(N) represent a proposition of N (N up to isomorphism),

if P() is true, P(N) is true implies P(N{}) is true, then for all finite set M, P(M) Is true.

+

Traditionally, we need to define

0+n=n.

(n++)+m=(n+m)++

But now, n+m could be defined as NM.

N={1,2,3,...,n},M={1,2,3,...,m},NM{1,2,3,...,n+m}.

It is associative, commutative, and has cancel law. (ABACBC)

We will use the notation A+B for the coproduct.

×

Traditionally, we need to define

0×m=0,(n++)×m=n×m+m

But now, we need to define N×M. Again, it is associative, commutative, and has the cancel law.

Easy to see N×M{1,2,3,...,nm}.

YX

Traditionally...

But now, we only need to define YX:=HomFinSet(X,Y).

Then you will see that 00=1,Y0=1N. Since is the initial object, for any finite set, there exists a unique arrow.

Easy to see YX{1,2,3,...,YX}.

Remark

In fact, what we do here is just consider a functor, map the gropoid to one point.

That is, F()=0,F({})=1)...

2X

Now you can define 2X:=HomFinSet(X,2). In this case, 2 refers to F2.

You may have seen something interesting.

Like in FinSet, is the initial object and {} is the final object and the duality between Product and Coproduct.

Then, we can consider the FinSetop. But an exciting result we know is SetopBool.

Bool is the category of complete and atomic Boolean Algebra.

The initial idea is f1 preserve ,,c, thus it prserve symmetry difference. Therefore, it is a Boolean Ring homomorphism.

But now, you can consider this functor HomFinSet(,2).

(f:XY)(f:HomFinSet(Y,2)HomFinSet(X,2)), then consider the functor HomFinSet(X,2)P(X),ff1.

It is equivalent, YiY is just a function about each yi exists or not.

Then f(Yi)(x)=(Yif)(x)=1xf1(Yi).

For every finite complete atomic Boolean Algebra B which atom set is A, you can always consider b{aA|ab}.

This is a Boolean isomorphism BP(A). This result is true in Set as well.

That is the functor from BoolSet. log2(B)=A .

How does this anti-isomorphism work for the duality of Product and Coproduct?

It is pretty easy! Consider the coproduct; it just 2X+Y=2X×2Y!

Or log2(Bn×Bm)=log2(Bn)+log2(Bm) .

By the way, f:2Y2X,log2(f)=f, since you can view f2Y×2X .

Then for f({y})=({y},{x1,x2,...,xn}),log2(f({y}))={y,x1,x2,x3,...,xn}.

If you consider the product, 2X×Y=(2X)Y. That is, HomFinSet(X×Y,2)HomFinSet(Y,2X)HomFinSet(X,2Y).

This does form a Boolean Algebra.

Since Boolean Algebra is equivalence to Boolean Ring and 2X is isomorphic to the product of F2.

You can check the universal property of the coproduct for 2X×Y.

iX:=2X2X×0Y,iY:=2Y20X×Y.

Then, for any Boolean ring Z,

the unique homomorphism from f:2X×YZ makes the diagram commute is f(x,y)=fX(x,0)+fY(0,y).

An interesting idea

In its contemporary form, a “geometric object” is usually defined as an “object” that “locally” “looks like” a “standard geometric object”. Depending on the geometry that one is interested in, there will be very different “standard geometric objects” as the basic building blocks. For the theory of (finite-dimensional) manifolds one chooses open subsets of finite-dimensional R- or C-vector spaces together with their “differentiable structure”. To make the notion of a geometric object precise, one proceeds in general as follows. The first one introduces the language of categories yielding the notions of objects and the precise meaning of “looks like” as being isomorphic in that category. Next one has to find a (maybe very large) category C that contains the “standard geometric objects” as a subcategory and in which it makes sense to use the word “locally”. Then, finally one can give the precise definition of a geometric object as an object of C that is locally isomorphic to an object in the subcategory of standard geometric objects.-------Manifolds, Sheaves, and Cohomology

If you let N={1,2,3,,...,n}... be the standard object, and let us consider Set.

Every set locally looks like a finite set {1,2,3...,n}, that is, for every set, there exists a subset isomorphic to N.

We may need AC here.

You might ask how to define the usual order of N here?

The functor F will map inclusion to !

Now, if you only consider the inclusion map to be the morphism, then

Presheaf

Consider HomFinSet(,2), it maps each finite set to the Boolean Ring (P(S),Δ,).

(i:XY)(i:(P(Y),Δ,)(P(X),Δ,)).

More naturally, consider the image of the functor F, that is (N,i).

NObN is N={1,2,3,...,n}(maybe you can consider Z/mZ).

It is just the Boolean Ring Presheaf over FinSet, or more generally, Set.

We could have a geometry view of Set theory.

Like, what is the kernel of i:(P(M),Δ,)(P(N),Δ,)?

The kernel is 2MN=2{n+1,...,m}2{1,2,3,...,mn} .

In general, every stone space has a Boolean Ring presheaf.

You can consider the open set category and give each open set subspace topology.

Then each open set is stone space as well.

We will define MN={1,2,3,...,mn} if i:NM.

Or, we can write it as 2MN=2M2N, and it is just the cokernel of i:(P(N),Δ,)(P(M),Δ,).

Since we can consider the isomorphism P(K)F2K, thus you can view it as a F2Vector Space.

Homology?

In fact, F2Algebra. Then 2M2N is just the codiimi.

If we consider

0i0NiNMiMK

Then

2KiM2MiN2Ni00.

Maybe we could have 0iNNiN×MN×MiMMi00 ? in the sense of vector space.

02KiK2MiN2N0, then Ker(iN)=2MN=2K,

If MNK, then iNiK=0 , it is closed, since Ker(iN)Im(iK)

If MN=K, then iNiK=0 , it is exact, since Ker(iN)=Im(iK).

However, I have not learned homology and cohomology. I will back to it after I learn it.

Prime Number

we will see a prime number if PA×B, then A{}, BP, or AP,B{}.

Fundamental Theorem of Arithmetic

Every Finite set can be written as MPi1m1×Pi2m2×...×Pijmj

You can define Euclidean division, ABmodM as well.

For example, {a,b,c}{N,Z,Q,R,C}mod{1,2}.

...

 

No comments:

Post a Comment

Popular Posts