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: Algebraic theories


view this post on Zulip Jan Pax (Nov 03 2023 at 10:24):

I would like to understand in this book by Rosicky Adamek Vitale: Algebraic Theories_ A categorical introduction to general algebra (2009), on the page 7 what do the morphisms in T\cal T correspond to in the sense of universal algebra in the sense of Birkhoff. I understand though that SetS\mathbb{Set}^{S^*} are SS-sorted sets, but I do not understand it for a more general T\cal T. What are the objects and morphisms in T\cal T send to by finite product preserving functors to SetSet (and correspond to) ?

view this post on Zulip Ralph Sarkis (Nov 03 2023 at 11:01):

The name they give to T\mathcal{T} is algebraic theory. That name is used in universal algebra to refer to a signature Σ\Sigma coupled with a set of equations between Σ\Sigma-terms. So you should think of T\mathcal{T} as describing the operations allowed in your algebras as well as their constraints. It can be difficult to see how exactly these are represented in the objects and morphisms of T\mathcal{T}.

view this post on Zulip Ralph Sarkis (Nov 03 2023 at 11:01):

Sometimes, people restrict their attention to theories T\mathcal{T} which are generated by a single object, meaning the objects of T\mathcal{T} are natural numbers and the product is addition. This makes it easier to see because a finite product preserving functor TSet\mathcal{T} \to \mathbf{Set} will send 11 to some set AA, and the rest will be completely determined as n=1+n+1n = 1 + \stackrel{n}{\cdots} + 1 means nn is sent to A×n×A=AnA \times \stackrel{n}{\cdots} \times A = A^n.

Now, a morphism t:nmt: n \to m in T\mathcal{T} will be interpreted as a function t:AnAmt : A^n \to A^m, and you should understand this as an mm -tuple of terms with nn variables. Indeed, tt takes a choice of n inputs in A and computes m outputs in A, and by some properties of the product, you can check this done by mm unrelated computations (this is not necessarily the case in monoidal theories).

view this post on Zulip Ralph Sarkis (Nov 03 2023 at 11:01):

When T\mathcal{T} is not generated by a single-object it can be more complicated to see. I find it easier to think of theories as signatures with equations, but I am sure this depends on what kind of algebras you are trying to present. There are "classical" theories that are disgusting and yet present some simple things (I remember an example that I cannot find right now).

These notes by Awodey and Bauer are way more gentle than Algebraic Theories.

view this post on Zulip Ralph Sarkis (Nov 03 2023 at 11:02):

Now, a morphism t:nmt: n \to m in the theory T\mathcal{T} will be sent to a function t:AnAm\llbracket t \rrbracket : A^n \to A^m , and you understand this as an mm tuple of terms with nn variables. Indeed, t\llbracket t \rrbracket takes any assignment of nn variables into AA (i.e. a function nAn\to A) to mm elements of AA. So it tells you how to compute mm different outputs out of nn inputs from AA. Thanks to the properties of products, you can show that these mm different computations are unrelated so it is actually mm different terms (this is not the case when looking at monoidal theories).

view this post on Zulip Ralph Sarkis (Nov 03 2023 at 11:02):

There is a missing message that could not compile for some reason, let me try again. OK kinda fixed it. But there is a sentence where I cannot put dollar signs around 'n' for some reason. It should be: tt takes a choice of nn inputs in AA and computes mm outputs in AA
Why this compiles here but not in my earlier message I don't know.

view this post on Zulip Ralph Sarkis (Nov 03 2023 at 11:21):

Well now my older paragraph has reappeared without my doing anything. This is really confusing...

view this post on Zulip Jan Pax (Nov 03 2023 at 15:51):

@Ralph Sarkis Yes, I'm aware of what you say, but my questions was exactly about what you claim that can "be more complicated to see". Could you come up with an example of a T\cal T that would give to me a feeling what some strange morphism in T\cal T could mean in the interpretation of T\cal T,i.e. a functor AA to Set\mathbb {Set} ? In particular T\cal T should not be a single object generated, so try AA and BB generated and the interpretation of a morphism in question in it should be somehow self-explanatory for my question.

view this post on Zulip Kenji Maillard (Nov 03 2023 at 16:05):

