isoregular theories, accessible 2-categories,
and free constructions


Abstract

We introduce isoregular theories, in which it is possible to express existential quantification up to unique isomorphism, as typically used to characterise category-theoretic universal constructions, such as limits. We then develop a functorial semantics for isoregular theories and prove that their 2-categories of models are accessible with flexible limits. We apply these results by showing that a number of 2-categories of interest in general category theory, categorical algebra, and categorical logic are models of isoregular theories, thereby establishing that they are accessible 2-categories with flexible limits and obtaining a number of new free constructions.

1 Introduction↩︎

1.1 Context and motivation↩︎

Fields, Hilbert spaces, and other set-based mathematical structures can be studied uniformly not only via category theory or mathematical logic, but also via a combination thereof, known as categorical logic, founded by Lawvere [1]. Categorical logic is based on three key ideas: first, logical theories can be identified with certain categories (via the construction of syntactic categories, for example); secondly, set-theoretic models of a theory can be regarded as structure-preserving functors into the category of sets; and, finally, categories of models can often be characterised in a purely categorical, syntax-free, way. For example, algebraic theories are identified with categories with finite products, their models are regarded as product-preserving functors into the category of sets, and their categories of models are characterised as algebraic varieties [2]. This point of view offers a powerful interplay of ideas. For example, categorical embedding theorems (such as the embedding theorem for regular categories [3]) are closely related to logical completeness theorems, reconstruction theorems (as in the theory of ultracategories [4], [5]) allow us to recover a theory from its category of models, and adjoint functor theorems (as available for locally presentable categories [6]) enable us to establish the existence of free models. In this context, accessible categories occupy a prominent role [7] since they are exactly the categories of set-based structures axiomatisable in (infinitary) first-order logic. For example, the categories of fields and of Hilbert spaces are accessible.

Motivation from several directions, including the research programme of categorification in algebra, the theory of stacks in algebraic geometry, and the semantics of programming language in theoretical computer science, leads naturally to the study of category-based, rather than set-based, structures, such as categories with additional structure or properties (e.g. monoidal categories or categories with finite limits). Additional complications and subtleties arise immediately. First, these structures assemble themselves most naturally into 2-categories, in which one has structure-preserving functors as morphisms, and appropriate natural transformations as 2-cells. Secondly, the morphisms of primary interest are those that preserve the structure only up to coherent isomorphism, not strictly (as this occurs rarely in practice). The theory of 2-categories developed over the last fifty years, most notably by the Australian school, provides an extensive analysis of categories with structure (see [8][10] for example). Part of the challenge of the subject is to work as strictly as possible, so as to exploit \(\mathsf{Cat}\)-enriched category theory and avoid the complex coherence considerations typical of the fully weak, bicategorical, setting, while retaining sufficient generality, which is often achieved via the proof of suitable strictification results [11]. In this context, the class of 2-categorical limits know as flexible limits [12] is of particular importance, for example because they can be understood as the homotopically well-behaved ones [13]. In recent years, there has also been significant interest and progress in developing a counterpart of the theory of accessible categories in the 2-dimensional setting [14][17].

Yet, some important questions remain open, for example regarding whether some 2-categories of interest in categorical logic and categorical algebra are accessible 2-categories with flexible limits or concerning the existence of free categories with various kinds of structure. The motivation for this paper was to solve some of these open questions. For this, we develop some aspects of categorical logic in the 2-categorical setting, building on earlier work of the second-named author and Rosický on an enriched version of categorical logic [18], [19].

The problems that we tackle can be readily understood in an example. Let us consider the 2-category \(\mathsf{Lex}\) of categories with finite limits, functors that preserve finite limits, and natural transformations. Here, by a category with finite limits we mean a category with the property that every finite diagram has a limit. Accordingly, by a finite limit-preserving functor we mean a functor that sends a finite limit diagram to a finite limit diagram. This is in contrast with categories with chosen finite limits and functors that preserve (up to canonical isomorphism) the chosen finite limits, which give rise to a 2-category, written \(\mathsf{Lex}_c\) here (where the subscript abbreviates ‘chosen’). The 2-category \(\mathsf{Lex}_c\) can be understood with 2-dimensional monad theory [8]. Indeed, there is a 2-monad \(T \colon \mathsf{Cat}\to \mathsf{Cat}\) such that the associated 2-category \(T\text{-}\mathsf{Alg}\) of strict algebras, pseudomorphisms and algebra 2-cells is \(\mathsf{Lex}_c\). The fact that limits exist up to unique isomorphism is then characterised by saying that the 2-monad \(T\) is a lax idempotent [20], or property-like [21]. With this results in place, one can establish various 2-categorical completeness and cocompleteness properties of \(\mathsf{Lex}_c\), which can be transferred to \(\mathsf{Lex}\) since the 2-functor \(U \colon\mathsf{Lex}_c \to \mathsf{Lex}\) forgetting the choice of limits is a 2-equivalence.

Pushing further this line of research, and building on earlier work by Makkai [22], [23], Bourke has recently shown that \(\mathsf{Lex}\) and related 2-categories, such as the 2-category \(\mathsf{Reg}\) of regular categories and the 2-category \(\mathsf{GFib}\) of Grothendieck fibrations, are accessible 2-categories with filtered colimits and flexible limits, finite flexible limits commuting with filtered colimits, and accesible retract equivalences [14]. Importantly, some of these examples go beyond the theory covered by 2-dimensional monad theory, since the categories of interest are not necessarily 2-monadic (or pseudo-monadic). Yet, the approach of [14] - which is somehow inspired by the theory of sketches - does not seem to be easily applicable to other 2-categories of interest, such as some of importance in categorical algebra, such as the 2-categories of Mal’cev, protomodular, and semiabelian categories, and categorical logic, such as the 2-categories of comprehension categories and of clans1. In a different vein, taking a fully bicategorical approach, Di Liberti and Osmond have shown that \(\mathsf{Lex}\) is locally finitely bipresentable in a sense defined in [15]. Apart from the complex coherence conditions involved in the fully bicategorical point, this approach leads to bicategorical accessibility and completeness.

1.2 Main results↩︎

Here, we develop and apply an alternative approach. Our starting point is the observation that the definition of categories with finite limits involves axioms asserting the existence of some structure that is unique, up to unique isomorphism, when it exists. This form of quantification is somehow between unique existence (which is part of so-called finite limit theories) and ordinary existence (which is part of so-called regular theories) and hence has no counterpart in the 1-categorical setting.

We therefore introduce what we call isoregular theories, which are logical theories in which one can express this form of essentially unique existential quantification. We then introduce the notions of a model of an isoregular theory (now taking values in \(\mathsf{Cat}\) rather than \(\mathsf{Set})\) and prove 2-categorical counterparts of key results of categorical logic. First, we develop a functorial semantics for isoregular theories. This is done by isolating the fundamental properties of the syntactic 2-category \(\mathsf{Syn}({\mathbb{T}})\) of an isoregular theory \({\mathbb{T}}\), which we do introducing the notion of an isoregular 2-category (2). Then, we show (37) that models of \({\mathbb{T}}\) are the same thing as 2-functors \(M \colon\mathsf{Syn}({\mathbb{T}}) \to \mathsf{Cat}\) preserving the isoregular structure. With this in place, we prove that the 2-category of models of an isoregular theory is accessible with flexible limits and that the forgetful 2-functor to \(\mathsf{Cat}\) has a left biadjoint (41), therefore ensuring the existence of free models.

We then obtain several applications in a uniform manner. In particular, we obtain new proofs that \(\mathsf{Lex}\), \(\mathsf{Reg}\), \(\mathsf{GFib}\) are accessible with flexible limits, subsuming the core of Bourke’s results in [14]. Building on this, we show that the 2-categories \(\mathsf{Mal}\), \(\mathsf{Ptm}\), \(\mathsf{SmAb}\) of Malt’sev, protomodular and semiabelian categories (47 48 50), as well as the 2-categories \(\mathsf{Cmp}\) and \(\mathsf{Clan}\) of comprehension categories and clans (53 55), are accessible with flexible limits, which does not seem to be known. Additionally, a variety of forgetful functors are shown to admit left biadjoints, therefore establishing a number of new free constructions. In particular, we obtain a new proof of the existence of Joyal’s finite free bicompletions (45).

These results are a mere sample of the range of possible applications: as discussed in 6, the methods introduced here apply to several other 2-categories of interest, including those of pretoposes, multicategories, left adjoint functors, etc.

1.3 Technical aspects↩︎

We conclude this introduction with some comments on the more technical aspects of the paper.

First, when it comes to the formulation of the syntax of isoregular theories we combine ideas of enriched categorical logic [18], [19] and of type theory [25]. Isoregular theories have rules for forming terms, rules for forming propositions, and rules for logical entailment, corresponding to three forms of judgements: \[s \colon X \mathrlap{,} \qquad A \colon\mathsf{prop}\mathrlap{,} \qquad A_1, \ldots, A_n \colon A \mathrlap{.}\] These express that \(s\) is a well-formed term, that \(A\) is a well-formed proposition, that that \(A_1, \ldots, A_n\) entail \(A\), respectively, as in logic-enriched type theories [26]. In this setting, we can write a deduction rule asserting that, in order to be able to form existential quantification of the form \((\exists y \colon Y) B(x,y)\) only when, for \(x \colon X\), there exists at most a unique, up to unique isomorphism, \(y \colon Y\) such that \(B(x,y)\) holds. Thus, the formation rules for propositions depend on the deduction rules for logical entailment. This is in contrast with first-order logic, where one first defines the set of well-formed formulas and then, separately, defines the set of theorems of a theory by giving the deduction rules for logical entailment. It also differs from the approach in [27], as we avoid introducing 2-dimensional regular theories and carving out isoregular theories out of them. Building on [18], [19], it will also be essential to have at our disposal propositions of the form \(A^{[1]}\), where \(A\) is a proposition, which enable us to express properties of morphisms, rather than just objects, in the intended models. We do not make use of dependent sorts, so as to be able to build directly on [18], [19] and remain close to the presentation of [27], and leave this as a possible direction for future work.

When it comes to characterising the 2-categorical structure of the syntactic categories of isoregular theories, our notion of an isoregular 2-category (2) appears rather natural. Just as a regular 1-category is a 1-category with finite limits in which every kernel pair has a coequaliser and regular epimorphisms are stable under pullback, an isoregular 2-category is a 2-category with finite 2-limits in which every fully faithful kernel pair has a coequaliser and fully faithful regular epimorphisms are stable under pullback. In particular, isoregular 2-categories are ff-regular 2-categories in the sense of [28] (see 4 for details).

Just as in a regular category every morphism can be factored as a regular epimorphism followed by a monomorphism, in an isoregular 2-category every morphism with a fully faithful kernel pair can be factored as a fully faithful regular epimorphism followed by a monomorphism, which gives us exactly what is needed in order to characterise existence up to unique isomorphism. Indeed, morphisms with a fully faithful kernel pair admit several equivalent characterisations, including that of being the morphisms that are faithful and whose fibers are subcontractible (5), an aspect that brings out the connection with the notion of a homotopy proposition of Univalent Foundations and Homotopy Type Theory, as we discuss in 14. The factorisation of such morphisms then amounts to being able to existentially quantify over these fibers. Indeed, in the syntactic 2-category of an isoregular theory, the composite \[\begin{tikzcd} \{ x \colon X, y \colon Y \;| \;B(x,y) \} \ar[r, >->] & X \times Y \ar[r] & X \end{tikzcd}\] has a fully faithful kernel if and only if it is provable that it is faithful and, for \(x \colon X\), there exists at most a unique, up to unique isomorphism, \(y \colon Y\) such that \(B(x,y)\) holds. Existential quantification then corresponds to the factorisation \[\begin{tikzcd}[column sep = large] & \{ x \colon X \;| \;(\exists y \colon Y) B(x,y) \} \ar[dr, >->] & \\ \{ x \colon X, y \colon Y \;| \;B(x,y) \} \ar[ur, ->>] \ar[r, >->] & X \times Y \ar[r] & X \mathrlap{.} \end{tikzcd}\]

In order to prove that models of isoregular theories are accessible 2-categories with flexible limits, we first provide a functorial semantics (37), describing models as what we call isoregular functors, i.e. 2-functors preserving the structure of an isoregular 2-category: \[\mathsf{Mod}({\mathbb{T}})\;\cong \mathsf{IsoReg}[\mathsf{Syn}({\mathbb{T}}),\mathsf{Cat}] \mathrlap{,}\] and then, separately, establish that 2-categories of isoregular 2-functors are accessible with flexible limits (41), a result that provides additional evidence for the usefulness of the notion of an isoregular 2-category. Clearly, working in the 2-categorical (rather than bicategorical) setting offers significant simplifications throughout the development of the theory and does not prevent the intended applications.

1.4 Outline of the paper↩︎

2 introduces isoregular 2-categories and establishes some of their properties, including various equivalent characterisations of morphisms with fully faithful kernel. 3 introduces syntax and semantics of isoregular theories, including the soundness theorem. 4 establishes the functorial semantics for isoregular theories, by introducing syntactic 2-categories. Using the functorial semantics, 5 establishes the accessibility of models of isoregular theories. We conclude the paper in 6 with applications.

Acknowledgements.↩︎

Nicola Gambino is grateful to the Department of Mathematics and the School of Natural Sciences of The University of Manchester for granting sabbatical leave, during which this paper was written. Giacomo Tendas acknowledges with gratitude the support of the EPSRC postdoctoral fellowship via grant EP/X027139/1. We thank John Bourke, Richard Garner, Vít Jelínek, Marino Gran, and Jiří Rosický for helpful conversations.

2 Isoregular 2-categories↩︎

2.1 Preliminaries↩︎

We assume that the readers are familiar with the theory of 2-categories and confine ourselves to fix some notation and terminology. See [11] for the basics, [29] for 2-categorical limits in general and [12] for flexible 2-limits. Our development will focus on cartesian 2-categories, i.e. 2-categories with all finite 2-categorical limits, including a terminal object, products, pullbacks, equalisers.

We write \(\mathsf{Cat}\) for the 2-category of small categories, functors and natural transformations. For a 2-category \({\mathcal{K}}\), we write \({\mathcal{K}}(A,B)\) for the hom-category of morphisms from \(A\) to \(B\) and 2-cells between them. The composite of \(f \colon A \to B\) and \(g \colon B \to C\) will be denoted \(g \circ f\) or simply \(gf\). Similar conventions are adopted for composition of morphisms and 2-cells. We write \({\mathcal{K}}_0\) for the underlying 1-category of \({\mathcal{K}}\).

Let \({\mathcal{K}}\) be a 2-category. The power of an object \(A \in K\) by a small category \(\,\mathbb{c}\) is an object \(A^{\,\mathbb{c}} \in {\mathcal{K}}\) together with a functor, called evaluation, \(\mathrm{ev}_{\,\mathbb{c}} \colon{\,\mathbb{c}} \to {\mathcal{K}}(A^{\,\mathbb{c}}, A)\) which is universal, in the sense that for every \(X \in {\mathcal{K}}\), the induced functor \[{\mathcal{K}}(X, A^{\,\mathbb{c}}) \to {\mathcal{K}}(X,A)^{\,\mathbb{c}}\] is an isomorphism of categories. When \({\mathcal{K}}\) has powers by a small category \(\,\mathbb{c}\), these determine a 2-functor \((-)^{\,\mathbb{c}} \colon{\mathcal{K}}\to {\mathcal{K}}\). In the following, we shall be primarily interested in powers by finitely presentable categories. For a natural number \(n\), we write \([n]\) for the nerve of the poset \(0 < 1 \ldots < n\). In particular, \([1]\) is the category with two objects (\(0\) and \(1\)) and a single non-identity map (from \(0\) to \(1\)). In this case, the evaluation functor determines two maps \(\pi_0 \colon A^{[1]} \to A\), \(\pi_1 \colon A^{[1]} \to A\). When \({\mathcal{K}}\) has binary products, we write \(\pi_A \colon A^{[1]} \to A \times A\) for their pairing, i.e. \(\pi_A \equiv_{\mathrm{def}}(\pi_0, \pi_1)\).

Since we will not generally assume the ambient 2-category \({\mathcal{K}}\) to have all powers and copowers, the 2-dimensional universal property of a conical 2-limit in \({\mathcal{K}}\) will have to be checked explicitly, rather than inferred from its 1-dimensional one in \({\mathcal{K}}_0\). However, we have the following observation.

Lemma 1. Let \({\mathcal{K}}\) be a 2-category with powers by \([1]\). If a conical limit exists in the underlying category \({\mathcal{K}}_0\) of \({\mathcal{K}}\) and it is preserved by the functor \((-)^{[1]} \colon{\mathcal{K}}_0 \to {\mathcal{K}}_0\), then this limit is a 2-limit in \({\mathcal{K}}\).

