arXiv:2609.04346cs.FLSep 2026

Manuscript Offprint

arXiv:2609.04346

Languages and Recognition in a Category with Factorisation

Harsh Beohar, Mike Cruchten, Georg Struth

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Language recognition by homomorphisms is a central construction of algebraic language theory. Initially studied for monoids and semigroups, it has subsequently been expanded to other algebraic structures. Our new categorical account is based on fibrations, which have already seen other applications in automata theory. Languages and surjective homomorphisms give indeed rise to two fibrations, and the notion of language recognition is stable under reindexing. We develop this framework in a category with a factorisation system and address two main technical questions in the fibrational setting. First, we provide sufficient conditions under which languages have syntactic quotients (which is a generalisation of syntactic congruences) and we show how such quotients can be described in some concrete cases using a result by Słomiński. Second, we introduce sufficient conditions under which (regular) languages are closed under certain J\mathcal{J}-limits and J\mathcal{J}-colimits.

1 Introduction

Regular languages, their acceptance by finite automata and their recognition by finite monoids are fundamental to computer science. They have been studied from the point of view of combinatorics, universal algebra, logic and increasingly category theory, the language in which much of modern mathematics is written. Categories allow describing automata and languages uniformly using abstract concepts and deriving their properties from general constructions. An early use of categories in automata theory can be found in Goguen's work [20]. Automata internal to a category were introduced by Arbib and Manes [9, 8] and further developed by Adámek and Trnková [5]. More recently, Rutten's coalgebraic perspective on automata [30] has inspired extensive research (cf. [22]). Algebraic language theory, more specifically, studies the recognition of languages by monoid homomorphisms. Categorifications of this approach include Bojańczyk's work on recognition by monads [14] and that of Adámek, Milius and Urbat on recognition by monoid objects in symmetric monoidal closed categories [4], for a few paradigmatic examples.

Our motivation for introducing categorical concepts, and in particular fibrations, to algebraic language theory is slightly different. It is standard to consider languages on the free monoid A∗A^* on an alphabet AA. It is then natural to consider the set of all languages on A∗A^* as a fibre above A∗A^*. Further, languages are usually recognised by monoid homomorphisms from A∗A^*, and such maps can again be modelled as fibres above A∗A^*. These two fibres can then be combined into a single fibre above A∗A^*, which is formed by pairs of languages and monoid homomorphisms recognising the former. Finally, this view can be extended to relate notions of language and recognition with different alphabets. It is, for instance, known that regular languages are closed under inverse images: if h:B∗→A∗h: B^* \to A^* is a monoid homomorphism and L⊆A∗L \subseteq A^* is regular, then so is h−1(L)⊆B∗h^{-1}(L) \subseteq B^*. The proof of this result reveals that, while the inverse image of a language is obviously again a language, recognising maps can be reindexed along hh as well. From a categorical point of view, it seems therefore natural to model this situation in terms of a fibration.

In light of these observations, our main conceptual contribution is a new categorical account of language recognition in terms of Grothendieck fibrations.

Before describing our approach in more detail, we wish to point out that he general idea of using fibrations in automata theory is not new: Melliès and coworkers have used them in language theory [28, 27]; Barr and

Figure

Figure 1: The quotient, language and recognition fibrations.

Wells describe their connection with wreath products in the context of Krohn-Rhodes theory [11]. Our particular use of fibrations for defining algebraic language recognition is, to our knowledge, novel.

Inspired by classical algebraic language theory, we replace monoids by TT-algebras for some monad TT on a category C\mathbb{C} and work with a factorisation structure on C\mathbb{C}. More specifically, we use the left morphisms from the factorisation structure that are also TT-morphisms (in the Eilenberg-Moore category CT\mathbb{C}^T), which we call quotients, as recognisers. We construct a category Q(T)\mathbb{Q}(T) of quotients (Definition 3.1) that can be arranged as a fibration (Proposition 3.2) whenever we assume that TT preserves left morphisms.

