Category Theory
Zulip Server
Archive

You're reading the public-facing archive of the Category Theory Zulip server.
To join the server you need an invite. Anybody can get an invite by contacting Matteo Capucci at name dot surname at gmail dot com.
For all things related to this archive refer to the same person.


Stream: learning: questions

Topic: equivalent categories and equivalence relations


view this post on Zulip David Egolf (May 26 2023 at 20:06):

I was reading about how a map from a set can induce a map from a suitable quotient of that set. I'm wondering if this situation can be generalized to a statement about equivalent categories.

My (short) question is at the end, preceded by some (longer) motivation.

As the motivating example (following Jacobson's "Basic Algebra I"), let SS be a set and let EE be an equivalence relationship on SS. Let α:ST\alpha: S \to T be a function to a set TT that is compatible with EE, in the sense that if any aa and bb in SS are equivalent under EE then α(a)=α(b)\alpha(a) = \alpha(b). We then define a map v:SS/Ev: S \to S/E which sends sSs \in S to its equivalence class [s][s] under the equivalence relationship EE. Given α\alpha and vv, I believe there is then a unique α:S/ET\alpha': S/E \to T so that αv=α\alpha' \circ v = \alpha. This map sends an equivalence class [s][s] to the value α(s)\alpha(s), and this is well-defined because if s,t[s]s,t \in [s] then α(s)=α(t)\alpha(s) = \alpha(t).

I believe that the set SS together with the equivalence relationship EE induces a groupoid. The objects of the groupoid are the elements of SS, and there is a morphism from aa to bb if aa is equivalent to bb under EE. I'll refer to this induced category as SES_E. We can also view TT as a discrete category, where the objects are the elements of TT. Then a functor α:SET\alpha: S_E \to T is a function from the set SS to the set TT such that if there is a morphism m:abm: a \to b, then α(a)=α(b)\alpha(a) = \alpha(b). So, a function α:ST\alpha: S \to T that is compatible with an equivalence relationship on EE corresponds to a functor α:SET\alpha: S_E \to T.

We can also view S/ES/E as a discrete category. I think S/ES/E and SES_E are equivalent categories, with v:SES/Ev: S_E \to S/E and some inclusion functor u:S/ESEu: S/E \to S_E (which sends each equivalence class to an element in that equivalence class) providing an equivalence.

view this post on Zulip David Egolf (May 26 2023 at 20:08):

So, I think the situation is as follows. We have a functor α:SET\alpha: S_E \to T, and a category S/ES/E which is equivalent to SES_E by an equivalence with data v:SES/Ev: S_E \to S/E and u:S/ESEu: S/E \to S_E. Then there is a unique functor α:S/ET\alpha': S/E \to T so that αv=α\alpha' \circ v = \alpha. I am wondering if this situation generalizes.

My question is this: If v:SSv: S \to S' and u:SSu: S' \to S is an equivalence of categories, and α:ST\alpha :S \to T is a functor, is there a unique α\alpha' so that αv=α\alpha' \circ v = \alpha, or at least αvα\alpha' \circ v \cong \alpha? My guess is the answer is "yes", with ααu\alpha' \cong \alpha \circ u, but I don't understand the algebra for manipulating equivalences well enough to prove this yet.

view this post on Zulip John Baez (May 26 2023 at 20:26):

Everything you said about sets and equivalence relations sounds correct! And before getting into your question, I want to say that a lot of what you did generalizes from Set\mathsf{Set} to other sufficiently nice categories. I believe any [[regular category]] will be good enough.

Let me list some examples, since the general definition is a bit scary! Examples of regular categories include the category of groups or abelian groups or vector spaces or graphs (defined the way category theorists define graphs, aka [[quivers]]).

view this post on Zulip John Baez (May 26 2023 at 20:27):

We can define and work with equivalence relations in any regular category C\mathsf{C}! An equivalence relation on XCX \in \mathsf{C} is a special sort of groupoid internal to C\mathsf{C} - so instead of getting groupoids from equivalence relations the way you just did, we define an equivalence relation to be a special sort of groupoid - but living in C\mathsf{C}, not Set\mathsf{Set}.

In any regular category, given an object XX with an equivalence relation EE on it, we can get a new object X/EX/E.

Furthermore, in any regular category, a morphism f:XYf: X \to Y determines an equivalence relation EE on XX. The naive idea is that elements of XX that get mapped by ff to the same element of YY are equivalent. But we are able to express this idea without mentioning "elements"!

Then we can form the quotient object X/EX/E, and ff becomes equal to the composite of two morphisms:

XX/EY X \to X/E \to Y

The naive idea is that first we scrunch down elements of XX that map to the same element of YY, and then we map them to YY. This idea is made precise here.

view this post on Zulip John Baez (May 26 2023 at 20:34):

TL;DR: while you are interested in connecting equivalence relations on sets to category theory, there is also something else people like to do: generalize the theory of equivalence relations from Set\mathsf{Set} to other categories!

view this post on Zulip John Baez (May 26 2023 at 20:36):

Okay, now your actual question:

David Egolf said:

My question is this: If v:SSv: S \to S' and u:SSu: S' \to S is an equivalence of categories, and α:ST\alpha :S \to T is a functor, is there a unique α\alpha' so that αv=α\alpha' \circ v = \alpha, or at least αvα\alpha' \circ v \cong \alpha? My guess is the answer is "yes", with ααu\alpha' \cong \alpha \circ u, but I don't understand the algebra for manipulating equivalences well enough to prove this yet.

view this post on Zulip John Baez (May 26 2023 at 20:39):

A functor α\alpha' with αv=α\alpha' \circ v = \alpha may not exist. Find a counterexample where all the categories involved have at most 2 objects!

view this post on Zulip John Baez (May 26 2023 at 20:40):

This is just an example of a general lesson: equations between functors are evil; natural isomorphisms are better.

Morality aside, if you are working with equivalences, which are wisely not defined using equations between functors, you will have trouble getting equations to work.

view this post on Zulip John Baez (May 26 2023 at 20:42):

A functor α\alpha' with αvα\alpha' \circ v \cong \alpha does exist, and you guessed what it could be: α=αu\alpha' = \alpha \circ u. Check that this works!

(This equation is not evil since I'm defining α\alpha' this way! [[Definitional equality]] is okay.)

view this post on Zulip John Baez (May 26 2023 at 20:44):

But a functor α\alpha' with αvα\alpha' \circ v \cong \alpha is typically not unique. Morally, that's because uniqueness here would be stating an equation between functors, and that's evil. But it's good to find a small counterexample.

view this post on Zulip John Baez (May 26 2023 at 20:45):

But this is okay, since a functor α\alpha' with αvα\alpha' \circ v \cong \alpha is unique up to natural isomorphism.

view this post on Zulip David Egolf (May 26 2023 at 21:18):

Awesome, thanks for your very interesting response! When I have energy, I'll have to take a look at several of the things you've mentioned, and type up something about them in this thread.

view this post on Zulip David Egolf (May 26 2023 at 22:42):

John Baez said:

A functor α\alpha' with αv=α\alpha' \circ v = \alpha may not exist. Find a counterexample where all the categories involved have at most 2 objects!

Let SS be a category with two isomorphic objects and the minimum of morphisms, and let SS' be category with a single object and just its identity morphism. SS and SS' are equivalent. Now let T=ST=S. We have a functor α\alpha from SS to TT (the identity functor) that has two objects in its image. However, there is only one object in SS' so there can be no functor α:ST\alpha': S \to T so that α=αv\alpha = \alpha' \circ v for some v:SSv: S \to S' that is part of an equivalence of SS and SS'.

It's interesting to notice that we can add or delete objects from an isomorphism class of objects and still obtain an equivalent category.

view this post on Zulip David Egolf (May 26 2023 at 22:52):

John Baez said:

A functor α\alpha' with αvα\alpha' \circ v \cong \alpha does exist, and you guessed what it could be: α=αu\alpha' = \alpha \circ u. Check that this works!

Let α=αu\alpha' = \alpha \circ u. Then αv=(αu)v=α(uv)\alpha' \circ v = (\alpha \circ u) \circ v = \alpha \circ (u \circ v).
And this is where I get stuck. I know that uvIdSu \circ v \cong Id_S, so what I want to say next is that αv=α(uv)α(IdS)=α\alpha ' \circ v = \alpha \circ (u \circ v) \cong \alpha \circ (Id_S) = \alpha.

I'm guessing that for functors in general if FGF \cong G then HFHGH \circ F \cong H \circ G. I'll have to draw some commutative squares for natural isomorphisms and see if I can check this, though!

view this post on Zulip John Baez (May 26 2023 at 23:49):

David Egolf said:

It's interesting to notice that we can add or delete objects from an isomorphism class of objects and still obtain an equivalent category.

Yes. In fact that's the only way to get equivalent categories.

view this post on Zulip John Baez (May 26 2023 at 23:53):

David Egolf said:

I'm guessing that for functors in general if FGF \cong G then HFHGH \circ F \cong H \circ G. I'll have to draw some commutative squares for natural isomorphisms and see if I can check this, though!

This is definitely a good thing to show! Here's one way to approach it: if you have functors F,G:CDF,G: \mathsf{C} \to \mathsf{D}, a natural transformation α:FG\alpha : F \Rightarrow G, and a functor H:DEH: \mathsf{D} \to \mathsf{E} you can cook up a natural transformation

Hα:HFHG H \bullet \alpha: H \circ F \to H \circ G

This trick is called [[whiskering]] and you can show it obeys

H(αβ)=(Hα)(Hβ) H \bullet (\alpha \beta) = (H \bullet \alpha)(H \bullet \beta)

Here I'm using plain old juxtaposition to denote composition of natural transformations.

view this post on Zulip John Baez (May 26 2023 at 23:54):

I hope you see why this implies what you're trying to show now.

view this post on Zulip John Baez (May 26 2023 at 23:56):

After you learn how to compose functors and how to compose natural transformations, the next thing to study is whiskering of functors by natural transformations, and the rules obeyed by whiskering. Above I'm talking about "right whiskering", but there's also "left whiskering". Once you have all this material under control you'll be able to do a lot with functors and natural transformations!

view this post on Zulip Mike Shulman (May 27 2023 at 10:51):

John Baez said:

We can define and work with equivalence relations in any regular category C\mathsf{C}! An equivalence relation on XCX \in \mathsf{C} is a special sort of groupoid internal to C\mathsf{C} - so instead of getting groupoids from equivalence relations the way you just did, we define an equivalence relation to be a special sort of groupoid - but living in C\mathsf{C}, not Set\mathsf{Set}.

In any regular category, given an object XX with an equivalence relation EE on it, we can get a new object X/EX/E.

Furthermore, in any regular category, a morphism f:XYf: X \to Y determines an equivalence relation EE on XX. The naive idea is that elements of XX that get mapped by ff to the same element of YY are equivalent. But we are able to express this idea without mentioning "elements"!

Then we can form the quotient object X/EX/E, and ff becomes equal to the composite of two morphisms:

XX/EY X \to X/E \to Y

So, the precise conditions on the category here are a bit confusing.

  1. We can define internal equivalence relations (sometimes called [[congruences]]) in any category with finite limits.
  2. To construct the quotient X/EX/E of an arbitrary internal equivalence relation, the category has to be not just regular but a (Barr) [[exact category]].
  3. However, the equivalence relation determined by a morphism ff (sometimes called its [[kernel pair]]) exists in any category with finite limits, and it has a quotient in any regular category.

Essentially, a regular category is one that has well-behaved "image factorizations" XX/EYX \twoheadrightarrow X/E \hookrightarrow Y, which in particular entails that the intermediate object X/EX/E is the quotient of the kernel pair of the morphism. But it may not have quotients of arbitrary equivalence relations that don't arise as the kernel pair of anything.

view this post on Zulip David Egolf (May 28 2023 at 20:58):

John Baez said:

David Egolf said:

I'm guessing that for functors in general if FGF \cong G then HFHGH \circ F \cong H \circ G. I'll have to draw some commutative squares for natural isomorphisms and see if I can check this, though!

This is definitely a good thing to show! Here's one way to approach it: if you have functors F,G:CDF,G: \mathsf{C} \to \mathsf{D}, a natural transformation α:FG\alpha : F \Rightarrow G, and a functor H:DEH: \mathsf{D} \to \mathsf{E} you can cook up a natural transformation

Hα:HFHG H \bullet \alpha: H \circ F \to H \circ G

This trick is called [[whiskering]] and you can show it obeys

H(αβ)=(Hα)(Hβ) H \bullet (\alpha \beta) = (H \bullet \alpha)(H \bullet \beta)

Here I'm using plain old juxtaposition to denote composition of natural transformations.

Assuming that these categories H,F,GH,F,G are small categories, so that they are objects in the strict 2-category Cat\mathsf{Cat}, we have a notion of horizontal composition of natural transformations available to us. I tried setting Hα:HFHGH \bullet \alpha: H \circ F \to H \circ G as idH(αβ)id_H * (\alpha \circ \beta) where idHid_H is the identity natural transformation from HH to HH, * denotes horizontal composition, and \circ denotes vertical composition. Then I think I was able to show that H(αβ)=(Hα)(Hβ)H \bullet (\alpha \beta) = (H \bullet \alpha) \circ (H \bullet \beta) is implied by the fact that horizontal composition is a functor. (I think this is a special case of the interchange law).

Now we want to show that if FGF \cong G then HFHGH \circ F \cong H \circ G. Since FF and GG are naturally isomorphic, there is an isomorphism ϕ:FG\phi: F \to G with an inverse ϕ1:GF\phi^{-1}: G \to F. If we use the interchange law (or what we just figured out about whiskering) we see that idH(ϕ1ϕ)=(idHϕ1)(idHϕ)id_H * (\phi^{-1} \circ \phi) = (id_H * \phi^{-1}) \circ (id_H * \phi). Using the functoriality of horizontal composition, we find that idH(ϕ1ϕ)=idHidF=idHFid_H * (\phi^{-1} \circ \phi) = id_H*id_F = id_{H \circ F}. That's half of what we need to do to show that HGHFH \circ G \cong H \circ F. The other half should follow analogously by composing ϕ\phi after ϕ1\phi^{-1}.

view this post on Zulip David Egolf (May 28 2023 at 21:00):

Horizontal composition has always scared me. So it's good to start getting over that fear a bit. It seems very useful!

view this post on Zulip John Baez (May 28 2023 at 21:07):

Yes, all this looks good!

view this post on Zulip John Baez (May 28 2023 at 21:09):

When you understand the rules governing horizontal and vertical composition of natural transformations - there aren't many! - and the rules governing whiskering - which is a special case! - then you're really up and running when it comes to dealing with Cat\mathbf{Cat}.

(Your remarks about small categories is not really relevant here; all this stuff works for large categories too, you just have to pay the cops a bribe to let you do it.)