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: how to work with composable sequences of arrows of a cat?


view this post on Zulip Francesco Bilotta (May 16 2021 at 15:40):

Suppose I am given a (small) category $\mathcal{C}$.
I would like some ideas about what structure is enjoyed by the sequences of composable arrows of $\mathcal{C}$.
I heard about the nerve construction, showing that sequences of composable arrows arrange in a simplicial complex, giving a topological model of the category. This is thanks to compositionality, in the sense that given two arrows $f$ and $g$ we get a two simplex having $f,g$ and $fg$ as faces, for instance.
This is really nice but I would like to know if we can have sequences of composable encoded (as objects or morphism or otherwise) in another category $\mathsf{Seq}(\mathcal{C})$, in order to have a kind of semantical place to talk about them. Moreover I would like to consider possibly infinite composition sequences.
What I thought is to consider the functor category:
NopC\mathbb{N}^{op}\to\mathcal{C}
But I would be curious about other way of reasoning about the same data.

view this post on Zulip Jade Master (May 16 2021 at 16:21):

What you might want is the free category on the underlying graph of C. This will have objects given by objects of C and a morphism from x to y will be a sequence of composable morphisms in C starting in x and ending in y.

view this post on Zulip Francesco Bilotta (May 16 2021 at 18:01):

Thanks, that would indeed be the idea if C was simply a graph, but C is already a category, so I don't clearly see which information I would add doing so

view this post on Zulip Amar Hadzihasanovic (May 16 2021 at 18:09):

Jade is right, you would get what you are asking for except for the “infinite sequences” part.

There is an adjunction FUF \dashv U between the category of small categories and the category of directed graphs/quivers; FF builds the “free category on the graph” and UU takes the “underlying graph” of a category. Jade is suggesting that you consider FUCFU\mathcal{C} for a small category C\mathcal{C}. A morphism in FUCFU\mathcal{C} is precisely a (finite) sequence of composable morphisms in C\mathcal{C}. You get its composite through the counit of the adjunction ϵC:FUCC\epsilon_\mathcal{C}: FU\mathcal{C} \to \mathcal{C}.

view this post on Zulip Mike Shulman (May 16 2021 at 18:13):

In fact you can use FUFU to build a whole "comonad resolution" of C\mathcal{C} that generates a simplicial category.

view this post on Zulip Francesco Bilotta (May 16 2021 at 18:41):

@Amar Hadzihasanovic , thanks, it absolutely makes sense: I read @Jade Master comment too quickly.
@Mike Shulman, you mean iterating the construction to get something like FUFUCFUϵCFUCϵCC\dots FUFUC\xrightarrow{FU\epsilon_C}FUC\xrightarrow{\epsilon_C}C ?
where can I read about it ? It seems interesting

view this post on Zulip Fawzi Hreiki (May 16 2021 at 18:43):

It's called the Bar resolution

view this post on Zulip Fawzi Hreiki (May 16 2021 at 18:43):

Mac Lane in his chapter on monoidal categories is a good introduction

view this post on Zulip Francesco Bilotta (May 16 2021 at 18:45):

Thanks!

view this post on Zulip Fawzi Hreiki (May 16 2021 at 18:49):

The nLab page is also pretty good. By the way, this works not just for monads but for any monoid in a monoidal category. This is because the augmented simplex category Δa={[1],[0],[1],[2],...}\Delta_a = \{[-1], [0], [1], [2], ...\} is the free monoidal category on a monoid so any such monoid gives you a simplicial object in this way.

view this post on Zulip Francesco Bilotta (May 17 2021 at 07:54):

Since the construction of the free category on a graph has been mentioned, I take advantage to ask a curiosity about it.
Obviously isomorphic graphs are sent to isomorphic categories by the free functor, and I think I also heard somewhere that it reflects equivalence of categories to isomorphism of graphs.
Anyhow, we often compare graphs with other notions than functional isomorphism. For instance, what about bisimilar graphs? Can we obtain a relation between the free categories in this case ? I know we can formalize the category of graphs and bisimilarity in terms of coalgebra, but I never saw this problem addressed.