For an exemple of a simple theory, yet not generated by asingle sort, what about the theory of a ring together with a module ?
It's a theory Tmod\mathcal{T}_{\text{mod}} whose models are pairs (R,M)(\mathcal{R}, \mathcal{M}) of a ring R\mathcal{R} and an R\mathcal{R}-module M\mathcal{M}. In terms of signature, it is generated by two sorts rr and mm, operations 0,1:r0,1 : \top \to r, +,:(r,r)r+,* : (r,r) \to r, ρ:(r,m)m\rho : (r,m) \to m together with the ring and modules equations. I guess an explicit presentation of Tmod\mathcal{T}_{\text{mod}} can be worked out using freely generated rings and modules.

view this post on Zulip Kevin Arlin (Nov 03 2023 at 16:05):

The simplest typical example of a T\mathcal T that isn't generated by a single object is the theory of "A monoid and a set it acts on." This is generated under finite products by two objects, call them MM and S.S. As in any finite product category with object generators the only interesting morphisms are those with codomain MM and S.S. There are morphisms MkMM^k\to M comprising a full subcategory of T\mathcal T isomorphic to the usual theory of monoids, while there are no morphisms SkSS^k\to S or MkSM^k\to S other than those built from product projections and diagonals. The most interesting part of the theory, then, is the class of morphisms μ:Mk×SS\mu:M^k\times S\to S which, in a model, correspond to the action on an element of SS by kk elements of the monoid M.M.

Anyway, that's my suggested example. If you feel comfortable with the categorical interpretation of single-sorted algebraic theories I hope this gets across how the multi-sorted variant is not really so different. Now, if T\mathcal T's objects weren't freely generated under finite products by any class of objects at all then you'd have something quite unusual-feeling, but that's not a case you're particularly likely to meet in practice.

view this post on Zulip Kevin Arlin (Nov 03 2023 at 16:06):

Ah, @Kenji Maillard, I see we've given basically the same answer across the abelian/non-abelian divide--just a note that Zulip annoyingly insists on double dollar signs for Latex.

view this post on Zulip Ralph Sarkis (Nov 03 2023 at 21:17):

Letting T\mathcal{T} be the category of non-empty finite sets, you find that AlgT\mathbf{Alg}\mathcal{T} is the category of Boolean algebras. Todd nicely explained this in his answer on MO.

view this post on Zulip Jan Pax (Nov 06 2023 at 19:06):

I have 2 more problems with the notion of algebraic theory. Why the requirement of being finite product complete is exactly the right one for this notion ? Second question is in the snippet below in the example 1.10: why the right morphisms in SS-sorted sets go contravariantly: a:kna:k\to n ?
Snímek-obrazovky-2023-11-06-195900.png

view this post on Zulip Ralph Sarkis (Nov 06 2023 at 19:45):

I find it hard to answer your first question intelligently (I am not even convinced of what I am saying).

Functorial semantics (defining algebras as functors) is a very cool idea (thanks Lawvere) and the list of examples in this chapter shows you it encapsulates what lots of people consider to be algebraic. It led to many advances in categorical algebra and categorical logic, so I don't think anyone would say it is not the right notion.

Now, for why it is exactly right, one way I like to think of it is via [[Fox theorem]]. Informally, this theorem says that categories with finite products are preciely the places where you can copy and delete variables without problems. If you think about algebra as manipulating operation symbols and variables on paper (in a 1-dimensional syntax), in particular, copying and deleting variables as it pleases you, then you would expect the categories that embody the syntax for algebra are categories with finite products.

view this post on Zulip Ralph Sarkis (Nov 06 2023 at 20:11):

For the second question, there many ways to see this, I think unrolling what a product-preserving functor TSSet\mathcal{T}_S \rightarrow \mathbf{Set} is and seeing it corresponds to a SS-sorted set would be the most enlightening. In particular, you need to decompose any morphism in TS\mathcal{T}_S as a composition of projections and pairings (what are they in TS\mathcal{T}_S) because these you know are preserved by the functor.

view this post on Zulip Ralph Sarkis (Nov 06 2023 at 20:11):

If you only look at the case S={}S= \{\ast\}, hence TS=N\mathcal{T}_S = \mathcal{N}, you see that a morphism t:n=0n10m1=mt: n = \ast_0\cdots \ast_{n-1} \rightarrow \ast_0\cdots\ast_{m-1} = m is sent to a function AnAmA^n \to A^m that takes (a0,,an1)(a0,,am1)(a_0,\dots, a_{n-1}) \rightarrow (a'_0, \dots, a'_{m-1}) where each aja'_j is equal to some aia_i. You can see this morphism tt as mm terms in the empty signature over nn variables, so each of the mm term is a single variable and aj=aia'_j = a_i if the jj th term is the ii th variable.

