MENTAL
 Main Menu
 Comparisons
 MENTAL vs. Category Theory


MENTAL vs. Category Theory
 MENTAL vs.
CATEGORY THEORY

"Category theory is the most general and abstract branch of pure mathematics" (C.A.R. Hoare).

"The golden rule of modern mathematics is that life takes place within −and between− categories." (John Baez)

"Category theory can bring a better and more natural understanding of mathematical objects than set theory" (Tatsuya Hagino).



Category Theory

The central idea of category theory (CT) is that, while in a set there are vertical relationships of membership of each element in the set, in a category there are horizontal relationships between the elements of the set. These relationships form a structure. CT is a general mathematical theory that deals with structures, systems of structures and how structures of different domains are related.

CT was born in algebraic topology because of the need for a formalism to describe the transformation of one type of structure into another and to assign algebraic invariants to topological structures.

The formal notion of category was introduced in 1945 with the publication of the paper "General Theory of Natural Equivalences", by Samuel Eilenberg and Saunders Mac Lane. It dealt with classes of natural transformations in algebraic topology. They formalized the concept of homology (an intuitive geometric concept) and created a homological algebra or homology theory (of axiomatic type) [Eilenberg & Mac Lane, 1945].

Eilenberg and Mac Lane found that all structures shared a number of common features: From all this they deduced that there was no need to mention sets explicitly and that mathematics could be based solely on the concept of function and composition of functions, instead of the classical concepts of set and membership. In this way a more generic framework was created in which sets and structures would be particular cases of categories.


Formal definition of category

A category C (which is usually represented in bold) consists of two parts:
  1. A class or collection of objects. Objects are usually represented by capital letters.

  2. A binary relationships, called "morphisms" or "arrows", between the objects in the class. They are usually represented by lowercase letters.
It is usually common to represent the objects of a category as points and the morphisms as arrows connecting the points (hence the name "arrows" given to the morphisms).

For any pair of objects, A and B (the same or different), of the class, there exists a set of morphisms (correspondences) Mor(A, B) (it can be the empty set), such that if f belongs to Mor(A, B), then f establishes a correspondence between object A (origin or source) and object B (destination). It is represented as f:AB.

The composition of the morphisms f:AB and g: B→C is another morphism gf:AC. Therefore, if f belongs to Mor(A, B) and g belongs to Mor (B, C), then gf belongs to Mor(A, C).


The notion of composition of morphisms allows us to generalize fundamental concepts of mathematics, such as product, addition and exponentiation, as well as the basic mechanisms of logic.

A category C satisfies the following two axioms:
  1. Associative composition of morphisms: h○(gf) = (hg)○f

  2. Morphism identity. For every object X of category C, there exists an identity morphism that makes it correspond to itself, represented as idx(X) o bien 1x. Therefore, if we have the morphism f: AB, then 1Bf = f○1A = f.
An object A of a category C can be considered as a morphism identity 1A. Therefore the morphism f:AB can be represented as composition of the morphism A and the morphism f: fA = B.

The idea is to approach everything in terms of morphisms and their composition, not to mention objects. A category is thus characterized by its morphisms and not by its objects.


Domain and codomain of a morphism There can be morphisms with the same name, the same source object and different target objects. Sometimes the functional notation f(A)=B is used, but it is only applicable when there is only one arrow from A to B.



Types of morphisms
Examples of categories
  1. Set.
    Objects: All sets.
    Arrows: Functions between sets. The category Set is the paradigmatic example of category.

  2. Grp.
    Objects: All groups.
    Arrows: Homomorphisms between groups.

  3. Vec.
    Objects: All vector spaces.
    Arrows: Linear transformations.

  4. Top.
    Objects: All topological spaces.
    Arrows: Continuous functions.

  5. Pos. Sets with a partial order (poset, partial order set). A partial order relation on a set C is a relation such that for any pair of elements a and b of C it is satisfied that ab or ba (xy indicates "x precedes y").

    Objects: The elements of a set with a partial order.
    Arrows: The relationships ≤ between elements. The composition of xy and yz is xz.

    Examples: the real numbers and the relation "less than or equal to"; the set of subsets of a given set C, P(C), and the relation &rise; (contained or equal).

  6. The sets with an equality relation between their elements. Objects: The elements of the set.
    Arrows: The equality relationships (=) between the elements. All elements are equal to themselves and pairs of equal elements can additionally be defined. An arrow is an element X=Y.

Special objects of a category


Subobjects

The concept of subobject is a generalization of the notion of subset in set theory.

The formal definition of subobject, and the relations between subobjects, is grounded in morphisms, rather than referring to objects: In the category Sets, a subobject of an object (set) A is a subset of A. In the category Grp, a subobject is a subset.

