<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="fr">
	<id>http://os-vps418.infomaniak.ch:1250/mediawiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=DDuval</id>
	<title>Wiki du LAMA (UMR 5127) - Contributions [fr]</title>
	<link rel="self" type="application/atom+xml" href="http://os-vps418.infomaniak.ch:1250/mediawiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=DDuval"/>
	<link rel="alternate" type="text/html" href="http://os-vps418.infomaniak.ch:1250/mediawiki/index.php/Sp%C3%A9cial:Contributions/DDuval"/>
	<updated>2026-05-21T09:43:48Z</updated>
	<subtitle>Contributions</subtitle>
	<generator>MediaWiki 1.39.4</generator>
	<entry>
		<id>http://os-vps418.infomaniak.ch:1250/mediawiki/index.php?title=Langage_et_concepts_cat%C3%A9goriques_pour_les_math%C3%A9matiques_et_l%E2%80%99informatique&amp;diff=4128</id>
		<title>Langage et concepts catégoriques pour les mathématiques et l’informatique</title>
		<link rel="alternate" type="text/html" href="http://os-vps418.infomaniak.ch:1250/mediawiki/index.php?title=Langage_et_concepts_cat%C3%A9goriques_pour_les_math%C3%A9matiques_et_l%E2%80%99informatique&amp;diff=4128"/>
		<updated>2009-04-08T12:31:33Z</updated>

		<summary type="html">&lt;p&gt;DDuval : &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This is a wiki for a course at the MSTII &amp;quot;École doctorale&amp;quot; of Grenoble.&lt;br /&gt;
&lt;br /&gt;
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...&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===News===&lt;br /&gt;
&lt;br /&gt;
Courses are on wednesdays morning, 9&#039;00 to 12&#039;00 in room F218 at the &amp;quot;UFR IMAG&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
* first course on the 25th of February: categories, functors, natural transformations.&lt;br /&gt;
* March 4. : monads, adjunctions.&lt;br /&gt;
* March 11. : limits and colimits.&lt;br /&gt;
&lt;br /&gt;
==Basic Concepts==&lt;br /&gt;
&lt;br /&gt;
===Categories===&lt;br /&gt;
&lt;br /&gt;
{{Definition |&lt;br /&gt;
A concrete category is given by:&lt;br /&gt;
* a collection of sets &#039;&#039;with structure&#039;&#039;,&lt;br /&gt;
* for any pair of such sets, a set of &#039;&#039;morphisms&#039;&#039; preserving the structure.&lt;br /&gt;
Morphisms should compose, and the identity should be a morphism.}}&lt;br /&gt;
&lt;br /&gt;
This definition is a little informal, but here are some examples:&lt;br /&gt;
* &#039;&#039;&#039;Grp&#039;&#039;&#039;: groups and group morphisms&lt;br /&gt;
* &#039;&#039;&#039;Top&#039;&#039;&#039;: topological spaces and continuous functions&lt;br /&gt;
* &#039;&#039;&#039;Ring&#039;&#039;&#039;: rings and rings morphisms&lt;br /&gt;
* &#039;&#039;&#039;Vect&#039;&#039;&#039;: vectors spaces and linear maps&lt;br /&gt;
* &#039;&#039;&#039;CPO&#039;&#039;&#039;: CPOs and continuous functions&lt;br /&gt;
* ...&lt;br /&gt;
* &#039;&#039;&#039;Set&#039;&#039;&#039;: sets and functions (&#039;&#039;&#039;ie&#039;&#039;&#039; sets with no structures, and arbitrary functions)&lt;br /&gt;
&lt;br /&gt;
Generalizing the definition, we obtain the official definition of category:&lt;br /&gt;
&lt;br /&gt;
{{Definition |&lt;br /&gt;
A category &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt; is given by:&lt;br /&gt;
* a collection &amp;lt;math&amp;gt;\mathcal{C}_o&amp;lt;/math&amp;gt; of &#039;&#039;objects&#039;&#039;,  (notation: &amp;lt;math&amp;gt;A,B,C,X,Y,...&amp;lt;/math&amp;gt;)&lt;br /&gt;
* for each pair &amp;lt;math&amp;gt;A,B&amp;lt;/math&amp;gt; of objects, a collection &amp;lt;math&amp;gt;\mathcal{C}[A,B]&amp;lt;/math&amp;gt; of &#039;&#039;morphisms from &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&#039;&#039;,  (notation &amp;lt;math&amp;gt; f : A\to B&amp;lt;/math&amp;gt;)&lt;br /&gt;
* for any object &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;, a special morphism &amp;lt;math&amp;gt;i_A : A\to A&amp;lt;/math&amp;gt;&lt;br /&gt;
* for all objects &amp;lt;math&amp;gt;A,B,C&amp;lt;/math&amp;gt;, a composition &amp;lt;math&amp;gt;\circ : \mathcal{C}[B,C] \times \mathcal{C}[A,B] \to \mathcal{C}[A,C]&amp;lt;/math&amp;gt;,&lt;br /&gt;
such that:&lt;br /&gt;
* &amp;lt;math&amp;gt;f \in \mathcal{C}[A,B] \implies f\circ i_A = i_B\circ f = f&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;f\circ(g\circ h) = (f\circ g)\circ h&amp;lt;/math&amp;gt; whenever it makes sense.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
All concrete categories are categories, and here are some examples that are not obviously concrete:&lt;br /&gt;
* &#039;&#039;&#039;Graph&#039;&#039;&#039;: graphs and graph morphisms&lt;br /&gt;
* &#039;&#039;&#039;Rel&#039;&#039;&#039;: sets and relations&lt;br /&gt;
* &#039;&#039;&#039;Set×Set&#039;&#039;&#039;: pairs of sets, pairs of functions&lt;br /&gt;
* &#039;&#039;&#039;Set&amp;lt;math&amp;gt;^{op}&amp;lt;/math&amp;gt;&#039;&#039;&#039;: opposite of &#039;&#039;&#039;Set&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;P&#039;&#039;&#039;, whenever (&#039;&#039;&#039;P&#039;&#039;&#039;,&amp;lt;) is a preorder (at most one morphism between objects)&lt;br /&gt;
* &#039;&#039;&#039;M&#039;&#039;&#039;, whenever (&#039;&#039;&#039;M&#039;&#039;&#039;,e,×) is a monoid (a single object)&lt;br /&gt;
&lt;br /&gt;
We sometimes write &amp;lt;math&amp;gt;gf&amp;lt;/math&amp;gt; instead of &amp;lt;math&amp;gt;g \circ f&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
In a given category &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt;, there are analogues of the notions of injective and surjective functions in &#039;&#039;&#039;Set&#039;&#039;&#039;. We will see that on concrete categories, they are actually slightly more general. The idea of injectivity gives rise to &#039;&#039;monomorphisms&#039;&#039;, and surjectivity gives rise to &#039;&#039;epimorphisms&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
{{Definition |&lt;br /&gt;
&lt;br /&gt;
A morphism &amp;lt;math&amp;gt;f \colon A \to B&amp;lt;/math&amp;gt; is a &#039;&#039;monomorphism&#039;&#039; iff for all object &amp;lt;math&amp;gt;C&amp;lt;/math&amp;gt; and morphisms &amp;lt;math&amp;gt;g,h \colon C \to A&amp;lt;/math&amp;gt;, we have &amp;lt;math&amp;gt;fg = fh&amp;lt;/math&amp;gt; implies &amp;lt;math&amp;gt;g = h&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The morphism &amp;lt;math&amp;gt;f&amp;lt;/math&amp;gt; is an &#039;&#039;epimorphism&#039;&#039; when it is a monomorphism in &amp;lt;math&amp;gt;\mathcal{C}^{op}&amp;lt;/math&amp;gt;. Explicitly, when for all object &amp;lt;math&amp;gt;C&amp;lt;/math&amp;gt; and morphisms &amp;lt;math&amp;gt;g,h \colon B \to C&amp;lt;/math&amp;gt;, we have &amp;lt;math&amp;gt;gf = hf&amp;lt;/math&amp;gt; implies &amp;lt;math&amp;gt;g = h&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
  isomorphism&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Exercice&amp;lt;/u&amp;gt;&lt;br /&gt;
# Prove that in &#039;&#039;&#039;Set&#039;&#039;&#039;, epic is equivalent to surjective and monic is equivalent to injective.&lt;br /&gt;
# Prove the same thing in &#039;&#039;&#039;Ab&#039;&#039;&#039;, the category of commutative groups. (One thing is not obvious.)&lt;br /&gt;
# Prove the same thing in &#039;&#039;&#039;Grp&#039;&#039;&#039;, the category of (non necessarily commutative) groups. (One thing is not obvious at all.)&lt;br /&gt;
# Prove that &amp;lt;math&amp;gt;i : \mathbf{Z} \to \mathbf{Q}&amp;lt;/math&amp;gt; is an epimorphism in the category of rings with multiplicative neutral. (Note that it is not surjective.)&lt;br /&gt;
# In &#039;&#039;&#039;Set&#039;&#039;&#039;, we saw that &#039;&#039;f&#039;&#039; is a monic iff &amp;lt;math&amp;gt;\forall x,y : 1 \to A, f\circ x = f\circ y \implies x=y&amp;lt;/math&amp;gt;, where 1 is any singleton set. Can you find a set &#039;&#039;C&#039;&#039; such that &#039;&#039;f&#039;&#039; is epic iff &amp;lt;math&amp;gt;\forall p,q : B \to C, p\circ f = j\circ f \implies p=q&amp;lt;/math&amp;gt;?&lt;br /&gt;
# In &#039;&#039;&#039;Group&#039;&#039;&#039;, can you find an object playing a role similar to 1, &#039;&#039;ie&#039;&#039; a group &#039;&#039;G&#039;&#039; s.t. &#039;&#039;f&#039;&#039; is monic iff &amp;lt;math&amp;gt;\forall x,y : G \to A, f\circ x = f\circ y \implies x=y&amp;lt;/math&amp;gt;. (We saw that we cannot use the singleton group ({e},e,×) to do that...)&lt;br /&gt;
&lt;br /&gt;
===Functors===&lt;br /&gt;
&lt;br /&gt;
Informally, a functor is a map between two categories which somehow preserves the structure of categories (namely, composition).&lt;br /&gt;
&lt;br /&gt;
{{Definition |&lt;br /&gt;
A functor &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; from a category &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt; to a category &amp;lt;math&amp;gt;\mathcal{D}&amp;lt;/math&amp;gt;, noted &amp;lt;math&amp;gt;F \colon \mathcal{C} \to \mathcal{D}&amp;lt;/math&amp;gt;, is given by:&lt;br /&gt;
* a map which sends every object &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; of &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt; to an object &amp;lt;math&amp;gt;FA&amp;lt;/math&amp;gt; in &amp;lt;math&amp;gt;\mathcal{D}&amp;lt;/math&amp;gt;, and&lt;br /&gt;
* a map which sends every morphism &amp;lt;math&amp;gt;f \colon A \to B&amp;lt;/math&amp;gt; in &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt;, to a morphism &amp;lt;math&amp;gt;Ff&amp;lt;/math&amp;gt; in &amp;lt;math&amp;gt;\mathcal{D}[FA, FB]&amp;lt;/math&amp;gt;,&lt;br /&gt;
such that:&lt;br /&gt;
* &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; preserves identities, i.e., &amp;lt;math&amp;gt;F(id_A) = id_{FA}&amp;lt;/math&amp;gt;, and&lt;br /&gt;
* &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; preserves composition: &amp;lt;math&amp;gt;F(f \circ g) = F(f) \circ F(g)&amp;lt;/math&amp;gt;.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Exercice&amp;lt;/u&amp;gt;&lt;br /&gt;
# Take a functor &amp;lt;math&amp;gt;F \colon \mathcal{C} \to \mathcal{D}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;f, g, h&amp;lt;/math&amp;gt; three morphisms in &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt;, and &amp;lt;math&amp;gt;f&#039; = Ff&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;g&#039; = Fg&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;h&#039; = Fh&amp;lt;/math&amp;gt;. When &amp;lt;math&amp;gt;h&#039; = f&#039; \circ g&#039;&amp;lt;/math&amp;gt;, can we say something interesting about &amp;lt;math&amp;gt;f&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;g&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;h&amp;lt;/math&amp;gt;?&lt;br /&gt;
# Do functors preserve monomorphisms? Do functors preserve epimorphisms?&lt;br /&gt;
# Let &#039;&#039;F&#039;&#039; be a functor and &#039;&#039;F(f) = g&#039;&#039;, if &#039;&#039;g&#039;&#039; is a mono (resp. epi), is &#039;&#039;f&#039;&#039; a mono (resp. epi)?&lt;br /&gt;
If not, try to find some simple and natural condition on the functor to make that true.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Answer&amp;lt;/u&amp;gt;&lt;br /&gt;
# No, since &amp;lt;math&amp;gt;f&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;g&amp;lt;/math&amp;gt; may not even compose! This is the case when &amp;lt;math&amp;gt;f&amp;lt;/math&amp;gt; has type &amp;lt;math&amp;gt;A \to B&amp;lt;/math&amp;gt;, and &amp;lt;math&amp;gt;g \colon C \to D&amp;lt;/math&amp;gt;, with &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; collapsing &amp;lt;math&amp;gt;D&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; (i.e., &amp;lt;math&amp;gt;FA = FD&amp;lt;/math&amp;gt;).&lt;br /&gt;
# Functors in general do not preserve mono- nor epimorphisms. We build a counter-example for monomorphisms. Let &amp;lt;math&amp;gt;\mathbf{2}&amp;lt;/math&amp;gt; be the category with two objects &amp;lt;math&amp;gt;\star&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\bullet&amp;lt;/math&amp;gt;, and exactly one morphism &amp;lt;math&amp;gt;m \colon \star \to \bullet&amp;lt;/math&amp;gt;. This is a preorder, so &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; is monic. Now take &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt; with two objects &amp;lt;math&amp;gt;\star&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\bullet&amp;lt;/math&amp;gt;, exactly one morphism &amp;lt;math&amp;gt;m \colon \star \to \bullet&amp;lt;/math&amp;gt;, and one extra morphism &amp;lt;math&amp;gt;n \colon \star \to \star&amp;lt;/math&amp;gt;, different from the identity. Because of &amp;lt;math&amp;gt;n \neq id_\star&amp;lt;/math&amp;gt;, yet &amp;lt;math&amp;gt;m \circ n = m \circ id&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; is not monic in &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt;. The functor which sends &amp;lt;math&amp;gt;\star&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;\star&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;\bullet&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;\bullet&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; in &amp;lt;math&amp;gt;\mathbf{2}&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; in &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt;, does not preserve monomorphisms.&lt;br /&gt;
# In general, the answer is (again) no. For monos, take for example the functor &amp;lt;math&amp;gt;\mathcal{C} \to \mathbf{2}&amp;lt;/math&amp;gt; which sends &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; to the identity. Yet, when &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; is &#039;&#039;faithful&#039;&#039;, then &amp;lt;math&amp;gt;f&amp;lt;/math&amp;gt; is monic (or epic).&lt;br /&gt;
&lt;br /&gt;
{{Definition |&lt;br /&gt;
A functor &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; is faithful when, for any two morphisms &amp;lt;math&amp;gt;f, g&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;Ff = Fg&amp;lt;/math&amp;gt; implies &amp;lt;math&amp;gt;f=g&amp;lt;/math&amp;gt; (&amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; is injective on morphisms).&lt;br /&gt;
}}&lt;br /&gt;
{{Definition |&lt;br /&gt;
A functor &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; is full when, for any two objects &amp;lt;math&amp;gt;A, B&amp;lt;/math&amp;gt;, if &amp;lt;math&amp;gt;g&amp;lt;/math&amp;gt; is a morphism &amp;lt;math&amp;gt;FA \to FB&amp;lt;/math&amp;gt;, then there exists &amp;lt;math&amp;gt;f \colon A \to B&amp;lt;/math&amp;gt; with &amp;lt;math&amp;gt;Ff = g&amp;lt;/math&amp;gt; (&amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; is surjective on morphisms).&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Exercice&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Find an &amp;quot;interesting&amp;quot; functor from &#039;&#039;&#039;Set&#039;&#039;&#039; to &#039;&#039;&#039;Group&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Answer&amp;lt;/u&amp;gt;&lt;br /&gt;
Let &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; be the functor which sends:&lt;br /&gt;
* every set &amp;lt;math&amp;gt;X&amp;lt;/math&amp;gt; to the free group generated by &amp;lt;math&amp;gt;X&amp;lt;/math&amp;gt;, and&lt;br /&gt;
* every function &amp;lt;math&amp;gt;f \colon X \to Y&amp;lt;/math&amp;gt; to a group morphism defined by: &amp;lt;math&amp;gt;Ff(x_1^{\alpha_1}\times\dots\times x_k^{\alpha_k})=f(x_1)^{\alpha_1} \times \dots \times f(x_k)^{\alpha_k}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Exercice&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt; is a locally small category and &#039;&#039;A&#039;&#039; one of its objects, let &amp;lt;math&amp;gt;Y_A : X \mapsto \mathcal{C}[X,A]&amp;lt;/math&amp;gt;. Show that this operation from objects of &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt; to sets can be extended into a contravariant functor &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt; to &#039;&#039;&#039;Set&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Answer&amp;lt;/u&amp;gt;&lt;br /&gt;
Let &amp;lt;math&amp;gt;f\colon X \to Y&amp;lt;/math&amp;gt; be a morphism in &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt;, then &amp;lt;math&amp;gt;Y_A(f)&amp;lt;/math&amp;gt; is expected to be a function from the set &amp;lt;math&amp;gt;\mathcal{C}[Y, A]&amp;lt;/math&amp;gt; to the set &amp;lt;math&amp;gt;\mathcal{C}[X, A]&amp;lt;/math&amp;gt;. We can take, for any morphism &amp;lt;math&amp;gt;m \in \mathcal{C}[Y,A]&amp;lt;/math&amp;gt;: &amp;lt;math&amp;gt;Y_A(f)(m) = m \circ f&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
This extends &amp;lt;math&amp;gt;Y_A&amp;lt;/math&amp;gt; to a contravariant functor, since &amp;lt;math&amp;gt;Y_A(id_X) = id_{\mathcal{C}[X, A]}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;Y_A(f \circ g)(m) = m \circ (f \circ g) = (m \circ f) \circ g = (Y_A(g) \circ Y_A(f))(m)&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===Natural Transformations===&lt;br /&gt;
&lt;br /&gt;
{{Definition |&lt;br /&gt;
Let &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;G&amp;lt;/math&amp;gt; be two functors &amp;lt;math&amp;gt;\mathcal{C} \to \mathcal{D}&amp;lt;/math&amp;gt;. A natural transformation &amp;lt;math&amp;gt;\alpha&amp;lt;/math&amp;gt; from &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;G&amp;lt;/math&amp;gt; is given by:&lt;br /&gt;
* a morphism &amp;lt;math&amp;gt;\alpha_A \colon FA \to GA&amp;lt;/math&amp;gt; in &amp;lt;math&amp;gt;\mathcal{D}&amp;lt;/math&amp;gt; for every object &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; in &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt;,&lt;br /&gt;
* such that, for any morphism &amp;lt;math&amp;gt;f \colon A \to B&amp;lt;/math&amp;gt;, we have &amp;lt;math&amp;gt;Gf \circ \alpha_A = \alpha_B \circ Ff&amp;lt;/math&amp;gt;.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Exercice&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If &amp;lt;math&amp;gt;P(X)&amp;lt;/math&amp;gt; is the set of permutation of a (finite) set &#039;&#039;X&#039;&#039;; and &amp;lt;math&amp;gt;L(X)&amp;lt;/math&amp;gt; the set of its linear orderings, we have &amp;lt;math&amp;gt;\#(L(X)) = \#(L(X)) = n!&amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;n = \#(X)&amp;lt;/math&amp;gt;. Thus, there is a bijection (iso in &#039;&#039;&#039;Set&#039;&#039;&#039;) between &#039;&#039;P(X)&#039;&#039; and &#039;&#039;L(X)&#039;&#039;.&lt;br /&gt;
# Show that we can extend &#039;&#039;P&#039;&#039; and &#039;&#039;L&#039;&#039; to functors from &#039;&#039;&#039;B&#039;&#039;&#039; to &#039;&#039;&#039;Set&#039;&#039;&#039;, where &#039;&#039;&#039;B&#039;&#039;&#039; is the category of finite sets and bijections,&lt;br /&gt;
# Show that there can be no natural transformation from &#039;&#039;P&#039;&#039; to &#039;&#039;L&#039;&#039;,&lt;br /&gt;
# Conclude that there is no natural isomorphism between &#039;&#039;P&#039;&#039; and &#039;&#039;L&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Adjunctions and Monads==&lt;br /&gt;
&lt;br /&gt;
===2-categories and their diagrammatic calculus===&lt;br /&gt;
&lt;br /&gt;
This part is just to make the definitions of monads and adjunctions&lt;br /&gt;
easier: we do not give the full details, and only intend to provide a&lt;br /&gt;
few intuitions.&lt;br /&gt;
&lt;br /&gt;
{{Definition | A &#039;&#039;2-category&#039;&#039; is like a category: it has objects and&lt;br /&gt;
morphisms between them. But it also has &#039;&#039;2-cells&#039;&#039;, which are&lt;br /&gt;
&#039;morphisms between morphisms&#039;: &lt;br /&gt;
[[Image:2-cat-1.png|center|A 2-cell]] &lt;br /&gt;
These&lt;br /&gt;
2-cells must compose vertically and horizontally, satisfying the&lt;br /&gt;
&#039;&#039;interchange law&#039;&#039;:&lt;br /&gt;
[[Image:2-cat-inter.png|center|Interchange law]]&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
There is a more comfortable representation than the &#039;2-diagrams&#039; above.&lt;br /&gt;
In pictures:&lt;br /&gt;
[[Image:Poincare.png|center|String diagram example]]&lt;br /&gt;
In words, the idea is to consider:&lt;br /&gt;
* objects as background colors, &lt;br /&gt;
* morphisms as vertical frontiers between them, and&lt;br /&gt;
* 2-cells as labelled dots.&lt;br /&gt;
&lt;br /&gt;
Then, both compositions correspond to horizontal and vertical&lt;br /&gt;
juxtaposition, respectively.  For example, the interchange law&lt;br /&gt;
corresponds to the two ways of parsing:&lt;br /&gt;
[[Image:interchange.png|center|Interchange law in a string diagram]]&lt;br /&gt;
&lt;br /&gt;
There are technical subtleties hidden behind this nice diagrammatic&lt;br /&gt;
calculus, but we will stick to bare intuitions for now.&lt;br /&gt;
&lt;br /&gt;
===Cat as a 2-category===&lt;br /&gt;
&lt;br /&gt;
The prime example of a 2-category is of course Cat, the category of (small) categories. It has:&lt;br /&gt;
* objects: small categories,&lt;br /&gt;
* morphisms: functors,&lt;br /&gt;
* 2-cells: natural transformations.&lt;br /&gt;
&lt;br /&gt;
Vertical composition of 2-cells is the obvious notion of composition&lt;br /&gt;
of natural transformations.&lt;br /&gt;
&lt;br /&gt;
Define the horizontal composition:&lt;br /&gt;
[[Image:vert-comp.png|center|Vertical composition]] &lt;br /&gt;
by &amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
(\beta \bullet \alpha)_a = f&#039; (f (a)) \xrightarrow{f&#039; (\alpha_a)} f&#039; (g (a)) &lt;br /&gt;
\xrightarrow{\beta_{g (a)}} g&#039; (g (a)) &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
or equivalently&lt;br /&gt;
 &amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
(\beta \bullet \alpha)_a = f&#039; (f (a)) \xrightarrow{\beta_{f (a)}} g&#039; (f (a)) &lt;br /&gt;
\xrightarrow{g&#039; (\alpha_a)} g&#039; (g (a)).&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
The two coincide by naturality. Observe that what we have actually done is:&lt;br /&gt;
* define &#039;&#039;whiskering&#039;&#039;, i.e., composing with an identity, both to the left and to the right, and &lt;br /&gt;
* observe that the two ways of defining horizontal composition from whiskering coincide.&lt;br /&gt;
This yields an equivalent definition of 2-categories.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Monads==&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;Free&#039;&#039; constructions in algebra: monoid, group, etc&lt;br /&gt;
&lt;br /&gt;
*Definition of a monad&lt;br /&gt;
*Eilenberg-Moore&#039;s category of algebras&lt;br /&gt;
*Kleisli&#039;s category of free algebras&lt;br /&gt;
*The category of resolutions of a monad&lt;br /&gt;
===Adjunctions===&lt;br /&gt;
&lt;br /&gt;
*Definition with &amp;lt;math&amp;gt;\eta&amp;lt;/math&amp;gt;&lt;br /&gt;
*Definition with hom-sets&lt;br /&gt;
*Definition with &amp;lt;math&amp;gt;\eta&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\epsilon&amp;lt;/math&amp;gt;&lt;br /&gt;
*Adjunctions in a 2-category&lt;br /&gt;
&lt;br /&gt;
===Other basic examples===&lt;br /&gt;
&lt;br /&gt;
*Discussion: any syntax defines the free something&lt;br /&gt;
* The issue of variable binding.&lt;br /&gt;
*Adjunction between partial orders = Galois connection&lt;br /&gt;
*&amp;lt;math&amp;gt;\times&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\Rightarrow&amp;lt;/math&amp;gt; in logic&lt;br /&gt;
*Sets/graphs and categories&lt;br /&gt;
&lt;br /&gt;
===Properties===&lt;br /&gt;
&lt;br /&gt;
*Composition&lt;br /&gt;
*Preservation of limits/colimits&lt;br /&gt;
*Freyd&#039;s existence theorem, the locally presentable case&lt;br /&gt;
*Beck&#039;s monadicity theorem&lt;br /&gt;
==Limits and Colimits==&lt;br /&gt;
&lt;br /&gt;
===Limits===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example.&#039;&#039;&#039; Cartesian product.&lt;br /&gt;
&lt;br /&gt;
{{ Definition | Binary product.}}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Theorem.&#039;&#039;&#039; &#039;&#039;The product of X and Y, if it exists, is unique up to isomorphism.&#039;&#039; (with proof)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Examples.&#039;&#039;&#039; Set, Grp, Ab, Part.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Examples.&#039;&#039;&#039; Preorder, Subset(E), Prop with entailment.&lt;br /&gt;
&lt;br /&gt;
{{ Definition | Diagram. Cone. Limit.}}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example.&#039;&#039;&#039; Limits in Set.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Examples.&#039;&#039;&#039; Shape of diagrams for products, pullbacks, equalizers.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example.&#039;&#039;&#039; Monos as pullbacks.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Theorem.&#039;&#039;&#039; &#039;&#039;The limit of a diagram d, if it exists, is unique up to isomorphism.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Theorem.&#039;&#039;&#039; &#039;&#039;A category with &amp;quot;all&amp;quot; products and equalizers has &amp;quot;all&amp;quot; limits.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Theorem.&#039;&#039;&#039; &#039;&#039;A category with a terminal object and all binary products and all equalizers has all finite limits.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
===Colimits===&lt;br /&gt;
&lt;br /&gt;
{{ Definition | Cocone. Colimit.}}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Examples.&#039;&#039;&#039; Sums in Set, Grp, Ab.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Examples.&#039;&#039;&#039; Shape of diagrams for sums, initial objects, pushouts, coequalizers.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example.&#039;&#039;&#039; Epis as pushouts.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Theorem.&#039;&#039;&#039; &#039;&#039;The colimit of a diagram d, if it exists, is unique up to isomorphism.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example.&#039;&#039;&#039; The most general unifier (of two terms) is a coequalizer in the &amp;quot;category of substitutions&amp;quot;.&lt;br /&gt;
 &lt;br /&gt;
&#039;&#039;&#039;Theorem.&#039;&#039;&#039; &#039;&#039;A category with &amp;quot;all&amp;quot; sums and coequalizers has &amp;quot;all&amp;quot; colimits.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Theorem.&#039;&#039;&#039; &#039;&#039;A category with an initial object and all binary sums and all coequalizers has all finite colimits.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
===Limits, colimits and adjunctions===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Theorem.&#039;&#039;&#039; &#039;&#039;A right adjoint preserves limits. A left adjoint preserves colimits.&#039;&#039; (with proof of existence)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example.&#039;&#039;&#039; The adjunction between Set and Grp&lt;br /&gt;
&lt;br /&gt;
===Sums and products===&lt;br /&gt;
&lt;br /&gt;
A category is &#039;&#039;distributive&#039;&#039; if the canonical map from AxB+AxC to Ax(B+C) is an isomorphism.&lt;br /&gt;
&lt;br /&gt;
A category is &#039;&#039;extensive&#039;&#039; if the canonical functor + from C/A x C/B to C/(A+B) is an equivalence. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example.&#039;&#039;&#039; &amp;quot;if..then..else..&amp;quot; from B=1+1 and extensivity.&lt;br /&gt;
 &lt;br /&gt;
==Monoidal categories==&lt;br /&gt;
&lt;br /&gt;
===Definition and graphical calculus===&lt;br /&gt;
&lt;br /&gt;
* Definition&lt;br /&gt;
* Graphical calculus&lt;br /&gt;
* The 2-category of monoidal categories, strong monoidal functors, and monoidal transformations&lt;br /&gt;
* Coherence and its many definitions&lt;br /&gt;
&lt;br /&gt;
===From planar to symmetric monoidal categories===&lt;br /&gt;
&lt;br /&gt;
A teaser for the whole enchilada of variations on monoidal structure.&lt;br /&gt;
&lt;br /&gt;
* Braided &lt;br /&gt;
* Balanced&lt;br /&gt;
* Symmetric&lt;br /&gt;
* Compact closed&lt;br /&gt;
* Traced monoidal categories and the Int/GoI construction&lt;br /&gt;
&lt;br /&gt;
===Monoidal categories for linear logic===&lt;br /&gt;
&lt;br /&gt;
* Linear logic &lt;br /&gt;
** Sequent calculus&lt;br /&gt;
** Intuitionnistic variant&lt;br /&gt;
** Proof nets&lt;br /&gt;
&lt;br /&gt;
* Symmetric monoidal closed categories&lt;br /&gt;
&lt;br /&gt;
* Star-autonomous categories&lt;br /&gt;
** Symmetric monoidal closed category with a dualising object&lt;br /&gt;
** Symmetric monoidal category &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt; with:&lt;br /&gt;
*** a full and faithful contravariant endofunctor &amp;lt;math&amp;gt;\mathcal{C}^{op} \xrightarrow{(-)^*} \mathcal{C} &amp;lt;/math&amp;gt;, and&lt;br /&gt;
*** an isomorphism &amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\mathcal{C} (A \otimes B, C^*) \cong \mathcal{C} (A, (B \otimes C)^*).&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Trimble-Hughes&#039; free star-autonomous category&lt;br /&gt;
** Split star-autonomy&lt;br /&gt;
** The free star-autonomous category as a category of proof nets&lt;br /&gt;
** Trimble rewiring&lt;br /&gt;
&lt;br /&gt;
===Perspectives===&lt;br /&gt;
&lt;br /&gt;
* Premonoidal categories and side effects&lt;br /&gt;
* Products and coproducts&lt;br /&gt;
* Monoidal 2-categories, monoidal double categories.&lt;br /&gt;
&lt;br /&gt;
==Presheaves and sheaves==&lt;br /&gt;
&lt;br /&gt;
===Yoneda===&lt;br /&gt;
&lt;br /&gt;
*A few presheaf categories &amp;lt;math&amp;gt;\hat{\mathcal{C}} := \mathcal{C}^{op} \to \mathbf{Set}&amp;lt;/math&amp;gt;:&lt;br /&gt;
**&amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt; is a graph (no composition): graphs.&lt;br /&gt;
**&amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt; is a preorder: Kripke-style modal logic.&lt;br /&gt;
**&amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt; is an order: presheaves on a topological space.&lt;br /&gt;
**&amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt; is free: presheaves on an algebraic theory.&lt;br /&gt;
&lt;br /&gt;
*Representable presheaves &amp;lt;math&amp;gt;yA(B) := \mathcal{C}(B, A)&amp;lt;/math&amp;gt;, and their meaning in each of the examples.&lt;br /&gt;
&lt;br /&gt;
*The Yoneda lemma: for any object &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; of &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt;, and presheaf &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt;, there is an isomorphism&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;F (A) \cong \hat{\mathcal{C}} (yA, F),&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
natural in &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
*A consequence: &amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt; is a &#039;full embedding&#039;, or how &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt; is a full subcategory of &amp;lt;math&amp;gt;\hat{\mathcal{C}}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
*Presheaves as a colimit completion&lt;br /&gt;
**The Grothendieck construction, or the category of elements of a presehaf.&lt;br /&gt;
**Example: graphs.&lt;br /&gt;
**Every presheaf is a colimit of representables.&lt;br /&gt;
**Example: graphs.&lt;br /&gt;
**The universal property of &amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===Topos structure===&lt;br /&gt;
&lt;br /&gt;
*Limits and colimits in functor categories.&lt;br /&gt;
*Exponentials. If it exists, the exponential &amp;lt;math&amp;gt;G^F&amp;lt;/math&amp;gt; must satisfy, for any object &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; of &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt;:&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\begin{array}{lcl}&lt;br /&gt;
G^F(A) &amp;amp; \cong &amp;amp; \hat{\mathcal{C}} (yA, G^F) \\&lt;br /&gt;
&amp;amp; \cong &amp;amp; \hat{\mathcal{C}} (yA \times F, G).&lt;br /&gt;
\end{array}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
Taking this as a definition indeed yields an exponential.&lt;br /&gt;
*Computation of the exponential in &#039;&#039;&#039;Gph&#039;&#039;&#039;.&lt;br /&gt;
*The very special presheaf &amp;lt;math&amp;gt;\Omega&amp;lt;/math&amp;gt;.&lt;br /&gt;
*The isomorphism &amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\mathit{Sub}(F) \cong \hat{\mathcal{C}} (F, \Omega). &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
*The official definition of a subobject classifier and a topos.&lt;br /&gt;
&lt;br /&gt;
===Sheaves===&lt;br /&gt;
&lt;br /&gt;
*Sheaves on a space, a few examples and counterexamples:&lt;br /&gt;
**functions, &lt;br /&gt;
**continuous functions,&lt;br /&gt;
**bounded functions.&lt;br /&gt;
*The &amp;lt;math&amp;gt;(\cdot)^+&amp;lt;/math&amp;gt; construction and its convergence in two steps. The counterexample of constant presheaves.&lt;br /&gt;
*Sheaves on a site. Example of sheaves for the dense topology on an algebraic theory and its coincidence with the double negation topology.&lt;br /&gt;
&lt;br /&gt;
==Sketches (esquisses)==&lt;br /&gt;
&lt;br /&gt;
===Linear sketches===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;font-style: italic;&amp;quot;&amp;gt;&amp;quot;A linear sketch is a generator for&lt;br /&gt;
a category&amp;quot;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;font-weight: bold;&amp;quot;&amp;gt;Examples.&amp;lt;/span&amp;gt; &lt;br /&gt;
Linear sketch for graphs, for sets, for a split&lt;br /&gt;
mono-epi.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;font-weight: bold;&amp;quot;&amp;gt;Definition.&amp;lt;/span&amp;gt; A linear sketch is&lt;br /&gt;
a graph with some potential idenitites and composed arrows&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;font-weight: bold;&amp;quot;&amp;gt;Definition.&amp;lt;/span&amp;gt; The category of&lt;br /&gt;
models of a linear sketch S in a category C, Mod(S,C), or Mod(S) when C&lt;br /&gt;
is Set.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;font-weight: bold;&amp;quot;&amp;gt;Note.&amp;lt;/span&amp;gt; The set-valued models of&lt;br /&gt;
S are the presheaves over F(S)^op&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;font-weight: bold;&amp;quot;&amp;gt;Theorem.&amp;lt;/span&amp;gt; A linear sketch has a&lt;br /&gt;
terminal model, made of singletons, and an initial model, made of empty&lt;br /&gt;
sets.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;font-weight: bold;&amp;quot;&amp;gt;Definition.&amp;lt;/span&amp;gt; The category of&lt;br /&gt;
linear sketches LinearSk and the underlying functor U:Cat-&amp;amp;gt;LinearSk&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;font-weight: bold;&amp;quot;&amp;gt;Theorem.&amp;lt;/span&amp;gt; There is a left&lt;br /&gt;
adjoint to U, F:LinearSk-&amp;amp;gt;Cat. F(S) is the category generated by S&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;font-weight: bold;&amp;quot;&amp;gt;Example.&amp;lt;/span&amp;gt; &amp;quot;Implementation of&lt;br /&gt;
Bool by Nat&amp;quot; : fractions of morphisms of linear sketches&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;font-weight: bold;&amp;quot;&amp;gt;Definition.&amp;lt;/span&amp;gt; The Yoneda&lt;br /&gt;
contravariant model of S with values in Mod(S)&lt;br /&gt;
&lt;br /&gt;
===Limit sketches===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;font-style: italic;&amp;quot;&amp;gt;&amp;quot;A limit sketch is a generator for a&lt;br /&gt;
category with limits&amp;quot;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;font-weight: bold;&amp;quot;&amp;gt;Examples. &amp;lt;/span&amp;gt;Limit sketch&lt;br /&gt;
for monoids, &amp;quot;for naturals&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;font-weight: bold;&amp;quot;&amp;gt;Definition.&amp;lt;/span&amp;gt; A limit sketch is a&lt;br /&gt;
linear sketch with some potential limits&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;font-weight: bold;&amp;quot;&amp;gt;Definition.&amp;lt;/span&amp;gt; The category of&lt;br /&gt;
models of a limit sketch S in a category C, Mod(S,C), or Mod(S) when C&lt;br /&gt;
is Set.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;font-weight: bold;&amp;quot;&amp;gt;Theorem.&amp;lt;/span&amp;gt; A limit sketch has a&lt;br /&gt;
terminal model, made of singletons, and an initial model, made of the&lt;br /&gt;
closed terms.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;font-weight: bold;&amp;quot;&amp;gt;Definition.&amp;lt;/span&amp;gt; The category of&lt;br /&gt;
limit sketches LimSk and the underlying functor U:LimCat-&amp;amp;gt;LimSk&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;font-weight: bold;&amp;quot;&amp;gt;Theorem. &amp;lt;/span&amp;gt;There is a left&lt;br /&gt;
adjoint to U, F:LimSk-&amp;amp;gt;LimCat. F(S) is the category with chosen&lt;br /&gt;
limits generated by S&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;font-weight: bold;&amp;quot;&amp;gt;Theorem.&amp;lt;/span&amp;gt; There is still a&lt;br /&gt;
Yoneda contravariant model of S with values in Mod(S)&lt;br /&gt;
&lt;br /&gt;
===Sketches===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;font-weight: bold;&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;span&lt;br /&gt;
style=&amp;quot;font-style: italic;&amp;quot;&amp;gt;&amp;quot;A sketch is a generator for a category&lt;br /&gt;
with limits and colimits&amp;quot;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;font-weight: bold;&amp;quot;&amp;gt;Example.&amp;lt;/span&amp;gt; Sketch for&lt;br /&gt;
fields.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;font-weight: bold;&amp;quot;&amp;gt;Definition.&amp;lt;/span&amp;gt; A sketch is a limit&lt;br /&gt;
sketch with some potential colimits&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;font-weight: bold;&amp;quot;&amp;gt;Definition.&amp;lt;/span&amp;gt; The category of&lt;br /&gt;
models of a sketch S in a category C, Mod(S,C), or Mod(S) when C is&lt;br /&gt;
Set.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;font-weight: bold;&amp;quot;&amp;gt;Note.&amp;lt;/span&amp;gt; A sketch has no terminal&lt;br /&gt;
model and no initial model, in general.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;font-weight: bold;&amp;quot;&amp;gt;Theorem.&amp;lt;/span&amp;gt; [Guitart-Lair] A&lt;br /&gt;
sketch with only discrete potential colimits has an initial family of&lt;br /&gt;
models.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;font-weight: bold;&amp;quot;&amp;gt;Definition.&amp;lt;/span&amp;gt; The category of&lt;br /&gt;
sketches LimSk and the underlying functor U:LimColimCat-&amp;amp;gt;Sk&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;font-weight: bold;&amp;quot;&amp;gt;Theorem.&amp;lt;/span&amp;gt; There is a left&lt;br /&gt;
adjoint to U, F:Sk-&amp;amp;gt;LimColimCat. F(S) is the category with chosen&lt;br /&gt;
limits and colimits generated by S&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;font-weight: bold;&amp;quot;&amp;gt;Remark. &amp;lt;/span&amp;gt;The proof of this&lt;br /&gt;
theorem (and the previous similar ones) can be done by first&lt;br /&gt;
constructing a limit sketch E1 for Sk, a limit sketch E2 for&lt;br /&gt;
LimColimCat, and a morphism of limit sketches P:E1-&amp;amp;gt;E2, and then&lt;br /&gt;
applying Ehresmann&#039;s theorem below, which is a fundadmental &amp;lt;span&lt;br /&gt;
style=&amp;quot;font-weight: bold;&amp;quot;&amp;gt;theorem about limit sketches&amp;lt;/span&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;font-weight: bold;&amp;quot;&amp;gt;Theorem.&amp;lt;/span&amp;gt; [Ehresmann]. For each&lt;br /&gt;
morphism of limit sketches P:E1-&amp;amp;gt;E2 there is an adjunction (F,U)&lt;br /&gt;
where U:Mod(E2)-&amp;amp;gt;Mod(E1) is the composition by P.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;font-weight: bold;&amp;quot;&amp;gt;Note.&amp;lt;/span&amp;gt; There is no Yoneda&lt;br /&gt;
contravariant model of S with values in Mod(S)&lt;br /&gt;
&lt;br /&gt;
===Sketches and logic===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;font-style: italic;&amp;quot;&amp;gt;&amp;quot;A sketch is an alternative to a&lt;br /&gt;
logical theory&amp;quot;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
From the point of view of (set-valued) models: &lt;br /&gt;
&lt;br /&gt;
finite products sketches &amp;amp;lt;-&amp;amp;gt; equational logic &lt;br /&gt;
&lt;br /&gt;
finite limits sketches &amp;amp;lt;-&amp;amp;gt; a logic strictly more expressive than&lt;br /&gt;
the logic of universal Horn theories&lt;br /&gt;
&lt;br /&gt;
sketches&amp;amp;nbsp; &amp;amp;lt;-&amp;amp;gt;&amp;amp;nbsp; first order logic &lt;br /&gt;
&lt;br /&gt;
Generalization of sketches to higher order logic?&lt;br /&gt;
&lt;br /&gt;
==Course Complements, references==&lt;br /&gt;
&lt;br /&gt;
One of the best books about category theory is&lt;br /&gt;
* Saunder MacLane, &#039;&#039;&amp;quot;Categories for the Working Mathematician&amp;quot;&#039;&#039;.&lt;br /&gt;
It is a little &amp;quot;dry&amp;quot;, in the sense that learning categories from it is not the easiest task on earth, but it still is one of the best references.&lt;br /&gt;
&lt;br /&gt;
I haven&#039;t really read it carefully, but here is [http://en.wikipedia.org/wiki/Category_theory what Wikipedia has to say on category theory].&lt;/div&gt;</summary>
		<author><name>DDuval</name></author>
	</entry>
	<entry>
		<id>http://os-vps418.infomaniak.ch:1250/mediawiki/index.php?title=Langage_et_concepts_cat%C3%A9goriques_pour_les_math%C3%A9matiques_et_l%E2%80%99informatique&amp;diff=3958</id>
		<title>Langage et concepts catégoriques pour les mathématiques et l’informatique</title>
		<link rel="alternate" type="text/html" href="http://os-vps418.infomaniak.ch:1250/mediawiki/index.php?title=Langage_et_concepts_cat%C3%A9goriques_pour_les_math%C3%A9matiques_et_l%E2%80%99informatique&amp;diff=3958"/>
		<updated>2009-03-11T15:14:33Z</updated>

		<summary type="html">&lt;p&gt;DDuval : /* Limits */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This is a wiki for a course at the MSTII &amp;quot;École doctorale&amp;quot; of Grenoble.&lt;br /&gt;
&lt;br /&gt;
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...&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===News===&lt;br /&gt;
&lt;br /&gt;
Courses are on wednesdays morning, 9&#039;00 to 12&#039;00 in room F218 at the &amp;quot;UFR IMAG&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
* first course on the 25th of February: categories, functors, natural transformations.&lt;br /&gt;
* March 4. : monads, adjunctions.&lt;br /&gt;
* March 11. : limits and colimits.&lt;br /&gt;
&lt;br /&gt;
==Basic Concepts==&lt;br /&gt;
&lt;br /&gt;
===Categories===&lt;br /&gt;
&lt;br /&gt;
{{Definition |&lt;br /&gt;
&#039;&#039;&#039;CPO&#039;&#039;&#039;: CPOs and continuous functions&lt;br /&gt;
* ...&lt;br /&gt;
* &#039;&#039;&#039;Set&#039;&#039;&#039;: sets and functions (&#039;&#039;&#039;ie&#039;&#039;&#039; sets with no structures, and arbitrary functions)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Generalizing the definition, we obtain the official definition of category:&lt;br /&gt;
&lt;br /&gt;
{{Definition |&lt;br /&gt;
A category &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt; is given by:&lt;br /&gt;
* a collection &amp;lt;math&amp;gt;\mathcal{C}_o&amp;lt;/math&amp;gt; of &#039;&#039;objects&#039;&#039;,  (notation: &amp;lt;math&amp;gt;A,B,C,X,Y,...&amp;lt;/math&amp;gt;)&lt;br /&gt;
* for each pair &amp;lt;math&amp;gt;A,B&amp;lt;/math&amp;gt; of objects, a collection &amp;lt;math&amp;gt;\mathcal{C}[A,B]&amp;lt;/math&amp;gt; of &#039;&#039;morphisms from &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&#039;&#039;,  (notation &amp;lt;math&amp;gt; f : A\to B&amp;lt;/math&amp;gt;)&lt;br /&gt;
* for any object &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;, a special morphism &amp;lt;math&amp;gt;i_A : A\to A&amp;lt;/math&amp;gt;&lt;br /&gt;
* for all objects &amp;lt;math&amp;gt;A,B,C&amp;lt;/math&amp;gt;, a composition &amp;lt;math&amp;gt;\circ : \mathcal{C}[B,C] \times \mathcal{C}[A,B] \to \mathcal{C}[A,C]&amp;lt;/math&amp;gt;,&lt;br /&gt;
such that:&lt;br /&gt;
* &amp;lt;math&amp;gt;f \in \mathcal{C}[A,B] \implies f\circ i_A = i_B\circ f = f&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;f\circ(g\circ h) = (f\circ g)\circ h&amp;lt;/math&amp;gt; whenever it makes sense.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
All concrete categories are categories, and here are some examples that are not obviously concrete:&lt;br /&gt;
* &#039;&#039;&#039;Graph&#039;&#039;&#039;: graphs and graph morphisms&lt;br /&gt;
* &#039;&#039;&#039;Rel&#039;&#039;&#039;: sets and relations&lt;br /&gt;
* &#039;&#039;&#039;Set×Set&#039;&#039;&#039;: pairs of sets, pairs of functions&lt;br /&gt;
* &#039;&#039;&#039;Set&amp;lt;math&amp;gt;^{op}&amp;lt;/math&amp;gt;&#039;&#039;&#039;: opposite of &#039;&#039;&#039;Set&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;P&#039;&#039;&#039;, whenever (&#039;&#039;&#039;P&#039;&#039;&#039;,&amp;lt;) is a preorder (at most one morphism between objects)&lt;br /&gt;
* &#039;&#039;&#039;M&#039;&#039;&#039;, whenever (&#039;&#039;&#039;M&#039;&#039;&#039;,e,×) is a monoid (a single object)&lt;br /&gt;
&lt;br /&gt;
We sometimes write &amp;lt;math&amp;gt;gf&amp;lt;/math&amp;gt; instead of &amp;lt;math&amp;gt;g \circ f&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
In a given category &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt;, there are analogues of the notions of injective and surjective functions in &#039;&#039;&#039;Set&#039;&#039;&#039;. We will see that on concrete categories, they are actually slightly more general. The idea of injectivity gives rise to &#039;&#039;monomorphisms&#039;&#039;, and surjectivity gives rise to &#039;&#039;epimorphisms&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
{{Definition |&lt;br /&gt;
&lt;br /&gt;
A morphism &amp;lt;math&amp;gt;f \colon A \to B&amp;lt;/math&amp;gt; is a &#039;&#039;monomorphism&#039;&#039; iff for all object &amp;lt;math&amp;gt;C&amp;lt;/math&amp;gt; and morphisms &amp;lt;math&amp;gt;g,h \colon C \to A&amp;lt;/math&amp;gt;, we have &amp;lt;math&amp;gt;fg = fh&amp;lt;/math&amp;gt; implies &amp;lt;math&amp;gt;g = h&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The morphism &amp;lt;math&amp;gt;f&amp;lt;/math&amp;gt; is an &#039;&#039;epimorphism&#039;&#039; when it is a monomorphism in &amp;lt;math&amp;gt;\mathcal{C}^{op}&amp;lt;/math&amp;gt;. Explicitly, when for all object &amp;lt;math&amp;gt;C&amp;lt;/math&amp;gt; and morphisms &amp;lt;math&amp;gt;g,h \colon B \to C&amp;lt;/math&amp;gt;, we have &amp;lt;math&amp;gt;gf = hf&amp;lt;/math&amp;gt; implies &amp;lt;math&amp;gt;g = h&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
  isomorphism&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Exercice&amp;lt;/u&amp;gt;&lt;br /&gt;
# Prove that in &#039;&#039;&#039;Set&#039;&#039;&#039;, epic is equivalent to surjective and monic is equivalent to injective.&lt;br /&gt;
# Prove the same thing in &#039;&#039;&#039;Ab&#039;&#039;&#039;, the category of commutative groups. (One thing is not obvious.)&lt;br /&gt;
# Prove the same thing in &#039;&#039;&#039;Grp&#039;&#039;&#039;, the category of (non necessarily commutative) groups. (One thing is not obvious at all.)&lt;br /&gt;
# Prove that &amp;lt;math&amp;gt;i : \mathbf{Z} \to \mathbf{Q}&amp;lt;/math&amp;gt; is an epimorphism in the category of rings with multiplicative neutral. (Note that it is not surjective.)&lt;br /&gt;
# In &#039;&#039;&#039;Set&#039;&#039;&#039;, we saw that &#039;&#039;f&#039;&#039; is a monic iff &amp;lt;math&amp;gt;\forall x,y : 1 \to A, f\circ x = f\circ y \implies x=y&amp;lt;/math&amp;gt;, where 1 is any singleton set. Can you find a set &#039;&#039;C&#039;&#039; such that &#039;&#039;f&#039;&#039; is epic iff &amp;lt;math&amp;gt;\forall p,q : B \to C, p\circ f = j\circ f \implies p=q&amp;lt;/math&amp;gt;?&lt;br /&gt;
# In &#039;&#039;&#039;Group&#039;&#039;&#039;, can you find an object playing a role similar to 1, &#039;&#039;ie&#039;&#039; a group &#039;&#039;G&#039;&#039; s.t. &#039;&#039;f&#039;&#039; is monic iff &amp;lt;math&amp;gt;\forall x,y : G \to A, f\circ x = f\circ y \implies x=y&amp;lt;/math&amp;gt;. (We saw that we cannot use the singleton group ({e},e,×) to do that...)&lt;br /&gt;
&lt;br /&gt;
===Functors===&lt;br /&gt;
&lt;br /&gt;
Informally, a functor is a map between two categories which somehow preserves the structure of categories (namely, composition).&lt;br /&gt;
&lt;br /&gt;
{{Definition |&lt;br /&gt;
A functor &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; from a category &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt; to a category &amp;lt;math&amp;gt;\mathcal{D}&amp;lt;/math&amp;gt;, noted &amp;lt;math&amp;gt;F \colon \mathcal{C} \to \mathcal{D}&amp;lt;/math&amp;gt;, is given by:&lt;br /&gt;
* a map which sends every object &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; of &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt; to an object &amp;lt;math&amp;gt;FA&amp;lt;/math&amp;gt; in &amp;lt;math&amp;gt;\mathcal{D}&amp;lt;/math&amp;gt;, and&lt;br /&gt;
* a map which sends every morphism &amp;lt;math&amp;gt;f \colon A \to B&amp;lt;/math&amp;gt; in &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt;, to a morphism &amp;lt;math&amp;gt;Ff&amp;lt;/math&amp;gt; in &amp;lt;math&amp;gt;\mathcal{D}[FA, FB]&amp;lt;/math&amp;gt;,&lt;br /&gt;
such that:&lt;br /&gt;
* &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; preserves identities, i.e., &amp;lt;math&amp;gt;F(id_A) = id_{FA}&amp;lt;/math&amp;gt;, and&lt;br /&gt;
* &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; preserves composition: &amp;lt;math&amp;gt;F(f \circ g) = F(f) \circ F(g)&amp;lt;/math&amp;gt;.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Exercice&amp;lt;/u&amp;gt;&lt;br /&gt;
# Take a functor &amp;lt;math&amp;gt;F \colon \mathcal{C} \to \mathcal{D}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;f, g, h&amp;lt;/math&amp;gt; three morphisms in &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt;, and &amp;lt;math&amp;gt;f&#039; = Ff&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;g&#039; = Fg&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;h&#039; = Fh&amp;lt;/math&amp;gt;. When &amp;lt;math&amp;gt;h&#039; = f&#039; \circ g&#039;&amp;lt;/math&amp;gt;, can we say something interesting about &amp;lt;math&amp;gt;f&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;g&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;h&amp;lt;/math&amp;gt;?&lt;br /&gt;
# Do functors preserve monomorphisms? Do functors preserve epimorphisms?&lt;br /&gt;
# Let &#039;&#039;F&#039;&#039; be a functor and &#039;&#039;F(f) = g&#039;&#039;, if &#039;&#039;g&#039;&#039; is a mono (resp. epi), is &#039;&#039;f&#039;&#039; a mono (resp. epi)?&lt;br /&gt;
If not, try to find some simple and natural condition on the functor to make that true.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Answer&amp;lt;/u&amp;gt;&lt;br /&gt;
# No, since &amp;lt;math&amp;gt;f&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;g&amp;lt;/math&amp;gt; may not even compose! This is the case when &amp;lt;math&amp;gt;f&amp;lt;/math&amp;gt; has type &amp;lt;math&amp;gt;A \to B&amp;lt;/math&amp;gt;, and &amp;lt;math&amp;gt;g \colon C \to D&amp;lt;/math&amp;gt;, with &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; collapsing &amp;lt;math&amp;gt;D&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; (i.e., &amp;lt;math&amp;gt;FA = FD&amp;lt;/math&amp;gt;).&lt;br /&gt;
# Functors in general do not preserve mono- nor epimorphisms. We build a counter-example for monomorphisms. Let &amp;lt;math&amp;gt;\mathbf{2}&amp;lt;/math&amp;gt; be the category with two objects &amp;lt;math&amp;gt;\star&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\bullet&amp;lt;/math&amp;gt;, and exactly one morphism &amp;lt;math&amp;gt;m \colon \star \to \bullet&amp;lt;/math&amp;gt;. This is a preorder, so &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; is monic. Now take &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt; with two objects &amp;lt;math&amp;gt;\star&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\bullet&amp;lt;/math&amp;gt;, exactly one morphism &amp;lt;math&amp;gt;m \colon \star \to \bullet&amp;lt;/math&amp;gt;, and one extra morphism &amp;lt;math&amp;gt;n \colon \star \to \star&amp;lt;/math&amp;gt;, different from the identity. Because of &amp;lt;math&amp;gt;n \neq id_\star&amp;lt;/math&amp;gt;, yet &amp;lt;math&amp;gt;m \circ n = m \circ id&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; is not monic in &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt;. The functor which sends &amp;lt;math&amp;gt;\star&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;\star&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;\bullet&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;\bullet&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; in &amp;lt;math&amp;gt;\mathbf{2}&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; in &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt;, does not preserve monomorphisms.&lt;br /&gt;
# In general, the answer is (again) no. For monos, take for example the functor &amp;lt;math&amp;gt;\mathcal{C} \to \mathbf{2}&amp;lt;/math&amp;gt; which sends &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; to the identity. Yet, when &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; is &#039;&#039;faithful&#039;&#039;, then &amp;lt;math&amp;gt;f&amp;lt;/math&amp;gt; is monic (or epic).&lt;br /&gt;
&lt;br /&gt;
{{Definition |&lt;br /&gt;
A functor &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; is faithful when, for any two morphisms &amp;lt;math&amp;gt;f, g&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;Ff = Fg&amp;lt;/math&amp;gt; implies &amp;lt;math&amp;gt;f=g&amp;lt;/math&amp;gt; (&amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; is injective on morphisms).&lt;br /&gt;
}}&lt;br /&gt;
{{Definition |&lt;br /&gt;
A functor &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; is full when, for any two objects &amp;lt;math&amp;gt;A, B&amp;lt;/math&amp;gt;, if &amp;lt;math&amp;gt;g&amp;lt;/math&amp;gt; is a morphism &amp;lt;math&amp;gt;FA \to FB&amp;lt;/math&amp;gt;, then there exists &amp;lt;math&amp;gt;f \colon A \to B&amp;lt;/math&amp;gt; with &amp;lt;math&amp;gt;Ff = g&amp;lt;/math&amp;gt; (&amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; is surjective on morphisms).&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Exercice&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Find an &amp;quot;interesting&amp;quot; functor from &#039;&#039;&#039;Set&#039;&#039;&#039; to &#039;&#039;&#039;Group&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Answer&amp;lt;/u&amp;gt;&lt;br /&gt;
Let &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; be the functor which sends:&lt;br /&gt;
* every set &amp;lt;math&amp;gt;X&amp;lt;/math&amp;gt; to the free group generated by &amp;lt;math&amp;gt;X&amp;lt;/math&amp;gt;, and&lt;br /&gt;
* every function &amp;lt;math&amp;gt;f \colon X \to Y&amp;lt;/math&amp;gt; to a group morphism defined by: &amp;lt;math&amp;gt;Ff(x_1^{\alpha_1}\times\dots\times x_k^{\alpha_k})=f(x_1)^{\alpha_1} \times \dots \times f(x_k)^{\alpha_k}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Exercice&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt; is a locally small category and &#039;&#039;A&#039;&#039; one of its objects, let &amp;lt;math&amp;gt;Y_A : X \mapsto \mathcal{C}[X,A]&amp;lt;/math&amp;gt;. Show that this operation from objects of &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt; to sets can be extended into a contravariant functor &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt; to &#039;&#039;&#039;Set&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Answer&amp;lt;/u&amp;gt;&lt;br /&gt;
Let &amp;lt;math&amp;gt;f\colon X \to Y&amp;lt;/math&amp;gt; be a morphism in &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt;, then &amp;lt;math&amp;gt;Y_A(f)&amp;lt;/math&amp;gt; is expected to be a function from the set &amp;lt;math&amp;gt;\mathcal{C}[Y, A]&amp;lt;/math&amp;gt; to the set &amp;lt;math&amp;gt;\mathcal{C}[X, A]&amp;lt;/math&amp;gt;. We can take, for any morphism &amp;lt;math&amp;gt;m \in \mathcal{C}[Y,A]&amp;lt;/math&amp;gt;: &amp;lt;math&amp;gt;Y_A(f)(m) = m \circ f&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
This extends &amp;lt;math&amp;gt;Y_A&amp;lt;/math&amp;gt; to a contravariant functor, since &amp;lt;math&amp;gt;Y_A(id_X) = id_{\mathcal{C}[X, A]}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;Y_A(f \circ g)(m) = m \circ (f \circ g) = (m \circ f) \circ g = (Y_A(g) \circ Y_A(f))(m)&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===Natural Transformations===&lt;br /&gt;
&lt;br /&gt;
{{Definition |&lt;br /&gt;
Let &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;G&amp;lt;/math&amp;gt; be two functors &amp;lt;math&amp;gt;\mathcal{C} \to \mathcal{D}&amp;lt;/math&amp;gt;. A natural transformation &amp;lt;math&amp;gt;\alpha&amp;lt;/math&amp;gt; from &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;G&amp;lt;/math&amp;gt; is given by:&lt;br /&gt;
* a morphism &amp;lt;math&amp;gt;\alpha_A \colon FA \to GA&amp;lt;/math&amp;gt; in &amp;lt;math&amp;gt;\mathcal{D}&amp;lt;/math&amp;gt; for every object &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; in &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt;,&lt;br /&gt;
* such that, for any morphism &amp;lt;math&amp;gt;f \colon A \to B&amp;lt;/math&amp;gt;, we have &amp;lt;math&amp;gt;Gf \circ \alpha_A = \alpha_B \circ Ff&amp;lt;/math&amp;gt;.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Exercice&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If &amp;lt;math&amp;gt;P(X)&amp;lt;/math&amp;gt; is the set of permutation of a (finite) set &#039;&#039;X&#039;&#039;; and &amp;lt;math&amp;gt;L(X)&amp;lt;/math&amp;gt; the set of its linear orderings, we have &amp;lt;math&amp;gt;\#(L(X)) = \#(L(X)) = n!&amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;n = \#(X)&amp;lt;/math&amp;gt;. Thus, there is a bijection (iso in &#039;&#039;&#039;Set&#039;&#039;&#039;) between &#039;&#039;P(X)&#039;&#039; and &#039;&#039;L(X)&#039;&#039;.&lt;br /&gt;
# Show that we can extend &#039;&#039;P&#039;&#039; and &#039;&#039;L&#039;&#039; to functors from &#039;&#039;&#039;B&#039;&#039;&#039; to &#039;&#039;&#039;Set&#039;&#039;&#039;, where &#039;&#039;&#039;B&#039;&#039;&#039; is the category of finite sets and bijections,&lt;br /&gt;
# Show that there can be no natural transformation from &#039;&#039;P&#039;&#039; to &#039;&#039;L&#039;&#039;,&lt;br /&gt;
# Conclude that there is no natural isomorphism between &#039;&#039;P&#039;&#039; and &#039;&#039;L&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
==Adjunctions==&lt;br /&gt;
&lt;br /&gt;
===About Limits and Colimits===&lt;br /&gt;
&lt;br /&gt;
One of the main thrusts of category theory is to define concepts by&lt;br /&gt;
their properties rather than by explicit construction. In general this&lt;br /&gt;
is just called abstraction, but in good cases, concepts are&lt;br /&gt;
&#039;&#039;defined&#039;&#039; by their properties, at least canonically if not uniquely.&lt;br /&gt;
&lt;br /&gt;
The chief example of this is binary products in &#039;&#039;&#039;Set&#039;&#039;&#039;.  The&lt;br /&gt;
product &amp;lt;math&amp;gt;A \times B&amp;lt;/math&amp;gt; of two sets &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; and&lt;br /&gt;
&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt; is generally thought of as the set of pairs &amp;lt;math&amp;gt; (x,&lt;br /&gt;
y) &amp;lt;/math&amp;gt; with &amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;y \in B&amp;lt;/math&amp;gt;.  But&lt;br /&gt;
strictly speaking, or rather set-theoretically speaking, one has to&lt;br /&gt;
construct it by cautious use of the axioms of Zermelo-Fraenkel set&lt;br /&gt;
theory.&lt;br /&gt;
&lt;br /&gt;
Instead, in any category &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt;, for any objects&lt;br /&gt;
&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt; categorists put: &lt;br /&gt;
&lt;br /&gt;
{{Definition | A&lt;br /&gt;
&#039;&#039;product&#039;&#039; of &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt; is an object &amp;lt;math&amp;gt;C&amp;lt;/math&amp;gt;&lt;br /&gt;
with arrows&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;A \xleftarrow{\pi_1} C \xrightarrow{\pi_2} B&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
such that for any object &amp;lt;math&amp;gt;D&amp;lt;/math&amp;gt; and arrows&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;A \xleftarrow{f} D \xrightarrow{g} B&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
there exists a unique arrow &amp;lt;math&amp;gt;h&amp;lt;/math&amp;gt; making the diagram&lt;br /&gt;
[[Image:prod.png|center|Universal property of product]]&lt;br /&gt;
commute, i.e., &amp;lt;math&amp;gt;\pi_1 \circ h = f&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\pi_2 \circ h = g&amp;lt;/math&amp;gt;.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
The standard constructions in &#039;&#039;&#039;Set&#039;&#039;&#039; all have this property, and&lt;br /&gt;
all the non-standard ones you can think of also do, e.g., the set of&lt;br /&gt;
pairs &amp;lt;math&amp;gt; (\emptyset, x, y) &amp;lt;/math&amp;gt; with &amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;y&lt;br /&gt;
\in B&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Conversely, any set with this property is as good as any other&lt;br /&gt;
construction of &amp;lt;math&amp;gt;A \times B&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Products are determined &#039;&#039;canonically&#039;&#039; by this property&lt;br /&gt;
property. We will give a more precise meaning to this in later&lt;br /&gt;
lectures; for now we just state:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Lemma.&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For any other product &amp;lt;center&amp;gt;&amp;lt;math&amp;gt;A \xleftarrow{p} E \xrightarrow{q} B&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt; of &lt;br /&gt;
&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;, there is a unique isomorphism pair &amp;lt;math&amp;gt; (r, s) &amp;lt;/math&amp;gt; &lt;br /&gt;
such that the diagrams&lt;br /&gt;
&lt;br /&gt;
[[Image:prod-iso.png|upright=2]] and &lt;br /&gt;
[[Image:prod-iso-2.png|upright=2]]&lt;br /&gt;
&lt;br /&gt;
commute.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===First examples and definition===&lt;br /&gt;
&lt;br /&gt;
====So-called &#039;&#039;free&#039;&#039; constructions in algebra: monoid, group, etc====&lt;br /&gt;
====Their universal property, the underlying functor====&lt;br /&gt;
====The isomorphism between hom-sets====&lt;br /&gt;
====Its naturality====&lt;br /&gt;
====Definition====&lt;br /&gt;
====On to the definition with &amp;lt;math&amp;gt;\eta&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\epsilon&amp;lt;/math&amp;gt;====&lt;br /&gt;
&lt;br /&gt;
===The simplicity behind definitions:2-categories and adjunctions therein===&lt;br /&gt;
&lt;br /&gt;
====Definition of 2-categories====&lt;br /&gt;
====String diagrams====&lt;br /&gt;
====&#039;&#039;&#039;CAT&#039;&#039;&#039; as a 2-category====&lt;br /&gt;
====Adjunctions in a 2-category====&lt;br /&gt;
&lt;br /&gt;
===Other basic examples===&lt;br /&gt;
&lt;br /&gt;
====Discussion: any syntax defines the free something==== The issue of &lt;br /&gt;
variable binding.&lt;br /&gt;
====Adjunction between partial orders = Galois connection====&lt;br /&gt;
====&amp;lt;math&amp;gt;\times&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\Rightarrow&amp;lt;/math&amp;gt; in logic====&lt;br /&gt;
====Sets/graphs and categories====&lt;br /&gt;
&lt;br /&gt;
===Monads and resolutions===&lt;br /&gt;
&lt;br /&gt;
====Definition of a monad====&lt;br /&gt;
====String diagrams====&lt;br /&gt;
====Every adjunction yields a monad====&lt;br /&gt;
====Example of monoids again: resolutions====&lt;br /&gt;
&lt;br /&gt;
===Monadic adjunctions===&lt;br /&gt;
&lt;br /&gt;
====The category of resolutions====&lt;br /&gt;
====Eilenberg-Moore is terminal====&lt;br /&gt;
====Kleisli is initial====&lt;br /&gt;
====Monadic adjunctions====&lt;br /&gt;
====Algebraic theories====&lt;br /&gt;
&lt;br /&gt;
===Properties===&lt;br /&gt;
&lt;br /&gt;
====Composing adjunctions====&lt;br /&gt;
====Preservation of limits/colimits====&lt;br /&gt;
====Freyd&#039;s existence theorem====&lt;br /&gt;
====Beck&#039;s monadicity theorem====&lt;br /&gt;
&lt;br /&gt;
==Limites and Colimits==&lt;br /&gt;
&lt;br /&gt;
===Limits===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example.&#039;&#039;&#039; Cartesian product.&lt;br /&gt;
&lt;br /&gt;
{{ Definition | Binary product.}}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Theorem.&#039;&#039;&#039; &#039;&#039;The product of X and Y, if it exists, is unique up to isomorphism.&#039;&#039; (with proof)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Examples.&#039;&#039;&#039; Set, Grp, Ab, Part.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Examples.&#039;&#039;&#039; Preorder, Subset(E), Prop with entailment.&lt;br /&gt;
&lt;br /&gt;
{{ Definition | Diagram. Cone. Limit.}}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example.&#039;&#039;&#039; Limits in Set.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Examples.&#039;&#039;&#039; Shape of diagrams for products, pullbacks, equalizers.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example.&#039;&#039;&#039; Monos as pullbacks.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Theorem.&#039;&#039;&#039; &#039;&#039;The limit of a diagram d, if it exists, is unique up to isomorphism.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Theorem.&#039;&#039;&#039; &#039;&#039;A category with &amp;quot;all&amp;quot; products and equalizers has &amp;quot;all&amp;quot; limits.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Theorem.&#039;&#039;&#039; &#039;&#039;A category with a terminal object and all binary products and all equalizers has all finite limits.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
===Colimits===&lt;br /&gt;
&lt;br /&gt;
{{ Definition | Cocone. Colimit.}}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Examples.&#039;&#039;&#039; Sums in Set, Grp, Ab.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Examples.&#039;&#039;&#039; Shape of diagrams for sums, initial objects, pushouts, coequalizers.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example.&#039;&#039;&#039; Epis as pushouts.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Theorem.&#039;&#039;&#039; &#039;&#039;The colimit of a diagram d, if it exists, is unique up to isomorphism.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example.&#039;&#039;&#039; The most general unifier (of two terms) is a coequalizer in the &amp;quot;category of substitutions&amp;quot;.&lt;br /&gt;
 &lt;br /&gt;
&#039;&#039;&#039;Theorem.&#039;&#039;&#039; &#039;&#039;A category with &amp;quot;all&amp;quot; sums and coequalizers has &amp;quot;all&amp;quot; colimits.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Theorem.&#039;&#039;&#039; &#039;&#039;A category with an initial object and all binary sums and all coequalizers has all finite colimits.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
===Limits, colimits and adjunctions===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Theorem.&#039;&#039;&#039; &#039;&#039;A right adjoint preserves limits. A left adjoint preserves colimits.&#039;&#039; (with proof of existence)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example.&#039;&#039;&#039; The adjunction between Set and Grp&lt;br /&gt;
&lt;br /&gt;
===Sums and products===&lt;br /&gt;
&lt;br /&gt;
A category is &#039;&#039;distributive&#039;&#039; if the canonical map from AxB+AxC to Ax(B+C) is an isomorphism.&lt;br /&gt;
&lt;br /&gt;
A category is &#039;&#039;extensive&#039;&#039; if the canonical functor + from C/A x C/B to C/(A+B) is an equivalence. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example.&#039;&#039;&#039; &amp;quot;if..then..else..&amp;quot; from B=1+1 and extensivity.&lt;br /&gt;
 &lt;br /&gt;
==Course Complements, references==&lt;br /&gt;
&lt;br /&gt;
One of the best books about category theory is&lt;br /&gt;
* Saunder MacLane, &#039;&#039;&amp;quot;Categories for the Working Mathematician&amp;quot;&#039;&#039;.&lt;br /&gt;
It is a little &amp;quot;dry&amp;quot;, in the sense that learning categories from it is not the easiest task on earth, but it still is one of the best references.&lt;br /&gt;
&lt;br /&gt;
I haven&#039;t really read it carefully, but here is [http://en.wikipedia.org/wiki/Category_theory what Wikipedia has to say on category theory].&lt;/div&gt;</summary>
		<author><name>DDuval</name></author>
	</entry>
	<entry>
		<id>http://os-vps418.infomaniak.ch:1250/mediawiki/index.php?title=Langage_et_concepts_cat%C3%A9goriques_pour_les_math%C3%A9matiques_et_l%E2%80%99informatique&amp;diff=3957</id>
		<title>Langage et concepts catégoriques pour les mathématiques et l’informatique</title>
		<link rel="alternate" type="text/html" href="http://os-vps418.infomaniak.ch:1250/mediawiki/index.php?title=Langage_et_concepts_cat%C3%A9goriques_pour_les_math%C3%A9matiques_et_l%E2%80%99informatique&amp;diff=3957"/>
		<updated>2009-03-11T15:11:25Z</updated>

		<summary type="html">&lt;p&gt;DDuval : /* Limits */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This is a wiki for a course at the MSTII &amp;quot;École doctorale&amp;quot; of Grenoble.&lt;br /&gt;
&lt;br /&gt;
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...&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===News===&lt;br /&gt;
&lt;br /&gt;
Courses are on wednesdays morning, 9&#039;00 to 12&#039;00 in room F218 at the &amp;quot;UFR IMAG&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
* first course on the 25th of February: categories, functors, natural transformations.&lt;br /&gt;
* March 4. : monads, adjunctions.&lt;br /&gt;
* March 11. : limits and colimits.&lt;br /&gt;
&lt;br /&gt;
==Basic Concepts==&lt;br /&gt;
&lt;br /&gt;
===Categories===&lt;br /&gt;
&lt;br /&gt;
{{Definition |&lt;br /&gt;
&#039;&#039;&#039;CPO&#039;&#039;&#039;: CPOs and continuous functions&lt;br /&gt;
* ...&lt;br /&gt;
* &#039;&#039;&#039;Set&#039;&#039;&#039;: sets and functions (&#039;&#039;&#039;ie&#039;&#039;&#039; sets with no structures, and arbitrary functions)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Generalizing the definition, we obtain the official definition of category:&lt;br /&gt;
&lt;br /&gt;
{{Definition |&lt;br /&gt;
A category &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt; is given by:&lt;br /&gt;
* a collection &amp;lt;math&amp;gt;\mathcal{C}_o&amp;lt;/math&amp;gt; of &#039;&#039;objects&#039;&#039;,  (notation: &amp;lt;math&amp;gt;A,B,C,X,Y,...&amp;lt;/math&amp;gt;)&lt;br /&gt;
* for each pair &amp;lt;math&amp;gt;A,B&amp;lt;/math&amp;gt; of objects, a collection &amp;lt;math&amp;gt;\mathcal{C}[A,B]&amp;lt;/math&amp;gt; of &#039;&#039;morphisms from &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&#039;&#039;,  (notation &amp;lt;math&amp;gt; f : A\to B&amp;lt;/math&amp;gt;)&lt;br /&gt;
* for any object &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;, a special morphism &amp;lt;math&amp;gt;i_A : A\to A&amp;lt;/math&amp;gt;&lt;br /&gt;
* for all objects &amp;lt;math&amp;gt;A,B,C&amp;lt;/math&amp;gt;, a composition &amp;lt;math&amp;gt;\circ : \mathcal{C}[B,C] \times \mathcal{C}[A,B] \to \mathcal{C}[A,C]&amp;lt;/math&amp;gt;,&lt;br /&gt;
such that:&lt;br /&gt;
* &amp;lt;math&amp;gt;f \in \mathcal{C}[A,B] \implies f\circ i_A = i_B\circ f = f&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;f\circ(g\circ h) = (f\circ g)\circ h&amp;lt;/math&amp;gt; whenever it makes sense.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
All concrete categories are categories, and here are some examples that are not obviously concrete:&lt;br /&gt;
* &#039;&#039;&#039;Graph&#039;&#039;&#039;: graphs and graph morphisms&lt;br /&gt;
* &#039;&#039;&#039;Rel&#039;&#039;&#039;: sets and relations&lt;br /&gt;
* &#039;&#039;&#039;Set×Set&#039;&#039;&#039;: pairs of sets, pairs of functions&lt;br /&gt;
* &#039;&#039;&#039;Set&amp;lt;math&amp;gt;^{op}&amp;lt;/math&amp;gt;&#039;&#039;&#039;: opposite of &#039;&#039;&#039;Set&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;P&#039;&#039;&#039;, whenever (&#039;&#039;&#039;P&#039;&#039;&#039;,&amp;lt;) is a preorder (at most one morphism between objects)&lt;br /&gt;
* &#039;&#039;&#039;M&#039;&#039;&#039;, whenever (&#039;&#039;&#039;M&#039;&#039;&#039;,e,×) is a monoid (a single object)&lt;br /&gt;
&lt;br /&gt;
We sometimes write &amp;lt;math&amp;gt;gf&amp;lt;/math&amp;gt; instead of &amp;lt;math&amp;gt;g \circ f&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
In a given category &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt;, there are analogues of the notions of injective and surjective functions in &#039;&#039;&#039;Set&#039;&#039;&#039;. We will see that on concrete categories, they are actually slightly more general. The idea of injectivity gives rise to &#039;&#039;monomorphisms&#039;&#039;, and surjectivity gives rise to &#039;&#039;epimorphisms&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
{{Definition |&lt;br /&gt;
&lt;br /&gt;
A morphism &amp;lt;math&amp;gt;f \colon A \to B&amp;lt;/math&amp;gt; is a &#039;&#039;monomorphism&#039;&#039; iff for all object &amp;lt;math&amp;gt;C&amp;lt;/math&amp;gt; and morphisms &amp;lt;math&amp;gt;g,h \colon C \to A&amp;lt;/math&amp;gt;, we have &amp;lt;math&amp;gt;fg = fh&amp;lt;/math&amp;gt; implies &amp;lt;math&amp;gt;g = h&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The morphism &amp;lt;math&amp;gt;f&amp;lt;/math&amp;gt; is an &#039;&#039;epimorphism&#039;&#039; when it is a monomorphism in &amp;lt;math&amp;gt;\mathcal{C}^{op}&amp;lt;/math&amp;gt;. Explicitly, when for all object &amp;lt;math&amp;gt;C&amp;lt;/math&amp;gt; and morphisms &amp;lt;math&amp;gt;g,h \colon B \to C&amp;lt;/math&amp;gt;, we have &amp;lt;math&amp;gt;gf = hf&amp;lt;/math&amp;gt; implies &amp;lt;math&amp;gt;g = h&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
  isomorphism&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Exercice&amp;lt;/u&amp;gt;&lt;br /&gt;
# Prove that in &#039;&#039;&#039;Set&#039;&#039;&#039;, epic is equivalent to surjective and monic is equivalent to injective.&lt;br /&gt;
# Prove the same thing in &#039;&#039;&#039;Ab&#039;&#039;&#039;, the category of commutative groups. (One thing is not obvious.)&lt;br /&gt;
# Prove the same thing in &#039;&#039;&#039;Grp&#039;&#039;&#039;, the category of (non necessarily commutative) groups. (One thing is not obvious at all.)&lt;br /&gt;
# Prove that &amp;lt;math&amp;gt;i : \mathbf{Z} \to \mathbf{Q}&amp;lt;/math&amp;gt; is an epimorphism in the category of rings with multiplicative neutral. (Note that it is not surjective.)&lt;br /&gt;
# In &#039;&#039;&#039;Set&#039;&#039;&#039;, we saw that &#039;&#039;f&#039;&#039; is a monic iff &amp;lt;math&amp;gt;\forall x,y : 1 \to A, f\circ x = f\circ y \implies x=y&amp;lt;/math&amp;gt;, where 1 is any singleton set. Can you find a set &#039;&#039;C&#039;&#039; such that &#039;&#039;f&#039;&#039; is epic iff &amp;lt;math&amp;gt;\forall p,q : B \to C, p\circ f = j\circ f \implies p=q&amp;lt;/math&amp;gt;?&lt;br /&gt;
# In &#039;&#039;&#039;Group&#039;&#039;&#039;, can you find an object playing a role similar to 1, &#039;&#039;ie&#039;&#039; a group &#039;&#039;G&#039;&#039; s.t. &#039;&#039;f&#039;&#039; is monic iff &amp;lt;math&amp;gt;\forall x,y : G \to A, f\circ x = f\circ y \implies x=y&amp;lt;/math&amp;gt;. (We saw that we cannot use the singleton group ({e},e,×) to do that...)&lt;br /&gt;
&lt;br /&gt;
===Functors===&lt;br /&gt;
&lt;br /&gt;
Informally, a functor is a map between two categories which somehow preserves the structure of categories (namely, composition).&lt;br /&gt;
&lt;br /&gt;
{{Definition |&lt;br /&gt;
A functor &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; from a category &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt; to a category &amp;lt;math&amp;gt;\mathcal{D}&amp;lt;/math&amp;gt;, noted &amp;lt;math&amp;gt;F \colon \mathcal{C} \to \mathcal{D}&amp;lt;/math&amp;gt;, is given by:&lt;br /&gt;
* a map which sends every object &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; of &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt; to an object &amp;lt;math&amp;gt;FA&amp;lt;/math&amp;gt; in &amp;lt;math&amp;gt;\mathcal{D}&amp;lt;/math&amp;gt;, and&lt;br /&gt;
* a map which sends every morphism &amp;lt;math&amp;gt;f \colon A \to B&amp;lt;/math&amp;gt; in &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt;, to a morphism &amp;lt;math&amp;gt;Ff&amp;lt;/math&amp;gt; in &amp;lt;math&amp;gt;\mathcal{D}[FA, FB]&amp;lt;/math&amp;gt;,&lt;br /&gt;
such that:&lt;br /&gt;
* &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; preserves identities, i.e., &amp;lt;math&amp;gt;F(id_A) = id_{FA}&amp;lt;/math&amp;gt;, and&lt;br /&gt;
* &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; preserves composition: &amp;lt;math&amp;gt;F(f \circ g) = F(f) \circ F(g)&amp;lt;/math&amp;gt;.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Exercice&amp;lt;/u&amp;gt;&lt;br /&gt;
# Take a functor &amp;lt;math&amp;gt;F \colon \mathcal{C} \to \mathcal{D}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;f, g, h&amp;lt;/math&amp;gt; three morphisms in &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt;, and &amp;lt;math&amp;gt;f&#039; = Ff&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;g&#039; = Fg&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;h&#039; = Fh&amp;lt;/math&amp;gt;. When &amp;lt;math&amp;gt;h&#039; = f&#039; \circ g&#039;&amp;lt;/math&amp;gt;, can we say something interesting about &amp;lt;math&amp;gt;f&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;g&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;h&amp;lt;/math&amp;gt;?&lt;br /&gt;
# Do functors preserve monomorphisms? Do functors preserve epimorphisms?&lt;br /&gt;
# Let &#039;&#039;F&#039;&#039; be a functor and &#039;&#039;F(f) = g&#039;&#039;, if &#039;&#039;g&#039;&#039; is a mono (resp. epi), is &#039;&#039;f&#039;&#039; a mono (resp. epi)?&lt;br /&gt;
If not, try to find some simple and natural condition on the functor to make that true.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Answer&amp;lt;/u&amp;gt;&lt;br /&gt;
# No, since &amp;lt;math&amp;gt;f&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;g&amp;lt;/math&amp;gt; may not even compose! This is the case when &amp;lt;math&amp;gt;f&amp;lt;/math&amp;gt; has type &amp;lt;math&amp;gt;A \to B&amp;lt;/math&amp;gt;, and &amp;lt;math&amp;gt;g \colon C \to D&amp;lt;/math&amp;gt;, with &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; collapsing &amp;lt;math&amp;gt;D&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; (i.e., &amp;lt;math&amp;gt;FA = FD&amp;lt;/math&amp;gt;).&lt;br /&gt;
# Functors in general do not preserve mono- nor epimorphisms. We build a counter-example for monomorphisms. Let &amp;lt;math&amp;gt;\mathbf{2}&amp;lt;/math&amp;gt; be the category with two objects &amp;lt;math&amp;gt;\star&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\bullet&amp;lt;/math&amp;gt;, and exactly one morphism &amp;lt;math&amp;gt;m \colon \star \to \bullet&amp;lt;/math&amp;gt;. This is a preorder, so &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; is monic. Now take &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt; with two objects &amp;lt;math&amp;gt;\star&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\bullet&amp;lt;/math&amp;gt;, exactly one morphism &amp;lt;math&amp;gt;m \colon \star \to \bullet&amp;lt;/math&amp;gt;, and one extra morphism &amp;lt;math&amp;gt;n \colon \star \to \star&amp;lt;/math&amp;gt;, different from the identity. Because of &amp;lt;math&amp;gt;n \neq id_\star&amp;lt;/math&amp;gt;, yet &amp;lt;math&amp;gt;m \circ n = m \circ id&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; is not monic in &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt;. The functor which sends &amp;lt;math&amp;gt;\star&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;\star&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;\bullet&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;\bullet&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; in &amp;lt;math&amp;gt;\mathbf{2}&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; in &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt;, does not preserve monomorphisms.&lt;br /&gt;
# In general, the answer is (again) no. For monos, take for example the functor &amp;lt;math&amp;gt;\mathcal{C} \to \mathbf{2}&amp;lt;/math&amp;gt; which sends &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; to the identity. Yet, when &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; is &#039;&#039;faithful&#039;&#039;, then &amp;lt;math&amp;gt;f&amp;lt;/math&amp;gt; is monic (or epic).&lt;br /&gt;
&lt;br /&gt;
{{Definition |&lt;br /&gt;
A functor &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; is faithful when, for any two morphisms &amp;lt;math&amp;gt;f, g&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;Ff = Fg&amp;lt;/math&amp;gt; implies &amp;lt;math&amp;gt;f=g&amp;lt;/math&amp;gt; (&amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; is injective on morphisms).&lt;br /&gt;
}}&lt;br /&gt;
{{Definition |&lt;br /&gt;
A functor &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; is full when, for any two objects &amp;lt;math&amp;gt;A, B&amp;lt;/math&amp;gt;, if &amp;lt;math&amp;gt;g&amp;lt;/math&amp;gt; is a morphism &amp;lt;math&amp;gt;FA \to FB&amp;lt;/math&amp;gt;, then there exists &amp;lt;math&amp;gt;f \colon A \to B&amp;lt;/math&amp;gt; with &amp;lt;math&amp;gt;Ff = g&amp;lt;/math&amp;gt; (&amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; is surjective on morphisms).&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Exercice&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Find an &amp;quot;interesting&amp;quot; functor from &#039;&#039;&#039;Set&#039;&#039;&#039; to &#039;&#039;&#039;Group&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Answer&amp;lt;/u&amp;gt;&lt;br /&gt;
Let &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; be the functor which sends:&lt;br /&gt;
* every set &amp;lt;math&amp;gt;X&amp;lt;/math&amp;gt; to the free group generated by &amp;lt;math&amp;gt;X&amp;lt;/math&amp;gt;, and&lt;br /&gt;
* every function &amp;lt;math&amp;gt;f \colon X \to Y&amp;lt;/math&amp;gt; to a group morphism defined by: &amp;lt;math&amp;gt;Ff(x_1^{\alpha_1}\times\dots\times x_k^{\alpha_k})=f(x_1)^{\alpha_1} \times \dots \times f(x_k)^{\alpha_k}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Exercice&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt; is a locally small category and &#039;&#039;A&#039;&#039; one of its objects, let &amp;lt;math&amp;gt;Y_A : X \mapsto \mathcal{C}[X,A]&amp;lt;/math&amp;gt;. Show that this operation from objects of &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt; to sets can be extended into a contravariant functor &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt; to &#039;&#039;&#039;Set&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Answer&amp;lt;/u&amp;gt;&lt;br /&gt;
Let &amp;lt;math&amp;gt;f\colon X \to Y&amp;lt;/math&amp;gt; be a morphism in &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt;, then &amp;lt;math&amp;gt;Y_A(f)&amp;lt;/math&amp;gt; is expected to be a function from the set &amp;lt;math&amp;gt;\mathcal{C}[Y, A]&amp;lt;/math&amp;gt; to the set &amp;lt;math&amp;gt;\mathcal{C}[X, A]&amp;lt;/math&amp;gt;. We can take, for any morphism &amp;lt;math&amp;gt;m \in \mathcal{C}[Y,A]&amp;lt;/math&amp;gt;: &amp;lt;math&amp;gt;Y_A(f)(m) = m \circ f&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
This extends &amp;lt;math&amp;gt;Y_A&amp;lt;/math&amp;gt; to a contravariant functor, since &amp;lt;math&amp;gt;Y_A(id_X) = id_{\mathcal{C}[X, A]}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;Y_A(f \circ g)(m) = m \circ (f \circ g) = (m \circ f) \circ g = (Y_A(g) \circ Y_A(f))(m)&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===Natural Transformations===&lt;br /&gt;
&lt;br /&gt;
{{Definition |&lt;br /&gt;
Let &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;G&amp;lt;/math&amp;gt; be two functors &amp;lt;math&amp;gt;\mathcal{C} \to \mathcal{D}&amp;lt;/math&amp;gt;. A natural transformation &amp;lt;math&amp;gt;\alpha&amp;lt;/math&amp;gt; from &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;G&amp;lt;/math&amp;gt; is given by:&lt;br /&gt;
* a morphism &amp;lt;math&amp;gt;\alpha_A \colon FA \to GA&amp;lt;/math&amp;gt; in &amp;lt;math&amp;gt;\mathcal{D}&amp;lt;/math&amp;gt; for every object &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; in &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt;,&lt;br /&gt;
* such that, for any morphism &amp;lt;math&amp;gt;f \colon A \to B&amp;lt;/math&amp;gt;, we have &amp;lt;math&amp;gt;Gf \circ \alpha_A = \alpha_B \circ Ff&amp;lt;/math&amp;gt;.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Exercice&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If &amp;lt;math&amp;gt;P(X)&amp;lt;/math&amp;gt; is the set of permutation of a (finite) set &#039;&#039;X&#039;&#039;; and &amp;lt;math&amp;gt;L(X)&amp;lt;/math&amp;gt; the set of its linear orderings, we have &amp;lt;math&amp;gt;\#(L(X)) = \#(L(X)) = n!&amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;n = \#(X)&amp;lt;/math&amp;gt;. Thus, there is a bijection (iso in &#039;&#039;&#039;Set&#039;&#039;&#039;) between &#039;&#039;P(X)&#039;&#039; and &#039;&#039;L(X)&#039;&#039;.&lt;br /&gt;
# Show that we can extend &#039;&#039;P&#039;&#039; and &#039;&#039;L&#039;&#039; to functors from &#039;&#039;&#039;B&#039;&#039;&#039; to &#039;&#039;&#039;Set&#039;&#039;&#039;, where &#039;&#039;&#039;B&#039;&#039;&#039; is the category of finite sets and bijections,&lt;br /&gt;
# Show that there can be no natural transformation from &#039;&#039;P&#039;&#039; to &#039;&#039;L&#039;&#039;,&lt;br /&gt;
# Conclude that there is no natural isomorphism between &#039;&#039;P&#039;&#039; and &#039;&#039;L&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
==Adjunctions==&lt;br /&gt;
&lt;br /&gt;
===About Limits and Colimits===&lt;br /&gt;
&lt;br /&gt;
One of the main thrusts of category theory is to define concepts by&lt;br /&gt;
their properties rather than by explicit construction. In general this&lt;br /&gt;
is just called abstraction, but in good cases, concepts are&lt;br /&gt;
&#039;&#039;defined&#039;&#039; by their properties, at least canonically if not uniquely.&lt;br /&gt;
&lt;br /&gt;
The chief example of this is binary products in &#039;&#039;&#039;Set&#039;&#039;&#039;.  The&lt;br /&gt;
product &amp;lt;math&amp;gt;A \times B&amp;lt;/math&amp;gt; of two sets &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; and&lt;br /&gt;
&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt; is generally thought of as the set of pairs &amp;lt;math&amp;gt; (x,&lt;br /&gt;
y) &amp;lt;/math&amp;gt; with &amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;y \in B&amp;lt;/math&amp;gt;.  But&lt;br /&gt;
strictly speaking, or rather set-theoretically speaking, one has to&lt;br /&gt;
construct it by cautious use of the axioms of Zermelo-Fraenkel set&lt;br /&gt;
theory.&lt;br /&gt;
&lt;br /&gt;
Instead, in any category &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt;, for any objects&lt;br /&gt;
&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt; categorists put: &lt;br /&gt;
&lt;br /&gt;
{{Definition | A&lt;br /&gt;
&#039;&#039;product&#039;&#039; of &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt; is an object &amp;lt;math&amp;gt;C&amp;lt;/math&amp;gt;&lt;br /&gt;
with arrows&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;A \xleftarrow{\pi_1} C \xrightarrow{\pi_2} B&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
such that for any object &amp;lt;math&amp;gt;D&amp;lt;/math&amp;gt; and arrows&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;A \xleftarrow{f} D \xrightarrow{g} B&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
there exists a unique arrow &amp;lt;math&amp;gt;h&amp;lt;/math&amp;gt; making the diagram&lt;br /&gt;
[[Image:prod.png|center|Universal property of product]]&lt;br /&gt;
commute, i.e., &amp;lt;math&amp;gt;\pi_1 \circ h = f&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\pi_2 \circ h = g&amp;lt;/math&amp;gt;.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
The standard constructions in &#039;&#039;&#039;Set&#039;&#039;&#039; all have this property, and&lt;br /&gt;
all the non-standard ones you can think of also do, e.g., the set of&lt;br /&gt;
pairs &amp;lt;math&amp;gt; (\emptyset, x, y) &amp;lt;/math&amp;gt; with &amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;y&lt;br /&gt;
\in B&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Conversely, any set with this property is as good as any other&lt;br /&gt;
construction of &amp;lt;math&amp;gt;A \times B&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Products are determined &#039;&#039;canonically&#039;&#039; by this property&lt;br /&gt;
property. We will give a more precise meaning to this in later&lt;br /&gt;
lectures; for now we just state:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Lemma.&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For any other product &amp;lt;center&amp;gt;&amp;lt;math&amp;gt;A \xleftarrow{p} E \xrightarrow{q} B&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt; of &lt;br /&gt;
&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;, there is a unique isomorphism pair &amp;lt;math&amp;gt; (r, s) &amp;lt;/math&amp;gt; &lt;br /&gt;
such that the diagrams&lt;br /&gt;
&lt;br /&gt;
[[Image:prod-iso.png|upright=2]] and &lt;br /&gt;
[[Image:prod-iso-2.png|upright=2]]&lt;br /&gt;
&lt;br /&gt;
commute.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===First examples and definition===&lt;br /&gt;
&lt;br /&gt;
====So-called &#039;&#039;free&#039;&#039; constructions in algebra: monoid, group, etc====&lt;br /&gt;
====Their universal property, the underlying functor====&lt;br /&gt;
====The isomorphism between hom-sets====&lt;br /&gt;
====Its naturality====&lt;br /&gt;
====Definition====&lt;br /&gt;
====On to the definition with &amp;lt;math&amp;gt;\eta&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\epsilon&amp;lt;/math&amp;gt;====&lt;br /&gt;
&lt;br /&gt;
===The simplicity behind definitions:2-categories and adjunctions therein===&lt;br /&gt;
&lt;br /&gt;
====Definition of 2-categories====&lt;br /&gt;
====String diagrams====&lt;br /&gt;
====&#039;&#039;&#039;CAT&#039;&#039;&#039; as a 2-category====&lt;br /&gt;
====Adjunctions in a 2-category====&lt;br /&gt;
&lt;br /&gt;
===Other basic examples===&lt;br /&gt;
&lt;br /&gt;
====Discussion: any syntax defines the free something==== The issue of &lt;br /&gt;
variable binding.&lt;br /&gt;
====Adjunction between partial orders = Galois connection====&lt;br /&gt;
====&amp;lt;math&amp;gt;\times&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\Rightarrow&amp;lt;/math&amp;gt; in logic====&lt;br /&gt;
====Sets/graphs and categories====&lt;br /&gt;
&lt;br /&gt;
===Monads and resolutions===&lt;br /&gt;
&lt;br /&gt;
====Definition of a monad====&lt;br /&gt;
====String diagrams====&lt;br /&gt;
====Every adjunction yields a monad====&lt;br /&gt;
====Example of monoids again: resolutions====&lt;br /&gt;
&lt;br /&gt;
===Monadic adjunctions===&lt;br /&gt;
&lt;br /&gt;
====The category of resolutions====&lt;br /&gt;
====Eilenberg-Moore is terminal====&lt;br /&gt;
====Kleisli is initial====&lt;br /&gt;
====Monadic adjunctions====&lt;br /&gt;
====Algebraic theories====&lt;br /&gt;
&lt;br /&gt;
===Properties===&lt;br /&gt;
&lt;br /&gt;
====Composing adjunctions====&lt;br /&gt;
====Preservation of limits/colimits====&lt;br /&gt;
====Freyd&#039;s existence theorem====&lt;br /&gt;
====Beck&#039;s monadicity theorem====&lt;br /&gt;
&lt;br /&gt;
==Limites and Colimits==&lt;br /&gt;
&lt;br /&gt;
===Limits===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example.&#039;&#039;&#039; Cartesian product.&lt;br /&gt;
&lt;br /&gt;
{{ Definition | Binary product.}}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Theorem.&#039;&#039;&#039; &#039;&#039;The product of X and Y, if it exists, is unique up to isomorphism.&#039;&#039; (proof)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Examples.&#039;&#039;&#039; Set, Grp, Ab, Part.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Examples.&#039;&#039;&#039; Preorder, Subset(E), Prop with entailment.&lt;br /&gt;
&lt;br /&gt;
{{ Definition | Diagram. Cone. Limit.}}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example.&#039;&#039;&#039; Limits in Set.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Examples.&#039;&#039;&#039; Shape of diagrams for products, pullbacks, equalizers.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example.&#039;&#039;&#039; Monos as pullbacks.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Theorem.&#039;&#039;&#039; &#039;&#039;The limit of a diagram d, if it exists, is unique up to isomorphism.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Theorem.&#039;&#039;&#039; &#039;&#039;A category with &amp;quot;all&amp;quot; products and equalizers has &amp;quot;all&amp;quot; limits.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Theorem.&#039;&#039;&#039; &#039;&#039;A category with a terminal object and all binary products and all equalizers has &amp;quot;all&amp;quot; finite limits.&lt;br /&gt;
&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
===Colimits===&lt;br /&gt;
&lt;br /&gt;
{{ Definition | Cocone. Colimit.}}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Examples.&#039;&#039;&#039; Sums in Set, Grp, Ab.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Examples.&#039;&#039;&#039; Shape of diagrams for sums, initial objects, pushouts, coequalizers.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example.&#039;&#039;&#039; Epis as pushouts.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Theorem.&#039;&#039;&#039; &#039;&#039;The colimit of a diagram d, if it exists, is unique up to isomorphism.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example.&#039;&#039;&#039; The most general unifier (of two terms) is a coequalizer in the &amp;quot;category of substitutions&amp;quot;.&lt;br /&gt;
 &lt;br /&gt;
&#039;&#039;&#039;Theorem.&#039;&#039;&#039; &#039;&#039;A category with &amp;quot;all&amp;quot; sums and coequalizers has &amp;quot;all&amp;quot; colimits.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Theorem.&#039;&#039;&#039; &#039;&#039;A category with an initial object and all binary sums and all coequalizers has all finite colimits.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
===Limits, colimits and adjunctions===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Theorem.&#039;&#039;&#039; &#039;&#039;A right adjoint preserves limits. A left adjoint preserves colimits.&#039;&#039; (with proof of existence)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example.&#039;&#039;&#039; The adjunction between Set and Grp&lt;br /&gt;
&lt;br /&gt;
===Sums and products===&lt;br /&gt;
&lt;br /&gt;
A category is &#039;&#039;distributive&#039;&#039; if the canonical map from AxB+AxC to Ax(B+C) is an isomorphism.&lt;br /&gt;
&lt;br /&gt;
A category is &#039;&#039;extensive&#039;&#039; if the canonical functor + from C/A x C/B to C/(A+B) is an equivalence. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example.&#039;&#039;&#039; &amp;quot;if..then..else..&amp;quot; from B=1+1 and extensivity.&lt;br /&gt;
 &lt;br /&gt;
==Course Complements, references==&lt;br /&gt;
&lt;br /&gt;
One of the best books about category theory is&lt;br /&gt;
* Saunder MacLane, &#039;&#039;&amp;quot;Categories for the Working Mathematician&amp;quot;&#039;&#039;.&lt;br /&gt;
It is a little &amp;quot;dry&amp;quot;, in the sense that learning categories from it is not the easiest task on earth, but it still is one of the best references.&lt;br /&gt;
&lt;br /&gt;
I haven&#039;t really read it carefully, but here is [http://en.wikipedia.org/wiki/Category_theory what Wikipedia has to say on category theory].&lt;/div&gt;</summary>
		<author><name>DDuval</name></author>
	</entry>
	<entry>
		<id>http://os-vps418.infomaniak.ch:1250/mediawiki/index.php?title=Langage_et_concepts_cat%C3%A9goriques_pour_les_math%C3%A9matiques_et_l%E2%80%99informatique&amp;diff=3956</id>
		<title>Langage et concepts catégoriques pour les mathématiques et l’informatique</title>
		<link rel="alternate" type="text/html" href="http://os-vps418.infomaniak.ch:1250/mediawiki/index.php?title=Langage_et_concepts_cat%C3%A9goriques_pour_les_math%C3%A9matiques_et_l%E2%80%99informatique&amp;diff=3956"/>
		<updated>2009-03-11T14:54:46Z</updated>

		<summary type="html">&lt;p&gt;DDuval : /* Limits */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This is a wiki for a course at the MSTII &amp;quot;École doctorale&amp;quot; of Grenoble.&lt;br /&gt;
&lt;br /&gt;
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...&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===News===&lt;br /&gt;
&lt;br /&gt;
Courses are on wednesdays morning, 9&#039;00 to 12&#039;00 in room F218 at the &amp;quot;UFR IMAG&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
* first course on the 25th of February: categories, functors, natural transformations.&lt;br /&gt;
* March 4. : monads, adjunctions.&lt;br /&gt;
* March 11. : limits and colimits.&lt;br /&gt;
&lt;br /&gt;
==Basic Concepts==&lt;br /&gt;
&lt;br /&gt;
===Categories===&lt;br /&gt;
&lt;br /&gt;
{{Definition |&lt;br /&gt;
A concrete category is given by:&lt;br /&gt;
* a collection of sets &#039;&#039;with structure&#039;&#039;,&lt;br /&gt;
* for any pair of such sets, a set of &#039;&#039;morphisms&#039;&#039; preserving the structure.&lt;br /&gt;
Morphisms should compose, and the identity should be a morphism.}}&lt;br /&gt;
&lt;br /&gt;
This definition is a little informal, but here are some examples:&lt;br /&gt;
* &#039;&#039;&#039;Grp&#039;&#039;&#039;: groups and group morphisms&lt;br /&gt;
* &#039;&#039;&#039;Top&#039;&#039;&#039;: topological spaces and continuous functions&lt;br /&gt;
* &#039;&#039;&#039;Ring&#039;&#039;&#039;: rings and rings morphisms&lt;br /&gt;
* &#039;&#039;&#039;Vect&#039;&#039;&#039;: vectors spaces and linear maps&lt;br /&gt;
* &#039;&#039;&#039;CPO&#039;&#039;&#039;: CPOs and continuous functions&lt;br /&gt;
* ...&lt;br /&gt;
* &#039;&#039;&#039;Set&#039;&#039;&#039;: sets and functions (&#039;&#039;&#039;ie&#039;&#039;&#039; sets with no structures, and arbitrary functions)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Generalizing the definition, we obtain the official definition of category:&lt;br /&gt;
&lt;br /&gt;
{{Definition |&lt;br /&gt;
A category &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt; is given by:&lt;br /&gt;
* a collection &amp;lt;math&amp;gt;\mathcal{C}_o&amp;lt;/math&amp;gt; of &#039;&#039;objects&#039;&#039;,  (notation: &amp;lt;math&amp;gt;A,B,C,X,Y,...&amp;lt;/math&amp;gt;)&lt;br /&gt;
* for each pair &amp;lt;math&amp;gt;A,B&amp;lt;/math&amp;gt; of objects, a collection &amp;lt;math&amp;gt;\mathcal{C}[A,B]&amp;lt;/math&amp;gt; of &#039;&#039;morphisms from &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&#039;&#039;,  (notation &amp;lt;math&amp;gt; f : A\to B&amp;lt;/math&amp;gt;)&lt;br /&gt;
* for any object &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;, a special morphism &amp;lt;math&amp;gt;i_A : A\to A&amp;lt;/math&amp;gt;&lt;br /&gt;
* for all objects &amp;lt;math&amp;gt;A,B,C&amp;lt;/math&amp;gt;, a composition &amp;lt;math&amp;gt;\circ : \mathcal{C}[B,C] \times \mathcal{C}[A,B] \to \mathcal{C}[A,C]&amp;lt;/math&amp;gt;,&lt;br /&gt;
such that:&lt;br /&gt;
* &amp;lt;math&amp;gt;f \in \mathcal{C}[A,B] \implies f\circ i_A = i_B\circ f = f&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;f\circ(g\circ h) = (f\circ g)\circ h&amp;lt;/math&amp;gt; whenever it makes sense.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
All concrete categories are categories, and here are some examples that are not obviously concrete:&lt;br /&gt;
* &#039;&#039;&#039;Graph&#039;&#039;&#039;: graphs and graph morphisms&lt;br /&gt;
* &#039;&#039;&#039;Rel&#039;&#039;&#039;: sets and relations&lt;br /&gt;
* &#039;&#039;&#039;Set×Set&#039;&#039;&#039;: pairs of sets, pairs of functions&lt;br /&gt;
* &#039;&#039;&#039;Set&amp;lt;math&amp;gt;^{op}&amp;lt;/math&amp;gt;&#039;&#039;&#039;: opposite of &#039;&#039;&#039;Set&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;P&#039;&#039;&#039;, whenever (&#039;&#039;&#039;P&#039;&#039;&#039;,&amp;lt;) is a preorder (at most one morphism between objects)&lt;br /&gt;
* &#039;&#039;&#039;M&#039;&#039;&#039;, whenever (&#039;&#039;&#039;M&#039;&#039;&#039;,e,×) is a monoid (a single object)&lt;br /&gt;
&lt;br /&gt;
We sometimes write &amp;lt;math&amp;gt;gf&amp;lt;/math&amp;gt; instead of &amp;lt;math&amp;gt;g \circ f&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
In a given category &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt;, there are analogues of the notions of injective and surjective functions in &#039;&#039;&#039;Set&#039;&#039;&#039;. We will see that on concrete categories, they are actually slightly more general. The idea of injectivity gives rise to &#039;&#039;monomorphisms&#039;&#039;, and surjectivity gives rise to &#039;&#039;epimorphisms&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
{{Definition |&lt;br /&gt;
&lt;br /&gt;
A morphism &amp;lt;math&amp;gt;f \colon A \to B&amp;lt;/math&amp;gt; is a &#039;&#039;monomorphism&#039;&#039; iff for all object &amp;lt;math&amp;gt;C&amp;lt;/math&amp;gt; and morphisms &amp;lt;math&amp;gt;g,h \colon C \to A&amp;lt;/math&amp;gt;, we have &amp;lt;math&amp;gt;fg = fh&amp;lt;/math&amp;gt; implies &amp;lt;math&amp;gt;g = h&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The morphism &amp;lt;math&amp;gt;f&amp;lt;/math&amp;gt; is an &#039;&#039;epimorphism&#039;&#039; when it is a monomorphism in &amp;lt;math&amp;gt;\mathcal{C}^{op}&amp;lt;/math&amp;gt;. Explicitly, when for all object &amp;lt;math&amp;gt;C&amp;lt;/math&amp;gt; and morphisms &amp;lt;math&amp;gt;g,h \colon B \to C&amp;lt;/math&amp;gt;, we have &amp;lt;math&amp;gt;gf = hf&amp;lt;/math&amp;gt; implies &amp;lt;math&amp;gt;g = h&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
  isomorphism&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Exercice&amp;lt;/u&amp;gt;&lt;br /&gt;
# Prove that in &#039;&#039;&#039;Set&#039;&#039;&#039;, epic is equivalent to surjective and monic is equivalent to injective.&lt;br /&gt;
# Prove the same thing in &#039;&#039;&#039;Ab&#039;&#039;&#039;, the category of commutative groups. (One thing is not obvious.)&lt;br /&gt;
# Prove the same thing in &#039;&#039;&#039;Grp&#039;&#039;&#039;, the category of (non necessarily commutative) groups. (One thing is not obvious at all.)&lt;br /&gt;
# Prove that &amp;lt;math&amp;gt;i : \mathbf{Z} \to \mathbf{Q}&amp;lt;/math&amp;gt; is an epimorphism in the category of rings with multiplicative neutral. (Note that it is not surjective.)&lt;br /&gt;
# In &#039;&#039;&#039;Set&#039;&#039;&#039;, we saw that &#039;&#039;f&#039;&#039; is a monic iff &amp;lt;math&amp;gt;\forall x,y : 1 \to A, f\circ x = f\circ y \implies x=y&amp;lt;/math&amp;gt;, where 1 is any singleton set. Can you find a set &#039;&#039;C&#039;&#039; such that &#039;&#039;f&#039;&#039; is epic iff &amp;lt;math&amp;gt;\forall p,q : B \to C, p\circ f = j\circ f \implies p=q&amp;lt;/math&amp;gt;?&lt;br /&gt;
# In &#039;&#039;&#039;Group&#039;&#039;&#039;, can you find an object playing a role similar to 1, &#039;&#039;ie&#039;&#039; a group &#039;&#039;G&#039;&#039; s.t. &#039;&#039;f&#039;&#039; is monic iff &amp;lt;math&amp;gt;\forall x,y : G \to A, f\circ x = f\circ y \implies x=y&amp;lt;/math&amp;gt;. (We saw that we cannot use the singleton group ({e},e,×) to do that...)&lt;br /&gt;
&lt;br /&gt;
===Functors===&lt;br /&gt;
&lt;br /&gt;
Informally, a functor is a map between two categories which somehow preserves the structure of categories (namely, composition).&lt;br /&gt;
&lt;br /&gt;
{{Definition |&lt;br /&gt;
A functor &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; from a category &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt; to a category &amp;lt;math&amp;gt;\mathcal{D}&amp;lt;/math&amp;gt;, noted &amp;lt;math&amp;gt;F \colon \mathcal{C} \to \mathcal{D}&amp;lt;/math&amp;gt;, is given by:&lt;br /&gt;
* a map which sends every object &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; of &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt; to an object &amp;lt;math&amp;gt;FA&amp;lt;/math&amp;gt; in &amp;lt;math&amp;gt;\mathcal{D}&amp;lt;/math&amp;gt;, and&lt;br /&gt;
* a map which sends every morphism &amp;lt;math&amp;gt;f \colon A \to B&amp;lt;/math&amp;gt; in &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt;, to a morphism &amp;lt;math&amp;gt;Ff&amp;lt;/math&amp;gt; in &amp;lt;math&amp;gt;\mathcal{D}[FA, FB]&amp;lt;/math&amp;gt;,&lt;br /&gt;
such that:&lt;br /&gt;
* &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; preserves identities, i.e., &amp;lt;math&amp;gt;F(id_A) = id_{FA}&amp;lt;/math&amp;gt;, and&lt;br /&gt;
* &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; preserves composition: &amp;lt;math&amp;gt;F(f \circ g) = F(f) \circ F(g)&amp;lt;/math&amp;gt;.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Exercice&amp;lt;/u&amp;gt;&lt;br /&gt;
# Take a functor &amp;lt;math&amp;gt;F \colon \mathcal{C} \to \mathcal{D}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;f, g, h&amp;lt;/math&amp;gt; three morphisms in &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt;, and &amp;lt;math&amp;gt;f&#039; = Ff&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;g&#039; = Fg&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;h&#039; = Fh&amp;lt;/math&amp;gt;. When &amp;lt;math&amp;gt;h&#039; = f&#039; \circ g&#039;&amp;lt;/math&amp;gt;, can we say something interesting about &amp;lt;math&amp;gt;f&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;g&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;h&amp;lt;/math&amp;gt;?&lt;br /&gt;
# Do functors preserve monomorphisms? Do functors preserve epimorphisms?&lt;br /&gt;
# Let &#039;&#039;F&#039;&#039; be a functor and &#039;&#039;F(f) = g&#039;&#039;, if &#039;&#039;g&#039;&#039; is a mono (resp. epi), is &#039;&#039;f&#039;&#039; a mono (resp. epi)?&lt;br /&gt;
If not, try to find some simple and natural condition on the functor to make that true.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Answer&amp;lt;/u&amp;gt;&lt;br /&gt;
# No, since &amp;lt;math&amp;gt;f&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;g&amp;lt;/math&amp;gt; may not even compose! This is the case when &amp;lt;math&amp;gt;f&amp;lt;/math&amp;gt; has type &amp;lt;math&amp;gt;A \to B&amp;lt;/math&amp;gt;, and &amp;lt;math&amp;gt;g \colon C \to D&amp;lt;/math&amp;gt;, with &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; collapsing &amp;lt;math&amp;gt;D&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; (i.e., &amp;lt;math&amp;gt;FA = FD&amp;lt;/math&amp;gt;).&lt;br /&gt;
# Functors in general do not preserve mono- nor epimorphisms. We build a counter-example for monomorphisms. Let &amp;lt;math&amp;gt;\mathbf{2}&amp;lt;/math&amp;gt; be the category with two objects &amp;lt;math&amp;gt;\star&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\bullet&amp;lt;/math&amp;gt;, and exactly one morphism &amp;lt;math&amp;gt;m \colon \star \to \bullet&amp;lt;/math&amp;gt;. This is a preorder, so &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; is monic. Now take &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt; with two objects &amp;lt;math&amp;gt;\star&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\bullet&amp;lt;/math&amp;gt;, exactly one morphism &amp;lt;math&amp;gt;m \colon \star \to \bullet&amp;lt;/math&amp;gt;, and one extra morphism &amp;lt;math&amp;gt;n \colon \star \to \star&amp;lt;/math&amp;gt;, different from the identity. Because of &amp;lt;math&amp;gt;n \neq id_\star&amp;lt;/math&amp;gt;, yet &amp;lt;math&amp;gt;m \circ n = m \circ id&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; is not monic in &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt;. The functor which sends &amp;lt;math&amp;gt;\star&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;\star&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;\bullet&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;\bullet&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; in &amp;lt;math&amp;gt;\mathbf{2}&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; in &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt;, does not preserve monomorphisms.&lt;br /&gt;
# In general, the answer is (again) no. For monos, take for example the functor &amp;lt;math&amp;gt;\mathcal{C} \to \mathbf{2}&amp;lt;/math&amp;gt; which sends &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; to the identity. Yet, when &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; is &#039;&#039;faithful&#039;&#039;, then &amp;lt;math&amp;gt;f&amp;lt;/math&amp;gt; is monic (or epic).&lt;br /&gt;
&lt;br /&gt;
{{Definition |&lt;br /&gt;
A functor &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; is faithful when, for any two morphisms &amp;lt;math&amp;gt;f, g&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;Ff = Fg&amp;lt;/math&amp;gt; implies &amp;lt;math&amp;gt;f=g&amp;lt;/math&amp;gt; (&amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; is injective on morphisms).&lt;br /&gt;
}}&lt;br /&gt;
{{Definition |&lt;br /&gt;
A functor &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; is full when, for any two objects &amp;lt;math&amp;gt;A, B&amp;lt;/math&amp;gt;, if &amp;lt;math&amp;gt;g&amp;lt;/math&amp;gt; is a morphism &amp;lt;math&amp;gt;FA \to FB&amp;lt;/math&amp;gt;, then there exists &amp;lt;math&amp;gt;f \colon A \to B&amp;lt;/math&amp;gt; with &amp;lt;math&amp;gt;Ff = g&amp;lt;/math&amp;gt; (&amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; is surjective on morphisms).&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Exercice&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Find an &amp;quot;interesting&amp;quot; functor from &#039;&#039;&#039;Set&#039;&#039;&#039; to &#039;&#039;&#039;Group&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Answer&amp;lt;/u&amp;gt;&lt;br /&gt;
Let &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; be the functor which sends:&lt;br /&gt;
* every set &amp;lt;math&amp;gt;X&amp;lt;/math&amp;gt; to the free group generated by &amp;lt;math&amp;gt;X&amp;lt;/math&amp;gt;, and&lt;br /&gt;
* every function &amp;lt;math&amp;gt;f \colon X \to Y&amp;lt;/math&amp;gt; to a group morphism defined by: &amp;lt;math&amp;gt;Ff(x_1^{\alpha_1}\times\dots\times x_k^{\alpha_k})=f(x_1)^{\alpha_1} \times \dots \times f(x_k)^{\alpha_k}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Exercice&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt; is a locally small category and &#039;&#039;A&#039;&#039; one of its objects, let &amp;lt;math&amp;gt;Y_A : X \mapsto \mathcal{C}[X,A]&amp;lt;/math&amp;gt;. Show that this operation from objects of &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt; to sets can be extended into a contravariant functor &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt; to &#039;&#039;&#039;Set&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Answer&amp;lt;/u&amp;gt;&lt;br /&gt;
Let &amp;lt;math&amp;gt;f\colon X \to Y&amp;lt;/math&amp;gt; be a morphism in &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt;, then &amp;lt;math&amp;gt;Y_A(f)&amp;lt;/math&amp;gt; is expected to be a function from the set &amp;lt;math&amp;gt;\mathcal{C}[Y, A]&amp;lt;/math&amp;gt; to the set &amp;lt;math&amp;gt;\mathcal{C}[X, A]&amp;lt;/math&amp;gt;. We can take, for any morphism &amp;lt;math&amp;gt;m \in \mathcal{C}[Y,A]&amp;lt;/math&amp;gt;: &amp;lt;math&amp;gt;Y_A(f)(m) = m \circ f&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
This extends &amp;lt;math&amp;gt;Y_A&amp;lt;/math&amp;gt; to a contravariant functor, since &amp;lt;math&amp;gt;Y_A(id_X) = id_{\mathcal{C}[X, A]}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;Y_A(f \circ g)(m) = m \circ (f \circ g) = (m \circ f) \circ g = (Y_A(g) \circ Y_A(f))(m)&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===Natural Transformations===&lt;br /&gt;
&lt;br /&gt;
{{Definition |&lt;br /&gt;
Let &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;G&amp;lt;/math&amp;gt; be two functors &amp;lt;math&amp;gt;\mathcal{C} \to \mathcal{D}&amp;lt;/math&amp;gt;. A natural transformation &amp;lt;math&amp;gt;\alpha&amp;lt;/math&amp;gt; from &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;G&amp;lt;/math&amp;gt; is given by:&lt;br /&gt;
* a morphism &amp;lt;math&amp;gt;\alpha_A \colon FA \to GA&amp;lt;/math&amp;gt; in &amp;lt;math&amp;gt;\mathcal{D}&amp;lt;/math&amp;gt; for every object &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; in &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt;,&lt;br /&gt;
* such that, for any morphism &amp;lt;math&amp;gt;f \colon A \to B&amp;lt;/math&amp;gt;, we have &amp;lt;math&amp;gt;Gf \circ \alpha_A = \alpha_B \circ Ff&amp;lt;/math&amp;gt;.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Exercice&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If &amp;lt;math&amp;gt;P(X)&amp;lt;/math&amp;gt; is the set of permutation of a (finite) set &#039;&#039;X&#039;&#039;; and &amp;lt;math&amp;gt;L(X)&amp;lt;/math&amp;gt; the set of its linear orderings, we have &amp;lt;math&amp;gt;\#(L(X)) = \#(L(X)) = n!&amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;n = \#(X)&amp;lt;/math&amp;gt;. Thus, there is a bijection (iso in &#039;&#039;&#039;Set&#039;&#039;&#039;) between &#039;&#039;P(X)&#039;&#039; and &#039;&#039;L(X)&#039;&#039;.&lt;br /&gt;
# Show that we can extend &#039;&#039;P&#039;&#039; and &#039;&#039;L&#039;&#039; to functors from &#039;&#039;&#039;B&#039;&#039;&#039; to &#039;&#039;&#039;Set&#039;&#039;&#039;, where &#039;&#039;&#039;B&#039;&#039;&#039; is the category of finite sets and bijections,&lt;br /&gt;
# Show that there can be no natural transformation from &#039;&#039;P&#039;&#039; to &#039;&#039;L&#039;&#039;,&lt;br /&gt;
# Conclude that there is no natural isomorphism between &#039;&#039;P&#039;&#039; and &#039;&#039;L&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
==Adjunctions==&lt;br /&gt;
&lt;br /&gt;
===About Limits and Colimits===&lt;br /&gt;
&lt;br /&gt;
One of the main thrusts of category theory is to define concepts by&lt;br /&gt;
their properties rather than by explicit construction. In general this&lt;br /&gt;
is just called abstraction, but in good cases, concepts are&lt;br /&gt;
&#039;&#039;defined&#039;&#039; by their properties, at least canonically if not uniquely.&lt;br /&gt;
&lt;br /&gt;
The chief example of this is binary products in &#039;&#039;&#039;Set&#039;&#039;&#039;.  The&lt;br /&gt;
product &amp;lt;math&amp;gt;A \times B&amp;lt;/math&amp;gt; of two sets &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; and&lt;br /&gt;
&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt; is generally thought of as the set of pairs &amp;lt;math&amp;gt; (x,&lt;br /&gt;
y) &amp;lt;/math&amp;gt; with &amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;y \in B&amp;lt;/math&amp;gt;.  But&lt;br /&gt;
strictly speaking, or rather set-theoretically speaking, one has to&lt;br /&gt;
construct it by cautious use of the axioms of Zermelo-Fraenkel set&lt;br /&gt;
theory.&lt;br /&gt;
&lt;br /&gt;
Instead, in any category &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt;, for any objects&lt;br /&gt;
&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt; categorists put: &lt;br /&gt;
&lt;br /&gt;
{{Definition | A&lt;br /&gt;
&#039;&#039;product&#039;&#039; of &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt; is an object &amp;lt;math&amp;gt;C&amp;lt;/math&amp;gt;&lt;br /&gt;
with arrows&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;A \xleftarrow{\pi_1} C \xrightarrow{\pi_2} B&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
such that for any object &amp;lt;math&amp;gt;D&amp;lt;/math&amp;gt; and arrows&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;A \xleftarrow{f} D \xrightarrow{g} B&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
there exists a unique arrow &amp;lt;math&amp;gt;h&amp;lt;/math&amp;gt; making the diagram&lt;br /&gt;
[[Image:prod.png|center|Universal property of product]]&lt;br /&gt;
commute, i.e., &amp;lt;math&amp;gt;\pi_1 \circ h = f&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\pi_2 \circ h = g&amp;lt;/math&amp;gt;.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
The standard constructions in &#039;&#039;&#039;Set&#039;&#039;&#039; all have this property, and&lt;br /&gt;
all the non-standard ones you can think of also do, e.g., the set of&lt;br /&gt;
pairs &amp;lt;math&amp;gt; (\emptyset, x, y) &amp;lt;/math&amp;gt; with &amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;y&lt;br /&gt;
\in B&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Conversely, any set with this property is as good as any other&lt;br /&gt;
construction of &amp;lt;math&amp;gt;A \times B&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Products are determined &#039;&#039;canonically&#039;&#039; by this property&lt;br /&gt;
property. We will give a more precise meaning to this in later&lt;br /&gt;
lectures; for now we just state:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Lemma.&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For any other product &amp;lt;center&amp;gt;&amp;lt;math&amp;gt;A \xleftarrow{p} E \xrightarrow{q} B&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt; of &lt;br /&gt;
&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;, there is a unique isomorphism pair &amp;lt;math&amp;gt; (r, s) &amp;lt;/math&amp;gt; &lt;br /&gt;
such that the diagrams&lt;br /&gt;
&lt;br /&gt;
[[Image:prod-iso.png|upright=2]] and &lt;br /&gt;
[[Image:prod-iso-2.png|upright=2]]&lt;br /&gt;
&lt;br /&gt;
commute.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===First examples and definition===&lt;br /&gt;
&lt;br /&gt;
====So-called &#039;&#039;free&#039;&#039; constructions in algebra: monoid, group, etc====&lt;br /&gt;
====Their universal property, the underlying functor====&lt;br /&gt;
====The isomorphism between hom-sets====&lt;br /&gt;
====Its naturality====&lt;br /&gt;
====Definition====&lt;br /&gt;
====On to the definition with &amp;lt;math&amp;gt;\eta&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\epsilon&amp;lt;/math&amp;gt;====&lt;br /&gt;
&lt;br /&gt;
===The simplicity behind definitions:2-categories and adjunctions therein===&lt;br /&gt;
&lt;br /&gt;
====Definition of 2-categories====&lt;br /&gt;
====String diagrams====&lt;br /&gt;
====&#039;&#039;&#039;CAT&#039;&#039;&#039; as a 2-category====&lt;br /&gt;
====Adjunctions in a 2-category====&lt;br /&gt;
&lt;br /&gt;
===Other basic examples===&lt;br /&gt;
&lt;br /&gt;
====Discussion: any syntax defines the free something==== The issue of &lt;br /&gt;
variable binding.&lt;br /&gt;
====Adjunction between partial orders = Galois connection====&lt;br /&gt;
====&amp;lt;math&amp;gt;\times&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\Rightarrow&amp;lt;/math&amp;gt; in logic====&lt;br /&gt;
====Sets/graphs and categories====&lt;br /&gt;
&lt;br /&gt;
===Monads and resolutions===&lt;br /&gt;
&lt;br /&gt;
====Definition of a monad====&lt;br /&gt;
====String diagrams====&lt;br /&gt;
====Every adjunction yields a monad====&lt;br /&gt;
====Example of monoids again: resolutions====&lt;br /&gt;
&lt;br /&gt;
===Monadic adjunctions===&lt;br /&gt;
&lt;br /&gt;
====The category of resolutions====&lt;br /&gt;
====Eilenberg-Moore is terminal====&lt;br /&gt;
====Kleisli is initial====&lt;br /&gt;
====Monadic adjunctions====&lt;br /&gt;
====Algebraic theories====&lt;br /&gt;
&lt;br /&gt;
===Properties===&lt;br /&gt;
&lt;br /&gt;
====Composing adjunctions====&lt;br /&gt;
====Preservation of limits/colimits====&lt;br /&gt;
====Freyd&#039;s existence theorem====&lt;br /&gt;
====Beck&#039;s monadicity theorem====&lt;br /&gt;
&lt;br /&gt;
==Limites and Colimits==&lt;br /&gt;
&lt;br /&gt;
===Limits===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example.&#039;&#039;&#039; Cartesian product.&lt;br /&gt;
&lt;br /&gt;
{{ Definition | Binary product.}}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Theorem.&#039;&#039;&#039; &#039;&#039;The product of X and Y, if it exists, is unique up to isomorphism.&#039;&#039; (proof)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Examples.&#039;&#039;&#039; Set, Grp, Ab, Part.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Examples.&#039;&#039;&#039; Preorder, Subset(E), Prop with entailment.&lt;br /&gt;
&lt;br /&gt;
{{ Definition | Diagram. Cone. Limit.}}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example.&#039;&#039;&#039; Limits in Set.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Examples.&#039;&#039;&#039; Shape of diagrams for products, pullbacks, equalizers.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example.&#039;&#039;&#039; Monos as pullbacks.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Theorem.&#039;&#039;&#039; &#039;&#039;The limit of a diagram d, if it exists, is unique up to isomorphism.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Theorem.&#039;&#039;&#039; &#039;&#039;A category with &amp;quot;all&amp;quot; products and equalizers has &amp;quot;all&amp;quot; limits.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Theorem.&#039;&#039;&#039; &#039;&#039;A category with a terminal object and all binary products and all equalizers has &amp;quot;all&amp;quot; finite limits.&lt;br /&gt;
&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* Colimites (limites inductives, limites directes, lim--&amp;gt;) &lt;br /&gt;
&lt;br /&gt;
cocône, colimite &lt;br /&gt;
THEO. unicité à iso près (preuve : dualité)&lt;br /&gt;
somme binaire, n-aire, objet initial (somme, coproduit, produit libre)&lt;br /&gt;
  EX. Set, Grp, Ab, Part (X+Y),&lt;br /&gt;
  EX. préordre (&amp;quot;join&amp;quot; ou sup), Sub(X) (union), Prop avec |- (entailment) :&lt;br /&gt;
     somme = &amp;quot;ou&amp;quot;, coproj = élim. &amp;quot;ou&amp;quot;, paires = intro. &amp;quot;ou&amp;quot;, initial = &amp;quot;false&amp;quot; &lt;br /&gt;
coproj =/=&amp;gt; mono&lt;br /&gt;
pushout, épi, coégaliseur&lt;br /&gt;
  EX. coégaliseur vs most general unifier : &lt;br /&gt;
   catégorie de Kleisli de la monade des termes &amp;quot;Subst&amp;quot;&lt;br /&gt;
  (EX. dpo ?)&lt;br /&gt;
THEO. coégaliseurs &amp;amp; sommes  =&amp;gt; colimites &lt;br /&gt;
THEO. coégaliseurs &amp;amp; sommes binaires &amp;amp; objet initial =&amp;gt; colimites finies &lt;br /&gt;
&lt;br /&gt;
*  Divers&lt;br /&gt;
&lt;br /&gt;
Adjonction&lt;br /&gt;
THEO. &lt;br /&gt;
  un adjoint à droite préserve les limites (preuve : exercice [ML])&lt;br /&gt;
  un adjoint à gauche préserve les colimites (preuve : dualité)&lt;br /&gt;
  EX. U:Grp-&amp;gt;Set préserve les limites, pas les colimites &lt;br /&gt;
&lt;br /&gt;
Produits et sommes :&lt;br /&gt;
distributivité : a category with finite sums and products such that &lt;br /&gt;
  the canonical map AxB+AxC --&amp;gt; Ax(B+C) is an isomorphism&lt;br /&gt;
extensivité : a category with finite sums for which the canonical functor &lt;br /&gt;
  + : C/A x C/B --&amp;gt; C/(A+B) is an equivalence. &lt;br /&gt;
EX. &amp;quot;if..then..else..&amp;quot;. p:X-&amp;gt;B avec B=1+1. &lt;br /&gt;
  D&#039;où X =X(p)+X(-p) par extensivité. Alors X(p) et X(-p) sont des PB [CLW].&lt;br /&gt;
&lt;br /&gt;
==Course Complements, references==&lt;br /&gt;
&lt;br /&gt;
One of the best books about category theory is&lt;br /&gt;
* Saunder MacLane, &#039;&#039;&amp;quot;Categories for the Working Mathematician&amp;quot;&#039;&#039;.&lt;br /&gt;
It is a little &amp;quot;dry&amp;quot;, in the sense that learning categories from it is not the easiest task on earth, but it still is one of the best references.&lt;br /&gt;
&lt;br /&gt;
I haven&#039;t really read it carefully, but here is [http://en.wikipedia.org/wiki/Category_theory what Wikipedia has to say on category theory].&lt;/div&gt;</summary>
		<author><name>DDuval</name></author>
	</entry>
	<entry>
		<id>http://os-vps418.infomaniak.ch:1250/mediawiki/index.php?title=Langage_et_concepts_cat%C3%A9goriques_pour_les_math%C3%A9matiques_et_l%E2%80%99informatique&amp;diff=3955</id>
		<title>Langage et concepts catégoriques pour les mathématiques et l’informatique</title>
		<link rel="alternate" type="text/html" href="http://os-vps418.infomaniak.ch:1250/mediawiki/index.php?title=Langage_et_concepts_cat%C3%A9goriques_pour_les_math%C3%A9matiques_et_l%E2%80%99informatique&amp;diff=3955"/>
		<updated>2009-03-11T14:54:18Z</updated>

		<summary type="html">&lt;p&gt;DDuval : /* Limits */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This is a wiki for a course at the MSTII &amp;quot;École doctorale&amp;quot; of Grenoble.&lt;br /&gt;
&lt;br /&gt;
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...&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===News===&lt;br /&gt;
&lt;br /&gt;
Courses are on wednesdays morning, 9&#039;00 to 12&#039;00 in room F218 at the &amp;quot;UFR IMAG&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
* first course on the 25th of February: categories, functors, natural transformations.&lt;br /&gt;
* March 4. : monads, adjunctions.&lt;br /&gt;
* March 11. : limits and colimits.&lt;br /&gt;
&lt;br /&gt;
==Basic Concepts==&lt;br /&gt;
&lt;br /&gt;
===Categories===&lt;br /&gt;
&lt;br /&gt;
{{Definition |&lt;br /&gt;
A concrete category is given by:&lt;br /&gt;
* a collection of sets &#039;&#039;with structure&#039;&#039;,&lt;br /&gt;
* for any pair of such sets, a set of &#039;&#039;morphisms&#039;&#039; preserving the structure.&lt;br /&gt;
Morphisms should compose, and the identity should be a morphism.}}&lt;br /&gt;
&lt;br /&gt;
This definition is a little informal, but here are some examples:&lt;br /&gt;
* &#039;&#039;&#039;Grp&#039;&#039;&#039;: groups and group morphisms&lt;br /&gt;
* &#039;&#039;&#039;Top&#039;&#039;&#039;: topological spaces and continuous functions&lt;br /&gt;
* &#039;&#039;&#039;Ring&#039;&#039;&#039;: rings and rings morphisms&lt;br /&gt;
* &#039;&#039;&#039;Vect&#039;&#039;&#039;: vectors spaces and linear maps&lt;br /&gt;
* &#039;&#039;&#039;CPO&#039;&#039;&#039;: CPOs and continuous functions&lt;br /&gt;
* ...&lt;br /&gt;
* &#039;&#039;&#039;Set&#039;&#039;&#039;: sets and functions (&#039;&#039;&#039;ie&#039;&#039;&#039; sets with no structures, and arbitrary functions)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Generalizing the definition, we obtain the official definition of category:&lt;br /&gt;
&lt;br /&gt;
{{Definition |&lt;br /&gt;
A category &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt; is given by:&lt;br /&gt;
* a collection &amp;lt;math&amp;gt;\mathcal{C}_o&amp;lt;/math&amp;gt; of &#039;&#039;objects&#039;&#039;,  (notation: &amp;lt;math&amp;gt;A,B,C,X,Y,...&amp;lt;/math&amp;gt;)&lt;br /&gt;
* for each pair &amp;lt;math&amp;gt;A,B&amp;lt;/math&amp;gt; of objects, a collection &amp;lt;math&amp;gt;\mathcal{C}[A,B]&amp;lt;/math&amp;gt; of &#039;&#039;morphisms from &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&#039;&#039;,  (notation &amp;lt;math&amp;gt; f : A\to B&amp;lt;/math&amp;gt;)&lt;br /&gt;
* for any object &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;, a special morphism &amp;lt;math&amp;gt;i_A : A\to A&amp;lt;/math&amp;gt;&lt;br /&gt;
* for all objects &amp;lt;math&amp;gt;A,B,C&amp;lt;/math&amp;gt;, a composition &amp;lt;math&amp;gt;\circ : \mathcal{C}[B,C] \times \mathcal{C}[A,B] \to \mathcal{C}[A,C]&amp;lt;/math&amp;gt;,&lt;br /&gt;
such that:&lt;br /&gt;
* &amp;lt;math&amp;gt;f \in \mathcal{C}[A,B] \implies f\circ i_A = i_B\circ f = f&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;f\circ(g\circ h) = (f\circ g)\circ h&amp;lt;/math&amp;gt; whenever it makes sense.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
All concrete categories are categories, and here are some examples that are not obviously concrete:&lt;br /&gt;
* &#039;&#039;&#039;Graph&#039;&#039;&#039;: graphs and graph morphisms&lt;br /&gt;
* &#039;&#039;&#039;Rel&#039;&#039;&#039;: sets and relations&lt;br /&gt;
* &#039;&#039;&#039;Set×Set&#039;&#039;&#039;: pairs of sets, pairs of functions&lt;br /&gt;
* &#039;&#039;&#039;Set&amp;lt;math&amp;gt;^{op}&amp;lt;/math&amp;gt;&#039;&#039;&#039;: opposite of &#039;&#039;&#039;Set&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;P&#039;&#039;&#039;, whenever (&#039;&#039;&#039;P&#039;&#039;&#039;,&amp;lt;) is a preorder (at most one morphism between objects)&lt;br /&gt;
* &#039;&#039;&#039;M&#039;&#039;&#039;, whenever (&#039;&#039;&#039;M&#039;&#039;&#039;,e,×) is a monoid (a single object)&lt;br /&gt;
&lt;br /&gt;
We sometimes write &amp;lt;math&amp;gt;gf&amp;lt;/math&amp;gt; instead of &amp;lt;math&amp;gt;g \circ f&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
In a given category &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt;, there are analogues of the notions of injective and surjective functions in &#039;&#039;&#039;Set&#039;&#039;&#039;. We will see that on concrete categories, they are actually slightly more general. The idea of injectivity gives rise to &#039;&#039;monomorphisms&#039;&#039;, and surjectivity gives rise to &#039;&#039;epimorphisms&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
{{Definition |&lt;br /&gt;
&lt;br /&gt;
A morphism &amp;lt;math&amp;gt;f \colon A \to B&amp;lt;/math&amp;gt; is a &#039;&#039;monomorphism&#039;&#039; iff for all object &amp;lt;math&amp;gt;C&amp;lt;/math&amp;gt; and morphisms &amp;lt;math&amp;gt;g,h \colon C \to A&amp;lt;/math&amp;gt;, we have &amp;lt;math&amp;gt;fg = fh&amp;lt;/math&amp;gt; implies &amp;lt;math&amp;gt;g = h&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The morphism &amp;lt;math&amp;gt;f&amp;lt;/math&amp;gt; is an &#039;&#039;epimorphism&#039;&#039; when it is a monomorphism in &amp;lt;math&amp;gt;\mathcal{C}^{op}&amp;lt;/math&amp;gt;. Explicitly, when for all object &amp;lt;math&amp;gt;C&amp;lt;/math&amp;gt; and morphisms &amp;lt;math&amp;gt;g,h \colon B \to C&amp;lt;/math&amp;gt;, we have &amp;lt;math&amp;gt;gf = hf&amp;lt;/math&amp;gt; implies &amp;lt;math&amp;gt;g = h&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
  isomorphism&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Exercice&amp;lt;/u&amp;gt;&lt;br /&gt;
# Prove that in &#039;&#039;&#039;Set&#039;&#039;&#039;, epic is equivalent to surjective and monic is equivalent to injective.&lt;br /&gt;
# Prove the same thing in &#039;&#039;&#039;Ab&#039;&#039;&#039;, the category of commutative groups. (One thing is not obvious.)&lt;br /&gt;
# Prove the same thing in &#039;&#039;&#039;Grp&#039;&#039;&#039;, the category of (non necessarily commutative) groups. (One thing is not obvious at all.)&lt;br /&gt;
# Prove that &amp;lt;math&amp;gt;i : \mathbf{Z} \to \mathbf{Q}&amp;lt;/math&amp;gt; is an epimorphism in the category of rings with multiplicative neutral. (Note that it is not surjective.)&lt;br /&gt;
# In &#039;&#039;&#039;Set&#039;&#039;&#039;, we saw that &#039;&#039;f&#039;&#039; is a monic iff &amp;lt;math&amp;gt;\forall x,y : 1 \to A, f\circ x = f\circ y \implies x=y&amp;lt;/math&amp;gt;, where 1 is any singleton set. Can you find a set &#039;&#039;C&#039;&#039; such that &#039;&#039;f&#039;&#039; is epic iff &amp;lt;math&amp;gt;\forall p,q : B \to C, p\circ f = j\circ f \implies p=q&amp;lt;/math&amp;gt;?&lt;br /&gt;
# In &#039;&#039;&#039;Group&#039;&#039;&#039;, can you find an object playing a role similar to 1, &#039;&#039;ie&#039;&#039; a group &#039;&#039;G&#039;&#039; s.t. &#039;&#039;f&#039;&#039; is monic iff &amp;lt;math&amp;gt;\forall x,y : G \to A, f\circ x = f\circ y \implies x=y&amp;lt;/math&amp;gt;. (We saw that we cannot use the singleton group ({e},e,×) to do that...)&lt;br /&gt;
&lt;br /&gt;
===Functors===&lt;br /&gt;
&lt;br /&gt;
Informally, a functor is a map between two categories which somehow preserves the structure of categories (namely, composition).&lt;br /&gt;
&lt;br /&gt;
{{Definition |&lt;br /&gt;
A functor &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; from a category &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt; to a category &amp;lt;math&amp;gt;\mathcal{D}&amp;lt;/math&amp;gt;, noted &amp;lt;math&amp;gt;F \colon \mathcal{C} \to \mathcal{D}&amp;lt;/math&amp;gt;, is given by:&lt;br /&gt;
* a map which sends every object &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; of &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt; to an object &amp;lt;math&amp;gt;FA&amp;lt;/math&amp;gt; in &amp;lt;math&amp;gt;\mathcal{D}&amp;lt;/math&amp;gt;, and&lt;br /&gt;
* a map which sends every morphism &amp;lt;math&amp;gt;f \colon A \to B&amp;lt;/math&amp;gt; in &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt;, to a morphism &amp;lt;math&amp;gt;Ff&amp;lt;/math&amp;gt; in &amp;lt;math&amp;gt;\mathcal{D}[FA, FB]&amp;lt;/math&amp;gt;,&lt;br /&gt;
such that:&lt;br /&gt;
* &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; preserves identities, i.e., &amp;lt;math&amp;gt;F(id_A) = id_{FA}&amp;lt;/math&amp;gt;, and&lt;br /&gt;
* &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; preserves composition: &amp;lt;math&amp;gt;F(f \circ g) = F(f) \circ F(g)&amp;lt;/math&amp;gt;.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Exercice&amp;lt;/u&amp;gt;&lt;br /&gt;
# Take a functor &amp;lt;math&amp;gt;F \colon \mathcal{C} \to \mathcal{D}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;f, g, h&amp;lt;/math&amp;gt; three morphisms in &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt;, and &amp;lt;math&amp;gt;f&#039; = Ff&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;g&#039; = Fg&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;h&#039; = Fh&amp;lt;/math&amp;gt;. When &amp;lt;math&amp;gt;h&#039; = f&#039; \circ g&#039;&amp;lt;/math&amp;gt;, can we say something interesting about &amp;lt;math&amp;gt;f&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;g&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;h&amp;lt;/math&amp;gt;?&lt;br /&gt;
# Do functors preserve monomorphisms? Do functors preserve epimorphisms?&lt;br /&gt;
# Let &#039;&#039;F&#039;&#039; be a functor and &#039;&#039;F(f) = g&#039;&#039;, if &#039;&#039;g&#039;&#039; is a mono (resp. epi), is &#039;&#039;f&#039;&#039; a mono (resp. epi)?&lt;br /&gt;
If not, try to find some simple and natural condition on the functor to make that true.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Answer&amp;lt;/u&amp;gt;&lt;br /&gt;
# No, since &amp;lt;math&amp;gt;f&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;g&amp;lt;/math&amp;gt; may not even compose! This is the case when &amp;lt;math&amp;gt;f&amp;lt;/math&amp;gt; has type &amp;lt;math&amp;gt;A \to B&amp;lt;/math&amp;gt;, and &amp;lt;math&amp;gt;g \colon C \to D&amp;lt;/math&amp;gt;, with &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; collapsing &amp;lt;math&amp;gt;D&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; (i.e., &amp;lt;math&amp;gt;FA = FD&amp;lt;/math&amp;gt;).&lt;br /&gt;
# Functors in general do not preserve mono- nor epimorphisms. We build a counter-example for monomorphisms. Let &amp;lt;math&amp;gt;\mathbf{2}&amp;lt;/math&amp;gt; be the category with two objects &amp;lt;math&amp;gt;\star&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\bullet&amp;lt;/math&amp;gt;, and exactly one morphism &amp;lt;math&amp;gt;m \colon \star \to \bullet&amp;lt;/math&amp;gt;. This is a preorder, so &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; is monic. Now take &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt; with two objects &amp;lt;math&amp;gt;\star&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\bullet&amp;lt;/math&amp;gt;, exactly one morphism &amp;lt;math&amp;gt;m \colon \star \to \bullet&amp;lt;/math&amp;gt;, and one extra morphism &amp;lt;math&amp;gt;n \colon \star \to \star&amp;lt;/math&amp;gt;, different from the identity. Because of &amp;lt;math&amp;gt;n \neq id_\star&amp;lt;/math&amp;gt;, yet &amp;lt;math&amp;gt;m \circ n = m \circ id&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; is not monic in &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt;. The functor which sends &amp;lt;math&amp;gt;\star&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;\star&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;\bullet&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;\bullet&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; in &amp;lt;math&amp;gt;\mathbf{2}&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; in &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt;, does not preserve monomorphisms.&lt;br /&gt;
# In general, the answer is (again) no. For monos, take for example the functor &amp;lt;math&amp;gt;\mathcal{C} \to \mathbf{2}&amp;lt;/math&amp;gt; which sends &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; to the identity. Yet, when &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; is &#039;&#039;faithful&#039;&#039;, then &amp;lt;math&amp;gt;f&amp;lt;/math&amp;gt; is monic (or epic).&lt;br /&gt;
&lt;br /&gt;
{{Definition |&lt;br /&gt;
A functor &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; is faithful when, for any two morphisms &amp;lt;math&amp;gt;f, g&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;Ff = Fg&amp;lt;/math&amp;gt; implies &amp;lt;math&amp;gt;f=g&amp;lt;/math&amp;gt; (&amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; is injective on morphisms).&lt;br /&gt;
}}&lt;br /&gt;
{{Definition |&lt;br /&gt;
A functor &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; is full when, for any two objects &amp;lt;math&amp;gt;A, B&amp;lt;/math&amp;gt;, if &amp;lt;math&amp;gt;g&amp;lt;/math&amp;gt; is a morphism &amp;lt;math&amp;gt;FA \to FB&amp;lt;/math&amp;gt;, then there exists &amp;lt;math&amp;gt;f \colon A \to B&amp;lt;/math&amp;gt; with &amp;lt;math&amp;gt;Ff = g&amp;lt;/math&amp;gt; (&amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; is surjective on morphisms).&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Exercice&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Find an &amp;quot;interesting&amp;quot; functor from &#039;&#039;&#039;Set&#039;&#039;&#039; to &#039;&#039;&#039;Group&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Answer&amp;lt;/u&amp;gt;&lt;br /&gt;
Let &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; be the functor which sends:&lt;br /&gt;
* every set &amp;lt;math&amp;gt;X&amp;lt;/math&amp;gt; to the free group generated by &amp;lt;math&amp;gt;X&amp;lt;/math&amp;gt;, and&lt;br /&gt;
* every function &amp;lt;math&amp;gt;f \colon X \to Y&amp;lt;/math&amp;gt; to a group morphism defined by: &amp;lt;math&amp;gt;Ff(x_1^{\alpha_1}\times\dots\times x_k^{\alpha_k})=f(x_1)^{\alpha_1} \times \dots \times f(x_k)^{\alpha_k}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Exercice&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt; is a locally small category and &#039;&#039;A&#039;&#039; one of its objects, let &amp;lt;math&amp;gt;Y_A : X \mapsto \mathcal{C}[X,A]&amp;lt;/math&amp;gt;. Show that this operation from objects of &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt; to sets can be extended into a contravariant functor &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt; to &#039;&#039;&#039;Set&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Answer&amp;lt;/u&amp;gt;&lt;br /&gt;
Let &amp;lt;math&amp;gt;f\colon X \to Y&amp;lt;/math&amp;gt; be a morphism in &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt;, then &amp;lt;math&amp;gt;Y_A(f)&amp;lt;/math&amp;gt; is expected to be a function from the set &amp;lt;math&amp;gt;\mathcal{C}[Y, A]&amp;lt;/math&amp;gt; to the set &amp;lt;math&amp;gt;\mathcal{C}[X, A]&amp;lt;/math&amp;gt;. We can take, for any morphism &amp;lt;math&amp;gt;m \in \mathcal{C}[Y,A]&amp;lt;/math&amp;gt;: &amp;lt;math&amp;gt;Y_A(f)(m) = m \circ f&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
This extends &amp;lt;math&amp;gt;Y_A&amp;lt;/math&amp;gt; to a contravariant functor, since &amp;lt;math&amp;gt;Y_A(id_X) = id_{\mathcal{C}[X, A]}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;Y_A(f \circ g)(m) = m \circ (f \circ g) = (m \circ f) \circ g = (Y_A(g) \circ Y_A(f))(m)&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===Natural Transformations===&lt;br /&gt;
&lt;br /&gt;
{{Definition |&lt;br /&gt;
Let &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;G&amp;lt;/math&amp;gt; be two functors &amp;lt;math&amp;gt;\mathcal{C} \to \mathcal{D}&amp;lt;/math&amp;gt;. A natural transformation &amp;lt;math&amp;gt;\alpha&amp;lt;/math&amp;gt; from &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;G&amp;lt;/math&amp;gt; is given by:&lt;br /&gt;
* a morphism &amp;lt;math&amp;gt;\alpha_A \colon FA \to GA&amp;lt;/math&amp;gt; in &amp;lt;math&amp;gt;\mathcal{D}&amp;lt;/math&amp;gt; for every object &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; in &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt;,&lt;br /&gt;
* such that, for any morphism &amp;lt;math&amp;gt;f \colon A \to B&amp;lt;/math&amp;gt;, we have &amp;lt;math&amp;gt;Gf \circ \alpha_A = \alpha_B \circ Ff&amp;lt;/math&amp;gt;.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Exercice&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If &amp;lt;math&amp;gt;P(X)&amp;lt;/math&amp;gt; is the set of permutation of a (finite) set &#039;&#039;X&#039;&#039;; and &amp;lt;math&amp;gt;L(X)&amp;lt;/math&amp;gt; the set of its linear orderings, we have &amp;lt;math&amp;gt;\#(L(X)) = \#(L(X)) = n!&amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;n = \#(X)&amp;lt;/math&amp;gt;. Thus, there is a bijection (iso in &#039;&#039;&#039;Set&#039;&#039;&#039;) between &#039;&#039;P(X)&#039;&#039; and &#039;&#039;L(X)&#039;&#039;.&lt;br /&gt;
# Show that we can extend &#039;&#039;P&#039;&#039; and &#039;&#039;L&#039;&#039; to functors from &#039;&#039;&#039;B&#039;&#039;&#039; to &#039;&#039;&#039;Set&#039;&#039;&#039;, where &#039;&#039;&#039;B&#039;&#039;&#039; is the category of finite sets and bijections,&lt;br /&gt;
# Show that there can be no natural transformation from &#039;&#039;P&#039;&#039; to &#039;&#039;L&#039;&#039;,&lt;br /&gt;
# Conclude that there is no natural isomorphism between &#039;&#039;P&#039;&#039; and &#039;&#039;L&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
==Adjunctions==&lt;br /&gt;
&lt;br /&gt;
===About Limits and Colimits===&lt;br /&gt;
&lt;br /&gt;
One of the main thrusts of category theory is to define concepts by&lt;br /&gt;
their properties rather than by explicit construction. In general this&lt;br /&gt;
is just called abstraction, but in good cases, concepts are&lt;br /&gt;
&#039;&#039;defined&#039;&#039; by their properties, at least canonically if not uniquely.&lt;br /&gt;
&lt;br /&gt;
The chief example of this is binary products in &#039;&#039;&#039;Set&#039;&#039;&#039;.  The&lt;br /&gt;
product &amp;lt;math&amp;gt;A \times B&amp;lt;/math&amp;gt; of two sets &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; and&lt;br /&gt;
&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt; is generally thought of as the set of pairs &amp;lt;math&amp;gt; (x,&lt;br /&gt;
y) &amp;lt;/math&amp;gt; with &amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;y \in B&amp;lt;/math&amp;gt;.  But&lt;br /&gt;
strictly speaking, or rather set-theoretically speaking, one has to&lt;br /&gt;
construct it by cautious use of the axioms of Zermelo-Fraenkel set&lt;br /&gt;
theory.&lt;br /&gt;
&lt;br /&gt;
Instead, in any category &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt;, for any objects&lt;br /&gt;
&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt; categorists put: &lt;br /&gt;
&lt;br /&gt;
{{Definition | A&lt;br /&gt;
&#039;&#039;product&#039;&#039; of &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt; is an object &amp;lt;math&amp;gt;C&amp;lt;/math&amp;gt;&lt;br /&gt;
with arrows&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;A \xleftarrow{\pi_1} C \xrightarrow{\pi_2} B&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
such that for any object &amp;lt;math&amp;gt;D&amp;lt;/math&amp;gt; and arrows&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;A \xleftarrow{f} D \xrightarrow{g} B&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
there exists a unique arrow &amp;lt;math&amp;gt;h&amp;lt;/math&amp;gt; making the diagram&lt;br /&gt;
[[Image:prod.png|center|Universal property of product]]&lt;br /&gt;
commute, i.e., &amp;lt;math&amp;gt;\pi_1 \circ h = f&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\pi_2 \circ h = g&amp;lt;/math&amp;gt;.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
The standard constructions in &#039;&#039;&#039;Set&#039;&#039;&#039; all have this property, and&lt;br /&gt;
all the non-standard ones you can think of also do, e.g., the set of&lt;br /&gt;
pairs &amp;lt;math&amp;gt; (\emptyset, x, y) &amp;lt;/math&amp;gt; with &amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;y&lt;br /&gt;
\in B&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Conversely, any set with this property is as good as any other&lt;br /&gt;
construction of &amp;lt;math&amp;gt;A \times B&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Products are determined &#039;&#039;canonically&#039;&#039; by this property&lt;br /&gt;
property. We will give a more precise meaning to this in later&lt;br /&gt;
lectures; for now we just state:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Lemma.&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For any other product &amp;lt;center&amp;gt;&amp;lt;math&amp;gt;A \xleftarrow{p} E \xrightarrow{q} B&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt; of &lt;br /&gt;
&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;, there is a unique isomorphism pair &amp;lt;math&amp;gt; (r, s) &amp;lt;/math&amp;gt; &lt;br /&gt;
such that the diagrams&lt;br /&gt;
&lt;br /&gt;
[[Image:prod-iso.png|upright=2]] and &lt;br /&gt;
[[Image:prod-iso-2.png|upright=2]]&lt;br /&gt;
&lt;br /&gt;
commute.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===First examples and definition===&lt;br /&gt;
&lt;br /&gt;
====So-called &#039;&#039;free&#039;&#039; constructions in algebra: monoid, group, etc====&lt;br /&gt;
====Their universal property, the underlying functor====&lt;br /&gt;
====The isomorphism between hom-sets====&lt;br /&gt;
====Its naturality====&lt;br /&gt;
====Definition====&lt;br /&gt;
====On to the definition with &amp;lt;math&amp;gt;\eta&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\epsilon&amp;lt;/math&amp;gt;====&lt;br /&gt;
&lt;br /&gt;
===The simplicity behind definitions:2-categories and adjunctions therein===&lt;br /&gt;
&lt;br /&gt;
====Definition of 2-categories====&lt;br /&gt;
====String diagrams====&lt;br /&gt;
====&#039;&#039;&#039;CAT&#039;&#039;&#039; as a 2-category====&lt;br /&gt;
====Adjunctions in a 2-category====&lt;br /&gt;
&lt;br /&gt;
===Other basic examples===&lt;br /&gt;
&lt;br /&gt;
====Discussion: any syntax defines the free something==== The issue of &lt;br /&gt;
variable binding.&lt;br /&gt;
====Adjunction between partial orders = Galois connection====&lt;br /&gt;
====&amp;lt;math&amp;gt;\times&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\Rightarrow&amp;lt;/math&amp;gt; in logic====&lt;br /&gt;
====Sets/graphs and categories====&lt;br /&gt;
&lt;br /&gt;
===Monads and resolutions===&lt;br /&gt;
&lt;br /&gt;
====Definition of a monad====&lt;br /&gt;
====String diagrams====&lt;br /&gt;
====Every adjunction yields a monad====&lt;br /&gt;
====Example of monoids again: resolutions====&lt;br /&gt;
&lt;br /&gt;
===Monadic adjunctions===&lt;br /&gt;
&lt;br /&gt;
====The category of resolutions====&lt;br /&gt;
====Eilenberg-Moore is terminal====&lt;br /&gt;
====Kleisli is initial====&lt;br /&gt;
====Monadic adjunctions====&lt;br /&gt;
====Algebraic theories====&lt;br /&gt;
&lt;br /&gt;
===Properties===&lt;br /&gt;
&lt;br /&gt;
====Composing adjunctions====&lt;br /&gt;
====Preservation of limits/colimits====&lt;br /&gt;
====Freyd&#039;s existence theorem====&lt;br /&gt;
====Beck&#039;s monadicity theorem====&lt;br /&gt;
&lt;br /&gt;
==Limites and Colimits==&lt;br /&gt;
&lt;br /&gt;
===Limits===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example.&#039;&#039;&#039; Cartesian product.&lt;br /&gt;
&lt;br /&gt;
{{ Definition | Binary product.}}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Theorem.&#039;&#039;&#039; &#039;&#039;The product of X and Y, if it exists, is unique up to isomorphism.&#039;&#039; (proof)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Examples.&#039;&#039;&#039; Set, Grp, Ab, Part.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Examples.&#039;&#039;&#039; Preorder, Subset(E), Prop with entailment.&lt;br /&gt;
&lt;br /&gt;
{{ Definition | Diagram. Cone. Limit.}}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example.&#039;&#039;&#039; Limits in Set.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Examples.&#039;&#039;&#039; Shape of diagrams for products, pullbacks, equalizers.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example.&#039;&#039;&#039; Monos as pullbacks.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Theorem.&#039;&#039;&#039; The limit of a diagram d, if it exists, is unique up to isomorphism.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Theorem.&#039;&#039;&#039; A category with &amp;quot;all&amp;quot; products and equalizers has &amp;quot;all&amp;quot; limits.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Theorem.&#039;&#039;&#039; A category with a terminal object and all binary products and all equalizers has &amp;quot;all&amp;quot; finite limits.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Colimites (limites inductives, limites directes, lim--&amp;gt;) &lt;br /&gt;
&lt;br /&gt;
cocône, colimite &lt;br /&gt;
THEO. unicité à iso près (preuve : dualité)&lt;br /&gt;
somme binaire, n-aire, objet initial (somme, coproduit, produit libre)&lt;br /&gt;
  EX. Set, Grp, Ab, Part (X+Y),&lt;br /&gt;
  EX. préordre (&amp;quot;join&amp;quot; ou sup), Sub(X) (union), Prop avec |- (entailment) :&lt;br /&gt;
     somme = &amp;quot;ou&amp;quot;, coproj = élim. &amp;quot;ou&amp;quot;, paires = intro. &amp;quot;ou&amp;quot;, initial = &amp;quot;false&amp;quot; &lt;br /&gt;
coproj =/=&amp;gt; mono&lt;br /&gt;
pushout, épi, coégaliseur&lt;br /&gt;
  EX. coégaliseur vs most general unifier : &lt;br /&gt;
   catégorie de Kleisli de la monade des termes &amp;quot;Subst&amp;quot;&lt;br /&gt;
  (EX. dpo ?)&lt;br /&gt;
THEO. coégaliseurs &amp;amp; sommes  =&amp;gt; colimites &lt;br /&gt;
THEO. coégaliseurs &amp;amp; sommes binaires &amp;amp; objet initial =&amp;gt; colimites finies &lt;br /&gt;
&lt;br /&gt;
*  Divers&lt;br /&gt;
&lt;br /&gt;
Adjonction&lt;br /&gt;
THEO. &lt;br /&gt;
  un adjoint à droite préserve les limites (preuve : exercice [ML])&lt;br /&gt;
  un adjoint à gauche préserve les colimites (preuve : dualité)&lt;br /&gt;
  EX. U:Grp-&amp;gt;Set préserve les limites, pas les colimites &lt;br /&gt;
&lt;br /&gt;
Produits et sommes :&lt;br /&gt;
distributivité : a category with finite sums and products such that &lt;br /&gt;
  the canonical map AxB+AxC --&amp;gt; Ax(B+C) is an isomorphism&lt;br /&gt;
extensivité : a category with finite sums for which the canonical functor &lt;br /&gt;
  + : C/A x C/B --&amp;gt; C/(A+B) is an equivalence. &lt;br /&gt;
EX. &amp;quot;if..then..else..&amp;quot;. p:X-&amp;gt;B avec B=1+1. &lt;br /&gt;
  D&#039;où X =X(p)+X(-p) par extensivité. Alors X(p) et X(-p) sont des PB [CLW].&lt;br /&gt;
&lt;br /&gt;
==Course Complements, references==&lt;br /&gt;
&lt;br /&gt;
One of the best books about category theory is&lt;br /&gt;
* Saunder MacLane, &#039;&#039;&amp;quot;Categories for the Working Mathematician&amp;quot;&#039;&#039;.&lt;br /&gt;
It is a little &amp;quot;dry&amp;quot;, in the sense that learning categories from it is not the easiest task on earth, but it still is one of the best references.&lt;br /&gt;
&lt;br /&gt;
I haven&#039;t really read it carefully, but here is [http://en.wikipedia.org/wiki/Category_theory what Wikipedia has to say on category theory].&lt;/div&gt;</summary>
		<author><name>DDuval</name></author>
	</entry>
	<entry>
		<id>http://os-vps418.infomaniak.ch:1250/mediawiki/index.php?title=Langage_et_concepts_cat%C3%A9goriques_pour_les_math%C3%A9matiques_et_l%E2%80%99informatique&amp;diff=3954</id>
		<title>Langage et concepts catégoriques pour les mathématiques et l’informatique</title>
		<link rel="alternate" type="text/html" href="http://os-vps418.infomaniak.ch:1250/mediawiki/index.php?title=Langage_et_concepts_cat%C3%A9goriques_pour_les_math%C3%A9matiques_et_l%E2%80%99informatique&amp;diff=3954"/>
		<updated>2009-03-11T14:52:11Z</updated>

		<summary type="html">&lt;p&gt;DDuval : /* Limits */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This is a wiki for a course at the MSTII &amp;quot;École doctorale&amp;quot; of Grenoble.&lt;br /&gt;
&lt;br /&gt;
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...&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===News===&lt;br /&gt;
&lt;br /&gt;
Courses are on wednesdays morning, 9&#039;00 to 12&#039;00 in room F218 at the &amp;quot;UFR IMAG&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
* first course on the 25th of February: categories, functors, natural transformations.&lt;br /&gt;
* March 4. : monads, adjunctions.&lt;br /&gt;
* March 11. : limits and colimits.&lt;br /&gt;
&lt;br /&gt;
==Basic Concepts==&lt;br /&gt;
&lt;br /&gt;
===Categories===&lt;br /&gt;
&lt;br /&gt;
{{Definition |&lt;br /&gt;
A concrete category is given by:&lt;br /&gt;
* a collection of sets &#039;&#039;with structure&#039;&#039;,&lt;br /&gt;
* for any pair of such sets, a set of &#039;&#039;morphisms&#039;&#039; preserving the structure.&lt;br /&gt;
Morphisms should compose, and the identity should be a morphism.}}&lt;br /&gt;
&lt;br /&gt;
This definition is a little informal, but here are some examples:&lt;br /&gt;
* &#039;&#039;&#039;Grp&#039;&#039;&#039;: groups and group morphisms&lt;br /&gt;
* &#039;&#039;&#039;Top&#039;&#039;&#039;: topological spaces and continuous functions&lt;br /&gt;
* &#039;&#039;&#039;Ring&#039;&#039;&#039;: rings and rings morphisms&lt;br /&gt;
* &#039;&#039;&#039;Vect&#039;&#039;&#039;: vectors spaces and linear maps&lt;br /&gt;
* &#039;&#039;&#039;CPO&#039;&#039;&#039;: CPOs and continuous functions&lt;br /&gt;
* ...&lt;br /&gt;
* &#039;&#039;&#039;Set&#039;&#039;&#039;: sets and functions (&#039;&#039;&#039;ie&#039;&#039;&#039; sets with no structures, and arbitrary functions)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Generalizing the definition, we obtain the official definition of category:&lt;br /&gt;
&lt;br /&gt;
{{Definition |&lt;br /&gt;
A category &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt; is given by:&lt;br /&gt;
* a collection &amp;lt;math&amp;gt;\mathcal{C}_o&amp;lt;/math&amp;gt; of &#039;&#039;objects&#039;&#039;,  (notation: &amp;lt;math&amp;gt;A,B,C,X,Y,...&amp;lt;/math&amp;gt;)&lt;br /&gt;
* for each pair &amp;lt;math&amp;gt;A,B&amp;lt;/math&amp;gt; of objects, a collection &amp;lt;math&amp;gt;\mathcal{C}[A,B]&amp;lt;/math&amp;gt; of &#039;&#039;morphisms from &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&#039;&#039;,  (notation &amp;lt;math&amp;gt; f : A\to B&amp;lt;/math&amp;gt;)&lt;br /&gt;
* for any object &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;, a special morphism &amp;lt;math&amp;gt;i_A : A\to A&amp;lt;/math&amp;gt;&lt;br /&gt;
* for all objects &amp;lt;math&amp;gt;A,B,C&amp;lt;/math&amp;gt;, a composition &amp;lt;math&amp;gt;\circ : \mathcal{C}[B,C] \times \mathcal{C}[A,B] \to \mathcal{C}[A,C]&amp;lt;/math&amp;gt;,&lt;br /&gt;
such that:&lt;br /&gt;
* &amp;lt;math&amp;gt;f \in \mathcal{C}[A,B] \implies f\circ i_A = i_B\circ f = f&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;f\circ(g\circ h) = (f\circ g)\circ h&amp;lt;/math&amp;gt; whenever it makes sense.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
All concrete categories are categories, and here are some examples that are not obviously concrete:&lt;br /&gt;
* &#039;&#039;&#039;Graph&#039;&#039;&#039;: graphs and graph morphisms&lt;br /&gt;
* &#039;&#039;&#039;Rel&#039;&#039;&#039;: sets and relations&lt;br /&gt;
* &#039;&#039;&#039;Set×Set&#039;&#039;&#039;: pairs of sets, pairs of functions&lt;br /&gt;
* &#039;&#039;&#039;Set&amp;lt;math&amp;gt;^{op}&amp;lt;/math&amp;gt;&#039;&#039;&#039;: opposite of &#039;&#039;&#039;Set&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;P&#039;&#039;&#039;, whenever (&#039;&#039;&#039;P&#039;&#039;&#039;,&amp;lt;) is a preorder (at most one morphism between objects)&lt;br /&gt;
* &#039;&#039;&#039;M&#039;&#039;&#039;, whenever (&#039;&#039;&#039;M&#039;&#039;&#039;,e,×) is a monoid (a single object)&lt;br /&gt;
&lt;br /&gt;
We sometimes write &amp;lt;math&amp;gt;gf&amp;lt;/math&amp;gt; instead of &amp;lt;math&amp;gt;g \circ f&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
In a given category &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt;, there are analogues of the notions of injective and surjective functions in &#039;&#039;&#039;Set&#039;&#039;&#039;. We will see that on concrete categories, they are actually slightly more general. The idea of injectivity gives rise to &#039;&#039;monomorphisms&#039;&#039;, and surjectivity gives rise to &#039;&#039;epimorphisms&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
{{Definition |&lt;br /&gt;
&lt;br /&gt;
A morphism &amp;lt;math&amp;gt;f \colon A \to B&amp;lt;/math&amp;gt; is a &#039;&#039;monomorphism&#039;&#039; iff for all object &amp;lt;math&amp;gt;C&amp;lt;/math&amp;gt; and morphisms &amp;lt;math&amp;gt;g,h \colon C \to A&amp;lt;/math&amp;gt;, we have &amp;lt;math&amp;gt;fg = fh&amp;lt;/math&amp;gt; implies &amp;lt;math&amp;gt;g = h&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The morphism &amp;lt;math&amp;gt;f&amp;lt;/math&amp;gt; is an &#039;&#039;epimorphism&#039;&#039; when it is a monomorphism in &amp;lt;math&amp;gt;\mathcal{C}^{op}&amp;lt;/math&amp;gt;. Explicitly, when for all object &amp;lt;math&amp;gt;C&amp;lt;/math&amp;gt; and morphisms &amp;lt;math&amp;gt;g,h \colon B \to C&amp;lt;/math&amp;gt;, we have &amp;lt;math&amp;gt;gf = hf&amp;lt;/math&amp;gt; implies &amp;lt;math&amp;gt;g = h&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
  isomorphism&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Exercice&amp;lt;/u&amp;gt;&lt;br /&gt;
# Prove that in &#039;&#039;&#039;Set&#039;&#039;&#039;, epic is equivalent to surjective and monic is equivalent to injective.&lt;br /&gt;
# Prove the same thing in &#039;&#039;&#039;Ab&#039;&#039;&#039;, the category of commutative groups. (One thing is not obvious.)&lt;br /&gt;
# Prove the same thing in &#039;&#039;&#039;Grp&#039;&#039;&#039;, the category of (non necessarily commutative) groups. (One thing is not obvious at all.)&lt;br /&gt;
# Prove that &amp;lt;math&amp;gt;i : \mathbf{Z} \to \mathbf{Q}&amp;lt;/math&amp;gt; is an epimorphism in the category of rings with multiplicative neutral. (Note that it is not surjective.)&lt;br /&gt;
# In &#039;&#039;&#039;Set&#039;&#039;&#039;, we saw that &#039;&#039;f&#039;&#039; is a monic iff &amp;lt;math&amp;gt;\forall x,y : 1 \to A, f\circ x = f\circ y \implies x=y&amp;lt;/math&amp;gt;, where 1 is any singleton set. Can you find a set &#039;&#039;C&#039;&#039; such that &#039;&#039;f&#039;&#039; is epic iff &amp;lt;math&amp;gt;\forall p,q : B \to C, p\circ f = j\circ f \implies p=q&amp;lt;/math&amp;gt;?&lt;br /&gt;
# In &#039;&#039;&#039;Group&#039;&#039;&#039;, can you find an object playing a role similar to 1, &#039;&#039;ie&#039;&#039; a group &#039;&#039;G&#039;&#039; s.t. &#039;&#039;f&#039;&#039; is monic iff &amp;lt;math&amp;gt;\forall x,y : G \to A, f\circ x = f\circ y \implies x=y&amp;lt;/math&amp;gt;. (We saw that we cannot use the singleton group ({e},e,×) to do that...)&lt;br /&gt;
&lt;br /&gt;
===Functors===&lt;br /&gt;
&lt;br /&gt;
Informally, a functor is a map between two categories which somehow preserves the structure of categories (namely, composition).&lt;br /&gt;
&lt;br /&gt;
{{Definition |&lt;br /&gt;
A functor &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; from a category &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt; to a category &amp;lt;math&amp;gt;\mathcal{D}&amp;lt;/math&amp;gt;, noted &amp;lt;math&amp;gt;F \colon \mathcal{C} \to \mathcal{D}&amp;lt;/math&amp;gt;, is given by:&lt;br /&gt;
* a map which sends every object &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; of &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt; to an object &amp;lt;math&amp;gt;FA&amp;lt;/math&amp;gt; in &amp;lt;math&amp;gt;\mathcal{D}&amp;lt;/math&amp;gt;, and&lt;br /&gt;
* a map which sends every morphism &amp;lt;math&amp;gt;f \colon A \to B&amp;lt;/math&amp;gt; in &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt;, to a morphism &amp;lt;math&amp;gt;Ff&amp;lt;/math&amp;gt; in &amp;lt;math&amp;gt;\mathcal{D}[FA, FB]&amp;lt;/math&amp;gt;,&lt;br /&gt;
such that:&lt;br /&gt;
* &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; preserves identities, i.e., &amp;lt;math&amp;gt;F(id_A) = id_{FA}&amp;lt;/math&amp;gt;, and&lt;br /&gt;
* &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; preserves composition: &amp;lt;math&amp;gt;F(f \circ g) = F(f) \circ F(g)&amp;lt;/math&amp;gt;.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Exercice&amp;lt;/u&amp;gt;&lt;br /&gt;
# Take a functor &amp;lt;math&amp;gt;F \colon \mathcal{C} \to \mathcal{D}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;f, g, h&amp;lt;/math&amp;gt; three morphisms in &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt;, and &amp;lt;math&amp;gt;f&#039; = Ff&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;g&#039; = Fg&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;h&#039; = Fh&amp;lt;/math&amp;gt;. When &amp;lt;math&amp;gt;h&#039; = f&#039; \circ g&#039;&amp;lt;/math&amp;gt;, can we say something interesting about &amp;lt;math&amp;gt;f&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;g&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;h&amp;lt;/math&amp;gt;?&lt;br /&gt;
# Do functors preserve monomorphisms? Do functors preserve epimorphisms?&lt;br /&gt;
# Let &#039;&#039;F&#039;&#039; be a functor and &#039;&#039;F(f) = g&#039;&#039;, if &#039;&#039;g&#039;&#039; is a mono (resp. epi), is &#039;&#039;f&#039;&#039; a mono (resp. epi)?&lt;br /&gt;
If not, try to find some simple and natural condition on the functor to make that true.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Answer&amp;lt;/u&amp;gt;&lt;br /&gt;
# No, since &amp;lt;math&amp;gt;f&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;g&amp;lt;/math&amp;gt; may not even compose! This is the case when &amp;lt;math&amp;gt;f&amp;lt;/math&amp;gt; has type &amp;lt;math&amp;gt;A \to B&amp;lt;/math&amp;gt;, and &amp;lt;math&amp;gt;g \colon C \to D&amp;lt;/math&amp;gt;, with &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; collapsing &amp;lt;math&amp;gt;D&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; (i.e., &amp;lt;math&amp;gt;FA = FD&amp;lt;/math&amp;gt;).&lt;br /&gt;
# Functors in general do not preserve mono- nor epimorphisms. We build a counter-example for monomorphisms. Let &amp;lt;math&amp;gt;\mathbf{2}&amp;lt;/math&amp;gt; be the category with two objects &amp;lt;math&amp;gt;\star&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\bullet&amp;lt;/math&amp;gt;, and exactly one morphism &amp;lt;math&amp;gt;m \colon \star \to \bullet&amp;lt;/math&amp;gt;. This is a preorder, so &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; is monic. Now take &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt; with two objects &amp;lt;math&amp;gt;\star&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\bullet&amp;lt;/math&amp;gt;, exactly one morphism &amp;lt;math&amp;gt;m \colon \star \to \bullet&amp;lt;/math&amp;gt;, and one extra morphism &amp;lt;math&amp;gt;n \colon \star \to \star&amp;lt;/math&amp;gt;, different from the identity. Because of &amp;lt;math&amp;gt;n \neq id_\star&amp;lt;/math&amp;gt;, yet &amp;lt;math&amp;gt;m \circ n = m \circ id&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; is not monic in &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt;. The functor which sends &amp;lt;math&amp;gt;\star&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;\star&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;\bullet&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;\bullet&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; in &amp;lt;math&amp;gt;\mathbf{2}&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; in &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt;, does not preserve monomorphisms.&lt;br /&gt;
# In general, the answer is (again) no. For monos, take for example the functor &amp;lt;math&amp;gt;\mathcal{C} \to \mathbf{2}&amp;lt;/math&amp;gt; which sends &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; to the identity. Yet, when &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; is &#039;&#039;faithful&#039;&#039;, then &amp;lt;math&amp;gt;f&amp;lt;/math&amp;gt; is monic (or epic).&lt;br /&gt;
&lt;br /&gt;
{{Definition |&lt;br /&gt;
A functor &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; is faithful when, for any two morphisms &amp;lt;math&amp;gt;f, g&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;Ff = Fg&amp;lt;/math&amp;gt; implies &amp;lt;math&amp;gt;f=g&amp;lt;/math&amp;gt; (&amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; is injective on morphisms).&lt;br /&gt;
}}&lt;br /&gt;
{{Definition |&lt;br /&gt;
A functor &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; is full when, for any two objects &amp;lt;math&amp;gt;A, B&amp;lt;/math&amp;gt;, if &amp;lt;math&amp;gt;g&amp;lt;/math&amp;gt; is a morphism &amp;lt;math&amp;gt;FA \to FB&amp;lt;/math&amp;gt;, then there exists &amp;lt;math&amp;gt;f \colon A \to B&amp;lt;/math&amp;gt; with &amp;lt;math&amp;gt;Ff = g&amp;lt;/math&amp;gt; (&amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; is surjective on morphisms).&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Exercice&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Find an &amp;quot;interesting&amp;quot; functor from &#039;&#039;&#039;Set&#039;&#039;&#039; to &#039;&#039;&#039;Group&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Answer&amp;lt;/u&amp;gt;&lt;br /&gt;
Let &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; be the functor which sends:&lt;br /&gt;
* every set &amp;lt;math&amp;gt;X&amp;lt;/math&amp;gt; to the free group generated by &amp;lt;math&amp;gt;X&amp;lt;/math&amp;gt;, and&lt;br /&gt;
* every function &amp;lt;math&amp;gt;f \colon X \to Y&amp;lt;/math&amp;gt; to a group morphism defined by: &amp;lt;math&amp;gt;Ff(x_1^{\alpha_1}\times\dots\times x_k^{\alpha_k})=f(x_1)^{\alpha_1} \times \dots \times f(x_k)^{\alpha_k}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Exercice&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt; is a locally small category and &#039;&#039;A&#039;&#039; one of its objects, let &amp;lt;math&amp;gt;Y_A : X \mapsto \mathcal{C}[X,A]&amp;lt;/math&amp;gt;. Show that this operation from objects of &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt; to sets can be extended into a contravariant functor &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt; to &#039;&#039;&#039;Set&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Answer&amp;lt;/u&amp;gt;&lt;br /&gt;
Let &amp;lt;math&amp;gt;f\colon X \to Y&amp;lt;/math&amp;gt; be a morphism in &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt;, then &amp;lt;math&amp;gt;Y_A(f)&amp;lt;/math&amp;gt; is expected to be a function from the set &amp;lt;math&amp;gt;\mathcal{C}[Y, A]&amp;lt;/math&amp;gt; to the set &amp;lt;math&amp;gt;\mathcal{C}[X, A]&amp;lt;/math&amp;gt;. We can take, for any morphism &amp;lt;math&amp;gt;m \in \mathcal{C}[Y,A]&amp;lt;/math&amp;gt;: &amp;lt;math&amp;gt;Y_A(f)(m) = m \circ f&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
This extends &amp;lt;math&amp;gt;Y_A&amp;lt;/math&amp;gt; to a contravariant functor, since &amp;lt;math&amp;gt;Y_A(id_X) = id_{\mathcal{C}[X, A]}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;Y_A(f \circ g)(m) = m \circ (f \circ g) = (m \circ f) \circ g = (Y_A(g) \circ Y_A(f))(m)&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===Natural Transformations===&lt;br /&gt;
&lt;br /&gt;
{{Definition |&lt;br /&gt;
Let &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;G&amp;lt;/math&amp;gt; be two functors &amp;lt;math&amp;gt;\mathcal{C} \to \mathcal{D}&amp;lt;/math&amp;gt;. A natural transformation &amp;lt;math&amp;gt;\alpha&amp;lt;/math&amp;gt; from &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;G&amp;lt;/math&amp;gt; is given by:&lt;br /&gt;
* a morphism &amp;lt;math&amp;gt;\alpha_A \colon FA \to GA&amp;lt;/math&amp;gt; in &amp;lt;math&amp;gt;\mathcal{D}&amp;lt;/math&amp;gt; for every object &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; in &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt;,&lt;br /&gt;
* such that, for any morphism &amp;lt;math&amp;gt;f \colon A \to B&amp;lt;/math&amp;gt;, we have &amp;lt;math&amp;gt;Gf \circ \alpha_A = \alpha_B \circ Ff&amp;lt;/math&amp;gt;.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Exercice&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If &amp;lt;math&amp;gt;P(X)&amp;lt;/math&amp;gt; is the set of permutation of a (finite) set &#039;&#039;X&#039;&#039;; and &amp;lt;math&amp;gt;L(X)&amp;lt;/math&amp;gt; the set of its linear orderings, we have &amp;lt;math&amp;gt;\#(L(X)) = \#(L(X)) = n!&amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;n = \#(X)&amp;lt;/math&amp;gt;. Thus, there is a bijection (iso in &#039;&#039;&#039;Set&#039;&#039;&#039;) between &#039;&#039;P(X)&#039;&#039; and &#039;&#039;L(X)&#039;&#039;.&lt;br /&gt;
# Show that we can extend &#039;&#039;P&#039;&#039; and &#039;&#039;L&#039;&#039; to functors from &#039;&#039;&#039;B&#039;&#039;&#039; to &#039;&#039;&#039;Set&#039;&#039;&#039;, where &#039;&#039;&#039;B&#039;&#039;&#039; is the category of finite sets and bijections,&lt;br /&gt;
# Show that there can be no natural transformation from &#039;&#039;P&#039;&#039; to &#039;&#039;L&#039;&#039;,&lt;br /&gt;
# Conclude that there is no natural isomorphism between &#039;&#039;P&#039;&#039; and &#039;&#039;L&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
==Adjunctions==&lt;br /&gt;
&lt;br /&gt;
===About Limits and Colimits===&lt;br /&gt;
&lt;br /&gt;
One of the main thrusts of category theory is to define concepts by&lt;br /&gt;
their properties rather than by explicit construction. In general this&lt;br /&gt;
is just called abstraction, but in good cases, concepts are&lt;br /&gt;
&#039;&#039;defined&#039;&#039; by their properties, at least canonically if not uniquely.&lt;br /&gt;
&lt;br /&gt;
The chief example of this is binary products in &#039;&#039;&#039;Set&#039;&#039;&#039;.  The&lt;br /&gt;
product &amp;lt;math&amp;gt;A \times B&amp;lt;/math&amp;gt; of two sets &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; and&lt;br /&gt;
&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt; is generally thought of as the set of pairs &amp;lt;math&amp;gt; (x,&lt;br /&gt;
y) &amp;lt;/math&amp;gt; with &amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;y \in B&amp;lt;/math&amp;gt;.  But&lt;br /&gt;
strictly speaking, or rather set-theoretically speaking, one has to&lt;br /&gt;
construct it by cautious use of the axioms of Zermelo-Fraenkel set&lt;br /&gt;
theory.&lt;br /&gt;
&lt;br /&gt;
Instead, in any category &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt;, for any objects&lt;br /&gt;
&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt; categorists put: &lt;br /&gt;
&lt;br /&gt;
{{Definition | A&lt;br /&gt;
&#039;&#039;product&#039;&#039; of &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt; is an object &amp;lt;math&amp;gt;C&amp;lt;/math&amp;gt;&lt;br /&gt;
with arrows&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;A \xleftarrow{\pi_1} C \xrightarrow{\pi_2} B&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
such that for any object &amp;lt;math&amp;gt;D&amp;lt;/math&amp;gt; and arrows&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;A \xleftarrow{f} D \xrightarrow{g} B&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
there exists a unique arrow &amp;lt;math&amp;gt;h&amp;lt;/math&amp;gt; making the diagram&lt;br /&gt;
[[Image:prod.png|center|Universal property of product]]&lt;br /&gt;
commute, i.e., &amp;lt;math&amp;gt;\pi_1 \circ h = f&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\pi_2 \circ h = g&amp;lt;/math&amp;gt;.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
The standard constructions in &#039;&#039;&#039;Set&#039;&#039;&#039; all have this property, and&lt;br /&gt;
all the non-standard ones you can think of also do, e.g., the set of&lt;br /&gt;
pairs &amp;lt;math&amp;gt; (\emptyset, x, y) &amp;lt;/math&amp;gt; with &amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;y&lt;br /&gt;
\in B&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Conversely, any set with this property is as good as any other&lt;br /&gt;
construction of &amp;lt;math&amp;gt;A \times B&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Products are determined &#039;&#039;canonically&#039;&#039; by this property&lt;br /&gt;
property. We will give a more precise meaning to this in later&lt;br /&gt;
lectures; for now we just state:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Lemma.&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For any other product &amp;lt;center&amp;gt;&amp;lt;math&amp;gt;A \xleftarrow{p} E \xrightarrow{q} B&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt; of &lt;br /&gt;
&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;, there is a unique isomorphism pair &amp;lt;math&amp;gt; (r, s) &amp;lt;/math&amp;gt; &lt;br /&gt;
such that the diagrams&lt;br /&gt;
&lt;br /&gt;
[[Image:prod-iso.png|upright=2]] and &lt;br /&gt;
[[Image:prod-iso-2.png|upright=2]]&lt;br /&gt;
&lt;br /&gt;
commute.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===First examples and definition===&lt;br /&gt;
&lt;br /&gt;
====So-called &#039;&#039;free&#039;&#039; constructions in algebra: monoid, group, etc====&lt;br /&gt;
====Their universal property, the underlying functor====&lt;br /&gt;
====The isomorphism between hom-sets====&lt;br /&gt;
====Its naturality====&lt;br /&gt;
====Definition====&lt;br /&gt;
====On to the definition with &amp;lt;math&amp;gt;\eta&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\epsilon&amp;lt;/math&amp;gt;====&lt;br /&gt;
&lt;br /&gt;
===The simplicity behind definitions:2-categories and adjunctions therein===&lt;br /&gt;
&lt;br /&gt;
====Definition of 2-categories====&lt;br /&gt;
====String diagrams====&lt;br /&gt;
====&#039;&#039;&#039;CAT&#039;&#039;&#039; as a 2-category====&lt;br /&gt;
====Adjunctions in a 2-category====&lt;br /&gt;
&lt;br /&gt;
===Other basic examples===&lt;br /&gt;
&lt;br /&gt;
====Discussion: any syntax defines the free something==== The issue of &lt;br /&gt;
variable binding.&lt;br /&gt;
====Adjunction between partial orders = Galois connection====&lt;br /&gt;
====&amp;lt;math&amp;gt;\times&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\Rightarrow&amp;lt;/math&amp;gt; in logic====&lt;br /&gt;
====Sets/graphs and categories====&lt;br /&gt;
&lt;br /&gt;
===Monads and resolutions===&lt;br /&gt;
&lt;br /&gt;
====Definition of a monad====&lt;br /&gt;
====String diagrams====&lt;br /&gt;
====Every adjunction yields a monad====&lt;br /&gt;
====Example of monoids again: resolutions====&lt;br /&gt;
&lt;br /&gt;
===Monadic adjunctions===&lt;br /&gt;
&lt;br /&gt;
====The category of resolutions====&lt;br /&gt;
====Eilenberg-Moore is terminal====&lt;br /&gt;
====Kleisli is initial====&lt;br /&gt;
====Monadic adjunctions====&lt;br /&gt;
====Algebraic theories====&lt;br /&gt;
&lt;br /&gt;
===Properties===&lt;br /&gt;
&lt;br /&gt;
====Composing adjunctions====&lt;br /&gt;
====Preservation of limits/colimits====&lt;br /&gt;
====Freyd&#039;s existence theorem====&lt;br /&gt;
====Beck&#039;s monadicity theorem====&lt;br /&gt;
&lt;br /&gt;
==Limites and Colimits==&lt;br /&gt;
&lt;br /&gt;
===Limits===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example.&#039;&#039;&#039; Cartesian product.&lt;br /&gt;
&lt;br /&gt;
{{ Definition | Binary product.}}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Theorem.&#039;&#039;&#039; The product of X and Y, if it exists, is unique up to isomorphism. (proof)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Examples.&#039;&#039;&#039; Set, Grp, Ab, Part.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Examples.&#039;&#039;&#039; Preorder, Subset(E), Prop with entailment.&lt;br /&gt;
&lt;br /&gt;
{{ Definition | Diagram. Cone. Limit.}}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example.&#039;&#039;&#039; Limits in Set.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Examples.&#039;&#039;&#039; Shape of diagrams for products, pullbacks, equalizers.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example.&#039;&#039;&#039; Monos as pullbacks.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Theorem.&#039;&#039;&#039; The limit of a diagram d, if it exists, is unique up to isomorphism.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Theorem.&#039;&#039;&#039; A category with &amp;quot;all&amp;quot; products and equalizers has &amp;quot;all&amp;quot; limits.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Theorem.&#039;&#039;&#039; A category with a terminal object and all binary products and all equalizers has &amp;quot;all&amp;quot; finite limits.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Colimites (limites inductives, limites directes, lim--&amp;gt;) &lt;br /&gt;
&lt;br /&gt;
cocône, colimite &lt;br /&gt;
THEO. unicité à iso près (preuve : dualité)&lt;br /&gt;
somme binaire, n-aire, objet initial (somme, coproduit, produit libre)&lt;br /&gt;
  EX. Set, Grp, Ab, Part (X+Y),&lt;br /&gt;
  EX. préordre (&amp;quot;join&amp;quot; ou sup), Sub(X) (union), Prop avec |- (entailment) :&lt;br /&gt;
     somme = &amp;quot;ou&amp;quot;, coproj = élim. &amp;quot;ou&amp;quot;, paires = intro. &amp;quot;ou&amp;quot;, initial = &amp;quot;false&amp;quot; &lt;br /&gt;
coproj =/=&amp;gt; mono&lt;br /&gt;
pushout, épi, coégaliseur&lt;br /&gt;
  EX. coégaliseur vs most general unifier : &lt;br /&gt;
   catégorie de Kleisli de la monade des termes &amp;quot;Subst&amp;quot;&lt;br /&gt;
  (EX. dpo ?)&lt;br /&gt;
THEO. coégaliseurs &amp;amp; sommes  =&amp;gt; colimites &lt;br /&gt;
THEO. coégaliseurs &amp;amp; sommes binaires &amp;amp; objet initial =&amp;gt; colimites finies &lt;br /&gt;
&lt;br /&gt;
*  Divers&lt;br /&gt;
&lt;br /&gt;
Adjonction&lt;br /&gt;
THEO. &lt;br /&gt;
  un adjoint à droite préserve les limites (preuve : exercice [ML])&lt;br /&gt;
  un adjoint à gauche préserve les colimites (preuve : dualité)&lt;br /&gt;
  EX. U:Grp-&amp;gt;Set préserve les limites, pas les colimites &lt;br /&gt;
&lt;br /&gt;
Produits et sommes :&lt;br /&gt;
distributivité : a category with finite sums and products such that &lt;br /&gt;
  the canonical map AxB+AxC --&amp;gt; Ax(B+C) is an isomorphism&lt;br /&gt;
extensivité : a category with finite sums for which the canonical functor &lt;br /&gt;
  + : C/A x C/B --&amp;gt; C/(A+B) is an equivalence. &lt;br /&gt;
EX. &amp;quot;if..then..else..&amp;quot;. p:X-&amp;gt;B avec B=1+1. &lt;br /&gt;
  D&#039;où X =X(p)+X(-p) par extensivité. Alors X(p) et X(-p) sont des PB [CLW].&lt;br /&gt;
&lt;br /&gt;
==Course Complements, references==&lt;br /&gt;
&lt;br /&gt;
One of the best books about category theory is&lt;br /&gt;
* Saunder MacLane, &#039;&#039;&amp;quot;Categories for the Working Mathematician&amp;quot;&#039;&#039;.&lt;br /&gt;
It is a little &amp;quot;dry&amp;quot;, in the sense that learning categories from it is not the easiest task on earth, but it still is one of the best references.&lt;br /&gt;
&lt;br /&gt;
I haven&#039;t really read it carefully, but here is [http://en.wikipedia.org/wiki/Category_theory what Wikipedia has to say on category theory].&lt;/div&gt;</summary>
		<author><name>DDuval</name></author>
	</entry>
	<entry>
		<id>http://os-vps418.infomaniak.ch:1250/mediawiki/index.php?title=Langage_et_concepts_cat%C3%A9goriques_pour_les_math%C3%A9matiques_et_l%E2%80%99informatique&amp;diff=3953</id>
		<title>Langage et concepts catégoriques pour les mathématiques et l’informatique</title>
		<link rel="alternate" type="text/html" href="http://os-vps418.infomaniak.ch:1250/mediawiki/index.php?title=Langage_et_concepts_cat%C3%A9goriques_pour_les_math%C3%A9matiques_et_l%E2%80%99informatique&amp;diff=3953"/>
		<updated>2009-03-11T14:50:21Z</updated>

		<summary type="html">&lt;p&gt;DDuval : /* Limits */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This is a wiki for a course at the MSTII &amp;quot;École doctorale&amp;quot; of Grenoble.&lt;br /&gt;
&lt;br /&gt;
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...&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===News===&lt;br /&gt;
&lt;br /&gt;
Courses are on wednesdays morning, 9&#039;00 to 12&#039;00 in room F218 at the &amp;quot;UFR IMAG&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
* first course on the 25th of February: categories, functors, natural transformations.&lt;br /&gt;
* March 4. : monads, adjunctions.&lt;br /&gt;
* March 11. : limits and colimits.&lt;br /&gt;
&lt;br /&gt;
==Basic Concepts==&lt;br /&gt;
&lt;br /&gt;
===Categories===&lt;br /&gt;
&lt;br /&gt;
{{Definition |&lt;br /&gt;
A concrete category is given by:&lt;br /&gt;
* a collection of sets &#039;&#039;with structure&#039;&#039;,&lt;br /&gt;
* for any pair of such sets, a set of &#039;&#039;morphisms&#039;&#039; preserving the structure.&lt;br /&gt;
Morphisms should compose, and the identity should be a morphism.}}&lt;br /&gt;
&lt;br /&gt;
This definition is a little informal, but here are some examples:&lt;br /&gt;
* &#039;&#039;&#039;Grp&#039;&#039;&#039;: groups and group morphisms&lt;br /&gt;
* &#039;&#039;&#039;Top&#039;&#039;&#039;: topological spaces and continuous functions&lt;br /&gt;
* &#039;&#039;&#039;Ring&#039;&#039;&#039;: rings and rings morphisms&lt;br /&gt;
* &#039;&#039;&#039;Vect&#039;&#039;&#039;: vectors spaces and linear maps&lt;br /&gt;
* &#039;&#039;&#039;CPO&#039;&#039;&#039;: CPOs and continuous functions&lt;br /&gt;
* ...&lt;br /&gt;
* &#039;&#039;&#039;Set&#039;&#039;&#039;: sets and functions (&#039;&#039;&#039;ie&#039;&#039;&#039; sets with no structures, and arbitrary functions)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Generalizing the definition, we obtain the official definition of category:&lt;br /&gt;
&lt;br /&gt;
{{Definition |&lt;br /&gt;
A category &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt; is given by:&lt;br /&gt;
* a collection &amp;lt;math&amp;gt;\mathcal{C}_o&amp;lt;/math&amp;gt; of &#039;&#039;objects&#039;&#039;,  (notation: &amp;lt;math&amp;gt;A,B,C,X,Y,...&amp;lt;/math&amp;gt;)&lt;br /&gt;
* for each pair &amp;lt;math&amp;gt;A,B&amp;lt;/math&amp;gt; of objects, a collection &amp;lt;math&amp;gt;\mathcal{C}[A,B]&amp;lt;/math&amp;gt; of &#039;&#039;morphisms from &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&#039;&#039;,  (notation &amp;lt;math&amp;gt; f : A\to B&amp;lt;/math&amp;gt;)&lt;br /&gt;
* for any object &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;, a special morphism &amp;lt;math&amp;gt;i_A : A\to A&amp;lt;/math&amp;gt;&lt;br /&gt;
* for all objects &amp;lt;math&amp;gt;A,B,C&amp;lt;/math&amp;gt;, a composition &amp;lt;math&amp;gt;\circ : \mathcal{C}[B,C] \times \mathcal{C}[A,B] \to \mathcal{C}[A,C]&amp;lt;/math&amp;gt;,&lt;br /&gt;
such that:&lt;br /&gt;
* &amp;lt;math&amp;gt;f \in \mathcal{C}[A,B] \implies f\circ i_A = i_B\circ f = f&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;f\circ(g\circ h) = (f\circ g)\circ h&amp;lt;/math&amp;gt; whenever it makes sense.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
All concrete categories are categories, and here are some examples that are not obviously concrete:&lt;br /&gt;
* &#039;&#039;&#039;Graph&#039;&#039;&#039;: graphs and graph morphisms&lt;br /&gt;
* &#039;&#039;&#039;Rel&#039;&#039;&#039;: sets and relations&lt;br /&gt;
* &#039;&#039;&#039;Set×Set&#039;&#039;&#039;: pairs of sets, pairs of functions&lt;br /&gt;
* &#039;&#039;&#039;Set&amp;lt;math&amp;gt;^{op}&amp;lt;/math&amp;gt;&#039;&#039;&#039;: opposite of &#039;&#039;&#039;Set&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;P&#039;&#039;&#039;, whenever (&#039;&#039;&#039;P&#039;&#039;&#039;,&amp;lt;) is a preorder (at most one morphism between objects)&lt;br /&gt;
* &#039;&#039;&#039;M&#039;&#039;&#039;, whenever (&#039;&#039;&#039;M&#039;&#039;&#039;,e,×) is a monoid (a single object)&lt;br /&gt;
&lt;br /&gt;
We sometimes write &amp;lt;math&amp;gt;gf&amp;lt;/math&amp;gt; instead of &amp;lt;math&amp;gt;g \circ f&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
In a given category &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt;, there are analogues of the notions of injective and surjective functions in &#039;&#039;&#039;Set&#039;&#039;&#039;. We will see that on concrete categories, they are actually slightly more general. The idea of injectivity gives rise to &#039;&#039;monomorphisms&#039;&#039;, and surjectivity gives rise to &#039;&#039;epimorphisms&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
{{Definition |&lt;br /&gt;
&lt;br /&gt;
A morphism &amp;lt;math&amp;gt;f \colon A \to B&amp;lt;/math&amp;gt; is a &#039;&#039;monomorphism&#039;&#039; iff for all object &amp;lt;math&amp;gt;C&amp;lt;/math&amp;gt; and morphisms &amp;lt;math&amp;gt;g,h \colon C \to A&amp;lt;/math&amp;gt;, we have &amp;lt;math&amp;gt;fg = fh&amp;lt;/math&amp;gt; implies &amp;lt;math&amp;gt;g = h&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The morphism &amp;lt;math&amp;gt;f&amp;lt;/math&amp;gt; is an &#039;&#039;epimorphism&#039;&#039; when it is a monomorphism in &amp;lt;math&amp;gt;\mathcal{C}^{op}&amp;lt;/math&amp;gt;. Explicitly, when for all object &amp;lt;math&amp;gt;C&amp;lt;/math&amp;gt; and morphisms &amp;lt;math&amp;gt;g,h \colon B \to C&amp;lt;/math&amp;gt;, we have &amp;lt;math&amp;gt;gf = hf&amp;lt;/math&amp;gt; implies &amp;lt;math&amp;gt;g = h&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
  isomorphism&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Exercice&amp;lt;/u&amp;gt;&lt;br /&gt;
# Prove that in &#039;&#039;&#039;Set&#039;&#039;&#039;, epic is equivalent to surjective and monic is equivalent to injective.&lt;br /&gt;
# Prove the same thing in &#039;&#039;&#039;Ab&#039;&#039;&#039;, the category of commutative groups. (One thing is not obvious.)&lt;br /&gt;
# Prove the same thing in &#039;&#039;&#039;Grp&#039;&#039;&#039;, the category of (non necessarily commutative) groups. (One thing is not obvious at all.)&lt;br /&gt;
# Prove that &amp;lt;math&amp;gt;i : \mathbf{Z} \to \mathbf{Q}&amp;lt;/math&amp;gt; is an epimorphism in the category of rings with multiplicative neutral. (Note that it is not surjective.)&lt;br /&gt;
# In &#039;&#039;&#039;Set&#039;&#039;&#039;, we saw that &#039;&#039;f&#039;&#039; is a monic iff &amp;lt;math&amp;gt;\forall x,y : 1 \to A, f\circ x = f\circ y \implies x=y&amp;lt;/math&amp;gt;, where 1 is any singleton set. Can you find a set &#039;&#039;C&#039;&#039; such that &#039;&#039;f&#039;&#039; is epic iff &amp;lt;math&amp;gt;\forall p,q : B \to C, p\circ f = j\circ f \implies p=q&amp;lt;/math&amp;gt;?&lt;br /&gt;
# In &#039;&#039;&#039;Group&#039;&#039;&#039;, can you find an object playing a role similar to 1, &#039;&#039;ie&#039;&#039; a group &#039;&#039;G&#039;&#039; s.t. &#039;&#039;f&#039;&#039; is monic iff &amp;lt;math&amp;gt;\forall x,y : G \to A, f\circ x = f\circ y \implies x=y&amp;lt;/math&amp;gt;. (We saw that we cannot use the singleton group ({e},e,×) to do that...)&lt;br /&gt;
&lt;br /&gt;
===Functors===&lt;br /&gt;
&lt;br /&gt;
Informally, a functor is a map between two categories which somehow preserves the structure of categories (namely, composition).&lt;br /&gt;
&lt;br /&gt;
{{Definition |&lt;br /&gt;
A functor &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; from a category &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt; to a category &amp;lt;math&amp;gt;\mathcal{D}&amp;lt;/math&amp;gt;, noted &amp;lt;math&amp;gt;F \colon \mathcal{C} \to \mathcal{D}&amp;lt;/math&amp;gt;, is given by:&lt;br /&gt;
* a map which sends every object &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; of &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt; to an object &amp;lt;math&amp;gt;FA&amp;lt;/math&amp;gt; in &amp;lt;math&amp;gt;\mathcal{D}&amp;lt;/math&amp;gt;, and&lt;br /&gt;
* a map which sends every morphism &amp;lt;math&amp;gt;f \colon A \to B&amp;lt;/math&amp;gt; in &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt;, to a morphism &amp;lt;math&amp;gt;Ff&amp;lt;/math&amp;gt; in &amp;lt;math&amp;gt;\mathcal{D}[FA, FB]&amp;lt;/math&amp;gt;,&lt;br /&gt;
such that:&lt;br /&gt;
* &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; preserves identities, i.e., &amp;lt;math&amp;gt;F(id_A) = id_{FA}&amp;lt;/math&amp;gt;, and&lt;br /&gt;
* &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; preserves composition: &amp;lt;math&amp;gt;F(f \circ g) = F(f) \circ F(g)&amp;lt;/math&amp;gt;.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Exercice&amp;lt;/u&amp;gt;&lt;br /&gt;
# Take a functor &amp;lt;math&amp;gt;F \colon \mathcal{C} \to \mathcal{D}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;f, g, h&amp;lt;/math&amp;gt; three morphisms in &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt;, and &amp;lt;math&amp;gt;f&#039; = Ff&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;g&#039; = Fg&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;h&#039; = Fh&amp;lt;/math&amp;gt;. When &amp;lt;math&amp;gt;h&#039; = f&#039; \circ g&#039;&amp;lt;/math&amp;gt;, can we say something interesting about &amp;lt;math&amp;gt;f&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;g&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;h&amp;lt;/math&amp;gt;?&lt;br /&gt;
# Do functors preserve monomorphisms? Do functors preserve epimorphisms?&lt;br /&gt;
# Let &#039;&#039;F&#039;&#039; be a functor and &#039;&#039;F(f) = g&#039;&#039;, if &#039;&#039;g&#039;&#039; is a mono (resp. epi), is &#039;&#039;f&#039;&#039; a mono (resp. epi)?&lt;br /&gt;
If not, try to find some simple and natural condition on the functor to make that true.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Answer&amp;lt;/u&amp;gt;&lt;br /&gt;
# No, since &amp;lt;math&amp;gt;f&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;g&amp;lt;/math&amp;gt; may not even compose! This is the case when &amp;lt;math&amp;gt;f&amp;lt;/math&amp;gt; has type &amp;lt;math&amp;gt;A \to B&amp;lt;/math&amp;gt;, and &amp;lt;math&amp;gt;g \colon C \to D&amp;lt;/math&amp;gt;, with &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; collapsing &amp;lt;math&amp;gt;D&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; (i.e., &amp;lt;math&amp;gt;FA = FD&amp;lt;/math&amp;gt;).&lt;br /&gt;
# Functors in general do not preserve mono- nor epimorphisms. We build a counter-example for monomorphisms. Let &amp;lt;math&amp;gt;\mathbf{2}&amp;lt;/math&amp;gt; be the category with two objects &amp;lt;math&amp;gt;\star&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\bullet&amp;lt;/math&amp;gt;, and exactly one morphism &amp;lt;math&amp;gt;m \colon \star \to \bullet&amp;lt;/math&amp;gt;. This is a preorder, so &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; is monic. Now take &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt; with two objects &amp;lt;math&amp;gt;\star&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\bullet&amp;lt;/math&amp;gt;, exactly one morphism &amp;lt;math&amp;gt;m \colon \star \to \bullet&amp;lt;/math&amp;gt;, and one extra morphism &amp;lt;math&amp;gt;n \colon \star \to \star&amp;lt;/math&amp;gt;, different from the identity. Because of &amp;lt;math&amp;gt;n \neq id_\star&amp;lt;/math&amp;gt;, yet &amp;lt;math&amp;gt;m \circ n = m \circ id&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; is not monic in &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt;. The functor which sends &amp;lt;math&amp;gt;\star&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;\star&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;\bullet&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;\bullet&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; in &amp;lt;math&amp;gt;\mathbf{2}&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; in &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt;, does not preserve monomorphisms.&lt;br /&gt;
# In general, the answer is (again) no. For monos, take for example the functor &amp;lt;math&amp;gt;\mathcal{C} \to \mathbf{2}&amp;lt;/math&amp;gt; which sends &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; to the identity. Yet, when &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; is &#039;&#039;faithful&#039;&#039;, then &amp;lt;math&amp;gt;f&amp;lt;/math&amp;gt; is monic (or epic).&lt;br /&gt;
&lt;br /&gt;
{{Definition |&lt;br /&gt;
A functor &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; is faithful when, for any two morphisms &amp;lt;math&amp;gt;f, g&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;Ff = Fg&amp;lt;/math&amp;gt; implies &amp;lt;math&amp;gt;f=g&amp;lt;/math&amp;gt; (&amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; is injective on morphisms).&lt;br /&gt;
}}&lt;br /&gt;
{{Definition |&lt;br /&gt;
A functor &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; is full when, for any two objects &amp;lt;math&amp;gt;A, B&amp;lt;/math&amp;gt;, if &amp;lt;math&amp;gt;g&amp;lt;/math&amp;gt; is a morphism &amp;lt;math&amp;gt;FA \to FB&amp;lt;/math&amp;gt;, then there exists &amp;lt;math&amp;gt;f \colon A \to B&amp;lt;/math&amp;gt; with &amp;lt;math&amp;gt;Ff = g&amp;lt;/math&amp;gt; (&amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; is surjective on morphisms).&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Exercice&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Find an &amp;quot;interesting&amp;quot; functor from &#039;&#039;&#039;Set&#039;&#039;&#039; to &#039;&#039;&#039;Group&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Answer&amp;lt;/u&amp;gt;&lt;br /&gt;
Let &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; be the functor which sends:&lt;br /&gt;
* every set &amp;lt;math&amp;gt;X&amp;lt;/math&amp;gt; to the free group generated by &amp;lt;math&amp;gt;X&amp;lt;/math&amp;gt;, and&lt;br /&gt;
* every function &amp;lt;math&amp;gt;f \colon X \to Y&amp;lt;/math&amp;gt; to a group morphism defined by: &amp;lt;math&amp;gt;Ff(x_1^{\alpha_1}\times\dots\times x_k^{\alpha_k})=f(x_1)^{\alpha_1} \times \dots \times f(x_k)^{\alpha_k}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Exercice&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt; is a locally small category and &#039;&#039;A&#039;&#039; one of its objects, let &amp;lt;math&amp;gt;Y_A : X \mapsto \mathcal{C}[X,A]&amp;lt;/math&amp;gt;. Show that this operation from objects of &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt; to sets can be extended into a contravariant functor &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt; to &#039;&#039;&#039;Set&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Answer&amp;lt;/u&amp;gt;&lt;br /&gt;
Let &amp;lt;math&amp;gt;f\colon X \to Y&amp;lt;/math&amp;gt; be a morphism in &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt;, then &amp;lt;math&amp;gt;Y_A(f)&amp;lt;/math&amp;gt; is expected to be a function from the set &amp;lt;math&amp;gt;\mathcal{C}[Y, A]&amp;lt;/math&amp;gt; to the set &amp;lt;math&amp;gt;\mathcal{C}[X, A]&amp;lt;/math&amp;gt;. We can take, for any morphism &amp;lt;math&amp;gt;m \in \mathcal{C}[Y,A]&amp;lt;/math&amp;gt;: &amp;lt;math&amp;gt;Y_A(f)(m) = m \circ f&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
This extends &amp;lt;math&amp;gt;Y_A&amp;lt;/math&amp;gt; to a contravariant functor, since &amp;lt;math&amp;gt;Y_A(id_X) = id_{\mathcal{C}[X, A]}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;Y_A(f \circ g)(m) = m \circ (f \circ g) = (m \circ f) \circ g = (Y_A(g) \circ Y_A(f))(m)&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===Natural Transformations===&lt;br /&gt;
&lt;br /&gt;
{{Definition |&lt;br /&gt;
Let &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;G&amp;lt;/math&amp;gt; be two functors &amp;lt;math&amp;gt;\mathcal{C} \to \mathcal{D}&amp;lt;/math&amp;gt;. A natural transformation &amp;lt;math&amp;gt;\alpha&amp;lt;/math&amp;gt; from &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;G&amp;lt;/math&amp;gt; is given by:&lt;br /&gt;
* a morphism &amp;lt;math&amp;gt;\alpha_A \colon FA \to GA&amp;lt;/math&amp;gt; in &amp;lt;math&amp;gt;\mathcal{D}&amp;lt;/math&amp;gt; for every object &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; in &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt;,&lt;br /&gt;
* such that, for any morphism &amp;lt;math&amp;gt;f \colon A \to B&amp;lt;/math&amp;gt;, we have &amp;lt;math&amp;gt;Gf \circ \alpha_A = \alpha_B \circ Ff&amp;lt;/math&amp;gt;.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Exercice&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If &amp;lt;math&amp;gt;P(X)&amp;lt;/math&amp;gt; is the set of permutation of a (finite) set &#039;&#039;X&#039;&#039;; and &amp;lt;math&amp;gt;L(X)&amp;lt;/math&amp;gt; the set of its linear orderings, we have &amp;lt;math&amp;gt;\#(L(X)) = \#(L(X)) = n!&amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;n = \#(X)&amp;lt;/math&amp;gt;. Thus, there is a bijection (iso in &#039;&#039;&#039;Set&#039;&#039;&#039;) between &#039;&#039;P(X)&#039;&#039; and &#039;&#039;L(X)&#039;&#039;.&lt;br /&gt;
# Show that we can extend &#039;&#039;P&#039;&#039; and &#039;&#039;L&#039;&#039; to functors from &#039;&#039;&#039;B&#039;&#039;&#039; to &#039;&#039;&#039;Set&#039;&#039;&#039;, where &#039;&#039;&#039;B&#039;&#039;&#039; is the category of finite sets and bijections,&lt;br /&gt;
# Show that there can be no natural transformation from &#039;&#039;P&#039;&#039; to &#039;&#039;L&#039;&#039;,&lt;br /&gt;
# Conclude that there is no natural isomorphism between &#039;&#039;P&#039;&#039; and &#039;&#039;L&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
==Adjunctions==&lt;br /&gt;
&lt;br /&gt;
===About Limits and Colimits===&lt;br /&gt;
&lt;br /&gt;
One of the main thrusts of category theory is to define concepts by&lt;br /&gt;
their properties rather than by explicit construction. In general this&lt;br /&gt;
is just called abstraction, but in good cases, concepts are&lt;br /&gt;
&#039;&#039;defined&#039;&#039; by their properties, at least canonically if not uniquely.&lt;br /&gt;
&lt;br /&gt;
The chief example of this is binary products in &#039;&#039;&#039;Set&#039;&#039;&#039;.  The&lt;br /&gt;
product &amp;lt;math&amp;gt;A \times B&amp;lt;/math&amp;gt; of two sets &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; and&lt;br /&gt;
&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt; is generally thought of as the set of pairs &amp;lt;math&amp;gt; (x,&lt;br /&gt;
y) &amp;lt;/math&amp;gt; with &amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;y \in B&amp;lt;/math&amp;gt;.  But&lt;br /&gt;
strictly speaking, or rather set-theoretically speaking, one has to&lt;br /&gt;
construct it by cautious use of the axioms of Zermelo-Fraenkel set&lt;br /&gt;
theory.&lt;br /&gt;
&lt;br /&gt;
Instead, in any category &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt;, for any objects&lt;br /&gt;
&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt; categorists put: &lt;br /&gt;
&lt;br /&gt;
{{Definition | A&lt;br /&gt;
&#039;&#039;product&#039;&#039; of &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt; is an object &amp;lt;math&amp;gt;C&amp;lt;/math&amp;gt;&lt;br /&gt;
with arrows&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;A \xleftarrow{\pi_1} C \xrightarrow{\pi_2} B&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
such that for any object &amp;lt;math&amp;gt;D&amp;lt;/math&amp;gt; and arrows&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;A \xleftarrow{f} D \xrightarrow{g} B&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
there exists a unique arrow &amp;lt;math&amp;gt;h&amp;lt;/math&amp;gt; making the diagram&lt;br /&gt;
[[Image:prod.png|center|Universal property of product]]&lt;br /&gt;
commute, i.e., &amp;lt;math&amp;gt;\pi_1 \circ h = f&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\pi_2 \circ h = g&amp;lt;/math&amp;gt;.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
The standard constructions in &#039;&#039;&#039;Set&#039;&#039;&#039; all have this property, and&lt;br /&gt;
all the non-standard ones you can think of also do, e.g., the set of&lt;br /&gt;
pairs &amp;lt;math&amp;gt; (\emptyset, x, y) &amp;lt;/math&amp;gt; with &amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;y&lt;br /&gt;
\in B&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Conversely, any set with this property is as good as any other&lt;br /&gt;
construction of &amp;lt;math&amp;gt;A \times B&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Products are determined &#039;&#039;canonically&#039;&#039; by this property&lt;br /&gt;
property. We will give a more precise meaning to this in later&lt;br /&gt;
lectures; for now we just state:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Lemma.&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For any other product &amp;lt;center&amp;gt;&amp;lt;math&amp;gt;A \xleftarrow{p} E \xrightarrow{q} B&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt; of &lt;br /&gt;
&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;, there is a unique isomorphism pair &amp;lt;math&amp;gt; (r, s) &amp;lt;/math&amp;gt; &lt;br /&gt;
such that the diagrams&lt;br /&gt;
&lt;br /&gt;
[[Image:prod-iso.png|upright=2]] and &lt;br /&gt;
[[Image:prod-iso-2.png|upright=2]]&lt;br /&gt;
&lt;br /&gt;
commute.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===First examples and definition===&lt;br /&gt;
&lt;br /&gt;
====So-called &#039;&#039;free&#039;&#039; constructions in algebra: monoid, group, etc====&lt;br /&gt;
====Their universal property, the underlying functor====&lt;br /&gt;
====The isomorphism between hom-sets====&lt;br /&gt;
====Its naturality====&lt;br /&gt;
====Definition====&lt;br /&gt;
====On to the definition with &amp;lt;math&amp;gt;\eta&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\epsilon&amp;lt;/math&amp;gt;====&lt;br /&gt;
&lt;br /&gt;
===The simplicity behind definitions:2-categories and adjunctions therein===&lt;br /&gt;
&lt;br /&gt;
====Definition of 2-categories====&lt;br /&gt;
====String diagrams====&lt;br /&gt;
====&#039;&#039;&#039;CAT&#039;&#039;&#039; as a 2-category====&lt;br /&gt;
====Adjunctions in a 2-category====&lt;br /&gt;
&lt;br /&gt;
===Other basic examples===&lt;br /&gt;
&lt;br /&gt;
====Discussion: any syntax defines the free something==== The issue of &lt;br /&gt;
variable binding.&lt;br /&gt;
====Adjunction between partial orders = Galois connection====&lt;br /&gt;
====&amp;lt;math&amp;gt;\times&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\Rightarrow&amp;lt;/math&amp;gt; in logic====&lt;br /&gt;
====Sets/graphs and categories====&lt;br /&gt;
&lt;br /&gt;
===Monads and resolutions===&lt;br /&gt;
&lt;br /&gt;
====Definition of a monad====&lt;br /&gt;
====String diagrams====&lt;br /&gt;
====Every adjunction yields a monad====&lt;br /&gt;
====Example of monoids again: resolutions====&lt;br /&gt;
&lt;br /&gt;
===Monadic adjunctions===&lt;br /&gt;
&lt;br /&gt;
====The category of resolutions====&lt;br /&gt;
====Eilenberg-Moore is terminal====&lt;br /&gt;
====Kleisli is initial====&lt;br /&gt;
====Monadic adjunctions====&lt;br /&gt;
====Algebraic theories====&lt;br /&gt;
&lt;br /&gt;
===Properties===&lt;br /&gt;
&lt;br /&gt;
====Composing adjunctions====&lt;br /&gt;
====Preservation of limits/colimits====&lt;br /&gt;
====Freyd&#039;s existence theorem====&lt;br /&gt;
====Beck&#039;s monadicity theorem====&lt;br /&gt;
&lt;br /&gt;
==Limites and Colimits==&lt;br /&gt;
&lt;br /&gt;
===Limits===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example.&#039;&#039;&#039; Cartesian product.&lt;br /&gt;
&lt;br /&gt;
{{ Definition | Binary product.}}&lt;br /&gt;
&lt;br /&gt;
{{ Theorem. | The product of X and Y, if it exists, is unique up to isomorphism. (proof)}}&lt;br /&gt;
&lt;br /&gt;
{{ Examples | Set, Grp, Ab, Part.}&lt;br /&gt;
&lt;br /&gt;
{{ Examples | Preorder, Subset(E), Prop with entailment.}&lt;br /&gt;
&lt;br /&gt;
{{ Definition | Diagram. Cone. Limit.}}&lt;br /&gt;
&lt;br /&gt;
{{ Example | Limits in Set.}}&lt;br /&gt;
&lt;br /&gt;
{{ Examples | Shapes of diagrams for products, pullbacks, equalizers.}}&lt;br /&gt;
&lt;br /&gt;
{{ Example | Monos as pullbacks.}}&lt;br /&gt;
&lt;br /&gt;
{{ Theorem. | The limit of a diagram d, if it exists, is unique up to isomorphism.}}&lt;br /&gt;
&lt;br /&gt;
{{ Theorem. | A category with &amp;quot;all&amp;quot; products and equalizers has &amp;quot;all&amp;quot; limits.}}&lt;br /&gt;
&lt;br /&gt;
{{ Theorem. | A category with a terminal object and all binary products and all equalizers has &amp;quot;all&amp;quot; finite limits.}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Colimites (limites inductives, limites directes, lim--&amp;gt;) &lt;br /&gt;
&lt;br /&gt;
cocône, colimite &lt;br /&gt;
THEO. unicité à iso près (preuve : dualité)&lt;br /&gt;
somme binaire, n-aire, objet initial (somme, coproduit, produit libre)&lt;br /&gt;
  EX. Set, Grp, Ab, Part (X+Y),&lt;br /&gt;
  EX. préordre (&amp;quot;join&amp;quot; ou sup), Sub(X) (union), Prop avec |- (entailment) :&lt;br /&gt;
     somme = &amp;quot;ou&amp;quot;, coproj = élim. &amp;quot;ou&amp;quot;, paires = intro. &amp;quot;ou&amp;quot;, initial = &amp;quot;false&amp;quot; &lt;br /&gt;
coproj =/=&amp;gt; mono&lt;br /&gt;
pushout, épi, coégaliseur&lt;br /&gt;
  EX. coégaliseur vs most general unifier : &lt;br /&gt;
   catégorie de Kleisli de la monade des termes &amp;quot;Subst&amp;quot;&lt;br /&gt;
  (EX. dpo ?)&lt;br /&gt;
THEO. coégaliseurs &amp;amp; sommes  =&amp;gt; colimites &lt;br /&gt;
THEO. coégaliseurs &amp;amp; sommes binaires &amp;amp; objet initial =&amp;gt; colimites finies &lt;br /&gt;
&lt;br /&gt;
*  Divers&lt;br /&gt;
&lt;br /&gt;
Adjonction&lt;br /&gt;
THEO. &lt;br /&gt;
  un adjoint à droite préserve les limites (preuve : exercice [ML])&lt;br /&gt;
  un adjoint à gauche préserve les colimites (preuve : dualité)&lt;br /&gt;
  EX. U:Grp-&amp;gt;Set préserve les limites, pas les colimites &lt;br /&gt;
&lt;br /&gt;
Produits et sommes :&lt;br /&gt;
distributivité : a category with finite sums and products such that &lt;br /&gt;
  the canonical map AxB+AxC --&amp;gt; Ax(B+C) is an isomorphism&lt;br /&gt;
extensivité : a category with finite sums for which the canonical functor &lt;br /&gt;
  + : C/A x C/B --&amp;gt; C/(A+B) is an equivalence. &lt;br /&gt;
EX. &amp;quot;if..then..else..&amp;quot;. p:X-&amp;gt;B avec B=1+1. &lt;br /&gt;
  D&#039;où X =X(p)+X(-p) par extensivité. Alors X(p) et X(-p) sont des PB [CLW].&lt;br /&gt;
&lt;br /&gt;
==Course Complements, references==&lt;br /&gt;
&lt;br /&gt;
One of the best books about category theory is&lt;br /&gt;
* Saunder MacLane, &#039;&#039;&amp;quot;Categories for the Working Mathematician&amp;quot;&#039;&#039;.&lt;br /&gt;
It is a little &amp;quot;dry&amp;quot;, in the sense that learning categories from it is not the easiest task on earth, but it still is one of the best references.&lt;br /&gt;
&lt;br /&gt;
I haven&#039;t really read it carefully, but here is [http://en.wikipedia.org/wiki/Category_theory what Wikipedia has to say on category theory].&lt;/div&gt;</summary>
		<author><name>DDuval</name></author>
	</entry>
	<entry>
		<id>http://os-vps418.infomaniak.ch:1250/mediawiki/index.php?title=Langage_et_concepts_cat%C3%A9goriques_pour_les_math%C3%A9matiques_et_l%E2%80%99informatique&amp;diff=3952</id>
		<title>Langage et concepts catégoriques pour les mathématiques et l’informatique</title>
		<link rel="alternate" type="text/html" href="http://os-vps418.infomaniak.ch:1250/mediawiki/index.php?title=Langage_et_concepts_cat%C3%A9goriques_pour_les_math%C3%A9matiques_et_l%E2%80%99informatique&amp;diff=3952"/>
		<updated>2009-03-11T14:48:36Z</updated>

		<summary type="html">&lt;p&gt;DDuval : /* Limits */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This is a wiki for a course at the MSTII &amp;quot;École doctorale&amp;quot; of Grenoble.&lt;br /&gt;
&lt;br /&gt;
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...&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===News===&lt;br /&gt;
&lt;br /&gt;
Courses are on wednesdays morning, 9&#039;00 to 12&#039;00 in room F218 at the &amp;quot;UFR IMAG&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
* first course on the 25th of February: categories, functors, natural transformations.&lt;br /&gt;
* March 4. : monads, adjunctions.&lt;br /&gt;
* March 11. : limits and colimits.&lt;br /&gt;
&lt;br /&gt;
==Basic Concepts==&lt;br /&gt;
&lt;br /&gt;
===Categories===&lt;br /&gt;
&lt;br /&gt;
{{Definition |&lt;br /&gt;
A concrete category is given by:&lt;br /&gt;
* a collection of sets &#039;&#039;with structure&#039;&#039;,&lt;br /&gt;
* for any pair of such sets, a set of &#039;&#039;morphisms&#039;&#039; preserving the structure.&lt;br /&gt;
Morphisms should compose, and the identity should be a morphism.}}&lt;br /&gt;
&lt;br /&gt;
This definition is a little informal, but here are some examples:&lt;br /&gt;
* &#039;&#039;&#039;Grp&#039;&#039;&#039;: groups and group morphisms&lt;br /&gt;
* &#039;&#039;&#039;Top&#039;&#039;&#039;: topological spaces and continuous functions&lt;br /&gt;
* &#039;&#039;&#039;Ring&#039;&#039;&#039;: rings and rings morphisms&lt;br /&gt;
* &#039;&#039;&#039;Vect&#039;&#039;&#039;: vectors spaces and linear maps&lt;br /&gt;
* &#039;&#039;&#039;CPO&#039;&#039;&#039;: CPOs and continuous functions&lt;br /&gt;
* ...&lt;br /&gt;
* &#039;&#039;&#039;Set&#039;&#039;&#039;: sets and functions (&#039;&#039;&#039;ie&#039;&#039;&#039; sets with no structures, and arbitrary functions)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Generalizing the definition, we obtain the official definition of category:&lt;br /&gt;
&lt;br /&gt;
{{Definition |&lt;br /&gt;
A category &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt; is given by:&lt;br /&gt;
* a collection &amp;lt;math&amp;gt;\mathcal{C}_o&amp;lt;/math&amp;gt; of &#039;&#039;objects&#039;&#039;,  (notation: &amp;lt;math&amp;gt;A,B,C,X,Y,...&amp;lt;/math&amp;gt;)&lt;br /&gt;
* for each pair &amp;lt;math&amp;gt;A,B&amp;lt;/math&amp;gt; of objects, a collection &amp;lt;math&amp;gt;\mathcal{C}[A,B]&amp;lt;/math&amp;gt; of &#039;&#039;morphisms from &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&#039;&#039;,  (notation &amp;lt;math&amp;gt; f : A\to B&amp;lt;/math&amp;gt;)&lt;br /&gt;
* for any object &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;, a special morphism &amp;lt;math&amp;gt;i_A : A\to A&amp;lt;/math&amp;gt;&lt;br /&gt;
* for all objects &amp;lt;math&amp;gt;A,B,C&amp;lt;/math&amp;gt;, a composition &amp;lt;math&amp;gt;\circ : \mathcal{C}[B,C] \times \mathcal{C}[A,B] \to \mathcal{C}[A,C]&amp;lt;/math&amp;gt;,&lt;br /&gt;
such that:&lt;br /&gt;
* &amp;lt;math&amp;gt;f \in \mathcal{C}[A,B] \implies f\circ i_A = i_B\circ f = f&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;f\circ(g\circ h) = (f\circ g)\circ h&amp;lt;/math&amp;gt; whenever it makes sense.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
All concrete categories are categories, and here are some examples that are not obviously concrete:&lt;br /&gt;
* &#039;&#039;&#039;Graph&#039;&#039;&#039;: graphs and graph morphisms&lt;br /&gt;
* &#039;&#039;&#039;Rel&#039;&#039;&#039;: sets and relations&lt;br /&gt;
* &#039;&#039;&#039;Set×Set&#039;&#039;&#039;: pairs of sets, pairs of functions&lt;br /&gt;
* &#039;&#039;&#039;Set&amp;lt;math&amp;gt;^{op}&amp;lt;/math&amp;gt;&#039;&#039;&#039;: opposite of &#039;&#039;&#039;Set&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;P&#039;&#039;&#039;, whenever (&#039;&#039;&#039;P&#039;&#039;&#039;,&amp;lt;) is a preorder (at most one morphism between objects)&lt;br /&gt;
* &#039;&#039;&#039;M&#039;&#039;&#039;, whenever (&#039;&#039;&#039;M&#039;&#039;&#039;,e,×) is a monoid (a single object)&lt;br /&gt;
&lt;br /&gt;
We sometimes write &amp;lt;math&amp;gt;gf&amp;lt;/math&amp;gt; instead of &amp;lt;math&amp;gt;g \circ f&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
In a given category &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt;, there are analogues of the notions of injective and surjective functions in &#039;&#039;&#039;Set&#039;&#039;&#039;. We will see that on concrete categories, they are actually slightly more general. The idea of injectivity gives rise to &#039;&#039;monomorphisms&#039;&#039;, and surjectivity gives rise to &#039;&#039;epimorphisms&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
{{Definition |&lt;br /&gt;
&lt;br /&gt;
A morphism &amp;lt;math&amp;gt;f \colon A \to B&amp;lt;/math&amp;gt; is a &#039;&#039;monomorphism&#039;&#039; iff for all object &amp;lt;math&amp;gt;C&amp;lt;/math&amp;gt; and morphisms &amp;lt;math&amp;gt;g,h \colon C \to A&amp;lt;/math&amp;gt;, we have &amp;lt;math&amp;gt;fg = fh&amp;lt;/math&amp;gt; implies &amp;lt;math&amp;gt;g = h&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The morphism &amp;lt;math&amp;gt;f&amp;lt;/math&amp;gt; is an &#039;&#039;epimorphism&#039;&#039; when it is a monomorphism in &amp;lt;math&amp;gt;\mathcal{C}^{op}&amp;lt;/math&amp;gt;. Explicitly, when for all object &amp;lt;math&amp;gt;C&amp;lt;/math&amp;gt; and morphisms &amp;lt;math&amp;gt;g,h \colon B \to C&amp;lt;/math&amp;gt;, we have &amp;lt;math&amp;gt;gf = hf&amp;lt;/math&amp;gt; implies &amp;lt;math&amp;gt;g = h&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
  isomorphism&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Exercice&amp;lt;/u&amp;gt;&lt;br /&gt;
# Prove that in &#039;&#039;&#039;Set&#039;&#039;&#039;, epic is equivalent to surjective and monic is equivalent to injective.&lt;br /&gt;
# Prove the same thing in &#039;&#039;&#039;Ab&#039;&#039;&#039;, the category of commutative groups. (One thing is not obvious.)&lt;br /&gt;
# Prove the same thing in &#039;&#039;&#039;Grp&#039;&#039;&#039;, the category of (non necessarily commutative) groups. (One thing is not obvious at all.)&lt;br /&gt;
# Prove that &amp;lt;math&amp;gt;i : \mathbf{Z} \to \mathbf{Q}&amp;lt;/math&amp;gt; is an epimorphism in the category of rings with multiplicative neutral. (Note that it is not surjective.)&lt;br /&gt;
# In &#039;&#039;&#039;Set&#039;&#039;&#039;, we saw that &#039;&#039;f&#039;&#039; is a monic iff &amp;lt;math&amp;gt;\forall x,y : 1 \to A, f\circ x = f\circ y \implies x=y&amp;lt;/math&amp;gt;, where 1 is any singleton set. Can you find a set &#039;&#039;C&#039;&#039; such that &#039;&#039;f&#039;&#039; is epic iff &amp;lt;math&amp;gt;\forall p,q : B \to C, p\circ f = j\circ f \implies p=q&amp;lt;/math&amp;gt;?&lt;br /&gt;
# In &#039;&#039;&#039;Group&#039;&#039;&#039;, can you find an object playing a role similar to 1, &#039;&#039;ie&#039;&#039; a group &#039;&#039;G&#039;&#039; s.t. &#039;&#039;f&#039;&#039; is monic iff &amp;lt;math&amp;gt;\forall x,y : G \to A, f\circ x = f\circ y \implies x=y&amp;lt;/math&amp;gt;. (We saw that we cannot use the singleton group ({e},e,×) to do that...)&lt;br /&gt;
&lt;br /&gt;
===Functors===&lt;br /&gt;
&lt;br /&gt;
Informally, a functor is a map between two categories which somehow preserves the structure of categories (namely, composition).&lt;br /&gt;
&lt;br /&gt;
{{Definition |&lt;br /&gt;
A functor &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; from a category &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt; to a category &amp;lt;math&amp;gt;\mathcal{D}&amp;lt;/math&amp;gt;, noted &amp;lt;math&amp;gt;F \colon \mathcal{C} \to \mathcal{D}&amp;lt;/math&amp;gt;, is given by:&lt;br /&gt;
* a map which sends every object &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; of &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt; to an object &amp;lt;math&amp;gt;FA&amp;lt;/math&amp;gt; in &amp;lt;math&amp;gt;\mathcal{D}&amp;lt;/math&amp;gt;, and&lt;br /&gt;
* a map which sends every morphism &amp;lt;math&amp;gt;f \colon A \to B&amp;lt;/math&amp;gt; in &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt;, to a morphism &amp;lt;math&amp;gt;Ff&amp;lt;/math&amp;gt; in &amp;lt;math&amp;gt;\mathcal{D}[FA, FB]&amp;lt;/math&amp;gt;,&lt;br /&gt;
such that:&lt;br /&gt;
* &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; preserves identities, i.e., &amp;lt;math&amp;gt;F(id_A) = id_{FA}&amp;lt;/math&amp;gt;, and&lt;br /&gt;
* &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; preserves composition: &amp;lt;math&amp;gt;F(f \circ g) = F(f) \circ F(g)&amp;lt;/math&amp;gt;.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Exercice&amp;lt;/u&amp;gt;&lt;br /&gt;
# Take a functor &amp;lt;math&amp;gt;F \colon \mathcal{C} \to \mathcal{D}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;f, g, h&amp;lt;/math&amp;gt; three morphisms in &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt;, and &amp;lt;math&amp;gt;f&#039; = Ff&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;g&#039; = Fg&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;h&#039; = Fh&amp;lt;/math&amp;gt;. When &amp;lt;math&amp;gt;h&#039; = f&#039; \circ g&#039;&amp;lt;/math&amp;gt;, can we say something interesting about &amp;lt;math&amp;gt;f&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;g&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;h&amp;lt;/math&amp;gt;?&lt;br /&gt;
# Do functors preserve monomorphisms? Do functors preserve epimorphisms?&lt;br /&gt;
# Let &#039;&#039;F&#039;&#039; be a functor and &#039;&#039;F(f) = g&#039;&#039;, if &#039;&#039;g&#039;&#039; is a mono (resp. epi), is &#039;&#039;f&#039;&#039; a mono (resp. epi)?&lt;br /&gt;
If not, try to find some simple and natural condition on the functor to make that true.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Answer&amp;lt;/u&amp;gt;&lt;br /&gt;
# No, since &amp;lt;math&amp;gt;f&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;g&amp;lt;/math&amp;gt; may not even compose! This is the case when &amp;lt;math&amp;gt;f&amp;lt;/math&amp;gt; has type &amp;lt;math&amp;gt;A \to B&amp;lt;/math&amp;gt;, and &amp;lt;math&amp;gt;g \colon C \to D&amp;lt;/math&amp;gt;, with &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; collapsing &amp;lt;math&amp;gt;D&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; (i.e., &amp;lt;math&amp;gt;FA = FD&amp;lt;/math&amp;gt;).&lt;br /&gt;
# Functors in general do not preserve mono- nor epimorphisms. We build a counter-example for monomorphisms. Let &amp;lt;math&amp;gt;\mathbf{2}&amp;lt;/math&amp;gt; be the category with two objects &amp;lt;math&amp;gt;\star&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\bullet&amp;lt;/math&amp;gt;, and exactly one morphism &amp;lt;math&amp;gt;m \colon \star \to \bullet&amp;lt;/math&amp;gt;. This is a preorder, so &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; is monic. Now take &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt; with two objects &amp;lt;math&amp;gt;\star&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\bullet&amp;lt;/math&amp;gt;, exactly one morphism &amp;lt;math&amp;gt;m \colon \star \to \bullet&amp;lt;/math&amp;gt;, and one extra morphism &amp;lt;math&amp;gt;n \colon \star \to \star&amp;lt;/math&amp;gt;, different from the identity. Because of &amp;lt;math&amp;gt;n \neq id_\star&amp;lt;/math&amp;gt;, yet &amp;lt;math&amp;gt;m \circ n = m \circ id&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; is not monic in &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt;. The functor which sends &amp;lt;math&amp;gt;\star&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;\star&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;\bullet&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;\bullet&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; in &amp;lt;math&amp;gt;\mathbf{2}&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; in &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt;, does not preserve monomorphisms.&lt;br /&gt;
# In general, the answer is (again) no. For monos, take for example the functor &amp;lt;math&amp;gt;\mathcal{C} \to \mathbf{2}&amp;lt;/math&amp;gt; which sends &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; to the identity. Yet, when &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; is &#039;&#039;faithful&#039;&#039;, then &amp;lt;math&amp;gt;f&amp;lt;/math&amp;gt; is monic (or epic).&lt;br /&gt;
&lt;br /&gt;
{{Definition |&lt;br /&gt;
A functor &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; is faithful when, for any two morphisms &amp;lt;math&amp;gt;f, g&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;Ff = Fg&amp;lt;/math&amp;gt; implies &amp;lt;math&amp;gt;f=g&amp;lt;/math&amp;gt; (&amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; is injective on morphisms).&lt;br /&gt;
}}&lt;br /&gt;
{{Definition |&lt;br /&gt;
A functor &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; is full when, for any two objects &amp;lt;math&amp;gt;A, B&amp;lt;/math&amp;gt;, if &amp;lt;math&amp;gt;g&amp;lt;/math&amp;gt; is a morphism &amp;lt;math&amp;gt;FA \to FB&amp;lt;/math&amp;gt;, then there exists &amp;lt;math&amp;gt;f \colon A \to B&amp;lt;/math&amp;gt; with &amp;lt;math&amp;gt;Ff = g&amp;lt;/math&amp;gt; (&amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; is surjective on morphisms).&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Exercice&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Find an &amp;quot;interesting&amp;quot; functor from &#039;&#039;&#039;Set&#039;&#039;&#039; to &#039;&#039;&#039;Group&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Answer&amp;lt;/u&amp;gt;&lt;br /&gt;
Let &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; be the functor which sends:&lt;br /&gt;
* every set &amp;lt;math&amp;gt;X&amp;lt;/math&amp;gt; to the free group generated by &amp;lt;math&amp;gt;X&amp;lt;/math&amp;gt;, and&lt;br /&gt;
* every function &amp;lt;math&amp;gt;f \colon X \to Y&amp;lt;/math&amp;gt; to a group morphism defined by: &amp;lt;math&amp;gt;Ff(x_1^{\alpha_1}\times\dots\times x_k^{\alpha_k})=f(x_1)^{\alpha_1} \times \dots \times f(x_k)^{\alpha_k}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Exercice&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt; is a locally small category and &#039;&#039;A&#039;&#039; one of its objects, let &amp;lt;math&amp;gt;Y_A : X \mapsto \mathcal{C}[X,A]&amp;lt;/math&amp;gt;. Show that this operation from objects of &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt; to sets can be extended into a contravariant functor &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt; to &#039;&#039;&#039;Set&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Answer&amp;lt;/u&amp;gt;&lt;br /&gt;
Let &amp;lt;math&amp;gt;f\colon X \to Y&amp;lt;/math&amp;gt; be a morphism in &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt;, then &amp;lt;math&amp;gt;Y_A(f)&amp;lt;/math&amp;gt; is expected to be a function from the set &amp;lt;math&amp;gt;\mathcal{C}[Y, A]&amp;lt;/math&amp;gt; to the set &amp;lt;math&amp;gt;\mathcal{C}[X, A]&amp;lt;/math&amp;gt;. We can take, for any morphism &amp;lt;math&amp;gt;m \in \mathcal{C}[Y,A]&amp;lt;/math&amp;gt;: &amp;lt;math&amp;gt;Y_A(f)(m) = m \circ f&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
This extends &amp;lt;math&amp;gt;Y_A&amp;lt;/math&amp;gt; to a contravariant functor, since &amp;lt;math&amp;gt;Y_A(id_X) = id_{\mathcal{C}[X, A]}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;Y_A(f \circ g)(m) = m \circ (f \circ g) = (m \circ f) \circ g = (Y_A(g) \circ Y_A(f))(m)&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===Natural Transformations===&lt;br /&gt;
&lt;br /&gt;
{{Definition |&lt;br /&gt;
Let &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;G&amp;lt;/math&amp;gt; be two functors &amp;lt;math&amp;gt;\mathcal{C} \to \mathcal{D}&amp;lt;/math&amp;gt;. A natural transformation &amp;lt;math&amp;gt;\alpha&amp;lt;/math&amp;gt; from &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;G&amp;lt;/math&amp;gt; is given by:&lt;br /&gt;
* a morphism &amp;lt;math&amp;gt;\alpha_A \colon FA \to GA&amp;lt;/math&amp;gt; in &amp;lt;math&amp;gt;\mathcal{D}&amp;lt;/math&amp;gt; for every object &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; in &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt;,&lt;br /&gt;
* such that, for any morphism &amp;lt;math&amp;gt;f \colon A \to B&amp;lt;/math&amp;gt;, we have &amp;lt;math&amp;gt;Gf \circ \alpha_A = \alpha_B \circ Ff&amp;lt;/math&amp;gt;.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Exercice&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If &amp;lt;math&amp;gt;P(X)&amp;lt;/math&amp;gt; is the set of permutation of a (finite) set &#039;&#039;X&#039;&#039;; and &amp;lt;math&amp;gt;L(X)&amp;lt;/math&amp;gt; the set of its linear orderings, we have &amp;lt;math&amp;gt;\#(L(X)) = \#(L(X)) = n!&amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;n = \#(X)&amp;lt;/math&amp;gt;. Thus, there is a bijection (iso in &#039;&#039;&#039;Set&#039;&#039;&#039;) between &#039;&#039;P(X)&#039;&#039; and &#039;&#039;L(X)&#039;&#039;.&lt;br /&gt;
# Show that we can extend &#039;&#039;P&#039;&#039; and &#039;&#039;L&#039;&#039; to functors from &#039;&#039;&#039;B&#039;&#039;&#039; to &#039;&#039;&#039;Set&#039;&#039;&#039;, where &#039;&#039;&#039;B&#039;&#039;&#039; is the category of finite sets and bijections,&lt;br /&gt;
# Show that there can be no natural transformation from &#039;&#039;P&#039;&#039; to &#039;&#039;L&#039;&#039;,&lt;br /&gt;
# Conclude that there is no natural isomorphism between &#039;&#039;P&#039;&#039; and &#039;&#039;L&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
==Adjunctions==&lt;br /&gt;
&lt;br /&gt;
===About Limits and Colimits===&lt;br /&gt;
&lt;br /&gt;
One of the main thrusts of category theory is to define concepts by&lt;br /&gt;
their properties rather than by explicit construction. In general this&lt;br /&gt;
is just called abstraction, but in good cases, concepts are&lt;br /&gt;
&#039;&#039;defined&#039;&#039; by their properties, at least canonically if not uniquely.&lt;br /&gt;
&lt;br /&gt;
The chief example of this is binary products in &#039;&#039;&#039;Set&#039;&#039;&#039;.  The&lt;br /&gt;
product &amp;lt;math&amp;gt;A \times B&amp;lt;/math&amp;gt; of two sets &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; and&lt;br /&gt;
&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt; is generally thought of as the set of pairs &amp;lt;math&amp;gt; (x,&lt;br /&gt;
y) &amp;lt;/math&amp;gt; with &amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;y \in B&amp;lt;/math&amp;gt;.  But&lt;br /&gt;
strictly speaking, or rather set-theoretically speaking, one has to&lt;br /&gt;
construct it by cautious use of the axioms of Zermelo-Fraenkel set&lt;br /&gt;
theory.&lt;br /&gt;
&lt;br /&gt;
Instead, in any category &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt;, for any objects&lt;br /&gt;
&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt; categorists put: &lt;br /&gt;
&lt;br /&gt;
{{Definition | A&lt;br /&gt;
&#039;&#039;product&#039;&#039; of &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt; is an object &amp;lt;math&amp;gt;C&amp;lt;/math&amp;gt;&lt;br /&gt;
with arrows&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;A \xleftarrow{\pi_1} C \xrightarrow{\pi_2} B&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
such that for any object &amp;lt;math&amp;gt;D&amp;lt;/math&amp;gt; and arrows&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;A \xleftarrow{f} D \xrightarrow{g} B&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
there exists a unique arrow &amp;lt;math&amp;gt;h&amp;lt;/math&amp;gt; making the diagram&lt;br /&gt;
[[Image:prod.png|center|Universal property of product]]&lt;br /&gt;
commute, i.e., &amp;lt;math&amp;gt;\pi_1 \circ h = f&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\pi_2 \circ h = g&amp;lt;/math&amp;gt;.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
The standard constructions in &#039;&#039;&#039;Set&#039;&#039;&#039; all have this property, and&lt;br /&gt;
all the non-standard ones you can think of also do, e.g., the set of&lt;br /&gt;
pairs &amp;lt;math&amp;gt; (\emptyset, x, y) &amp;lt;/math&amp;gt; with &amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;y&lt;br /&gt;
\in B&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Conversely, any set with this property is as good as any other&lt;br /&gt;
construction of &amp;lt;math&amp;gt;A \times B&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Products are determined &#039;&#039;canonically&#039;&#039; by this property&lt;br /&gt;
property. We will give a more precise meaning to this in later&lt;br /&gt;
lectures; for now we just state:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Lemma.&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For any other product &amp;lt;center&amp;gt;&amp;lt;math&amp;gt;A \xleftarrow{p} E \xrightarrow{q} B&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt; of &lt;br /&gt;
&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;, there is a unique isomorphism pair &amp;lt;math&amp;gt; (r, s) &amp;lt;/math&amp;gt; &lt;br /&gt;
such that the diagrams&lt;br /&gt;
&lt;br /&gt;
[[Image:prod-iso.png|upright=2]] and &lt;br /&gt;
[[Image:prod-iso-2.png|upright=2]]&lt;br /&gt;
&lt;br /&gt;
commute.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===First examples and definition===&lt;br /&gt;
&lt;br /&gt;
====So-called &#039;&#039;free&#039;&#039; constructions in algebra: monoid, group, etc====&lt;br /&gt;
====Their universal property, the underlying functor====&lt;br /&gt;
====The isomorphism between hom-sets====&lt;br /&gt;
====Its naturality====&lt;br /&gt;
====Definition====&lt;br /&gt;
====On to the definition with &amp;lt;math&amp;gt;\eta&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\epsilon&amp;lt;/math&amp;gt;====&lt;br /&gt;
&lt;br /&gt;
===The simplicity behind definitions:2-categories and adjunctions therein===&lt;br /&gt;
&lt;br /&gt;
====Definition of 2-categories====&lt;br /&gt;
====String diagrams====&lt;br /&gt;
====&#039;&#039;&#039;CAT&#039;&#039;&#039; as a 2-category====&lt;br /&gt;
====Adjunctions in a 2-category====&lt;br /&gt;
&lt;br /&gt;
===Other basic examples===&lt;br /&gt;
&lt;br /&gt;
====Discussion: any syntax defines the free something==== The issue of &lt;br /&gt;
variable binding.&lt;br /&gt;
====Adjunction between partial orders = Galois connection====&lt;br /&gt;
====&amp;lt;math&amp;gt;\times&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\Rightarrow&amp;lt;/math&amp;gt; in logic====&lt;br /&gt;
====Sets/graphs and categories====&lt;br /&gt;
&lt;br /&gt;
===Monads and resolutions===&lt;br /&gt;
&lt;br /&gt;
====Definition of a monad====&lt;br /&gt;
====String diagrams====&lt;br /&gt;
====Every adjunction yields a monad====&lt;br /&gt;
====Example of monoids again: resolutions====&lt;br /&gt;
&lt;br /&gt;
===Monadic adjunctions===&lt;br /&gt;
&lt;br /&gt;
====The category of resolutions====&lt;br /&gt;
====Eilenberg-Moore is terminal====&lt;br /&gt;
====Kleisli is initial====&lt;br /&gt;
====Monadic adjunctions====&lt;br /&gt;
====Algebraic theories====&lt;br /&gt;
&lt;br /&gt;
===Properties===&lt;br /&gt;
&lt;br /&gt;
====Composing adjunctions====&lt;br /&gt;
====Preservation of limits/colimits====&lt;br /&gt;
====Freyd&#039;s existence theorem====&lt;br /&gt;
====Beck&#039;s monadicity theorem====&lt;br /&gt;
&lt;br /&gt;
==Limites and Colimits==&lt;br /&gt;
&lt;br /&gt;
===Limits===&lt;br /&gt;
&lt;br /&gt;
{{ Example | Cartesian product.}}&lt;br /&gt;
&lt;br /&gt;
{{ Definition | Binary product.}}&lt;br /&gt;
&lt;br /&gt;
{{ Theorem. | The product of X and Y, if it exists, is unique up to isomorphism. (proof)}}&lt;br /&gt;
&lt;br /&gt;
{{ Examples | Set, Grp, Ab, Part.}&lt;br /&gt;
&lt;br /&gt;
{{ Examples | Preorder, Subset(E), Prop with entailment.}&lt;br /&gt;
&lt;br /&gt;
{{ Definition | Diagram. Cone. Limit.}}&lt;br /&gt;
&lt;br /&gt;
{{ Example | Limits in Set.}}&lt;br /&gt;
&lt;br /&gt;
{{ Examples | Shapes of diagrams for products, pullbacks, equalizers.}}&lt;br /&gt;
&lt;br /&gt;
{{ Example | Monos as pullbacks.}}&lt;br /&gt;
&lt;br /&gt;
{{ Theorem. | The limit of a diagram d, if it exists, is unique up to isomorphism.}}&lt;br /&gt;
&lt;br /&gt;
{{ Theorem. | A category with &amp;quot;all&amp;quot; products and equalizers has &amp;quot;all&amp;quot; limits.}}&lt;br /&gt;
&lt;br /&gt;
{{ Theorem. | A category with a terminal object and all binary products and all equalizers has &amp;quot;all&amp;quot; finite limits.}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Colimites (limites inductives, limites directes, lim--&amp;gt;) &lt;br /&gt;
&lt;br /&gt;
cocône, colimite &lt;br /&gt;
THEO. unicité à iso près (preuve : dualité)&lt;br /&gt;
somme binaire, n-aire, objet initial (somme, coproduit, produit libre)&lt;br /&gt;
  EX. Set, Grp, Ab, Part (X+Y),&lt;br /&gt;
  EX. préordre (&amp;quot;join&amp;quot; ou sup), Sub(X) (union), Prop avec |- (entailment) :&lt;br /&gt;
     somme = &amp;quot;ou&amp;quot;, coproj = élim. &amp;quot;ou&amp;quot;, paires = intro. &amp;quot;ou&amp;quot;, initial = &amp;quot;false&amp;quot; &lt;br /&gt;
coproj =/=&amp;gt; mono&lt;br /&gt;
pushout, épi, coégaliseur&lt;br /&gt;
  EX. coégaliseur vs most general unifier : &lt;br /&gt;
   catégorie de Kleisli de la monade des termes &amp;quot;Subst&amp;quot;&lt;br /&gt;
  (EX. dpo ?)&lt;br /&gt;
THEO. coégaliseurs &amp;amp; sommes  =&amp;gt; colimites &lt;br /&gt;
THEO. coégaliseurs &amp;amp; sommes binaires &amp;amp; objet initial =&amp;gt; colimites finies &lt;br /&gt;
&lt;br /&gt;
*  Divers&lt;br /&gt;
&lt;br /&gt;
Adjonction&lt;br /&gt;
THEO. &lt;br /&gt;
  un adjoint à droite préserve les limites (preuve : exercice [ML])&lt;br /&gt;
  un adjoint à gauche préserve les colimites (preuve : dualité)&lt;br /&gt;
  EX. U:Grp-&amp;gt;Set préserve les limites, pas les colimites &lt;br /&gt;
&lt;br /&gt;
Produits et sommes :&lt;br /&gt;
distributivité : a category with finite sums and products such that &lt;br /&gt;
  the canonical map AxB+AxC --&amp;gt; Ax(B+C) is an isomorphism&lt;br /&gt;
extensivité : a category with finite sums for which the canonical functor &lt;br /&gt;
  + : C/A x C/B --&amp;gt; C/(A+B) is an equivalence. &lt;br /&gt;
EX. &amp;quot;if..then..else..&amp;quot;. p:X-&amp;gt;B avec B=1+1. &lt;br /&gt;
  D&#039;où X =X(p)+X(-p) par extensivité. Alors X(p) et X(-p) sont des PB [CLW].&lt;br /&gt;
&lt;br /&gt;
==Course Complements, references==&lt;br /&gt;
&lt;br /&gt;
One of the best books about category theory is&lt;br /&gt;
* Saunder MacLane, &#039;&#039;&amp;quot;Categories for the Working Mathematician&amp;quot;&#039;&#039;.&lt;br /&gt;
It is a little &amp;quot;dry&amp;quot;, in the sense that learning categories from it is not the easiest task on earth, but it still is one of the best references.&lt;br /&gt;
&lt;br /&gt;
I haven&#039;t really read it carefully, but here is [http://en.wikipedia.org/wiki/Category_theory what Wikipedia has to say on category theory].&lt;/div&gt;</summary>
		<author><name>DDuval</name></author>
	</entry>
	<entry>
		<id>http://os-vps418.infomaniak.ch:1250/mediawiki/index.php?title=Langage_et_concepts_cat%C3%A9goriques_pour_les_math%C3%A9matiques_et_l%E2%80%99informatique&amp;diff=3951</id>
		<title>Langage et concepts catégoriques pour les mathématiques et l’informatique</title>
		<link rel="alternate" type="text/html" href="http://os-vps418.infomaniak.ch:1250/mediawiki/index.php?title=Langage_et_concepts_cat%C3%A9goriques_pour_les_math%C3%A9matiques_et_l%E2%80%99informatique&amp;diff=3951"/>
		<updated>2009-03-11T13:22:56Z</updated>

		<summary type="html">&lt;p&gt;DDuval : /* Limites and Colimits */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This is a wiki for a course at the MSTII &amp;quot;École doctorale&amp;quot; of Grenoble.&lt;br /&gt;
&lt;br /&gt;
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...&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===News===&lt;br /&gt;
&lt;br /&gt;
Courses are on wednesdays morning, 9&#039;00 to 12&#039;00 in room F218 at the &amp;quot;UFR IMAG&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
* first course on the 25th of February: categories, functors, natural transformations.&lt;br /&gt;
* March 4. : monads, adjunctions.&lt;br /&gt;
* March 11. : limits and colimits.&lt;br /&gt;
&lt;br /&gt;
==Basic Concepts==&lt;br /&gt;
&lt;br /&gt;
===Categories===&lt;br /&gt;
&lt;br /&gt;
{{Definition |&lt;br /&gt;
A concrete category is given by:&lt;br /&gt;
* a collection of sets &#039;&#039;with structure&#039;&#039;,&lt;br /&gt;
* for any pair of such sets, a set of &#039;&#039;morphisms&#039;&#039; preserving the structure.&lt;br /&gt;
Morphisms should compose, and the identity should be a morphism.}}&lt;br /&gt;
&lt;br /&gt;
This definition is a little informal, but here are some examples:&lt;br /&gt;
* &#039;&#039;&#039;Grp&#039;&#039;&#039;: groups and group morphisms&lt;br /&gt;
* &#039;&#039;&#039;Top&#039;&#039;&#039;: topological spaces and continuous functions&lt;br /&gt;
* &#039;&#039;&#039;Ring&#039;&#039;&#039;: rings and rings morphisms&lt;br /&gt;
* &#039;&#039;&#039;Vect&#039;&#039;&#039;: vectors spaces and linear maps&lt;br /&gt;
* &#039;&#039;&#039;CPO&#039;&#039;&#039;: CPOs and continuous functions&lt;br /&gt;
* ...&lt;br /&gt;
* &#039;&#039;&#039;Set&#039;&#039;&#039;: sets and functions (&#039;&#039;&#039;ie&#039;&#039;&#039; sets with no structures, and arbitrary functions)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Generalizing the definition, we obtain the official definition of category:&lt;br /&gt;
&lt;br /&gt;
{{Definition |&lt;br /&gt;
A category &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt; is given by:&lt;br /&gt;
* a collection &amp;lt;math&amp;gt;\mathcal{C}_o&amp;lt;/math&amp;gt; of &#039;&#039;objects&#039;&#039;,  (notation: &amp;lt;math&amp;gt;A,B,C,X,Y,...&amp;lt;/math&amp;gt;)&lt;br /&gt;
* for each pair &amp;lt;math&amp;gt;A,B&amp;lt;/math&amp;gt; of objects, a collection &amp;lt;math&amp;gt;\mathcal{C}[A,B]&amp;lt;/math&amp;gt; of &#039;&#039;morphisms from &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&#039;&#039;,  (notation &amp;lt;math&amp;gt; f : A\to B&amp;lt;/math&amp;gt;)&lt;br /&gt;
* for any object &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;, a special morphism &amp;lt;math&amp;gt;i_A : A\to A&amp;lt;/math&amp;gt;&lt;br /&gt;
* for all objects &amp;lt;math&amp;gt;A,B,C&amp;lt;/math&amp;gt;, a composition &amp;lt;math&amp;gt;\circ : \mathcal{C}[B,C] \times \mathcal{C}[A,B] \to \mathcal{C}[A,C]&amp;lt;/math&amp;gt;,&lt;br /&gt;
such that:&lt;br /&gt;
* &amp;lt;math&amp;gt;f \in \mathcal{C}[A,B] \implies f\circ i_A = i_B\circ f = f&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;f\circ(g\circ h) = (f\circ g)\circ h&amp;lt;/math&amp;gt; whenever it makes sense.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
All concrete categories are categories, and here are some examples that are not obviously concrete:&lt;br /&gt;
* &#039;&#039;&#039;Graph&#039;&#039;&#039;: graphs and graph morphisms&lt;br /&gt;
* &#039;&#039;&#039;Rel&#039;&#039;&#039;: sets and relations&lt;br /&gt;
* &#039;&#039;&#039;Set×Set&#039;&#039;&#039;: pairs of sets, pairs of functions&lt;br /&gt;
* &#039;&#039;&#039;Set&amp;lt;math&amp;gt;^{op}&amp;lt;/math&amp;gt;&#039;&#039;&#039;: opposite of &#039;&#039;&#039;Set&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;P&#039;&#039;&#039;, whenever (&#039;&#039;&#039;P&#039;&#039;&#039;,&amp;lt;) is a preorder (at most one morphism between objects)&lt;br /&gt;
* &#039;&#039;&#039;M&#039;&#039;&#039;, whenever (&#039;&#039;&#039;M&#039;&#039;&#039;,e,×) is a monoid (a single object)&lt;br /&gt;
&lt;br /&gt;
We sometimes write &amp;lt;math&amp;gt;gf&amp;lt;/math&amp;gt; instead of &amp;lt;math&amp;gt;g \circ f&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
In a given category &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt;, there are analogues of the notions of injective and surjective functions in &#039;&#039;&#039;Set&#039;&#039;&#039;. We will see that on concrete categories, they are actually slightly more general. The idea of injectivity gives rise to &#039;&#039;monomorphisms&#039;&#039;, and surjectivity gives rise to &#039;&#039;epimorphisms&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
{{Definition |&lt;br /&gt;
&lt;br /&gt;
A morphism &amp;lt;math&amp;gt;f \colon A \to B&amp;lt;/math&amp;gt; is a &#039;&#039;monomorphism&#039;&#039; iff for all object &amp;lt;math&amp;gt;C&amp;lt;/math&amp;gt; and morphisms &amp;lt;math&amp;gt;g,h \colon C \to A&amp;lt;/math&amp;gt;, we have &amp;lt;math&amp;gt;fg = fh&amp;lt;/math&amp;gt; implies &amp;lt;math&amp;gt;g = h&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The morphism &amp;lt;math&amp;gt;f&amp;lt;/math&amp;gt; is an &#039;&#039;epimorphism&#039;&#039; when it is a monomorphism in &amp;lt;math&amp;gt;\mathcal{C}^{op}&amp;lt;/math&amp;gt;. Explicitly, when for all object &amp;lt;math&amp;gt;C&amp;lt;/math&amp;gt; and morphisms &amp;lt;math&amp;gt;g,h \colon B \to C&amp;lt;/math&amp;gt;, we have &amp;lt;math&amp;gt;gf = hf&amp;lt;/math&amp;gt; implies &amp;lt;math&amp;gt;g = h&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
  isomorphism&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Exercice&amp;lt;/u&amp;gt;&lt;br /&gt;
# Prove that in &#039;&#039;&#039;Set&#039;&#039;&#039;, epic is equivalent to surjective and monic is equivalent to injective.&lt;br /&gt;
# Prove the same thing in &#039;&#039;&#039;Ab&#039;&#039;&#039;, the category of commutative groups. (One thing is not obvious.)&lt;br /&gt;
# Prove the same thing in &#039;&#039;&#039;Grp&#039;&#039;&#039;, the category of (non necessarily commutative) groups. (One thing is not obvious at all.)&lt;br /&gt;
# Prove that &amp;lt;math&amp;gt;i : \mathbf{Z} \to \mathbf{Q}&amp;lt;/math&amp;gt; is an epimorphism in the category of rings with multiplicative neutral. (Note that it is not surjective.)&lt;br /&gt;
# In &#039;&#039;&#039;Set&#039;&#039;&#039;, we saw that &#039;&#039;f&#039;&#039; is a monic iff &amp;lt;math&amp;gt;\forall x,y : 1 \to A, f\circ x = f\circ y \implies x=y&amp;lt;/math&amp;gt;, where 1 is any singleton set. Can you find a set &#039;&#039;C&#039;&#039; such that &#039;&#039;f&#039;&#039; is epic iff &amp;lt;math&amp;gt;\forall p,q : B \to C, p\circ f = j\circ f \implies p=q&amp;lt;/math&amp;gt;?&lt;br /&gt;
# In &#039;&#039;&#039;Group&#039;&#039;&#039;, can you find an object playing a role similar to 1, &#039;&#039;ie&#039;&#039; a group &#039;&#039;G&#039;&#039; s.t. &#039;&#039;f&#039;&#039; is monic iff &amp;lt;math&amp;gt;\forall x,y : G \to A, f\circ x = f\circ y \implies x=y&amp;lt;/math&amp;gt;. (We saw that we cannot use the singleton group ({e},e,×) to do that...)&lt;br /&gt;
&lt;br /&gt;
===Functors===&lt;br /&gt;
&lt;br /&gt;
Informally, a functor is a map between two categories which somehow preserves the structure of categories (namely, composition).&lt;br /&gt;
&lt;br /&gt;
{{Definition |&lt;br /&gt;
A functor &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; from a category &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt; to a category &amp;lt;math&amp;gt;\mathcal{D}&amp;lt;/math&amp;gt;, noted &amp;lt;math&amp;gt;F \colon \mathcal{C} \to \mathcal{D}&amp;lt;/math&amp;gt;, is given by:&lt;br /&gt;
* a map which sends every object &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; of &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt; to an object &amp;lt;math&amp;gt;FA&amp;lt;/math&amp;gt; in &amp;lt;math&amp;gt;\mathcal{D}&amp;lt;/math&amp;gt;, and&lt;br /&gt;
* a map which sends every morphism &amp;lt;math&amp;gt;f \colon A \to B&amp;lt;/math&amp;gt; in &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt;, to a morphism &amp;lt;math&amp;gt;Ff&amp;lt;/math&amp;gt; in &amp;lt;math&amp;gt;\mathcal{D}[FA, FB]&amp;lt;/math&amp;gt;,&lt;br /&gt;
such that:&lt;br /&gt;
* &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; preserves identities, i.e., &amp;lt;math&amp;gt;F(id_A) = id_{FA}&amp;lt;/math&amp;gt;, and&lt;br /&gt;
* &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; preserves composition: &amp;lt;math&amp;gt;F(f \circ g) = F(f) \circ F(g)&amp;lt;/math&amp;gt;.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Exercice&amp;lt;/u&amp;gt;&lt;br /&gt;
# Take a functor &amp;lt;math&amp;gt;F \colon \mathcal{C} \to \mathcal{D}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;f, g, h&amp;lt;/math&amp;gt; three morphisms in &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt;, and &amp;lt;math&amp;gt;f&#039; = Ff&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;g&#039; = Fg&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;h&#039; = Fh&amp;lt;/math&amp;gt;. When &amp;lt;math&amp;gt;h&#039; = f&#039; \circ g&#039;&amp;lt;/math&amp;gt;, can we say something interesting about &amp;lt;math&amp;gt;f&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;g&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;h&amp;lt;/math&amp;gt;?&lt;br /&gt;
# Do functors preserve monomorphisms? Do functors preserve epimorphisms?&lt;br /&gt;
# Let &#039;&#039;F&#039;&#039; be a functor and &#039;&#039;F(f) = g&#039;&#039;, if &#039;&#039;g&#039;&#039; is a mono (resp. epi), is &#039;&#039;f&#039;&#039; a mono (resp. epi)?&lt;br /&gt;
If not, try to find some simple and natural condition on the functor to make that true.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Answer&amp;lt;/u&amp;gt;&lt;br /&gt;
# No, since &amp;lt;math&amp;gt;f&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;g&amp;lt;/math&amp;gt; may not even compose! This is the case when &amp;lt;math&amp;gt;f&amp;lt;/math&amp;gt; has type &amp;lt;math&amp;gt;A \to B&amp;lt;/math&amp;gt;, and &amp;lt;math&amp;gt;g \colon C \to D&amp;lt;/math&amp;gt;, with &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; collapsing &amp;lt;math&amp;gt;D&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; (i.e., &amp;lt;math&amp;gt;FA = FD&amp;lt;/math&amp;gt;).&lt;br /&gt;
# Functors in general do not preserve mono- nor epimorphisms. We build a counter-example for monomorphisms. Let &amp;lt;math&amp;gt;\mathbf{2}&amp;lt;/math&amp;gt; be the category with two objects &amp;lt;math&amp;gt;\star&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\bullet&amp;lt;/math&amp;gt;, and exactly one morphism &amp;lt;math&amp;gt;m \colon \star \to \bullet&amp;lt;/math&amp;gt;. This is a preorder, so &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; is monic. Now take &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt; with two objects &amp;lt;math&amp;gt;\star&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\bullet&amp;lt;/math&amp;gt;, exactly one morphism &amp;lt;math&amp;gt;m \colon \star \to \bullet&amp;lt;/math&amp;gt;, and one extra morphism &amp;lt;math&amp;gt;n \colon \star \to \star&amp;lt;/math&amp;gt;, different from the identity. Because of &amp;lt;math&amp;gt;n \neq id_\star&amp;lt;/math&amp;gt;, yet &amp;lt;math&amp;gt;m \circ n = m \circ id&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; is not monic in &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt;. The functor which sends &amp;lt;math&amp;gt;\star&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;\star&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;\bullet&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;\bullet&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; in &amp;lt;math&amp;gt;\mathbf{2}&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; in &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt;, does not preserve monomorphisms.&lt;br /&gt;
# In general, the answer is (again) no. For monos, take for example the functor &amp;lt;math&amp;gt;\mathcal{C} \to \mathbf{2}&amp;lt;/math&amp;gt; which sends &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; to the identity. Yet, when &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; is &#039;&#039;faithful&#039;&#039;, then &amp;lt;math&amp;gt;f&amp;lt;/math&amp;gt; is monic (or epic).&lt;br /&gt;
&lt;br /&gt;
{{Definition |&lt;br /&gt;
A functor &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; is faithful when, for any two morphisms &amp;lt;math&amp;gt;f, g&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;Ff = Fg&amp;lt;/math&amp;gt; implies &amp;lt;math&amp;gt;f=g&amp;lt;/math&amp;gt; (&amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; is injective on morphisms).&lt;br /&gt;
}}&lt;br /&gt;
{{Definition |&lt;br /&gt;
A functor &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; is full when, for any two objects &amp;lt;math&amp;gt;A, B&amp;lt;/math&amp;gt;, if &amp;lt;math&amp;gt;g&amp;lt;/math&amp;gt; is a morphism &amp;lt;math&amp;gt;FA \to FB&amp;lt;/math&amp;gt;, then there exists &amp;lt;math&amp;gt;f \colon A \to B&amp;lt;/math&amp;gt; with &amp;lt;math&amp;gt;Ff = g&amp;lt;/math&amp;gt; (&amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; is surjective on morphisms).&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Exercice&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Find an &amp;quot;interesting&amp;quot; functor from &#039;&#039;&#039;Set&#039;&#039;&#039; to &#039;&#039;&#039;Group&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Answer&amp;lt;/u&amp;gt;&lt;br /&gt;
Let &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; be the functor which sends:&lt;br /&gt;
* every set &amp;lt;math&amp;gt;X&amp;lt;/math&amp;gt; to the free group generated by &amp;lt;math&amp;gt;X&amp;lt;/math&amp;gt;, and&lt;br /&gt;
* every function &amp;lt;math&amp;gt;f \colon X \to Y&amp;lt;/math&amp;gt; to a group morphism defined by: &amp;lt;math&amp;gt;Ff(x_1^{\alpha_1}\times\dots\times x_k^{\alpha_k})=f(x_1)^{\alpha_1} \times \dots \times f(x_k)^{\alpha_k}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Exercice&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt; is a locally small category and &#039;&#039;A&#039;&#039; one of its objects, let &amp;lt;math&amp;gt;Y_A : X \mapsto \mathcal{C}[X,A]&amp;lt;/math&amp;gt;. Show that this operation from objects of &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt; to sets can be extended into a contravariant functor &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt; to &#039;&#039;&#039;Set&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Answer&amp;lt;/u&amp;gt;&lt;br /&gt;
Let &amp;lt;math&amp;gt;f\colon X \to Y&amp;lt;/math&amp;gt; be a morphism in &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt;, then &amp;lt;math&amp;gt;Y_A(f)&amp;lt;/math&amp;gt; is expected to be a function from the set &amp;lt;math&amp;gt;\mathcal{C}[Y, A]&amp;lt;/math&amp;gt; to the set &amp;lt;math&amp;gt;\mathcal{C}[X, A]&amp;lt;/math&amp;gt;. We can take, for any morphism &amp;lt;math&amp;gt;m \in \mathcal{C}[Y,A]&amp;lt;/math&amp;gt;: &amp;lt;math&amp;gt;Y_A(f)(m) = m \circ f&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
This extends &amp;lt;math&amp;gt;Y_A&amp;lt;/math&amp;gt; to a contravariant functor, since &amp;lt;math&amp;gt;Y_A(id_X) = id_{\mathcal{C}[X, A]}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;Y_A(f \circ g)(m) = m \circ (f \circ g) = (m \circ f) \circ g = (Y_A(g) \circ Y_A(f))(m)&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===Natural Transformations===&lt;br /&gt;
&lt;br /&gt;
{{Definition |&lt;br /&gt;
Let &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;G&amp;lt;/math&amp;gt; be two functors &amp;lt;math&amp;gt;\mathcal{C} \to \mathcal{D}&amp;lt;/math&amp;gt;. A natural transformation &amp;lt;math&amp;gt;\alpha&amp;lt;/math&amp;gt; from &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;G&amp;lt;/math&amp;gt; is given by:&lt;br /&gt;
* a morphism &amp;lt;math&amp;gt;\alpha_A \colon FA \to GA&amp;lt;/math&amp;gt; in &amp;lt;math&amp;gt;\mathcal{D}&amp;lt;/math&amp;gt; for every object &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; in &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt;,&lt;br /&gt;
* such that, for any morphism &amp;lt;math&amp;gt;f \colon A \to B&amp;lt;/math&amp;gt;, we have &amp;lt;math&amp;gt;Gf \circ \alpha_A = \alpha_B \circ Ff&amp;lt;/math&amp;gt;.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Exercice&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If &amp;lt;math&amp;gt;P(X)&amp;lt;/math&amp;gt; is the set of permutation of a (finite) set &#039;&#039;X&#039;&#039;; and &amp;lt;math&amp;gt;L(X)&amp;lt;/math&amp;gt; the set of its linear orderings, we have &amp;lt;math&amp;gt;\#(L(X)) = \#(L(X)) = n!&amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;n = \#(X)&amp;lt;/math&amp;gt;. Thus, there is a bijection (iso in &#039;&#039;&#039;Set&#039;&#039;&#039;) between &#039;&#039;P(X)&#039;&#039; and &#039;&#039;L(X)&#039;&#039;.&lt;br /&gt;
# Show that we can extend &#039;&#039;P&#039;&#039; and &#039;&#039;L&#039;&#039; to functors from &#039;&#039;&#039;B&#039;&#039;&#039; to &#039;&#039;&#039;Set&#039;&#039;&#039;, where &#039;&#039;&#039;B&#039;&#039;&#039; is the category of finite sets and bijections,&lt;br /&gt;
# Show that there can be no natural transformation from &#039;&#039;P&#039;&#039; to &#039;&#039;L&#039;&#039;,&lt;br /&gt;
# Conclude that there is no natural isomorphism between &#039;&#039;P&#039;&#039; and &#039;&#039;L&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
==Adjunctions==&lt;br /&gt;
&lt;br /&gt;
===About Limits and Colimits===&lt;br /&gt;
&lt;br /&gt;
One of the main thrusts of category theory is to define concepts by&lt;br /&gt;
their properties rather than by explicit construction. In general this&lt;br /&gt;
is just called abstraction, but in good cases, concepts are&lt;br /&gt;
&#039;&#039;defined&#039;&#039; by their properties, at least canonically if not uniquely.&lt;br /&gt;
&lt;br /&gt;
The chief example of this is binary products in &#039;&#039;&#039;Set&#039;&#039;&#039;.  The&lt;br /&gt;
product &amp;lt;math&amp;gt;A \times B&amp;lt;/math&amp;gt; of two sets &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; and&lt;br /&gt;
&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt; is generally thought of as the set of pairs &amp;lt;math&amp;gt; (x,&lt;br /&gt;
y) &amp;lt;/math&amp;gt; with &amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;y \in B&amp;lt;/math&amp;gt;.  But&lt;br /&gt;
strictly speaking, or rather set-theoretically speaking, one has to&lt;br /&gt;
construct it by cautious use of the axioms of Zermelo-Fraenkel set&lt;br /&gt;
theory.&lt;br /&gt;
&lt;br /&gt;
Instead, in any category &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt;, for any objects&lt;br /&gt;
&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt; categorists put: &lt;br /&gt;
&lt;br /&gt;
{{Definition | A&lt;br /&gt;
&#039;&#039;product&#039;&#039; of &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt; is an object &amp;lt;math&amp;gt;C&amp;lt;/math&amp;gt;&lt;br /&gt;
with arrows&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;A \xleftarrow{\pi_1} C \xrightarrow{\pi_2} B&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
such that for any object &amp;lt;math&amp;gt;D&amp;lt;/math&amp;gt; and arrows&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;A \xleftarrow{f} D \xrightarrow{g} B&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
there exists a unique arrow &amp;lt;math&amp;gt;h&amp;lt;/math&amp;gt; making the diagram&lt;br /&gt;
[[Image:prod.png|center|Universal property of product]]&lt;br /&gt;
commute, i.e., &amp;lt;math&amp;gt;\pi_1 \circ h = f&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\pi_2 \circ h = g&amp;lt;/math&amp;gt;.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
The standard constructions in &#039;&#039;&#039;Set&#039;&#039;&#039; all have this property, and&lt;br /&gt;
all the non-standard ones you can think of also do, e.g., the set of&lt;br /&gt;
pairs &amp;lt;math&amp;gt; (\emptyset, x, y) &amp;lt;/math&amp;gt; with &amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;y&lt;br /&gt;
\in B&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Conversely, any set with this property is as good as any other&lt;br /&gt;
construction of &amp;lt;math&amp;gt;A \times B&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Products are determined &#039;&#039;canonically&#039;&#039; by this property&lt;br /&gt;
property. We will give a more precise meaning to this in later&lt;br /&gt;
lectures; for now we just state:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Lemma.&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For any other product &amp;lt;center&amp;gt;&amp;lt;math&amp;gt;A \xleftarrow{p} E \xrightarrow{q} B&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt; of &lt;br /&gt;
&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;, there is a unique isomorphism pair &amp;lt;math&amp;gt; (r, s) &amp;lt;/math&amp;gt; &lt;br /&gt;
such that the diagrams&lt;br /&gt;
&lt;br /&gt;
[[Image:prod-iso.png|upright=2]] and &lt;br /&gt;
[[Image:prod-iso-2.png|upright=2]]&lt;br /&gt;
&lt;br /&gt;
commute.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===First examples and definition===&lt;br /&gt;
&lt;br /&gt;
====So-called &#039;&#039;free&#039;&#039; constructions in algebra: monoid, group, etc====&lt;br /&gt;
====Their universal property, the underlying functor====&lt;br /&gt;
====The isomorphism between hom-sets====&lt;br /&gt;
====Its naturality====&lt;br /&gt;
====Definition====&lt;br /&gt;
====On to the definition with &amp;lt;math&amp;gt;\eta&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\epsilon&amp;lt;/math&amp;gt;====&lt;br /&gt;
&lt;br /&gt;
===The simplicity behind definitions:2-categories and adjunctions therein===&lt;br /&gt;
&lt;br /&gt;
====Definition of 2-categories====&lt;br /&gt;
====String diagrams====&lt;br /&gt;
====&#039;&#039;&#039;CAT&#039;&#039;&#039; as a 2-category====&lt;br /&gt;
====Adjunctions in a 2-category====&lt;br /&gt;
&lt;br /&gt;
===Other basic examples===&lt;br /&gt;
&lt;br /&gt;
====Discussion: any syntax defines the free something==== The issue of &lt;br /&gt;
variable binding.&lt;br /&gt;
====Adjunction between partial orders = Galois connection====&lt;br /&gt;
====&amp;lt;math&amp;gt;\times&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\Rightarrow&amp;lt;/math&amp;gt; in logic====&lt;br /&gt;
====Sets/graphs and categories====&lt;br /&gt;
&lt;br /&gt;
===Monads and resolutions===&lt;br /&gt;
&lt;br /&gt;
====Definition of a monad====&lt;br /&gt;
====String diagrams====&lt;br /&gt;
====Every adjunction yields a monad====&lt;br /&gt;
====Example of monoids again: resolutions====&lt;br /&gt;
&lt;br /&gt;
===Monadic adjunctions===&lt;br /&gt;
&lt;br /&gt;
====The category of resolutions====&lt;br /&gt;
====Eilenberg-Moore is terminal====&lt;br /&gt;
====Kleisli is initial====&lt;br /&gt;
====Monadic adjunctions====&lt;br /&gt;
====Algebraic theories====&lt;br /&gt;
&lt;br /&gt;
===Properties===&lt;br /&gt;
&lt;br /&gt;
====Composing adjunctions====&lt;br /&gt;
====Preservation of limits/colimits====&lt;br /&gt;
====Freyd&#039;s existence theorem====&lt;br /&gt;
====Beck&#039;s monadicity theorem====&lt;br /&gt;
&lt;br /&gt;
==Limites and Colimits==&lt;br /&gt;
&lt;br /&gt;
===Limits===&lt;br /&gt;
&lt;br /&gt;
Cartesian product&lt;br /&gt;
{{ Definition | Binary product.}}&lt;br /&gt;
Theorem. The product of X and Y, if it exists, is unique up to isomorphism. &lt;br /&gt;
Limit&lt;br /&gt;
produit n-aire, objet terminal&lt;br /&gt;
  EX. Set, Grp, Ab, Part (XY+X+Y), &lt;br /&gt;
  EX. préordre (&amp;quot;meet&amp;quot; ou inf), Sub(X) (intersection), Prop avec |- (entailment) :&lt;br /&gt;
     produit = &amp;quot;et&amp;quot;, proj = élim. &amp;quot;et&amp;quot;, paires = intro. &amp;quot;et&amp;quot;, terminal = &amp;quot;true&amp;quot; &lt;br /&gt;
proj =/=&amp;gt; épi&lt;br /&gt;
  EX. Set : 0xA -&amp;gt; A (A non vide) &lt;br /&gt;
&lt;br /&gt;
diagramme (dans C de forme G) ou foncteur (dans C de forme J)&lt;br /&gt;
cône, limite&lt;br /&gt;
  EX. Set&lt;br /&gt;
THEO. unicité à iso près (preuve : généralisation)&lt;br /&gt;
pullback, mono, égaliseur&lt;br /&gt;
REMA. l&#039;égaliseur de f et g n&#039;est pas le pullback de f et g &lt;br /&gt;
  (diagrammes de forme différente) mais Eg(f,g) --&amp;gt; PB(f,g) &amp;quot;cano&amp;quot;&lt;br /&gt;
  EX. Set : {x|fx=gx} --&amp;gt; {(x,x&#039;)|f(x)=g(x&#039;)}&lt;br /&gt;
EXOS. [ML p.72] : &lt;br /&gt;
  pullbacks vs égaliseurs, &lt;br /&gt;
  pullbacks vs monos, &lt;br /&gt;
  composer des  pullbacks &lt;br /&gt;
THEO. égaliseurs &amp;amp; produits  =&amp;gt; limites&lt;br /&gt;
THEO. égaliseurs &amp;amp; produits binaires &amp;amp; objet terminal =&amp;gt; limites finies&lt;br /&gt;
&lt;br /&gt;
* Colimites (limites inductives, limites directes, lim--&amp;gt;) &lt;br /&gt;
&lt;br /&gt;
cocône, colimite &lt;br /&gt;
THEO. unicité à iso près (preuve : dualité)&lt;br /&gt;
somme binaire, n-aire, objet initial (somme, coproduit, produit libre)&lt;br /&gt;
  EX. Set, Grp, Ab, Part (X+Y),&lt;br /&gt;
  EX. préordre (&amp;quot;join&amp;quot; ou sup), Sub(X) (union), Prop avec |- (entailment) :&lt;br /&gt;
     somme = &amp;quot;ou&amp;quot;, coproj = élim. &amp;quot;ou&amp;quot;, paires = intro. &amp;quot;ou&amp;quot;, initial = &amp;quot;false&amp;quot; &lt;br /&gt;
coproj =/=&amp;gt; mono&lt;br /&gt;
pushout, épi, coégaliseur&lt;br /&gt;
  EX. coégaliseur vs most general unifier : &lt;br /&gt;
   catégorie de Kleisli de la monade des termes &amp;quot;Subst&amp;quot;&lt;br /&gt;
  (EX. dpo ?)&lt;br /&gt;
THEO. coégaliseurs &amp;amp; sommes  =&amp;gt; colimites &lt;br /&gt;
THEO. coégaliseurs &amp;amp; sommes binaires &amp;amp; objet initial =&amp;gt; colimites finies &lt;br /&gt;
&lt;br /&gt;
*  Divers&lt;br /&gt;
&lt;br /&gt;
Adjonction&lt;br /&gt;
THEO. &lt;br /&gt;
  un adjoint à droite préserve les limites (preuve : exercice [ML])&lt;br /&gt;
  un adjoint à gauche préserve les colimites (preuve : dualité)&lt;br /&gt;
  EX. U:Grp-&amp;gt;Set préserve les limites, pas les colimites &lt;br /&gt;
&lt;br /&gt;
Produits et sommes :&lt;br /&gt;
distributivité : a category with finite sums and products such that &lt;br /&gt;
  the canonical map AxB+AxC --&amp;gt; Ax(B+C) is an isomorphism&lt;br /&gt;
extensivité : a category with finite sums for which the canonical functor &lt;br /&gt;
  + : C/A x C/B --&amp;gt; C/(A+B) is an equivalence. &lt;br /&gt;
EX. &amp;quot;if..then..else..&amp;quot;. p:X-&amp;gt;B avec B=1+1. &lt;br /&gt;
  D&#039;où X =X(p)+X(-p) par extensivité. Alors X(p) et X(-p) sont des PB [CLW].&lt;br /&gt;
&lt;br /&gt;
==Course Complements, references==&lt;br /&gt;
&lt;br /&gt;
One of the best books about category theory is&lt;br /&gt;
* Saunder MacLane, &#039;&#039;&amp;quot;Categories for the Working Mathematician&amp;quot;&#039;&#039;.&lt;br /&gt;
It is a little &amp;quot;dry&amp;quot;, in the sense that learning categories from it is not the easiest task on earth, but it still is one of the best references.&lt;br /&gt;
&lt;br /&gt;
I haven&#039;t really read it carefully, but here is [http://en.wikipedia.org/wiki/Category_theory what Wikipedia has to say on category theory].&lt;/div&gt;</summary>
		<author><name>DDuval</name></author>
	</entry>
	<entry>
		<id>http://os-vps418.infomaniak.ch:1250/mediawiki/index.php?title=Langage_et_concepts_cat%C3%A9goriques_pour_les_math%C3%A9matiques_et_l%E2%80%99informatique&amp;diff=3950</id>
		<title>Langage et concepts catégoriques pour les mathématiques et l’informatique</title>
		<link rel="alternate" type="text/html" href="http://os-vps418.infomaniak.ch:1250/mediawiki/index.php?title=Langage_et_concepts_cat%C3%A9goriques_pour_les_math%C3%A9matiques_et_l%E2%80%99informatique&amp;diff=3950"/>
		<updated>2009-03-11T13:19:10Z</updated>

		<summary type="html">&lt;p&gt;DDuval : &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This is a wiki for a course at the MSTII &amp;quot;École doctorale&amp;quot; of Grenoble.&lt;br /&gt;
&lt;br /&gt;
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...&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===News===&lt;br /&gt;
&lt;br /&gt;
Courses are on wednesdays morning, 9&#039;00 to 12&#039;00 in room F218 at the &amp;quot;UFR IMAG&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
* first course on the 25th of February: categories, functors, natural transformations.&lt;br /&gt;
* March 4. : monads, adjunctions.&lt;br /&gt;
* March 11. : limits and colimits.&lt;br /&gt;
&lt;br /&gt;
==Basic Concepts==&lt;br /&gt;
&lt;br /&gt;
===Categories===&lt;br /&gt;
&lt;br /&gt;
{{Definition |&lt;br /&gt;
A concrete category is given by:&lt;br /&gt;
* a collection of sets &#039;&#039;with structure&#039;&#039;,&lt;br /&gt;
* for any pair of such sets, a set of &#039;&#039;morphisms&#039;&#039; preserving the structure.&lt;br /&gt;
Morphisms should compose, and the identity should be a morphism.}}&lt;br /&gt;
&lt;br /&gt;
This definition is a little informal, but here are some examples:&lt;br /&gt;
* &#039;&#039;&#039;Grp&#039;&#039;&#039;: groups and group morphisms&lt;br /&gt;
* &#039;&#039;&#039;Top&#039;&#039;&#039;: topological spaces and continuous functions&lt;br /&gt;
* &#039;&#039;&#039;Ring&#039;&#039;&#039;: rings and rings morphisms&lt;br /&gt;
* &#039;&#039;&#039;Vect&#039;&#039;&#039;: vectors spaces and linear maps&lt;br /&gt;
* &#039;&#039;&#039;CPO&#039;&#039;&#039;: CPOs and continuous functions&lt;br /&gt;
* ...&lt;br /&gt;
* &#039;&#039;&#039;Set&#039;&#039;&#039;: sets and functions (&#039;&#039;&#039;ie&#039;&#039;&#039; sets with no structures, and arbitrary functions)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Generalizing the definition, we obtain the official definition of category:&lt;br /&gt;
&lt;br /&gt;
{{Definition |&lt;br /&gt;
A category &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt; is given by:&lt;br /&gt;
* a collection &amp;lt;math&amp;gt;\mathcal{C}_o&amp;lt;/math&amp;gt; of &#039;&#039;objects&#039;&#039;,  (notation: &amp;lt;math&amp;gt;A,B,C,X,Y,...&amp;lt;/math&amp;gt;)&lt;br /&gt;
* for each pair &amp;lt;math&amp;gt;A,B&amp;lt;/math&amp;gt; of objects, a collection &amp;lt;math&amp;gt;\mathcal{C}[A,B]&amp;lt;/math&amp;gt; of &#039;&#039;morphisms from &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&#039;&#039;,  (notation &amp;lt;math&amp;gt; f : A\to B&amp;lt;/math&amp;gt;)&lt;br /&gt;
* for any object &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;, a special morphism &amp;lt;math&amp;gt;i_A : A\to A&amp;lt;/math&amp;gt;&lt;br /&gt;
* for all objects &amp;lt;math&amp;gt;A,B,C&amp;lt;/math&amp;gt;, a composition &amp;lt;math&amp;gt;\circ : \mathcal{C}[B,C] \times \mathcal{C}[A,B] \to \mathcal{C}[A,C]&amp;lt;/math&amp;gt;,&lt;br /&gt;
such that:&lt;br /&gt;
* &amp;lt;math&amp;gt;f \in \mathcal{C}[A,B] \implies f\circ i_A = i_B\circ f = f&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;f\circ(g\circ h) = (f\circ g)\circ h&amp;lt;/math&amp;gt; whenever it makes sense.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
All concrete categories are categories, and here are some examples that are not obviously concrete:&lt;br /&gt;
* &#039;&#039;&#039;Graph&#039;&#039;&#039;: graphs and graph morphisms&lt;br /&gt;
* &#039;&#039;&#039;Rel&#039;&#039;&#039;: sets and relations&lt;br /&gt;
* &#039;&#039;&#039;Set×Set&#039;&#039;&#039;: pairs of sets, pairs of functions&lt;br /&gt;
* &#039;&#039;&#039;Set&amp;lt;math&amp;gt;^{op}&amp;lt;/math&amp;gt;&#039;&#039;&#039;: opposite of &#039;&#039;&#039;Set&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;P&#039;&#039;&#039;, whenever (&#039;&#039;&#039;P&#039;&#039;&#039;,&amp;lt;) is a preorder (at most one morphism between objects)&lt;br /&gt;
* &#039;&#039;&#039;M&#039;&#039;&#039;, whenever (&#039;&#039;&#039;M&#039;&#039;&#039;,e,×) is a monoid (a single object)&lt;br /&gt;
&lt;br /&gt;
We sometimes write &amp;lt;math&amp;gt;gf&amp;lt;/math&amp;gt; instead of &amp;lt;math&amp;gt;g \circ f&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
In a given category &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt;, there are analogues of the notions of injective and surjective functions in &#039;&#039;&#039;Set&#039;&#039;&#039;. We will see that on concrete categories, they are actually slightly more general. The idea of injectivity gives rise to &#039;&#039;monomorphisms&#039;&#039;, and surjectivity gives rise to &#039;&#039;epimorphisms&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
{{Definition |&lt;br /&gt;
&lt;br /&gt;
A morphism &amp;lt;math&amp;gt;f \colon A \to B&amp;lt;/math&amp;gt; is a &#039;&#039;monomorphism&#039;&#039; iff for all object &amp;lt;math&amp;gt;C&amp;lt;/math&amp;gt; and morphisms &amp;lt;math&amp;gt;g,h \colon C \to A&amp;lt;/math&amp;gt;, we have &amp;lt;math&amp;gt;fg = fh&amp;lt;/math&amp;gt; implies &amp;lt;math&amp;gt;g = h&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The morphism &amp;lt;math&amp;gt;f&amp;lt;/math&amp;gt; is an &#039;&#039;epimorphism&#039;&#039; when it is a monomorphism in &amp;lt;math&amp;gt;\mathcal{C}^{op}&amp;lt;/math&amp;gt;. Explicitly, when for all object &amp;lt;math&amp;gt;C&amp;lt;/math&amp;gt; and morphisms &amp;lt;math&amp;gt;g,h \colon B \to C&amp;lt;/math&amp;gt;, we have &amp;lt;math&amp;gt;gf = hf&amp;lt;/math&amp;gt; implies &amp;lt;math&amp;gt;g = h&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
  isomorphism&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Exercice&amp;lt;/u&amp;gt;&lt;br /&gt;
# Prove that in &#039;&#039;&#039;Set&#039;&#039;&#039;, epic is equivalent to surjective and monic is equivalent to injective.&lt;br /&gt;
# Prove the same thing in &#039;&#039;&#039;Ab&#039;&#039;&#039;, the category of commutative groups. (One thing is not obvious.)&lt;br /&gt;
# Prove the same thing in &#039;&#039;&#039;Grp&#039;&#039;&#039;, the category of (non necessarily commutative) groups. (One thing is not obvious at all.)&lt;br /&gt;
# Prove that &amp;lt;math&amp;gt;i : \mathbf{Z} \to \mathbf{Q}&amp;lt;/math&amp;gt; is an epimorphism in the category of rings with multiplicative neutral. (Note that it is not surjective.)&lt;br /&gt;
# In &#039;&#039;&#039;Set&#039;&#039;&#039;, we saw that &#039;&#039;f&#039;&#039; is a monic iff &amp;lt;math&amp;gt;\forall x,y : 1 \to A, f\circ x = f\circ y \implies x=y&amp;lt;/math&amp;gt;, where 1 is any singleton set. Can you find a set &#039;&#039;C&#039;&#039; such that &#039;&#039;f&#039;&#039; is epic iff &amp;lt;math&amp;gt;\forall p,q : B \to C, p\circ f = j\circ f \implies p=q&amp;lt;/math&amp;gt;?&lt;br /&gt;
# In &#039;&#039;&#039;Group&#039;&#039;&#039;, can you find an object playing a role similar to 1, &#039;&#039;ie&#039;&#039; a group &#039;&#039;G&#039;&#039; s.t. &#039;&#039;f&#039;&#039; is monic iff &amp;lt;math&amp;gt;\forall x,y : G \to A, f\circ x = f\circ y \implies x=y&amp;lt;/math&amp;gt;. (We saw that we cannot use the singleton group ({e},e,×) to do that...)&lt;br /&gt;
&lt;br /&gt;
===Functors===&lt;br /&gt;
&lt;br /&gt;
Informally, a functor is a map between two categories which somehow preserves the structure of categories (namely, composition).&lt;br /&gt;
&lt;br /&gt;
{{Definition |&lt;br /&gt;
A functor &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; from a category &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt; to a category &amp;lt;math&amp;gt;\mathcal{D}&amp;lt;/math&amp;gt;, noted &amp;lt;math&amp;gt;F \colon \mathcal{C} \to \mathcal{D}&amp;lt;/math&amp;gt;, is given by:&lt;br /&gt;
* a map which sends every object &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; of &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt; to an object &amp;lt;math&amp;gt;FA&amp;lt;/math&amp;gt; in &amp;lt;math&amp;gt;\mathcal{D}&amp;lt;/math&amp;gt;, and&lt;br /&gt;
* a map which sends every morphism &amp;lt;math&amp;gt;f \colon A \to B&amp;lt;/math&amp;gt; in &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt;, to a morphism &amp;lt;math&amp;gt;Ff&amp;lt;/math&amp;gt; in &amp;lt;math&amp;gt;\mathcal{D}[FA, FB]&amp;lt;/math&amp;gt;,&lt;br /&gt;
such that:&lt;br /&gt;
* &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; preserves identities, i.e., &amp;lt;math&amp;gt;F(id_A) = id_{FA}&amp;lt;/math&amp;gt;, and&lt;br /&gt;
* &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; preserves composition: &amp;lt;math&amp;gt;F(f \circ g) = F(f) \circ F(g)&amp;lt;/math&amp;gt;.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Exercice&amp;lt;/u&amp;gt;&lt;br /&gt;
# Take a functor &amp;lt;math&amp;gt;F \colon \mathcal{C} \to \mathcal{D}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;f, g, h&amp;lt;/math&amp;gt; three morphisms in &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt;, and &amp;lt;math&amp;gt;f&#039; = Ff&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;g&#039; = Fg&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;h&#039; = Fh&amp;lt;/math&amp;gt;. When &amp;lt;math&amp;gt;h&#039; = f&#039; \circ g&#039;&amp;lt;/math&amp;gt;, can we say something interesting about &amp;lt;math&amp;gt;f&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;g&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;h&amp;lt;/math&amp;gt;?&lt;br /&gt;
# Do functors preserve monomorphisms? Do functors preserve epimorphisms?&lt;br /&gt;
# Let &#039;&#039;F&#039;&#039; be a functor and &#039;&#039;F(f) = g&#039;&#039;, if &#039;&#039;g&#039;&#039; is a mono (resp. epi), is &#039;&#039;f&#039;&#039; a mono (resp. epi)?&lt;br /&gt;
If not, try to find some simple and natural condition on the functor to make that true.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Answer&amp;lt;/u&amp;gt;&lt;br /&gt;
# No, since &amp;lt;math&amp;gt;f&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;g&amp;lt;/math&amp;gt; may not even compose! This is the case when &amp;lt;math&amp;gt;f&amp;lt;/math&amp;gt; has type &amp;lt;math&amp;gt;A \to B&amp;lt;/math&amp;gt;, and &amp;lt;math&amp;gt;g \colon C \to D&amp;lt;/math&amp;gt;, with &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; collapsing &amp;lt;math&amp;gt;D&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; (i.e., &amp;lt;math&amp;gt;FA = FD&amp;lt;/math&amp;gt;).&lt;br /&gt;
# Functors in general do not preserve mono- nor epimorphisms. We build a counter-example for monomorphisms. Let &amp;lt;math&amp;gt;\mathbf{2}&amp;lt;/math&amp;gt; be the category with two objects &amp;lt;math&amp;gt;\star&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\bullet&amp;lt;/math&amp;gt;, and exactly one morphism &amp;lt;math&amp;gt;m \colon \star \to \bullet&amp;lt;/math&amp;gt;. This is a preorder, so &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; is monic. Now take &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt; with two objects &amp;lt;math&amp;gt;\star&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\bullet&amp;lt;/math&amp;gt;, exactly one morphism &amp;lt;math&amp;gt;m \colon \star \to \bullet&amp;lt;/math&amp;gt;, and one extra morphism &amp;lt;math&amp;gt;n \colon \star \to \star&amp;lt;/math&amp;gt;, different from the identity. Because of &amp;lt;math&amp;gt;n \neq id_\star&amp;lt;/math&amp;gt;, yet &amp;lt;math&amp;gt;m \circ n = m \circ id&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; is not monic in &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt;. The functor which sends &amp;lt;math&amp;gt;\star&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;\star&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;\bullet&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;\bullet&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; in &amp;lt;math&amp;gt;\mathbf{2}&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; in &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt;, does not preserve monomorphisms.&lt;br /&gt;
# In general, the answer is (again) no. For monos, take for example the functor &amp;lt;math&amp;gt;\mathcal{C} \to \mathbf{2}&amp;lt;/math&amp;gt; which sends &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; to the identity. Yet, when &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; is &#039;&#039;faithful&#039;&#039;, then &amp;lt;math&amp;gt;f&amp;lt;/math&amp;gt; is monic (or epic).&lt;br /&gt;
&lt;br /&gt;
{{Definition |&lt;br /&gt;
A functor &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; is faithful when, for any two morphisms &amp;lt;math&amp;gt;f, g&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;Ff = Fg&amp;lt;/math&amp;gt; implies &amp;lt;math&amp;gt;f=g&amp;lt;/math&amp;gt; (&amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; is injective on morphisms).&lt;br /&gt;
}}&lt;br /&gt;
{{Definition |&lt;br /&gt;
A functor &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; is full when, for any two objects &amp;lt;math&amp;gt;A, B&amp;lt;/math&amp;gt;, if &amp;lt;math&amp;gt;g&amp;lt;/math&amp;gt; is a morphism &amp;lt;math&amp;gt;FA \to FB&amp;lt;/math&amp;gt;, then there exists &amp;lt;math&amp;gt;f \colon A \to B&amp;lt;/math&amp;gt; with &amp;lt;math&amp;gt;Ff = g&amp;lt;/math&amp;gt; (&amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; is surjective on morphisms).&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Exercice&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Find an &amp;quot;interesting&amp;quot; functor from &#039;&#039;&#039;Set&#039;&#039;&#039; to &#039;&#039;&#039;Group&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Answer&amp;lt;/u&amp;gt;&lt;br /&gt;
Let &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; be the functor which sends:&lt;br /&gt;
* every set &amp;lt;math&amp;gt;X&amp;lt;/math&amp;gt; to the free group generated by &amp;lt;math&amp;gt;X&amp;lt;/math&amp;gt;, and&lt;br /&gt;
* every function &amp;lt;math&amp;gt;f \colon X \to Y&amp;lt;/math&amp;gt; to a group morphism defined by: &amp;lt;math&amp;gt;Ff(x_1^{\alpha_1}\times\dots\times x_k^{\alpha_k})=f(x_1)^{\alpha_1} \times \dots \times f(x_k)^{\alpha_k}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Exercice&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt; is a locally small category and &#039;&#039;A&#039;&#039; one of its objects, let &amp;lt;math&amp;gt;Y_A : X \mapsto \mathcal{C}[X,A]&amp;lt;/math&amp;gt;. Show that this operation from objects of &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt; to sets can be extended into a contravariant functor &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt; to &#039;&#039;&#039;Set&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Answer&amp;lt;/u&amp;gt;&lt;br /&gt;
Let &amp;lt;math&amp;gt;f\colon X \to Y&amp;lt;/math&amp;gt; be a morphism in &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt;, then &amp;lt;math&amp;gt;Y_A(f)&amp;lt;/math&amp;gt; is expected to be a function from the set &amp;lt;math&amp;gt;\mathcal{C}[Y, A]&amp;lt;/math&amp;gt; to the set &amp;lt;math&amp;gt;\mathcal{C}[X, A]&amp;lt;/math&amp;gt;. We can take, for any morphism &amp;lt;math&amp;gt;m \in \mathcal{C}[Y,A]&amp;lt;/math&amp;gt;: &amp;lt;math&amp;gt;Y_A(f)(m) = m \circ f&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
This extends &amp;lt;math&amp;gt;Y_A&amp;lt;/math&amp;gt; to a contravariant functor, since &amp;lt;math&amp;gt;Y_A(id_X) = id_{\mathcal{C}[X, A]}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;Y_A(f \circ g)(m) = m \circ (f \circ g) = (m \circ f) \circ g = (Y_A(g) \circ Y_A(f))(m)&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===Natural Transformations===&lt;br /&gt;
&lt;br /&gt;
{{Definition |&lt;br /&gt;
Let &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;G&amp;lt;/math&amp;gt; be two functors &amp;lt;math&amp;gt;\mathcal{C} \to \mathcal{D}&amp;lt;/math&amp;gt;. A natural transformation &amp;lt;math&amp;gt;\alpha&amp;lt;/math&amp;gt; from &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;G&amp;lt;/math&amp;gt; is given by:&lt;br /&gt;
* a morphism &amp;lt;math&amp;gt;\alpha_A \colon FA \to GA&amp;lt;/math&amp;gt; in &amp;lt;math&amp;gt;\mathcal{D}&amp;lt;/math&amp;gt; for every object &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; in &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt;,&lt;br /&gt;
* such that, for any morphism &amp;lt;math&amp;gt;f \colon A \to B&amp;lt;/math&amp;gt;, we have &amp;lt;math&amp;gt;Gf \circ \alpha_A = \alpha_B \circ Ff&amp;lt;/math&amp;gt;.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Exercice&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If &amp;lt;math&amp;gt;P(X)&amp;lt;/math&amp;gt; is the set of permutation of a (finite) set &#039;&#039;X&#039;&#039;; and &amp;lt;math&amp;gt;L(X)&amp;lt;/math&amp;gt; the set of its linear orderings, we have &amp;lt;math&amp;gt;\#(L(X)) = \#(L(X)) = n!&amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;n = \#(X)&amp;lt;/math&amp;gt;. Thus, there is a bijection (iso in &#039;&#039;&#039;Set&#039;&#039;&#039;) between &#039;&#039;P(X)&#039;&#039; and &#039;&#039;L(X)&#039;&#039;.&lt;br /&gt;
# Show that we can extend &#039;&#039;P&#039;&#039; and &#039;&#039;L&#039;&#039; to functors from &#039;&#039;&#039;B&#039;&#039;&#039; to &#039;&#039;&#039;Set&#039;&#039;&#039;, where &#039;&#039;&#039;B&#039;&#039;&#039; is the category of finite sets and bijections,&lt;br /&gt;
# Show that there can be no natural transformation from &#039;&#039;P&#039;&#039; to &#039;&#039;L&#039;&#039;,&lt;br /&gt;
# Conclude that there is no natural isomorphism between &#039;&#039;P&#039;&#039; and &#039;&#039;L&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
==Adjunctions==&lt;br /&gt;
&lt;br /&gt;
===About Limits and Colimits===&lt;br /&gt;
&lt;br /&gt;
One of the main thrusts of category theory is to define concepts by&lt;br /&gt;
their properties rather than by explicit construction. In general this&lt;br /&gt;
is just called abstraction, but in good cases, concepts are&lt;br /&gt;
&#039;&#039;defined&#039;&#039; by their properties, at least canonically if not uniquely.&lt;br /&gt;
&lt;br /&gt;
The chief example of this is binary products in &#039;&#039;&#039;Set&#039;&#039;&#039;.  The&lt;br /&gt;
product &amp;lt;math&amp;gt;A \times B&amp;lt;/math&amp;gt; of two sets &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; and&lt;br /&gt;
&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt; is generally thought of as the set of pairs &amp;lt;math&amp;gt; (x,&lt;br /&gt;
y) &amp;lt;/math&amp;gt; with &amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;y \in B&amp;lt;/math&amp;gt;.  But&lt;br /&gt;
strictly speaking, or rather set-theoretically speaking, one has to&lt;br /&gt;
construct it by cautious use of the axioms of Zermelo-Fraenkel set&lt;br /&gt;
theory.&lt;br /&gt;
&lt;br /&gt;
Instead, in any category &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt;, for any objects&lt;br /&gt;
&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt; categorists put: &lt;br /&gt;
&lt;br /&gt;
{{Definition | A&lt;br /&gt;
&#039;&#039;product&#039;&#039; of &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt; is an object &amp;lt;math&amp;gt;C&amp;lt;/math&amp;gt;&lt;br /&gt;
with arrows&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;A \xleftarrow{\pi_1} C \xrightarrow{\pi_2} B&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
such that for any object &amp;lt;math&amp;gt;D&amp;lt;/math&amp;gt; and arrows&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;A \xleftarrow{f} D \xrightarrow{g} B&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
there exists a unique arrow &amp;lt;math&amp;gt;h&amp;lt;/math&amp;gt; making the diagram&lt;br /&gt;
[[Image:prod.png|center|Universal property of product]]&lt;br /&gt;
commute, i.e., &amp;lt;math&amp;gt;\pi_1 \circ h = f&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\pi_2 \circ h = g&amp;lt;/math&amp;gt;.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
The standard constructions in &#039;&#039;&#039;Set&#039;&#039;&#039; all have this property, and&lt;br /&gt;
all the non-standard ones you can think of also do, e.g., the set of&lt;br /&gt;
pairs &amp;lt;math&amp;gt; (\emptyset, x, y) &amp;lt;/math&amp;gt; with &amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;y&lt;br /&gt;
\in B&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Conversely, any set with this property is as good as any other&lt;br /&gt;
construction of &amp;lt;math&amp;gt;A \times B&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Products are determined &#039;&#039;canonically&#039;&#039; by this property&lt;br /&gt;
property. We will give a more precise meaning to this in later&lt;br /&gt;
lectures; for now we just state:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Lemma.&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For any other product &amp;lt;center&amp;gt;&amp;lt;math&amp;gt;A \xleftarrow{p} E \xrightarrow{q} B&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt; of &lt;br /&gt;
&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;, there is a unique isomorphism pair &amp;lt;math&amp;gt; (r, s) &amp;lt;/math&amp;gt; &lt;br /&gt;
such that the diagrams&lt;br /&gt;
&lt;br /&gt;
[[Image:prod-iso.png|upright=2]] and &lt;br /&gt;
[[Image:prod-iso-2.png|upright=2]]&lt;br /&gt;
&lt;br /&gt;
commute.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===First examples and definition===&lt;br /&gt;
&lt;br /&gt;
====So-called &#039;&#039;free&#039;&#039; constructions in algebra: monoid, group, etc====&lt;br /&gt;
====Their universal property, the underlying functor====&lt;br /&gt;
====The isomorphism between hom-sets====&lt;br /&gt;
====Its naturality====&lt;br /&gt;
====Definition====&lt;br /&gt;
====On to the definition with &amp;lt;math&amp;gt;\eta&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\epsilon&amp;lt;/math&amp;gt;====&lt;br /&gt;
&lt;br /&gt;
===The simplicity behind definitions:2-categories and adjunctions therein===&lt;br /&gt;
&lt;br /&gt;
====Definition of 2-categories====&lt;br /&gt;
====String diagrams====&lt;br /&gt;
====&#039;&#039;&#039;CAT&#039;&#039;&#039; as a 2-category====&lt;br /&gt;
====Adjunctions in a 2-category====&lt;br /&gt;
&lt;br /&gt;
===Other basic examples===&lt;br /&gt;
&lt;br /&gt;
====Discussion: any syntax defines the free something==== The issue of &lt;br /&gt;
variable binding.&lt;br /&gt;
====Adjunction between partial orders = Galois connection====&lt;br /&gt;
====&amp;lt;math&amp;gt;\times&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\Rightarrow&amp;lt;/math&amp;gt; in logic====&lt;br /&gt;
====Sets/graphs and categories====&lt;br /&gt;
&lt;br /&gt;
===Monads and resolutions===&lt;br /&gt;
&lt;br /&gt;
====Definition of a monad====&lt;br /&gt;
====String diagrams====&lt;br /&gt;
====Every adjunction yields a monad====&lt;br /&gt;
====Example of monoids again: resolutions====&lt;br /&gt;
&lt;br /&gt;
===Monadic adjunctions===&lt;br /&gt;
&lt;br /&gt;
====The category of resolutions====&lt;br /&gt;
====Eilenberg-Moore is terminal====&lt;br /&gt;
====Kleisli is initial====&lt;br /&gt;
====Monadic adjunctions====&lt;br /&gt;
====Algebraic theories====&lt;br /&gt;
&lt;br /&gt;
===Properties===&lt;br /&gt;
&lt;br /&gt;
====Composing adjunctions====&lt;br /&gt;
====Preservation of limits/colimits====&lt;br /&gt;
====Freyd&#039;s existence theorem====&lt;br /&gt;
====Beck&#039;s monadicity theorem====&lt;br /&gt;
&lt;br /&gt;
==Limites and Colimits==&lt;br /&gt;
&lt;br /&gt;
==Course Complements, references==&lt;br /&gt;
&lt;br /&gt;
One of the best books about category theory is&lt;br /&gt;
* Saunder MacLane, &#039;&#039;&amp;quot;Categories for the Working Mathematician&amp;quot;&#039;&#039;.&lt;br /&gt;
It is a little &amp;quot;dry&amp;quot;, in the sense that learning categories from it is not the easiest task on earth, but it still is one of the best references.&lt;br /&gt;
&lt;br /&gt;
I haven&#039;t really read it carefully, but here is [http://en.wikipedia.org/wiki/Category_theory what Wikipedia has to say on category theory].&lt;/div&gt;</summary>
		<author><name>DDuval</name></author>
	</entry>
	<entry>
		<id>http://os-vps418.infomaniak.ch:1250/mediawiki/index.php?title=Langage_et_concepts_cat%C3%A9goriques_pour_les_math%C3%A9matiques_et_l%E2%80%99informatique&amp;diff=3949</id>
		<title>Langage et concepts catégoriques pour les mathématiques et l’informatique</title>
		<link rel="alternate" type="text/html" href="http://os-vps418.infomaniak.ch:1250/mediawiki/index.php?title=Langage_et_concepts_cat%C3%A9goriques_pour_les_math%C3%A9matiques_et_l%E2%80%99informatique&amp;diff=3949"/>
		<updated>2009-03-11T13:18:18Z</updated>

		<summary type="html">&lt;p&gt;DDuval : &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This is a wiki for a course at the MSTII &amp;quot;École doctorale&amp;quot; of Grenoble.&lt;br /&gt;
&lt;br /&gt;
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...&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===News===&lt;br /&gt;
&lt;br /&gt;
Courses are on wednesdays morning, 9&#039;00 to 12&#039;00 in room F218 at the &amp;quot;UFR IMAG&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
* first course on the 25th of February: categories, functors, natural transformations.&lt;br /&gt;
* March 4. : monads, adjunctions.&lt;br /&gt;
* March 11. : limits and colimits.&lt;br /&gt;
&lt;br /&gt;
==Basic Concepts==&lt;br /&gt;
&lt;br /&gt;
===Categories===&lt;br /&gt;
&lt;br /&gt;
{{Definition |&lt;br /&gt;
A concrete category is given by:&lt;br /&gt;
* a collection of sets &#039;&#039;with structure&#039;&#039;,&lt;br /&gt;
* for any pair of such sets, a set of &#039;&#039;morphisms&#039;&#039; preserving the structure.&lt;br /&gt;
Morphisms should compose, and the identity should be a morphism.}}&lt;br /&gt;
&lt;br /&gt;
This definition is a little informal, but here are some examples:&lt;br /&gt;
* &#039;&#039;&#039;Grp&#039;&#039;&#039;: groups and group morphisms&lt;br /&gt;
* &#039;&#039;&#039;Top&#039;&#039;&#039;: topological spaces and continuous functions&lt;br /&gt;
* &#039;&#039;&#039;Ring&#039;&#039;&#039;: rings and rings morphisms&lt;br /&gt;
* &#039;&#039;&#039;Vect&#039;&#039;&#039;: vectors spaces and linear maps&lt;br /&gt;
* &#039;&#039;&#039;CPO&#039;&#039;&#039;: CPOs and continuous functions&lt;br /&gt;
* ...&lt;br /&gt;
* &#039;&#039;&#039;Set&#039;&#039;&#039;: sets and functions (&#039;&#039;&#039;ie&#039;&#039;&#039; sets with no structures, and arbitrary functions)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Generalizing the definition, we obtain the official definition of category:&lt;br /&gt;
&lt;br /&gt;
{{Definition |&lt;br /&gt;
A category &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt; is given by:&lt;br /&gt;
* a collection &amp;lt;math&amp;gt;\mathcal{C}_o&amp;lt;/math&amp;gt; of &#039;&#039;objects&#039;&#039;,  (notation: &amp;lt;math&amp;gt;A,B,C,X,Y,...&amp;lt;/math&amp;gt;)&lt;br /&gt;
* for each pair &amp;lt;math&amp;gt;A,B&amp;lt;/math&amp;gt; of objects, a collection &amp;lt;math&amp;gt;\mathcal{C}[A,B]&amp;lt;/math&amp;gt; of &#039;&#039;morphisms from &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&#039;&#039;,  (notation &amp;lt;math&amp;gt; f : A\to B&amp;lt;/math&amp;gt;)&lt;br /&gt;
* for any object &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;, a special morphism &amp;lt;math&amp;gt;i_A : A\to A&amp;lt;/math&amp;gt;&lt;br /&gt;
* for all objects &amp;lt;math&amp;gt;A,B,C&amp;lt;/math&amp;gt;, a composition &amp;lt;math&amp;gt;\circ : \mathcal{C}[B,C] \times \mathcal{C}[A,B] \to \mathcal{C}[A,C]&amp;lt;/math&amp;gt;,&lt;br /&gt;
such that:&lt;br /&gt;
* &amp;lt;math&amp;gt;f \in \mathcal{C}[A,B] \implies f\circ i_A = i_B\circ f = f&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;f\circ(g\circ h) = (f\circ g)\circ h&amp;lt;/math&amp;gt; whenever it makes sense.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
All concrete categories are categories, and here are some examples that are not obviously concrete:&lt;br /&gt;
* &#039;&#039;&#039;Graph&#039;&#039;&#039;: graphs and graph morphisms&lt;br /&gt;
* &#039;&#039;&#039;Rel&#039;&#039;&#039;: sets and relations&lt;br /&gt;
* &#039;&#039;&#039;Set×Set&#039;&#039;&#039;: pairs of sets, pairs of functions&lt;br /&gt;
* &#039;&#039;&#039;Set&amp;lt;math&amp;gt;^{op}&amp;lt;/math&amp;gt;&#039;&#039;&#039;: opposite of &#039;&#039;&#039;Set&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;P&#039;&#039;&#039;, whenever (&#039;&#039;&#039;P&#039;&#039;&#039;,&amp;lt;) is a preorder (at most one morphism between objects)&lt;br /&gt;
* &#039;&#039;&#039;M&#039;&#039;&#039;, whenever (&#039;&#039;&#039;M&#039;&#039;&#039;,e,×) is a monoid (a single object)&lt;br /&gt;
&lt;br /&gt;
We sometimes write &amp;lt;math&amp;gt;gf&amp;lt;/math&amp;gt; instead of &amp;lt;math&amp;gt;g \circ f&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
In a given category &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt;, there are analogues of the notions of injective and surjective functions in &#039;&#039;&#039;Set&#039;&#039;&#039;. We will see that on concrete categories, they are actually slightly more general. The idea of injectivity gives rise to &#039;&#039;monomorphisms&#039;&#039;, and surjectivity gives rise to &#039;&#039;epimorphisms&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
{{Definition |&lt;br /&gt;
&lt;br /&gt;
A morphism &amp;lt;math&amp;gt;f \colon A \to B&amp;lt;/math&amp;gt; is a &#039;&#039;monomorphism&#039;&#039; iff for all object &amp;lt;math&amp;gt;C&amp;lt;/math&amp;gt; and morphisms &amp;lt;math&amp;gt;g,h \colon C \to A&amp;lt;/math&amp;gt;, we have &amp;lt;math&amp;gt;fg = fh&amp;lt;/math&amp;gt; implies &amp;lt;math&amp;gt;g = h&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The morphism &amp;lt;math&amp;gt;f&amp;lt;/math&amp;gt; is an &#039;&#039;epimorphism&#039;&#039; when it is a monomorphism in &amp;lt;math&amp;gt;\mathcal{C}^{op}&amp;lt;/math&amp;gt;. Explicitly, when for all object &amp;lt;math&amp;gt;C&amp;lt;/math&amp;gt; and morphisms &amp;lt;math&amp;gt;g,h \colon B \to C&amp;lt;/math&amp;gt;, we have &amp;lt;math&amp;gt;gf = hf&amp;lt;/math&amp;gt; implies &amp;lt;math&amp;gt;g = h&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
  isomorphism&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Exercice&amp;lt;/u&amp;gt;&lt;br /&gt;
# Prove that in &#039;&#039;&#039;Set&#039;&#039;&#039;, epic is equivalent to surjective and monic is equivalent to injective.&lt;br /&gt;
# Prove the same thing in &#039;&#039;&#039;Ab&#039;&#039;&#039;, the category of commutative groups. (One thing is not obvious.)&lt;br /&gt;
# Prove the same thing in &#039;&#039;&#039;Grp&#039;&#039;&#039;, the category of (non necessarily commutative) groups. (One thing is not obvious at all.)&lt;br /&gt;
# Prove that &amp;lt;math&amp;gt;i : \mathbf{Z} \to \mathbf{Q}&amp;lt;/math&amp;gt; is an epimorphism in the category of rings with multiplicative neutral. (Note that it is not surjective.)&lt;br /&gt;
# In &#039;&#039;&#039;Set&#039;&#039;&#039;, we saw that &#039;&#039;f&#039;&#039; is a monic iff &amp;lt;math&amp;gt;\forall x,y : 1 \to A, f\circ x = f\circ y \implies x=y&amp;lt;/math&amp;gt;, where 1 is any singleton set. Can you find a set &#039;&#039;C&#039;&#039; such that &#039;&#039;f&#039;&#039; is epic iff &amp;lt;math&amp;gt;\forall p,q : B \to C, p\circ f = j\circ f \implies p=q&amp;lt;/math&amp;gt;?&lt;br /&gt;
# In &#039;&#039;&#039;Group&#039;&#039;&#039;, can you find an object playing a role similar to 1, &#039;&#039;ie&#039;&#039; a group &#039;&#039;G&#039;&#039; s.t. &#039;&#039;f&#039;&#039; is monic iff &amp;lt;math&amp;gt;\forall x,y : G \to A, f\circ x = f\circ y \implies x=y&amp;lt;/math&amp;gt;. (We saw that we cannot use the singleton group ({e},e,×) to do that...)&lt;br /&gt;
&lt;br /&gt;
===Functors===&lt;br /&gt;
&lt;br /&gt;
Informally, a functor is a map between two categories which somehow preserves the structure of categories (namely, composition).&lt;br /&gt;
&lt;br /&gt;
{{Definition |&lt;br /&gt;
A functor &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; from a category &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt; to a category &amp;lt;math&amp;gt;\mathcal{D}&amp;lt;/math&amp;gt;, noted &amp;lt;math&amp;gt;F \colon \mathcal{C} \to \mathcal{D}&amp;lt;/math&amp;gt;, is given by:&lt;br /&gt;
* a map which sends every object &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; of &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt; to an object &amp;lt;math&amp;gt;FA&amp;lt;/math&amp;gt; in &amp;lt;math&amp;gt;\mathcal{D}&amp;lt;/math&amp;gt;, and&lt;br /&gt;
* a map which sends every morphism &amp;lt;math&amp;gt;f \colon A \to B&amp;lt;/math&amp;gt; in &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt;, to a morphism &amp;lt;math&amp;gt;Ff&amp;lt;/math&amp;gt; in &amp;lt;math&amp;gt;\mathcal{D}[FA, FB]&amp;lt;/math&amp;gt;,&lt;br /&gt;
such that:&lt;br /&gt;
* &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; preserves identities, i.e., &amp;lt;math&amp;gt;F(id_A) = id_{FA}&amp;lt;/math&amp;gt;, and&lt;br /&gt;
* &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; preserves composition: &amp;lt;math&amp;gt;F(f \circ g) = F(f) \circ F(g)&amp;lt;/math&amp;gt;.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Exercice&amp;lt;/u&amp;gt;&lt;br /&gt;
# Take a functor &amp;lt;math&amp;gt;F \colon \mathcal{C} \to \mathcal{D}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;f, g, h&amp;lt;/math&amp;gt; three morphisms in &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt;, and &amp;lt;math&amp;gt;f&#039; = Ff&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;g&#039; = Fg&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;h&#039; = Fh&amp;lt;/math&amp;gt;. When &amp;lt;math&amp;gt;h&#039; = f&#039; \circ g&#039;&amp;lt;/math&amp;gt;, can we say something interesting about &amp;lt;math&amp;gt;f&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;g&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;h&amp;lt;/math&amp;gt;?&lt;br /&gt;
# Do functors preserve monomorphisms? Do functors preserve epimorphisms?&lt;br /&gt;
# Let &#039;&#039;F&#039;&#039; be a functor and &#039;&#039;F(f) = g&#039;&#039;, if &#039;&#039;g&#039;&#039; is a mono (resp. epi), is &#039;&#039;f&#039;&#039; a mono (resp. epi)?&lt;br /&gt;
If not, try to find some simple and natural condition on the functor to make that true.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Answer&amp;lt;/u&amp;gt;&lt;br /&gt;
# No, since &amp;lt;math&amp;gt;f&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;g&amp;lt;/math&amp;gt; may not even compose! This is the case when &amp;lt;math&amp;gt;f&amp;lt;/math&amp;gt; has type &amp;lt;math&amp;gt;A \to B&amp;lt;/math&amp;gt;, and &amp;lt;math&amp;gt;g \colon C \to D&amp;lt;/math&amp;gt;, with &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; collapsing &amp;lt;math&amp;gt;D&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; (i.e., &amp;lt;math&amp;gt;FA = FD&amp;lt;/math&amp;gt;).&lt;br /&gt;
# Functors in general do not preserve mono- nor epimorphisms. We build a counter-example for monomorphisms. Let &amp;lt;math&amp;gt;\mathbf{2}&amp;lt;/math&amp;gt; be the category with two objects &amp;lt;math&amp;gt;\star&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\bullet&amp;lt;/math&amp;gt;, and exactly one morphism &amp;lt;math&amp;gt;m \colon \star \to \bullet&amp;lt;/math&amp;gt;. This is a preorder, so &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; is monic. Now take &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt; with two objects &amp;lt;math&amp;gt;\star&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\bullet&amp;lt;/math&amp;gt;, exactly one morphism &amp;lt;math&amp;gt;m \colon \star \to \bullet&amp;lt;/math&amp;gt;, and one extra morphism &amp;lt;math&amp;gt;n \colon \star \to \star&amp;lt;/math&amp;gt;, different from the identity. Because of &amp;lt;math&amp;gt;n \neq id_\star&amp;lt;/math&amp;gt;, yet &amp;lt;math&amp;gt;m \circ n = m \circ id&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; is not monic in &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt;. The functor which sends &amp;lt;math&amp;gt;\star&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;\star&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;\bullet&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;\bullet&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; in &amp;lt;math&amp;gt;\mathbf{2}&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; in &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt;, does not preserve monomorphisms.&lt;br /&gt;
# In general, the answer is (again) no. For monos, take for example the functor &amp;lt;math&amp;gt;\mathcal{C} \to \mathbf{2}&amp;lt;/math&amp;gt; which sends &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; to the identity. Yet, when &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; is &#039;&#039;faithful&#039;&#039;, then &amp;lt;math&amp;gt;f&amp;lt;/math&amp;gt; is monic (or epic).&lt;br /&gt;
&lt;br /&gt;
{{Definition |&lt;br /&gt;
A functor &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; is faithful when, for any two morphisms &amp;lt;math&amp;gt;f, g&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;Ff = Fg&amp;lt;/math&amp;gt; implies &amp;lt;math&amp;gt;f=g&amp;lt;/math&amp;gt; (&amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; is injective on morphisms).&lt;br /&gt;
}}&lt;br /&gt;
{{Definition |&lt;br /&gt;
A functor &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; is full when, for any two objects &amp;lt;math&amp;gt;A, B&amp;lt;/math&amp;gt;, if &amp;lt;math&amp;gt;g&amp;lt;/math&amp;gt; is a morphism &amp;lt;math&amp;gt;FA \to FB&amp;lt;/math&amp;gt;, then there exists &amp;lt;math&amp;gt;f \colon A \to B&amp;lt;/math&amp;gt; with &amp;lt;math&amp;gt;Ff = g&amp;lt;/math&amp;gt; (&amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; is surjective on morphisms).&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Exercice&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Find an &amp;quot;interesting&amp;quot; functor from &#039;&#039;&#039;Set&#039;&#039;&#039; to &#039;&#039;&#039;Group&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Answer&amp;lt;/u&amp;gt;&lt;br /&gt;
Let &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; be the functor which sends:&lt;br /&gt;
* every set &amp;lt;math&amp;gt;X&amp;lt;/math&amp;gt; to the free group generated by &amp;lt;math&amp;gt;X&amp;lt;/math&amp;gt;, and&lt;br /&gt;
* every function &amp;lt;math&amp;gt;f \colon X \to Y&amp;lt;/math&amp;gt; to a group morphism defined by: &amp;lt;math&amp;gt;Ff(x_1^{\alpha_1}\times\dots\times x_k^{\alpha_k})=f(x_1)^{\alpha_1} \times \dots \times f(x_k)^{\alpha_k}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Exercice&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt; is a locally small category and &#039;&#039;A&#039;&#039; one of its objects, let &amp;lt;math&amp;gt;Y_A : X \mapsto \mathcal{C}[X,A]&amp;lt;/math&amp;gt;. Show that this operation from objects of &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt; to sets can be extended into a contravariant functor &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt; to &#039;&#039;&#039;Set&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Answer&amp;lt;/u&amp;gt;&lt;br /&gt;
Let &amp;lt;math&amp;gt;f\colon X \to Y&amp;lt;/math&amp;gt; be a morphism in &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt;, then &amp;lt;math&amp;gt;Y_A(f)&amp;lt;/math&amp;gt; is expected to be a function from the set &amp;lt;math&amp;gt;\mathcal{C}[Y, A]&amp;lt;/math&amp;gt; to the set &amp;lt;math&amp;gt;\mathcal{C}[X, A]&amp;lt;/math&amp;gt;. We can take, for any morphism &amp;lt;math&amp;gt;m \in \mathcal{C}[Y,A]&amp;lt;/math&amp;gt;: &amp;lt;math&amp;gt;Y_A(f)(m) = m \circ f&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
This extends &amp;lt;math&amp;gt;Y_A&amp;lt;/math&amp;gt; to a contravariant functor, since &amp;lt;math&amp;gt;Y_A(id_X) = id_{\mathcal{C}[X, A]}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;Y_A(f \circ g)(m) = m \circ (f \circ g) = (m \circ f) \circ g = (Y_A(g) \circ Y_A(f))(m)&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===Natural Transformations===&lt;br /&gt;
&lt;br /&gt;
{{Definition |&lt;br /&gt;
Let &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;G&amp;lt;/math&amp;gt; be two functors &amp;lt;math&amp;gt;\mathcal{C} \to \mathcal{D}&amp;lt;/math&amp;gt;. A natural transformation &amp;lt;math&amp;gt;\alpha&amp;lt;/math&amp;gt; from &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;G&amp;lt;/math&amp;gt; is given by:&lt;br /&gt;
* a morphism &amp;lt;math&amp;gt;\alpha_A \colon FA \to GA&amp;lt;/math&amp;gt; in &amp;lt;math&amp;gt;\mathcal{D}&amp;lt;/math&amp;gt; for every object &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; in &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt;,&lt;br /&gt;
* such that, for any morphism &amp;lt;math&amp;gt;f \colon A \to B&amp;lt;/math&amp;gt;, we have &amp;lt;math&amp;gt;Gf \circ \alpha_A = \alpha_B \circ Ff&amp;lt;/math&amp;gt;.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Exercice&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If &amp;lt;math&amp;gt;P(X)&amp;lt;/math&amp;gt; is the set of permutation of a (finite) set &#039;&#039;X&#039;&#039;; and &amp;lt;math&amp;gt;L(X)&amp;lt;/math&amp;gt; the set of its linear orderings, we have &amp;lt;math&amp;gt;\#(L(X)) = \#(L(X)) = n!&amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;n = \#(X)&amp;lt;/math&amp;gt;. Thus, there is a bijection (iso in &#039;&#039;&#039;Set&#039;&#039;&#039;) between &#039;&#039;P(X)&#039;&#039; and &#039;&#039;L(X)&#039;&#039;.&lt;br /&gt;
# Show that we can extend &#039;&#039;P&#039;&#039; and &#039;&#039;L&#039;&#039; to functors from &#039;&#039;&#039;B&#039;&#039;&#039; to &#039;&#039;&#039;Set&#039;&#039;&#039;, where &#039;&#039;&#039;B&#039;&#039;&#039; is the category of finite sets and bijections,&lt;br /&gt;
# Show that there can be no natural transformation from &#039;&#039;P&#039;&#039; to &#039;&#039;L&#039;&#039;,&lt;br /&gt;
# Conclude that there is no natural isomorphism between &#039;&#039;P&#039;&#039; and &#039;&#039;L&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
==Adjunctions==&lt;br /&gt;
&lt;br /&gt;
===About Limits and Colimits===&lt;br /&gt;
&lt;br /&gt;
One of the main thrusts of category theory is to define concepts by&lt;br /&gt;
their properties rather than by explicit construction. In general this&lt;br /&gt;
is just called abstraction, but in good cases, concepts are&lt;br /&gt;
&#039;&#039;defined&#039;&#039; by their properties, at least canonically if not uniquely.&lt;br /&gt;
&lt;br /&gt;
The chief example of this is binary products in &#039;&#039;&#039;Set&#039;&#039;&#039;.  The&lt;br /&gt;
product &amp;lt;math&amp;gt;A \times B&amp;lt;/math&amp;gt; of two sets &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; and&lt;br /&gt;
&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt; is generally thought of as the set of pairs &amp;lt;math&amp;gt; (x,&lt;br /&gt;
y) &amp;lt;/math&amp;gt; with &amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;y \in B&amp;lt;/math&amp;gt;.  But&lt;br /&gt;
strictly speaking, or rather set-theoretically speaking, one has to&lt;br /&gt;
construct it by cautious use of the axioms of Zermelo-Fraenkel set&lt;br /&gt;
theory.&lt;br /&gt;
&lt;br /&gt;
Instead, in any category &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt;, for any objects&lt;br /&gt;
&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt; categorists put: &lt;br /&gt;
&lt;br /&gt;
{{Definition | A&lt;br /&gt;
&#039;&#039;product&#039;&#039; of &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt; is an object &amp;lt;math&amp;gt;C&amp;lt;/math&amp;gt;&lt;br /&gt;
with arrows&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;A \xleftarrow{\pi_1} C \xrightarrow{\pi_2} B&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
such that for any object &amp;lt;math&amp;gt;D&amp;lt;/math&amp;gt; and arrows&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;A \xleftarrow{f} D \xrightarrow{g} B&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
there exists a unique arrow &amp;lt;math&amp;gt;h&amp;lt;/math&amp;gt; making the diagram&lt;br /&gt;
[[Image:prod.png|center|Universal property of product]]&lt;br /&gt;
commute, i.e., &amp;lt;math&amp;gt;\pi_1 \circ h = f&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\pi_2 \circ h = g&amp;lt;/math&amp;gt;.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
The standard constructions in &#039;&#039;&#039;Set&#039;&#039;&#039; all have this property, and&lt;br /&gt;
all the non-standard ones you can think of also do, e.g., the set of&lt;br /&gt;
pairs &amp;lt;math&amp;gt; (\emptyset, x, y) &amp;lt;/math&amp;gt; with &amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;y&lt;br /&gt;
\in B&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Conversely, any set with this property is as good as any other&lt;br /&gt;
construction of &amp;lt;math&amp;gt;A \times B&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Products are determined &#039;&#039;canonically&#039;&#039; by this property&lt;br /&gt;
property. We will give a more precise meaning to this in later&lt;br /&gt;
lectures; for now we just state:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Lemma.&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For any other product &amp;lt;center&amp;gt;&amp;lt;math&amp;gt;A \xleftarrow{p} E \xrightarrow{q} B&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt; of &lt;br /&gt;
&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;, there is a unique isomorphism pair &amp;lt;math&amp;gt; (r, s) &amp;lt;/math&amp;gt; &lt;br /&gt;
such that the diagrams&lt;br /&gt;
&lt;br /&gt;
[[Image:prod-iso.png|upright=2]] and &lt;br /&gt;
[[Image:prod-iso-2.png|upright=2]]&lt;br /&gt;
&lt;br /&gt;
commute.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===First examples and definition===&lt;br /&gt;
&lt;br /&gt;
====So-called &#039;&#039;free&#039;&#039; constructions in algebra: monoid, group, etc====&lt;br /&gt;
====Their universal property, the underlying functor====&lt;br /&gt;
====The isomorphism between hom-sets====&lt;br /&gt;
====Its naturality====&lt;br /&gt;
====Definition====&lt;br /&gt;
====On to the definition with &amp;lt;math&amp;gt;\eta&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\epsilon&amp;lt;/math&amp;gt;====&lt;br /&gt;
&lt;br /&gt;
===The simplicity behind definitions:2-categories and adjunctions therein===&lt;br /&gt;
&lt;br /&gt;
====Definition of 2-categories====&lt;br /&gt;
====String diagrams====&lt;br /&gt;
====&#039;&#039;&#039;CAT&#039;&#039;&#039; as a 2-category====&lt;br /&gt;
====Adjunctions in a 2-category====&lt;br /&gt;
&lt;br /&gt;
===Other basic examples===&lt;br /&gt;
&lt;br /&gt;
====Discussion: any syntax defines the free something==== The issue of &lt;br /&gt;
variable binding.&lt;br /&gt;
====Adjunction between partial orders = Galois connection====&lt;br /&gt;
====&amp;lt;math&amp;gt;\times&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\Rightarrow&amp;lt;/math&amp;gt; in logic====&lt;br /&gt;
====Sets/graphs and categories====&lt;br /&gt;
&lt;br /&gt;
===Monads and resolutions===&lt;br /&gt;
&lt;br /&gt;
====Definition of a monad====&lt;br /&gt;
====String diagrams====&lt;br /&gt;
====Every adjunction yields a monad====&lt;br /&gt;
====Example of monoids again: resolutions====&lt;br /&gt;
&lt;br /&gt;
===Monadic adjunctions===&lt;br /&gt;
&lt;br /&gt;
====The category of resolutions====&lt;br /&gt;
====Eilenberg-Moore is terminal====&lt;br /&gt;
====Kleisli is initial====&lt;br /&gt;
====Monadic adjunctions====&lt;br /&gt;
====Algebraic theories====&lt;br /&gt;
&lt;br /&gt;
===Properties===&lt;br /&gt;
&lt;br /&gt;
====Composing adjunctions====&lt;br /&gt;
====Preservation of limits/colimits====&lt;br /&gt;
====Freyd&#039;s existence theorem====&lt;br /&gt;
====Beck&#039;s monadicity theorem====&lt;br /&gt;
&lt;br /&gt;
==Course Complements, references==&lt;br /&gt;
&lt;br /&gt;
One of the best books about category theory is&lt;br /&gt;
* Saunder MacLane, &#039;&#039;&amp;quot;Categories for the Working Mathematician&amp;quot;&#039;&#039;.&lt;br /&gt;
It is a little &amp;quot;dry&amp;quot;, in the sense that learning categories from it is not the easiest task on earth, but it still is one of the best references.&lt;br /&gt;
&lt;br /&gt;
I haven&#039;t really read it carefully, but here is [http://en.wikipedia.org/wiki/Category_theory what Wikipedia has to say on category theory].&lt;/div&gt;</summary>
		<author><name>DDuval</name></author>
	</entry>
	<entry>
		<id>http://os-vps418.infomaniak.ch:1250/mediawiki/index.php?title=Langage_et_concepts_cat%C3%A9goriques_pour_les_math%C3%A9matiques_et_l%E2%80%99informatique&amp;diff=3948</id>
		<title>Langage et concepts catégoriques pour les mathématiques et l’informatique</title>
		<link rel="alternate" type="text/html" href="http://os-vps418.infomaniak.ch:1250/mediawiki/index.php?title=Langage_et_concepts_cat%C3%A9goriques_pour_les_math%C3%A9matiques_et_l%E2%80%99informatique&amp;diff=3948"/>
		<updated>2009-03-11T13:07:26Z</updated>

		<summary type="html">&lt;p&gt;DDuval : /* About Limits and Colimits */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This is a wiki for a course at the MSTII &amp;quot;École doctorale&amp;quot; of Grenoble.&lt;br /&gt;
&lt;br /&gt;
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...&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===News===&lt;br /&gt;
&lt;br /&gt;
Courses are on wednesdays morning, 9&#039;00 to 12&#039;00 in room F218 at the &amp;quot;UFR IMAG&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
* first course on the 25th of February: categories, functors, natural transformations.&lt;br /&gt;
* March 4. : monads, adjunctions.&lt;br /&gt;
* March 11. : limits and colimits.&lt;br /&gt;
&lt;br /&gt;
==Basic Concepts==&lt;br /&gt;
&lt;br /&gt;
===Categories===&lt;br /&gt;
&lt;br /&gt;
{{Definition |&lt;br /&gt;
A concrete category is given by:&lt;br /&gt;
* a collection of sets &#039;&#039;with structure&#039;&#039;,&lt;br /&gt;
* for any pair of such sets, a set of &#039;&#039;morphisms&#039;&#039; preserving the structure.&lt;br /&gt;
Morphisms should compose, and the identity should be a morphism.}}&lt;br /&gt;
&lt;br /&gt;
This definition is a little informal, but here are some examples:&lt;br /&gt;
* &#039;&#039;&#039;Grp&#039;&#039;&#039;: groups and group morphisms&lt;br /&gt;
* &#039;&#039;&#039;Top&#039;&#039;&#039;: topological spaces and continuous functions&lt;br /&gt;
* &#039;&#039;&#039;Ring&#039;&#039;&#039;: rings and rings morphisms&lt;br /&gt;
* &#039;&#039;&#039;Vect&#039;&#039;&#039;: vectors spaces and linear maps&lt;br /&gt;
* &#039;&#039;&#039;CPO&#039;&#039;&#039;: CPOs and continuous functions&lt;br /&gt;
* ...&lt;br /&gt;
* &#039;&#039;&#039;Set&#039;&#039;&#039;: sets and functions (&#039;&#039;&#039;ie&#039;&#039;&#039; sets with no structures, and arbitrary functions)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Generalizing the definition, we obtain the official definition of category:&lt;br /&gt;
&lt;br /&gt;
{{Definition |&lt;br /&gt;
A category &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt; is given by:&lt;br /&gt;
* a collection &amp;lt;math&amp;gt;\mathcal{C}_o&amp;lt;/math&amp;gt; of &#039;&#039;objects&#039;&#039;,  (notation: &amp;lt;math&amp;gt;A,B,C,X,Y,...&amp;lt;/math&amp;gt;)&lt;br /&gt;
* for each pair &amp;lt;math&amp;gt;A,B&amp;lt;/math&amp;gt; of objects, a collection &amp;lt;math&amp;gt;\mathcal{C}[A,B]&amp;lt;/math&amp;gt; of &#039;&#039;morphisms from &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&#039;&#039;,  (notation &amp;lt;math&amp;gt; f : A\to B&amp;lt;/math&amp;gt;)&lt;br /&gt;
* for any object &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;, a special morphism &amp;lt;math&amp;gt;i_A : A\to A&amp;lt;/math&amp;gt;&lt;br /&gt;
* for all objects &amp;lt;math&amp;gt;A,B,C&amp;lt;/math&amp;gt;, a composition &amp;lt;math&amp;gt;\circ : \mathcal{C}[B,C] \times \mathcal{C}[A,B] \to \mathcal{C}[A,C]&amp;lt;/math&amp;gt;,&lt;br /&gt;
such that:&lt;br /&gt;
* &amp;lt;math&amp;gt;f \in \mathcal{C}[A,B] \implies f\circ i_A = i_B\circ f = f&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;f\circ(g\circ h) = (f\circ g)\circ h&amp;lt;/math&amp;gt; whenever it makes sense.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
All concrete categories are categories, and here are some examples that are not obviously concrete:&lt;br /&gt;
* &#039;&#039;&#039;Graph&#039;&#039;&#039;: graphs and graph morphisms&lt;br /&gt;
* &#039;&#039;&#039;Rel&#039;&#039;&#039;: sets and relations&lt;br /&gt;
* &#039;&#039;&#039;Set×Set&#039;&#039;&#039;: pairs of sets, pairs of functions&lt;br /&gt;
* &#039;&#039;&#039;Set&amp;lt;math&amp;gt;^{op}&amp;lt;/math&amp;gt;&#039;&#039;&#039;: opposite of &#039;&#039;&#039;Set&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;P&#039;&#039;&#039;, whenever (&#039;&#039;&#039;P&#039;&#039;&#039;,&amp;lt;) is a preorder (at most one morphism between objects)&lt;br /&gt;
* &#039;&#039;&#039;M&#039;&#039;&#039;, whenever (&#039;&#039;&#039;M&#039;&#039;&#039;,e,×) is a monoid (a single object)&lt;br /&gt;
&lt;br /&gt;
We sometimes write &amp;lt;math&amp;gt;gf&amp;lt;/math&amp;gt; instead of &amp;lt;math&amp;gt;g \circ f&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
In a given category &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt;, there are analogues of the notions of injective and surjective functions in &#039;&#039;&#039;Set&#039;&#039;&#039;. We will see that on concrete categories, they are actually slightly more general. The idea of injectivity gives rise to &#039;&#039;monomorphisms&#039;&#039;, and surjectivity gives rise to &#039;&#039;epimorphisms&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
{{Definition |&lt;br /&gt;
&lt;br /&gt;
A morphism &amp;lt;math&amp;gt;f \colon A \to B&amp;lt;/math&amp;gt; is a &#039;&#039;monomorphism&#039;&#039; iff for all object &amp;lt;math&amp;gt;C&amp;lt;/math&amp;gt; and morphisms &amp;lt;math&amp;gt;g,h \colon C \to A&amp;lt;/math&amp;gt;, we have &amp;lt;math&amp;gt;fg = fh&amp;lt;/math&amp;gt; implies &amp;lt;math&amp;gt;g = h&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The morphism &amp;lt;math&amp;gt;f&amp;lt;/math&amp;gt; is an &#039;&#039;epimorphism&#039;&#039; when it is a monomorphism in &amp;lt;math&amp;gt;\mathcal{C}^{op}&amp;lt;/math&amp;gt;. Explicitly, when for all object &amp;lt;math&amp;gt;C&amp;lt;/math&amp;gt; and morphisms &amp;lt;math&amp;gt;g,h \colon B \to C&amp;lt;/math&amp;gt;, we have &amp;lt;math&amp;gt;gf = hf&amp;lt;/math&amp;gt; implies &amp;lt;math&amp;gt;g = h&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
  isomorphism&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Exercice&amp;lt;/u&amp;gt;&lt;br /&gt;
# Prove that in &#039;&#039;&#039;Set&#039;&#039;&#039;, epic is equivalent to surjective and monic is equivalent to injective.&lt;br /&gt;
# Prove the same thing in &#039;&#039;&#039;Ab&#039;&#039;&#039;, the category of commutative groups. (One thing is not obvious.)&lt;br /&gt;
# Prove the same thing in &#039;&#039;&#039;Grp&#039;&#039;&#039;, the category of (non necessarily commutative) groups. (One thing is not obvious at all.)&lt;br /&gt;
# Prove that &amp;lt;math&amp;gt;i : \mathbf{Z} \to \mathbf{Q}&amp;lt;/math&amp;gt; is an epimorphism in the category of rings with multiplicative neutral. (Note that it is not surjective.)&lt;br /&gt;
# In &#039;&#039;&#039;Set&#039;&#039;&#039;, we saw that &#039;&#039;f&#039;&#039; is a monic iff &amp;lt;math&amp;gt;\forall x,y : 1 \to A, f\circ x = f\circ y \implies x=y&amp;lt;/math&amp;gt;, where 1 is any singleton set. Can you find a set &#039;&#039;C&#039;&#039; such that &#039;&#039;f&#039;&#039; is epic iff &amp;lt;math&amp;gt;\forall p,q : B \to C, p\circ f = j\circ f \implies p=q&amp;lt;/math&amp;gt;?&lt;br /&gt;
# In &#039;&#039;&#039;Group&#039;&#039;&#039;, can you find an object playing a role similar to 1, &#039;&#039;ie&#039;&#039; a group &#039;&#039;G&#039;&#039; s.t. &#039;&#039;f&#039;&#039; is monic iff &amp;lt;math&amp;gt;\forall x,y : G \to A, f\circ x = f\circ y \implies x=y&amp;lt;/math&amp;gt;. (We saw that we cannot use the singleton group ({e},e,×) to do that...)&lt;br /&gt;
&lt;br /&gt;
===Functors===&lt;br /&gt;
&lt;br /&gt;
Informally, a functor is a map between two categories which somehow preserves the structure of categories (namely, composition).&lt;br /&gt;
&lt;br /&gt;
{{Definition |&lt;br /&gt;
A functor &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; from a category &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt; to a category &amp;lt;math&amp;gt;\mathcal{D}&amp;lt;/math&amp;gt;, noted &amp;lt;math&amp;gt;F \colon \mathcal{C} \to \mathcal{D}&amp;lt;/math&amp;gt;, is given by:&lt;br /&gt;
* a map which sends every object &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; of &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt; to an object &amp;lt;math&amp;gt;FA&amp;lt;/math&amp;gt; in &amp;lt;math&amp;gt;\mathcal{D}&amp;lt;/math&amp;gt;, and&lt;br /&gt;
* a map which sends every morphism &amp;lt;math&amp;gt;f \colon A \to B&amp;lt;/math&amp;gt; in &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt;, to a morphism &amp;lt;math&amp;gt;Ff&amp;lt;/math&amp;gt; in &amp;lt;math&amp;gt;\mathcal{D}[FA, FB]&amp;lt;/math&amp;gt;,&lt;br /&gt;
such that:&lt;br /&gt;
* &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; preserves identities, i.e., &amp;lt;math&amp;gt;F(id_A) = id_{FA}&amp;lt;/math&amp;gt;, and&lt;br /&gt;
* &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; preserves composition: &amp;lt;math&amp;gt;F(f \circ g) = F(f) \circ F(g)&amp;lt;/math&amp;gt;.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Exercice&amp;lt;/u&amp;gt;&lt;br /&gt;
# Take a functor &amp;lt;math&amp;gt;F \colon \mathcal{C} \to \mathcal{D}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;f, g, h&amp;lt;/math&amp;gt; three morphisms in &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt;, and &amp;lt;math&amp;gt;f&#039; = Ff&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;g&#039; = Fg&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;h&#039; = Fh&amp;lt;/math&amp;gt;. When &amp;lt;math&amp;gt;h&#039; = f&#039; \circ g&#039;&amp;lt;/math&amp;gt;, can we say something interesting about &amp;lt;math&amp;gt;f&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;g&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;h&amp;lt;/math&amp;gt;?&lt;br /&gt;
# Do functors preserve monomorphisms? Do functors preserve epimorphisms?&lt;br /&gt;
# Let &#039;&#039;F&#039;&#039; be a functor and &#039;&#039;F(f) = g&#039;&#039;, if &#039;&#039;g&#039;&#039; is a mono (resp. epi), is &#039;&#039;f&#039;&#039; a mono (resp. epi)?&lt;br /&gt;
If not, try to find some simple and natural condition on the functor to make that true.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Answer&amp;lt;/u&amp;gt;&lt;br /&gt;
# No, since &amp;lt;math&amp;gt;f&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;g&amp;lt;/math&amp;gt; may not even compose! This is the case when &amp;lt;math&amp;gt;f&amp;lt;/math&amp;gt; has type &amp;lt;math&amp;gt;A \to B&amp;lt;/math&amp;gt;, and &amp;lt;math&amp;gt;g \colon C \to D&amp;lt;/math&amp;gt;, with &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; collapsing &amp;lt;math&amp;gt;D&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; (i.e., &amp;lt;math&amp;gt;FA = FD&amp;lt;/math&amp;gt;).&lt;br /&gt;
# Functors in general do not preserve mono- nor epimorphisms. We build a counter-example for monomorphisms. Let &amp;lt;math&amp;gt;\mathbf{2}&amp;lt;/math&amp;gt; be the category with two objects &amp;lt;math&amp;gt;\star&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\bullet&amp;lt;/math&amp;gt;, and exactly one morphism &amp;lt;math&amp;gt;m \colon \star \to \bullet&amp;lt;/math&amp;gt;. This is a preorder, so &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; is monic. Now take &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt; with two objects &amp;lt;math&amp;gt;\star&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\bullet&amp;lt;/math&amp;gt;, exactly one morphism &amp;lt;math&amp;gt;m \colon \star \to \bullet&amp;lt;/math&amp;gt;, and one extra morphism &amp;lt;math&amp;gt;n \colon \star \to \star&amp;lt;/math&amp;gt;, different from the identity. Because of &amp;lt;math&amp;gt;n \neq id_\star&amp;lt;/math&amp;gt;, yet &amp;lt;math&amp;gt;m \circ n = m \circ id&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; is not monic in &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt;. The functor which sends &amp;lt;math&amp;gt;\star&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;\star&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;\bullet&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;\bullet&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; in &amp;lt;math&amp;gt;\mathbf{2}&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; in &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt;, does not preserve monomorphisms.&lt;br /&gt;
# In general, the answer is (again) no. For monos, take for example the functor &amp;lt;math&amp;gt;\mathcal{C} \to \mathbf{2}&amp;lt;/math&amp;gt; which sends &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; to the identity. Yet, when &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; is &#039;&#039;faithful&#039;&#039;, then &amp;lt;math&amp;gt;f&amp;lt;/math&amp;gt; is monic (or epic).&lt;br /&gt;
&lt;br /&gt;
{{Definition |&lt;br /&gt;
A functor &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; is faithful when, for any two morphisms &amp;lt;math&amp;gt;f, g&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;Ff = Fg&amp;lt;/math&amp;gt; implies &amp;lt;math&amp;gt;f=g&amp;lt;/math&amp;gt; (&amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; is injective on morphisms).&lt;br /&gt;
}}&lt;br /&gt;
{{Definition |&lt;br /&gt;
A functor &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; is full when, for any two objects &amp;lt;math&amp;gt;A, B&amp;lt;/math&amp;gt;, if &amp;lt;math&amp;gt;g&amp;lt;/math&amp;gt; is a morphism &amp;lt;math&amp;gt;FA \to FB&amp;lt;/math&amp;gt;, then there exists &amp;lt;math&amp;gt;f \colon A \to B&amp;lt;/math&amp;gt; with &amp;lt;math&amp;gt;Ff = g&amp;lt;/math&amp;gt; (&amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; is surjective on morphisms).&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Exercice&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Find an &amp;quot;interesting&amp;quot; functor from &#039;&#039;&#039;Set&#039;&#039;&#039; to &#039;&#039;&#039;Group&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Answer&amp;lt;/u&amp;gt;&lt;br /&gt;
Let &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; be the functor which sends:&lt;br /&gt;
* every set &amp;lt;math&amp;gt;X&amp;lt;/math&amp;gt; to the free group generated by &amp;lt;math&amp;gt;X&amp;lt;/math&amp;gt;, and&lt;br /&gt;
* every function &amp;lt;math&amp;gt;f \colon X \to Y&amp;lt;/math&amp;gt; to a group morphism defined by: &amp;lt;math&amp;gt;Ff(x_1^{\alpha_1}\times\dots\times x_k^{\alpha_k})=f(x_1)^{\alpha_1} \times \dots \times f(x_k)^{\alpha_k}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Exercice&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt; is a locally small category and &#039;&#039;A&#039;&#039; one of its objects, let &amp;lt;math&amp;gt;Y_A : X \mapsto \mathcal{C}[X,A]&amp;lt;/math&amp;gt;. Show that this operation from objects of &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt; to sets can be extended into a contravariant functor &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt; to &#039;&#039;&#039;Set&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Answer&amp;lt;/u&amp;gt;&lt;br /&gt;
Let &amp;lt;math&amp;gt;f\colon X \to Y&amp;lt;/math&amp;gt; be a morphism in &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt;, then &amp;lt;math&amp;gt;Y_A(f)&amp;lt;/math&amp;gt; is expected to be a function from the set &amp;lt;math&amp;gt;\mathcal{C}[Y, A]&amp;lt;/math&amp;gt; to the set &amp;lt;math&amp;gt;\mathcal{C}[X, A]&amp;lt;/math&amp;gt;. We can take, for any morphism &amp;lt;math&amp;gt;m \in \mathcal{C}[Y,A]&amp;lt;/math&amp;gt;: &amp;lt;math&amp;gt;Y_A(f)(m) = m \circ f&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
This extends &amp;lt;math&amp;gt;Y_A&amp;lt;/math&amp;gt; to a contravariant functor, since &amp;lt;math&amp;gt;Y_A(id_X) = id_{\mathcal{C}[X, A]}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;Y_A(f \circ g)(m) = m \circ (f \circ g) = (m \circ f) \circ g = (Y_A(g) \circ Y_A(f))(m)&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===Natural Transformations===&lt;br /&gt;
&lt;br /&gt;
{{Definition |&lt;br /&gt;
Let &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;G&amp;lt;/math&amp;gt; be two functors &amp;lt;math&amp;gt;\mathcal{C} \to \mathcal{D}&amp;lt;/math&amp;gt;. A natural transformation &amp;lt;math&amp;gt;\alpha&amp;lt;/math&amp;gt; from &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;G&amp;lt;/math&amp;gt; is given by:&lt;br /&gt;
* a morphism &amp;lt;math&amp;gt;\alpha_A \colon FA \to GA&amp;lt;/math&amp;gt; in &amp;lt;math&amp;gt;\mathcal{D}&amp;lt;/math&amp;gt; for every object &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; in &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt;,&lt;br /&gt;
* such that, for any morphism &amp;lt;math&amp;gt;f \colon A \to B&amp;lt;/math&amp;gt;, we have &amp;lt;math&amp;gt;Gf \circ \alpha_A = \alpha_B \circ Ff&amp;lt;/math&amp;gt;.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Exercice&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If &amp;lt;math&amp;gt;P(X)&amp;lt;/math&amp;gt; is the set of permutation of a (finite) set &#039;&#039;X&#039;&#039;; and &amp;lt;math&amp;gt;L(X)&amp;lt;/math&amp;gt; the set of its linear orderings, we have &amp;lt;math&amp;gt;\#(L(X)) = \#(L(X)) = n!&amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;n = \#(X)&amp;lt;/math&amp;gt;. Thus, there is a bijection (iso in &#039;&#039;&#039;Set&#039;&#039;&#039;) between &#039;&#039;P(X)&#039;&#039; and &#039;&#039;L(X)&#039;&#039;.&lt;br /&gt;
# Show that we can extend &#039;&#039;P&#039;&#039; and &#039;&#039;L&#039;&#039; to functors from &#039;&#039;&#039;B&#039;&#039;&#039; to &#039;&#039;&#039;Set&#039;&#039;&#039;, where &#039;&#039;&#039;B&#039;&#039;&#039; is the category of finite sets and bijections,&lt;br /&gt;
# Show that there can be no natural transformation from &#039;&#039;P&#039;&#039; to &#039;&#039;L&#039;&#039;,&lt;br /&gt;
# Conclude that there is no natural isomorphism between &#039;&#039;P&#039;&#039; and &#039;&#039;L&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
==About Limits and colimits==&lt;br /&gt;
&lt;br /&gt;
One of the main thrusts of category theory is to define concepts by&lt;br /&gt;
their properties rather than by explicit construction. In general this&lt;br /&gt;
is just called abstraction, but in good cases, concepts are&lt;br /&gt;
&#039;&#039;defined&#039;&#039; by their properties, at least canonically if not uniquely.&lt;br /&gt;
&lt;br /&gt;
The chief example of this is binary products in &#039;&#039;&#039;Set&#039;&#039;&#039;.  The&lt;br /&gt;
product &amp;lt;math&amp;gt;A \times B&amp;lt;/math&amp;gt; of two sets &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; and&lt;br /&gt;
&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt; is generally thought of as the set of pairs &amp;lt;math&amp;gt; (x,&lt;br /&gt;
y) &amp;lt;/math&amp;gt; with &amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;y \in B&amp;lt;/math&amp;gt;.  But&lt;br /&gt;
strictly speaking, or rather set-theoretically speaking, one has to&lt;br /&gt;
construct it by cautious use of the axioms of Zermelo-Fraenkel set&lt;br /&gt;
theory.&lt;br /&gt;
&lt;br /&gt;
Instead, in any category &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt;, for any objects&lt;br /&gt;
&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt; categorists put: &lt;br /&gt;
&lt;br /&gt;
{{Definition | A&lt;br /&gt;
&#039;&#039;product&#039;&#039; of &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt; is an object &amp;lt;math&amp;gt;C&amp;lt;/math&amp;gt;&lt;br /&gt;
with arrows&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;A \xleftarrow{\pi_1} C \xrightarrow{\pi_2} B&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
such that for any object &amp;lt;math&amp;gt;D&amp;lt;/math&amp;gt; and arrows&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;A \xleftarrow{f} D \xrightarrow{g} B&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
there exists a unique arrow &amp;lt;math&amp;gt;h&amp;lt;/math&amp;gt; making the diagram&lt;br /&gt;
[[Image:prod.png|center|Universal property of product]]&lt;br /&gt;
commute, i.e., &amp;lt;math&amp;gt;\pi_1 \circ h = f&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\pi_2 \circ h = g&amp;lt;/math&amp;gt;.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
The standard constructions in &#039;&#039;&#039;Set&#039;&#039;&#039; all have this property, and&lt;br /&gt;
all the non-standard ones you can think of also do, e.g., the set of&lt;br /&gt;
pairs &amp;lt;math&amp;gt; (\emptyset, x, y) &amp;lt;/math&amp;gt; with &amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;y&lt;br /&gt;
\in B&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Conversely, any set with this property is as good as any other&lt;br /&gt;
construction of &amp;lt;math&amp;gt;A \times B&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Products are determined &#039;&#039;canonically&#039;&#039; by this property&lt;br /&gt;
property. We will give a more precise meaning to this in later&lt;br /&gt;
lectures; for now we just state:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Lemma.&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For any other product &amp;lt;center&amp;gt;&amp;lt;math&amp;gt;A \xleftarrow{p} E \xrightarrow{q} B&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt; of &lt;br /&gt;
&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;, there is a unique isomorphism pair &amp;lt;math&amp;gt; (r, s) &amp;lt;/math&amp;gt; &lt;br /&gt;
such that the diagrams&lt;br /&gt;
&lt;br /&gt;
[[Image:prod-iso.png|upright=2]] and &lt;br /&gt;
[[Image:prod-iso-2.png|upright=2]]&lt;br /&gt;
&lt;br /&gt;
commute.&lt;br /&gt;
&lt;br /&gt;
==Adjunctions==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===First examples and definition===&lt;br /&gt;
&lt;br /&gt;
====So-called &#039;&#039;free&#039;&#039; constructions in algebra: monoid, group, etc====&lt;br /&gt;
====Their universal property, the underlying functor====&lt;br /&gt;
====The isomorphism between hom-sets====&lt;br /&gt;
====Its naturality====&lt;br /&gt;
====Definition====&lt;br /&gt;
====On to the definition with &amp;lt;math&amp;gt;\eta&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\epsilon&amp;lt;/math&amp;gt;====&lt;br /&gt;
&lt;br /&gt;
===The simplicity behind definitions:2-categories and adjunctions therein===&lt;br /&gt;
&lt;br /&gt;
====Definition of 2-categories====&lt;br /&gt;
====String diagrams====&lt;br /&gt;
====&#039;&#039;&#039;CAT&#039;&#039;&#039; as a 2-category====&lt;br /&gt;
====Adjunctions in a 2-category====&lt;br /&gt;
&lt;br /&gt;
===Other basic examples===&lt;br /&gt;
&lt;br /&gt;
====Discussion: any syntax defines the free something==== The issue of &lt;br /&gt;
variable binding.&lt;br /&gt;
====Adjunction between partial orders = Galois connection====&lt;br /&gt;
====&amp;lt;math&amp;gt;\times&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\Rightarrow&amp;lt;/math&amp;gt; in logic====&lt;br /&gt;
====Sets/graphs and categories====&lt;br /&gt;
&lt;br /&gt;
===Monads and resolutions===&lt;br /&gt;
&lt;br /&gt;
====Definition of a monad====&lt;br /&gt;
====String diagrams====&lt;br /&gt;
====Every adjunction yields a monad====&lt;br /&gt;
====Example of monoids again: resolutions====&lt;br /&gt;
&lt;br /&gt;
===Monadic adjunctions===&lt;br /&gt;
&lt;br /&gt;
====The category of resolutions====&lt;br /&gt;
====Eilenberg-Moore is terminal====&lt;br /&gt;
====Kleisli is initial====&lt;br /&gt;
====Monadic adjunctions====&lt;br /&gt;
====Algebraic theories====&lt;br /&gt;
&lt;br /&gt;
===Properties===&lt;br /&gt;
&lt;br /&gt;
====Composing adjunctions====&lt;br /&gt;
====Preservation of limits/colimits====&lt;br /&gt;
====Freyd&#039;s existence theorem====&lt;br /&gt;
====Beck&#039;s monadicity theorem====&lt;br /&gt;
&lt;br /&gt;
==Course Complements, references==&lt;br /&gt;
&lt;br /&gt;
One of the best books about category theory is&lt;br /&gt;
* Saunder MacLane, &#039;&#039;&amp;quot;Categories for the Working Mathematician&amp;quot;&#039;&#039;.&lt;br /&gt;
It is a little &amp;quot;dry&amp;quot;, in the sense that learning categories from it is not the easiest task on earth, but it still is one of the best references.&lt;br /&gt;
&lt;br /&gt;
I haven&#039;t really read it carefully, but here is [http://en.wikipedia.org/wiki/Category_theory what Wikipedia has to say on category theory].&lt;/div&gt;</summary>
		<author><name>DDuval</name></author>
	</entry>
	<entry>
		<id>http://os-vps418.infomaniak.ch:1250/mediawiki/index.php?title=Langage_et_concepts_cat%C3%A9goriques_pour_les_math%C3%A9matiques_et_l%E2%80%99informatique&amp;diff=3947</id>
		<title>Langage et concepts catégoriques pour les mathématiques et l’informatique</title>
		<link rel="alternate" type="text/html" href="http://os-vps418.infomaniak.ch:1250/mediawiki/index.php?title=Langage_et_concepts_cat%C3%A9goriques_pour_les_math%C3%A9matiques_et_l%E2%80%99informatique&amp;diff=3947"/>
		<updated>2009-03-11T13:06:40Z</updated>

		<summary type="html">&lt;p&gt;DDuval : /* Adjunctions */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This is a wiki for a course at the MSTII &amp;quot;École doctorale&amp;quot; of Grenoble.&lt;br /&gt;
&lt;br /&gt;
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...&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===News===&lt;br /&gt;
&lt;br /&gt;
Courses are on wednesdays morning, 9&#039;00 to 12&#039;00 in room F218 at the &amp;quot;UFR IMAG&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
* first course on the 25th of February: categories, functors, natural transformations.&lt;br /&gt;
* March 4. : monads, adjunctions.&lt;br /&gt;
* March 11. : limits and colimits.&lt;br /&gt;
&lt;br /&gt;
==Basic Concepts==&lt;br /&gt;
&lt;br /&gt;
===Categories===&lt;br /&gt;
&lt;br /&gt;
{{Definition |&lt;br /&gt;
A concrete category is given by:&lt;br /&gt;
* a collection of sets &#039;&#039;with structure&#039;&#039;,&lt;br /&gt;
* for any pair of such sets, a set of &#039;&#039;morphisms&#039;&#039; preserving the structure.&lt;br /&gt;
Morphisms should compose, and the identity should be a morphism.}}&lt;br /&gt;
&lt;br /&gt;
This definition is a little informal, but here are some examples:&lt;br /&gt;
* &#039;&#039;&#039;Grp&#039;&#039;&#039;: groups and group morphisms&lt;br /&gt;
* &#039;&#039;&#039;Top&#039;&#039;&#039;: topological spaces and continuous functions&lt;br /&gt;
* &#039;&#039;&#039;Ring&#039;&#039;&#039;: rings and rings morphisms&lt;br /&gt;
* &#039;&#039;&#039;Vect&#039;&#039;&#039;: vectors spaces and linear maps&lt;br /&gt;
* &#039;&#039;&#039;CPO&#039;&#039;&#039;: CPOs and continuous functions&lt;br /&gt;
* ...&lt;br /&gt;
* &#039;&#039;&#039;Set&#039;&#039;&#039;: sets and functions (&#039;&#039;&#039;ie&#039;&#039;&#039; sets with no structures, and arbitrary functions)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Generalizing the definition, we obtain the official definition of category:&lt;br /&gt;
&lt;br /&gt;
{{Definition |&lt;br /&gt;
A category &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt; is given by:&lt;br /&gt;
* a collection &amp;lt;math&amp;gt;\mathcal{C}_o&amp;lt;/math&amp;gt; of &#039;&#039;objects&#039;&#039;,  (notation: &amp;lt;math&amp;gt;A,B,C,X,Y,...&amp;lt;/math&amp;gt;)&lt;br /&gt;
* for each pair &amp;lt;math&amp;gt;A,B&amp;lt;/math&amp;gt; of objects, a collection &amp;lt;math&amp;gt;\mathcal{C}[A,B]&amp;lt;/math&amp;gt; of &#039;&#039;morphisms from &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&#039;&#039;,  (notation &amp;lt;math&amp;gt; f : A\to B&amp;lt;/math&amp;gt;)&lt;br /&gt;
* for any object &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;, a special morphism &amp;lt;math&amp;gt;i_A : A\to A&amp;lt;/math&amp;gt;&lt;br /&gt;
* for all objects &amp;lt;math&amp;gt;A,B,C&amp;lt;/math&amp;gt;, a composition &amp;lt;math&amp;gt;\circ : \mathcal{C}[B,C] \times \mathcal{C}[A,B] \to \mathcal{C}[A,C]&amp;lt;/math&amp;gt;,&lt;br /&gt;
such that:&lt;br /&gt;
* &amp;lt;math&amp;gt;f \in \mathcal{C}[A,B] \implies f\circ i_A = i_B\circ f = f&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;f\circ(g\circ h) = (f\circ g)\circ h&amp;lt;/math&amp;gt; whenever it makes sense.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
All concrete categories are categories, and here are some examples that are not obviously concrete:&lt;br /&gt;
* &#039;&#039;&#039;Graph&#039;&#039;&#039;: graphs and graph morphisms&lt;br /&gt;
* &#039;&#039;&#039;Rel&#039;&#039;&#039;: sets and relations&lt;br /&gt;
* &#039;&#039;&#039;Set×Set&#039;&#039;&#039;: pairs of sets, pairs of functions&lt;br /&gt;
* &#039;&#039;&#039;Set&amp;lt;math&amp;gt;^{op}&amp;lt;/math&amp;gt;&#039;&#039;&#039;: opposite of &#039;&#039;&#039;Set&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;P&#039;&#039;&#039;, whenever (&#039;&#039;&#039;P&#039;&#039;&#039;,&amp;lt;) is a preorder (at most one morphism between objects)&lt;br /&gt;
* &#039;&#039;&#039;M&#039;&#039;&#039;, whenever (&#039;&#039;&#039;M&#039;&#039;&#039;,e,×) is a monoid (a single object)&lt;br /&gt;
&lt;br /&gt;
We sometimes write &amp;lt;math&amp;gt;gf&amp;lt;/math&amp;gt; instead of &amp;lt;math&amp;gt;g \circ f&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
In a given category &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt;, there are analogues of the notions of injective and surjective functions in &#039;&#039;&#039;Set&#039;&#039;&#039;. We will see that on concrete categories, they are actually slightly more general. The idea of injectivity gives rise to &#039;&#039;monomorphisms&#039;&#039;, and surjectivity gives rise to &#039;&#039;epimorphisms&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
{{Definition |&lt;br /&gt;
&lt;br /&gt;
A morphism &amp;lt;math&amp;gt;f \colon A \to B&amp;lt;/math&amp;gt; is a &#039;&#039;monomorphism&#039;&#039; iff for all object &amp;lt;math&amp;gt;C&amp;lt;/math&amp;gt; and morphisms &amp;lt;math&amp;gt;g,h \colon C \to A&amp;lt;/math&amp;gt;, we have &amp;lt;math&amp;gt;fg = fh&amp;lt;/math&amp;gt; implies &amp;lt;math&amp;gt;g = h&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The morphism &amp;lt;math&amp;gt;f&amp;lt;/math&amp;gt; is an &#039;&#039;epimorphism&#039;&#039; when it is a monomorphism in &amp;lt;math&amp;gt;\mathcal{C}^{op}&amp;lt;/math&amp;gt;. Explicitly, when for all object &amp;lt;math&amp;gt;C&amp;lt;/math&amp;gt; and morphisms &amp;lt;math&amp;gt;g,h \colon B \to C&amp;lt;/math&amp;gt;, we have &amp;lt;math&amp;gt;gf = hf&amp;lt;/math&amp;gt; implies &amp;lt;math&amp;gt;g = h&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
  isomorphism&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Exercice&amp;lt;/u&amp;gt;&lt;br /&gt;
# Prove that in &#039;&#039;&#039;Set&#039;&#039;&#039;, epic is equivalent to surjective and monic is equivalent to injective.&lt;br /&gt;
# Prove the same thing in &#039;&#039;&#039;Ab&#039;&#039;&#039;, the category of commutative groups. (One thing is not obvious.)&lt;br /&gt;
# Prove the same thing in &#039;&#039;&#039;Grp&#039;&#039;&#039;, the category of (non necessarily commutative) groups. (One thing is not obvious at all.)&lt;br /&gt;
# Prove that &amp;lt;math&amp;gt;i : \mathbf{Z} \to \mathbf{Q}&amp;lt;/math&amp;gt; is an epimorphism in the category of rings with multiplicative neutral. (Note that it is not surjective.)&lt;br /&gt;
# In &#039;&#039;&#039;Set&#039;&#039;&#039;, we saw that &#039;&#039;f&#039;&#039; is a monic iff &amp;lt;math&amp;gt;\forall x,y : 1 \to A, f\circ x = f\circ y \implies x=y&amp;lt;/math&amp;gt;, where 1 is any singleton set. Can you find a set &#039;&#039;C&#039;&#039; such that &#039;&#039;f&#039;&#039; is epic iff &amp;lt;math&amp;gt;\forall p,q : B \to C, p\circ f = j\circ f \implies p=q&amp;lt;/math&amp;gt;?&lt;br /&gt;
# In &#039;&#039;&#039;Group&#039;&#039;&#039;, can you find an object playing a role similar to 1, &#039;&#039;ie&#039;&#039; a group &#039;&#039;G&#039;&#039; s.t. &#039;&#039;f&#039;&#039; is monic iff &amp;lt;math&amp;gt;\forall x,y : G \to A, f\circ x = f\circ y \implies x=y&amp;lt;/math&amp;gt;. (We saw that we cannot use the singleton group ({e},e,×) to do that...)&lt;br /&gt;
&lt;br /&gt;
===Functors===&lt;br /&gt;
&lt;br /&gt;
Informally, a functor is a map between two categories which somehow preserves the structure of categories (namely, composition).&lt;br /&gt;
&lt;br /&gt;
{{Definition |&lt;br /&gt;
A functor &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; from a category &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt; to a category &amp;lt;math&amp;gt;\mathcal{D}&amp;lt;/math&amp;gt;, noted &amp;lt;math&amp;gt;F \colon \mathcal{C} \to \mathcal{D}&amp;lt;/math&amp;gt;, is given by:&lt;br /&gt;
* a map which sends every object &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; of &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt; to an object &amp;lt;math&amp;gt;FA&amp;lt;/math&amp;gt; in &amp;lt;math&amp;gt;\mathcal{D}&amp;lt;/math&amp;gt;, and&lt;br /&gt;
* a map which sends every morphism &amp;lt;math&amp;gt;f \colon A \to B&amp;lt;/math&amp;gt; in &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt;, to a morphism &amp;lt;math&amp;gt;Ff&amp;lt;/math&amp;gt; in &amp;lt;math&amp;gt;\mathcal{D}[FA, FB]&amp;lt;/math&amp;gt;,&lt;br /&gt;
such that:&lt;br /&gt;
* &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; preserves identities, i.e., &amp;lt;math&amp;gt;F(id_A) = id_{FA}&amp;lt;/math&amp;gt;, and&lt;br /&gt;
* &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; preserves composition: &amp;lt;math&amp;gt;F(f \circ g) = F(f) \circ F(g)&amp;lt;/math&amp;gt;.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Exercice&amp;lt;/u&amp;gt;&lt;br /&gt;
# Take a functor &amp;lt;math&amp;gt;F \colon \mathcal{C} \to \mathcal{D}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;f, g, h&amp;lt;/math&amp;gt; three morphisms in &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt;, and &amp;lt;math&amp;gt;f&#039; = Ff&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;g&#039; = Fg&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;h&#039; = Fh&amp;lt;/math&amp;gt;. When &amp;lt;math&amp;gt;h&#039; = f&#039; \circ g&#039;&amp;lt;/math&amp;gt;, can we say something interesting about &amp;lt;math&amp;gt;f&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;g&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;h&amp;lt;/math&amp;gt;?&lt;br /&gt;
# Do functors preserve monomorphisms? Do functors preserve epimorphisms?&lt;br /&gt;
# Let &#039;&#039;F&#039;&#039; be a functor and &#039;&#039;F(f) = g&#039;&#039;, if &#039;&#039;g&#039;&#039; is a mono (resp. epi), is &#039;&#039;f&#039;&#039; a mono (resp. epi)?&lt;br /&gt;
If not, try to find some simple and natural condition on the functor to make that true.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Answer&amp;lt;/u&amp;gt;&lt;br /&gt;
# No, since &amp;lt;math&amp;gt;f&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;g&amp;lt;/math&amp;gt; may not even compose! This is the case when &amp;lt;math&amp;gt;f&amp;lt;/math&amp;gt; has type &amp;lt;math&amp;gt;A \to B&amp;lt;/math&amp;gt;, and &amp;lt;math&amp;gt;g \colon C \to D&amp;lt;/math&amp;gt;, with &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; collapsing &amp;lt;math&amp;gt;D&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; (i.e., &amp;lt;math&amp;gt;FA = FD&amp;lt;/math&amp;gt;).&lt;br /&gt;
# Functors in general do not preserve mono- nor epimorphisms. We build a counter-example for monomorphisms. Let &amp;lt;math&amp;gt;\mathbf{2}&amp;lt;/math&amp;gt; be the category with two objects &amp;lt;math&amp;gt;\star&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\bullet&amp;lt;/math&amp;gt;, and exactly one morphism &amp;lt;math&amp;gt;m \colon \star \to \bullet&amp;lt;/math&amp;gt;. This is a preorder, so &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; is monic. Now take &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt; with two objects &amp;lt;math&amp;gt;\star&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\bullet&amp;lt;/math&amp;gt;, exactly one morphism &amp;lt;math&amp;gt;m \colon \star \to \bullet&amp;lt;/math&amp;gt;, and one extra morphism &amp;lt;math&amp;gt;n \colon \star \to \star&amp;lt;/math&amp;gt;, different from the identity. Because of &amp;lt;math&amp;gt;n \neq id_\star&amp;lt;/math&amp;gt;, yet &amp;lt;math&amp;gt;m \circ n = m \circ id&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; is not monic in &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt;. The functor which sends &amp;lt;math&amp;gt;\star&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;\star&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;\bullet&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;\bullet&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; in &amp;lt;math&amp;gt;\mathbf{2}&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; in &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt;, does not preserve monomorphisms.&lt;br /&gt;
# In general, the answer is (again) no. For monos, take for example the functor &amp;lt;math&amp;gt;\mathcal{C} \to \mathbf{2}&amp;lt;/math&amp;gt; which sends &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; to the identity. Yet, when &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; is &#039;&#039;faithful&#039;&#039;, then &amp;lt;math&amp;gt;f&amp;lt;/math&amp;gt; is monic (or epic).&lt;br /&gt;
&lt;br /&gt;
{{Definition |&lt;br /&gt;
A functor &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; is faithful when, for any two morphisms &amp;lt;math&amp;gt;f, g&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;Ff = Fg&amp;lt;/math&amp;gt; implies &amp;lt;math&amp;gt;f=g&amp;lt;/math&amp;gt; (&amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; is injective on morphisms).&lt;br /&gt;
}}&lt;br /&gt;
{{Definition |&lt;br /&gt;
A functor &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; is full when, for any two objects &amp;lt;math&amp;gt;A, B&amp;lt;/math&amp;gt;, if &amp;lt;math&amp;gt;g&amp;lt;/math&amp;gt; is a morphism &amp;lt;math&amp;gt;FA \to FB&amp;lt;/math&amp;gt;, then there exists &amp;lt;math&amp;gt;f \colon A \to B&amp;lt;/math&amp;gt; with &amp;lt;math&amp;gt;Ff = g&amp;lt;/math&amp;gt; (&amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; is surjective on morphisms).&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Exercice&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Find an &amp;quot;interesting&amp;quot; functor from &#039;&#039;&#039;Set&#039;&#039;&#039; to &#039;&#039;&#039;Group&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Answer&amp;lt;/u&amp;gt;&lt;br /&gt;
Let &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; be the functor which sends:&lt;br /&gt;
* every set &amp;lt;math&amp;gt;X&amp;lt;/math&amp;gt; to the free group generated by &amp;lt;math&amp;gt;X&amp;lt;/math&amp;gt;, and&lt;br /&gt;
* every function &amp;lt;math&amp;gt;f \colon X \to Y&amp;lt;/math&amp;gt; to a group morphism defined by: &amp;lt;math&amp;gt;Ff(x_1^{\alpha_1}\times\dots\times x_k^{\alpha_k})=f(x_1)^{\alpha_1} \times \dots \times f(x_k)^{\alpha_k}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Exercice&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt; is a locally small category and &#039;&#039;A&#039;&#039; one of its objects, let &amp;lt;math&amp;gt;Y_A : X \mapsto \mathcal{C}[X,A]&amp;lt;/math&amp;gt;. Show that this operation from objects of &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt; to sets can be extended into a contravariant functor &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt; to &#039;&#039;&#039;Set&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Answer&amp;lt;/u&amp;gt;&lt;br /&gt;
Let &amp;lt;math&amp;gt;f\colon X \to Y&amp;lt;/math&amp;gt; be a morphism in &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt;, then &amp;lt;math&amp;gt;Y_A(f)&amp;lt;/math&amp;gt; is expected to be a function from the set &amp;lt;math&amp;gt;\mathcal{C}[Y, A]&amp;lt;/math&amp;gt; to the set &amp;lt;math&amp;gt;\mathcal{C}[X, A]&amp;lt;/math&amp;gt;. We can take, for any morphism &amp;lt;math&amp;gt;m \in \mathcal{C}[Y,A]&amp;lt;/math&amp;gt;: &amp;lt;math&amp;gt;Y_A(f)(m) = m \circ f&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
This extends &amp;lt;math&amp;gt;Y_A&amp;lt;/math&amp;gt; to a contravariant functor, since &amp;lt;math&amp;gt;Y_A(id_X) = id_{\mathcal{C}[X, A]}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;Y_A(f \circ g)(m) = m \circ (f \circ g) = (m \circ f) \circ g = (Y_A(g) \circ Y_A(f))(m)&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===Natural Transformations===&lt;br /&gt;
&lt;br /&gt;
{{Definition |&lt;br /&gt;
Let &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;G&amp;lt;/math&amp;gt; be two functors &amp;lt;math&amp;gt;\mathcal{C} \to \mathcal{D}&amp;lt;/math&amp;gt;. A natural transformation &amp;lt;math&amp;gt;\alpha&amp;lt;/math&amp;gt; from &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;G&amp;lt;/math&amp;gt; is given by:&lt;br /&gt;
* a morphism &amp;lt;math&amp;gt;\alpha_A \colon FA \to GA&amp;lt;/math&amp;gt; in &amp;lt;math&amp;gt;\mathcal{D}&amp;lt;/math&amp;gt; for every object &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; in &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt;,&lt;br /&gt;
* such that, for any morphism &amp;lt;math&amp;gt;f \colon A \to B&amp;lt;/math&amp;gt;, we have &amp;lt;math&amp;gt;Gf \circ \alpha_A = \alpha_B \circ Ff&amp;lt;/math&amp;gt;.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Exercice&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If &amp;lt;math&amp;gt;P(X)&amp;lt;/math&amp;gt; is the set of permutation of a (finite) set &#039;&#039;X&#039;&#039;; and &amp;lt;math&amp;gt;L(X)&amp;lt;/math&amp;gt; the set of its linear orderings, we have &amp;lt;math&amp;gt;\#(L(X)) = \#(L(X)) = n!&amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;n = \#(X)&amp;lt;/math&amp;gt;. Thus, there is a bijection (iso in &#039;&#039;&#039;Set&#039;&#039;&#039;) between &#039;&#039;P(X)&#039;&#039; and &#039;&#039;L(X)&#039;&#039;.&lt;br /&gt;
# Show that we can extend &#039;&#039;P&#039;&#039; and &#039;&#039;L&#039;&#039; to functors from &#039;&#039;&#039;B&#039;&#039;&#039; to &#039;&#039;&#039;Set&#039;&#039;&#039;, where &#039;&#039;&#039;B&#039;&#039;&#039; is the category of finite sets and bijections,&lt;br /&gt;
# Show that there can be no natural transformation from &#039;&#039;P&#039;&#039; to &#039;&#039;L&#039;&#039;,&lt;br /&gt;
# Conclude that there is no natural isomorphism between &#039;&#039;P&#039;&#039; and &#039;&#039;L&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
==About Limits and colimits==&lt;br /&gt;
&lt;br /&gt;
One of the main thrusts of category theory is to define concepts by&lt;br /&gt;
their properties rather than by explicit construction. In general this&lt;br /&gt;
is just called abstraction, but in good cases, concepts are&lt;br /&gt;
&#039;&#039;defined&#039;&#039; by their properties, at least canonically if not uniquely.&lt;br /&gt;
&lt;br /&gt;
The chief example of this is binary products in &#039;&#039;&#039;Set&#039;&#039;&#039;.  The&lt;br /&gt;
product &amp;lt;math&amp;gt;A \times B&amp;lt;/math&amp;gt; of two sets &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; and&lt;br /&gt;
&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt; is generally thought of as the set of pairs &amp;lt;math&amp;gt; (x,&lt;br /&gt;
y) &amp;lt;/math&amp;gt; with &amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;y \in B&amp;lt;/math&amp;gt;.  But&lt;br /&gt;
strictly speaking, or rather set-theoretically speaking, one has to&lt;br /&gt;
construct it by cautious use of the axioms of Zermelo-Fraenkel set&lt;br /&gt;
theory.&lt;br /&gt;
&lt;br /&gt;
Instead, in any category &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt;, for any objects&lt;br /&gt;
&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt; categorists put: &lt;br /&gt;
&lt;br /&gt;
{{Definition | A&lt;br /&gt;
&#039;&#039;product&#039;&#039; of &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt; is an object &amp;lt;math&amp;gt;C&amp;lt;/math&amp;gt;&lt;br /&gt;
with arrows&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;A \xleftarrow{\pi_1} C \xrightarrow{\pi_2} B&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
such that for any object &amp;lt;math&amp;gt;D&amp;lt;/math&amp;gt; and arrows&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;A \xleftarrow{f} D \xrightarrow{g} B&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
there exists a unique arrow &amp;lt;math&amp;gt;h&amp;lt;/math&amp;gt; making the diagram&lt;br /&gt;
[[Image:prod.png|center|Universal property of product]]&lt;br /&gt;
commute, i.e., &amp;lt;math&amp;gt;\pi_1 \circ h = f&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\pi_2 \circ h = g&amp;lt;/math&amp;gt;.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
The standard constructions in &#039;&#039;&#039;Set&#039;&#039;&#039; all have this property, and&lt;br /&gt;
all the non-standard ones you can think of also do, e.g., the set of&lt;br /&gt;
pairs &amp;lt;math&amp;gt; (\emptyset, x, y) &amp;lt;/math&amp;gt; with &amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;y&lt;br /&gt;
\in B&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Conversely, any set with this property is as good as any other&lt;br /&gt;
construction of &amp;lt;math&amp;gt;A \times B&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Products are determined &#039;&#039;canonically&#039;&#039; by this property&lt;br /&gt;
property. We will give a more precise meaning to this in later&lt;br /&gt;
lectures; for now we just state:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Lemma.&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For any other product &amp;lt;center&amp;gt;&amp;lt;math&amp;gt;A \xleftarrow{p} E \xrightarrow{q} B&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt; of &lt;br /&gt;
&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;, there is a unique isomorphism pair &amp;lt;math&amp;gt; (r, s) &amp;lt;/math&amp;gt; &lt;br /&gt;
such that the diagrams&lt;br /&gt;
&lt;br /&gt;
[[Image:prod-iso.png|upright=2]] and &lt;br /&gt;
[[Image:prod-iso-2.png|upright=2]]&lt;br /&gt;
&lt;br /&gt;
commute.&lt;br /&gt;
&lt;br /&gt;
==Adjunctions==&lt;br /&gt;
&lt;br /&gt;
===About Limits and Colimits===&lt;br /&gt;
&lt;br /&gt;
One of the main thrusts of category theory is to define concepts by their properties rather than by explicit construction. In general this is just called abstraction, but in good cases, concepts are defined by their properties, at least canonically if not uniquely.&lt;br /&gt;
&lt;br /&gt;
The chief example of this is binary products in Set. The product A \times B of two sets A and B is generally thought of as the set of pairs (x,y) with x \in A and y \in B. But strictly speaking, or rather set-theoretically speaking, one has to construct it by cautious use of the axioms of Zermelo-Fraenkel set theory.&lt;br /&gt;
&lt;br /&gt;
Instead, in any category \mathcal{C}, for any objects A and B categorists put:&lt;br /&gt;
&lt;br /&gt;
Definition. A product of A and B is an object C with arrows&lt;br /&gt;
A \xleftarrow{\pi_1} C \xrightarrow{\pi_2} B&lt;br /&gt;
&lt;br /&gt;
such that for any object D and arrows&lt;br /&gt;
A \xleftarrow{f} D \xrightarrow{g} B&lt;br /&gt;
&lt;br /&gt;
there exists a unique arrow h making the diagram&lt;br /&gt;
Universal property of product&lt;br /&gt;
&lt;br /&gt;
commute, i.e., \pi_1 \circ h = f and \pi_2 \circ h = g.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The standard constructions in Set all have this property, and all the non-standard ones you can think of also do, e.g., the set of pairs (\emptyset, x, y) with x \in A and y \in B.&lt;br /&gt;
&lt;br /&gt;
Conversely, any set with this property is as good as any other construction of A \times B.&lt;br /&gt;
&lt;br /&gt;
Products are determined canonically by this property property. We will give a more precise meaning to this in later lectures; for now we just state:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Lemma.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For any other product&lt;br /&gt;
A \xleftarrow{p} E \xrightarrow{q} B&lt;br /&gt;
of&lt;br /&gt;
&lt;br /&gt;
A and B, there is a unique isomorphism pair (r,s) such that the diagrams&lt;br /&gt;
&lt;br /&gt;
upright=2 and upright=2&lt;br /&gt;
&lt;br /&gt;
commute.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===First examples and definition===&lt;br /&gt;
&lt;br /&gt;
====So-called &#039;&#039;free&#039;&#039; constructions in algebra: monoid, group, etc====&lt;br /&gt;
====Their universal property, the underlying functor====&lt;br /&gt;
====The isomorphism between hom-sets====&lt;br /&gt;
====Its naturality====&lt;br /&gt;
====Definition====&lt;br /&gt;
====On to the definition with &amp;lt;math&amp;gt;\eta&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\epsilon&amp;lt;/math&amp;gt;====&lt;br /&gt;
&lt;br /&gt;
===The simplicity behind definitions:2-categories and adjunctions therein===&lt;br /&gt;
&lt;br /&gt;
====Definition of 2-categories====&lt;br /&gt;
====String diagrams====&lt;br /&gt;
====&#039;&#039;&#039;CAT&#039;&#039;&#039; as a 2-category====&lt;br /&gt;
====Adjunctions in a 2-category====&lt;br /&gt;
&lt;br /&gt;
===Other basic examples===&lt;br /&gt;
&lt;br /&gt;
====Discussion: any syntax defines the free something==== The issue of &lt;br /&gt;
variable binding.&lt;br /&gt;
====Adjunction between partial orders = Galois connection====&lt;br /&gt;
====&amp;lt;math&amp;gt;\times&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\Rightarrow&amp;lt;/math&amp;gt; in logic====&lt;br /&gt;
====Sets/graphs and categories====&lt;br /&gt;
&lt;br /&gt;
===Monads and resolutions===&lt;br /&gt;
&lt;br /&gt;
====Definition of a monad====&lt;br /&gt;
====String diagrams====&lt;br /&gt;
====Every adjunction yields a monad====&lt;br /&gt;
====Example of monoids again: resolutions====&lt;br /&gt;
&lt;br /&gt;
===Monadic adjunctions===&lt;br /&gt;
&lt;br /&gt;
====The category of resolutions====&lt;br /&gt;
====Eilenberg-Moore is terminal====&lt;br /&gt;
====Kleisli is initial====&lt;br /&gt;
====Monadic adjunctions====&lt;br /&gt;
====Algebraic theories====&lt;br /&gt;
&lt;br /&gt;
===Properties===&lt;br /&gt;
&lt;br /&gt;
====Composing adjunctions====&lt;br /&gt;
====Preservation of limits/colimits====&lt;br /&gt;
====Freyd&#039;s existence theorem====&lt;br /&gt;
====Beck&#039;s monadicity theorem====&lt;br /&gt;
&lt;br /&gt;
==Course Complements, references==&lt;br /&gt;
&lt;br /&gt;
One of the best books about category theory is&lt;br /&gt;
* Saunder MacLane, &#039;&#039;&amp;quot;Categories for the Working Mathematician&amp;quot;&#039;&#039;.&lt;br /&gt;
It is a little &amp;quot;dry&amp;quot;, in the sense that learning categories from it is not the easiest task on earth, but it still is one of the best references.&lt;br /&gt;
&lt;br /&gt;
I haven&#039;t really read it carefully, but here is [http://en.wikipedia.org/wiki/Category_theory what Wikipedia has to say on category theory].&lt;/div&gt;</summary>
		<author><name>DDuval</name></author>
	</entry>
	<entry>
		<id>http://os-vps418.infomaniak.ch:1250/mediawiki/index.php?title=Langage_et_concepts_cat%C3%A9goriques_pour_les_math%C3%A9matiques_et_l%E2%80%99informatique&amp;diff=3946</id>
		<title>Langage et concepts catégoriques pour les mathématiques et l’informatique</title>
		<link rel="alternate" type="text/html" href="http://os-vps418.infomaniak.ch:1250/mediawiki/index.php?title=Langage_et_concepts_cat%C3%A9goriques_pour_les_math%C3%A9matiques_et_l%E2%80%99informatique&amp;diff=3946"/>
		<updated>2009-03-11T13:05:22Z</updated>

		<summary type="html">&lt;p&gt;DDuval : /* Limits and colimits */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This is a wiki for a course at the MSTII &amp;quot;École doctorale&amp;quot; of Grenoble.&lt;br /&gt;
&lt;br /&gt;
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...&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===News===&lt;br /&gt;
&lt;br /&gt;
Courses are on wednesdays morning, 9&#039;00 to 12&#039;00 in room F218 at the &amp;quot;UFR IMAG&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
* first course on the 25th of February: categories, functors, natural transformations.&lt;br /&gt;
* March 4. : monads, adjunctions.&lt;br /&gt;
* March 11. : limits and colimits.&lt;br /&gt;
&lt;br /&gt;
==Basic Concepts==&lt;br /&gt;
&lt;br /&gt;
===Categories===&lt;br /&gt;
&lt;br /&gt;
{{Definition |&lt;br /&gt;
A concrete category is given by:&lt;br /&gt;
* a collection of sets &#039;&#039;with structure&#039;&#039;,&lt;br /&gt;
* for any pair of such sets, a set of &#039;&#039;morphisms&#039;&#039; preserving the structure.&lt;br /&gt;
Morphisms should compose, and the identity should be a morphism.}}&lt;br /&gt;
&lt;br /&gt;
This definition is a little informal, but here are some examples:&lt;br /&gt;
* &#039;&#039;&#039;Grp&#039;&#039;&#039;: groups and group morphisms&lt;br /&gt;
* &#039;&#039;&#039;Top&#039;&#039;&#039;: topological spaces and continuous functions&lt;br /&gt;
* &#039;&#039;&#039;Ring&#039;&#039;&#039;: rings and rings morphisms&lt;br /&gt;
* &#039;&#039;&#039;Vect&#039;&#039;&#039;: vectors spaces and linear maps&lt;br /&gt;
* &#039;&#039;&#039;CPO&#039;&#039;&#039;: CPOs and continuous functions&lt;br /&gt;
* ...&lt;br /&gt;
* &#039;&#039;&#039;Set&#039;&#039;&#039;: sets and functions (&#039;&#039;&#039;ie&#039;&#039;&#039; sets with no structures, and arbitrary functions)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Generalizing the definition, we obtain the official definition of category:&lt;br /&gt;
&lt;br /&gt;
{{Definition |&lt;br /&gt;
A category &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt; is given by:&lt;br /&gt;
* a collection &amp;lt;math&amp;gt;\mathcal{C}_o&amp;lt;/math&amp;gt; of &#039;&#039;objects&#039;&#039;,  (notation: &amp;lt;math&amp;gt;A,B,C,X,Y,...&amp;lt;/math&amp;gt;)&lt;br /&gt;
* for each pair &amp;lt;math&amp;gt;A,B&amp;lt;/math&amp;gt; of objects, a collection &amp;lt;math&amp;gt;\mathcal{C}[A,B]&amp;lt;/math&amp;gt; of &#039;&#039;morphisms from &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&#039;&#039;,  (notation &amp;lt;math&amp;gt; f : A\to B&amp;lt;/math&amp;gt;)&lt;br /&gt;
* for any object &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;, a special morphism &amp;lt;math&amp;gt;i_A : A\to A&amp;lt;/math&amp;gt;&lt;br /&gt;
* for all objects &amp;lt;math&amp;gt;A,B,C&amp;lt;/math&amp;gt;, a composition &amp;lt;math&amp;gt;\circ : \mathcal{C}[B,C] \times \mathcal{C}[A,B] \to \mathcal{C}[A,C]&amp;lt;/math&amp;gt;,&lt;br /&gt;
such that:&lt;br /&gt;
* &amp;lt;math&amp;gt;f \in \mathcal{C}[A,B] \implies f\circ i_A = i_B\circ f = f&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;f\circ(g\circ h) = (f\circ g)\circ h&amp;lt;/math&amp;gt; whenever it makes sense.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
All concrete categories are categories, and here are some examples that are not obviously concrete:&lt;br /&gt;
* &#039;&#039;&#039;Graph&#039;&#039;&#039;: graphs and graph morphisms&lt;br /&gt;
* &#039;&#039;&#039;Rel&#039;&#039;&#039;: sets and relations&lt;br /&gt;
* &#039;&#039;&#039;Set×Set&#039;&#039;&#039;: pairs of sets, pairs of functions&lt;br /&gt;
* &#039;&#039;&#039;Set&amp;lt;math&amp;gt;^{op}&amp;lt;/math&amp;gt;&#039;&#039;&#039;: opposite of &#039;&#039;&#039;Set&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;P&#039;&#039;&#039;, whenever (&#039;&#039;&#039;P&#039;&#039;&#039;,&amp;lt;) is a preorder (at most one morphism between objects)&lt;br /&gt;
* &#039;&#039;&#039;M&#039;&#039;&#039;, whenever (&#039;&#039;&#039;M&#039;&#039;&#039;,e,×) is a monoid (a single object)&lt;br /&gt;
&lt;br /&gt;
We sometimes write &amp;lt;math&amp;gt;gf&amp;lt;/math&amp;gt; instead of &amp;lt;math&amp;gt;g \circ f&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
In a given category &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt;, there are analogues of the notions of injective and surjective functions in &#039;&#039;&#039;Set&#039;&#039;&#039;. We will see that on concrete categories, they are actually slightly more general. The idea of injectivity gives rise to &#039;&#039;monomorphisms&#039;&#039;, and surjectivity gives rise to &#039;&#039;epimorphisms&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
{{Definition |&lt;br /&gt;
&lt;br /&gt;
A morphism &amp;lt;math&amp;gt;f \colon A \to B&amp;lt;/math&amp;gt; is a &#039;&#039;monomorphism&#039;&#039; iff for all object &amp;lt;math&amp;gt;C&amp;lt;/math&amp;gt; and morphisms &amp;lt;math&amp;gt;g,h \colon C \to A&amp;lt;/math&amp;gt;, we have &amp;lt;math&amp;gt;fg = fh&amp;lt;/math&amp;gt; implies &amp;lt;math&amp;gt;g = h&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The morphism &amp;lt;math&amp;gt;f&amp;lt;/math&amp;gt; is an &#039;&#039;epimorphism&#039;&#039; when it is a monomorphism in &amp;lt;math&amp;gt;\mathcal{C}^{op}&amp;lt;/math&amp;gt;. Explicitly, when for all object &amp;lt;math&amp;gt;C&amp;lt;/math&amp;gt; and morphisms &amp;lt;math&amp;gt;g,h \colon B \to C&amp;lt;/math&amp;gt;, we have &amp;lt;math&amp;gt;gf = hf&amp;lt;/math&amp;gt; implies &amp;lt;math&amp;gt;g = h&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
  isomorphism&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Exercice&amp;lt;/u&amp;gt;&lt;br /&gt;
# Prove that in &#039;&#039;&#039;Set&#039;&#039;&#039;, epic is equivalent to surjective and monic is equivalent to injective.&lt;br /&gt;
# Prove the same thing in &#039;&#039;&#039;Ab&#039;&#039;&#039;, the category of commutative groups. (One thing is not obvious.)&lt;br /&gt;
# Prove the same thing in &#039;&#039;&#039;Grp&#039;&#039;&#039;, the category of (non necessarily commutative) groups. (One thing is not obvious at all.)&lt;br /&gt;
# Prove that &amp;lt;math&amp;gt;i : \mathbf{Z} \to \mathbf{Q}&amp;lt;/math&amp;gt; is an epimorphism in the category of rings with multiplicative neutral. (Note that it is not surjective.)&lt;br /&gt;
# In &#039;&#039;&#039;Set&#039;&#039;&#039;, we saw that &#039;&#039;f&#039;&#039; is a monic iff &amp;lt;math&amp;gt;\forall x,y : 1 \to A, f\circ x = f\circ y \implies x=y&amp;lt;/math&amp;gt;, where 1 is any singleton set. Can you find a set &#039;&#039;C&#039;&#039; such that &#039;&#039;f&#039;&#039; is epic iff &amp;lt;math&amp;gt;\forall p,q : B \to C, p\circ f = j\circ f \implies p=q&amp;lt;/math&amp;gt;?&lt;br /&gt;
# In &#039;&#039;&#039;Group&#039;&#039;&#039;, can you find an object playing a role similar to 1, &#039;&#039;ie&#039;&#039; a group &#039;&#039;G&#039;&#039; s.t. &#039;&#039;f&#039;&#039; is monic iff &amp;lt;math&amp;gt;\forall x,y : G \to A, f\circ x = f\circ y \implies x=y&amp;lt;/math&amp;gt;. (We saw that we cannot use the singleton group ({e},e,×) to do that...)&lt;br /&gt;
&lt;br /&gt;
===Functors===&lt;br /&gt;
&lt;br /&gt;
Informally, a functor is a map between two categories which somehow preserves the structure of categories (namely, composition).&lt;br /&gt;
&lt;br /&gt;
{{Definition |&lt;br /&gt;
A functor &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; from a category &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt; to a category &amp;lt;math&amp;gt;\mathcal{D}&amp;lt;/math&amp;gt;, noted &amp;lt;math&amp;gt;F \colon \mathcal{C} \to \mathcal{D}&amp;lt;/math&amp;gt;, is given by:&lt;br /&gt;
* a map which sends every object &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; of &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt; to an object &amp;lt;math&amp;gt;FA&amp;lt;/math&amp;gt; in &amp;lt;math&amp;gt;\mathcal{D}&amp;lt;/math&amp;gt;, and&lt;br /&gt;
* a map which sends every morphism &amp;lt;math&amp;gt;f \colon A \to B&amp;lt;/math&amp;gt; in &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt;, to a morphism &amp;lt;math&amp;gt;Ff&amp;lt;/math&amp;gt; in &amp;lt;math&amp;gt;\mathcal{D}[FA, FB]&amp;lt;/math&amp;gt;,&lt;br /&gt;
such that:&lt;br /&gt;
* &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; preserves identities, i.e., &amp;lt;math&amp;gt;F(id_A) = id_{FA}&amp;lt;/math&amp;gt;, and&lt;br /&gt;
* &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; preserves composition: &amp;lt;math&amp;gt;F(f \circ g) = F(f) \circ F(g)&amp;lt;/math&amp;gt;.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Exercice&amp;lt;/u&amp;gt;&lt;br /&gt;
# Take a functor &amp;lt;math&amp;gt;F \colon \mathcal{C} \to \mathcal{D}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;f, g, h&amp;lt;/math&amp;gt; three morphisms in &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt;, and &amp;lt;math&amp;gt;f&#039; = Ff&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;g&#039; = Fg&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;h&#039; = Fh&amp;lt;/math&amp;gt;. When &amp;lt;math&amp;gt;h&#039; = f&#039; \circ g&#039;&amp;lt;/math&amp;gt;, can we say something interesting about &amp;lt;math&amp;gt;f&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;g&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;h&amp;lt;/math&amp;gt;?&lt;br /&gt;
# Do functors preserve monomorphisms? Do functors preserve epimorphisms?&lt;br /&gt;
# Let &#039;&#039;F&#039;&#039; be a functor and &#039;&#039;F(f) = g&#039;&#039;, if &#039;&#039;g&#039;&#039; is a mono (resp. epi), is &#039;&#039;f&#039;&#039; a mono (resp. epi)?&lt;br /&gt;
If not, try to find some simple and natural condition on the functor to make that true.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Answer&amp;lt;/u&amp;gt;&lt;br /&gt;
# No, since &amp;lt;math&amp;gt;f&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;g&amp;lt;/math&amp;gt; may not even compose! This is the case when &amp;lt;math&amp;gt;f&amp;lt;/math&amp;gt; has type &amp;lt;math&amp;gt;A \to B&amp;lt;/math&amp;gt;, and &amp;lt;math&amp;gt;g \colon C \to D&amp;lt;/math&amp;gt;, with &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; collapsing &amp;lt;math&amp;gt;D&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; (i.e., &amp;lt;math&amp;gt;FA = FD&amp;lt;/math&amp;gt;).&lt;br /&gt;
# Functors in general do not preserve mono- nor epimorphisms. We build a counter-example for monomorphisms. Let &amp;lt;math&amp;gt;\mathbf{2}&amp;lt;/math&amp;gt; be the category with two objects &amp;lt;math&amp;gt;\star&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\bullet&amp;lt;/math&amp;gt;, and exactly one morphism &amp;lt;math&amp;gt;m \colon \star \to \bullet&amp;lt;/math&amp;gt;. This is a preorder, so &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; is monic. Now take &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt; with two objects &amp;lt;math&amp;gt;\star&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\bullet&amp;lt;/math&amp;gt;, exactly one morphism &amp;lt;math&amp;gt;m \colon \star \to \bullet&amp;lt;/math&amp;gt;, and one extra morphism &amp;lt;math&amp;gt;n \colon \star \to \star&amp;lt;/math&amp;gt;, different from the identity. Because of &amp;lt;math&amp;gt;n \neq id_\star&amp;lt;/math&amp;gt;, yet &amp;lt;math&amp;gt;m \circ n = m \circ id&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; is not monic in &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt;. The functor which sends &amp;lt;math&amp;gt;\star&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;\star&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;\bullet&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;\bullet&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; in &amp;lt;math&amp;gt;\mathbf{2}&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; in &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt;, does not preserve monomorphisms.&lt;br /&gt;
# In general, the answer is (again) no. For monos, take for example the functor &amp;lt;math&amp;gt;\mathcal{C} \to \mathbf{2}&amp;lt;/math&amp;gt; which sends &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; to the identity. Yet, when &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; is &#039;&#039;faithful&#039;&#039;, then &amp;lt;math&amp;gt;f&amp;lt;/math&amp;gt; is monic (or epic).&lt;br /&gt;
&lt;br /&gt;
{{Definition |&lt;br /&gt;
A functor &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; is faithful when, for any two morphisms &amp;lt;math&amp;gt;f, g&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;Ff = Fg&amp;lt;/math&amp;gt; implies &amp;lt;math&amp;gt;f=g&amp;lt;/math&amp;gt; (&amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; is injective on morphisms).&lt;br /&gt;
}}&lt;br /&gt;
{{Definition |&lt;br /&gt;
A functor &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; is full when, for any two objects &amp;lt;math&amp;gt;A, B&amp;lt;/math&amp;gt;, if &amp;lt;math&amp;gt;g&amp;lt;/math&amp;gt; is a morphism &amp;lt;math&amp;gt;FA \to FB&amp;lt;/math&amp;gt;, then there exists &amp;lt;math&amp;gt;f \colon A \to B&amp;lt;/math&amp;gt; with &amp;lt;math&amp;gt;Ff = g&amp;lt;/math&amp;gt; (&amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; is surjective on morphisms).&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Exercice&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Find an &amp;quot;interesting&amp;quot; functor from &#039;&#039;&#039;Set&#039;&#039;&#039; to &#039;&#039;&#039;Group&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Answer&amp;lt;/u&amp;gt;&lt;br /&gt;
Let &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; be the functor which sends:&lt;br /&gt;
* every set &amp;lt;math&amp;gt;X&amp;lt;/math&amp;gt; to the free group generated by &amp;lt;math&amp;gt;X&amp;lt;/math&amp;gt;, and&lt;br /&gt;
* every function &amp;lt;math&amp;gt;f \colon X \to Y&amp;lt;/math&amp;gt; to a group morphism defined by: &amp;lt;math&amp;gt;Ff(x_1^{\alpha_1}\times\dots\times x_k^{\alpha_k})=f(x_1)^{\alpha_1} \times \dots \times f(x_k)^{\alpha_k}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Exercice&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt; is a locally small category and &#039;&#039;A&#039;&#039; one of its objects, let &amp;lt;math&amp;gt;Y_A : X \mapsto \mathcal{C}[X,A]&amp;lt;/math&amp;gt;. Show that this operation from objects of &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt; to sets can be extended into a contravariant functor &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt; to &#039;&#039;&#039;Set&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Answer&amp;lt;/u&amp;gt;&lt;br /&gt;
Let &amp;lt;math&amp;gt;f\colon X \to Y&amp;lt;/math&amp;gt; be a morphism in &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt;, then &amp;lt;math&amp;gt;Y_A(f)&amp;lt;/math&amp;gt; is expected to be a function from the set &amp;lt;math&amp;gt;\mathcal{C}[Y, A]&amp;lt;/math&amp;gt; to the set &amp;lt;math&amp;gt;\mathcal{C}[X, A]&amp;lt;/math&amp;gt;. We can take, for any morphism &amp;lt;math&amp;gt;m \in \mathcal{C}[Y,A]&amp;lt;/math&amp;gt;: &amp;lt;math&amp;gt;Y_A(f)(m) = m \circ f&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
This extends &amp;lt;math&amp;gt;Y_A&amp;lt;/math&amp;gt; to a contravariant functor, since &amp;lt;math&amp;gt;Y_A(id_X) = id_{\mathcal{C}[X, A]}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;Y_A(f \circ g)(m) = m \circ (f \circ g) = (m \circ f) \circ g = (Y_A(g) \circ Y_A(f))(m)&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===Natural Transformations===&lt;br /&gt;
&lt;br /&gt;
{{Definition |&lt;br /&gt;
Let &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;G&amp;lt;/math&amp;gt; be two functors &amp;lt;math&amp;gt;\mathcal{C} \to \mathcal{D}&amp;lt;/math&amp;gt;. A natural transformation &amp;lt;math&amp;gt;\alpha&amp;lt;/math&amp;gt; from &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;G&amp;lt;/math&amp;gt; is given by:&lt;br /&gt;
* a morphism &amp;lt;math&amp;gt;\alpha_A \colon FA \to GA&amp;lt;/math&amp;gt; in &amp;lt;math&amp;gt;\mathcal{D}&amp;lt;/math&amp;gt; for every object &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; in &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt;,&lt;br /&gt;
* such that, for any morphism &amp;lt;math&amp;gt;f \colon A \to B&amp;lt;/math&amp;gt;, we have &amp;lt;math&amp;gt;Gf \circ \alpha_A = \alpha_B \circ Ff&amp;lt;/math&amp;gt;.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Exercice&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If &amp;lt;math&amp;gt;P(X)&amp;lt;/math&amp;gt; is the set of permutation of a (finite) set &#039;&#039;X&#039;&#039;; and &amp;lt;math&amp;gt;L(X)&amp;lt;/math&amp;gt; the set of its linear orderings, we have &amp;lt;math&amp;gt;\#(L(X)) = \#(L(X)) = n!&amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;n = \#(X)&amp;lt;/math&amp;gt;. Thus, there is a bijection (iso in &#039;&#039;&#039;Set&#039;&#039;&#039;) between &#039;&#039;P(X)&#039;&#039; and &#039;&#039;L(X)&#039;&#039;.&lt;br /&gt;
# Show that we can extend &#039;&#039;P&#039;&#039; and &#039;&#039;L&#039;&#039; to functors from &#039;&#039;&#039;B&#039;&#039;&#039; to &#039;&#039;&#039;Set&#039;&#039;&#039;, where &#039;&#039;&#039;B&#039;&#039;&#039; is the category of finite sets and bijections,&lt;br /&gt;
# Show that there can be no natural transformation from &#039;&#039;P&#039;&#039; to &#039;&#039;L&#039;&#039;,&lt;br /&gt;
# Conclude that there is no natural isomorphism between &#039;&#039;P&#039;&#039; and &#039;&#039;L&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
==About Limits and colimits==&lt;br /&gt;
&lt;br /&gt;
One of the main thrusts of category theory is to define concepts by&lt;br /&gt;
their properties rather than by explicit construction. In general this&lt;br /&gt;
is just called abstraction, but in good cases, concepts are&lt;br /&gt;
&#039;&#039;defined&#039;&#039; by their properties, at least canonically if not uniquely.&lt;br /&gt;
&lt;br /&gt;
The chief example of this is binary products in &#039;&#039;&#039;Set&#039;&#039;&#039;.  The&lt;br /&gt;
product &amp;lt;math&amp;gt;A \times B&amp;lt;/math&amp;gt; of two sets &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; and&lt;br /&gt;
&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt; is generally thought of as the set of pairs &amp;lt;math&amp;gt; (x,&lt;br /&gt;
y) &amp;lt;/math&amp;gt; with &amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;y \in B&amp;lt;/math&amp;gt;.  But&lt;br /&gt;
strictly speaking, or rather set-theoretically speaking, one has to&lt;br /&gt;
construct it by cautious use of the axioms of Zermelo-Fraenkel set&lt;br /&gt;
theory.&lt;br /&gt;
&lt;br /&gt;
Instead, in any category &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt;, for any objects&lt;br /&gt;
&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt; categorists put: &lt;br /&gt;
&lt;br /&gt;
{{Definition | A&lt;br /&gt;
&#039;&#039;product&#039;&#039; of &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt; is an object &amp;lt;math&amp;gt;C&amp;lt;/math&amp;gt;&lt;br /&gt;
with arrows&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;A \xleftarrow{\pi_1} C \xrightarrow{\pi_2} B&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
such that for any object &amp;lt;math&amp;gt;D&amp;lt;/math&amp;gt; and arrows&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;A \xleftarrow{f} D \xrightarrow{g} B&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
there exists a unique arrow &amp;lt;math&amp;gt;h&amp;lt;/math&amp;gt; making the diagram&lt;br /&gt;
[[Image:prod.png|center|Universal property of product]]&lt;br /&gt;
commute, i.e., &amp;lt;math&amp;gt;\pi_1 \circ h = f&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\pi_2 \circ h = g&amp;lt;/math&amp;gt;.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
The standard constructions in &#039;&#039;&#039;Set&#039;&#039;&#039; all have this property, and&lt;br /&gt;
all the non-standard ones you can think of also do, e.g., the set of&lt;br /&gt;
pairs &amp;lt;math&amp;gt; (\emptyset, x, y) &amp;lt;/math&amp;gt; with &amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;y&lt;br /&gt;
\in B&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Conversely, any set with this property is as good as any other&lt;br /&gt;
construction of &amp;lt;math&amp;gt;A \times B&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Products are determined &#039;&#039;canonically&#039;&#039; by this property&lt;br /&gt;
property. We will give a more precise meaning to this in later&lt;br /&gt;
lectures; for now we just state:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Lemma.&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For any other product &amp;lt;center&amp;gt;&amp;lt;math&amp;gt;A \xleftarrow{p} E \xrightarrow{q} B&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt; of &lt;br /&gt;
&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;, there is a unique isomorphism pair &amp;lt;math&amp;gt; (r, s) &amp;lt;/math&amp;gt; &lt;br /&gt;
such that the diagrams&lt;br /&gt;
&lt;br /&gt;
[[Image:prod-iso.png|upright=2]] and &lt;br /&gt;
[[Image:prod-iso-2.png|upright=2]]&lt;br /&gt;
&lt;br /&gt;
commute.&lt;br /&gt;
&lt;br /&gt;
==Adjunctions==&lt;br /&gt;
&lt;br /&gt;
===First examples and definition===&lt;br /&gt;
&lt;br /&gt;
====So-called &#039;&#039;free&#039;&#039; constructions in algebra: monoid, group, etc====&lt;br /&gt;
====Their universal property, the underlying functor====&lt;br /&gt;
====The isomorphism between hom-sets====&lt;br /&gt;
====Its naturality====&lt;br /&gt;
====Definition====&lt;br /&gt;
====On to the definition with &amp;lt;math&amp;gt;\eta&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\epsilon&amp;lt;/math&amp;gt;====&lt;br /&gt;
&lt;br /&gt;
===The simplicity behind definitions:2-categories and adjunctions therein===&lt;br /&gt;
&lt;br /&gt;
====Definition of 2-categories====&lt;br /&gt;
====String diagrams====&lt;br /&gt;
====&#039;&#039;&#039;CAT&#039;&#039;&#039; as a 2-category====&lt;br /&gt;
====Adjunctions in a 2-category====&lt;br /&gt;
&lt;br /&gt;
===Other basic examples===&lt;br /&gt;
&lt;br /&gt;
====Discussion: any syntax defines the free something==== The issue of &lt;br /&gt;
variable binding.&lt;br /&gt;
====Adjunction between partial orders = Galois connection====&lt;br /&gt;
====&amp;lt;math&amp;gt;\times&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\Rightarrow&amp;lt;/math&amp;gt; in logic====&lt;br /&gt;
====Sets/graphs and categories====&lt;br /&gt;
&lt;br /&gt;
===Monads and resolutions===&lt;br /&gt;
&lt;br /&gt;
====Definition of a monad====&lt;br /&gt;
====String diagrams====&lt;br /&gt;
====Every adjunction yields a monad====&lt;br /&gt;
====Example of monoids again: resolutions====&lt;br /&gt;
&lt;br /&gt;
===Monadic adjunctions===&lt;br /&gt;
&lt;br /&gt;
====The category of resolutions====&lt;br /&gt;
====Eilenberg-Moore is terminal====&lt;br /&gt;
====Kleisli is initial====&lt;br /&gt;
====Monadic adjunctions====&lt;br /&gt;
====Algebraic theories====&lt;br /&gt;
&lt;br /&gt;
===Properties===&lt;br /&gt;
&lt;br /&gt;
====Composing adjunctions====&lt;br /&gt;
====Preservation of limits/colimits====&lt;br /&gt;
====Freyd&#039;s existence theorem====&lt;br /&gt;
====Beck&#039;s monadicity theorem====&lt;br /&gt;
&lt;br /&gt;
==Course Complements, references==&lt;br /&gt;
&lt;br /&gt;
One of the best books about category theory is&lt;br /&gt;
* Saunder MacLane, &#039;&#039;&amp;quot;Categories for the Working Mathematician&amp;quot;&#039;&#039;.&lt;br /&gt;
It is a little &amp;quot;dry&amp;quot;, in the sense that learning categories from it is not the easiest task on earth, but it still is one of the best references.&lt;br /&gt;
&lt;br /&gt;
I haven&#039;t really read it carefully, but here is [http://en.wikipedia.org/wiki/Category_theory what Wikipedia has to say on category theory].&lt;/div&gt;</summary>
		<author><name>DDuval</name></author>
	</entry>
	<entry>
		<id>http://os-vps418.infomaniak.ch:1250/mediawiki/index.php?title=Langage_et_concepts_cat%C3%A9goriques_pour_les_math%C3%A9matiques_et_l%E2%80%99informatique&amp;diff=3945</id>
		<title>Langage et concepts catégoriques pour les mathématiques et l’informatique</title>
		<link rel="alternate" type="text/html" href="http://os-vps418.infomaniak.ch:1250/mediawiki/index.php?title=Langage_et_concepts_cat%C3%A9goriques_pour_les_math%C3%A9matiques_et_l%E2%80%99informatique&amp;diff=3945"/>
		<updated>2009-03-11T13:04:28Z</updated>

		<summary type="html">&lt;p&gt;DDuval : /* News */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This is a wiki for a course at the MSTII &amp;quot;École doctorale&amp;quot; of Grenoble.&lt;br /&gt;
&lt;br /&gt;
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...&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===News===&lt;br /&gt;
&lt;br /&gt;
Courses are on wednesdays morning, 9&#039;00 to 12&#039;00 in room F218 at the &amp;quot;UFR IMAG&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
* first course on the 25th of February: categories, functors, natural transformations.&lt;br /&gt;
* March 4. : monads, adjunctions.&lt;br /&gt;
* March 11. : limits and colimits.&lt;br /&gt;
&lt;br /&gt;
==Basic Concepts==&lt;br /&gt;
&lt;br /&gt;
===Categories===&lt;br /&gt;
&lt;br /&gt;
{{Definition |&lt;br /&gt;
A concrete category is given by:&lt;br /&gt;
* a collection of sets &#039;&#039;with structure&#039;&#039;,&lt;br /&gt;
* for any pair of such sets, a set of &#039;&#039;morphisms&#039;&#039; preserving the structure.&lt;br /&gt;
Morphisms should compose, and the identity should be a morphism.}}&lt;br /&gt;
&lt;br /&gt;
This definition is a little informal, but here are some examples:&lt;br /&gt;
* &#039;&#039;&#039;Grp&#039;&#039;&#039;: groups and group morphisms&lt;br /&gt;
* &#039;&#039;&#039;Top&#039;&#039;&#039;: topological spaces and continuous functions&lt;br /&gt;
* &#039;&#039;&#039;Ring&#039;&#039;&#039;: rings and rings morphisms&lt;br /&gt;
* &#039;&#039;&#039;Vect&#039;&#039;&#039;: vectors spaces and linear maps&lt;br /&gt;
* &#039;&#039;&#039;CPO&#039;&#039;&#039;: CPOs and continuous functions&lt;br /&gt;
* ...&lt;br /&gt;
* &#039;&#039;&#039;Set&#039;&#039;&#039;: sets and functions (&#039;&#039;&#039;ie&#039;&#039;&#039; sets with no structures, and arbitrary functions)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Generalizing the definition, we obtain the official definition of category:&lt;br /&gt;
&lt;br /&gt;
{{Definition |&lt;br /&gt;
A category &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt; is given by:&lt;br /&gt;
* a collection &amp;lt;math&amp;gt;\mathcal{C}_o&amp;lt;/math&amp;gt; of &#039;&#039;objects&#039;&#039;,  (notation: &amp;lt;math&amp;gt;A,B,C,X,Y,...&amp;lt;/math&amp;gt;)&lt;br /&gt;
* for each pair &amp;lt;math&amp;gt;A,B&amp;lt;/math&amp;gt; of objects, a collection &amp;lt;math&amp;gt;\mathcal{C}[A,B]&amp;lt;/math&amp;gt; of &#039;&#039;morphisms from &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&#039;&#039;,  (notation &amp;lt;math&amp;gt; f : A\to B&amp;lt;/math&amp;gt;)&lt;br /&gt;
* for any object &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;, a special morphism &amp;lt;math&amp;gt;i_A : A\to A&amp;lt;/math&amp;gt;&lt;br /&gt;
* for all objects &amp;lt;math&amp;gt;A,B,C&amp;lt;/math&amp;gt;, a composition &amp;lt;math&amp;gt;\circ : \mathcal{C}[B,C] \times \mathcal{C}[A,B] \to \mathcal{C}[A,C]&amp;lt;/math&amp;gt;,&lt;br /&gt;
such that:&lt;br /&gt;
* &amp;lt;math&amp;gt;f \in \mathcal{C}[A,B] \implies f\circ i_A = i_B\circ f = f&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;f\circ(g\circ h) = (f\circ g)\circ h&amp;lt;/math&amp;gt; whenever it makes sense.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
All concrete categories are categories, and here are some examples that are not obviously concrete:&lt;br /&gt;
* &#039;&#039;&#039;Graph&#039;&#039;&#039;: graphs and graph morphisms&lt;br /&gt;
* &#039;&#039;&#039;Rel&#039;&#039;&#039;: sets and relations&lt;br /&gt;
* &#039;&#039;&#039;Set×Set&#039;&#039;&#039;: pairs of sets, pairs of functions&lt;br /&gt;
* &#039;&#039;&#039;Set&amp;lt;math&amp;gt;^{op}&amp;lt;/math&amp;gt;&#039;&#039;&#039;: opposite of &#039;&#039;&#039;Set&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;P&#039;&#039;&#039;, whenever (&#039;&#039;&#039;P&#039;&#039;&#039;,&amp;lt;) is a preorder (at most one morphism between objects)&lt;br /&gt;
* &#039;&#039;&#039;M&#039;&#039;&#039;, whenever (&#039;&#039;&#039;M&#039;&#039;&#039;,e,×) is a monoid (a single object)&lt;br /&gt;
&lt;br /&gt;
We sometimes write &amp;lt;math&amp;gt;gf&amp;lt;/math&amp;gt; instead of &amp;lt;math&amp;gt;g \circ f&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
In a given category &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt;, there are analogues of the notions of injective and surjective functions in &#039;&#039;&#039;Set&#039;&#039;&#039;. We will see that on concrete categories, they are actually slightly more general. The idea of injectivity gives rise to &#039;&#039;monomorphisms&#039;&#039;, and surjectivity gives rise to &#039;&#039;epimorphisms&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
{{Definition |&lt;br /&gt;
&lt;br /&gt;
A morphism &amp;lt;math&amp;gt;f \colon A \to B&amp;lt;/math&amp;gt; is a &#039;&#039;monomorphism&#039;&#039; iff for all object &amp;lt;math&amp;gt;C&amp;lt;/math&amp;gt; and morphisms &amp;lt;math&amp;gt;g,h \colon C \to A&amp;lt;/math&amp;gt;, we have &amp;lt;math&amp;gt;fg = fh&amp;lt;/math&amp;gt; implies &amp;lt;math&amp;gt;g = h&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The morphism &amp;lt;math&amp;gt;f&amp;lt;/math&amp;gt; is an &#039;&#039;epimorphism&#039;&#039; when it is a monomorphism in &amp;lt;math&amp;gt;\mathcal{C}^{op}&amp;lt;/math&amp;gt;. Explicitly, when for all object &amp;lt;math&amp;gt;C&amp;lt;/math&amp;gt; and morphisms &amp;lt;math&amp;gt;g,h \colon B \to C&amp;lt;/math&amp;gt;, we have &amp;lt;math&amp;gt;gf = hf&amp;lt;/math&amp;gt; implies &amp;lt;math&amp;gt;g = h&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
  isomorphism&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Exercice&amp;lt;/u&amp;gt;&lt;br /&gt;
# Prove that in &#039;&#039;&#039;Set&#039;&#039;&#039;, epic is equivalent to surjective and monic is equivalent to injective.&lt;br /&gt;
# Prove the same thing in &#039;&#039;&#039;Ab&#039;&#039;&#039;, the category of commutative groups. (One thing is not obvious.)&lt;br /&gt;
# Prove the same thing in &#039;&#039;&#039;Grp&#039;&#039;&#039;, the category of (non necessarily commutative) groups. (One thing is not obvious at all.)&lt;br /&gt;
# Prove that &amp;lt;math&amp;gt;i : \mathbf{Z} \to \mathbf{Q}&amp;lt;/math&amp;gt; is an epimorphism in the category of rings with multiplicative neutral. (Note that it is not surjective.)&lt;br /&gt;
# In &#039;&#039;&#039;Set&#039;&#039;&#039;, we saw that &#039;&#039;f&#039;&#039; is a monic iff &amp;lt;math&amp;gt;\forall x,y : 1 \to A, f\circ x = f\circ y \implies x=y&amp;lt;/math&amp;gt;, where 1 is any singleton set. Can you find a set &#039;&#039;C&#039;&#039; such that &#039;&#039;f&#039;&#039; is epic iff &amp;lt;math&amp;gt;\forall p,q : B \to C, p\circ f = j\circ f \implies p=q&amp;lt;/math&amp;gt;?&lt;br /&gt;
# In &#039;&#039;&#039;Group&#039;&#039;&#039;, can you find an object playing a role similar to 1, &#039;&#039;ie&#039;&#039; a group &#039;&#039;G&#039;&#039; s.t. &#039;&#039;f&#039;&#039; is monic iff &amp;lt;math&amp;gt;\forall x,y : G \to A, f\circ x = f\circ y \implies x=y&amp;lt;/math&amp;gt;. (We saw that we cannot use the singleton group ({e},e,×) to do that...)&lt;br /&gt;
&lt;br /&gt;
===Functors===&lt;br /&gt;
&lt;br /&gt;
Informally, a functor is a map between two categories which somehow preserves the structure of categories (namely, composition).&lt;br /&gt;
&lt;br /&gt;
{{Definition |&lt;br /&gt;
A functor &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; from a category &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt; to a category &amp;lt;math&amp;gt;\mathcal{D}&amp;lt;/math&amp;gt;, noted &amp;lt;math&amp;gt;F \colon \mathcal{C} \to \mathcal{D}&amp;lt;/math&amp;gt;, is given by:&lt;br /&gt;
* a map which sends every object &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; of &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt; to an object &amp;lt;math&amp;gt;FA&amp;lt;/math&amp;gt; in &amp;lt;math&amp;gt;\mathcal{D}&amp;lt;/math&amp;gt;, and&lt;br /&gt;
* a map which sends every morphism &amp;lt;math&amp;gt;f \colon A \to B&amp;lt;/math&amp;gt; in &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt;, to a morphism &amp;lt;math&amp;gt;Ff&amp;lt;/math&amp;gt; in &amp;lt;math&amp;gt;\mathcal{D}[FA, FB]&amp;lt;/math&amp;gt;,&lt;br /&gt;
such that:&lt;br /&gt;
* &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; preserves identities, i.e., &amp;lt;math&amp;gt;F(id_A) = id_{FA}&amp;lt;/math&amp;gt;, and&lt;br /&gt;
* &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; preserves composition: &amp;lt;math&amp;gt;F(f \circ g) = F(f) \circ F(g)&amp;lt;/math&amp;gt;.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Exercice&amp;lt;/u&amp;gt;&lt;br /&gt;
# Take a functor &amp;lt;math&amp;gt;F \colon \mathcal{C} \to \mathcal{D}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;f, g, h&amp;lt;/math&amp;gt; three morphisms in &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt;, and &amp;lt;math&amp;gt;f&#039; = Ff&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;g&#039; = Fg&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;h&#039; = Fh&amp;lt;/math&amp;gt;. When &amp;lt;math&amp;gt;h&#039; = f&#039; \circ g&#039;&amp;lt;/math&amp;gt;, can we say something interesting about &amp;lt;math&amp;gt;f&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;g&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;h&amp;lt;/math&amp;gt;?&lt;br /&gt;
# Do functors preserve monomorphisms? Do functors preserve epimorphisms?&lt;br /&gt;
# Let &#039;&#039;F&#039;&#039; be a functor and &#039;&#039;F(f) = g&#039;&#039;, if &#039;&#039;g&#039;&#039; is a mono (resp. epi), is &#039;&#039;f&#039;&#039; a mono (resp. epi)?&lt;br /&gt;
If not, try to find some simple and natural condition on the functor to make that true.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Answer&amp;lt;/u&amp;gt;&lt;br /&gt;
# No, since &amp;lt;math&amp;gt;f&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;g&amp;lt;/math&amp;gt; may not even compose! This is the case when &amp;lt;math&amp;gt;f&amp;lt;/math&amp;gt; has type &amp;lt;math&amp;gt;A \to B&amp;lt;/math&amp;gt;, and &amp;lt;math&amp;gt;g \colon C \to D&amp;lt;/math&amp;gt;, with &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; collapsing &amp;lt;math&amp;gt;D&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; (i.e., &amp;lt;math&amp;gt;FA = FD&amp;lt;/math&amp;gt;).&lt;br /&gt;
# Functors in general do not preserve mono- nor epimorphisms. We build a counter-example for monomorphisms. Let &amp;lt;math&amp;gt;\mathbf{2}&amp;lt;/math&amp;gt; be the category with two objects &amp;lt;math&amp;gt;\star&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\bullet&amp;lt;/math&amp;gt;, and exactly one morphism &amp;lt;math&amp;gt;m \colon \star \to \bullet&amp;lt;/math&amp;gt;. This is a preorder, so &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; is monic. Now take &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt; with two objects &amp;lt;math&amp;gt;\star&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\bullet&amp;lt;/math&amp;gt;, exactly one morphism &amp;lt;math&amp;gt;m \colon \star \to \bullet&amp;lt;/math&amp;gt;, and one extra morphism &amp;lt;math&amp;gt;n \colon \star \to \star&amp;lt;/math&amp;gt;, different from the identity. Because of &amp;lt;math&amp;gt;n \neq id_\star&amp;lt;/math&amp;gt;, yet &amp;lt;math&amp;gt;m \circ n = m \circ id&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; is not monic in &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt;. The functor which sends &amp;lt;math&amp;gt;\star&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;\star&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;\bullet&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;\bullet&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; in &amp;lt;math&amp;gt;\mathbf{2}&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; in &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt;, does not preserve monomorphisms.&lt;br /&gt;
# In general, the answer is (again) no. For monos, take for example the functor &amp;lt;math&amp;gt;\mathcal{C} \to \mathbf{2}&amp;lt;/math&amp;gt; which sends &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; to the identity. Yet, when &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; is &#039;&#039;faithful&#039;&#039;, then &amp;lt;math&amp;gt;f&amp;lt;/math&amp;gt; is monic (or epic).&lt;br /&gt;
&lt;br /&gt;
{{Definition |&lt;br /&gt;
A functor &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; is faithful when, for any two morphisms &amp;lt;math&amp;gt;f, g&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;Ff = Fg&amp;lt;/math&amp;gt; implies &amp;lt;math&amp;gt;f=g&amp;lt;/math&amp;gt; (&amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; is injective on morphisms).&lt;br /&gt;
}}&lt;br /&gt;
{{Definition |&lt;br /&gt;
A functor &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; is full when, for any two objects &amp;lt;math&amp;gt;A, B&amp;lt;/math&amp;gt;, if &amp;lt;math&amp;gt;g&amp;lt;/math&amp;gt; is a morphism &amp;lt;math&amp;gt;FA \to FB&amp;lt;/math&amp;gt;, then there exists &amp;lt;math&amp;gt;f \colon A \to B&amp;lt;/math&amp;gt; with &amp;lt;math&amp;gt;Ff = g&amp;lt;/math&amp;gt; (&amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; is surjective on morphisms).&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Exercice&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Find an &amp;quot;interesting&amp;quot; functor from &#039;&#039;&#039;Set&#039;&#039;&#039; to &#039;&#039;&#039;Group&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Answer&amp;lt;/u&amp;gt;&lt;br /&gt;
Let &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; be the functor which sends:&lt;br /&gt;
* every set &amp;lt;math&amp;gt;X&amp;lt;/math&amp;gt; to the free group generated by &amp;lt;math&amp;gt;X&amp;lt;/math&amp;gt;, and&lt;br /&gt;
* every function &amp;lt;math&amp;gt;f \colon X \to Y&amp;lt;/math&amp;gt; to a group morphism defined by: &amp;lt;math&amp;gt;Ff(x_1^{\alpha_1}\times\dots\times x_k^{\alpha_k})=f(x_1)^{\alpha_1} \times \dots \times f(x_k)^{\alpha_k}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Exercice&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt; is a locally small category and &#039;&#039;A&#039;&#039; one of its objects, let &amp;lt;math&amp;gt;Y_A : X \mapsto \mathcal{C}[X,A]&amp;lt;/math&amp;gt;. Show that this operation from objects of &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt; to sets can be extended into a contravariant functor &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt; to &#039;&#039;&#039;Set&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Answer&amp;lt;/u&amp;gt;&lt;br /&gt;
Let &amp;lt;math&amp;gt;f\colon X \to Y&amp;lt;/math&amp;gt; be a morphism in &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt;, then &amp;lt;math&amp;gt;Y_A(f)&amp;lt;/math&amp;gt; is expected to be a function from the set &amp;lt;math&amp;gt;\mathcal{C}[Y, A]&amp;lt;/math&amp;gt; to the set &amp;lt;math&amp;gt;\mathcal{C}[X, A]&amp;lt;/math&amp;gt;. We can take, for any morphism &amp;lt;math&amp;gt;m \in \mathcal{C}[Y,A]&amp;lt;/math&amp;gt;: &amp;lt;math&amp;gt;Y_A(f)(m) = m \circ f&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
This extends &amp;lt;math&amp;gt;Y_A&amp;lt;/math&amp;gt; to a contravariant functor, since &amp;lt;math&amp;gt;Y_A(id_X) = id_{\mathcal{C}[X, A]}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;Y_A(f \circ g)(m) = m \circ (f \circ g) = (m \circ f) \circ g = (Y_A(g) \circ Y_A(f))(m)&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===Natural Transformations===&lt;br /&gt;
&lt;br /&gt;
{{Definition |&lt;br /&gt;
Let &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;G&amp;lt;/math&amp;gt; be two functors &amp;lt;math&amp;gt;\mathcal{C} \to \mathcal{D}&amp;lt;/math&amp;gt;. A natural transformation &amp;lt;math&amp;gt;\alpha&amp;lt;/math&amp;gt; from &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;G&amp;lt;/math&amp;gt; is given by:&lt;br /&gt;
* a morphism &amp;lt;math&amp;gt;\alpha_A \colon FA \to GA&amp;lt;/math&amp;gt; in &amp;lt;math&amp;gt;\mathcal{D}&amp;lt;/math&amp;gt; for every object &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; in &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt;,&lt;br /&gt;
* such that, for any morphism &amp;lt;math&amp;gt;f \colon A \to B&amp;lt;/math&amp;gt;, we have &amp;lt;math&amp;gt;Gf \circ \alpha_A = \alpha_B \circ Ff&amp;lt;/math&amp;gt;.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Exercice&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If &amp;lt;math&amp;gt;P(X)&amp;lt;/math&amp;gt; is the set of permutation of a (finite) set &#039;&#039;X&#039;&#039;; and &amp;lt;math&amp;gt;L(X)&amp;lt;/math&amp;gt; the set of its linear orderings, we have &amp;lt;math&amp;gt;\#(L(X)) = \#(L(X)) = n!&amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;n = \#(X)&amp;lt;/math&amp;gt;. Thus, there is a bijection (iso in &#039;&#039;&#039;Set&#039;&#039;&#039;) between &#039;&#039;P(X)&#039;&#039; and &#039;&#039;L(X)&#039;&#039;.&lt;br /&gt;
# Show that we can extend &#039;&#039;P&#039;&#039; and &#039;&#039;L&#039;&#039; to functors from &#039;&#039;&#039;B&#039;&#039;&#039; to &#039;&#039;&#039;Set&#039;&#039;&#039;, where &#039;&#039;&#039;B&#039;&#039;&#039; is the category of finite sets and bijections,&lt;br /&gt;
# Show that there can be no natural transformation from &#039;&#039;P&#039;&#039; to &#039;&#039;L&#039;&#039;,&lt;br /&gt;
# Conclude that there is no natural isomorphism between &#039;&#039;P&#039;&#039; and &#039;&#039;L&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
==Limits and colimits==&lt;br /&gt;
&lt;br /&gt;
One of the main thrusts of category theory is to define concepts by&lt;br /&gt;
their properties rather than by explicit construction. In general this&lt;br /&gt;
is just called abstraction, but in good cases, concepts are&lt;br /&gt;
&#039;&#039;defined&#039;&#039; by their properties, at least canonically if not uniquely.&lt;br /&gt;
&lt;br /&gt;
The chief example of this is binary products in &#039;&#039;&#039;Set&#039;&#039;&#039;.  The&lt;br /&gt;
product &amp;lt;math&amp;gt;A \times B&amp;lt;/math&amp;gt; of two sets &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; and&lt;br /&gt;
&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt; is generally thought of as the set of pairs &amp;lt;math&amp;gt; (x,&lt;br /&gt;
y) &amp;lt;/math&amp;gt; with &amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;y \in B&amp;lt;/math&amp;gt;.  But&lt;br /&gt;
strictly speaking, or rather set-theoretically speaking, one has to&lt;br /&gt;
construct it by cautious use of the axioms of Zermelo-Fraenkel set&lt;br /&gt;
theory.&lt;br /&gt;
&lt;br /&gt;
Instead, in any category &amp;lt;math&amp;gt;\mathcal{C}&amp;lt;/math&amp;gt;, for any objects&lt;br /&gt;
&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt; categorists put: &lt;br /&gt;
&lt;br /&gt;
{{Definition | A&lt;br /&gt;
&#039;&#039;product&#039;&#039; of &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt; is an object &amp;lt;math&amp;gt;C&amp;lt;/math&amp;gt;&lt;br /&gt;
with arrows&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;A \xleftarrow{\pi_1} C \xrightarrow{\pi_2} B&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
such that for any object &amp;lt;math&amp;gt;D&amp;lt;/math&amp;gt; and arrows&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;A \xleftarrow{f} D \xrightarrow{g} B&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
there exists a unique arrow &amp;lt;math&amp;gt;h&amp;lt;/math&amp;gt; making the diagram&lt;br /&gt;
[[Image:prod.png|center|Universal property of product]]&lt;br /&gt;
commute, i.e., &amp;lt;math&amp;gt;\pi_1 \circ h = f&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\pi_2 \circ h = g&amp;lt;/math&amp;gt;.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
The standard constructions in &#039;&#039;&#039;Set&#039;&#039;&#039; all have this property, and&lt;br /&gt;
all the non-standard ones you can think of also do, e.g., the set of&lt;br /&gt;
pairs &amp;lt;math&amp;gt; (\emptyset, x, y) &amp;lt;/math&amp;gt; with &amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;y&lt;br /&gt;
\in B&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Conversely, any set with this property is as good as any other&lt;br /&gt;
construction of &amp;lt;math&amp;gt;A \times B&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Products are determined &#039;&#039;canonically&#039;&#039; by this property&lt;br /&gt;
property. We will give a more precise meaning to this in later&lt;br /&gt;
lectures; for now we just state:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Lemma.&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For any other product &amp;lt;center&amp;gt;&amp;lt;math&amp;gt;A \xleftarrow{p} E \xrightarrow{q} B&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt; of &lt;br /&gt;
&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;, there is a unique isomorphism pair &amp;lt;math&amp;gt; (r, s) &amp;lt;/math&amp;gt; &lt;br /&gt;
such that the diagrams&lt;br /&gt;
&lt;br /&gt;
[[Image:prod-iso.png|upright=2]] and &lt;br /&gt;
[[Image:prod-iso-2.png|upright=2]]&lt;br /&gt;
&lt;br /&gt;
commute. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Adjunctions==&lt;br /&gt;
&lt;br /&gt;
===First examples and definition===&lt;br /&gt;
&lt;br /&gt;
====So-called &#039;&#039;free&#039;&#039; constructions in algebra: monoid, group, etc====&lt;br /&gt;
====Their universal property, the underlying functor====&lt;br /&gt;
====The isomorphism between hom-sets====&lt;br /&gt;
====Its naturality====&lt;br /&gt;
====Definition====&lt;br /&gt;
====On to the definition with &amp;lt;math&amp;gt;\eta&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\epsilon&amp;lt;/math&amp;gt;====&lt;br /&gt;
&lt;br /&gt;
===The simplicity behind definitions:2-categories and adjunctions therein===&lt;br /&gt;
&lt;br /&gt;
====Definition of 2-categories====&lt;br /&gt;
====String diagrams====&lt;br /&gt;
====&#039;&#039;&#039;CAT&#039;&#039;&#039; as a 2-category====&lt;br /&gt;
====Adjunctions in a 2-category====&lt;br /&gt;
&lt;br /&gt;
===Other basic examples===&lt;br /&gt;
&lt;br /&gt;
====Discussion: any syntax defines the free something==== The issue of &lt;br /&gt;
variable binding.&lt;br /&gt;
====Adjunction between partial orders = Galois connection====&lt;br /&gt;
====&amp;lt;math&amp;gt;\times&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\Rightarrow&amp;lt;/math&amp;gt; in logic====&lt;br /&gt;
====Sets/graphs and categories====&lt;br /&gt;
&lt;br /&gt;
===Monads and resolutions===&lt;br /&gt;
&lt;br /&gt;
====Definition of a monad====&lt;br /&gt;
====String diagrams====&lt;br /&gt;
====Every adjunction yields a monad====&lt;br /&gt;
====Example of monoids again: resolutions====&lt;br /&gt;
&lt;br /&gt;
===Monadic adjunctions===&lt;br /&gt;
&lt;br /&gt;
====The category of resolutions====&lt;br /&gt;
====Eilenberg-Moore is terminal====&lt;br /&gt;
====Kleisli is initial====&lt;br /&gt;
====Monadic adjunctions====&lt;br /&gt;
====Algebraic theories====&lt;br /&gt;
&lt;br /&gt;
===Properties===&lt;br /&gt;
&lt;br /&gt;
====Composing adjunctions====&lt;br /&gt;
====Preservation of limits/colimits====&lt;br /&gt;
====Freyd&#039;s existence theorem====&lt;br /&gt;
====Beck&#039;s monadicity theorem====&lt;br /&gt;
&lt;br /&gt;
==Course Complements, references==&lt;br /&gt;
&lt;br /&gt;
One of the best books about category theory is&lt;br /&gt;
* Saunder MacLane, &#039;&#039;&amp;quot;Categories for the Working Mathematician&amp;quot;&#039;&#039;.&lt;br /&gt;
It is a little &amp;quot;dry&amp;quot;, in the sense that learning categories from it is not the easiest task on earth, but it still is one of the best references.&lt;br /&gt;
&lt;br /&gt;
I haven&#039;t really read it carefully, but here is [http://en.wikipedia.org/wiki/Category_theory what Wikipedia has to say on category theory].&lt;/div&gt;</summary>
		<author><name>DDuval</name></author>
	</entry>
</feed>