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: theory: category theory

Topic: An Inverse Functor Shortcut


view this post on Zulip Chad Nester (May 29 2024 at 12:35):

Here's something fun: Suppose φ\varphi and φ1\varphi^{-1} are mutually inverse mappings of the sort that might be functors (if they preserve composition, identites, and (co)domains). Then if φ\varphi is a functor so is φ1\varphi^{-1}.

For the proof, we have:

I'm wondering if this is an instance of some more general phenomenon, and if so which one!

view this post on Zulip Chad Nester (May 29 2024 at 12:41):

This feels like something that everyone might know, but I've only learned it today.

view this post on Zulip Ralph Sarkis (May 29 2024 at 12:43):

A natural transformation is an isomorphism if and only if each of its components are isomorphisms, and the components of the inverse transformation are the inverses of the corresponding components. I believe that once you can view your "mappings" as morphisms of models in some functorial semantics, then those will be natural transformations, so if they have an inverse, that inverse will also be natural, hence it will also be a "mapping".

view this post on Zulip Rémy Tuyéras (May 29 2024 at 12:57):

I'm wondering if this is an instance of some more general phenomenon, and if so which one!

I think this appears less mysterious when you regard functions as binary relations. Then, you can observe that a bijective mapping is invariant under

(x,y)(y,x)(x,y) \mapsto (y,x)

Since the axioms for functors are symmetric (i.e. invariant under the symmetry above), then your observation follows.

view this post on Zulip Rémy Tuyéras (May 29 2024 at 13:02):

Note that the statement that the axioms are invariant under ... is to be defined rigorously to match your obversation, though

view this post on Zulip John Baez (May 29 2024 at 13:12):

Chad Nester said:

I'm wondering if this is an instance of some more general phenomenon, and if so which one!

People are most familiar with the phenomenon you pointed out for algebras of a single-sorted [[Lawvere theory]], e.g.:

and so on. This is why some books define an isomorphism of groups (for example) to be a homomorphism of groups whose underlying function is 1-1 and onto: it's then automatic that the inverse function is a homomorphism, and some books include this as a theorem.

view this post on Zulip Morgan Rogers (he/him) (May 29 2024 at 13:23):

I think this works for algebras of an arbitrary monad?

view this post on Zulip Chad Nester (May 29 2024 at 13:24):

I see! We can recover this as an instance of a similar fact about natural transformations, since functors arise as the model morphisms (which are natural transformations) when working with the theory of categories. I don't think the theory of categories is actually a Lawvere theory, but the idea still works. I think this is also what Ralph is saying.

view this post on Zulip Morgan Rogers (he/him) (May 29 2024 at 13:25):

If (A,α),(B,β)(A,\alpha),(B,\beta) are algebras for TT and h:ABh:A \to B is a morphism in the base category which is an isomorphism then hh is an algebra hom iff h1h^{-1} is.

view this post on Zulip Morgan Rogers (he/him) (May 29 2024 at 13:26):

(and dually this works for coalgebras, and doesn't actually use any of the monad/comonad structure so applies to algebras/coalgebras of functors)

view this post on Zulip Morgan Rogers (he/him) (May 29 2024 at 13:27):

That saves handling any of the details of Lawvere theories, at any rate ;)

view this post on Zulip Chad Nester (May 29 2024 at 13:28):

I like that it works in settings without a theory/monad correspondence.

view this post on Zulip Ralph Sarkis (May 29 2024 at 13:29):

Chad Nester said:

I don't think the theory of categories is actually a Lawvere theory

True, maybe what I said is still true for lax natural transformations? (The theory of categories is a partial multi-sorted Lawvere Theory as per Example 6.3 in your paper.)

view this post on Zulip Todd Trimble (May 29 2024 at 13:29):

Morgan Rogers (he/him) said:

I think this works for algebras of an arbitrary monad?

Sure, it's basically saying that the forgetful functor from the category of algebras is conservative.

view this post on Zulip Todd Trimble (May 29 2024 at 13:33):

Ralph's comments can then be fitted into this observation.

view this post on Zulip Todd Trimble (May 29 2024 at 13:35):

Essential algebraicity will not be enough though, not without some qualification what is meant. The theory of posets is essentially algebraic, but the usual forgetful functor from posets to sets is far from conservative.

view this post on Zulip Chad Nester (May 29 2024 at 13:38):

If we take categories with finite limits as our notion of essentially algebraic theory then the "model morphisms are natural transformations" thing should give us what we want, so I think it's true.

view this post on Zulip John Baez (May 29 2024 at 13:49):

Todd Trimble said:

Essential algebraicity will not be enough though, not without some qualification what is meant. The theory of posets is essentially algebraic, but the usual forgetful functor from posets to sets is far from conservative.

Just in case anyone found that a bit too heavy duty:

The map from the 2-element poset 010 \le 1 to the poset where 010 \le 1 and also 101 \le 0 is a map of posets, and its underlying function is invertible, but the inverse is not a map of posets. So the forgetful functor from posets to sets doesn't reflect isomorphisms. So posets can't be algebras of any Lawvere theory (in Set).

It's only when I understood this that I learned how to prove easily believable results like "posets are not the algebras of any Lawvere theory", or (using a similar trick) "topological spaces are not the algebras of any Lawvere theory".

view this post on Zulip Rémy Tuyéras (May 29 2024 at 15:13):

I think this appears less mysterious when you regard functions as binary relations. Then, you can observe that a bijective mapping is invariant under

(x,y)(y,x)(x,y) \mapsto (y,x)

Since the axioms for functors are symmetric (i.e. invariant under the symmetry above), then your observation follows.

Chad Nester Here is some clarification of my statement:

Let RA×BR\subseteq A\times B be a binary relation and let nn be a positive integer. Consider a pair of functions as follows:
F:AnAF:A^n \to A
G:BnBG:B^n \to B

We say that RR is an (F,G)(F,G)-morphism if the following function is well-defined:

RnRR^n \to R
(xi,yi)(F(x),G(y))(x_i,y_i) \mapsto (F(\overline{x}),G(\overline{y}))

Note that RR is an (F,G)(F,G)-morphism iff the symmetric relation RopR^{\mathsf{op}} is a (G,F)(G,F)-morphism.

My comment was saying that your observation boils down to noticing the following equivalence:

RR and RopR^{\mathsf{op}} are functions iff RR is a bijection.