This definition of subobject makes the collection of subobjects of an object A a partial order. This binary relationship between each object and its subobjects is an equivalence relationship. The equivalence classes are the subobjects of A. The dual concept of subobject is the quotient object.
Subobject classifier

A subobject classifier is special object Ω of a category. It is a generalization of the truth value set {0, 1} of Boolean logic. Intuitively, the subobjects of an object X correspond to the morphisms of X to Ω. For example, in the category Sets, if Ω={0,1}, each element of a subset S of X corresponds to 1 if it belongs to X and 0 if it does not belong. This is what is called the "characteristic function" of S in X.


Product of two objects of a category

The product of objects is a notion that attempts to generalize many operations of this type, such as Cartesian product of sets, direct product of groups, direct product of rings, product of topological spaces, and so on.

The product of two objects A1 and A2 of category C is another object P = A1×A2, so that two morphisms p1: PA1 y p2: PA2, for every object X, and for every pair of morphisms f1: XA1 y f2: XA2, there is only one morphism f:XP that satisfies.

That is, f is uniquely determined by f1 and f 2 and is represented as f = ⟨f1, f2⟩. Therefore, The morphisms f1 and f2 are the projections of f with respect to p1 and p2.

This is usually represented like this:

XA1×A2

XA1,   XA2

meaning: XA1×A2 naturally corresponds to morphism pairs XA1 y XA2.

The product of objects satisfies the commutative and associative properties.

The identity element is object 1: 1×A = A. It is shown that if A×A = 1, then A = 1.

In the case of the category Set, the product of objects (sets) corresponds to the Cartesian product.


Sum of two objects of a category

The sum −also called coproduct or dual product− of two objects A1 and A2 of category C is another object S = A1+A2, such that two morphisms j1: A1S y j2: A2S such that for every object X and for every pair of morphisms f1: A1X y f2: A2X there is only one morphism f:S→X that satisfies.

Note that the direction of the arrows is the opposite of that of the product. That is, f is uniquely determined by f1 and f2 and is represented as.