view this post on Zulip Fawzi Hreiki (May 17 2021 at 08:32):

What is bisimilarity of graphs?

view this post on Zulip Francesco Bilotta (May 17 2021 at 09:06):

Let (G,→) be a graph. A relation R on G is a bisimulation if the following holds: whenever x R y,
If x → x′, then there is some y → y′ such that x′ R y′.
If y → y′, then there is some x → x′ such that x′ R y′.
A bisimulation between two graphs G,G' is a bisimulation on their disjoint union G+G'.
Two graphs are bisimilar if there exist a bisimulation which includes all their vertices.
I think that you may equivalent think a bisimulation between two graphs as the graph of a zig-zag morphism of graph: one which not only preserves but also reflects arrows.
Here is further explanation https://plato.stanford.edu/entries/nonwellfounded-set-theory/#3

view this post on Zulip Francesco Bilotta (May 17 2021 at 09:19):

For instance, the graph with one point and one self-arrow
$$*\circle$$
should be bisimilar to the graph
0→1→ 2→...
via the relation:
{(,0),(,1),(,2),...,(,n),...}\{(*,0),(*,1),(*,2),...,(*,n),...\}

view this post on Zulip Jade Master (May 17 2021 at 16:19):

It's true that if f:GHf:G \to H gives an isomorphism of free categories F(f):F(G)F(H)F(f) : F(G) \to F(H) then f is an iso of graphs but it's not true that every isomorphism F(G)F(H)F(G) \to F(H) gives an Isomorphism between their underlying graphs... isomorphisms of categories are more general.

view this post on Zulip Jade Master (May 17 2021 at 16:23):

If your category of graphs is set up right, then simulations will just be morphisms and a bisimulation between G and H will be a span of graphs GAHG \leftarrow A \to H. Maybe you also want to say that the two morphisms in this span are surjective or some other condition.

view this post on Zulip Jade Master (May 17 2021 at 16:25):

If bisimulations are defined this way then you can hit it with the free category functor to get a span of categories F(G)F(A)F(H)F(G) \leftarrow F(A) \to F(H). Functoriality of the morphisms in this span say that the bisimulation actually preserves paths in G and H.

view this post on Zulip Martti Karvonen (May 17 2021 at 16:47):

Jade Master said:

It's true that if f:GHf:G \to H gives an isomorphism of free categories F(f):F(G)F(H)F(f) : F(G) \to F(H) then f is an iso of graphs but it's not true that every isomorphism F(G)F(H)F(G) \to F(H) gives an Isomorphism between their underlying graphs... isomorphisms of categories are more general.

Do you have an example of this? Free categories are funny in that you can recognize the edges of the original graphs as those morphisms that don't admit nontrivial factorizations, so I wouldn't be surprised if any isomorphism would let you recover an isomorphism of graphs as well

view this post on Zulip Fawzi Hreiki (May 17 2021 at 17:19):

Are there any examples of isomorphisms of free categories which don't give isomorphisms of their underlying graphs?

view this post on Zulip Jade Master (May 17 2021 at 17:29):

@Martti Karvonen oh yeah you're right. I should have said equivalence of categories. An isomorphism of categories must be a bijection on objects and a bijection on morphisms. If it sends an edge to an identity then it's not injective and if it sends an edge to a composite then it's not surjective.

view this post on Zulip Kenji Maillard (May 17 2021 at 17:44):

Aren't isomorphic objects in a free category necessarily equal ? (so that an equivalence between free categories is actually an isomorphism)

view this post on Zulip Jade Master (May 17 2021 at 18:02):

Okay okay what I was really thinking of was a homotopy equivalence between their nerves lol it is a big leap

view this post on Zulip Tom Hirschowitz (May 18 2021 at 05:02):

Jade Master said:

If your category of graphs is set up right, then simulations will just be morphisms and a bisimulation between G and H will be a span of graphs GAHG \leftarrow A \to H. Maybe you also want to say that the two morphisms in this span are surjective or some other condition.

Not quite, I think. Another way to define bisimulations of graphs is:

