Langage et concepts catégoriques pour les mathématiques et l’informatique

De Wiki du LAMA (UMR 5127)
Aller à la navigation Aller à la recherche

This is a wiki for a course at the MSTII "École doctorale" of Grenoble.

Students are encouraged to participate by extending the wiki, adding proofs, corrections for exercices etc. To be able to modify the wiki, you need to register (upper right corner). Please use your real name...


News

Courses are on wednesdays morning, 9'00 to 12'00 in room F218 at the "UFR IMAG".

  • first course on the 25th of February: categories, functors, natural transformations.


Basic Concepts

Categories

Definition. A concrete category is given by:

  • a collection of sets with structure,
  • for any pair of such sets, a set of morphisms preserving the structure.

Morphisms should compose, and the identity should be a morphism.

This definition is a little informal, but here are some examples:

  • Grp: groups and group morphisms
  • Top: topological spaces and continuous functions
  • Ring: rings and rings morphisms
  • Vect: vectors spaces and linear maps
  • CPO: CPOs and continuous functions
  • ...
  • Set: sets and functions (ie sets with no structures, and arbitrary functions)


Generalizing the definition, we obtain the official definition of category:

Definition. A category is given by:

  • a collection of objects, (notation: )
  • for each pair of objects, a collection of morphisms from to , (notation )
  • for any object , a special morphism
  • for all objects , a composition ,

such that:

  • whenever it makes sense.


All concrete categories are categories, and here are some examples that are not obviously concrete:

  • Graph: graphs and graph morphisms
  • Rel: sets and relations
  • Set×Set: pairs of sets, pairs of functions
  • Set: opposite of Set
  • P, whenever (P,<) is a preorder (at most one morphism between objects)
  • M, whenever (M,e,×) is a monoid (a single object)

We sometimes write instead of .

In a given category , there are analogues of the notions of injective and surjective functions in Set. We will see that on concrete categories, they are actually slightly more general. The idea of injectivity gives rise to monomorphisms, and surjectivity gives rise to epimorphisms.

Definition.

A morphism is a monomorphism iff for all object and morphisms , we have implies .

The morphism is an epimorphism when it is a monomorphism in . Explicitly, when for all object and morphisms , we have implies .

 isomorphism


Exercice

  1. Prove that in Set, epic is equivalent to surjective and monic is equivalent to injective.
  2. Prove the same thing in Ab, the category of commutative groups. (One thing is not obvious.)
  3. Prove that is an epimorphism in the category of rings with multiplicative neutral. (Note that it is not surjective.)
  4. In Set, we saw that f is a monic iff , where 1 is any singleton set. Can you find a set C such that f is epic iff ?
  5. In Group, can you find an object playing a role similar to 1, ie a group G s.t. f is monic iff . (We saw that we cannot use the singleton group ({e},e,×) to do that...)



Functors

...blabla...

Exercice

  1. Do functors preserve monomorphisms? Do functors preserve epimorphisms?
  2. Let F be a functor and F(f) = g, if g is a mono (resp. epi), is f a mono (resp. epi)?

If not, try to find some simple and natural condition on the functor to make that true.


Exercice

Find an "interesting" functor from Set to Group


Exercice

If is a locally small category and A one of its objects, let . Show that this operation from objects of to sets can be extended into a contravariant functor to Set.


Natural Transformations

...blabla...

Exercice

If is the set of permutation of a (finite) set X; and the set of its linear orderings, we have where . Thus, there is a bijection (iso in Set) between P(X) and L(X).

  1. Show that we can extend P and L to functors from B to Set, where B is the category of finite sets and bijections,
  2. Show that there can be no natural transformation from P to L,
  3. Conclude that there is no natural isomorphism between P and L.


Course Complements, references

One of the best books about category theory is

  • Saunder MacLane, "Categories for the Working Mathematician".

It is a little "dry", in the sense that learning categories from it is not the easiest task on earth, but it still is one of the best references.

I haven't really read it carefully, but here is what Wikipedia has to say on category theory.