f={f1
f2

The morphisms j1 and j2 are the sum injections of A1 and A2.

This is usually represented like this:

A1+A2X

A1X,   A2X

meaning: A1+A2X naturally corresponds to morphism pairs A1X y A2X.

The sum of objects satisfies the commutative and associative properties.

The identity element is the object 0: 0+A = A. A negative object of A is another B, such that A+B = 0.

In the case of the category Set, the sum of objects corresponds to disjoint union (union of sets without common elements).


Exponentiation

If C is a category and if Y and Z are objects of C, YZ is another −also called "power object" (power object)− which is the set of all morphisms of Z in Y.

The laws of exponentiation are: The laws for exponentials are generic. Their application to arithmetic is only a special case.

Exponentiation is usually represented like this:

XYZ

Z×XY

meaning: the morphism XYZ naturally corresponds to the morphism Z×XY.

In the category Set, the exponential object YZ is the set of functions between Z and Y.


Category types
Diagrams

A diagram is a graphical representation of the arrow structure of a category, where objects are vertices. A path in a diagram is a finite succession or chain of arrows. The basic diagrams are the triangle and the square:



The triangle is said to commute if the following is true: gf = h.
The square is said to commute if: gf = kh.

In general, a diagram commutes if any two paths with the same origin and the same destination, and of length > 1, are equal, i.e., the arrow obtained by composition of the arrows of any connected path depends only on the ends of the path.


Limits and collimits of a category

A category C with limits or boundaries is one that has the following properties:

PropertyBoundaryLimits
Special objectInitial object: 0Terminal object: 1
OperationSum of objectsProduct of objects
Null operation0+A = AA = A
Quotient set C/X (for every object X)C/X has sumsC/X has products


Functor

A functor is a morphism between categories that preserves structure when passing from one category to another. The functors are usually represented with capital letters to differentiate it from the internal morphisms in a category. A functor associates to each object of a category an object of the other category and to each arrow of the first category an arrow of the second category. Formally, a functor F from category C to category D:
  1. Associates to each object X of category C a single object F(X) = Y of category D.

  2. Associates each arrow f of category C a single arrow F(f) = g of category D. It is said to be a 2-morphism (morphism of order 2). Normal morphisms of a category are 1-morphisms.

In addition, the following properties are fulfilled, which preserve the structure when passing from one category to another:
  1. Si f:XY, entonces F(f):F(X)→F(Y).

  2. For all morphisms of C, it is satisfied that F (gf) = F(g)○F(f). The functor preserves the composition.

  3. For every object X of C, it is satisfied that F(1x) = 1F(x). The functor preserves the identities.
The functor so defined is said to be covariant. A contravariant functor is a covariant functor between C' (the dual category) and D.

Example functor: in the category Set, the transformation P(f): P(X)→ P(Y), where P(X) is the set of subsets of X, is a functor.


Identity functor

The identity functor of a category C is a functor IC: CC, such that IC(X)=X for every object X of C.


Reverse functor

If F: CD is a functor , F is said to be an isomorphism if there exists another functor G: DC such that FG = IC y GF = ID. The functor G is called the inverse functor of F.


Natural transformation between functors

While functors are morphisms that allow one to move from one category to another, natural transformations provide an analogous relationship between functors: morphisms between categories of functors. A natural transformation T between two functors F and G, between the categories C and D, is the one that meets the conditions reflected in the diagram. That is;


Attached functors

There are several definitions of adjoint functors [Mac Lane, 1998], but the most widely used is the one using a natural isomorphism of sets of morphisms, which is as follows. Given two categories, C and D, and two functors F: CD y G: DC, F is attached to the left of G (and G is a functor attached to the right of F) if, for each object X of C and for each object Y of D, there are two unique morphisms, fC y fD tales que fC: F(X)→Y y fC:XG(Y). That is, there is a natural transformation between the objects X and Y, as illustrated in the figure.


In particular it is verified that GF=IC y FG=ID. And, therefore, GFG=G and F GF=F, siendo IC and ID the identity functors of the &1 categories; strong>C y D, respectivamente. That is, two adjoint functors are inverse functors when the morphisms that apply to X and to Y are 1X and 1Y, respectively.


"Small" categories

If the class of objects in a category is a set, the category is said to be "small".

Examples
  1. A set C determined partially ordered.

    Objects: The elements of the set C.
    Arrows: A partial order relation.

  2. A given graph.

    Objects: The vertices of the graph.
    Arrows: The pairs of connected vertices (the edges between vertices).

  3. Monoid. A category that has only one object.

    Objects: Only one (X).
    Arrows: You can have many of the same arrows (from X to X) but with different names.

Product of small categories

Product of two small categories, C and D, is another category:
Higher Order Categories

There are many types. The most prominent are as follows:

n-categorie

A n-category consists of: There are also the ∞-category (or ω-category) in which the process continues indefinitely.


Multicategory

It is a category in which the arrows are of type where the domain is a sequence of objects and the codomain is a single object. Such an arrow can be imagined as a box with k inputs and one output:


An example of a multicategory is vector spaces.

Multicategories can be generalized to other types of objects, such as tree of objects, array of objects, and so on.

An operand is a multicategory with a single object.

Multicategories are to operands as categories are to monoids.


Categories of categories

They are categories whose objects are categories and whose arrows are functors. For example, the category formed by:
Topos Theory

The topos theory −Greek, "place"; in poetry it means "common place"− is a branch of CT. The word "topos" is singular, the plural being "topoi" or "toposes".

The concept of topos was elaborated by Alexander Grothendieck, around 1960, as a generalization of the concept of sheaf of algebraic geometry. William Lawvere, together with Myles Tierney [Lawvere, 1963] generalized this concept by means of elementary (first order) axioms leading to its present notion: the elementary topos, which is a generalization of set theory, an elementary set category theory, a generalization of the notion of topological space, and a generalization of Boolean logic. In short, an autonomous universe for mathematical discourse.

For Lawvere, a topos can be considered as a category of variable sets over a general topological space. And the usual category of sets as composed of fixed (or constant) sets.

A topos (or elementary topos) is a category with:
  1. Limits and colimits.

  2. Products. For every pair of objects (X, Y) of the category, there exists the object product X×Y.

  3. Exponentials. For every pair of objects (X, Y) of the category, there is an object Y X (exponential) representing all morphisms from X to Y.

  4. A subobject classifier Ω. For any object X, the X→Ω morphisms are equivalent to the subobjects of X.
A topos is a closed Cartesian category with a subobject classifier.

An example of a topos is the category Set of finite sets and functions between them and where the subobject classifier is the set {V, F}.


Categorical Logic

Categorical logic is a branch of CT, which is based on a categorical approach to logic.

The origin of categorial logic was William Lawvere's paper "Functorial Semantics of Algebraic Theories" [1963]. Lawvere rethought logic (syntax and semantics) from the categorial point of view. He conceived an algebraic logical theory as a special kind of category, which is known as "functorial semantics", which formalizes semantics by means of functors. Syntax and semantics are represented by a category. An interpretation of a theory is realized by a functor between the two (the theory and its interpretation).

The notion of elementary topos provides a unified treatment of the syntax and semantics of higher-order predicate logic. Lawvere wanted to construct a higher-order predicate logic in terms of CT. The result (categorical logic) was an intuitionistic type of logic. Lawvere thought that since a topos possesses a classifier of subobjects , which can be truth values {V, F}, then the logic could be built on a topos. But Lawvere considered that the logic might not be Boolean, and constructed it by means of a Heyting algebra. Heyting algebras are a generalization of Boolean algebra that models intuitionistic propositional logic. The internal logic of an elementary topos is based on the Heyting algebra of subobjects of the terminal object 1, ordered by inclusion, which are equivalent to the morphisms of 1 to the subobject classifier Ω.

Algebraic systems in logic were not new. They had already been established with Boole and Tarski. It was an algebrist, Joachim Lambek, who first discovered analogies between CT and logic, namely between the axioms of the categories and deductive systems such as Gentzen's natural deduction. Lawvere introduced algebraic theories in place of equational (or substitution) theories. Existential and universal quantification are formalized as adjunct functors −left and right, respectively− of the logical operation of substitution. If A and B are two sets, the quantifiers are defined as morphisms between P(A) and P(B), the respective power sets.


Category Theory Valuation

A generalization process

CT is the culmination of a generalization process by substituting the constant for the variable: In CT even the semantics varies, depending on the framework under consideration. Indeed:
Arrow semantics

The concept of arrow or morphism is ambiguous. It is also said to be "multifaceted". It only states that it is an entity f that matches an object A an object B, but does not specify the concrete meaning of "match". The semantics is open. In fact there may be different interpretations of an arrow f:AB, depending on the frame under consideration. For example: This possibility of varying the interpretative framework is what makes CT general, but only in a formal or syntactic sense.


The importance of adjunct functors

The basic building blocks of CT are: Mac Lane and Eilenberg were saying that categories were defined to define functors, and functors were defined to define natural transformations. In fact, their original paper was not titled "General Theory of Categories" but "General Theory of Natural Equivalences".

The adjoint functors were not defined by Mac Lane and Eilenberg. They were defined later, by Daniel Kan in 1958, but their importance has grown over time. Currently, the concept of adjoint functors is one of the most important in CT: That is why it is considered mathematically elegant to define, whenever possible, mathematical notions in terms of adjoint functors.


The semantics of functor

A functor can have several interpretations, including the following:
Applications

Because of its abstract nature, CT is being applied to numerous areas:
MENTAL vs. Category Theory

The comparison between MENTAL and CT can be made according to the following aspects:
Conclusions

The fundamentals of CT are not yet clear. The theory is not conceptually consolidated and is currently still evolving. Even the very definition of category has changed over time, depending on the objectives or the needs MENTAL goes in the absolute opposite direction to CT (including topos theory), for it is based on supreme conceptual simplicity, not on supreme formal abstraction. The true categories are the universal semantic primitives. MENTAL is a universal paradigm, a theory of everything.



Addenda

Topology and topological spaces

Topology is the science that studies topological spaces. A topological space is a set X together with a collection τ of open subsets of X. This τ collection is called "a topology on X". Examples: 1) X={1, 2, 3}, τ={{1}, {2}, {1,2}} is a topological space; 2) X={1, 2, 3}, τ={{1}, {3}, {1,2}} is not a topological space; 3) The power set of a set (set of all subsets) is a topological space.

The concept of topological space is very general and has its application in virtually all branches of modern mathematics, since it allows the formal definition of many concepts such as continuity, connectivity and convergence.


Bourbaki and category theory

The Bourbaki group rejected CT for several reasons: 1) because they considered it a "competition" to their structuralist method based on set theory; 2) because there were problems in reconciling CT and structure theory; 3) because they did not want to lose all the work developed in structure theory; 4) because of philosophical problems; 5) because of the difficulty of giving a conjunctive foundation to CT.


Presheaf and sheaf

A presheaf is a functor between a topological space (considered as a category) and another target category (usually, the category Set). This concept captures the idea of the association of local information to a topological space.

A sheaf H on a topological space X maps each open set U of X to a set H(U). A sheaf is a tool for the global study of local entities (the open sets).

The sheaf theory was developed by Jean Leray in the 1940s and 1950s for the treatment of some fundamental problems in the theory of differential equations. This theory was quickly extended to algebraic geometry, differential geometry and topology. Today the sheaf has become a fundamental generic concept in mathematics.

Sheafs obey an intrinsic logic of their own. The categories of sheafs constitute alternative universes that enrich classical mathematics. The logic of sheafs coincides with Heyting's intuitionistic logic. The logic of classical sets is reduced to the special case of fixed (non-variable) sets. The logic of sheafs on topological spaces is a logic that is halfway between classical logic and intuitionistic logic, whose laws reflect its geometrical properties. Intuitionistic logic allows to generalize even more abstract structures than sheafs.


Bibliography