view this post on Zulip Tom Hirschowitz (May 18 2021 at 05:07):

I'd have to think a bit more to answer @Francesco Bilotta's question, but there is a notion of bisimilarity in categories, obtained by taking weak right orthogonality w.r.t. the image of ss by the "free category" functor. This will probably be similar to weak bisimilarity, in the sense that it will be insensitive to "non-branching" arrows, so my guess is bisimilarity will be preserved, but not reflected by the "free cat" functor.

view this post on Zulip John Baez (May 18 2021 at 05:32):

@Francesco Bilotta wrote:

Obviously isomorphic graphs are sent to isomorphic categories by the free functor, and I think I also heard somewhere that it reflects equivalence of categories to isomorphism of graphs.

Ignoring equivalence for a minute and just thinking about the category of categories, "FF reflects isomorphism" means: if f:GHf: G \to H is a morphism of graphs such that F(f):F(G)F(H)F(f): F(G) \to F(H) is an isomorphism, than ff is an isomorphism.

I will prove this true by proving something stronger. I'll show that α:F(G)F(H)\alpha: F(G) \to F(H) is any isomorphism, it equals F(f)F(f) for some isomorphism of graphs f:GHf: G \to H.

Jade Master said:

it's not true that every isomorphism F(G)F(H)F(G) \to F(H) gives an Isomorphism between their underlying graphs...

I'll prove you wrong. :smiling_devil:

Given a free category on a graph, say CC, we can figure out what graph GG it's free on:

Now suppose α:F(G)F(H)\alpha: F(G) \to F(H) is an isomorphism between categories that are free on graphs.

Since α\alpha is a bijection on objects, it gives a bijection between vertices of GG and vertices of HH.

How about morphisms?

α\alpha sends identity morphisms to identity morphisms. Because α\alpha is a bijection on morphisms, α\alpha thus sends nonidentity morphisms to nonidentity morphisms.

Thus, α\alpha sends morphisms that can be factored as a product of two nonidentity morphisms to morphisms that can be so factored.

Since α\alpha is a bijection on morphisms, it must therefore send morphisms that can't be factored as a product of two nonidentity morphisms to morphisms that can't be so factored.

Thus, α\alpha sends prime morphisms of F(G)F(G) to prime morphisms of F(H)F(H).

Thus α\alpha sends edges of GG to edges of HH.

Since the same is true of α1\alpha^{-1}, α\alpha must be a bijection between edges of GG and edges of HH.

With a bit more work, we see that α=F(f)\alpha = F(f) for some isomorphism of graphs f:GHf: G \to H. This ff is just the restriction of α\alpha to vertices (which are objects) and edges (which are prime morphisms).

view this post on Zulip Francesco Bilotta (May 18 2021 at 06:49):

Thanks to all for the interesting discussion!

view this post on Zulip John Baez (May 18 2021 at 14:24):

I just fixed my proof... it had a mistake.

view this post on Zulip Jade Master (May 18 2021 at 14:37):

@Tom Hirschowitz Are you using the "open map" definition of simulation. I.e. a map is open if it has the path lifting property? I had a long conversation on here about it and also did a lot of thinking and I realized that this definition of open map is pretty much the usual definition of morphism in Grph.

view this post on Zulip Jade Master (May 18 2021 at 14:38):

By usual morphism I mean a function between edges and a function between vertices which preserve source and target.

view this post on Zulip Jade Master (May 18 2021 at 14:39):

@John Baez thanks :upside_down:

view this post on Zulip Jade Master (May 18 2021 at 14:43):

The "pretty much" aspect is that your definition of open depends on what sorts of graphs you decide will be paths

view this post on Zulip Tom Hirschowitz (May 18 2021 at 16:12):

@Jade Master I think there must be a misunderstanding somewhere: the map ss above (from the walking vertex to the walking arrow, picking the source) is one of your usual graph maps, but is not open in my sense, because that would in particular entail that it has a section.

To answer your question, the usual definition of open map is, iirc, for rooted graphs. What I'm using here is a non-rooted adaptation, which is in fact simpler because there is only one generating cofibration.