Furthermore, we define languages over an algebra simply as characteristic functions into a fixed object Ω\Omega in C\mathbb{C}. This view gives rise to a ‘language’ fibration L(T)\mathbb{L}(T) (Definition 4.2) over the Eilenberg-Moore category CT\mathbb{C}^T. Finally, we define a ‘recognition’ fibration R(T)\mathbb{R}(T) (Definition 4.4) with respect to the language and quotient fibrations, such that its fibres over any algebra encode the recognition of a language by a quotient (Definition 4.3). This setup can be summarised as in Figure 1, in which each arrow in the diagram corresponds to a fibration.

Apart from these conceptual contributions, we study three technical questions to which our fibrational framework seems most relevant.

  • We introduce sufficient conditions for the existence of syntactic quotients (generalisations of syntactic congruences) in the presence of a factorisation system (Theorem 5.4). We show that, when the category is equipped with a proper factorisation system, then these conditions follow from previous results by Adámek [2].

  • We provide an explicit description of syntactic quotients via an interior operator (due to Slomiński [31]) for all concrete cases under consideration including algebras and ordered algebras over a finitary signature. We define the interior operator using the internal language of fibrations and Slomiński's elementary translations (Proposition 5.9).

  • We study regular languages relative to a distinguished class of finite objects. We identify sufficient conditions under which regular languages form a fibration as well as conditions under which they are closed under certain limits and colimits (Theorem 6.6).

Our fibrational definition of recognition (Definition 4.3) generalises the standard definition of language recognition by monoid homomorphisms, with the exception that we replace monoid homomorphisms by left TT-morphisms for a given orthogonal factorisation system and monad TT. By instantiated our framework with a trivial factorisation system we recapture the recognition by monoid homomorphisms, while an instantiation to surjections and injections yields the recognition by surjective monoid homomorphisms. Most of our examples are worked out by considering the standard epi-mono factorisation over the concrete categories under consideration.

We end this introduction with a discussion of related work. The existence of syntactic objects (e.g. syntactic monoids, minimal automata and so forth) has been studied previously in different contexts. Colcombet and Petrisan define automata as functors whose domain category describes the automaton structure [17]. They discuss the existence of minimal automata in the presence of initial and final objects as well as a factorisation system, and they apply their techniques to monoids in Set\mathbf{Set} to describe the syntactic monoid for a language on A∗A^*.

Adámek, Milius and Urbat develop a categorical framework for syntactic monoids in varieties of (ordered) algebras [4]. These correspond to Eilenberg-Moore categories of commutative, finitary monads over Set or strongly finitary monads over Pos (which are known to be symmetric monoidal closed), which leads the authors to work abstractly in symmetric monoidal categories. Our approach, in contrast, allows weaker assumptions, in particular non-commutative monads. In addition, the existence of syntactic monoids in [4] relies on a stability condition and the closure of epimorphisms under wide pushouts and tensor products.

Bojanczyk's work on recognisable languages over monads features a theorem on the existence of syntactic morphisms for a monad in the sorted setting [14]. This work uses polynomials over an algebra and is implicitly related to (elementary) translations, as used in Slomiński's construction. Translations have been widely used elsewhere for defining syntactic congruences in algebraic language theory, see [7, 34] for early references. A non-categorical description of syntactic congruences in the multisorted setting can be found in [33].

Our work on the existence of syntactic quotients (Section 5) is related to [4]. However, while Adámek et al. establish a result ([4, Theorem 3.9]) akin to Proposition 5.6, they do not obtain a right adjoint to the forgetful functor, which we established in Corollary 5.7. Our syntactic quotient result follows from this right adjoint in the presence of the factorisation system (see Theorem 5.4). Bojanczyk's results in [14] are closely related to those in our section on Slomiński's construction (Section 5). While Bojanczyk's polynomials are more categorical than our treatment of translations, it only applies to the multisorted setting, whereas our work also covers the ordered setting.