For an object \(X \in {\mathcal{K}}\), we write \({\mathcal{K}}(X, -) \colon{\mathcal{K}}\to \mathsf{Cat}\) for the induced representable 2-functor. These 2-functors allow us to extend to a general 2-category \({\mathcal{K}}\) many concepts that can be defined in \(\mathsf{Cat}\). For example, a morphism \(f\colon A\to B\) in \({\mathcal{K}}\) is called full if, for every \(X\in{\mathcal{K}}\), the functor \[\label{equ:representable-applied-to-f} {\mathcal{K}}(X,f)\colon {\mathcal{K}}(X,A)\to{\mathcal{K}}(X,B)\tag{1}\] is full. When the fullness condition is restricted to 2-cells in the codomain that are isomorphisms or equalities, we say that \(f\) is full on isomorphisms or full on identities, respectively. Explicitly, for \(f\) to be full on identities means that, given \(a \colon X \to A\) and \(a' \colon X \to A\), if \(fa = fa'\) there exists a 2-cell \(\alpha \colon a \Rightarrow a'\) such that \(f \alpha = 1_{fa}\). The notions of a faithful and a fully faithful morphism are defined analogously. Note that, if \(f\) is faithful and full on identities, then the 2-cell \(\alpha\) above is unique and an isomorphism.

If \({\mathcal{K}}\) has powers by \([1]\), \(f\) is fully faithful if and only if the following square is a pullback: \[\begin{tikzcd} A^{[1]} \ar[r, "f^{[1]}"] \ar[d, "\pi_A"'] & B^{[1]} \ar[d, "\pi_B"] \\ A \times A \ar[r, "f \times f"'] & B \times B \mathrlap{.} \end{tikzcd}\] In a 2-category \({\mathcal{K}}\) a morphism is said to be a monomorphism if it is representably so. Hence, every monomorphism is faithful. A morphism is a regular epimorphism if it is a coequalizer (in the 2-categorical sense) of a parallel pair of maps. If \({\mathcal{K}}\) has finite limits, a morphism is a monomorphism (a regular epimorphism) if and only if it is a monomorphism (a regular epimorphism, respectively) in the underlying category \({\mathcal{K}}_0\).

2.2 Isoregular 2-categories↩︎

Let \({\mathcal{K}}\) be a 2-category with finite 2-limits, to remain fixed for the rest of this section. Let \(f \colon A \to B\) be a morphism in \({\mathcal{K}}\). Recall that the kernel pair of \(f\) is the pullback \[\begin{tikzcd} \Delta_f \ar[d, "\pi_1"'] \ar[r, "\pi_2"] & A \ar[d, "f"] \\ A \ar[r, "f"'] & B \mathrlap{.} \end{tikzcd}\]

Proposition 1. Let \(f \colon A \to B\) be a morphism in \({\mathcal{K}}\). The following conditions are equivalent:

  1. the morphism \(\pi_1 \colon\Delta_f \to A\) is fully faithful,

  2. the morphism \(\pi_2 \colon\Delta_f \to A\) is fully faithful.

When the equivalent conditions of 1 hold, we say that \(f\) has a fully faithful kernel pair. In the 2-category \(\mathsf{Cat}\) of small categories, if a functor \(f \colon A \to B\) has a fully faithful kernel pair, then its coequaliser is again fully faithful and therefore is a fully faithful regular epimorphism. The essential properties of this situation are axiomatised in the notion of an isoregular 2-category, which we introduce next.

Definition 2. We say that a 2-category \({\mathcal{K}}\) is isoregular if

  1. it has all finite 2-limits;

  2. every fully faithful kernel pair has a fully faithful coequaliser;

  3. fully faithful regular epimorphisms are stable under pullback.

Examples 3. The following 2-categories are isoregular.

  • The 2-category \(\mathsf{Cat}\) of small categories. In \(\mathsf{Cat}\), a functor is a fully faithful regular epimorphism if and only if it is surjective on objects and fully faithful, which is the case if and only if it is a retract equivalence.

  • 2-categories of prestacks, i.e. 2-categories of the form \([{\mathcal{C}}^\textrm{op},\mathsf{Cat}]\) for any small 2-category \({\mathcal{C}}\);

  • 2-categories of stacks, i.e. left exact localisations of 2-categories of prestacks, cf. [30] and [28].

Remark 4. Every isoregular 2-category is an ff-regular 2-category in the sense of [28]. Indeed, a 2-category ff-regular if it satisfies conditions (i) and (iii) of 2, and, in place of (ii), it is required that every kernel pair of a fully faithful map admits a fully faithful coequaliser. Since the kernel pair of a fully faithful map is fully faithful, isoregular 2-categories are ff-regular. As we shall see in 10, the possibility of taking coequalisers of morphisms with fully faithful kernel pairs, rather than just of fully faithful morphisms, will be important for some applications.

Morphisms with a fully faithful kernel pair, or ffk-morphisms for short, are fundamental for the definition of an isoregular 2-category and therefore it is useful to have some equivalent characterisations of them. We provide these in [fact-morph] below, but for this we need a definition and a preliminary lemma. In analogy with the definition of a subterminal object in a 1-category, we define a object \(C\) of a 2-category \({\mathcal{K}}\) to be subcontractible if for every \(X \in {\mathcal{K}}\) and \(f, g \colon X \to C\), there exists a unique (and hence necessarily invertible) \(\alpha \colon f \Rightarrow g\). Equivalently, for every \(X \in {\mathcal{K}}\), the category \({\mathcal{K}}(X,C)\) is either empty or contractible. In \(\mathsf{Cat}\), a subcontractible object is a category that is either empty or contractible. For example, consider a category \(D\) and define \(C\) to be the full subcategory of \(D\) spanned by the terminal objects of \(D\). Then \(C\) is subcontractible.

Lemma 2. Assume that \({\mathcal{K}}\) has a terminal object. An object \(C \in {\mathcal{K}}\) is subcontractible if and only if the unique map \(f \colon C \to 1\) is an ffk-morphism.

Proof. By definition, \(f \colon C \to 1\) is an ffk-morphism if and only if, for every \(X \in {\mathcal{K}}\), the projection functor \(\pi_1 \colon {\mathcal{K}}(X,C) \times {\mathcal{K}}(X,C) \to {\mathcal{K}}(X,C)\) is fully faithful. But this means exactly that \(C\) is subcontractible. ◻

Proposition 5. Let \(f \colon A \to B\) be a morphism in \({\mathcal{K}}\). The following conditions are equivalent:

  1. the morphism \(f\) is an ffk-morphism, i.e. it has a fully faithful kernel pair,

  2. for every \(X\in{\mathcal{K}}\), the functor \[{\mathcal{K}}(X,f) \colon{\mathcal{K}}(X,A) \to {\mathcal{K}}(X, B)\] has a fully faithful kernel pair,

  3. the diagram \[\begin{tikzcd} A \ar[r, "1_A"] \ar[d, "1_A"'] & A \ar[d, "f"] \\ A \ar[r, "f"'] & B \end{tikzcd}\] is a semistrict pullback, i.e. for every \(a' \colon X \to A\) and \(a'' \colon X \to A\) such that \(f a' = fa''\), there exists \(a \colon X \to A\), unique up to unique isomorphism, and isomorphisms \(\alpha' \colon a \Rightarrow a'\), \(\alpha'' \colon a \Rightarrow a''\) such that \(f \alpha' = 1_{fa}\) and \(f \alpha'' = 1_{fa}\).

  4. the morphism \(f\) is faithful and full on identities,

  5. the unique morphism \(r_f \colon A \to \Delta_f\) such that \(\pi_1 \circ r = 1_A\) and \(\pi_2 \circ r = 1_A\) is an equivalence.

  6. the morphism \(f \colon A \to B\) is a subcontractible object of the slice 2-category \({\mathcal{K}}_{/B}\).

Proof. The equivalence between (i) and (ii) is immediate. Since the characterisations in parts (iii)–(v), can all be checked representably, the claim follows once we prove their equivalence with (i) in \(\mathsf{Cat}\). This is a straightforward calculation that we omit. The equivalence with (vi) follows by 2, recalling that \(1_B \colon B \to B\) is a terminal object of \({\mathcal{K}}_{/B}\). ◻

Remark 6 (ffk-morphisms in \(\mathsf{Cat}\)). In the 2-category \(\mathsf{Cat}\), a functor \(f \colon A\to B\) is an ffk-morphism if and only if it is faithful and full on identities, i.e. for every \(a,a'\in A\) such that \(fa=fa'\) there exists a map \(u \colon a\to a'\) in \(A\) such that \(f(u) =1_{fa}\). In these circumstances, such a map \(u\) is unique and an isomorphism. Equivalently, by part (vi) of 5, \(f\) is faithful and, for every \(b \in B\), the (strict) fiber category \(f^{-1}(b)\), given by the subcategory of \(A\) spanned by the objects \(a \in A\) such that \(f(a) = b\) and those morphisms \(h\in A\) such that \(f(h)=1_b\), is either empty or contractible.

Example 7. Let \(I\) and \(B\) be categories and define \(A\) as the full subcategory of \(B^I \times B \times (B^{I})^{[1]}\) spanned by triples \((b, a, \alpha\colon\Delta a\to b)\), where \(b \in B^I\) and \((a, \alpha)\) is a limit cone for the diagram \(b\). Then, the projection functor \(f \colon A \to B^I\) is an ffk-morphism, since it is faithful and its fiber over \(b \in B^I\) is either empty (if \(b\) does not have a limit in \(B\)) or contractible (if a limit exists, as the limit cones over \(b\) are unique up to unique isomorphism).

Corollary 8.

  1. Every monomorphism is an ffk-morphism.

  2. Every fully faithful morphism is an ffk-morphism.

Proof. Both part (i) and part (ii) can be checked representably and they hold in \(\mathsf{Cat}\) since ffk-morphisms there are faithful and full on identities (cf.6). ◻

ffk-morphisms are not closed under composition. For example, let us work in \(\mathsf{Cat}\) and consider the composite functor \[\begin{tikzcd} \{0\} + \{1 \} \ar[r, "F"] & J \ar[r] & \{ \ast \} \mathrlap{,} \end{tikzcd}\] where \(J\) is the category with two objects and an isomorphism between them and the functor \(F\) is the inclusion of the endpoints. The composite is not an ffk-morphism, even if each of the composites. This fact could be understood recalling that, by part (vi) of 5, being an ffk-morphism involves a property of the fibers, which is not necessarily preserved by composition. However, the following closure properties with respect to fully faithful morphisms and monomorphisms hold.

Lemma 3. Let \(f \colon A \to B\) be an ffk-morphism.

  1. For every monomorphism \(b \colon B \rightarrowtail B'\), the composite \(b \circ f \colon A \to B'\) is an ffk-morphism.

  2. For every fully faithful morphism \(a \colon A' \to A\), the composite \(f \circ a \colon A' \to B\) is an ffk-morphism.

  3. For every fully faithful morphism \(a \colon A' \to A\) and monomorphism \(b \colon B \rightarrowtail B'\), the composite \(b \circ f \circ a \colon A' \to B'\) is an ffk-morphism.

Proof. Parts (i) and (ii) follow from, say, part (iv) of 5. Part (iii) is an immediate consequence of parts (i) and (ii). ◻

Corollary 9. The composite of a fully faithful morphism followed by a monomorphism is an ffk-morphism. 0◻

Next, we give an example of an ffk-morphism that is neither fully faithful nor a monomorphism.

Example 10. Let \(p \colon E \to B\) be a Grothendieck fibration. Consider the sub-category \(C\) of \(E \times B^{[1]} \times E^{[1]}\) with objects \((y, u, v)\) such that \(\mathsf{cod}(u) = p(y)\), and \(v\) is a Cartesian lift of \(u\), and morphisms satisfying an analogous condition. We then have a functor \[\begin{tikzcd} C \ar[r, >->] & E \times B^{[1]} \times E^{[1]} \ar[r, "\pi"] & E \times B^{[1]} \end{tikzcd}\] where \(\pi\) is the projection on the first two coordinates. This functor is not full since for a morphism \((t, (v, w)) \colon(y, u) \to (y', u')\) in \(E \times B^{[1]}\), it is not necessarily the case that \(w = p(t)\). Instead, it is an ffk-morphism, as it is evidently faithful and its fiber over \((y,u) \in E \times B^{[1]}\) is contractible when \(\mathsf{cod}(u) = y\) (in which case it consists of all the cartesian lifts of \(u\)) and empty when \(\mathsf{cod}(u) \neq y\).

In a regular 1-category, every morphism can be factored as a regular epimorphism followed by a monomorphism. As 11 shows, in an isoregular 2-category, every ffk-morphism can be factored as a fully faithful regular epimorphism followed by a monomorphism. The factorisation can be understood as turning a ffk-morphism, whose fibers are subcontractible, into a monomorphism, whose fibers are subterminal (cf.14 for additional comments on this point). The proof is essentially the same as the one of the corresponding statement for regular 1-categories.

Proposition 11. Let \({\mathcal{K}}\) be an isoregular 2-category. Every ffk-morphism factors, in an essentially unique way, as a fully faithful regular epimorphism followed by a monomorphism.

Proof. Let \(f\colon A\to B\) be an ffk-morphism and consider the following diagram

Figure 1: image.

where \((h,k)\) is the kernel pair of \(f\) (and they are both fully faithful since \(f\) is an ffk-morphism, \(q\) is the coequaliser of \((h,k)\) and so is a fully faithful regular epimorphism by hypothesis that \({\mathcal{K}}\) is an isoregular 2-category, \(m\) is induced by the universal property of the coequaliser, \((r,s)\) is the kernel pair of \(m\), and \(\ell\) is induced by the universal property of the kernel pair.

To show that the desired factorization exists it suffices to prove that \(m\) is a monomorphism, which is equivalent to requiring that \(r=s\). For this, note that \(\Delta_f\) and \(\Delta_m\) fit in the pullbacks below:

Figure 2: image.

By stability under pullback of fully faithful regular epimorphisms, all the arrows in the top-left square are fully faithful regular epimorphisms. Hence, the diagonal of the square, which coincides with \(\ell \colon \Delta_f \to \Delta_m\), is an epimorphism. Since \(r \ell=qh=qk=s \ell\), we obtain \(r=s\) as desired.

The factorization is unique up to isomorphism since a factorisation of a morphism as a strong epimorphism followed by a monomorphism is so, when it exist. ◻

Proposition 12. Let \({\mathcal{K}}\) be an isoregular 2-category. Let \(f \colon A\to B\) be a morphism in \({\mathcal{K}}\). The following conditions are equivalent:

  1. \(f\) is a fully faithful regular epimorphism,

  2. \(f\) is a fully faithful strong epimorphism.

Proof. If \(f\) is fully faithful regular epimorphism, then it is in particular a strong epimorphism. Conversely, if \(f \colon A\to B\) is a fully faithful strong epimorphism then it is an ffk-morphism by Proposition [fact-morph]. Then, by Proposition 11, \(f\) factors as a fully faithful regular epimorphism followed by a monomorphism. Since \(f\) is a strong epimorphism, the monomorphism must be an isomorphism; thus \(f\) is a fully faithful regular epimorphism. ◻

Corollary 13. Let \({\mathcal{K}}\) be an isoregular 2-category. Fully faithful regular epimorphism are stable in \({\mathcal{K}}\) under composition, finite products, and finite powers.

Proof. The fact that fully faithful regular epimorphisms are closed under composition follows from 12 since strong epimorphisms and fully faithful epimorphisms are. For stability under finite products, consider two fully faithful regular epimorphisms \(f_i\colon A_i\to B_i\), for \(i=1,2\). Then \[f_1\times f_2=(B_1\times f_2)\circ (f_1\times A_2)\] and both components are fully faithful regular epimorphisms since they are obtained pulling back \(f_1\) and \(f_2\) along the product projections. Thus \(f_1\times f_2\) is a fully faithful regular epimorphism by stability under composition.

Finally, we need to show stability under finite powers. Let \(\,\mathbb{b}\) be a finitely presentable category and let \(S\) be its (finite) set of objects seen as a discrete category; thus we have a identity-on-objects inclusion \(\iota^{\,\mathbb{b}}\colon S\to {\,\mathbb{b}}\). For any fully faithful morphism \(f\colon A\to B\) the following square

Figure 3: image.

is a pullback: this is true in \(\mathsf{Cat}\) and pullbacks and fully-faithfulness can be checked representably. Thus, if \(f\) is a fully faithful regular epimorphism, then so is \(f^S\) (being a finite product of copies of \(f\)), and hence so is \(f^{\,\mathbb{b}}\) (by stability under pullbacks). ◻

Remark 14. We can relate our notion of an ffk-morphisms with ideas in Homotopy Type Theory [31], Univalent Foundations [32], and Higher Topos Theory [33]. Let \(\mathsf{Gpd}\) be the 2-category of small groupoids, functors, and natural transformations. Let \(p \colon B \to A\) be an isofibration. For \(a \in A\), the homotopy fiber of \(p\) over \(a\) is the subgroupoid of \(B \times A^{[1]}\) with objects pairs \((b, \alpha)\) where \(\alpha \colon p(b) \to a\) and maps satisfying an evident commutativity condition. When all the homotopy fibers of \(p\) are either empty or contractible, one says that \(p\) is \((-2)\)-truncated. While \((-2)\)-truncated isofibrations are a suitable semantical counterpart of ‘homotopy propositions’, one may consider also ‘strict propositions’, i.e. isofibrations that are actually monomorphisms, as traditionally considered in categorical logic. These two classes of maps are related by a reflection, whose left adjoint sends a \((-2)\)-truncated isofibration \(p \colon B \to A\) to the monomorphism obtained by the factorisation \[\begin{tikzcd} B \ar[r, hook, ->>, "q"] & \lvert B \rvert \ar[r, >->, "m"] & A \end{tikzcd}\] of \(p\) as a retract equivalence followed by a monomorphism. While the fibers of \(p\) are either empty or contractible, the fibers of \(m\) are either empty or singletons. The factorisation of 11 achieves a similar reflection in our context.

Let \({\mathcal{K}}\) and \({\mathcal{L}}\) be isoregular 2-categories. A 2-functor \(F \colon{\mathcal{K}}\to {\mathcal{L}}\) is said to be isoregular if it preserves finite 2-limits and coequalisers of fully faithful kernel pairs; equivalently, if it preserves finite limits and fully faithful regular epimorphisms. We write \(\mathsf{IsoReg}({\mathcal{C}},{\mathcal{K}})\) for the full sub-2-category of the functor 2-category \([{\mathcal{K}}, {\mathcal{L}}]\) spanned by isoregular 2-functors.

3 Isoregular theories: syntax and semantics↩︎

3.1 Languages↩︎

We follow the approach of [18], [19]. Languages are multi-sorted with arities being objects in the full sub-2-category of \(\mathsf{Cat}\) spanned by the finitely presentable categories, which we write \(\mathsf{Cat}_{\mathrm{fp}}\).

Definition 15. A finitary language \({\mathbb{L}}\) is given by:

  • a set of basic sorts \({\mathcal{S}}\), written \(S, T, \ldots\);

  • a set of function symbols with sorts, written \(f\colon S_1^{\,\mathbb{c}_1},\ldots, S_n^{\,\mathbb{c}_n} \to S^{\,\mathbb{c}}\), where \(S_1, \ldots, S_n, S\) are basic sorts and \(\,\mathbb{c}_1, \ldots, \,\mathbb{c}_n, \,\mathbb{c}\) are arities;

  • a set of relation symbols \(R\rightarrowtail S_1^{\,\mathbb{c}_1},\ldots ,S_n^{\,\mathbb{c}_n}\), where \(S_1, \ldots, S_n\) are basic sorts and and \(\,\mathbb{c}_1, \ldots \,\mathbb{c}_n\) are arities.

Let \({\mathbb{L}}\) be a finitary language as above. A sort is an expression of the form \(S^{\,\mathbb{c}}\) where \(S\) is a basic sort and \(\,\mathbb{c}\) is an arity. When \({\,\mathbb{c} } = [0]\), we write \(S\) instead of \(S^{[0]}\). If \(X = S^{\,\mathbb{c}}\) is a sort and \(\,\mathbb{d}\) is an arity, we define \[X^{\,\mathbb{d}} \equiv_{\mathrm{def}}S^{\,\mathbb{d} \times \,\mathbb{c}} \mathrlap{.}\]

A context is a sequence of variable declarations of the form \((\bar{x} \colon\bar{X}) = (x_1 \colon X_1, \ldots, x_n \colon X_n)\). For such a context, we define \[(\bar{x} \colon\bar{X})^{\,\mathbb{c}} \equiv_{\mathrm{def}}(u_1 \colon X_1^{\,\mathbb{c}}, \ldots, u_n \colon X_n^{\,\mathbb{c}}) \mathrlap{.}\] Here, the relabelling of variables has been made to improve readability, rather than for any essential reason. The deductive calculus for isoregular theories has three forms of judgement: \[\begin{gather} (\bar{x} \colon\bar{X}) \quad s \colon X \mathrlap{,} \tag{2} \\ (\bar{x} \colon\bar{X}) \quad A \colon\mathsf{prop} \mathrlap{,} \tag{3} \\ (\bar{x} \colon\bar{X}) \quad A_1, \ldots, A_m \vdash A \mathrlap{.} \tag{4} \end{gather}\] The judgements in 2 and 3 express that, relative to the variable declarations in the context, the expression \(s\) is a term of sort \(X\) and the expression \(A\) is a proposition, respectively. The judgement in 4 expresses that, relative to the variable declarations in the context and under the assumptions of the propositions \(A_1, \ldots, A_n\), the proposition \(A\) is true.

The notation introduced above will be simplified in many cases. When \(m = 0\), we write the judgement in 4 as \[(\bar{x} \colon\bar{X}) \; A\] and we do not mention the context when it is empty. The deduction rules of our calculus have the form \[\begin{prooftree} \mathcal{J}_1 \qquad \ldots \qquad \mathcal{J}_n \justifies \mathcal{J} \mathrlap{,} \end{prooftree}\] where \(\mathcal{J}_1\), …\(\mathcal{J}_m\), \(\mathcal{J}\) are judgements of one of the forms above. When \(n = 0\), we do not include the horizontal line. When stating rules, we do not mention a context that is common to all premisses and conclusions unless this causes confusion.

The deduction rules regarding terms are presented in ¿tbl:tab:terms?, making use of the conventions just introduced, and follow essentially [19]. Here, substitution is a primitive operation, rather than being defined by induction on terms, as this aligns well with our semantics of terms (cf.3.3). As we shall see, a judgement of the form \((\bar{x} \colon\bar{X}) \;t \colon Y\) will be interpreted in an isoregular 2-category as a morphism \(\llbracket{t}\rrbracket \colon\llbracket{\bar{X}}\rrbracket \to \llbracket{Y}\rrbracket\).

For \(1 \leq i \leq n\), \[(x_1 \co X_1, \ldots, x_n \co X_n) \quad \var_i(x_1,\ldots, x_n) \co X_i \mathrlap{.}\]

For each function symbol \(f \co Y_1, \ldots, Y_n \to Y\) of \(\LL\), \[\begin{prooftree} (\bar{x} \co \bar{X}) \;s_1 \co Y_1 \quad \ldots \quad (\bar{x} \co \bar{X}) \; s_n \co Y_n \justifies (\bar{x} \co \bar{X}) \; f(s_1, \ldots, s_n) \co Y \mathrlap{.} \end{prooftree} \bigskip\]

For each functor \(f \co \bb d \to \bb c\) between f.-p. categories, \[\begin{prooftree} (\bar{x} \co \bar{X}) \;s \co S^{\bb c} \justifies (\bar{x} \co \bar{X}) \;s \cdot f \co S^{\bb d} \mathrlap{.} \end{prooftree}\]

\[\begin{prooftree} (\bar{x} \co \bar{X}) \quad s \co X \justifies (\bar{x} \co \bar{X})^{[1]} \quad s^{[1]} \co X^{[1]} \end{prooftree} \bigskip\]

For a context \((\bar{x} \co \bar{X})\) and in \((y_1 \co Y_1, \ldots, y_n \co Y_n)\) are disjoint, \[\begin{prooftree} (\bar{x} \co \bar{X}) \quad s_1 \co Y_1 \quad \ldots \qquad (\bar{x} \co \bar{X}) \quad s_n \co Y_n \qquad (y_1 \co Y_1, \ldots, y_n \co Y_n) \quad t \co Y \justifies (\bar{x} \co \bar{X}) \quad t[s_1/y_1, \ldots, s_n/y_n] \co Y \end{prooftree} \bigskip\]

Remark 16. In [tbl:rule:variable] above, \(\mathsf{var}_i(x_1,\ldots, x_n)\colon X_i\) denotes the \(i\)-th variable projection, which is usually denoted simply by \(x_i \colon X_i\). We use this approach as it makes it simpler to write some deduction rules (e.g. 8 ). In practice we will use the more traditional notation \(x_i \colon X_i\).

In the example below we will apply the restriction rule, taken along a functor \(f\colon\,\mathbb{d}\to\,\mathbb{c}\), to terms of the form \((\bar{x} \colon\bar{X}) \;s \colon X^{\,\mathbb{c}}\) where \(X\) may not be a basic sort as in [tbl:rule:restriction-def]. This should be understood as taking the restriction along \(f\times 1_{\,\mathbb{b}}\) where \(\,\mathbb{b}\in\mathsf{Cat}_{\mathrm{fp}}\) is such that \(X=S^{\,\mathbb{b}}\).

Examples 17. We provide some simple consequences of our deduction rules for terms, introducing some terms that will be useful.

  1. For \(s \colon X^{[1]}\), we have terms \(\mathsf{dom}(s) \colon X\) and \(\mathsf{cod}(s) \colon X\), called the domain and codomain of \(s\), respectively. These are obtained by applying the restriction rule to the two inclusion functors \(\sigma_0,\sigma_1\colon [0] \to [1]\), respectively.

  2. For \(s \colon X\), we have a term \(\mathsf{id}_s \colon X^{[1]}\), called the identity at \(s\), induced by unique functor \([1]\to [0]\).

  3. For \(s \colon X^{[2]}\), we have terms \(\mathsf{fst}(s)\colon X^{[1]}\), \(\mathsf{snd}(s)\colon X^{[1]}\) and \(\mathsf{comp}(s)\colon X^{[1]}\), called the first component, second component, and composite of \(s\), induced by the morphisms \([1]\to[2]\), picking the respective arrows in the free-living composable pair \([2]\).

  4. Let \(1\leq k\leq n\). For \(s \colon X^{[n]}\), to be thought of as a chain of \(n\) composable morphisms, we can have a term \(\mathsf{pr}_k(s)\colon X^{[1]}\), called the \(k\)-th component of \(s\), induced by the functor \(j_k\colon [1]\to [n]\) picking the \(k\)-th morphism of the chain.

  5. The category \([1]\times [1]\) consists of a commutative square, \[\begin{tikzcd} (0,1) \ar[r, "u"] \ar[d, "\ell"'] & (1,1) \ar[d, "r"] \\ (0,0) \ar[r, "d"'] & (1, 0) \mathrlap{.} \end{tikzcd}\] For \(s\colon X^{[1]\times [1]}\), we have terms \(\mathsf{pr}_u(s) \colon X^{[1]}\), \(\mathsf{pr}_d(s) \colon X^{[1]}\), \(\mathsf{pr}_l(s) \colon X^{[1]}\), \(\mathsf{pr}_r(s) \colon X^{[1]}\), induced by the four inclusions \(\tau_u, \tau_d, \tau_l, \tau_r\colon [1]\to [1]\times [1]\) selecting the four edges of the square.

Running example 18. The language \({\mathbb{L}}_{\mathsf{Gfib}}\) for the theory of Grothendieck fibrations consists of two basic sorts \(E,B\), a function symbol \(p\colon E\to B\), and a relation symbol \(\mathsf{Cart}\rightarrowtail E^{[1]}\) that will collect all cartesian arrows in \(E\). When it will come to state the axioms for the the isoregular theory of Grothendieck fibrations, we will make use of the finite categories

Figure 4: image.

We write \(\iota_{\,\mathbb{e}}\colon\,\mathbb{e} \to [2]\) for the inclusion. With this notation, we have well-formed sorts \(E^{\,\mathbb{e}}\), \(E^{\,\mathbb{f}}\), \(E^{[2]}\) and, for example, propositions \[\begin{align} (z \colon E^{[2]}) & \quad \mathsf{Cart}(\mathsf{snd}(z)) \colon\mathsf{prop} \mathrlap{,} \\ (u \colon E^{[1] \times [1]}) & \quad \mathsf{Cart}^{[1]}(u) \colon\mathsf{prop}\mathrlap{,} \end{align}\] asserting that the ‘second’ map in a diagram of shape \([2]\) is cartesian and that a certain square is morphism of cartesian maps, respectively.

3.2 Isoregular theories↩︎

Let \({\mathbb{L}}\) be a fixed finitary language. The propositions of the calculus have the following six forms \[\top \mathrlap{,} \qquad R(s_1, \ldots, s_n) \mathrlap{,} \qquad s = t \mathrlap{,} \qquad A \land B \mathrlap{,} \qquad (\exists x \colon X) A \mathrlap{,} \qquad A^{[1]} \mathrlap{.}\] The first five forms of propositions are familiar from first-order logic, while the sixth is specific to our setting. For a proposition \(A\), we refer to \(A^{[1]}\) as the power of \(A\). Informally speaking, if a proposition \(A\) expresses properties of the objects of a category, the proposition \(A^{[1]}\) expresses properties of its morphisms. The deduction rules for isoregular logic are presented in three groups:

  • rules for the formation of terms, in ¿tbl:tab:terms?,

  • rules for the formation of propositions, in ¿tbl:tab:props?,

  • rules for logical entailment, in 8.

One distinguishing aspect of this set of rules is that the deduction rules for forming new propositions depend on the deduction rules regarding logical entailment and viceversa. This is in contrast with first-order logic, where one first defines the set of well-formed formulas and then, separately, defines the set of theorems of a theory by giving the deduction rules for logical entailment, but is quite a natural adaptation of ideas from dependent type theory, where formation rules for types (which often can be seen as propositions, according to the propositions-as-types idea) can have premisses involving inhabitation of other types (which can be seen as derivability of propositions).

Let us explain the rules for formation of existentially quantified propositions, which allow us to form existential quantifiers only on propositions (provably) of a suitable kind. There are two such rules, given in [tbl:equ:exists-formation-mono] and [tbl:equ:exists-formation-eqfib], corresponding to ‘there exists a unique’ and ‘there exists a unique up to unique isomorphism’, respectively. The premiss \((x \colon X, y \colon Y) \;B(x,y) \colon\mathsf{prop}\) of these rules can be thought informally as giving rise to a morphism \[\label{equ:eqfib-informal} \{ x \colon X, y \colon Y \;| \;B(x,y) \} \rightarrowtail X \times Y \xrightarrow{ \pi_1} X \mathrlap{.}\tag{5}\] In [tbl:equ:exists-formation-mono], the judgement \(\mathcal{J}_{\textsf{mono}}(B)\) expresses that, for \(x \colon X\), there exists at most one \(y \colon Y\) such that \(B(x,y)\) holds, i.e. asserting that the morphism in 5 is a monomorphism. In [tbl:equ:exists-formation-eqfib], the judgements \(\mathcal{J}_{\textsf{faithful}}(B)\) and \(\mathcal{J}_{\textsf{full\text{-}id}}(B)\) express that, for \(x \colon X\), there exists at most one up to unique isomorphism \(y \colon Y\) such that \(B(x,y)\) holds, by asserting that the morphism in 5 is faithful and full on identities, and therefore an ffk-morphism by 5. Note that, using the rule in [equ:exists-formation-mono], the judgement \(\mathcal{J}_{\textsf{faithful}}(B)\) implies that the existential quantifier in \(\mathcal{J}_{\textsf{full\text{-}id}}(B)\) can actually be formed.

\[\begin{prooftree} s \co X \qquad t \co X \justifies s = t \co \prp \end{prooftree}\]

\[\begin{prooftree} s_1 \co X_1 \quad \ldots \quad s_n \co X_n \justifies R(s_1, \ldots, s_n) \co \prp \end{prooftree}\]

\[\begin{prooftree} A \co \prp \quad B \co \prp \justifies A \land B \co \prp \end{prooftree}\]

\[\begin{prooftree} A \co \prp \justifies A^{[1]} \co \prp \end{prooftree}\]

\[\begin{prooftree} (x \co X, y \co Y) \;B(x, y) \co \mathsf{prop} \qquad \mathcal{J}_{\mathsf{mono}}(B) \justifies (x \co X) \quad (\exists y \co Y) B(x,y) \co \mathsf{prop} \mathrlap{,} \end{prooftree}\] where \[\mathcal{J}_{\mathsf{mono}}(B) \defeq (x \co X, y, y' \co Y) \;B(x, y), B(x, y') \vdash y = y' \mathrlap{.}\]

\[\begin{prooftree} (x \co X, y \co Y) \;B(x, y) \co \prp \qquad \mathcal{J}_{\mathsf{faithful}}(B) \qquad \mathcal{J}_{\mathsf{full\text{-}id}}(B) \justifies (x \co X) \quad (\exists y \co Y) B(y) \co \mathsf{prop} \mathrlap{,} \end{prooftree}\] where \[\begin{aligned} & \mathcal{J}_{\mathsf{faithful}}(B) \defeq \\ & \qquad \big( \bar{u} \co X^{[1]}, v, v' \co Y^{[1]} \big) \quad B^{[1]}( \bar{u}, v), \;B^{[1]}( \bar{u}, v'), \;\dom( v)=\dom( v'), \;\cod( v)=\cod( v') \vdash v= v' \mathrlap{,} \\ & \mathcal{J}_{\mathsf{full\text{-}id}} (B) \defeq \\ & \qquad \big( x \co X, y, y' \co Y \big) \quad B( \bar{x}, y), \;B( \bar{x}, y') \vdash (\exists u\colon Y^{[1]}) (B^{[1]}(\id_{\bar{x}}, u)\land \dom( u)= y\wedge\cod( u)= y' ) \mathrlap{.} \end{aligned}\]

The deduction rule logical entailment for conjunction and existential quantification are the standard introduction and elimination rules, except that we need to include the so-called Frobenius rule (3), which ensures a good behaviour of the existential quantifier in contexts where implication is not part of the logical calculus. Note that, whenever an existential statement occurs in the conclusion of a deduction rule, the premisses ensure that, by the rules in [equ:exists-formation-mono] and [equ:exists-formation-eqfib] the existential quantifier can be formed. The other deduction rules for logical entailment express important properties of the intended models. For example, for a coequaliser of finite categories, \[\begin{tikzcd} \,\mathbb{a} \ar[r, shift left = 1, "f"] \ar[r, shift right = 1, "g"'] & \,\mathbb{c} \ar[r, "q"] & \,\mathbb{c} \mathrlap{,} \end{tikzcd}\] we have the deduction rule \[\begin{prooftree} s \colon S^{\,\mathbb{b}} \quad s \cdot f = s \cdot g \justifies (\exists x \colon S^{\,\mathbb{c}}) \big( x \cdot q = s \big) \mathrlap{.} \end{prooftree}\] Here, the existential quantifier can be formed according to our rules above since the judgement \[(x, x' \colon S^{\,\mathbb{c}}) \quad x \cdot q = s, x' \cdot q = s \vdash x = x'\] is provable using 6, as \(q\) is an epimorphism. The rules for powers of terms and propositions express functoriality of the operation of raising terms and propositions to a power and the preservation of conjunction and existential quantifiers by forming the power of a proposition.

Examples 19. We give some examples of derivable judgements, establishing some properties of the terms introduced in 17.

  1. We can express that two triangles \(t,t'\colon X^{[2]}\) with common diagonal fit into a commutative square of the form \[\begin{tikzcd} A \ar[r, "\mathsf{fst}(t')"] \ar[d, "\mathsf{fst}(t)"'] & B \ar[d, "\mathsf{snd}(t')"] \\ C \ar[r, "\mathsf{snd}(t)"'] & D \end{tikzcd}\] Indeed, the rule \[\begin{prooftree} t,t'\colon X^{[2]} \qquad \mathsf{comp}(t)=\mathsf{comp}(t') \justifies (\exists v \colon X^{[1]\times[1]}) \big( \mathsf{pr}_u(v)=\mathsf{fst}(t') \land \mathsf{pr}_d(v)=\mathsf{snd}(t) \land \mathsf{pr}_l(v)=\mathsf{fst}(t) \land \mathsf{pr}_r(v)=\mathsf{snd}(t') \big) \end{prooftree}\] is derivable.

  2. Given a square \(s\colon X^{[1]\times [1]}\) we have terms \(\mathsf{dom}(s)\colon X^{[1]}\) and \(\mathsf{dom}^{[1]}(s)\colon X^{[1]}\) (similarly for \(\mathsf{cod}\)), where the first \(\mathsf{dom}\) is relative to the context \(X^{[1]}\) and the second is relative to \(X\). Using the deduction rules it is easy to see that \[\begin{prooftree} s\colon X^{[1]\times [1]} \justifies \mathsf{pr}_u(s)=\mathsf{dom}^{[1]}(s) \land \mathsf{pr}_d(s)=\mathsf{dom}^{[1]}(t) \land \mathsf{pr}_l(s)=\mathsf{dom}(s) \land \mathsf{pr}_r(s)=\mathsf{cod}(s) \end{prooftree}\] is derivable.

Notation 20 (Substitution). Given a term \((\bar x\colon\bar X)\; t(\bar x)\colon Y\) and a formula in context \((y\colon Y)\;A(y)\), we define \[(\bar x\colon\bar X)\;A[t(\bar x)/y]\equiv_{\mathrm{def}}(\bar x\colon\bar X)\;(\exists y\colon Y)\;A(y)\land t(\bar x)=y\] to denote the substitution of \(y\) by \(t(\bar x)\) in \(A\). We prefer this approach to the classical recursive definition to avoid annoying technicalities generated by the power rule. Note that if \((y\colon Y)\;A(y)\colon\mathsf{prop}\) holds then so does \((\bar x\colon\bar X)\;A[t(\bar x)/y]\colon\mathsf{prop}\) since the uniqueness of the existential quantification is easily derivable.

Definition 21.

  • We define the class of isoregular theories inductively as follows:

    • the empty theory is isoregular;

    • if \({\mathbb{T}}\) is an isoregular theory, \(I\) is a set, and, for \(i \in I\), \[\mathcal{J}_i \equiv_{\mathrm{def}}(\bar{x}_i \colon\bar{X}_i) \; A_{i,1}, \ldots, A_{i,n_i} \vdash A_{i}\] is a judgement such that \((\bar{x}_i \colon\bar{X}_i) \;A_{i, j} \colon\mathsf{prop}\), for \(1 \leq j \leq n_i\), and \((\bar{x}_i \colon\bar{X}_i) \;A_{i} \colon\mathsf{prop}\) are derivable in \({\mathbb{T}}\), then \({\mathbb{T}}\cup \{ \mathcal{J}_i \;| \;i \in I \}\) is an isoregular theory.

  • The derivable judgements (or theorems) of an isoregular theory are the judgements that are derivable from the axioms of the theory using the isoregular deduction rules.

Running example 22. Building on our running example from 18, we define the theory of Grothendieck fibrations \({\mathbb{T}}_{\mathsf{Gfib}}\) to consist of the following axioms:

  1. \((z,w\colon E^{[2]})\quad \mathsf{Cart}(\mathsf{snd}(z)),\;z\cdot \iota_{\,\mathbb{e}}=w\cdot \iota_{\,\mathbb{e}},\;p^{[1]}(\mathsf{fst}(z))=p^{[1]}(\mathsf{fst}(w))\vdash z=w\);

  2. \((x\colon E^{\,\mathbb{e}}, z\colon B^{[2]})\quad \mathsf{Cart}(\mathsf{snd}(x)),\;p^{[1]}(\mathsf{snd}(x))=\mathsf{snd}(z),\;p^{[1]}(\mathsf{comp}(x))=\mathsf{comp}(z)\quad\)
    \(\vdash (\exists w\colon E^{[2]})\quad w\cdot\iota_{\,\mathbb{e}}= x\wedge p^{[1]}(\mathsf{fst}(w))=\mathsf{fst}(z)\wedge \mathsf{Cart}(\mathsf{snd}(w))\);

  3. \((y\colon E^{\,\mathbb{f}})\quad \mathsf{Cart}(\mathsf{snd}(y)) \vdash \mathsf{Cart}(\mathsf{comp}(y))\);

  4. \((u\colon E^{[1]\times [1]})\quad \mathsf{Cart}(\mathsf{dom}(u)), \mathsf{Cart}(\mathsf{cod}(u))\vdash \mathsf{Cart}^{[1]}(u)\);

  5. \((y\colon E, u\colon B^{[1]})\quad \mathsf{cod}(u)=p(y) \vdash (\exists v\colon E^{[1]})\;\mathsf{Cart}(v)\wedge \mathsf{cod}(v)=y \wedge p^{[1]}(v)=u\).

The first two axioms say that every map in \(\mathsf{Cart}\) satisfies the unique lifting property, i.e. is cartesian; axioms (iii) and (iv) say that \(\mathsf{Cart}\) is closed under isomorphisms and is a full subcategory of \(E^{[1]}\). Then, axiom (v) requires that every morphism in \(B\) with codomain \(p(y)\) has a cartesian lift.

Remark 23. If we remove [tbl:equ:exists-formation-eqfib] from our deductive system we obtain a strict 2-dimensional version of cartesian theories, which only allows unique existential quantification. In this setting, it is still possible to prove that the syntactic 2-category \(\mathsf{Syn}({\mathbb{T}})\) of 4.1 is finitely complete (rather than isoregular), and that models in a finitely complete 2-category \({\mathcal{K}}\) correspond to finite-limit-preserving 2-functors \(\mathsf{Syn}({\mathbb{T}})\to{\mathcal{K}}\). However, almost none of the examples of 6 fit this framework.

3.3 Semantics↩︎

We shall be interested in interpreting formulas of these forms in an isoregular 2-category with a structure for \({\mathbb{L}}\). Importantly, not every raw proposition will admit an interpretation. Instead, we define simultaneously when a proposition is interpretable and, in that case, what its interpretation is. More precisely, if \(A\) is a proposition with free variables in the context \((x_1 \colon S_1^{\,\mathbb{c}_1},\ldots, x_n \colon S_n^{\,\mathbb{c}_n})\), we define when \(A\) is interpretable over \(L\) and, in that case, its interpretation as a subobject \[\llbracket{A}\rrbracket\rightarrowtail \llbracket{S_1}\rrbracket^{\,\mathbb{c}_1}\times\cdots\times \llbracket{S_n}\rrbracket^{\,\mathbb{c}_n}\] by recursion on the structure of the formula.

Definition 24. Let \({\mathbb{L}}\) be a finitary language. Let \({\mathcal{K}}\) be a 2-category with finite 2-limits. An \({\mathbb{L}}\)-structure \(M\) in \({\mathcal{K}}\) consists of:

  1. an object \(\llbracket{S}\rrbracket_{M} \in {\mathcal{K}}\), for every basic sort \(S\in{\mathcal{S}}\);

  2. a morphism \(\llbracket{f}\rrbracket_{M} \colon \llbracket{S_1}\rrbracket^{\,\mathbb{c}_1}_{M} \times\cdots\times \llbracket{S_n}\rrbracket^{\,\mathbb{c}_n}_{M} \to \llbracket{S}\rrbracket^{\,\mathbb{c}}_{M}\), for every function symbol \(f\colon S_1^{\,\mathbb{c}_1},\cdots, S_n^{\,\mathbb{c}_n}\to S^{\,\mathbb{c}}\) in \({\mathbb{L}}\);

  3. a monomorphism \(\llbracket{R}\rrbracket_{M} \rightarrowtail \llbracket{S_1}\rrbracket^{\,\mathbb{c}_1}_{M} \times\cdots\times \llbracket{S_n}\rrbracket^{\,\mathbb{c}_n}_{M}\) for every relation symbol \(R \rightarrowtail S_1^{\,\mathbb{c}_1},\cdots ,S_n^{\,\mathbb{c}_n}\) in \({\mathbb{L}}\).

Below, we shall drop the subscript in the interpretation of sorts, function symbols and relation symbols whenever this does not cause confusion.

Remark 25. When \({\mathcal{K}}=\mathsf{Cat}\), this coincides with the notion of \({\mathbb{L}}\)-structure considered in [18] specific to the case of 2-categories with chosen factorisation the (strong epi, mono). In fact, our isoregular theories and their models (in \(\mathsf{Cat}\)) can be seen as particular instances of the regular theories developed in [18], where there is no restriction on the use existential quantification. Because of this, their 2-categories of models may in general not have flexible limits.

Assuming to have an \({\mathbb{L}}\)-structure \(M\) in \({\mathcal{K}}\) as in 24, we define the interpretation of sorts and contexts. For a sort \(X = S^{\,\mathbb{c}}\), we define \[\llbracket{ S^{\,\mathbb{c}}}\rrbracket \equiv_{\mathrm{def}}\llbracket{S}\rrbracket^{\,\mathbb{c} } \mathrlap{.}\] For a context \((\bar{x} \colon\bar{X}) = (x_1 \colon X_1, \ldots, x_n \colon X_n)\), we define \[\llbracket{ \bar{X} }\rrbracket \equiv_{\mathrm{def}}\llbracket{ X_1}\rrbracket \times \ldots \times \llbracket{X_n}\rrbracket \mathrlap{.}\] We then define the interpretation of the derivable judgements of the form 2 , so that a term \(s \colon Y\) in context \(\bar{x} \colon\bar{X}\) is interpreted as a morphism \[\llbracket{s}\rrbracket \colon\llbracket{\bar{X}}\rrbracket \to \llbracket{Y}\rrbracket \mathrlap{.}\] We do so by recursion on the derivation of the judgement, following the rules in ¿tbl:tab:terms?. First, for the variable rule, the interpretation of \((x_1 \colon X_1, \ldots, x_n \colon X_n) \;\mathsf{var}_i(\bar x) \colon X_i\), where \(1 \leq i \leq n\), is defined to be the \(i\)-th projection: \[\begin{tikzcd} \llbracket{ X_1}\rrbracket \times \ldots \times \llbracket{X_n}\rrbracket \ar[r, "\mathsf{pr}_i"] & \llbracket{X_i}\rrbracket \mathrlap{.} \end{tikzcd}\] For the function application rule, the interpretation of \(f(s_1, \ldots, s_n) \colon Y\) in context \(\bar{x} \colon\bar{X}\) is defined as the composite \[\begin{tikzcd}[column sep = huge] \llbracket{\bar{X}}\rrbracket \ar[r, "{(\llbracket{s_1}\rrbracket, \ldots, \llbracket{s_n}\rrbracket)}"] & \llbracket{Y_1}\rrbracket \times \ldots \times \llbracket{Y_n}\rrbracket \ar[r, "\llbracket{f}\rrbracket"] & \llbracket{Y}\rrbracket \mathrlap{,} \end{tikzcd}\] where, by the recursive hypothesis, we assumed that the interpretation of the judgements \((\bar{x} \colon\bar{X}) \;s_i \colon Y_i\) is defined. For the restriction rule, we define the interpretation of \(s \cdot f \colon S^{\,\mathbb{d}}\) to be the composite \[\begin{tikzcd} \llbracket{\bar{X}}\rrbracket \ar[r, "\llbracket{s}\rrbracket"] & \llbracket{S}\rrbracket^{\,\mathbb{c}} \ar[r, "\llbracket{S}\rrbracket^f"] & \llbracket{S}\rrbracket^{\,\mathbb{d}} \mathrlap{.} \end{tikzcd}\] For the power rule, assuming we have defined \(\llbracket{s}\rrbracket \colon\llbracket{\bar{X}}\rrbracket \to \llbracket{Y}\rrbracket\), we define the interpretation of \(s^{[1]} \colon X^{[1]}\) in context \(\bar{X}^{[1]}\) using the functoriality of powers, to be the composite \[\begin{tikzcd} \llbracket{ \bar{X}^{[1]} }\rrbracket \ar[r, "\cong"] & \llbracket{\bar{X}}\rrbracket^{[1]} \ar[r, "\llbracket{s}\rrbracket^{[1]}"] & \llbracket{Y}\rrbracket^{[1]} \ar[r, "\cong"] & \llbracket{Y^{[1]}}\rrbracket \mathrlap{,} \end{tikzcd}\] where, again, we assumed that the interpretation of \((\bar{x} \colon\bar{X}) \;s \colon Y\) is defined. Finally, for the substitution rule, the interpretation of \(t[s_1/y_i \ldots, s_n/y_n] \colon Y\) in context \(\bar{x} \colon\bar{X}\) is defined as the composite \[\begin{tikzcd}[column sep = huge] \llbracket{\bar{X}}\rrbracket \ar[r, "{(\llbracket{s_1}\rrbracket, \ldots, \llbracket{s_n}\rrbracket)}"] & \llbracket{Y_1}\rrbracket \times \ldots \times \llbracket{Y_n}\rrbracket \ar[r, "\llbracket{t}\rrbracket"] & \llbracket{Y}\rrbracket \mathrlap{.} \end{tikzcd}\]

Running example 26. Let \({\,\mathbb{L}}_{\mathsf{GFib}}\) be the language for the theory of Grothendieck fibrations of 18. A structure for it in the 2-category \(\mathsf{Cat}\) consists of two categories \(\llbracket{E}\rrbracket\) and \(\llbracket{B}\rrbracket\) together with a functor \(\llbracket{p}\rrbracket \colon\llbracket{E}\rrbracket \to \llbracket{B}\rrbracket\) and a subcategory \(\llbracket{\mathsf{Cart}}\rrbracket \subseteq \llbracket{E}\rrbracket^{[1]}\).

Let \({M}\) be an \({\mathbb{L}}\)-structure in an isoregular 2-category \({\mathcal{K}}\). In order to extend the interpretation to the other forms of judgement, some additional care is required, since the derivability of judgements of one form is related to the derivability of the judgements of the other form, as familiar from dependent type theory. In particular, it is not possible to define the interpretation of propositions first and define what it means for a logical entailment to be valid separately. Instead, we start by defining a partial interpretation function mapping a judgement of the form \((\bar{x} \colon\bar{X}) \;A \colon\mathsf{prop}\) to a subobject \(\llbracket{A}\rrbracket \rightarrowtail \llbracket{\bar{X}}\rrbracket\) in \({\mathcal{K}}\) by recursion on the structure of the expression \(A\). This partial function will be proved to be total on the derivable judgements. To this end, we record when each clause is well-defined.

  1. The interpretation of the judgement \((\bar{x} \colon\bar{X}) \;R(s_1, \ldots, s_n) \colon\mathsf{prop}\) is the pullback

    Figure 5: image.

    This is well-defined if we have \(m_R \colon\llbracket{R}\rrbracket \rightarrowtail \llbracket{\bar{Y}}\rrbracket\) and \(\llbracket{s_i}\rrbracket \colon\llbracket{\bar{X}}\rrbracket \to \llbracket{Y_i}\rrbracket\), for all \(1 \leq i \leq n\).

  2. The interpretation of the judgement \((\bar{x} \colon\bar{X}) \;s=t \colon\mathsf{prop}\) is the equaliser of \(\llbracket{s}\rrbracket\) and \(\llbracket{t}\rrbracket\): \[\begin{tikzcd} \llbracket{s = t}\rrbracket \ar[r, >->] & \llbracket{\bar{X}}\rrbracket \ar[r, "\llbracket{s}\rrbracket", shift left = 1] \ar[r, "\llbracket{t}\rrbracket"', shift right = 1] & \llbracket{Y}\rrbracket \end{tikzcd}\] This is well-defined if we have \(\llbracket{s}\rrbracket \colon \llbracket{\bar{X}}\rrbracket \to \llbracket{Y}\rrbracket\) and \(\llbracket{t}\rrbracket \colon\llbracket{\bar{X}}\rrbracket \to \llbracket{Y}\rrbracket\).

  3. The interpretation of the judgement \((\bar{x} \colon\bar{X}) \;A \wedge B \colon\mathsf{prop}\) is the pullback

    Figure 6: image.

    This is well-defined if the interpretations of the judgements \((\bar{x} \colon\bar{X}) \;A \colon\mathsf{prop}\) and \((\bar{x} \colon\bar{X}) \;B \colon\mathsf{prop}\) are so.

  4. The interpretation of the judgement \((\bar{x} \colon\bar{X}^{[1]}) \vdash A^{[1]} \colon\mathsf{prop}\) is the pullback:

    Figure 7: image.

    This is well-defined if the interpretation of the judgement \((\bar{x} \colon\bar{X}) \;A \colon\mathsf{prop}\) is so.

  5. The interpretation of the judgement \((\bar{x} \colon\bar{X}) \;(\exists y \colon Y) B(\bar{x}, y) \colon\mathsf{prop}\) is the (fully faithful regular epimorphism, monomorphism)-factorisation

    Figure 8: image.

    where \(p_1\) is the projection on the first factor. This is well-defined if the interpretation of the judgement \((\bar{x} \colon\bar{X}, y \colon Y) \;B(\bar{x}, y) \colon\mathsf{prop}\) is well-defined and \(m_B \circ p_1\) is an ffk-morphism in \({\mathcal{K}}\).

Definition 27. Let \({\mathbb{L}}\) be a finitary language. Let \({\mathcal{K}}\) be an isoregular 2-category and \(M\) be an \({\mathbb{L}}\)-structure in \({\mathcal{K}}\).

  1. The judgement \((\bar{x} \colon\bar{X}) \;s \colon Y\) is valid if \(\llbracket{s}\rrbracket \colon\llbracket{\bar{X}}\rrbracket \to \llbracket{Y}\rrbracket\).

  2. The judgement \((\bar{x} \colon\bar{X}) \;A \colon\mathsf{prop}\) is valid if its interpretation is well-defined.

  3. The judgement \((\bar{x} \colon\bar{X}) \;A_1, \ldots, A_n \vdash A\) is valid if \(\llbracket{A_1}\rrbracket \cap \ldots \cap \llbracket{A_n}\rrbracket \leq \llbracket{A}\rrbracket\) as subobjects of \(\llbracket{\bar{X}}\rrbracket\).

  4. A deduction rule \[\begin{prooftree} \mathcal{J}_1 \quad \ldots \quad \mathcal{J}_n \justifies \mathcal{J} \end{prooftree}\] is valid if, whenever \(\mathcal{J}_1 \ldots \mathcal{J}_n\) are valid, so is \(\mathcal{J}\).

The next lemma can be understood as a form of definability.

Lemma 4. Let \((\bar{x} \colon\bar{X}, y \colon Y) \;B(\bar{x}, y) \colon\mathsf{prop}\) be a derivable judgement and consider the morphism \[\begin{tikzcd} \llbracket{B}\rrbracket \ar[r, tail, "m_B"] & \llbracket{X}\rrbracket \times \llbracket{Y}\rrbracket \ar[r, "\mathsf{pr}_1"] & \llbracket{X}\rrbracket \end{tikzcd}\]

  1. The judgement \(\mathcal{J}_{\mathsf{mono}}(B)\) is valid if and only if the morphism \(\mathsf{pr}_1 \circ m_B\) is a monomorphism.

  2. The judgements \(\mathcal{J}_{\mathsf{faithful}}(B)\) and \(\mathcal{J}_{\mathsf{full\text{-}id}}(B)\) are valid if and only if the morphism \(\mathsf{pr}_1 \circ m_B\) is an ffk-morphism.

Proof. We only prove the ‘only if’ statements. For part (i), the first step is to note that the validity of the judgement \[(x \colon X, y \colon Y, y' \colon Y) \;B(x,y) \land B(x,y') \vdash y = y' \mathsf{prop}\] expresses that we have a factorisation of the form \[\begin{tikzcd} \llbracket{B(x,y)}\rrbracket \cap \llbracket{B(x,y')}\rrbracket \ar[rr, dotted] \ar[dr, >->] & & \llbracket{X}\rrbracket \times \llbracket{ y = y' }\rrbracket \ar[dl, >->] \\ & \llbracket{X}\rrbracket \times \llbracket{Y}\rrbracket \times \llbracket{Y}\rrbracket & \end{tikzcd}\] where the right-hand morphism is obtained by pulling back the diagonal of \(\llbracket{Y}\rrbracket\). Since the domain of the dotted arrow coincides with the kernel pair of \(\mathsf{pr}_1 \circ m_B\), this is easily seen to imply that \(\mathsf{pr}_1 \circ m_B\) is a monomorphism.

For part (ii), the claim on faithfulness can be proved similarly to part (i). For the claim on fullness on identities, for \(x \colon X, y, y' \colon Y, u \colon Y^{[1]}\), let \[C(x,y,y',u) \equiv_{\mathrm{def}}B(x,y) \land B(x,y') \land B^{[1]}(\mathsf{id}_x, y) \land \mathsf{dom}(u) = y \land \mathsf{cod}(u) = y'\] By assumption on faithfulness, the composite \[\llbracket{ C(x,y,y',u) }\rrbracket \rightarrowtail \llbracket{X}\rrbracket \times \llbracket{Y}\rrbracket \times \llbracket{Y}\rrbracket \times \llbracket{Y}\rrbracket^{[1]} \rightarrow \llbracket{X}\rrbracket \times \llbracket{Y}\rrbracket \times \llbracket{Y}\rrbracket\] is a monomorphism. Therefore, the assumption means that we have an inclusion \[\llbracket{B(x,y)}\rrbracket \cap \llbracket{B(x,y')}\rrbracket \leq \llbracket{C(x,y,y',u)}\rrbracket\] which can easily be shown to imply the required fullness on identitites by unfolding the definition of the intepretation of \(C\). ◻

Definition 28. Let \({\mathbb{T}}\) be an isoregular theory and \({\mathcal{K}}\) an isoregular 2-category. An \({\mathbb{L}}\)-structure \(M\) in \({\mathcal{K}}\) is called a model of \({\mathbb{T}}\) if every axiom of \({\mathbb{T}}\) is valid in \({\mathcal{K}}\).

We establish the soundness of the deduction rules of isoregular theories.

Theorem 29. Let \({\mathbb{T}}\) be an isoregular theory, \({\mathcal{K}}\) an isoregular 2-category, and \(M\) a model of \({\mathbb{T}}\) in \({\mathcal{K}}\). Every theorem of \({\mathbb{T}}\) is \({\mathcal{K}}\) is valid.

Proof. The proof proceeds by induction on the derivations, checking that all the deduction rules of the isoregular deductive calculus in 8 are valid.

The deduction rules for atomic formulas, conjunction, and existential quantification are treated essentially as in the 1-categorical case, but one should use 4 to prove the validity of the formation rules for the existential quantifier.

The rule for the terminal object is valid since \(\llbracket{S^0}\rrbracket\) is terminal. The rules for restriction with the axioms for an action are clearly valid. For the one on jointly epimorphic family, observe that we have a diagram \[\begin{tikzcd} \llbracket{\bar{X}}\rrbracket \ar[r, shift left = 1, "\llbracket{s}\rrbracket"] \ar[r, shift right = 1, "\llbracket{t}\rrbracket"'] & \llbracket{S}\rrbracket^{\,\mathbb{c}} \ar[r, "\llbracket{S}\rrbracket^{f_i}"] & \llbracket{S}\rrbracket^{\,\mathbb{d}} \mathrlap{,} \end{tikzcd}\] where the family \(\big( \llbracket{S}\rrbracket^{f_i} )_{1 \leq i \leq n}\) is jointly monomorphic. Similarly, for the rule on coequalisers, the premisses give us a diagram of solid arrows \[\begin{tikzcd} \llbracket{\bar{X}}\rrbracket \ar[d, dotted] \ar[dr, "\llbracket{s}\rrbracket"] & & \\ \llbracket{S}\rrbracket^{\,\mathbb{c} } \ar[r, "\llbracket{S}\rrbracket^q"'] & \llbracket{S}\rrbracket^{\,\mathbb{d}} \ar[r, shift left = 1, "\llbracket{S}\rrbracket^f"] \ar[r, shift right = 1, "\llbracket{S}\rrbracket^g"'] & \llbracket{S}\rrbracket^{\,\mathbb{a}} \end{tikzcd}\] where \(\llbracket{S}\rrbracket^q\) is the equaliser of \(\llbracket{S}\rrbracket^f\) and \(\llbracket{S}\rrbracket^g\). The universal property of equalisers provides the desired conclusion. Finally, the rules about powers are valid either using that the 2-functor \((-)^{[1]} \colon{\mathcal{K}}\to {\mathcal{K}}\) preserves all the structure or via direct calculations. For example, the validity of the rule \[\begin{prooftree} x \colon S^{\,\mathbb{c} } \vdash A(x) \colon\mathsf{prop} \qquad s \colon(S^{\,\mathbb{c} })^{[1]} \justifies A^{[1]}(s) \vdash A( \mathsf{dom}(s) ) \end{prooftree}\] is obtained by pulling back the diagram \[\begin{tikzcd} \llbracket{A}\rrbracket^{[1]} \ar[d, dotted] \ar[r, tail] & \llbracket{ S^{\,\mathbb{c}} }\rrbracket^{[1]} \ar[d, "\mathsf{dom}"] \\ \llbracket{A}\rrbracket \ar[r, tail] & \llbracket{S^{\,\mathbb{c}}}\rrbracket \end{tikzcd}\] along the morphism \(\llbracket{s}\rrbracket \colon\llbracket{\bar{X}}\rrbracket \to \llbracket{S^{\,\mathbb{c}}}\rrbracket\). ◻

We are now ready to define the 2-categories of structures over a language, and of models over an isoregular theory.

Definition 30. Let \({\mathbb{T}}\) be an isoregular theory, \({\mathcal{K}}\) an isoregular theory, \(M\) and \(N\) be structures for \({\mathbb{T}}\) in \({\mathcal{K}}\).

  • A morphism of structures \(p \colon M\to N\) consists of a morphism \(p_S \colon\llbracket{S}\rrbracket_{M} \to \llbracket{S}\rrbracket_{N}\), for every basic sort \(S\), such that, for every function symbol \(f\), the following diagram commutes \[\begin{tikzcd} \llbracket{\bar{X}}\rrbracket_{M} \ar[d, "\llbracket{f}\rrbracket_{M}"'] \ar[r, "p_{\bar{X}}"] & \llbracket{\bar{X}}\rrbracket_{N} \ar[d, "\llbracket{f}\rrbracket_{N}"] \\ \llbracket{X}\rrbracket_{M} \ar[r, "p_X"'] & \llbracket{X}\rrbracket_{N} \mathrlap{,} \end{tikzcd}\] where \(p_{\bar{X}}\) and \(p_X\) are the evident morphisms, and for every relation symbol \(R\), there exists a (necessarily unique) dotted map making the diagram \[\begin{tikzcd}[column sep = huge] \llbracket{R}\rrbracket_{M} \ar[d, tail] \ar[r, dotted] & \llbracket{R}\rrbracket_{N} \ar[d, tail] \\ \llbracket{\bar{X}}\rrbracket_{M} \ar[r, "p_{\bar{X}}"'] & \llbracket{\bar{X}}\rrbracket_{N} \end{tikzcd}\] commute.

  • A structure morphism 2-cell \(\phi \colon p \Rightarrow q\) of morphisms of structures consists of a 2-cell \(\phi_S \colon p_S \Rightarrow q_S\), for every basic sort \(S\), such that, for any function symbol \(f\), the following commutes

    Figure 9: image.

    where \(\phi_{\bar{X}}\) and \(\phi_X\) are the evident morphisms induced by \(\phi\), and for every relation symbol \(R\), there exists a (necessarily unique) dotted 2-cell making the diagram

    Figure 10: image.

    commute.

Structures, morphisms of structures, and structure morphism 2-cells form an evident 2-category that we denote as \(\mathsf{Str}({\mathbb{L}},{\mathcal{K}})\). We then define the \(2\)-category of models of \({\mathbb{T}}\) in \({\mathcal{K}}\), written \(\mathsf{Mod}({\mathbb{T}},{\mathcal{K}})\), as the full subcategory of \(\mathsf{Str}({\mathbb{L}},{\mathcal{K}})\) spanned by the models of \({\mathbb{T}}\).

Running example 31. As we shall discuss in more detail in 6, a model of the theory \({\,\mathbb{T}}_{\mathsf{GFib}}\) is a Grothendieck fibration and its 2-category of models \(\mathsf{Mod}({\,\mathbb{T}}_{\mathsf{GFib}},\mathsf{Cat})\) is isomorphic to the 2-category of Grothendieck fibrations and cartesian functors between them.

Remark 32. Following 25, \(\mathsf{Str}({\mathbb{L}},\mathsf{Cat})\) coincides with the 2-category constructed in [18] which is locally presentable as a 2-category by [18]. Adapting the same proof it is easy to see that \(\mathsf{Str}({\mathbb{L}},{\mathcal{K}})\) is locally finitely presentable whenever \({\mathcal{K}}\) is so, and that the forgetful 2-functor \[\mathsf{Str}({\mathbb{L}},{\mathcal{K}})\longrightarrow \prod_{S\in{\mathcal{S}}}{\mathcal{K}}\mathrlap{,}\] obtained by evaluating on sorts, is continuous and preserves filtered colimits. We will study the accessibility of \(\mathsf{Mod}({\mathbb{T}},{\mathcal{K}})\) in 5.

We conclude this section with two lemmas on the 2-categories of models which will be useful later.

Lemma 5. Let \({\mathbb{T}}\) be an isoregular theory, \({\mathcal{K}}\) be an isoregular 2-category, and \(p \colon M\to N\) a morphism in \(\mathsf{Mod}({\mathbb{T}},{\mathcal{K}})\). Then for any judgement \((\bar{x} \colon\bar{X})\;A \colon\mathsf{prop}\), there exists a unique morphism \(p_A\) making the diagram

Figure 11: image.

commute.

Proof. This is easily proved by induction on the complexity of the formula. ◻

Lemma 6. Let \({\mathbb{T}}\) be an isoregular theory and \({\mathcal{K}}\) an isoregular 2-category. Then the 2-category \(\mathsf{Mod}({\mathbb{T}},{\mathcal{K}})\) is closed in \(\mathsf{Str}({\mathbb{L}},{\mathcal{K}})\) under powers by \([1]\).

Proof. The claim follows since powers by \([1]\) in \(\mathsf{Str}({\mathbb{L}},{\mathcal{K}})\) are computed componentwise, and for any model \(M\) and judgment \((\bar{x} \colon\bar{X})\;A \colon\mathsf{prop}\) one has \(\llbracket{A}\rrbracket_{M^{[1]}}\cong \llbracket{A}\rrbracket_M^{[1]}\). ◻

4 Functorial semantics for isoregular theories↩︎

4.1 The syntactic 2-category of an isoregular theory↩︎

We construct the syntactic 2-category of an isoregular theory. For this, we introduce some definitions.

Definition 33. Let \({\mathbb{T}}\) be a isoregular theory.

  • A formula-in-context, written \(\{ \bar{x} \colon\bar{X} \; | \;A(\bar{x}) \}\), is a pair consisting of a context \(\bar{X}\) and a raw formula \(A\) such that the following judgement is derivable in \({\mathbb{T}}\): \[(\bar{x} \colon\bar{X}) \quad A \colon\mathsf{prop}\mathrlap{.}\]

  • A morphism \([f]\colon \{ \bar{x} \colon\bar{X} | \;A( \bar{x})\}\to \{ \bar{y} \colon\bar{Y} |\; B(\bar{y})\}\) between formulas-in-context is an equivalence class of formulas-in-context \(\{ \bar{x} \colon\bar{X}, \bar{y} \colon\bar{Y} |\;f( \bar{x}, \bar{y})\}\) such that the following judgements are derivable in \({\mathbb{T}}\): \[\begin{gather} f(\bar{x},\bar{y})\vdash A(\bar{x})\wedge B(\bar{y}) \mathrlap{,} \\ f(\bar{x},\bar{y}) \mathrlap{,} \; f(\bar{x},\bar{y}')\vdash \bar{y}=\bar{y}' \mathrlap{,} \\ A(\bar{x})\vdash (\exists \bar{y} \colon\bar{Y}) f(\bar{x},\bar{y}) \mathrlap{.} \end{gather}\] Two such formulas-in-context are equivalent if each is provable from the other in \({\mathbb{T}}\).

  • A \(2\)-cell \([\alpha]\colon [f]\Rightarrow [f']\) between morphisms with domain \(\{ \bar{x} \colon\bar{X} \; | \;A(\bar{x}) \}\) and codomain \(\{ \bar{y} \colon\bar{Y} \; | \;B(\bar{y}) \}\) is an equivalence class of formulas-in-context \(\{ \bar{x} \colon\bar{X}, \bar{v} \colon\bar{Y}^{[1]} \;| \;\alpha( \bar{x}, \bar{v}) \}\) such that the following judgements are provable in \({\mathbb{T}}\): \[\begin{gather} \alpha(\bar{x},\bar{v})\vdash A(\bar{x})\wedge B^{[1]}(\bar{v}) \mathrlap{,} \\ \alpha(\bar{x},\bar{v})\wedge\alpha(\bar{x},\bar{v}')\vdash \bar{v}=\bar{v}' \mathrlap{,} \\ A(\bar{x})\vdash (\exists \bar{v} \colon\bar{Y}^{[1]}) \alpha (\bar{x},\bar{v}) \mathrlap{,} \\ \alpha(\bar{x},\bar{v})\vdash f(\bar{x},\mathsf{dom}(\bar{v}))\wedge f'(\bar{x},\mathsf{cod}(\bar{v})) \mathrlap{.} \end{gather}\] Two such formulas-in-context are equivalent if each is mutually derivable in \({\mathbb{T}}\).

The next results introduce the syntactic 2-category of \({\mathbb{T}}\) (34) and establish that it is isoregular (36), by first showing that it it has finite 2-limits (7). For this, we put to work the deduction rules for isoregular theories. In order to simplify notation and make our arguments more readable, we work only with contexts of the form \((x \colon X)\), \((y \colon Y)\), \((x \colon X, y \colon Y)\). Of course, all arguments carry over to more general contexts.

Proposition 34. There is a 2-category \(\mathsf{Syn}({\mathbb{T}})\), called the syntactic 2-category of \({\mathbb{T}}\), with propositions-in-context as objects, definable morphisms as morphisms, and definable 2-cells as 2-cells.

Proof. Let \(\{x \colon X \;|\;A( x)\}\) and \(\{y \colon Y \;| \;B( y)\}\) be formulas-in-context. The category \[\mathsf{Syn}({\mathbb{T}})\big( \{x \colon X \;|\;A( x)\}, \{y \colon Y \;|\;B( y)\} \big)\] has morphisms from \(\{x \colon X \;|\;A( x)\}\) to \(\{y \colon Y \;|\;B( y)\}\) as objects and 2-cells between them as maps. For 2-cells \([\alpha]\colon [f]\Rightarrow [f']\) and \([\beta]\colon [f']\Rightarrow [f'']\), their vertical composite \([\beta]\cdot [\alpha] \colon[f] \Rightarrow [f'']\) is represented by the formula \[\{ x \colon X, u \colon Y^{[1]} \;|\;(\exists h \colon Y^{[2]})\;\alpha(x,\mathsf{fst}(h))\wedge \beta(x,\mathsf{snd}(h))\wedge \mathsf{comp}(h)=u \} \mathrlap{.}\] For a morphism \([f]\colon \{x \colon X|\;A( x)\}\to \{y \colon Y \;|\;B( y)\}\), the identity 2-cell on it is represented by the formula-in-context \[\{ x \colon X, u: Y^{[1]} |\;(\exists y \colon Y) f(x,y)\wedge u=\mathsf{id}_y \} \mathrlap{.}\] Next, we consider the composition functors. Let \(\{x \colon X \;| \;A( x)\}\) and \(\{y \colon Y \;| \;B(y)\}\) and \(\{ z \colon Z \;| \;C(z) \}\) be formulas-in-context. We define a functor \[\begin{gather} \mathsf{Syn}({\mathbb{T}})\big( \{y \colon Y \;|\;B(y)\}, \{z \colon Z \;|\;C(z)\} \big) \times \mathsf{Syn}({\mathbb{T}})\big( \{x \colon X \;|\;A( x)\}, \{y \colon Y|\;B( y)\} \big) \\ \xrightarrow{(-) \circ (-)} \mathsf{Syn}({\mathbb{T}})\big( \{x \colon X \;|\;A( x)\}, \{z \colon Z \;|\;C(z)\} \big) \end{gather}\] as follows. For \([f]\colon \{x \colon X \;| \;A(x)\} \to \{y \colon Y \;|\;B( y)\}\) and \([g]\colon \{y: Y|\;B( y)\}\to \{z: Z|\;C( z)\}\), their composite \([g]\circ[f]\) is represented by the formula \[\{ x \colon X, z \colon Z\;|\; (\exists y \colon Y) f(x,y)\wedge g(y,z) \} \mathrlap{.}\] For a 2-cell \([\alpha]\colon [f]\Rightarrow [f']\) and a morphism \([g]\colon \{y: Y\;|\;B( y)\}\to \{z: Z \;|\;C( z)\}\), their horizontal composite \([g]\circ [\alpha] \colon[ g \circ f] \Rightarrow [g \circ f']\) is represented by the formula \[\{ x \colon X, u \colon Z^{[1]} \;|\;(\exists v: Y^{[1]}) \alpha(x,v)\wedge g^{[1]}(v,u) \} \mathrlap{.}\] Given a morphism \([f]\colon \{x: X\;|\;A( x)\}\to \{y: Y \;|\;B( y)\}\) and a 2-cell \([\beta]\colon [g]\Rightarrow [g']\), their horizontal composite \([\beta]\circ [f] \colon[g \circ f] \Rightarrow [g' \circ f]\) is represented by the formula \[\{ x \colon X, w \colon Z^{[1]} \;|\;(\exists y \colon Y) f(x,y)\wedge \beta(y,w) \} \mathrlap{.}\] Finally, for an object \(\{x: X|\;A( x)\}\), the identity morphism on it is represented by the formula-in-context \[\{ x \colon X, x' \colon X |\; x= x'\} \mathrlap{.}\]

We need to ensure that everything is well-defined, and that this is indeed a 2-category. First, one checks the axioms hom-categories. To show that the composite of 2-cells is a 2-cell and that the identity 2-cell is a 2-cell, one uses 6 for the required uniqueness property and 15, respectively. Here, associativity of composition can be shown using the rules in 19, terms expressing that composition is associative in \(\mathsf{Cat}\), and 5. Secondly, to prove that the horizontal composites of 2-cells with 1-cells are 2-cells, one uses 14 and 16. For the interchange law, we need to consider

Figure 12: image.

and show that \(\big( [\beta] \circ [f'] \big) \circ \big( [g] \circ [\alpha] \big) = \big( [g'] \circ [\alpha] \big) \circ \big( [\beta] \circ [f] \big)\). This is a direct calculation, using the naturality of \(\beta\), thinking about a situation of the form (but keeping in mind that this is not an actual diagram in \(\mathsf{Syn}({\mathbb{T}})\)): \[\begin{tikzcd}[column sep = large] g f x \ar[r, "g ( \alpha_x )"] \ar[d, "\beta_{f x}"'] & g f' x \ar[d, "\beta_{f'x}"] \\ g' f x \ar[r, "g' ( \alpha_x )"'] & g' f' x \mathrlap{.} \end{tikzcd}\] Finally, to see that the composition of morphism and the identity morphism are well-defined, associative and unital, the proof is as in the 1-dimensional case. ◻

Lemma 7. The \(2\)-category \(\mathsf{Syn}({\mathbb{T}})\) has all finite \(2\)-limits.

Proof. It suffices to show that \(\mathsf{Syn}({\mathbb{T}})\) has a terminal object, binary products, equalisers, in the 2-categorical sense, and powers by \([1]\). In order to do this, we apply 1. When checking the required hypotheses below, we again restrict to formulas-in-context where the context has a single variable in order to improve readability.

Let us begin by constructing powers. Let \(\{ x\colon X|\;A( x)\}\) be a formula-in-context and consider

Figure 13: image.

where \(\mathsf{dom}(u,x) \equiv_{\mathrm{def}}A^{[1]}(u)\land\mathsf{dom}(u) = x\), \(\mathsf{cod}(u,x) \equiv_{\mathrm{def}}A^{[1]}(u)\land\mathsf{cod}(u) = x\) and \[\iota(u,v) \equiv_{\mathrm{def}}A^{[1]}(u)\land u = v \mathrlap{.}\] It is immediate to check that these are morphisms and a 2-cell in \(\mathsf{Syn}({\mathbb{T}})\). In order show that we have a power, we need to show that the functor \[\mathsf{Syn}({\mathbb{T}})\big( \{ y \colon Y \;| B(y) \}, \{ u \colon X^{[1]} \;| \;A^{[1]}(u) \} \big) \xrightarrow{[\iota] \circ (-)} \mathsf{Syn}({\mathbb{T}})\big( \{ y \colon Y \;| B(y) \}, \{ x \colon X \;| \;A(x) \}\big) ^{[1]}\] is an isomorphism. Let us describe the domain category more explicitly. An object is a morphism \([f] \colon\{ y \colon Y \;| \;B(y) \} \to \{ u \colon X^{[1]} \;| \; B^{[1]}(u) \}\) and its image is the 2-cell \([\iota]\circ [f]\) given by

Figure 14: image.

with \((\mathsf{dom}\circ f)(y,x) = (\exists u) f(y,u) \land \mathsf{dom}(u,x)\), \((\mathsf{cod}\circ f)(y,x) = (\exists u) f(y,u) \land \mathsf{cod}(u,x)\) and \[(\iota \circ f)(y,u) \equiv f(y,u) \mathrlap{.}\] A morphism in the domain category is a 2-cell \([\alpha] \colon[f] \Rightarrow [g]\) and \([\iota] \circ [\alpha] \colon[\iota] \circ [f] \to [\iota] \circ [g]\) is the commutative square of 2-cells below.

Figure 15: image.

Unfolding the definitions and using the functionality of the various morphisms, one obtains that the four components of \(\iota \circ \alpha\) are of the form \[(y \colon Y, u \colon X^{[1]} ) \quad (\exists v\colon X^{[1]\times [1]} ) \alpha(y,v) \land \mathsf{pr}_{\delta}(v) = u\] where \(\delta \in \{ u, d, \ell, r \}\).

With these definitions in place, it is not hard to prove that \(\iota \circ (-)\) is an isomorphism. We leave the verification that it is bijective on objects to the readers and instead check that it is full and faithful. For faithfulness, fix \([f]\) and \([g]\) and let \([\alpha] \colon[f] \Rightarrow[ g]\) and \([\beta] \colon[f] \Rightarrow [g]\) be such that \([\iota \circ f ]= [\iota \circ g]\). Unfolding the definitions and using what we just observed above, we obtain \[(\exists v, v'\colon X^{[1]\times[1]}) \alpha(y,v) \land \beta(y,v') \land \bigwedge_{\delta} \mathsf{pr}_{\delta}(v) = \mathsf{pr}_{\delta}(v')\] which implies \((\exists v\colon X^{[1]\times[1]}) \alpha(y,v) \land \beta(y,v)\), giving \([\alpha] = [\beta]\) as required.

For fullness, given a morphism \(([\alpha_1], [\alpha_2])\colon[\iota \circ f]\to [\iota \circ f]\) in the arrow category, as depicted in

Figure 16: image.

we define \([\alpha] \colon[f] \Rightarrow[ g]\) by letting \[\alpha(y,v) \equiv_{\mathrm{def}}f(y, \mathsf{pr}_l(v)) \land g(y, \mathsf{pr}_r(v)) \land \alpha_1(y, \mathsf{pr}_u(v)) \land \alpha_2(y, \mathsf{pr}_d(v))\] It is clear that \([\iota \circ \alpha] = [\alpha_1, \alpha_2]\), so it remains to show that \(\alpha\) is a 2-cell in \(\mathsf{Syn}({\mathbb{T}})\). These are straightforward calculations, using the definitions, 7, and 17.

Next, we show that the underlying category \(\mathsf{Syn}({\mathbb{T}})_0\) has a terminal object, binary products, equalisers in the 1-categorical sense. The terminal object is \(\{x\colon S^{0} \;|\;\top \}\). For binary products, the product of \(\{x\colon X|\;A( x)\}\) and \(\{y\colon Y|\;B( y)\}\) is \[\{x\colon X,y\colon Y |\;A( x)\wedge B( y)\} \mathrlap{.}\] For morphisms \([f],[g]\colon \{ x\colon X|\;A( x)\}\to \{ y\colon Y|\;B( y)\}\), their equaliser is \[\{ x\colon X|\;(\exists y \colon Y) f(x,y)\wedge g(x,y)\} \mathrlap{.}\] The proof that these have the required 1-categorical universal properties proceeds as in the case of finite limit theories (see e.g. [27]) and hence it is omitted.

To prove that these also satisfy the 2-categorical universal property, it is enough to show that such 1-dimensional limits are preserved by powers by \([1]\), but this is a direct consequence of the rules in ¿sec:sec:deduction-powers? asserting stability of conjunctions and existential quantification under powers. ◻

Remark 35. In view of 36, it is useful to have an explicit definition of the pullbacks in \(\mathsf{Syn}({\mathbb{T}})\). Given \([f] \colon\{ x \colon X \;| \;A(x) \} \to \{ z \colon Z \;| \;C(z) \}\) and \([g] \colon\{ y \colon Y \;| \;B(y) \} \to \{ z \colon Z \;| \;C(z) \}\), the pullback \[\begin{tikzcd} P \ar[r, "{[p]}"] \ar[d, "{[q]}"'] & \{ x \colon X \;| \;A(x) \} \ar[d, " {[f]}"] \\ \{ y \colon Y \;| \;B(y) \} \ar[r, " {[g]}"'] & \{ z \colon Z \;| \;C(z) \} \end{tikzcd}\] is given by letting \[P \equiv_{\mathrm{def}}\{ x \colon X, y \colon Y \;| \;A(x) \land B(y) \land (\exists z \colon Z) f(x,y) \land g(y,z) \}\] with \(p(x,y,x')\) being the proposition \(P(x,y)\land x = x'\), and \(q(x,y,y')\) the proposition \(P(x,y)\land y = y'\).

The following lemma collects the stability properties of all our logic constructs, under powers by \([1]\); these will be essential in the proof of 37.

Lemma 8. There are the following isomorphisms in \(\mathsf{Syn}({\mathbb{T}})\):

  1. \(\{ x \colon S \; | \;\top \}^{\,\mathbb{c}}\cong \{ x \colon S^{\,\mathbb{c}} \; | \;\top \}\) for any \(\,\mathbb{c}\in\mathsf{Cat}_{\mathrm{fp}}\),

  2. \(\{ x \colon S \; | \;\top \}^{f}\cong [y\cdot f=x]\colon\{ y \colon S^{\,\mathbb{d}} \; | \;\top \}\to \{ x \colon S^{\,\mathbb{c}} \; | \;\top \}\) for any \(f\colon\,\mathbb{c}\to \,\mathbb{d}\in\mathsf{Cat}_{\mathrm{fp}}\),

  3. \(\{ \bar{x} \colon\bar{X} \; | \;s(x) = t(x) \}^{[1]}\cong \{ \bar{u} \colon\bar{X}^{[1]} \; | \; s^{[1]}(\bar{u} ) =t^{[1]}(\bar{u} ) \}\),

  4. \(\{ \bar{x} \colon\bar{X} \; | \;R(s_1, \ldots, s_n) \}^{[1]}\cong \{ \bar{u} \colon\bar{X}^{[1]} \; | \;R^{[1]} \big( s_1^{[1](\bar{u} )}, \ldots, s^{[1]}_n \big) (\bar{u})\}\);

  5. \(\{ \bar{x} \colon\bar{X} \; | \;A(\bar{x}) \wedge B(\bar{x} ) \}^{[1]}\cong \{ \bar{u} \colon\bar{X}^{[1]} \; | \;A^{[1]}(\bar{u} ) \wedge B^{[1]}(\bar{u} ) \}\);

  6. \(\{ \bar{x} \colon\bar{X} \; | \;(\exists y \colon Y) B(\bar{x},y) \}^{[1]}\cong \{ \bar{u} \colon\bar{X}^{[1]} \; | \;(\exists v \colon Y^{[1]}) B^{[1]}(\bar{u} , v) \}\);

  7. \(\{ \bar{x} \colon\bar{X} \; | \;A(\bar{x}) \wedge(\exists y \colon Y) B(\bar{x},y) \}\cong \{ \bar{x} \colon\bar{X} | \;(\exists y \colon Y) A(\bar{x}) \wedge B(\bar{x}, y) \}\).

Proof. Parts (iii)-(vii) follow easily by how we constructed the powers explicitly and from the deduction rules of ¿sec:sec:deduction-powers?; thus they are left to the readers. We shall focus on (i) and (ii) instead. By 7 we already know that (i) holds for \(\,\mathbb{c}=[1]\), for \(\,\mathbb{c}=0\) the empty category, and (trivially) for \(\,\mathbb{c}=[0]\) the terminal category. Similarly, by how powers by \([1]\) are constructed, (ii) holds for the two functors \(\sigma_0,\sigma_1\colon[0]\to[1]\) inducing the terms \(\mathsf{dom}\) and \(\mathsf{cod}\). Since the closure of \([1]\) under finite colimits in \(\mathsf{Cat}_{\mathrm{fp}}\) is the whole category, it is enough to prove that for any coequaliser \(q\colon\,\mathbb{b}\to \,\mathbb{c}\) of a pair \(f,g\colon\,\mathbb{a}\to \,\mathbb{b}\) in \(\mathsf{Cat}_{\mathrm{fp}}\) the following

Figure 17: image.

is an equaliser in \(\mathsf{Syn}({\mathbb{T}})\), and that for any \(\,\mathbb{a},\,\mathbb{b}\in\mathsf{Cat}_{\mathrm{fp}}\) we have \[\{ x \colon S^{\,\mathbb{a}+\,\mathbb{b}} \; | \;\top \}\cong \{ x \colon S^{\,\mathbb{a}} \; | \;\top \}\times \{ x \colon S^{\,\mathbb{b}} \; | \;\top \}\] with projections induced by restricting along the inclusions \(\iota_{\,\mathbb{a}}\colon\,\mathbb{a} \to \,\mathbb{a}+\,\mathbb{b}\) and \(\iota_{\,\mathbb{b}}\colon\,\mathbb{b}\to \,\mathbb{a}+\,\mathbb{b}\). This now follows easily from the explicit construction of equalisers and products in \(\mathsf{Syn}({\mathbb{T}})\) and, respectively, from Rule 8 and Rule 7 (applied to the case where \(\,\mathbb{b}=0\)). ◻

In order to state 10 11 12 below, for a morphism \([f]\colon \{ x\colon X|\;A( x)\}\to \{ y\colon Y|\;B( y)\}\) in \(\mathsf{Syn}({\mathbb{T}})\) we define the following judgements: \[\begin{align} & \mathsf{is\text{-}mono}(f) \equiv_{\mathrm{def}}\\ & \qquad (x, x' \colon X, y \colon Y)\; f(x,y), f(x', y) \vdash x' = x'' \mathrlap{,} \\ & \mathsf{is\text{-}faithful}(f) \equiv_{\mathrm{def}}\\ & \qquad (u, u' \colon X^{[1]}, v \colon Y^{[1]}) \;\mathsf{dom}(u) = \mathsf{dom}(u'), \mathsf{cod}(u) = \mathsf{cod}(u'), f^{[1]}(u,v), f^{[1]}(u',v) \vdash u = u' \mathrlap{,} \\ & \mathsf{is\text{-}full\text{-}identities}(f) \equiv_{\mathrm{def}}\\ & \qquad (x', x'' \colon X, y \colon Y) \;f(x',y), f(x'', y) \vdash (\exists u \colon X^{[1]}) f^{[1]}(u,\mathsf{id}_y) \land \mathsf{dom}(u) = x' \land \mathsf{cod}(u) = x'' \mathrlap{.} \end{align}\] For a proposition \((x \colon X, y \colon Y) B(x,y) \colon\mathsf{prop}\), we have a composite morphism \[m_B \colon\{x \colon X, y \colon Y \;| \;B(x,y) \} \rightarrowtail \{x \colon X \;| \;\top\} \times \{y \colon Y \;| \; \top\} \to \{y \colon Y \;| \; \top\}\] in \(\mathsf{Syn}({\mathbb{T}})\). Then, the judgement \(\mathcal{J}_{\mathsf{mono}}(B)\) of [tbl:equ:exists-formation-mono] is equivalent to the judgement \(\mathsf{is\text{-}mono}(m_B)\). A similar equivalence holds for the judgements in [tbl:equ:exists-formation-eqfib].

Lemma 9. Let \([f]\colon \{ x\colon X|\;A( x)\}\to \{ y\colon Y|\;B( y)\}\) be a morphism in \(\mathsf{Syn}({\mathbb{T}})\). Then the following conditions are equivalent:

  1. \([f]\) is a monomorphism,

  2. the judgement \(\mathsf{is\text{-}mono}(f)\) is derivable.

Proof. The map \([f]\) is a monomorphism if an only if in the two projections in the pullback of \([f]\) along itself are equal. By 35 these two projections are represented by \[p(x',x'',x)\equiv_{\mathrm{def}}A(x') \land A(x'') \land x'=x \land (\exists y \colon Z) f(x',y) \land f(x'',y)\] \(q(x',x'',x)\) defined as above but with \(x''=x\) instead of \(x'=x\). It is easy to see that these two maps are the same in \(\mathsf{Syn}({\mathbb{T}})\) if and only if \(f(x',y), f(x'',y)\) entails \(x'=x''\), giving the desired equivalence. ◻

Lemma 10. Let \([f]\colon \{ x\colon X|\;A( x)\}\to \{ y\colon Y|\;B( y)\}\) be a morphism in \(\mathsf{Syn}({\mathbb{T}})\). Then the following conditions are equivalent:

  1. \([f]\) is faithful,

  2. the judgement \(\mathsf{is\text{-}faithful}(f)\) is derivable.

Proof. We know, as a general 2-categorical fact, that \([f]\) is faithful if and only if the morphism \[(\mathsf{dom}, f^{[1]}, \mathsf{cod}) \colon\{ u\colon X|\;A^{[1]}( u)\} \longrightarrow \{ x\colon X|\;\top\} \times \{ v\colon Y^{[1]}|\;B^{[1]}( u)\} \times \{ x'\colon X|\;\top\}\] is a monomorphism. The claim now follows easily from 9. ◻

Lemma 11. Let \([f]\colon \{ x\colon X|\;A( x)\}\to \{ y\colon Y|\;B( y)\}\) be a morphism in \(\mathsf{Syn}({\mathbb{T}})\). Then the following conditions are equivalent:

  1. \([f]\) is an ffk-morphism,

  2. the judgements \(\mathsf{is\text{-}faithful}(f)\) and \(\mathsf{is\text{-}full\text{-}identities}(f)\) are derivable.

Proof. The equivalence between \([f]\) being faithful and the judgement expressing faithfulness of \(f\) in \({\mathbb{T}}\) is 10, so we need to prove the equivalence between fullness on identities for \([f]\) and the corresponding judgement in \({\mathbb{T}}\).

For one implication, assume that \[\label{equ:variant-id-lift} (x', x'' \colon X, y \colon Y) \;f(x',y), f(x'', y) \vdash (\exists u \colon X^{[1]}) f^{[1]}(u,\mathsf{id}_y) \land \mathsf{dom}(u) = x' \land \mathsf{cod}(u) = x''\tag{6}\] is derivable. Let \(g', g'' \colon\{ z \colon Z \;| \;C(z) \} \to \{ x \colon X \;| \;A(x) \}\) be such that \(fg' = fg''\). We claim that there is a 2-cell \(\alpha \colon g' \Rightarrow g''\) such that \(f \circ \alpha = \mathsf{id}_{fg'}\). For \(z \colon Z, u \colon X^{[1]}\), we define \[\alpha(z,u) \equiv_{\mathrm{def}} g'(z, \mathsf{dom}(u)) \land g''(z, \mathsf{cod}(u)) \land (\exists y \colon Y) \big( (f \circ g')(z,y) \land f^{[1]}(u, \mathsf{id}_y) \big) \mathrlap{.}\] The existential quantifier can be formed since \(f \circ g'\) is functional. The verification that \(\alpha\) is a 2-cell is immediate. It remains to check that \(f \circ \alpha = \mathsf{id}_{fg'}\). Thus, we need to show that, for \(z \colon Z\) and \(v \colon Y^{[1]}\), the propositions \[(f \circ \alpha)(z,v) \equiv_{\mathrm{def}}(\exists u \colon X^{[1]}) \alpha(z,u) \land f^{[1]}(u,v)\] and \[(\mathsf{id}_{f \circ g'})(z,v) \equiv_{\mathrm{def}}(\exists y \colon Y) (f \circ g')(z,y) \land v = \mathsf{id}_y\] are equivalent. Both implications are easy, noting that, for \(u \colon X^{[1]}\), \(f^{[1]}(u,v)\) and \(f^{[1]}(u, \mathsf{id}_y)\) imply \(v = \mathsf{id}_y\).

For the converse, we assume that \([f]\) is full on identities and show that the judgement 6 is derivable. Let \([p(x',x'',x)]\) and \([q(x',x'',x)]\) the two projections in the kernel pair of \(f\) (see e.g. the proof of 9), then by definition \([f\circ p]=[f\circ q]\) and so, by fullness on identities there is \([\alpha]\colon[p]\Rightarrow[q]\) such that \([f\circ \alpha]=\mathsf{id}_{[f\circ p]}\). It is now easy to see that the functionality of \(\alpha\) says exactly that 6 holds. ◻

Lemma 12. Let \({\mathbb{T}}\) be a isoregular theory. Let \([f]\colon \{ x\colon X|\;A( x)\}\to \{ y\colon Y|\;B( y)\}\) be a morphism in \(\mathsf{Syn}(T)\). Then the following conditions are equivalent:

  1. the morphism \([f]\) is a fully faithful regular epimorphism,

  2. the following judgements are derivable: \[\begin{gather} \mathsf{is\text{-}faithful}(f) \mathrlap{,} \\ \mathsf{is\text{-}full\text{-}identities}(f) \mathrlap{,} \\ (y \colon Y) \;B( y) \vdash (\exists x \colon X) f(x,y)\mathrlap{,} \end{gather}\]

  3. the following judgements are derivable: \[\begin{gather} \mathsf{is\text{-}faithful}(f) \mathrlap{,} \\ (y \colon Y) \;B( y) \vdash (\exists x \colon X) f( x, y) \mathrlap{.} \end{gather}\]

In this case, there exists an isomorphism \[\{ y\colon Y|\;B( y)\}\cong \{ y\colon Y|\;(\exists x \colon X) f( x, y)\} \mathrlap{.}\]

Proof. For implication (i) \(\Rightarrow\) (ii), assume that \([f]\) is a fully faithful regular epimorphism. Being fully faithful, \([f]\) is an ffk-morphism and therefore the first two judgements hold by 11. Being a regular epimorphism, \([f]\) is the coequaliser of its kernel pair. Such coequaliser (arguing as in the 1-dimensional case) is given by \(\{ y\colon Y|\;(\exists x \colon X) f( x, y)\}\), where this is a well-defined formula-in-context since \([f]\) is an ffk-morphism. Thus the final isomorphism in the statement follows, and as a consequence we obtain the judgement \(B(y) \vdash (\exists x \colon X) f(x,y)\). The implication (ii) \(\Rightarrow\) (iii) is trivial. For the implication (iii) \(\Rightarrow\) (i), the assumptions express that \([f]\) is a regular epimorphism and is faithful. Using the 17, we obtain \(B^{[1]}(v) \vdash (\exists u \colon X^{[1]}) f^{[1]}(u,v)\), which expresses fullness. ◻

Proposition 36. The \(2\)-category \(\mathsf{Syn}({\mathbb{T}})\) is isoregular.

Proof. By 7, we already know that \(\mathsf{Syn}({\mathbb{T}})\) has finite 2-limits. Next, we need to show that a morphism \([f]\colon \{ x\colon X|\;A( x)\}\to \{ y\colon Y|\;B( y)\}\) with a fully faithful kernel pair has a fully faithful coequaliser. For this, define \[\{ y \colon Y \;\;| (\exists x \colon X) f(x,y) \}\] This is a well-defined formula-in-context since \([f]\) is an ffk-morphism by [fact-morph] and therefore we can apply 11. The fact that the induced map into this object is a fully faithful regular epimorphism follows from 12, and the verification that this is indeed the coequaliser of the kernel pair of \([f]\) is done as in the ordinary setting (in fact, since \(\mathsf{Syn}({\mathbb{T}})\) has powers by \([1]\) it suffices to prove the 1-dimensional universal property).

Finally, we need to show that fully faithful regular epimorphisms are stable under pullback. This follows from 12 recalling the construction of pullbacks in \(\mathsf{Syn}({\mathbb{T}})\) in 35: pullbacks are constructed using conjunction, and existential quantification commutes with conjunction by the Frobenius Rule 3. ◻

4.2 Functorial semantics↩︎

The next result is fundamental for our development, as it provides a counterpart of the cornerstones of functorial semantics in the 1-categorical setting by establishing the connection between 2-categories of models of isoregular theories and 2-categories of isoregular 2-functors.

Theorem 37. For any isoregular 2-category \({\mathcal{K}}\) and any isoregular theory \({\mathbb{T}}\) we have an equivalence \[\mathsf{Mod}({\mathbb{T}},{\mathcal{K}})\simeq \mathsf{IsoReg}(\mathsf{Syn}({\mathbb{T}}),{\mathcal{K}})\] of \(2\)-categories.

Proof. We begin by constructing a 2-functor \[\Sigma\colon \mathsf{Mod}({\mathbb{T}},{\mathcal{K}})\to \mathsf{IsoReg}(\mathsf{Syn}({\mathbb{T}}),{\mathcal{K}})\] that we then show is an equivalence. Given \(M\in \mathsf{Mod}({\mathbb{T}},{\mathcal{K}})\) we define \(\Sigma M\colon \mathsf{Syn}({\mathbb{T}})\to{\mathcal{K}}\) by:

  • for any \(\{\bar x\colon\bar{X}|\;A(\bar x)\}\in \mathsf{Syn}({\mathbb{T}})\) we set \[\Sigma M(\{\bar x\colon\bar{X}|\;A( \bar x)\})\equiv_{\mathrm{def}}\llbracket{A}\rrbracket;\]

  • for any \([f]\colon \{ \bar x\colon\bar{X}|\;A( \bar x)\}\to \{ \bar y\colon\bar Y |\;B(\bar y)\}\) in \(\mathsf{Syn}({\mathbb{T}})\) the map \(\Sigma M([f])\colon\llbracket{A}\rrbracket\to\llbracket{B}\rrbracket\) is the composite \(\pi_2\circ \pi_1^{-1}\) depicted below

    Figure 18: image.

    where \(\pi_1\) is invertible since \(f\) is functional.

  • for any 2-cell \([\alpha]\colon [f]\Rightarrow [f']\colon \{ \bar x\colon\bar{X}|\;A( \bar x)\}\to \{ \bar y\colon\bar Y|\;B( \bar y)\}\) in \(\mathsf{Syn}({\mathbb{T}})\) consider its transpose \([\bar\alpha]\colon \{ \bar x\colon\bar{X}|\;A( \bar x)\}\to \{ \bar u\colon \bar Y^{[1]}|\;B^{[1]}( \bar u)\}\); then we have the following commutative diagram in \({\mathcal{K}}\).

    Figure 19: image.

    Commutativity of the triangles follows from \(\alpha(x,u)\vdash f(x,\mathsf{dom}(u))\wedge f'(x,\mathsf{cod}(u))\). The horizontal composite is exactly the data of a 2-cell \(\Sigma M([f])\Rightarrow\Sigma M([f'])\) in \({\mathcal{K}}\) which we define to be \(\Sigma M([\alpha])\).

The fact that \(\Sigma M\) is is well-defined and is a 2-functor is done as in the 1-dimensional setting, and we leave the details to the reader. To show that it is isoregular we proceed by steps.

  1. \(\Sigma M\) preserves powers by \([1]\). Fix an object \(\{\bar x\colon \bar X|\;A( \bar x)\}\) of \(\mathsf{Syn}({\mathbb{T}})\); then the cylinder expressing the power of such object by \([1]\) is given by the 2-cell

    Figure 20: image.

    defined in the proof of 7. This is sent by \(\Sigma M\) to

    Figure 21: image.

    where \(\Sigma M([\iota])\) is, by definition of \(\Sigma\), the transpose of the composite \[\llbracket{A^{[1]}}\rrbracket\xrightarrow{\Sigma M ([\bar\iota])} \llbracket{A^{[1]}}\rrbracket\xrightarrow{\cong} \llbracket{A}\rrbracket^{[1]}.\] But \([\bar\iota]=1_{\{u|\;A^{[1]}\}}\), so \(\Sigma M ([\bar\iota])=1_{\llbracket{A^{[1]}}\rrbracket}\) and \(\Sigma M([\iota])\) is the transpose of the canonical isomorphism defining the power in \({\mathcal{K}}\); hence \(\Sigma M([\iota])\) is a limiting cylinder.

  2. \(\Sigma M\) preserves binary products. By 7, the product of \(\{\bar x\colon \bar X|\;A(\bar x)\}\) with \(\{\bar y\colon \bar Y|\;B(\bar y)\}\) in \(\mathsf{Syn}(T)\) is \(\{\bar x\colon \bar X,\bar y\colon \bar Y |\;A(\bar x)\wedge B( \bar y)\}\). This is sent by \(\Sigma M\) to the pullback

    Figure 22: image.

    which is isomorphic to \(\llbracket{A}\rrbracket\times\llbracket{B}\rrbracket=\Sigma M(\{\bar X|\;A\})\times \Sigma M(\{\bar Y|\;B\})\).

  3. \(\Sigma M\) preserves equalisers. By 7, the equaliser of \([f],[g]\colon \{ \bar x\colon \bar X|\;A(\bar x)\}\to \{ \bar y\colon \bar Y|\;B(\bar y)\}\) is \(\{\bar x\colon \bar X|\;\exists \bar y\;f(\bar x,\bar y)\wedge g(\bar x,\bar y)\}\). Consider the diagram below.

    Figure 23: image.

    Where the top square is a pullback and the vertical maps are all isomorphisms (\(P_1\) since it is obtained by factorising a monomorphism). It follows that also the bottom face is a pullback. Therefore, by the standard argument involving pullbacks and products, \(\Sigma M(\exists \bar y\;f\wedge g)=\llbracket{\exists y\;f\wedge g}\rrbracket\) is isomorphic to the equaliser of \(\Sigma M([f])\) and \(\Sigma M([g])\).

  4. \(\Sigma M\) preserves fully faithful regular epimorphisms. By 12 any fully faithful regular epimorphism in \(\mathsf{Syn}({\mathbb{T}})\) can be expressed as \[[f]\colon \{\bar x\colon \bar X|\;A(\bar x)\}\to \{\bar y\colon Y|\;\exists \bar x:X\;f(\bar x,\bar y)\}.\] By definition of \(\Sigma M\) the image of \([f]\) is the composite \(\pi_2\circ \pi_1^{-1}\) identified below.

    Figure 24: image.

    Now observe that \(\pi_2\) is a fully faithful regular epimorphism by how existential quantification is interpreted in \({\mathcal{K}}\). Thus \(\Sigma M([f])\) is a fully faithful regular epimorphism too.

This defines \(\Sigma\) on objects; we need to show that this assignment extends on 1-cells and 2-cells.

Consider a morphism \(p\colon M\to N\) in \(\mathsf{Mod}({\mathbb{T}},{\mathcal{K}})\), by definition this is just a morphism of \({\mathbb{L}}\)-structures and thus is determined by maps \[p_S\colon \llbracket{S}\rrbracket_M\to \llbracket{S}\rrbracket_N\] in \({\mathcal{K}}\) for any sort \(S\), which preserve the interpretation of function and relation symbols. We define the components of the 2-natural transformation \(\Sigma p\colon \Sigma M\Rightarrow\Sigma N\) by \[(\Sigma p)_{\{\bar{X}|A\}}\equiv_{\mathrm{def}}p_A\colon \Sigma M(\{\bar{X}|A\})\to \Sigma N(\{\bar{X}|A\})\] for any \(\{\bar{X}|A\}\in\mathsf{Syn}({\mathbb{T}})\), where \(p_A\) is given by 5. By a standard 2-dimensional argument, this is 2-natural if and only if it is natural in the 1-dimensional sense and for any object \(\{\bar{X}|A\}\) the square

Figure 25: image.

commutes. The commutativity of such square follows from the recursive definition of \(p_{A}\) in 5. As for ordinary naturality, consider a morphism \([f]\colon \{ \bar{X}| A\}\to \{ \bar Y| B\}\) in \(\mathsf{Syn}({\mathbb{T}})\), then (using the definition of \(\Sigma\)) we need to prove that the front face of the diagram below commutes.

Figure 26: image.

The three vertical lateral squares commute by 5 and the two squares in the back commute since they are obtained by taking product projections. Finally, since the slanted arrows are monomorphisms, it follows that also the two squares in the front commute.

Next we need to define the action of \(\Sigma\) on 2-cells; this is done by using powers by \([1]\) which exist in \(\mathsf{Mod}({\mathbb{T}},{\mathcal{K}})\) by 6. Given any 2-cell \(\eta\colon M\Rightarrow N\) in \(\mathsf{Mod}({\mathbb{T}},{\mathcal{K}})\), consider its transpose \(\eta^t\colon M\to N^{[1]}\); the image of this through \(\Sigma\) defines a morphism \(\Sigma(\eta^t)\colon \Sigma( M)\to \Sigma( N^{[1]} )\) in \([\mathsf{Syn}({\mathbb{T}}),{\mathcal{K}}]\). Now, since for any formula \(A\) we have \(\llbracket{A}\rrbracket_{N^{[1]}}\cong (\llbracket{A}\rrbracket_N)^{[1]}\), it is easy too see that \(\Sigma( N^{[1]} )\cong \Sigma(N)^{[1]}\). Then we can define \(\Sigma(\eta)\) to be the transpose of \(\Sigma(\eta^t)\) composed with the isomorphism just mentioned.

This concludes the definition of \(\Sigma\). In the next few steps we will prove that it is 2-functorial and an equivalence.

\(\Sigma\) defines a faithful 2-functor. To show this consider the triangle below

Figure 27: image.

where \(\mathsf{ev}\) and \(\mathsf{ev'}\) are defined by evaluating on the basic sorts. These are both easily seen to be faithful; moreover, \(\Sigma\) (seen as an assignment on objects, morphisms, and 2-cells) makes the triangle commute. It now follows from the fact that \(\mathsf{ev}\) and \(\mathsf{ev'}\) are both 2-functorial and faithful that \(\Sigma\) is 2-functorial and faithful as well.

\(\Sigma\) is a fully faithful 2-functor. Consider \(M,N\in\mathsf{Mod}({\mathbb{T}},{\mathcal{K}})\) and a 2-natural transformation \(h\colon \Sigma M\to\Sigma N\) in \([\mathsf{Syn}({\mathbb{T}}),{\mathcal{K}}]\). By evaluating at the objects \(\{S|\top\}\), induced by the basic sorts, we obtain a family of morphism \[p_S\colon\llbracket{S}\rrbracket_M=\Sigma M(\{S|\top\})\xrightarrow{h_{\{S|\top\}}} \llbracket{S}\rrbracket_N=\Sigma N(\{S|\top\})\] in \({\mathcal{K}}\). We will show that \(p\equiv_{\mathrm{def}}(p_S)_{S\in{\mathcal{S}}}\) defines a morphism of \({\mathbb{L}}\)-structures \(p\colon M\to N\); it will then follow by construction of \(\Sigma\) and from 5 that \(\Sigma(p)=h\).

Consider a function symbol \(f\colon \bar{X} \to S^{\,\mathbb{c}}\); then we can consider the morphism \[\{\bar x\colon\bar{X}|\top\}\xrightarrow{[f(\bar x)=y]}\{y\colon S^{\,\mathbb{c}}|\top\}\] in \(\mathsf{Syn}({\mathbb{T}})\). The corresponding naturality square induced by the fact that \(h\) is a natural transformation shows that \(p\) respects the interpretation of \(f\). Similarly, for any relation symbol \(R\rightarrowtail \bar{X}\), the naturality square corresponding to the morphism \[\{ \bar x\colon\bar{X}| R(x)\}\xrightarrow{[R(\bar x)\wedge \bar x=\bar y]}\{ \bar y\colon\bar{X}|\top\}\] shows that \(p\) respects the interpretation of \(R\).

This shows that \(\Sigma\) is full (and faithful) on 1-morphisms, or equivalently that the ordinary functor \(\Sigma_0\colon\mathsf{Mod}({\mathbb{T}},{\mathcal{K}})_0\to \mathsf{IsoReg}(\mathsf{Syn}({\mathbb{T}}),{\mathcal{K}})_0\) is fully faithful. Since \(\Sigma\) preserves powers by \([1]\) (as observed before) this is enough to imply that it is fully faithful as a 2-functor: for any \(M,N\in\mathsf{Mod}({\mathbb{T}},{\mathcal{K}})\) the action \[\Sigma_{M,N}\colon \mathsf{Mod}({\mathbb{T}},{\mathcal{K}})(M,N)\to \mathsf{IsoReg}(\mathsf{Syn}({\mathbb{T}}),{\mathcal{K}})(\Sigma M,\Sigma N)\] is an isomorphism of categories if and only if \(\mathsf{Cat}([1],\Sigma_{M,N})\) is a bijection (since \([1]\) is a strong generator in \(\mathsf{Cat}\)). But \[\mathsf{Cat}([1],\Sigma_{M,N})\cong\mathsf{Cat}([0],\Sigma_{M,N^{[1]}})\cong (\Sigma_0)_{M,N^{[1]}}\] and the latter is a bijection since \(\Sigma_0\) is fully faithful. Thus \(\Sigma\) is fully faithful as a 2-functor.

\(\Sigma\) is essentially surjective on objects. Consider an isoregular 2-functor \(F\colon\mathsf{Syn}({\mathbb{T}})\to {\mathcal{K}}\) and define an \({\mathbb{L}}\)-structure \(M\) as follows:

  • for any basic sort \(S\in{\mathcal{S}}\) we define \(\llbracket{S}\rrbracket\equiv_{\mathrm{def}}F(\{S|\top\})\);

  • for any function symbol \(f\colon S_1^{\,\mathbb{c}_1},\cdots, S_n^{\,\mathbb{c}_n}\to S^{\,\mathbb{c}}\) in \({\mathbb{L}}\), we define \(\llbracket{f}\rrbracket\) as the composite \[\llbracket{S_1}\rrbracket^{\,\mathbb{c}_1}\times\cdots\times \llbracket{S_n}\rrbracket^{\,\mathbb{c}_n}\cong F(\{S_1^{\,\mathbb{c}_1},\cdots,S_n^{\,\mathbb{c}_n}|\top\}) \xrightarrow{\;F([f(\bar x)=y])\;} F(\{S^{\,\mathbb{c}}|\top\})\cong\llbracket{S}\rrbracket^{\,\mathbb{c}}\] where we used that \(F\) preserves products and finite powers, and applied 8.

  • for any relation symbol \(R\rightarrowtail \bar{X}\equiv_{\mathrm{def}}S_1^{\,\mathbb{c}_1},\cdots, S_n^{\,\mathbb{c}_n}\) in \({\mathbb{L}}\) we define its interpretation as the subobject \[\llbracket{R}\rrbracket\equiv_{\mathrm{def}}F(\{\bar{X}|R(\bar x)\} )\xrightarrow{ F([R(\bar x)\wedge \bar x=\bar y]) } F(\{\bar{X}|\top(\bar y)\})\cong \llbracket{S_1}\rrbracket^{\,\mathbb{c}_1}\times\cdots\times \llbracket{S_n}\rrbracket^{\,\mathbb{c}_n}\] where we used the same properties as above plus that \(F\) preserves monomorphisms.

Now, it is easy to show by induction that for any term \((\bar x\colon\bar{X})\;t(x)\colon Y\) we have an isomorphism

Figure 28: image.

in the arrow category \({\mathcal{K}}^{[1]}\). Similarly, if we have an isoregular formula \((\bar x\colon\bar{X})\;A(x) \colon\mathsf{prop}\) relative to \({\mathbb{T}}\), then by induction we construct an isomorphism

Figure 29: image.

in \({\mathcal{K}}^{[1]}\). To show this we use the various lemmas of Section 4.1 which imply that the operations defining our formulas coincide with taking certain finite 2-limits or image-factorizations in \(\mathsf{Syn}({\mathbb{T}})\), and hence are preserved by \(F\).

Now, any axiom \((\bar x\colon\bar{X})\;A\vdash B\) in \({\mathbb{T}}\) induces the commutative triangle below left in \(\mathsf{Syn}({\mathbb{T}})\).

Figure 30: image.

Figure 31: image.

By applying \(F\) and using the isomorphisms above we obtain the commutative triangle above right, which says exactly that \(M\) satisfies \((\bar x\colon\bar{X})\;A\vdash B\). It follows that \(M\in\mathsf{Mod}({\mathbb{T}})\), and thanks to the isomorphisms above that \(\Sigma M\cong F\). ◻

5 Accessibility of 2-categories of models↩︎

5.1 Basics↩︎

The notion of accessible 2-category that we use is a specialization of one that has been considered for enriched categories, for the first time, in [16]. Another notion of accessibility (for enriched categories) had been introduced before in [34], but these coincide in the 2-categorical context by [35].

Definition 38.

  • Let \(\lambda\) be a regular cardinal. We say that a 2-category \({\mathcal{K}}\) is \(\lambda\)-accessible if it is equivalent to the free cocompletion of a small 2-category under \(\lambda\)-filtered colimits. We say that \({\mathcal{K}}\) is accessible if it is \(\lambda\)-accessible for some \(\lambda\).

  • A functor \(F\colon{\mathcal{K}}\to{\mathcal{L}}\) between accessible 2-categories is called accessible if it preserves \(\lambda\)-filtered colimits for some \(\lambda\).

Given a 2-category \({\mathcal{K}}\) with \(\lambda\)-filtered colimits, an object \(X\in K\) is called \(\lambda\)-presentable if \({\mathcal{K}}(X,-)\colon {\mathcal{K}}\to\mathsf{Cat}\) preserves \(\lambda\)-filtered colimits. Then, by [36], a 2-category \({\mathcal{K}}\) with \(\lambda\)-filtered colimits is \(\lambda\)-accessible if and only if there is a set \({\mathcal{G}}\) of \(\lambda\)-presentable objects such that every objects of \({\mathcal{K}}\) can be written as a \(\lambda\)-filtered colimit of objects in \({\mathcal{G}}\).

The accessible 2-categories that we are interested in are those that admit all flexible limits; that is, have all small products, inserters, and equifiers. (Flexible limits also include splitting of idempotents, but these already exist in any accessible 2-category). Note that any 2-category with flexible limits has in particular also all (weighted) pseudolimits and (weighted) bilimits, see for instance [11].

Accessible 2-categories with flexible limits have been studied in [14], [16], [17]. We recall some of the key facts that will be used later.

Proposition 39. Any accessible 2-category with flexible limits also has all bicolimits.

Proof. See for instance [17], or [16], where it is shown that any accessible 2-category has a specific kind of “weak” colimits, and these subsume bicolimits. ◻

Theorem 40. Let \(U\colon{\mathcal{K}}\to {\mathcal{L}}\) be an accessible 2-functor between accessible 2-categories. If \({\mathcal{K}}\) has flexible limits and \(U\) preserves them, then \(U\) has a left biadjoint.

Proof. This is shown in [17]. ◻

5.2 Accessibility of models↩︎

We will now show that every 2-category of models of a isoregular theory is accessible with flexible limits.

Theorem 41. Let \({\mathcal{C}}\) and \({\mathcal{K}}\) be isoregular 2-categories, with \({\mathcal{C}}\) small.

  1. If \({\mathcal{K}}\) is accessible then \(\mathsf{IsoReg}({\mathcal{C}},{\mathcal{K}})\) is also accessible and the inclusion \[\mathsf{IsoReg}({\mathcal{C}},{\mathcal{K}})\hookrightarrow [{\mathcal{C}},{\mathcal{K}}]\] is an accessible 2-functor;

  2. If \({\mathcal{K}}\) has flexible limits and fully faithful regular epimorphisms are stable under them, then \(\mathsf{IsoReg}({\mathcal{C}},{\mathcal{K}})\) has flexible limits and the inclusion \[\mathsf{IsoReg}({\mathcal{C}},{\mathcal{K}})\hookrightarrow [{\mathcal{C}},{\mathcal{K}}]\] preserves them.

Proof. For part (i), consider the following commutative square, which we shall prove is a pullback (for this we do not need to assume that \({\mathcal{K}}\) is accessible).

Figure 32: image.

Above, \(\mathsf{S}\) is the set of all fully faithful regular epimorphisms in \({\mathcal{C}}\), while \(I\) and \(J\) are full subcategory inclusions (and are also isofibrations). For \(q\colon A\to B\in S\), we define the 2-functor \(G_q\) as follows: given \(F\in\mathsf{Lex}({\mathcal{C}},{\mathcal{K}})\) we let \(K_{F,q}\) be the coequaliser of the kernel pair of \(Fq\) (this exists since \({\mathcal{K}}\) is isoregular and the kernel pair of \(Fq\) is fully faithful); then \(G_q(F)\) is defined as the morphism \[G_q(F)\colon K_{F,q}\longrightarrow FB\] induced by the universal property of the coequaliser. Then, the 2-functor \(H_q\) can be seen as the restriction of \(G_q\) along \(J\); this is well defined since whenever \(F\) is isoregular then \(G_q(F)\) is an isomorphism by definition.

Now it is easy to see that the square is actually a pullback; indeed, a lex 2-functor \(F\) is isoregular if and only if for any \(q\in \mathsf S\) the morphism \(Fq\) is a fully faithful regular epimorphism, if and only if \(Fq\) is a regular epimorphism (since \(Fq\) is automatically fully faithful), if and only if \(G_q(F)\) is an isomorphism.

If \({\mathcal{K}}\) is accessible, then by [36] so is \(\mathsf{Lex}({\mathcal{C}},{\mathcal{K}})\) and its inclusion into \([{\mathcal{C}},{\mathcal{K}}]\). Moreover, \(\textstyle\prod_{q\in \mathsf{S}}{\mathcal{K}}^{\cong}\) and \(\textstyle\prod_{q\in\mathsf{S}}{\mathcal{K}}^{[1]}\) are accessible too by [36]. Finally, \(I\) is an accessible 2-functor since it preserves all existing colimits (being induced by precomposition with the inclusion \([1]\to\;\cong\)), and so are the \(G_q\) since colimits commute with (filtered) colimits. It follows again by [36] that \(\mathsf{IsoReg}({\mathcal{C}},{\mathcal{K}})\) is an accessible 2-category and \(J\) is an accessible 2-functor. By post composing with the inclusion into \([{\mathcal{C}},{\mathcal{K}}]\) we also obtain that \[\mathsf{IsoReg}({\mathcal{C}},{\mathcal{K}})\hookrightarrow [{\mathcal{C}},{\mathcal{K}}]\] is accessible.

For part (ii), assume now that \({\mathcal{K}}\) has flexible limits and fully faithful regular epimorphisms are stable under them. Note first that since limits commute with themselves, \(\mathsf{Lex}({\mathcal{C}},{\mathcal{K}})\) has flexible limits too and they are computed pointwise. Then, if we take a flexible limit of isoregular 2-functors in \(\mathsf{Lex}({\mathcal{C}},{\mathcal{K}})\), then the resulting 2-functor \(F\) is still isoregular since for any fully faithful regular epimorphism \(q\) in \({\mathcal{C}}\), the morphism \(Fq\) is a flexible limit of fully faithful regular epimorphisms in \({\mathcal{K}}\), and hence a fully faithful regular epimorphism itself by our assumptions. It follows that \(\mathsf{IsoReg}({\mathcal{C}},{\mathcal{K}})\) is closed in \(\mathsf{Lex}({\mathcal{C}},{\mathcal{K}})\) under flexible limits; hence the thesis follows. ◻

We deduce the following result from 41 using 37.

Theorem 42. Let \({\mathbb{T}}\) be an isoregular theory and \({\mathcal{K}}\) be an isoregular 2-category. Then:

  1. if \({\mathcal{K}}\) is accessible then \(\mathsf{Mod}({\mathbb{T}},{\mathcal{K}})\) is also accessible and so is the evaluation 2-functor \[\llbracket{A}\rrbracket_{(-)} \colon \mathsf{Mod}({\mathbb{T}},{\mathcal{K}})\longrightarrow {\mathcal{K}}\] for any isoregular formula \((\bar x\colon\bar X)\;A(\bar x)\);

  2. if \({\mathcal{K}}\) has flexible limits and fully faithful regular epimorphisms are stable under them, then \(\mathsf{Mod}({\mathbb{T}},{\mathcal{K}})\) has flexible limits and the evaluation 2-functor \[\llbracket{A}\rrbracket_{(-)} \colon \mathsf{Mod}({\mathbb{T}},{\mathcal{K}})\longrightarrow {\mathcal{K}}\] preserves them, for any isoregular formula \((\bar x\colon\bar X)\;A(\bar x)\).

Proof. Given an isoregular formula \((\bar x\colon\bar X)\;A(\bar x)\), the evaluation 2-functor can be seen as the composite \[\mathsf{Mod}({\mathbb{T}},{\mathcal{K}})\xrightarrow{\;\Sigma\;} \mathsf{IsoReg}({\mathcal{C}}_{\mathbb{T}},{\mathcal{K}})\hookrightarrow [{\mathcal{C}}_{\mathbb{T}},{\mathcal{K}}]\xrightarrow{ \mathsf{ev}_{\{\bar X|A\}} }{\mathcal{K}}\mathrlap{,}\] where \(\Sigma\) is the equivalence of Theorem 37. Then the result follows immediately from Theorem 41 plus the fact that \(\mathsf{ev}_{\{\bar X|A\}}\) is continuous and cocontinuous. ◻

Corollary 43. Let \({\mathbb{T}}\) be isoregular over \({\mathbb{L}}\) and \({\mathbb{T}}'\) be isoregular over \({\mathbb{L}}'\) with \({\mathbb{L}}\subseteq {\mathbb{L}}'\) and \({\mathbb{T}}\subseteq {\mathbb{T}}'\). Let \({\mathcal{K}}\) be an isoregular 2-category and consider the induced forgetful 2-functor \[U\colon \mathsf{Mod}({\mathbb{T}}',{\mathcal{K}})\longrightarrow \mathsf{Mod}({\mathbb{T}},{\mathcal{K}}).\]

  1. if \({\mathcal{K}}\) is accessible then \(U\) is an accessible 2-functor;

  2. if \({\mathcal{K}}\) has flexible limits and fully faithful regular epimorphisms are stable under them, then \(U\) preserves flexible limits.

Proof. For any isoregular \({\mathbb{L}}\)-formula \((\bar x\colon\bar X)\;A(\bar x)\), which can naturally be seen also as an isoregular \({\mathbb{L}}'\)-formula, the triangle

Figure 33: image.

commutes. Since the right vertical 2-functors are jointly conservative when we let \(A\) vary among all isoregular \({\mathbb{L}}\)-formulas, the results follows from Theorem 42 above. ◻

6 Applications↩︎

6.1 Preliminaries↩︎

In this section we focus on models of isoregular theories in \(\mathsf{Cat}\), providing several applications of our general results, both proving new fact and giving new proofs of known ones in a uniform manner. We begin by considering categories with finite limits and colimits (6.2), move on to categories satisfying a variety of exactness conditions, as studied in categorical algebra (6.3), isofibrations and Grothendieck fibrations (6.4) and conclude with categories of interest in categorical logic, such as comprehension categories and clans (6.5).

Let us first make some general observations. If \({\mathbb{T}}\) is an isoregular theory over a language \({\mathbb{L}}\), and \(M\) is an \({\mathbb{L}}\)-structure in \(\mathsf{Cat}\) (or more generally in any isoregular \({\mathcal{K}}\) where the (strong epi, mono) factorization system exists), then the interpretation of any isoregular formula \((\bar X) \;A \colon\mathsf{prop}\), relative to \({\mathbb{T}}\), is well-defined as a subobject \(\llbracket{A}\rrbracket\rightarrowtail\llbracket{\bar X}\rrbracket\) since to interpret existential quantification we can take the (strong epi, mono) factorisation of the relevant arrow. Note that such interpretation coincides with the one we introduced since the (fully faithful regular epimorphism, monomorphism)-factorisation, when it exists, coincides with the (strong epimorphism, monomorphism)-factorisation.

Because of this the statement of 44 below is well-formed. This result will be essential in recognising the 2-categories of models of isoregular theories, as it allows us test the validity of the axioms at the level of the underlying sets (of objects), as with ordinary satisfaction.

Proposition 44. Let \({\mathbb{T}}\) be an isoregular theory on a language \({\mathbb{L}}\), and \({\mathcal{H}}\) a full subcategory of \(\mathsf{Str}({\mathbb{L}},\mathsf{Cat})\) closed under powers by \([1]\). Suppose that an \({\mathbb{L}}\)-structure \(M\equiv_{\mathrm{def}}\llbracket{-}\rrbracket\) lies in \({\mathcal{H}}\) if and only if for any axiom \((\bar X)\; A\vdash B\) in \({\mathbb{T}}\) the inclusion \[\mathsf{Ob}(\llbracket{A}\rrbracket)\subseteq \mathsf{Ob}(\llbracket{B}\rrbracket),\] holds as subsets of \(\mathsf{Ob}(\llbracket{\bar X}\rrbracket)\). Then \({\mathcal{H}}=\mathsf{Mod}({\mathbb{T}},\mathsf{Cat})\).

Proof. The hypotheses can be restates as saying that \(M\) is in \({\mathcal{H}}\) if and only if for any \((\bar X)\; A\vdash B\) in \({\mathbb{T}}\) we have a commutative diagram as below left,

Figure 34: image.

Figure 35: image.

where \(m_A\) and \(m_B\) denote the subobject inclusions. But since \({\mathcal{H}}\) is closed under powers by \([1]\), the structure \(M^{[1]}\) also satisfies the same property; thus, using the universal property of powers the commutativity of the triangle above left is equivalent to that of the triangle above right. Since \([1]\) is a strong generator in \(\mathsf{Cat}\), this last condition is equivalent to asking that \(\llbracket{A}\rrbracket\leq\llbracket{B}\rrbracket\) as subobjects of \(\llbracket{\bar X}\rrbracket\), which says exactly that \(M\in\mathsf{Mod}({\mathbb{T}},\mathsf{Cat})\). ◻

Given this, it becomes quite easy to check when a given \({\mathbb{L}}\)-structure satisfies an entailment between isoregular formulas. Indeed, we are reduced to check that certain inclusions of sets hold, and at the level of object the interpretation of an isocartesian formula is what one expects it to be (remembering that we now have non-discrete arities):

  • \(\mathsf{Ob}(\llbracket{S^{\,\mathbb{b}}}\rrbracket)=\{f\colon\,\mathbb{b}\to \llbracket{S}\rrbracket|\;f \text{ is a functor} \}\); that is, the set of diagrams of shape \(\,\mathbb{b}\) in \(\llbracket{S}\rrbracket\);

  • \(\mathsf{Ob}(\llbracket{A^{[1]}}\rrbracket)=\mathsf{Mor}(\llbracket{A}\rrbracket)\) is the set of morphisms in \(\llbracket{A}\rrbracket\);

  • \(\mathsf{Ob}(\llbracket{A\wedge B}\rrbracket)=\{ a\in \mathsf{Ob}(\llbracket{\bar X}\rrbracket) |\; a\in \mathsf{Ob}(\llbracket{A}\rrbracket)\text{ and } a\in \mathsf{Ob}(\llbracket{B}\rrbracket)\}\);

  • \(\mathsf{Ob}(\llbracket{(\exists y\colon Y)A(\bar x,y)}\rrbracket)=\{ a\in \mathsf{Ob}(\llbracket{\bar X}\rrbracket) | \text{ there is } b\in \mathsf{Ob}(\llbracket{Y}\rrbracket)\text{ such that } (a,b)\in \mathsf{Ob}(\llbracket{A}\rrbracket)\}\);

For this reason, in the examples below we shall not dwell too much on trying to explain what it means for an \({\mathbb{L}}\)-structure to satisfy a given axiom (on object), as that simply amounts to translating into natural language what is written in symbols.

6.2 Limits and colimits↩︎

Fix a finite category \(\,\mathbb{b}\). Denote by \({\,\mathbb{b}}\)-\(\mathsf{lim}\) the 2-category of small categories with \(\,\mathbb{b}\)-limits, \(\,\mathbb{b}\)-limit preserving functors, and 2-natural transformations. We describe an isoregular theory \({\mathbb{T}}_{\,\mathbb{b}}\) whose models in \(\mathsf{Cat}\) are exactly small categories with limits of shape \(\,\mathbb{b}\); this follows the approach of [18].

Let us set some notation first. We denote by \(0*\,\mathbb{b}\) the category obtained by freely adding to \(\,\mathbb{b}\) an initial object \(0\); similarly, we let \([1]*\,\mathbb{b}\) be the category obtained by adding a further initial object to \(0*\,\mathbb{b}\) (or equivalently, adding an “initial arrow” to \(\,\mathbb{b}\)). Finally, we let \(\,\mathbb{I}*\,\mathbb{b}\) be the category obtained by adding an inverse to the new morphism of \([1]*\,\mathbb{b}\). To motivate the introduction of these notations, note that if \({\mathcal{C}}\in\mathsf{Cat}\), then an object of \({\mathcal{C}}^{0*\,\mathbb{b}}\) is the same as a functor \(\,\mathbb{b}\to {\mathcal{C}}\) together with a cone over it; while to give an object of \({\mathcal{C}}^{[1]*\,\mathbb{b}}\) is the same as giving a functor \(\,\mathbb{b}\to {\mathcal{C}}\), two cones over it, and a morphism in \({\mathcal{C}}\) between the two cones; in \({\mathcal{C}}^{\,\mathbb{I}*\,\mathbb{b}}\) such morphism of cones is equipped with an inverse.

Now, define the language \(\mathbb{L}_{\,\mathbb{b}}\) to have one sort \(S\) and just a relation symbol \(R_{\,\mathbb{b}}:S^{0*\,\mathbb{b}}\). The idea is that for each \(\mathbb{L}\)-structure \(\llbracket{-}\rrbracket\) in \(\mathsf{Cat}\), we shall think of \(\llbracket{R_{\,\mathbb{b}}}\rrbracket\) as the category of limiting cones over diagrams of shape \(\,\mathbb{b}\).

First, let us define the formula \((x,y\colon S^{0*\,\mathbb{b}}, z\colon S^{[1]*\,\mathbb{b}})\;A(x,y,z)\) as below \[(x,y\colon S^{0*\,\mathbb{b}}, z\colon S^{[1]*\,\mathbb{b}})\; R_{\,\mathbb{b}}(y)\wedge (z\cdot j_0=x) \wedge (z\cdot j_1=y) \mathrlap{,}\] where \(j_0,j_1\colon 0*\,\mathbb{b}\to [1]*\,\mathbb{b}\) sending \(\,\mathbb{b}\) to itself and picking out the domain and codomain of the freely added map respectively; below we will also use the inclusion \(\iota\colon\,\mathbb{b}\to 0*\,\mathbb{b}\). We now define the theory \({\mathbb{T}}_{\,\mathbb{b}}\) to consist of the following axioms:

  1. \({\mathcal{J}}_{\mathsf{mono}}(A)\);

  2. \((x,y\colon S^{0*\,\mathbb{b}})\;R_{\,\mathbb{b}}(y),\;(x\cdot \iota=y\cdot \iota) \vdash (\exists z\colon S^{[1]*\,\mathbb{b}})\;A(x,y,z)\);

  3. \((z\colon S^{\,\mathbb{I}*\,\mathbb{b}})\;R_{\,\mathbb{b}}(z\cdot j_0)\vdash R_{\,\mathbb{b}}(z\cdot j_1)\);

  4. \((z\colon S^{[1]\times 0*\,\mathbb{b}})\;R_{\,\mathbb{b}}(\mathsf{dom}(z)), R_{\,\mathbb{b}}(\mathsf{cod}(z))\vdash R_{\,\mathbb{b}}^{[1]}(z)\);

  5. \((x\colon S^{\,\mathbb{b}})\;\vdash (\exists y\colon S^{0*\,\mathbb{b}})\;R_{\,\mathbb{b}}(y)\wedge (y\cdot \iota= x)\).

Alternatively, one can axiomatise the same class of models with axioms (i)–(iv) plus additional axioms that ensure that the existential quantifier in (v) is well-formed. However, this is unnecessary since this can be derived from axioms (i)–(iv), as we show in the proof of 13 below.

Lemma 13. The theory \({\mathbb{T}}_{{\,\mathbb{b}}}\) is isoregular and \({\,\mathbb{b}}\)-\(\mathsf{lim}\cong \mathsf{Mod}({\mathbb{T}}_{\,\mathbb{b}}, \mathsf{Cat})\).

Proof. Let us begin by proving that \({\mathbb{T}}_{\,\mathbb{b}}\) is isoregular. Note that the existential quantification in (ii) is well-formed by (i), so we only need to prove that the exists in (v) is well-formed; that is, that \({\mathcal{J}}_{\mathsf{faithful}}(R_{\,\mathbb{b}}(y)\wedge (y\cdot \iota= x))\) and \({\mathcal{J}}_{\mathsf{full}\text{-}\mathsf{id}}(R_{\,\mathbb{b}}(y)\wedge (y\cdot \iota= x))\) are derivable.

We first show that the faithfulness condition holds; the assumption is \[R_{\,\mathbb{b}}^{[1]}(v), R_{\,\mathbb{b}}^{[1]}(v'), (v\cdot \iota^{[1]}=u), (v'\cdot \iota^{[1]}=u),\mathsf{dom}(v)=\mathsf{dom}(v'), \mathsf{cod}(v)=\mathsf{cod}(v')\] in context \((u\colon S^{[1]\times \,\mathbb{b}}, v,v'\colon S^{[1]\times 0*\,\mathbb{b}})\), and we need to derive that \(v=v'\). Notice that by transitivity of equality we can already deduce that \(v\cdot \iota^{[1]}=v'\cdot \iota^{[1]}\), or equivalently \(v\cdot [1]\times \iota=v'\cdot [1]\times \iota\). Now, let \[\kappa\colon[1]*\,\mathbb{b}\to [1]\times( 0*\,\mathbb{b})\] be the functor obtained by identifying \(\,\mathbb{b}\) with \(\{1\}\times \,\mathbb{b}\) and \([1]\) with \([1]\times \{0\}\) (where we are using \([1]=\{0\to 1\}\)). By Rules 5 and 16 we can easily derive \[A(\mathsf{dom}(v),\mathsf{cod}(v),v\cdot\kappa) \wedge A(\mathsf{dom}(v'),\mathsf{cod}(v'),v'\cdot\kappa).\] By axiom (i) and the faithfulness hypotheses we then deduce that \(v\cdot\kappa=v'\cdot\kappa\). Now note that \(\kappa\), \([1]\times \iota\), and the map \(0*\,\mathbb{b}\to [1]\times 0*\,\mathbb{b}\) inducing \(\mathsf{dom}\) are jointly epimorphic. Thus it follows from Rule 6 that \(v=v'\).

Let us now show fullness on identities whose assumption is \[(x\colon S^{\,\mathbb{b}}, y,y'\colon S^{0*\,\mathbb{b}})\quad R_{\,\mathbb{b}}(y), R_{\,\mathbb{b}}(y'), (y\cdot \iota=x), (y'\cdot \iota=x).\] By axiom (ii) we derive \[(\exists z\colon S^{[1]*\,\mathbb{b}})\quad z\cdot j_0=y \wedge z\cdot j_1=y'.\] Consider the two pushouts below.

Figure 36: image.

Figure 37: image.

By Rule 7 applied to the pushout on the left we derive \[(\exists v'\colon S^{0* ([1] \times\,\mathbb{b})} )\quad v'\cdot 0\!*\!(\{0\}\!\times\! 1_{\,\mathbb{b}})=y \wedge v\cdot \iota=\mathsf{id}_x.\] Then, by Rule 7 applied to the pushout on the right, we obtain \[(\exists v\colon S^{[1]\times 0*\,\mathbb{b}})\quad v\cdot \kappa=z \wedge v\cdot \rho=v'\] using axiom (iv) and the previous hypotheses we derive \[(\exists v\colon S^{[1]\times 0*\,\mathbb{b}})\;R_{\,\mathbb{b}}^{[1]}(v)\wedge v\cdot\iota^{[1]}=\mathsf{id}_x\wedge \mathsf{dom}(v)=y\wedge \mathsf{cod}(v)=y'\] concluding the proof that the required judgements are derivable.

It remains to prove that we have an isomorphism \(\mathsf{Mod}({\mathbb{T}}_{\,\mathbb{b}},\mathsf{Cat})\cong {\,\mathbb{b}}\)-\(\mathsf{lim}\). First notice that \({\,\mathbb{b}}\)-\(\mathsf{lim}\) can be identified with a full subcategory of \(\mathsf{Str}({\mathbb{L}}_{\,\mathbb{b}},\mathsf{Cat})\) by sending \({\mathcal{C}}\in {\,\mathbb{b}}\)-\(\mathsf{lim}\) to the \({\mathbb{L}}_{\,\mathbb{b}}\)-structure with \(\llbracket{S}\rrbracket\equiv_{\mathrm{def}}{\mathcal{C}}\) and \(\llbracket{R_{\,\mathbb{b}}}\rrbracket\) being the full subcategory of \({\mathcal{C}}^{0*\,\mathbb{b}}\) spanned by all the limiting cones. Note that the inclusion is full since a functor preserves \(\,\mathbb{b}\)-limits if and only if it preserves the limiting cones of diagrams of shape \(\,\mathbb{b}\), and 2-cells in \({\,\mathbb{b}}\)-\(\mathsf{lim}\) are just natural transformations.

It is easily seen that, under this identification, \({\,\mathbb{b}}\)-\(\mathsf{lim}\) is closed in \(\mathsf{Str}({\mathbb{L}}_{\,\mathbb{b}},\mathsf{Cat})\) under powers by \([1]\); thus we can apply 44. Therefore, it is enough to show that a structure \(M\) satisfies the axioms of \({\mathbb{T}}_{\,\mathbb{b}}\) on the underlying set of objects if an only if \(M\in {\,\mathbb{b}}\)-\(\mathsf{lim}\). It is easy to see that \(M\) satisfies the axioms (i) and (ii) if every object of \(\llbracket{R_{\,\mathbb{b}}}\rrbracket\) is a limiting cone, it satisfies (iii) if \(\llbracket{R_{\,\mathbb{b}}}\rrbracket\) is closed under isomorphism (and hence contains all limiting cones on a diagram), satisfies (iv) if any natural transformation between limit cones in an arrow in \(\llbracket{R}\rrbracket\), and finally satisfies (v) if every \(\,\mathbb{b}\)-shaped diagram admits a limiting cone in \(\llbracket{R_{\,\mathbb{b}}}\rrbracket\). Any object of \({\,\mathbb{b}}\)-\(\mathsf{lim}\) clearly satisfies the conditions above. Conversely, if \(M\) satisfies such conditions, then \(\llbracket{S}\rrbracket\) has \(\,\mathbb{b}\)-limits and \(\llbracket{R_{\,\mathbb{b}}}\rrbracket\) is the full subcategory of \(\llbracket{S}\rrbracket^{0*\,\mathbb{b}}\) spanned by all the limiting cones; thus \(M\) lies in \({\,\mathbb{b}}\)-\(\mathsf{lim}\). ◻

In a similar way we can construct a language \({\mathbb{L}}_{{\,\mathbb{b}}}'\) and an isoregular theory \({\mathbb{T}}'_{{\,\mathbb{b}}}\) such that \[\mathsf{Mod}({\mathbb{T}}'_{\,\mathbb{b}}, \mathsf{Cat}) \cong \,\mathbb{b}\text{-}{\mathsf{colim}}\] is isomorphic to the 2-category of small categories with \(\,\mathbb{b}\)-colimits, \(\,\mathbb{b}\)-colimit preserving functors, and 2-natural transformations. The difference from the previous case is that, instead of freely adding an initial object (or initial arrow/isomorphism) to \(\,\mathbb{b}\), we add a terminal object (or terminal arrow/isomorphism). So the language \({\mathbb{L}}_{\,\mathbb{b}}'\) will still have one sort \(S\), but a relation symbol \(R_{\,\mathbb{b}}'\colon S^{\,\mathbb{b}*0}\). The theory \({\mathbb{T}}_{\,\mathbb{b}}'\) will have essentially the same axioms of \({\mathbb{T}}_{\,\mathbb{b}}\), with properly modified arities.

Now we can allow \(\,\mathbb{b}\) to vary and define theories for the 2-categories: \(\mathsf{Lex}\) of small categories with finite limits, finite-limit preserving functors, and natural transformations; \(\mathsf{Rex}\) of small categories with finite colimits, finite-colimit preserving functors, and natural transformations; and \(\mathsf{RLex}\) of small categories with finite limits and finite colimits, finite-limit and finite-colimit preserving functors, and natural transformations.

More precisely, we define languages \[{\mathbb{L}}_{\mathsf{lex}}\equiv_{\mathrm{def}}\bigcup_{\,\mathbb{b}\in\mathsf{finCat}} {\mathbb{L}}_{\,\mathbb{b}}, \qquad {\mathbb{L}}_{\mathsf{rex}}'\equiv_{\mathrm{def}}\bigcup_{\,\mathbb{b}\in\mathsf{finCat}} {\mathbb{L}}_{\,\mathbb{b}}', \qquad {\mathbb{L}}_{\mathsf{rlex}}\equiv_{\mathrm{def}}{\mathbb{L}}_{\mathsf{lex}}\cup {\mathbb{L}}_{\mathsf{rex}}\] and corresponding isoregular theories \[{\mathbb{T}}_{\mathsf{lex}}\equiv_{\mathrm{def}}\bigcup_{\,\mathbb{b}\in\mathsf{finCat}} {\mathbb{T}}_{\,\mathbb{b}}, \qquad {\mathbb{T}}_{\mathsf{rex}}'\equiv_{\mathrm{def}}\bigcup_{\,\mathbb{b}\in\mathsf{finCat}} {\mathbb{T}}_{\,\mathbb{b}}', \qquad {\mathbb{T}}_{\mathsf{rlex}}\equiv_{\mathrm{def}}{\mathbb{T}}_{\mathsf{lex}}\cup {\mathbb{T}}_{\mathsf{rex}}\] respectively on \({\mathbb{L}}_{\mathsf{lex}}\), \({\mathbb{L}}_{\mathsf{rex}}\), and \({\mathbb{L}}_{\mathsf{rlex}}\).

It follows immediately by Lemma 13, its dual, and how models are defined that the following holds.

Lemma 14. The theories \({\mathbb{T}}_{\mathsf{lex}}\), \({\mathbb{T}}_{\mathsf{rex}}\), and \({\mathbb{T}}_{\mathsf{rlex}}\) are isoregular and

  1. \(\mathsf{Mod}({\mathbb{T}}_{\mathsf{lex}},\mathsf{Cat})\cong\mathsf{Lex}\),

  2. \(\mathsf{Mod}({\mathbb{T}}_{\mathsf{rex}},\mathsf{Cat})\cong\mathsf{Rex}\).

  3. \(\mathsf{Mod}({\mathbb{T}}_{\mathsf{rlex}},\mathsf{Cat})\cong\mathsf{RLex}\).

Remark 45. Since \(\mathsf{Cat}\) is accessible, has flexible limits, and retract equivalences are stable under them, the combination of 42 with 14 gives a new proof that \(\mathsf{Lex}\), \(\mathsf{Rex}\), and \(\mathsf{RLex}\) are accessible with flexible limits, which was shown in [14]. Additionally, the forgetful functors

Figure 38: image.

are accessible and preserve flexible limits, and therefore they all have left biadjoints by 40. Note that the left biadjoint to \(\mathsf{RLex}\to \mathsf{Cat}\) provides a finite case of Joyal’s bicompletion.

6.3 Exactness conditions↩︎

We now consider 2-categories of categories satisfying a variety of exactness conditions, namely regular, Mal’sev, exact, protomodular, and semiabelian categories (see [37][39] for details).

We begin by considering regular categories and write \(\mathsf{Reg}\) for the 2-category of regular categories, regular functors, and natural transformations. Let \({\mathbb{L}}_{\mathsf{reg}}\) be the language obtained by adding to \({\mathbb{L}}_{\mathsf{lex}}\) one relation symbol \(R_{\mathsf{ckp}}:S^{\,\mathbb{p}*0}\), where \(\,\mathbb{p}\) is the free-living pair of arrows. This new relation will be used to encode the coequalisers of kernel pairs. To define \({\mathbb{T}}_{\mathsf{reg}}\) we extend \({\mathbb{T}}_{\mathsf{lex}}\) by adding a few axioms. To begin with, we ask that every element of \(R_{\mathsf{ckp}}\) is a coequaliser; this is done by taking the dual of axioms (i)-(iv) of the theory \({\mathbb{T}}_{\,\mathbb{b}}\). In more detail, we first define the formula \((x,y\colon S^{\,\mathbb{p}*0}, z\colon S^{\,\mathbb{p}*[1]})\;A(x,y,z)\) as below \[(x,y\colon S^{\,\mathbb{p}*0}, z\colon S^{\,\mathbb{p}*[1]})\; R_{\mathsf{ckp}}(x)\wedge (z\cdot j_0=x) \wedge (z\cdot j_1=y)\] where \(j_0,j_1\colon \,\mathbb{p}*0\to \,\mathbb{p}*[1]\) pick out the domain and codomain of the freely added map respectively. Then add to \({\mathbb{T}}_{\mathsf{lex}}\) the axioms:

  1. \({\mathcal{J}}_{\mathsf{mono}}(A)\);

  2. \((x,y\colon S^{\,\mathbb{p}*0})\;R_{\mathsf{ckp}}(x),\;(x\cdot \iota=y\cdot \iota) \vdash (\exists z\colon S^{\,\mathbb{p}*[1]})\;A(x,y,z)\);

  3. \((z\colon S^{\,\mathbb{p}*\,\mathbb{I}})\;R_{\mathsf{ckp}}(z\cdot j_0)\vdash R_{\mathsf{ckp}}(z\cdot j_1)\);

  4. \((z\colon S^{[1]\times \,\mathbb{p}*0})\;R_{\mathsf{ckp}}(\mathsf{dom}(z)), R_{\mathsf{ckp}}(\mathsf{cod}(z))\vdash R_{\mathsf{ckp}}^{[1]}(z)\).

The next step is to ask that every kernel pair has a coequaliser. To that end, we use that kernel pairs are just a specific kind of pullback. For simplicity denote by \(R_{\mathsf{pb}}\equiv_{\mathrm{def}}R_{\,\mathbb{c}}\), where \(\,\mathbb{c}\) is the free cospan, the relation of \({\mathbb{L}}_{\mathsf{reg}}\) containing the pullback squares. This has sort \(S^{0*\,\mathbb{c}}\) which, since \(0*\,\mathbb{c}\cong [1]\times [1]\), by substitution we can replace with \(S^{[1]\times [1]}\). Consider the formula \((x\colon S^{\,\mathbb{p}*0})\;A_{\mathsf{kp}}(x)\) as below \[(\exists y\colon S^{[1]\times [1]})\;R_{\mathsf{pb}}(y)\wedge (\mathsf{pr}_d(y)=\mathsf{pr}_q(x)) \wedge (\mathsf{pr}_r(y)=\mathsf{pr}_q(x))\wedge (\mathsf{pr}_u(y)=\mathsf{pr}_f(x)) \wedge (\mathsf{pr}_l(y)=\mathsf{pr}_g(x)),\] where \(f,g\) denote the parallel arrows in \(\,\mathbb{p}*0\) and \(q\) the coequalising one.

We now add the axiom stating that every kernel pair has a coequaliser:

  1. \((x\colon S^{\,\mathbb{p}*0})\;A_{\mathsf{kp}}(x)\vdash (\exists y:S^{\,\mathbb{p}*0})\;R_{\mathsf{ckp}}(y)\wedge (\mathsf{pr}_f(y)=\mathsf{pr}_f(x))\wedge (\mathsf{pr}_g(y)=\mathsf{pr}_g(x)).\)

Finally, we add an axiom saying that coequalisers of kernel pairs are stable under pullback. For that consider the finite category \(\,\mathbb{d}\) generated by the commutative diagram below.

Figure 39: image.

Denote by \(\iota_t,\iota_b\colon \,\mathbb{p}*0\to \,\mathbb{d}\) the inclusion of the top and bottom co-forks respectively, and by \(\iota_{sq}\colon [1]\times [1]\to \,\mathbb{d}\) the inclusion of the square on the right. Then pullback stability of coequalisers of kernel pairs is expressed by the following axiom:

  1. \((x\colon S^{\,\mathbb{d}})\;R_{\mathsf{pb}}(x\cdot \iota_{sq}),\;R_{\mathsf{ckp}}(x\cdot \iota_t),\;A_{\mathsf{kp}}(x\cdot \iota_b) \vdash R_{\mathsf{ckp}}(x\cdot \iota_b).\)

Lemma 15. The theory \({\mathbb{T}}_{\mathsf{reg}}\) is isoregular and \(\mathsf{Mod}({\mathbb{T}}_{\mathsf{reg}},\mathsf{Cat})\cong\mathsf{Reg}\).

Proof. We begin by showing that \({\mathbb{T}}_{\mathsf{reg}}\) is isoregular. First, we already know that \({\mathbb{T}}_{\mathsf{lex}}\) is, and the axioms (i)-(iv) are isoregular by the dual of Lemma 13. The existential quantification in \((x\colon S^{\,\mathbb{p}*0})\;A_{\mathsf{kp}}(x)\) is well-formed since the variable \(y\colon S^{[1]\times [1]}\) is uniquely determined by its four components (Rule 6).

Finally, the fact that the existential quantification in axiom (v) is well-formed follows the same arguments that we used in Lemma 13 to prove that axiom (v) of \({\mathbb{T}}_{\,\mathbb{b}}\) is.

As for the 2-category of models, we can identify \(\mathsf{Reg}\) as a full subcategory of \(\mathsf{Str}({\mathbb{L}}_{\mathsf{reg}},\mathsf{Cat})\) by sending a regular category \({\mathcal{C}}\) to the \({\mathbb{L}}_{\mathsf{lex}}\)-structure corresponding to its underlying lex category and interpreting \(R_{\mathsf{ckp}}\) as the full subcategory spanned by all coequalisers of kernel pairs. It is easy to see that, under this identification, \(\mathsf{Reg}\) is closed under powers by \([1]\), so we can apply Proposition 44. Given this, it is immediate from the axioms that a model of \({\mathbb{T}}_{\mathsf{reg}}\) is the same as a regular category. ◻

Remark 46. The combination of 42 and 15 gives a new proof that \(\mathsf{Reg}\) is accessible with flexible limits, originally shown in [14].

Recall that a Mal’cev category is a lex category where every reflexive relation is an equivalence relation [38]. Define \(\mathsf{Mal}\) to be the full subcategory of \(\mathsf{Lex}\) spanned by the Mal’cev categories, and \(\mathsf{RMal}\) to be the full subcategory of \(\mathsf{Reg}\) spanned by the regular Mal’cev categories.

To define a theory whose models are Mal’cev categories, we first construct a theory that identifies all internal relations (that is, jointly monic pairs of arrows) in a category. Starting from the language and theory for lex categories, add a relation symbol \(R_{\mathsf{irel}}:S^{\,\mathbb{p}}\), where \(\,\mathbb{p}\) is the free-living pair, which will contain the internal relations; we call the new language \({\mathbb{L}}_{\mathsf{irel}}\). We expand \({\mathbb{T}}_{\mathsf{lex}}\) by adding the axioms:

  1. \((x\colon S^{\,\mathbb{p}})\;R_{\mathsf{irel}}(x) \vdash(\exists y\colon S^{[1]\times [1]}) R_{\mathsf{pb}}(y)\wedge (\mathsf{pr}_d(y)=\mathsf{pr}_f(x)) \wedge (\mathsf{pr}_r(y)=\mathsf{pr}_g(x))\wedge\)
    \((\mathsf{pr}_u(y)=\mathsf{id}_{\mathsf{dom}(\mathsf{pr}_u(y))}) \wedge (\mathsf{pr}_l(y)=\mathsf{id}_{\mathsf{dom}( \mathsf{pr}_l(y))})\)

  2. \((x\colon S^{\,\mathbb{p}})\; R_{\mathsf{pb}}(y)\wedge (\mathsf{pr}_d(y)=\mathsf{pr}_f(x)) \wedge (\mathsf{pr}_r(y)=\mathsf{pr}_g(x))\wedge (\mathsf{pr}_u(y)=\mathsf{id}_{\mathsf{dom}(\mathsf{pr}_u(y))}) \wedge\)
    \((\mathsf{pr}_l(y)=\mathsf{id}_{\mathsf{dom}( \mathsf{pr}_l(y))}) \vdash R_{\mathsf{irel}}(x);\)

  3. \((z\colon S^{[1]\times \,\mathbb{p}})\;R_{\mathsf{irel}}(\mathsf{dom}(z)), R_{\mathsf{irel}}(\mathsf{cod}(z))\vdash R_{\mathsf{irel}}^{[1]}(z)\).

These three axioms together ensure that \(R_{\mathsf{irel}}\) is the full (axiom (iii)) subcategory of \(S^{\,\mathbb{p}}\) spanned by all the internal relations (axioms (i) and (ii)). At this point we still have \(\mathsf{Mod}({\mathbb{T}}_{\mathsf{irel}},\mathsf{Cat})\cong\mathsf{Lex}\), since we are not adding any new properties.

To construct the theory \({\mathbb{T}}_{\mathsf{Mal}}\) for Mal’cev categories we now need to introduce formulas expressing when a relation is reflexive, symmetric, or transitive. Within \({\mathbb{T}}_{\mathsf{irel}}\), the formula for reflexivity \((x\colon S^{\,\mathbb{p}})\;A_{\mathsf{refl}}(x)\) is defined by \[(x\colon S^{\,\mathbb{p}})\;(\exists y\colon S^{\,\mathbb{p}'})\;R_{\mathsf{irel}}(x)\wedge (y_f=x_f) \wedge (y_g=x_g),\] where \(\,\mathbb{p}'\) is the free split pair, obtained by adding a common splitting to the two arrows in \(\,\mathbb{p}\). Note that the \(y\colon S^{\,\mathbb{p}'}\) above is unique since \(x\) is an internal relation. The formulas \(A_{\mathsf{sym}}(x)\) and \(A_{\mathsf{tran}}(x)\) are constructed in a similar way.

Thus, we can define \({\mathbb{T}}_{\mathsf{mal}}\) by adding to \({\mathbb{T}}_{\mathsf{irel}}\) the axiom \[(x\colon S^{\,\mathbb{p}})\;A_{\mathsf{refl}}(x) \vdash A_{\mathsf{sym}}(x)\wedge A_{\mathsf{tran}}(x).\] Similarly, we can consider the isoregular theory \({\mathbb{T}}_{\mathsf{rmal}}\equiv_{\mathrm{def}}{\mathbb{T}}_{\mathsf{reg}}\cup {\mathbb{T}}_{\mathsf{mal}}\) which models regular Mal’cev categories.

Lemma 16.

  1. The theory \({\mathbb{T}}_{\mathsf{mal}}\) is isoregular and \(\mathsf{Mod}({\mathbb{T}}_{\mathsf{mal}},\mathsf{Cat})\cong\mathsf{Mal}.\)

  2. The theory \({\mathbb{T}}_{\mathsf{rmal}}\) is isoregular and \(\mathsf{Mod}({\mathbb{T}}_{\mathsf{rmal}},\mathsf{Cat})\cong \mathsf{RMal}\)

Proof. For part (i), the existential quantifications in the first and second axioms of \({\mathbb{T}}_{\mathsf{irel}}\) are well-formed since \(y\colon S^{[1]\times [1]}\) is uniquely determined by its components. Finally, the existential quantification in \((x\colon S^{\,\mathbb{p}})\;A_{\mathsf{refl}}(x)\) is well-formed since, using that \(R_{\mathsf{irel}}(x)\) holds, the \(y\colon S^{\,\mathbb{p}'}\) is unique (use the formulas defining the universal property of pullbacks). Similar arguments apply for \(A_{\mathsf{sym}}(x)\) and \(A_{\mathsf{tran}}(x)\).

The isomorphism between the 2-category of models and \(\mathsf{Mal}\) goes as usual. We can identify \(\mathsf{Mal}\) as a full subcategory of \({\mathbb{L}}_{\mathsf{irel}}\)-structures by interpreting \(R_{\mathsf{irel}}\) as the full subcategory of all internal relations. Then notice that we can apply Proposition 44.

Part (ii) is similar. ◻

A direct application of Corollary 43 and Theorem 40 then gives the result below, ensuring the existence of free Mal’cev categories.

Theorem 47. The 2-categories \(\mathsf{Mal}\) and \(\mathsf{RMal}\) are accessible with flexible limits. Moreover, the forgetful 2-functors \(\mathsf{Mal}\to \mathsf{Lex}\) and \(\mathsf{RMal}\to \mathsf{Reg}\) are accessible and preserve flexible limits, and therefore they have left biadjoints.

Let us write \(\mathsf{Ex}\) for the 2-category of (Barr) exact categories, exact functors, and natural transformations. Extending \({\mathbb{T}}_{\mathsf{reg}}\) and \({\mathbb{T}}_{\mathsf{irel}}\), we can define an isoregular theory \({\mathbb{T}}_{\mathsf{ex}}\) such that \[\mathsf{Mod}({\mathbb{T}}_{\mathsf{ex}},\mathsf{Cat})\cong\mathsf{Ex}\mathrlap{.}\] To do this, start from the language \({\mathbb{L}}_{\mathsf{reg}}\cup {\mathbb{L}}_{\mathsf{irel}}\) and add to \({\mathbb{T}}_{\mathsf{reg}}\cup {\mathbb{T}}_{\mathsf{irel}}\) the axiom \[(x\colon S^{\,\mathbb{p}})\;A_{\mathsf{refl}}(x), A_{\mathsf{sym}}(x), A_{\mathsf{tran}}(x)\vdash (\exists y\colon S^{\,\mathbb{p}*0})\;A_{\mathsf{kp}}(y)\wedge (\mathsf{pr}_f(y)=\mathsf{pr}_f(x)) \wedge (\mathsf{pr}_g(y)=\mathsf{pr}_g(x)\] saying that every equivalence relation arises as a (unique up to isomorphism) kernel pair.

The next notion from categorical algebra that we examine is protomodularity. Recall that a category with pullbacks is called protomodular if for any commutative diagram

Figure 40: image.

where \(t\circ s=1\), if (a) and (a+b) are pullback squares, then so is (b) (see [40]). We can express this property with an isoregular theory. We denote by \(\mathsf{Ptm}\) the 2-category of protomodular categories, pullback-preserving functors, and natural transformations between them.

We start from the theory \({\mathbb{T}}_{\mathsf{pb}}\) of categories with pullbacks. Denote by \(\,\mathbb{q}\) the category generated by the diagram above, and by \(\iota_a,\iota_b,\iota_{a+b}\colon[1]\times [1]\to \,\mathbb{q}\) the inclusions of the three squares. Then it is enough to add to \({\mathbb{T}}_{\mathsf{pb}}\) the axiom \[(x\colon S^{\,\mathbb{q}})\quad R_{\mathsf{pb}}(x\cdot \iota_a), R_{\mathsf{pb}}(x\cdot \iota_{a+b})\vdash R_{\mathsf{pb}}(x\cdot \iota_b).\] Call \({\mathbb{T}}_{\mathsf{ptm}}\) the new theory we obtain; it is then straightforward to show that

Lemma 17. The theory \({\mathbb{T}}_{\mathsf{ptm}}\) is isoregular and \(\mathsf{Mod}({\mathbb{T}}_{\mathsf{ptm}},\mathsf{Cat})\cong\mathsf{Ptm}\).

As a consequence, we can establish the existence of free protomodular categories over categories of pullbacks. Below, we write \(\mathsf{Pb}\) for the 2-category of small categories with pullbacks, pullback-preserving functors, and natural transformations.

Theorem 48. The 2-category \(\mathsf{Ptm}\) is accessible with flexible limits. Moreover, the forgetful 2-functor \(\mathsf{Ptm}\to \mathsf{Pb}\) is accessible and preserves flexible limits, and therefore has a left biadjoint.

Remark 49. By expanding \({\mathbb{T}}_{\mathsf{ptm}}\) with the axioms in \({\mathbb{T}}_{\mathsf{lex}}\) (respectively, \({\mathbb{T}}_{\mathsf{reg}}\) or \({\mathbb{T}}_{\mathsf{ex}}\)) we also obtain that the free lex (respectively, regular or exact) protomodular category on a lex (respectively, regular or exact) category exists.

Recall that a category is called semi-abelian if it is exact, protomodular, has finite coproducts, and has a zero object (see again see [40]). Denote by \(\mathsf{SmAb}\) the 2-category of semi-abelian categories, exact and finite coproduct-preserving functors, and natural transformations between them. To construct a theory for semi-abelian category then it is enough to define \({\mathbb{T}}_{\mathsf{smab}}\) as the union of:

  • the theory \({\mathbb{T}}_{\mathsf{ex}}\) of exact categories (which contains in particular a relation \(R_\emptyset\colon S^{[0]}\) collecting all terminal objects),

  • the theory \({\mathbb{T}}_{\mathsf{ptm}}\) of protomodular categories,

  • the theory \({\mathbb{T}}_{\mathsf{fc}}\) of categories with finite coproducts (which contains a relation \(R'_\emptyset\colon S^{[0]}\) collecting all the initial objects);

  • the single axiom \[(x\colon S^{[0]})\quad R_\emptyset(x)\vdash R'_\emptyset(x)\] expressing the fact that every terminal object is also initial.

Given this it is straightforward to show

Lemma 18. The theory \({\mathbb{T}}_{\mathsf{smab}}\) is isoregular and \(\mathsf{Mod}({\mathbb{T}}_{\mathsf{ptm}},\mathsf{Cat})\cong\mathsf{SmAb}\).

As a consequence also free semi-abelian categories exist; below \(\mathsf{Fc}\) is the 2-category of small categories with finite coproducts, finite-coproduct preserving functors, and natural transformations.

Theorem 50. The 2-category \(\mathsf{SmAb}\) is accessible with flexible limits. Moreover, the forgetful functors \(\mathsf{SmAb}\to \mathsf{Ptm}\), \(\mathsf{SmAb}\to \mathsf{Fc}\), \(\mathsf{SmAb}\to \mathsf{Ex}\) are accessible and preserve flexible limits, and therefore they all have left biadjoints.

Remark 51. Many more exactness conditions (such as extensive categories and pretoposes, as well as homological categories) can be expressed in this framework. We leave it to the reader to fill in the details of the corresponding isoregular theories.

6.4 Fibrations↩︎

We now consider isofibrations and Grothendieck fibrations. Recall that a functor \(p\colon {\mathcal{E}}\to {\mathcal{B}}\) is an isofibration if and only if for any \(x\in{\mathcal{E}}\) and any isomorphism \(u\colon px\to y\) in \({\mathcal{B}}\) there exists an isomorphism \(v\colon x\to x'\) in \({\mathcal{E}}\) with \(pv=u\). We denote by \(\mathsf{IsoFib}\) the full subcategory of \(\mathsf{Cat}^{[1]}\) spanned by the isofibrations.

Given this, it is straightforward to write down the language and theory for isofibrations. We let \({\mathbb{L}}_{\mathsf{isofib}}\) have two basic sorts \(E,B\) and one function symbol \(p\colon E\to B\); then \({\mathbb{T}}_{\mathsf{isofib}}\) consists of the single axiom \[(x\colon E, u\colon B^{\,\mathbb{I}})\;\mathsf{dom}(u_0)=p(x) \vdash (\exists v\colon E^{\,\mathbb{I}})\;\mathsf{dom}(v_0)=x \wedge p^{[1]}(v_0)=u_0.\] As before, we denoted by \(\,\mathbb{I}\) the category obtained by adding an inverse to the morphism in \([1]\); given \(u\colon S^{\,\mathbb{I}}\) we denote by \(u_0\colon S^{[1]}\) the restriction of \(u\) along the inclusion. Similarly, we denote by \(u_0^{-1}\colon S^{[1]}\) the restriction along the inclusion \([1]\to\,\mathbb{I}\) picking the added inverse.

Lemma 19. The theory \({\mathbb{T}}_{\mathsf{isofib}}\) is isoregular and \(\mathsf{Mod}({\mathbb{T}}_{\mathsf{isofib}},\mathsf{Cat})\cong \mathsf{IsoFib}\).

Proof. We need to show that \({\mathcal{J}}_\mathsf{ffk}(\mathsf{dom}(v_0)=x \wedge p^{[1]}(v_0)=u_0)\) is derivable to guarantee that the existential quantification is well-formed. For the faithfulness part, we assume to have \[\begin{align} \mathsf{dom}^{[1]}(\tilde{v}_0)=\tilde{x},\;&(p^{[1]})^{[1]}(\tilde{v}_0)=\tilde{u}_0,\; \mathsf{dom}^{[1]}(\tilde{v}_0')=\tilde{x},\;(p^{[1]})^{[1]}(\tilde{v}_0')=\tilde{u}_0',\\ &\mathsf{dom}(\tilde{v})=\mathsf{dom}(\tilde{v}'),\;\mathsf{cod}(\tilde{v})=\mathsf{cod}(\tilde{v}') \end{align}\] in context \((\tilde{x}\colon E^{[1]}, \tilde{u}\colon B^{[1]\times \,\mathbb{I}},\tilde{v},\tilde{v}'\colon E^{[1]\times \,\mathbb{I}} )\). Now note that we can describe the components of a \(\tilde{v}\colon E^{[1]\times \,\mathbb{I}}\) as below

Figure 41: image.

Since the inclusions \(\iota_u,\iota_l,\iota_r\colon[1]\to [1]\times \,\mathbb{I}\) (of the upper, left, and right arrows) are jointly epic, it follows from the hypothesis and Rule 6 that \(\tilde{v}=\tilde{v}'\).

It remains to prove fullness on identities. The hypotheses are \[(x\colon E, u\colon B^{\,\mathbb{I}}, v,v'\colon E^{\,\mathbb{I}} )\quad \mathsf{dom}(v_0)=x,\;p^{[1]}(v_0)=u_0,\;\mathsf{dom}(v'_0)=x,\;p^{[1]}(v'_0)=u_0\] and we need to derive that \[(\exists \tilde{v}\colon E^{[1]\times \,\mathbb{I}})\;\mathsf{dom}^{[1]}(\tilde{v}_0)=\mathsf{id}_x\wedge (p^{[1]})^{[1]}(\tilde{v}_0)=\mathsf{id}_u\wedge \mathsf{dom}(\tilde{v})=v\wedge \mathsf{cod}(\tilde{v})=v'.\] First notice that since \(\mathsf{cod}(v_0^{-1})=\mathsf{dom}(v_0)=\mathsf{dom}(v_0')\) we can derive \[(\exists z\colon E^{[2]})\;\mathsf{fst}(z)=v_0^{-1} \wedge \mathsf{snd}(z)=v_0';\] then, using Rule 7 a few times, we deduce \[(\exists \tilde{v}\colon E^{[1]\times \,\mathbb{I}})\; \mathsf{dom}(\tilde{v})= v\wedge \mathsf{cod}(\tilde{v})=v'\wedge \mathsf{dom}^{[1]}(\tilde{v}_0)= \mathsf{id}_x \wedge \mathsf{cod}^{[1]}(\tilde{v}_0)=\mathsf{comp}(z).\] It is easy to see that such \(\tilde{v}\) satisfies the formula we want to derive, so that \({\mathbb{T}}_{\mathsf{isofib}}\) is isoregular.

Once more, since isofibrations are stable under powers by \([1]\), it is easy to observe that \[\mathsf{Mod}({\mathbb{T}}_{\mathsf{isofib}},\mathsf{Cat})\cong\mathsf{IsoFib}\] using Proposition 44. ◻

Let us write \(\mathsf{GFib}\) for the locally full subcategory of \(\mathsf{Cat}^{[1]}\) spanned by the Grothendieck fibrations, and those commutative squares whose top functor preserves the cartesian arrows. The language \({\mathbb{L}}_{\mathsf{Gfib}}\) for the theory of Grothendieck fibrations consists of two basic sorts \(E,B\), a function symbol \(p\colon E\to B\), and a relation symbol \(\mathsf{Cart}\rightarrowtail E^{[1]}\) that will collect all cartesian arrows in \(E\). Before defining the theory, to set notation consider the finite categories below:

Figure 42: image.

and denote by \(\iota_{\,\mathbb{e}}\colon\,\mathbb{e} \to [2]\) the inclusion.

Now we define \({\mathbb{T}}_{\mathsf{Gfib}}\) to consist of the following axioms:

  1. \((z,w\colon E^{[2]})\quad \mathsf{Cart}(\mathsf{snd}(z)),\;z\cdot \iota_{\,\mathbb{e}}=w\cdot \iota_{\,\mathbb{e}},\;p^{[1]}(\mathsf{fst}(z))=p^{[1]}(\mathsf{fst}(w))\vdash z=w\);

  2. \((x\colon E^{\,\mathbb{e}}, z\colon B^{[2]})\quad \mathsf{Cart}(\mathsf{snd}(x)),\;p^{[1]}(\mathsf{snd}(x))=\mathsf{snd}(z),\;p^{[1]}(\mathsf{comp}(x))=\mathsf{comp}(z)\quad\)
    \(\vdash (\exists w\colon E^{[2]})\quad w\cdot\iota_{\,\mathbb{e}}= x\wedge p^{[1]}(\mathsf{fst}(w))=\mathsf{fst}(z)\wedge \mathsf{Cart}(\mathsf{snd}(w))\);

  3. \((y\colon E^{\,\mathbb{f}})\quad \mathsf{Cart}(\mathsf{snd}(y)) \vdash \mathsf{Cart}(\mathsf{comp}(y))\);

  4. \((u\colon E^{[1]\times [1]})\quad \mathsf{Cart}(\mathsf{dom}(u)), \mathsf{Cart}(\mathsf{cod}(u))\vdash \mathsf{Cart}^{[1]}(u)\);

  5. \((y\colon E, u\colon B^{[1]})\quad \mathsf{cod}(u)=p(y) \vdash (\exists v\colon E^{[1]})\;\mathsf{Cart}(v)\wedge \mathsf{cod}(v)=y \wedge p^{[1]}(v)=u\).

Lemma 20. The theory \({\mathbb{T}}_{\mathsf{Gfib}}\) is isoregular and \(\mathsf{Mod}({\mathbb{T}}_{\mathsf{Gfib}},\mathsf{Cat})\cong\mathsf{GFib}.\)

Proof. Axioms (i) and (ii) say that every map in \(\mathsf{Cart}\) is cartesian (satisfies the unique lift property); the existential quantification in (ii) is well-formed because (i) proves uniqueness. Axiom (iii) says that \(\mathsf{Cart}\) is closed under isomorphisms (hence its objects are all the cartesian maps), while (iv) imposes that \(\mathsf{Cart}\) is a full subcategory of \(E^{[1]}\). Finally, (v) asks that every map in \(B\) with codomain of the form \(p(y)\) has a cartesian lift. The fact that such lift is unique up to unique isomorphism (and hence that the existential quantification is well-formed) is proved as in the case of isofibrations.

As usual, since we already know that Grothendieck fibrations are stable under powers by \([1]\), it is easy to conclude that we have the desired isomorphism of 2-categories. ◻

Remark 52. Combining 42 with 19 and 20, we obtain new proofs that \(\mathsf{IsoFib}\) and \(\mathsf{GFib}\) are accessible with flexible limits, originally shown in [14].

6.5 Categorical logic, adjoints, and multicategories↩︎

We conclude by applying our results to various 2-categories of interest in categorical logic, 2-categories of adjoint functors, and multicategories.

Recall [41] that a comprehension category is the data of a commutative triangle

Figure 43: image.

in \(\mathsf{Cat}\), where \(\mathsf{cod}\) is the codomain functor, \(p\) is a Grothendieck fibration, and \(\Sigma\) sends cartesian arrows to pullback squares. Comprehension categories assemble into a 2-category \(\mathsf{Cmp}\) whose morphisms are of the form

Figure 44: image.

where \(F\) preserves the cartesian arrows. The 2-cells of \(\mathsf{Cmp}\) are just 2-cells in \(\mathsf{Cat}^{[2]}\) (the 2-category of commutative triangles in \(\mathsf{Cat}\)).

To define as isoregular theory describing comprehension categories, consider the language \({\mathbb{L}}_{\mathsf{cmp}}\) consisting of two sorts \(E,B\), two function symbols \(p\colon E\to B\) and \(\Sigma\colon E\to B^{[1]}\), and a relation symbol \(\mathsf{Cart}\rightarrowtail E^{[1]}\). Then \({\mathbb{T}}_{\mathsf{comp}}\) is defined by:

  1. the axiom \((x\colon E)\;\mathsf{cod}(\Sigma(x))=p(x) ;\)

  2. all of the axioms in of \({\mathbb{T}}_{\mathsf{Gfib}}\), asserting that \(p\) is a Grothendieck fibration and \(\mathsf{Cart}\) collects all cartesian maps;

  3. axioms asserting that if \(\mathsf{Cart}(u)\) holds, then \(\Sigma^{[1]}(u)\colon B^{[1]\times[1]}\) is a pullback square in \(B\); this is done as in Section 6.2.

Given what we have shown already about limits and Grothendieck fibrations, the next lemma follows easily.

Lemma 21. The theory \({\mathbb{T}}_{\mathsf{cmp}}\) is isoregular and \(\mathsf{Mod}({\mathbb{T}}_{\mathsf{cmp}},\mathsf{Cat})\cong\mathsf{Cmp}.\)

Theorem 53. The 2-category \(\mathsf{Cmp}\) is accessible with flexible limits. Moreover, the forgetful 2-functor \(\mathsf{Cmp}\to \mathsf{GFib}\) is accessible and preserves flexible limits, and therefore has a left biadjoint.

Remark 54. In a slightly different context, the free comprehension category over a Grothendieck fibration has been constructed explicitly in [42]. What differs is that their 2-category of comprehension categories a lax version of our notion of morphism.

Recall [43], [44] that a clan is a category \({\mathcal{C}}\) together with a set of morphisms \(\mathsf{Fib}\subseteq {\mathcal{C}}^{[1]}\) (which we see as a full subcategory) such that:

  • \({\mathcal{C}}\) has a terminal object \(1\);

  • pullbacks along maps in \(\mathsf{Fib}\) exist;

  • every isomorphism and every map with codomain \(1\) lies in \(\mathsf{Fib}\);

  • the elements of \(\mathsf{Fib}\) are closed under composition and stable under pullback.

Clans assemble in a 2-category \(\mathsf{Clan}\) whose morphisms are functors preserving the class of fibrations as well as the terminal object and pullbacks along fibrations; 2-cells are just natural transformations.

The language \({\mathbb{L}}_{\mathsf{clan}}\) for clans consists of a single sort \(S\), a relation symbol \(\mathsf{Fib}\rightarrowtail S^{[1]}\) for the set of fibrations, a relation symbol \(R_\emptyset\rightarrowtail S\) to collect the terminal objects, and a relation symbol \(R_{\mathsf{pb}}\rightarrowtail S^{[1]\times [1]}\) collecting all the pullbacks along maps in \(\mathsf{Fib}\). The isoregular theory \({\mathbb{T}}_{\mathsf{clan}}\) is then formed by:

  1. the five axioms of Section 6.2 for \(\,\mathbb{b}=\emptyset\), saying that \(S\) has a terminal object and \(R_\emptyset\) collects all of them;

  2. the first four axioms of Section 6.2 for \(\,\mathbb{b}\) the free cospan (with inclusion \(\iota\colon\,\mathbb{b}\to [1]\times [1]\)), saying that \(R_{\mathsf{pb}}\) consists of pullback squares, is closed under isomorphisms, and is a full subcategory of \(S^{[1]\times [1]}\);

  3. the axiom (similar to (v) in Section 6.2) \[(x\colon S^{\,\mathbb{b}})\; \mathsf{Fib}(\mathsf{pr}_r(x))\vdash (\exists y\colon S^{[1]\times [1]})\;R_{\mathsf{pb}}(y)\wedge (y\cdot \iota= x)\] for \(\,\mathbb{b}\) the free co-span, saying that pullbacks along maps in \(\mathsf{Fib}\) exists and are in \(R_{\mathsf{pb}}\);

  4. the axiom \[(z\colon S^{[1]\times [1]})\;\mathsf{Fib}(\mathsf{dom}(z)), \mathsf{Fib}(\mathsf{cod}(z))\vdash \mathsf{Fib}^{[1]}(z)\] saying that \(\mathsf{Fib}\) defines a full subcategory;

  5. the axiom \[(u\colon S^{\,\mathbb{I}}) \vdash \mathsf{Fib}(u_0)\] saying that \(\mathsf{Fib}\) contains all isomorphism (we follow the notation used in Section [sec:isofib]);

  6. the axiom \[(u\colon S^{[2]})\; \mathsf{Fib}(\mathsf{fst}(u)), \mathsf{Fib}(\mathsf{snd}(u))\vdash \mathsf{Fib}(\mathsf{comp}(u))\] saying that \(\mathsf{Fib}\) is closed under composition;

  7. the axiom \[(z\colon S^{[1]\times [1]})\;R_{\mathsf{pb}}(z)\vdash \mathsf{Fib}(\mathsf{pr}_l(z))\wedge \mathsf{Fib}(\mathsf{pr}_r(z))\] saying that the vertical legs of every square in \(R_{\mathsf{pb}}\) lie in \(\mathsf{Fib}\). Together with (iii) this implies that \(\mathsf{Fib}\) is stable under pullbacks.

Lemma 22. The theory \({\mathbb{T}}_{\mathsf{clan}}\) is isoregular and \(\mathsf{Mod}({\mathbb{T}}_{\mathsf{clan}},\mathsf{Cat})\cong\mathsf{Clan}.\)

Proof. The only existential quantifications in \({\mathbb{T}}_{\mathsf{clan}}\) appear to give the universal property of a limit or to say that a limit exists, so they are well-formed by the same arguments of Lemma 13; thus \({\mathbb{T}}_{\mathsf{clan}}\) is isoregular.

Given this, a model \(M\) of \({\mathbb{T}}_{\mathsf{clan}}\) is determined by the category \(\llbracket{S}\rrbracket\) and the relation \(\llbracket{\mathsf{Fib}}\rrbracket\), which is a full subcategory of \(\llbracket{S}\rrbracket^{[1]}\) by (iv). Indeed, then \(\llbracket{R_{\emptyset}}\rrbracket\) is forced to be the full subcategory of all terminal objects in \(\llbracket{S}\rrbracket\), and \(\llbracket{R_{\mathsf{pb}}}\rrbracket\) the full subcategory of all pullback squares with vertical maps in \(\llbracket{\mathsf{Fib}}\rrbracket\). Then \(\llbracket{\mathsf{Fib}}\rrbracket\) satisfies the conditions required to form a clan by (v)-(vii). One concludes as usual by using that clans are stable under powers by \([1]\). ◻

Theorem 55. The 2-category \(\mathsf{Clan}\) is accessible with flexible limits. Moreover, the forgetful 2-functor \(\mathsf{Clan}\to \mathsf{Cat}\) is accessible, preserves flexible limits, and therefore has a left biadjoint.

Remark 56. One could also give an isoregular theory for small categories with a terminal object and a natural number object, functors preserving them, and natural transformations.

For an example of a slightly different nature, let us consider \(\mathsf{Radj}\), the locally full sub-2-category of \(\mathsf{Cat}^{[1]}\) whose objects are right adjoint functors \(R\colon{\mathcal{C}}\to{\mathcal{D}}\), and morphisms are squares

Figure 45: image.

were \(F\) preserves universal arrows; that is, if \(\eta\) is a universal arrow from \(c\in {\mathcal{C}}\) to \(R\), then \(F\eta\) is a universal arrow from \(Fc\) to \(R'\). This is equivalent to requiring that \(F\) preserves the units of the adjunction up to isomorphism.

At this point the reader will probably guess how to construct an isoregular theory that models \(\mathsf{Radj}\). The idea is that, beside having a function symbol \(R\colon C\to D\) between two sorts, one also adds a relation symbol \(\mathsf{Univ}\rightarrowtail C^{[1]}\) to collect (via given axioms) all universal arrows; i.e. all units of the adjunction. Then we add an axiom stating that for any object of \(C\) there exists an element of \(\mathsf{Univ}\) (which is unique up to isomorphism) with domain the given object. When taking models in \(\mathsf{Cat}\) this is equivalent to asking the existence of a left adjoint to \(R\); since morphisms need to respect the relation symbol, the 2-category of models will be the same as \(\mathsf{Radj}\).

The same arguments apply for the 2-category \(\mathsf{Ladj}\) whose objects are left adjoint functors \(L\colon{\mathcal{C}}\to{\mathcal{D}}\), and where the morphism preserve universal arrows from \(L\) to \(d\in{\mathcal{D}}\).

As our final example consider the 2-category \(\mathsf{Mult}\) of multicategories, multifunctors, and multinatural transformations. To find an isoregular theory presenting \(\mathsf{Mult}\) we see the data of a multicategory \(M\) as:

  • a category \(M_n\) of \(n\)-ary morphisms and multisquares between them, for any \(n\geq 0\), where \(0\)-ary morphisms are the objects;

  • unit \(1\colon M_0\to M_1\), source \(s_n\colon M_n\to(M_0)^n\), and target \(t_n\colon M_n\to M_0\) functors (for any \(n> 0\));

  • subcategories \(\mathsf{Comp}_{n}^{m_1,\cdots,m_n}\rightarrowtail M_n\times M_{m_1}\times\cdots\times M_{m_n}\times M_{m_1+\cdots m_n}\) to encode that
    \(\mathsf{Comp}_{n}^{m_1,\cdots,m_n}(f,g_1,\cdots,g_n,h)\) holds if and only if \(f\circ (g_1,\cdots,g_n)\) is well-typed and coincides with \(h\).

All of this data identifies a language \({\mathbb{L}}\). The existence of composites is expressed via unique existential quantification and is subject to axioms expressing associativity and unitality. Finally one also needs to add axioms saying that morphisms in \(M_n\) are just compatible \((n+1)\)-tuples of objects from \(M_1\). This suffices to decribe \(\mathsf{Mult}\).

From this, we can add relation symbols \(\mathsf{Rep_n}\rightarrowtail M_n\), for any \(n\geq 1\), collecting (via specific axioms) all strong universal arrows \(\eta:(x_1,\cdots, x_n)\to \hat{x}\) in the sense of [45]. If we further add an axiom saying that for any \(n\)-tuple of objects \((x_1,\cdots, x_n)\) there is a (unique up to isomorphism) strong universal arrow with source \((x_1,\cdots, x_n)\), we obtain an isoregular theory that present the 2-category \(\mathsf{RMult}\) of representable multicategories, multifunctors that preserve strong universal arrows, and multinatural transformations.

Since \(\mathsf{RMult}\) is 2-equivalent to the 2-category \(\mathsf{MonCat}\) of monoidal categories, strong monoidal functors, and monoidal natural transformations, we obtain a new proof that \(\mathsf{MonCat}\) is accessible with flexible limits, as shown in [14].

7 Directions for future work↩︎

The paper suggests several promising ideas, including possible generalisations of our results which we expect to be true, whose investigation we leave for future work.

Internal languages↩︎

Given a small isoregular 2-category \({\mathcal{C}}\), we expect to be possible do define an isoregular theory \({\mathbb{T}}_{\mathcal{C}}\) such that \[\mathsf{IsoReg}({\mathcal{C}},{\mathcal{K}})\simeq \mathsf{Mod}({\mathbb{T}}_{\mathcal{C}},{\mathcal{K}}) \mathrlap{,}\] for any isoregular 2-category \({\mathcal{K}}\). This would strengthen the view of isoregular 2-categories as the semantical counterpart of isoregular theories.

Barr’s embedding↩︎

Given a small isoregular 2-category \({\mathcal{C}}\), a natural question that arises is whether the evaluation 2-functor \[\mathsf{ev}\colon{\mathcal{C}}\longrightarrow [\mathsf{IsoReg}({\mathcal{C}},\mathsf{Cat}),\mathsf{Cat}]\] is fully faithful, generalising the ordinary embedding for regular categories proved by Barr [3]. We believe that an adaptation of the arguments in [46] could work in this context.

Such a theorem would be very important for at least two reasons. On one hand, it would imply a completeness theorem for isoregular logic relative to models in \(\mathsf{Cat}\). On the other, it would mean that isoregular categories could be captured in the context of lex-colimits [47], and all of the theory developed in that paper would apply.

Makkai’s conceptual completeness↩︎

Assuming to have proved an analogue of Barr’s embedding as above, then is easy to see that the evaluation 2-functor restricts to \[J\colon{\mathcal{C}}\longrightarrow \mathsf{FlexFilt}(\mathsf{IsoReg}({\mathcal{C}},\mathsf{Cat}),\mathsf{Cat})\] where the codomain is the full subcategory of \([\mathsf{IsoReg}({\mathcal{C}},\mathsf{Cat}),\mathsf{Cat}]\) spanned by those 2-functors that preserve flexible limits and filtered colimits. Is it possible to add exactness condition on \({\mathcal{C}}\) to enforce that \(J\) is a 2-equivalence? This would give a 2-dimensional version of Makkai’s theorem for Barr-exact categories [48].

Infinitary case↩︎

Let \(\lambda\) be a regular cardinal. One can then define “\(\lambda\)-isoregular” logic by allowing arities from \(\mathsf{Cat}_\lambda\) (the full subcategory of \(\mathsf{Cat}\) spanned by the \(\lambda\)-presentable objects) and \(\lambda\)-small conjunctions. Semantically this corresponds to asking an isoregular 2-category also to have all \(\lambda\)-small products (and hence all \(\lambda\)-small limits), plus the requirement that fully faithful regular epimorphisms are stable under \(\lambda\)-small products.

Then all the results of the paper, and possibly those envisaged in this section, should extend to the infinitary setting without major efforts. As a consequence, one would be able to characterise accessible 2-categories with flexible limits exactly as the 2-categories of models of infinitary isoregular theories in \(\mathsf{Cat}\).

8 Deduction rules for isoregular theories↩︎

As in 1-dimensional first-order logic, we assume the standard structural and equality rules (see for instance [27]). We also assume two rules expressing unitality and associativity of term substitution, which we do not spell out. All the other rules of isoregular logic are listed below.

Deduction rules for conjunction↩︎

Rule 1. \[\begin{prooftree} A_1, A_2 \vdash B \justifies A_1 \land A_2 \vdash B \end{prooftree} \qquad \begin{prooftree} A_1, \ldots, A_n \vdash B_1 \quad A_1, \ldots, A_n \vdash B_2 \justifies A_1, \ldots, A_n \vdash B_1 \land B_2 \end{prooftree}\]

Deduction rules for existential quantifiers↩︎

Rule 2. \[\begin{gather} \begin{prooftree} (\bar{X}) \quad (\exists x \colon X) A \colon\mathsf{prop} \qquad (\bar{X}) \quad s \colon X \qquad (\bar{X}) \quad A_1, \ldots, A_n \vdash A[s/x] \justifies (\bar{X}) \quad A_1, \ldots, A_n \vdash (\exists x \colon X) A \end{prooftree} \medskip \\ \begin{prooftree} (\bar{X}, x \colon X) \quad A(x) \vdash B \justifies (\bar{X}) \quad (\exists x \colon X) A(x) \vdash B \end{prooftree} \end{gather}\]

Rule 3 (Frobenius rule). \[\begin{prooftree} A_1, \ldots, A_n \vdash A \qquad A_1, \ldots, A_n \vdash (\exists y \colon Y) B \justifies A_1, \ldots, A_n \vdash (\exists y\colon Y)( A \land B) \end{prooftree}\]

Terminal object rule↩︎

Rule 4. \[\begin{prooftree} s \colon S^{0} \quad t \colon S^{0} \justifies s=t \end{prooftree}\]

Deduction rules for restriction↩︎

Rule 5. For functors \(f \colon\,\mathbb{d} \to \,\mathbb{c}\) and \(g \colon\,\mathbb{e} \to \,\mathbb{d}\), \[\begin{prooftree} s \colon S^{\,\mathbb{c}} \justifies (s \cdot f) \cdot g = s \cdot (f \circ g) \end{prooftree} \qquad\qquad \begin{prooftree} s \colon S^{\,\mathbb{c}} \justifies s \cdot 1_{\,\mathbb{c}} = s \end{prooftree}\]

Rule 6. For a jointly epimorphic family of functors \((f_i \colon\,\mathbb{d} \to \,\mathbb{c})_{1 \leq i \leq n}\), \[\begin{prooftree} s \colon S^{\,\mathbb{c}} \quad t \colon S^{\,\mathbb{c}} \qquad s \cdot f_1 = t \cdot f_1 \quad \ldots \quad s \cdot f_n = t \cdot f_n \justifies s = t \end{prooftree}\]

Rule 7. For every pushout diagram \[\begin{tikzcd} \,\mathbb{b} \ar[r, "i_2"] \ar[d, "i_1"'] & \,\mathbb{c}_2 \ar[d, "j_2"] \\ \,\mathbb{c}_1 \ar[r, "j_1"'] & \,\mathbb{d} \mathrlap{,} \end{tikzcd}\] the rule \[\begin{prooftree} s_1 \colon S^{\,\mathbb{c}_1} \quad s_2 \colon S^{\,\mathbb{c}_2} \quad s_1 \cdot i_1 = s_2 \cdot i_2 \justifies (\exists x \colon S^{\,\mathbb{d}}) \big( x \cdot j_1 = s_1 \land x \cdot j_2 = s_2 \big) \end{prooftree}\] The existential quantifier in the conclusion can be formed since \(j_1\), \(j_2\) are jointly epimorphic.

Rule 8. For \(q\colon \,\mathbb{b}\to \,\mathbb{c}\) the coequaliser of \(f,g\colon\,\mathbb{a}\to \,\mathbb{b}\), the rule \[\begin{prooftree} s \colon S^{\,\mathbb{b}} \quad s \cdot f = s \cdot g \justifies (\exists x \colon S^{\,\mathbb{c}}) \big( x \cdot q = s \big) \end{prooftree}\] The existential quantifier in the conclusion can be formed since \(q\) is an epimorphism.

Deduction rules for powers.↩︎

Rule 9. For a functor \(f \colon\,\mathbb{d} \to \,\mathbb{c}\) \[\label{equ:powers-restriction} \begin{prooftree} s \colon S^{\,\mathbb{c}} \justifies (s\cdot f)^{[1]} = s^{[1]}\cdot ([1]\times f) (s) \end{prooftree}\tag{7}\]

Rule 10. \[\label{equ:comp} \begin{prooftree} (\bar{x} \colon\bar{X})\; \justifies (\bar{u} \colon\bar{X}^{[1]})\; \mathsf{var}_{\bar X, i}^{[1]}(\bar u) = \mathsf{var}_{\bar X^{[1]}, i}(\bar u) \end{prooftree}\qquad \begin{prooftree} (\bar x\colon\bar{X})\;s \colon X \qquad (\Delta, x \colon X) \;t \colon Y \justifies \big( t[s/x] \big)^{[1]} = t^{[1]} [ s^{[1]} / u ] \end{prooftree}\tag{8}\]

Rule 11. \[\label{equ:naturality-dom-cod-id} \begin{gather} \begin{prooftree} (\bar x\colon\bar X)\;s(\bar x) \colon S^{\,\mathbb{c}} \justifies (\bar x\colon\bar X)\;s^{[1]}(\mathsf{id}_{\bar x})=\mathsf{id}_{s(\bar x)} \end{prooftree} \medskip \\ \begin{prooftree} (\bar x\colon\bar X)\;s(\bar x) \colon S^{\,\mathbb{c}} \justifies (\bar u\colon\bar X^{[1]})\;\mathsf{dom}(s^{[1]}(\bar u))=s(\mathsf{dom}(\bar u)) \end{prooftree} \qquad \begin{prooftree} (\bar x\colon\bar X)\;s(\bar x) \colon S^{\,\mathbb{c}} \justifies (\bar u\colon\bar X^{[1]})\;\mathsf{cod}(s^{[1]}(\bar u))=s(\mathsf{cod}(\bar u)) \end{prooftree} \end{gather}\tag{9}\]

Rule 12. \[\begin{prooftree} s \colon X \qquad t \colon X \justifies (s = t)^{[1]} \vdash s^{[1]}=t^{[1]} \end{prooftree} \qquad \begin{prooftree} s \colon X \qquad t \colon X \justifies s^{[1]}=t^{[1]} \vdash (s = t)^{[1]} \end{prooftree}\]

Rule 13. \[\begin{prooftree} s_1 \colon X_1 \quad \ldots \quad s_n \colon X_n \justifies R(s_1, \ldots, s_n)^{[1]} \vdash R^{[1]}(s^{[1]}_1, \ldots, s^{[1]}_n) \end{prooftree} \qquad \begin{prooftree} s_1 \colon X_1 \quad \ldots \quad s_n \colon X_n \justifies R^{[1]}(s^{[1]}_1, \ldots, s^{[1]}_n) \vdash R(s_1, \ldots, s_n)^{[1]} \end{prooftree}\]

Rule 14. \[\begin{prooftree} (\bar{x} \colon\bar{X}) \quad A_1, \ldots, A_n \vdash A \justifies (\bar{x} \colon\bar{X})^{[1]} \quad A_1^{[1]}, \ldots, A_n^{[1]} \vdash A^{[1]} \end{prooftree}\]

Rule 15. \[\begin{prooftree} s \colon S^{\,\mathbb{c}} \justifies A(s) \vdash A^{[1]}(\mathsf{id}_s) \end{prooftree} \qquad \begin{prooftree} s \colon(S^{\,\mathbb{c}})^{[2]} \justifies A^{[1]}( \mathsf{fst}(s) ), A^{[1]}( \mathsf{snd}(s) ) \vdash A^{[1]}( \mathsf{comp}(s) ) \end{prooftree}\]

Rule 16. \[\begin{prooftree} s \colon(S^{\,\mathbb{c} })^{[1]} \justifies A^{[1]}(s) \vdash A( \mathsf{dom}(s) ) \end{prooftree} \qquad \begin{prooftree} s \colon(S^{\,\mathbb{c} })^{[1]} \justifies A^{[1]}(s) \vdash A( \mathsf{cod}(s) ) \end{prooftree}\]

Rule 17. \[\begin{prooftree} s \colon(S^{\,\mathbb{c}})^{[1] \times [1]} \justifies A^{[1]}( \mathsf{pr}_u(s) ), A^{[1]}( \mathsf{pr}_d(s) ), A^{[1]}( \mathsf{pr}_l(s) ), A^{[1]}( \mathsf{pr}_r(s) ) \vdash A^{[1] \times [1]}( s ) \end{prooftree}\] Here, \(A^{[1] \times [1]}\equiv_{\mathrm{def}}(A^{[1]})^{[1]}\) with the usual convention that the first \([1]\) on the left-hand side corresponds to the most external \([1]\) on the right-hand side.

Rule 18. \[\begin{prooftree} (\bar{x} \colon\bar{X}) \quad A_1, \ldots A_n \vdash (\exists x \colon X) A(x) \justifies (\bar{x} \colon\bar{X})^{[1]} \quad A_1^{[1]}, \ldots A_n^{[1]} \vdash (\exists u \colon X^{[1]}) A^{[1]}(u) \mathrlap{.} \end{prooftree}\]

References↩︎

[1]
F. W. Lawvere, Functorial semantics of algebraic theories. Ph.D. thesis Columbia University, 1963.
[2]
J. Adámek, J. Rosickỳ, and E. M. Vitale, Algebraic theories: A categorical introduction to general algebra, vol. 184. Cambridge University Press, 2010.
[3]
M. Barr, “Representation of categories,” Journal of Pure and Applied Algebra, vol. 41, pp. 113–137, 1986.
[4]
M. Makkai, “Stone duality for first order logic,” Advances in Mathematics, vol. 65, pp. 97–170, 1987.
[5]
J. Lurie, “Ultracategories.” Available from https://www.math.ias.edu/~lurie/papers/Conceptual.pdf, 2018.
[6]
J. Adámek and J. Rosický, Locally presentable and accessible categories, vol. 189. Cambridge University Press, Cambridge, 1994, p. xiv+316.
[7]
M. Makkai and R. Paré, Accessible categories: The foundations of categorical model theory, vol. 104. Springer, 1989.
[8]
R. Blackwell, G. M. Kelly, and A. J. Power, “Two-dimensional monad theory,” Journal of Pure and Applied Algebra, vol. 59, pp. 1–41, 1989.
[9]
G. M. Kelly and I. L. Creurer, “On the monadicity over graphs of categories with limits,” Cahiers de Topologie et Géométrie Différentielle, vol. 38, pp. 179–191, 1997.
[10]
G. M. Kelly and S. Lack, “On the monadicity of categories with chosen colimits,” Theory and Applications of Categories, vol. 7, no. 7, pp. 148–170, 2000.
[11]
S. Lack, “A 2-categories companion,” in Towards higher categories, Springer, 2010, pp. 105–191.
[12]
G. J. Bird, G. M. Kelly, A. J. Power, and R. H. Street, “Flexible limits for 2-categories,” Journal of Pure and Applied Algebra, vol. 61, no. 1, pp. 1–27, 1989, doi: https://doi.org/10.1016/0022-4049(89)90065-0.
[13]
S. Lack, “Homotopy-theoretic aspects of \(2\)-monads,” Journal of Homotopy and Related Structures, vol. 2, no. 2, pp. 229–260, 2007.
[14]
J. Bourke, “Accessible aspects of 2-category theory,” Journal of Pure and Applied Algebra, vol. 225, no. 3, p. 106519, 2021, doi: https://doi.org/10.1016/j.jpaa.2020.106519.
[15]
I. D. Liberti and A. Osmond, “Bi-accessible and bipresentable 2-categories,” Applied Categorical Structures, vol. 33, no. 3, pp. 1–64, 2025.
[16]
S. Lack and J. Rosický, “Enriched weakness,” Journal of Pure and Applied Algebra, vol. 216, pp. 1807–1822, 2012.
[17]
J. Bourke, S. Lack, and L. Vokřı́nek, “Adjoint functor theorems for homotopically enriched categories,” Advances in Mathematics, vol. 412, p. 108812, 2023.
[18]
J. Rosický and G. Tendas, “Enriched concepts of regular logic,” The Journal of Symbolic Logic, 2025.
[19]
J. Rosickỳ and G. Tendas, “Towards enriched universal algebra,” Selecta Mathematica, vol. 32, no. 2, p. 21, 2026.
[20]
A. Kock, “Monads whose structures are adjoint to units,” Journal of Pure and Applied Algebra, vol. 104, pp. 41–53, 1993.
[21]
G. M. Kelly and S. Lack, “On property-like structures,” Theory and Applications of Categories, vol. 3, no. 9, pp. 213–250, 1997.
[22]
M. Makkai, “Generalised sketches as a framework for completeness theorem. Part I,” Journal of Pure and Applied Algebra, vol. 115, no. 1, pp. 49–79, 1997.
[23]
M. Makkai, “Generalised sketches as a framework for completeness theorem. Part II,” Journal of Pure and Applied Algebra, vol. 115, no. 2, pp. 197–212, 1997.
[24]
T. Uemura, “A general framework for the semantics of type theory,” Mathematical Structures in Computer Science, vol. 33, pp. 134–179, 2023.
[25]
B. Nordström, K. Petersson, and J. Smith, “Martin-Löf type theory,” in Handbook of logic in computer science, vol. 5, S. Abramsky, D. M. Gabbay, and T. S. E. Maibaum, Eds. Oxford University Press, 2001, pp. 1–37.
[26]
P. Aczel and N. Gambino, “The generalised type-theoretic intepretation of constructive set theory,” Journal of Symbolic Logic, vol. 71, no. 1, pp. 67–103, 2006.
[27]
P. Johnstone, Sketches of an elephant: A topos theory compendium. Oxford Logic Guides, 2002.
[28]
J. Bourke and R. Garner, “Two-dimensional regularity and exactness,” Journal of Pure and Applied Algebra, vol. 218, no. 7, pp. 1346–1371, 2014.
[29]
G. M. Kelly, “Elementary observations on 2-categorical limits,” Bulletin of the Australian Mathematical Society, vol. 39, pp. 301–317, 1989.
[30]
R. Street, “Two-dimensional sheaf theory,” Journal of Pure and Applied Algebra, vol. 23, pp. 251–270, 1982.
[31]
T. Univalent Foundations Program, Homotopy type theory: Univalent foundations of mathematics. Institute for Advanced Study: https://homotopytypetheory.org/book, 2013.
[32]
V. Voevodsky, “An experimental library of formalised Mathematics based on the univalent foundations,” Mathematical Structures in Computer Science, vol. 25, no. 5, pp. 1278–1294, 2015.
[33]
J. Lurie, Higher topos theory, vol. 170. Princeton University Press, Princeton, NJ, 2009, p. xviii+925.
[34]
F. Borceux and C. Quinteiro, “Enriched accessible categories,” Bulletin of the Australian Mathematical Society, vol. 54, no. 3, pp. 489–501, 1996.
[35]
S. Lack and G. Tendas, “Flat vs. Filtered colimits in the enriched context,” Advances in Mathematics, vol. 404, p. 108381, 2022.
[36]
S. Lack and G. Tendas, “Virtual concepts in the theory of accessible categories,” Journal of Pure and Applied Algebra, vol. 227, no. 2, p. 107196, 2023, doi: https://doi.org/10.1016/j.jpaa.2022.107196.
[37]
F. Borceux, Handbook of categorical algebra: Volume 2, categories and structures. Cambridge University Press, 1994.
[38]
F. Borceux and D. Bourn, Mal’cev, protomodular, homological and semi-abelian categories, vol. 566. Springer Science & Business Media, 2004.
[39]
M. Gran, “An introduction to regular categories,” in New perspectives in algebra, topology and categories, M. M. Clementino, A. Facchini, and M. Gran, Eds. Springer, 2021, pp. 113–145.
[40]
G. Janelidze, L. Márki, and W. Tholen, “Semi-abelian categories,” Journal of Pure and Applied Algebra, vol. 168, no. 2–3, pp. 367–386, 2002.
[41]
B. Jacobs, Categorical logic and type theory. Elsevier, 1999.
[42]
A. Giusto, “Fibrations with comprehensions and their completions,” Master Thesis, Università degli Studi di Genova, 2024.
[43]
A. Joyal, “Notes on clans and tribes.” arXiv:1710.10238, 2017.
[44]
P. Taylor, “Recursive domains, indexed category theory and polymorphism,” PhD thesis, University of Cambridge, 1987.
[45]
C. Hermida, “Representable multicategories,” Advances in Mathematics, vol. 151, no. 2, pp. 164–225, 2000.
[46]
S. Lack and G. Tendas, “Enriched regular theories,” Journal of Pure and Applied Algebra, vol. 224, no. 6, p. 106268, 2020, doi: https://doi.org/10.1016/j.jpaa.2019.106268.
[47]
R. Garner and S. Lack, “Lex colimits,” Journal of Pure and Applied Algebra, vol. 216, no. 6, pp. 1372–1396, 2012, doi: 10.1016/j.jpaa.2012.01.003.
[48]
M. Makkai, “A theorem on Barr-exact categories, with an infinitary generalization,” Annals of Pure and Applied Logic 47, pp. 225–268, 1990.

  1. Pseudo-monadicity of 2-categories closely related to that of clans [24], is subject of ongoing work of Bourke and Jelínek.↩︎