view this post on Zulip John Baez (Nov 06 2023 at 20:25):

Jan Pax said:

I have 2 more problems with the notion of algebraic theory. Why is the requirement of being finite product complete exactly the right one for this notion?

Because otherwise you get a different notion! :upside_down: If you want to use infinite products that's fine, but you get a different concept, sometimes called an infinitary algebraic theory. It can be very useful to restrict to products of order at most some cardinal κ\kappa. If you want to use finite limits that's fine too, but you get yet another notion, sometimes called a finite limits theory or essentially algebraic theory. If you want to use arbitrary limits, or limits of diagrams whose cardinality is at most some cardinal, that's also good. All these different notions are important and well-studied.

view this post on Zulip Chris Grossack (they/them) (Nov 07 2023 at 06:08):

Jan Pax said:

Why the requirement of being finite product complete is exactly the right one for this notion ?

The operations we require in our categories tell us what the (co)domains of our function symbols are allowed to be. (For now, let's only allow equational axioms).

So for instance, finite product theories have some basic sorts, and then we allow function symbols from the products of those sorts to each other! For instance with groups multiplication is defined on G×GG \times G, and for the 2-sorted theory of (ring, module) pairs, the action R×MMR \times M \to M is defined on R×MR \times M. So the finite product structure is precisely what's used for the domains of our function symbols.

Contrast this with the finite limit theories (read: essentially algebraic theories) which allow partial operations, defined only on "nice" subsets of products of the basic sorts. For instance, in the definition of a category, composition is defined on {(f,g)dom(f)=cod(g)}A×A\{ (f,g) \mid \text{dom}(f) = \text{cod}(g) \} \subseteq A \times A (where AA is the set of arrows). Notice we need products and equalizers in order to build this domain, so we're using the full finite limit structure!

This story gets more complicated once we start adding relation symbols, but the basic premise that the operations on our (base) category correspond to allowable operations on our basic sorts remains useful intuition

view this post on Zulip Jan Pax (Nov 07 2023 at 10:40):

@Ralph Sarkis Is it correct to say that your (a0,...,an1)(a_0,...,a_{n-1}) are exactly the standard variables (xσ(0),...,xσ(n1))(x_{\sigma(0)},...,x_{\sigma(n-1)}) where each xix_i appears only once so that σ\sigma is a permutation ? Otherwise there might occur some ambiguity in defining the morphism tt. If there were more than 1 variable/term jj th which is the more than 1 ii th variable then tt will not be defined uniquely or correctly or undefined at all ? What is mind-boggling is this sentence: each aja'_j is equal to some aia_i and there might go something wrong in defining tt ? I cannot resolve this.

view this post on Zulip Ralph Sarkis (Nov 07 2023 at 11:00):

These aia_i and aja'_j are elements of AA, so the function defined by (a0,,an1)(a0,,am1)(a_0,\dots, a_{n-1}) \mapsto (a'_0, \dots, a'_{m-1}) is t\llbracket t \rrbracket, i.e. the semantics of tt for some particular algebra NSet\mathcal{N} \to \mathbf{Set}.

view this post on Zulip Ralph Sarkis (Nov 07 2023 at 11:00):

One way people represent terms is t:nm=t0,,tm1t : n \to m = \langle t_0,\dots, t_{m-1} \rangle where each tjt_j is a term over nn variables (we can call them x0,,xn1x_0, \dots, x_{n-1} ). Then the semantics of tt takes an element of (a0,,an1)An(a_0,\dots, a_{n-1}) \in A^n to the mm -tuple whose jj th coordinate is the value of tjt_j when the variables xix_i are assigned value aia_i.

view this post on Zulip Ralph Sarkis (Nov 07 2023 at 11:00):

Since terms are over the empty signature, they will be really simple. For instance x0,x0:32\langle x_0, x_0 \rangle : 3 \to 2 will be interpreted (in some algebra) as the function sending (a0,a1,a2)(a_0,a_1,a_2) to (a0,a0)(a_0,a_0).

view this post on Zulip Tom Hirschowitz (Nov 07 2023 at 11:32):

Jan Pax said:

Why the requirement of being finite product complete is exactly the right one for this notion ?

To complement John's answer, my naive intuition is that, compared to finite limit theories, finite product theories have the nice property that reflexive coequalisers of algebras are well-behaved. To take the monad perspective (and restricting to nice categories), you probably know that forgetful functors from TT-algebras to the base category create limits, but not colimits in general.
The colimits that are created are in fact the ones that TT preserves (this is easy to prove).
In particular: