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: reading & references

Topic: Model comparison via 2-cells


view this post on Zulip Spencer Breiner (Oct 29 2025 at 13:47):

In category theory, and specifically applied category theory, we often structure models as functors, with the domain of the functor representing syntax, the codomain representing semantics, and the functor itself assigning semantic interpretations to syntactic elements.

I am looking for prior work which takes this (or a similar perspective) and uses natural transformations (or other 2-cells) to structure model comparisons. I would appreciate any pointers or worked examples, especially things that are closer to the applied end of the spectrum (e.g., probability, dynamics).

view this post on Zulip Kevin Carlson (Oct 29 2025 at 17:11):

Well, I guess you already know about ologs and algebraic profunctors, Spencer. Double Lawvere theories also do this. But I’m somehow guessing these aren’t what you want.

view this post on Zulip Spencer Breiner (Oct 29 2025 at 19:02):

I'm mostly looking for references that I can pass on to students. Ologs are a good example, but I don't know a good worked example that takes this perspective.

Something with a quantitative element would also be nice. Perrone's paper on "Markov categories & entropy" is another that touches on this issue.

view this post on Zulip Kevin Carlson (Oct 29 2025 at 19:08):

I'm not sure I'm catching what you mean. You don't think most ologs work reflects the functorial semantics perspective?

view this post on Zulip James Deikun (Oct 29 2025 at 19:10):

I think most ologs work concentrates on migrations, which are more like base change, rather than homomorphisms between models of the same olog.

view this post on Zulip Spencer Breiner (Oct 29 2025 at 19:37):

I'm saying that ologs would provide a good example of this perspective, if I knew of good references to point at that work through this idea. Most references I know talk about things like graph homomorphisms, but there's a pretty big conceptual step to recognize how to use the 2-cells for this purpose.

One place that I expect to find something, but don't know quite where to look, is in the literature on coalgebras and bisomulation.

view this post on Zulip Nathan Corbyn (Oct 29 2025 at 21:00):

I think graph homomorphisms are a great example and have found (computer science) students very receptive to it

view this post on Zulip Evan Patterson (Oct 30 2025 at 01:06):

With apologies for suggesting my own work, my thesis takes this perspective on statistics: statistical models are viewed as Markov functors from syntactical Markov categories (with bells and whistles) into a category of Markov kernels, and morphisms between those (monoidal natural transformations) are studied as homomorphisms of statistical models. A number of concrete examples are worked out in detail. A fun thing is computing the automorphism groups of some classical kinds of models, such as linear models and linear mixed models.

view this post on Zulip Noah Chrein (Oct 30 2025 at 17:23):

I prefer to use the words "schema" and "foundations" for the domain and codomains of models. Just because "syntax" and "semantics" is a dichotomy I think of in terms of the type-theory/category-theory relationship.

In general, I think this form of model structural specification falls under the umbrella of functorial semantics. I've seen this kind of modeling in the context of lawvere theories, GATs, universal algebra, Charles Ereshmann talked a lot about this in terms of signatures, anything from higher category theory that involves a "walking object" W so that the structure of objects in X is hom(W,X). A lot of Riehl/Verity's elements book uses this mindset, for example this paper talks about the walking adjunction and monad: RV15.

As a potential new perspective, your comparison natural transformations, under the right meta-theory lens, can also be thought of as encoding functors, where you use one model as a schema, and another model as the foundations. ie a natural transformation between appropriate models can be thought of as a 2-model.

view this post on Zulip Noah Chrein (Oct 30 2025 at 17:37):

However, sometimes the direct natural transformations are not the correct morphisms for your model. For example see the introduction to Patterson's work here: P24. This necessitates a change at a higher meta-theory level

view this post on Zulip James Deikun (Oct 30 2025 at 17:37):

I don't think this subject really needs more idiosyncratic (use of) terminology, which includes the way you're using "2-model". A "2-model" normally refers to a model of a 2-dimensional theory, a "2-theory", not a model of a theory that "lives in the second dimension".

view this post on Zulip Noah Chrein (Oct 30 2025 at 17:39):

What would you call a model that requires two levels of functorial specification. e.g. like M:Cat(A,B)(A,B)M:Cat_*(\mathbb A,\mathbb B)(A,B)?

view this post on Zulip James Deikun (Oct 30 2025 at 17:41):

It's actually more of a 0-model, because the elements of Cat(A,B)(A,B)Cat_*(\mathbb A,\mathbb B)(A,B) are (tuples of) functions, not functors.

view this post on Zulip Noah Chrein (Oct 30 2025 at 17:44):

if * = 2 and B=Cat\mathbb B = Cat we have Cat2(A,Cat)Cat_2(\mathbb A, Cat) are 2-functors and Cat2(A,Cat)(A,B)Cat_2(\mathbb A, Cat)(A,B) are diagrams of 1-functors

view this post on Zulip Noah Chrein (Oct 30 2025 at 17:45):

I apologize if my terminology is not so standard, thank you for feedback

view this post on Zulip James Deikun (Oct 30 2025 at 17:49):

I thought by "*" you meant "with products", because the standard meaning of "pointed" didn't work in context. Categories of 2-categories are usually known as 2-Cat2\text -\mathbf{Cat} (sometimes with a subscript or superscript for strictness) or sometimes BiCat\mathbf{BiCat} if you are talking about weak 2-categories specifically (but that terminology is somewhat obsolescent).

view this post on Zulip James Deikun (Oct 30 2025 at 17:50):

Anyway, in the case you speak of, then what you're talking about is an ordinary model or 1-model.

view this post on Zulip Noah Chrein (Oct 30 2025 at 17:50):

yes, I apologize for not introducing my perspective, I view CatCat_* to be the place holder for arbitrary structured higher categories, i.e. some kind of not-yet-specified higher doctrine

view this post on Zulip Noah Chrein (Oct 30 2025 at 17:51):

so what would you call an M:Cat3(A,Cat2)(A,B)(a,b)M:Cat_3(\mathbb A, Cat_2)(A,B)(a,b)?

view this post on Zulip James Deikun (Oct 30 2025 at 17:51):

Anyone else who sees that is going to think you mean pointed categories and get confused.

view this post on Zulip James Deikun (Oct 30 2025 at 17:52):

That would be a 2-model.

view this post on Zulip James Deikun (Oct 30 2025 at 17:52):

Oh, wait, no it wouldn't, I missed the extra set of parens, it would be a 1-model again.

view this post on Zulip Noah Chrein (Oct 30 2025 at 17:53):

okay so M:Cat3(A,Cat2)(A,B)M:Cat_3(\mathbb A, Cat_2)(A,B) is a 2-model? :face_with_spiral_eyes:

view this post on Zulip Noah Chrein (Oct 30 2025 at 17:55):

So you want to refer to the ultimate codomain object dimensionality as the n in n-model? I have been loosely using the term for counting how many layers of functorial semantics one needs to specify a structure

view this post on Zulip James Deikun (Oct 30 2025 at 17:55):

Yes. If "model" has a numeric prefix, it refers to the nature of the model, whether it is composed of functions (0-functors), functors, 2-functors, etc, not to the context in which it is introduced. This contrasts with a numeric prefix on "morphism" or "transfor".

view this post on Zulip James Deikun (Oct 30 2025 at 17:56):

...but agrees with a numeric prefix on "category" or "functor".

view this post on Zulip Noah Chrein (Oct 30 2025 at 17:57):

Sorry to take over this thread I will ask one more question of you James, thank you for your feedback, if I wanted to name these models not by their categorical dimensionality but rather how many layers of iterated functorial semantics it takes to specify them, would you have any suggestions in mind as to what to name it?

view this post on Zulip James Deikun (Oct 30 2025 at 18:01):

The best I can think of is "(k-1)-morphism of [n-]models", although this deemphasizes the analogy between the lower-dimensional and higher-dimensional layers.

view this post on Zulip James Deikun (Oct 30 2025 at 18:04):

If you only want to go to 4 layers at most, you can use the sequence "doctrine, theory, model, homomorphism".

view this post on Zulip James Deikun (Oct 30 2025 at 18:08):

If neither is something you can work with, then and only then you should invent idiosyncratic terminology, but make sure you read enough of the related literature to avoid overlapping with something established. (It can help to google your prospective terms.)

view this post on Zulip Noah Chrein (Oct 30 2025 at 19:40):

There's a sense in which the number of layers is the dimensionality:
M:Catn(A0,B0)...(Ak1,Bk1)M:Cat_n(A_0,B_0)...(A_{k-1},B_{k-1}) \sim (diagram)

view this post on Zulip Noah Chrein (Oct 30 2025 at 19:41):

M is a k-globe of n-categories, n-functors, n-natural transformations, n- modifications, etc up to n- (k-transfors)

view this post on Zulip Noah Chrein (Oct 30 2025 at 19:41):

so k here is the globular dimension, I think this lines up with the k that you used above.