1 Introduction

Regular and Barr-exact categories were first considered in [5] as the ordinary counterpart of abelian categories, and have found many applications in different areas of category theory, logic, and algebra. In particular, free regular and Barr-exact completions of lex categories (that is, categories with finite limits) have always played a key role [13, 38, 52, 58]. Given a lex category \({{\mathcal {C}}}\), its free Barr-exact completion is determined by a Barr-exact category \({{\mathcal {C}}}_\text {ex}\) together with an embedding \(K:{{\mathcal {C}}}\hookrightarrow {{\mathcal {C}}}_\text {ex}\) for which left Kan extending along K induces an equivalence for any Barr-exact category \({{\mathcal {E}}}\)

$$\begin{aligned} \text {Lex}({{\mathcal {C}}},{{\mathcal {E}}})\simeq \text {Reg}({{\mathcal {C}}}_\text {ex},{{\mathcal {E}}}) \end{aligned}$$

between finite-limit preserving (lex) functors \({{\mathcal {C}}}\rightarrow {{\mathcal {E}}}\) and regular functors \({{\mathcal {C}}}_\text {ex}\rightarrow {{\mathcal {E}}}\); the latter being those lex functors which also preserves regular epimorphisms (or equivalently, coequalizers of kernel pairs). It was soon realized that such free completions could be considered even when the category \({\mathcal {C}}\) is not finitely complete; in that case, however, one needs to replace the notion of lex functor with some other concept.

In fact, Carboni–Vitale [16] and Hu [28] showed, independently, that free Barr-exact completions exist for any weakly lex category \({{\mathcal {C}}}\). A category is weakly lex if it has weak finite limits; a weak limit of a diagram \(H:{{\mathcal {D}}}\rightarrow {{\mathcal {C}}}\) is determined by an object \(\text {wlim} H\in {{\mathcal {C}}}\) together with a cone \(\delta :\Delta (\text {wlim}H)\rightarrow H\) such that each cone over H factors, not necessarily uniquely, through \(\delta \). Since the factorization is not unique, weak limits are not generally identified up to isomorphism. Weakly lex categories, and their exact completions, turned out to be important in various fields, including that of accessible categories [27, 57], categorical logic and type theory [8, 23, 46], homological algebra [26], triangulated categories [53], as well as categories of topological spaces [15].

In this context, lex functors in the universal property are replaced by left covering functors; that is, those \(F:{{\mathcal {C}}}\rightarrow {{\mathcal {E}}}\) such that for any weak limit \(\text {wlim}H\) of a finite diagram \(H:{{\mathcal {D}}}\rightarrow {{\mathcal {C}}}\), the comparison map

$$\begin{aligned} F(\text {wlim}H)\twoheadrightarrow \lim FH \end{aligned}$$

in \({{\mathcal {E}}}\) is a regular epimorphism. When \({{\mathcal {C}}}\) is actually lex, \(F:{{\mathcal {C}}}\rightarrow {{\mathcal {E}}}\) is left covering if and only if it is lex [16, Proposition 20]; while, if \({{\mathcal {C}}}\) is just weakly lex, but \({{\mathcal {E}}}=\textbf{Set}\), then \(F:{{\mathcal {C}}}\rightarrow \textbf{Set}\) is left covering if and only if it is flat (that is, its category of elements is filtered) [16, Corollary 23]. For general \({{\mathcal {C}}}\) and \({{\mathcal {E}}}\) we do not have a description in terms of preservation of actual limits or colimits. Moreover, the notion of left covering functor is the right choice only when considering free regular and Barr-exact completions; it is in fact unclear what concept should be used when considering, for instance, free lextensive or free pretopos completions of non-lex categories.

The main aim of this paper is to address this problem with the introduction of a notion of flatness for functors \(F:{{\mathcal {C}}}\rightarrow {{\mathcal {E}}}\) from any small category \({{\mathcal {C}}}\) into any lex category \({{\mathcal {E}}}\). We do that in the framework of lex colimits introduced by Garner and Lack [25], which captures not only the notions of regular and Barr-exact categories, but many others including (infinitary) lextensive, coherent, and adhesive categories as well as pretopoi.

Starting from a class of lex weights \(\Phi \), which represents the type of colimits involved in the definition, Garner and Lack introduce a notion of \(\Phi \)-exact category and provide a formal way to present the free \(\Phi \)-exact completion \(\Phi _l{{\mathcal {C}}}\) of a lex category \({{\mathcal {C}}}\). The category \(\Phi _l{{\mathcal {C}}}\) can be obtained as an iterated closure of the representables in \([{{\mathcal {C}}}^\text {op},\textbf{Set}]\) under finite limits and, what they name, \(\Phi \)-lex colimits. We note now that such construction makes sense also when \({{\mathcal {C}}}\) is not lex.

The universal property of the free \(\Phi \)-exact completions in this setting asserts that for any lex category \({{\mathcal {C}}}\) the category \(\Phi _l{{\mathcal {C}}}\) is \(\Phi \)-exact and left Kan extending along the inclusion \(K:{{\mathcal {C}}}\hookrightarrow \Phi _l{{\mathcal {C}}}\) induces an equivalence

$$\begin{aligned} \text {Lex}({{\mathcal {C}}},{{\mathcal {E}}})\simeq \Phi \text {-Ex}(\Phi _l{{\mathcal {C}}},{{\mathcal {E}}}) \end{aligned}$$

for any \(\Phi \)-exact category \({{\mathcal {E}}}\). The first step toward a generalization of free \(\Phi \)-exact completions for a non-lex \({{\mathcal {C}}}\), is then to understand how to replace lex functors in the universal property above. When \({{\mathcal {E}}}=\textbf{Set}\), a functor \(F:{{\mathcal {C}}}\rightarrow \textbf{Set}\), for a lex \({{\mathcal {C}}}\), is lex if and only if it is flat. As mentioned above, also left covering functors, from a weakly lex \({{\mathcal {C}}}\) into \(\textbf{Set}\), are the same as flat functors. Therefore, the general notion we are looking for is something that, when restricted to \(\textbf{Set}\)-valued presheaves, gives back flatness.

The concept of flatness originates in the theory of modules with the work of Serre [54], and has since become an important tool first in the theory of additive categories [49], and then in many other areas of category theory [2, 9, 20, 56]. There are several equivalent ways to express flatness. Traditionally one says that \(F:{{\mathcal {C}}}\rightarrow \textbf{Set}\) is flat if and only if its category of elements \(\text {El}(F)\) —based on \({{\mathcal {C}}}^\text {op}\)— is filtered. This is well known to be equivalent to requiring that the left Kan extension

$$\begin{aligned} \text {Lan}_YF:[{{\mathcal {C}}}^\text {op},\textbf{Set}]\longrightarrow \textbf{Set}, \end{aligned}$$

of F along the Yoneda embedding, preserves finite limits of representable. Using this fact and the pointwise definition of Kan extension, we can generalize the concept to functors with codomain any lex category \({{\mathcal {E}}}\) in place of \(\textbf{Set}\) as follows.

Definition 2.1

(\({{\mathcal {V}}}=\textbf{Set}\)) We say that a functor \(F:{{\mathcal {C}}}\rightarrow {{\mathcal {E}}}\), into a lex category \({{\mathcal {E}}}\), is flat if and only if for any finite diagram \(H:{{\mathcal {D}}}\rightarrow {{\mathcal {C}}}\), the colimit

$$\begin{aligned} {\text {colim}}\left( \nicefrac {{{\mathcal {C}}}}{H}\xrightarrow {\ \pi \ }{{\mathcal {C}}}\xrightarrow {\ F\ }{{\mathcal {E}}}\right) \end{aligned}$$

exists in \({{\mathcal {E}}}\) and is isomorphic, through the comparison map, to \(\lim FH\).

Here, \(\nicefrac {{{\mathcal {C}}}}{H}\) is the category of cones \(\Delta C\rightarrow H\) over H; this can be identified with the category of elements of the functor \(\lim YH:{{\mathcal {C}}}^\text {op}\rightarrow \textbf{Set}\). It follows that, when \({{\mathcal {E}}}=\textbf{Set}\), the colimit above defines the value of \(\text {Lan}_YF\) at \(\lim YH\), so that the isomorphism requested in the definition above is simply asking that

$$\begin{aligned} \text {Lan}_YF(\lim YH)\cong \lim FH \end{aligned}$$

and we recover the usual notion of flatness. Moreover, we shall see that a functor with lex domain is flat if and only if it is lex (Proposition 2.10).

Now it is possible to define free \(\Phi \)-exact completions of non-lex categories: we say that \(K:{{\mathcal {C}}}\hookrightarrow {{\mathcal {D}}}\) exhibits \({{\mathcal {D}}}\) as the free \(\Phi \)-exact completion of \({{\mathcal {C}}}\) if left Kan extending along K induces an equivalence

$$\begin{aligned} \text {Flat}({{\mathcal {C}}},{{\mathcal {E}}})\simeq \Phi \text {-Ex}({{\mathcal {D}}},{{\mathcal {E}}}) \end{aligned}$$

for any \(\Phi \)-exact category \({{\mathcal {E}}}\). Such completions need not exist in general. For instance, when \(\Phi =\emptyset \) the free \(\emptyset \)-exact completion of \({{\mathcal {C}}}\) exists if and only if \({{\mathcal {C}}}\) is lex (Remark 3.10). Our main theorem below will provide necessary and sufficient conditions for the free \(\Phi \)-exact completion to exist:

Theorem 3.13

(\({{\mathcal {V}}}=\textbf{Set}\)) The following are equivalent for a small category \({{\mathcal {C}}}\):

  1. (1)

    the free \(\Phi \)-exact completion of \({{\mathcal {C}}}\) exists;

  2. (2)

    \(K:{{\mathcal {C}}}\hookrightarrow \Phi _l{{\mathcal {C}}}\) exhibits \(\Phi _l{{\mathcal {C}}}\) as the free \(\Phi \)-exact completion of \({{\mathcal {C}}}\);

  3. (3)

    \(\Phi ^\diamond [{{\mathcal {C}}}]\) has finite limits of diagrams landing in \({{\mathcal {C}}}\).

By (2), it follows that the free \(\Phi \)-exact completion of \({{\mathcal {C}}}\), when it exists, coincides with the category \(\Phi _l{{\mathcal {C}}}\) introduced before. The category \(\Phi ^\diamond [{{\mathcal {C}}}]\) in (3) will be defined in Sect. 3 as a particular full subcategory of \([{{\mathcal {C}}}^\text {op},\textbf{Set}]\) obtained by taking wlex colimits, a generalization of lex colimits to the flat setting. Finite limits in \(\Phi ^\diamond [{{\mathcal {C}}}]\) should be understood as virtual finite limits in \({{\mathcal {C}}}\) in the sense of [42].

When considering our motivating example given by the class of lex weights \(\Phi _\text {ex}\) for Barr-exact categories (or \(\Phi _\text {reg}\) for regular categories), the theorem above implies that the free Barr-exact completion of \({{\mathcal {C}}}\) exists if and only if \({{\mathcal {C}}}\) has weak finite limits; and that a functor \(F:{{\mathcal {C}}}\rightarrow {{\mathcal {E}}}\), from a weakly lex \({{\mathcal {C}}}\) to a Barr-exact category \({{\mathcal {E}}}\), is flat if and only if it is left covering (see Sect. 4.1). Thus we recover the results of [16, 28] as part of the framework of lex colimits.

Outline. The main results of this paper will be carried out in the context of categories enriched over a locally finitely presentable and symmetric monoidal closed category.

In Sect. 2 we introduce the notion of flat \({{\mathcal {V}}}\)-functor and prove some basic properties which will be used in Sect. 3, where we introduce free \(\Phi \)-exact completions in the flat world and prove the existence theorem (Theorem 3.13). Examples are discussed in Sect. 4; beside free regular and Barr-exact completions of small weakly lex categories, we describe free infinitary lextensive completions of small categories with finite multilimits, and free pretopos completions of small categories with finite fc-limits [6].

In Sect. 5 we prove that the ultraproducts involved in the context of free pretopos and lextensive completions satisfy an universal property, despite not being the usual categorical ultraproducts computed in the presence of products and filtered colimits. Finally, in Appendix A we give a description of the categories of models of lextensive categories and pretopoi in terms of, respectively, finite-cone orthogonality and finite-cone injectivity conditions.

2 Flatness

In this section we generalize the notion of flatness from \({{\mathcal {V}}}\)-functors taking value in \({{\mathcal {V}}}\) to \({{\mathcal {V}}}\)-functors \(F:{{\mathcal {C}}}\rightarrow {{\mathcal {E}}}\) taking value in a (possibly large and) lex \({{\mathcal {V}}}\)-category \({{\mathcal {E}}}\). For that, we fix a symmetric monoidal closed category \({{\mathcal {V}}}=({{\mathcal {V}}}_0,\otimes ,I)\) as our base of enrichment and follow [36] for standard notations, particularly involving weighted limits and colimits. As in [25], we further assume that \({{\mathcal {V}}}_0\) is locally finitely presentable as a closed category in the sense of Kelly [36]; meaning that \({{\mathcal {V}}}_0\) is locally finitely presentable and the finitely presentable objects are closed under tensor product and contain the unit.

In this context we can talk about finite weighted limits [36, Section 4]. A weight \(M:{{\mathcal {C}}}^\text {op}\rightarrow {{\mathcal {V}}}\) is called finite if \({{\mathcal {C}}}\) has finitely many objects, and \({{\mathcal {C}}}(A,B)\) and MA are finitely presentable in \({{\mathcal {V}}}_0\) for any \(A,B\in {{\mathcal {C}}}\). Existence and preservation of finite weighted limits is equivalent to that of finite conical limits and powers by finitely presentable objects. In short we will say that a \({{\mathcal {V}}}\)-category (resp. \({{\mathcal {V}}}\)-functor) is lex if it has (resp. preserves) finite weighted limits.

Then, following Kelly, we define \(F:{{\mathcal {C}}}\rightarrow {{\mathcal {V}}}\) to be flat if \({{\mathcal {C}}}\) is small and the \({{\mathcal {V}}}\)-functor

$$\begin{aligned} F*-:[{{\mathcal {C}}}^\text {op},{{\mathcal {V}}}]\rightarrow {{\mathcal {V}}}, \end{aligned}$$

taking colimits weighted by F, is lex. In other words, if F-weighted colimits commute in the base \({{\mathcal {V}}}\) with finite limits. By [41, Proposition 3.4], for F to be flat, it is enough that \(F*-\) preserves just the finite limits of representables.

Unpacking the definition, this means that \(F:{{\mathcal {C}}}\rightarrow {{\mathcal {V}}}\) is flat if and only if for any finite weight \(N:{{\mathcal {D}}}\rightarrow {{\mathcal {V}}}\) and any diagram \(H:{{\mathcal {D}}}\rightarrow {{\mathcal {C}}}\), the comparison map below is an isomorphism.

$$\begin{aligned} F*\{N,YH\} \xrightarrow {\ \cong \ } \{N,FH\} \end{aligned}$$

With \(Y:{{\mathcal {C}}}\hookrightarrow [{{\mathcal {C}}}^\text {op},{{\mathcal {V}}}]\) we shall always denote the Yoneda embedding.

Now, to generalize the notion of flatness we need to replace \({{\mathcal {V}}}\), in the codomain of F, with a lex category \({{\mathcal {E}}}\). In this context, however, colimits weighted by F are not well defined. To avoid this problem, by [35], we can replace \(F*\{N,YH\}\) with \(\{N,YH\}*F\) in the isomorphism above, so that \(\{N,YH\}:{{\mathcal {C}}}^\text {op}\rightarrow {{\mathcal {V}}}\) is now considered as a weight. Therefore we can extend the definition of flatness as follows:

Definition 2.1

We say that a \({{\mathcal {V}}}\)-functor \(F:{{\mathcal {C}}}\rightarrow {{\mathcal {E}}}\), from a small \({{\mathcal {V}}}\)-category \({{\mathcal {C}}}\) into a lex \({{\mathcal {V}}}\)-category \({{\mathcal {E}}}\), is flat if for any finite weight \(N:{{\mathcal {D}}}\rightarrow {{\mathcal {V}}}\) and any diagram \(H:{{\mathcal {D}}}\rightarrow {{\mathcal {C}}}\), the colimit \(\{N,YH\}*F\) exists in \({{\mathcal {E}}}\) and the comparison map

$$\begin{aligned} \{N,YH\}*F\xrightarrow {\ \cong \ } \{N,FH\} \end{aligned}$$

is an isomorphism.

It is clear from the observation above, that when \({{\mathcal {E}}}={{\mathcal {V}}}\) we recover Kelly’s notion of flatness.

In the dual of [41, Definition 4.15], the object \(\{N,YH\}\) of \([{{\mathcal {C}}}^\text {op},{{\mathcal {V}}}]\) is called the virtual limit of H weighted by N. Under this notation, we can then interpret the colimit \(\{N,YH\}*F\) as the image of such virtual limit through F. Thus, one can say that \(F:{{\mathcal {C}}}\rightarrow {{\mathcal {E}}}\) is flat if F sends finite virtual limits in \({{\mathcal {C}}}\) to actual limits in \({{\mathcal {E}}}\).

Remark 2.2

When \({{\mathcal {V}}}=\textbf{Set}\) and weighted finite limits are just the usual finite limits, a functor \(F:{{\mathcal {C}}}\rightarrow {{\mathcal {E}}}\) is flat if and only if for any finite diagram \(H:{{\mathcal {D}}}\rightarrow {{\mathcal {C}}}\), the colimit \(\lim YH*F\) exists in \({{\mathcal {E}}}\) and the comparison map induces an isomorphism

$$\begin{aligned} (\lim YH)*F\cong \lim FH, \end{aligned}$$

which can be rewritten as

$$\begin{aligned} {\text {colim}}\left( {\nicefrac {{{\mathcal {C}}}}{H}}\xrightarrow {\ \pi \ }{{\mathcal {C}}}\xrightarrow {F}{{\mathcal {E}}}\right) \cong \lim FH \end{aligned}$$

since, as mentioned in the introduction, the category \(\nicefrac {{{\mathcal {C}}}}{H}\) of cones over H can also be described as the category of elements \(\text {El}(\lim YH)\).

Remark 2.3

For a general \({{\mathcal {V}}}\), the simplification above is not possible, since we cannot reduce ourselves to conical colimits. However, using that the finite weighted limit \(\{N,YH\}\) is computed pointwise in \({{\mathcal {V}}}\), for any \(C\in {{\mathcal {C}}}\) we have an isomorphism

$$\begin{aligned} \{N,YH\}(C)\cong [{{\mathcal {D}}},{{\mathcal {V}}}](N,{{\mathcal {C}}}(C,H-)), \end{aligned}$$

which says that the weight \(\{N,YH\}\), determining the colimit, is given pointwise by taking the object of cylinders \(N\Rightarrow {{\mathcal {C}}}(C,H-)\) in \({{\mathcal {C}}}\).

Remark 2.4

One should not confuse the notion introduced above with the following: we say that \(F:{{\mathcal {C}}}\rightarrow {{\mathcal {E}}}\) is representably flat if \({{\mathcal {E}}}(E,F-):{{\mathcal {C}}}\rightarrow {{\mathcal {V}}}\) is flat for any \(E\in {{\mathcal {E}}}\); this notion was considered for instance in [10, Section 6.3] where it is called just flatness.

Even when \({{\mathcal {V}}}={{\mathcal {E}}}=\textbf{Set}\), while our notion coincides with standard flatness, a functor \(F:{{\mathcal {C}}}\rightarrow \textbf{Set}\) is representably flat if and only if the power \(F^J\) is flat for any set J. Thus, if \({{\mathcal {C}}}^\text {op}\) is not filtered (so that the terminal functor \(\Delta 1:{{\mathcal {C}}}\rightarrow \textbf{Set}\) is not flat) then there are no representably flat functors \(F:{{\mathcal {C}}}\rightarrow \textbf{Set}\) (since \(F^\emptyset \cong \Delta 1\)).

Remark 2.5

Other general notions of flatness where previously studied (in the ordinary context) by Karazeris [32] for functors \(F:{{\mathcal {C}}}\rightarrow {{\mathcal {E}}}\) into a category \({{\mathcal {E}}}\) with a chosen Grothendieck topology j; this relies on F satisfying three filteredness conditions in the internal logic of \(({{\mathcal {E}}},j)\). Using this notion of j-flatness, which was later thoroughly studied by Shulman [55], it is then possible to capture regular, exact, lextensive, and pretopos completions of non-lex categories — by choosing in each case the relevant topology.

However, unlike the notions of [32, 55], our flat functors do not depend on the choice of a Grothendieck topology on the codomain category, and thus provides the same notion for all the different examples mentioned above (see Sects. 4.14.3, and 4.4).

Remark 2.6

As pointed out in the definition, our flat \({{\mathcal {V}}}\)-functors \({{\mathcal {C}}}\rightarrow {{\mathcal {E}}}\) will always have a small domain \({{\mathcal {C}}}\); this is because the collection of all presheaves \(F:{{\mathcal {C}}}^\text {op}\rightarrow {{\mathcal {V}}}\) forms the class of objects of a \({{\mathcal {V}}}\)-category \([{{\mathcal {C}}}^\text {op},{{\mathcal {V}}}]\) only when \({{\mathcal {C}}}\) is small (while that does not happen in general for a large \({{\mathcal {C}}}\)). However, the definition, as well as all the results of this paper involving flatness, can be extended to any \({{\mathcal {V}}}\)-category \({{\mathcal {C}}}\) arguing as below.

Given any (possibly large) \({{\mathcal {V}}}\)-category \({{\mathcal {C}}}\), we can consider an universe enlargement \({\mathbb {V}}\) of \({{\mathcal {V}}}\) (as in [35, 2.6]) for which \({{\mathcal {C}}}\) is a small \({\mathbb {V}}\)-category (meaning that \({\mathbb {V}}\) has limits and colimits of size greater than the cardinality of \(\text {Ob}({{\mathcal {C}}})\)). This way the notion of flat \({\mathbb {V}}\)-functor out of \({{\mathcal {C}}}\) is well defined and all the results below still apply since we can see every \({{\mathcal {V}}}\)-category as a \({\mathbb {V}}\)-category.

Given \(F:{{\mathcal {C}}}\rightarrow {{\mathcal {E}}}\), with \({{\mathcal {E}}}\) lex, the left Kan extension \(\text {Lan}_YF\) need not exist; thus we cannot express flatness in the same way defined by Kelly for presheaves. To solve this we need to consider a codomain restriction of the Yoneda embedding to a suitable subcategory of \([{{\mathcal {C}}}^\text {op},{{\mathcal {V}}}]\):

Definition 2.7

Given a small \({{\mathcal {V}}}\)-category \({{\mathcal {C}}}\) we denote by \({{\mathcal {C}}}_l\) the full subcategory of \([{{\mathcal {C}}}^\text {op},{{\mathcal {V}}}]\) spanned by the finite limits of representables, and by \(Z:{{\mathcal {C}}}\hookrightarrow {{\mathcal {C}}}_l\) the inclusion.

Since the Yoneda embedding preserves limits, \({{\mathcal {C}}}={{\mathcal {C}}}_l\) whenever \({{\mathcal {C}}}\) is lex. We do not know if \({{\mathcal {C}}}_l\) is actually closed in \([{{\mathcal {C}}}^\text {op},{{\mathcal {V}}}]\) under finite limits.

Then the notion of flatness can be rephrased as follows:

Proposition 2.8

A \({{\mathcal {V}}}\)-functor \(F:{{\mathcal {C}}}\rightarrow {{\mathcal {E}}}\) , with \({{\mathcal {C}}}\) small and \({{\mathcal {E}}}\) lex, is flat if and only if \(\text {Lan}_ZF:{{\mathcal {C}}}_l\rightarrow {{\mathcal {E}}}\) exists and preserves finite limits of diagrams from \({{\mathcal {C}}}\).

Proof

Note that to give a finite limit of the form \(\{N,YH\}\) in \([{{\mathcal {C}}}^\text {op},{{\mathcal {V}}}]\) is the same as giving an object of \({{\mathcal {C}}}_l\), and in that case \(\text {Lan}_ZF(\{N,YH\})\) is by definition the colimit \(\{N,YH\}*F \). Thus the isomorphisms involved in the definition of flatness hold if and only if \(\text {Lan}_ZF\) exists preserves finite limits of objects from \({{\mathcal {C}}}\). \(\square \)

Remark 2.9

When \({{\mathcal {E}}}\) is cocomplete, so that the colimit \(\{N,YH\}*F\) always exists, the condition above is saying that the \({{\mathcal {V}}}\)-functor

$$\begin{aligned} \text {Lan}_YF\cong -*F:[{{\mathcal {C}}}^\text {op},{{\mathcal {V}}}]\rightarrow {{\mathcal {E}}}\end{aligned}$$

preserves finite limits of representables.

A few properties that will be used in the next sections are:

Proposition 2.10

Let \({{\mathcal {C}}}\) be a small \({{\mathcal {V}}}\)-category. Then

  1. (1)

    every representable \({{\mathcal {C}}}(C,-)\) is flat;

  2. (2)

    if \({{\mathcal {C}}}\) is lex, \(F:{{\mathcal {C}}}\rightarrow {{\mathcal {E}}}\) is flat if and only if it is lex;

  3. (3)

    if \({{\mathcal {E}}}\) is lex and \(J:{{\mathcal {C}}}\hookrightarrow {{\mathcal {E}}}\) is fully faithful and dense, then J is flat.

Proof

  1. (1).

    If \(C\in {{\mathcal {C}}}\) then \(\text {Lan}_Z{{\mathcal {C}}}(C,-)\cong {{\mathcal {C}}}_l(ZC,-)\), and \({{\mathcal {C}}}_l(ZC,-)\) preserves any existing limits; thus \({{\mathcal {C}}}(C,-)\) is flat.

  2. (2).

    If \({{\mathcal {C}}}\) is lex, then \({{\mathcal {C}}}={{\mathcal {C}}}_l\) and \(\text {Lan}_ZF\cong F\). Thus F is flat if and only it it is lex.

  3. (3).

    If \({{\mathcal {E}}}\) is lex and \(J:{{\mathcal {C}}}\rightarrow {{\mathcal {E}}}\) is fully faithful and dense, then the Yoneda embedding \(Y:{{\mathcal {C}}}\rightarrow [{{\mathcal {C}}}^\text {op},{{\mathcal {V}}}]\) factors through J and \({{\mathcal {E}}}\) is identified with a full subcategory of \([{{\mathcal {C}}}^\text {op},{{\mathcal {V}}}]\) containing the representables. Because of this, and since \({{\mathcal {E}}}\) is lex, the inclusion of \({{\mathcal {E}}}\) in \([{{\mathcal {C}}}^\text {op},{{\mathcal {V}}}]\) preserves finite limits; thus \({{\mathcal {E}}}\) contains \({{\mathcal {C}}}_l\) as well. It is now easy to see that \(\text {Lan}_ZJ\) is isomorphic to the inclusion of \({{\mathcal {C}}}_l\) into \({{\mathcal {E}}}\), which preserves any existing limit. It follows that J is flat.

\(\square \)

We next recall from [25] the notion of small-exact \({{\mathcal {V}}}\)-category. Below we denote by \({{\mathcal {P}}}{{\mathcal {D}}}\) the free cocompletion of a category \({{\mathcal {D}}}\) under all colimits. When \({{\mathcal {D}}}\) is small then \({{\mathcal {P}}}{{\mathcal {D}}}=[{{\mathcal {D}}}^\text {op},{{\mathcal {V}}}]\). Moreover \({{\mathcal {P}}}{{\mathcal {D}}}\) is lex whenever \({{\mathcal {D}}}\) is [18, Remark 6.6].

Definition 2.11

We say that a \({{\mathcal {V}}}\)-category \({{\mathcal {T}}}\) is a small-exact if it is a left exact localization of \({{\mathcal {P}}}{{\mathcal {D}}}\) for some lex category \({{\mathcal {D}}}\). In other words, \({{\mathcal {T}}}\) is small-exact if there exists a fully faithful \(J:{{\mathcal {T}}}\hookrightarrow {{\mathcal {P}}}{{\mathcal {D}}}\), into a lex \({{\mathcal {D}}}\), which has a lex left adjoint.

By construction every small-exact \({{\mathcal {V}}}\)-category is cocomplete. If \({{\mathcal {D}}}\) above can be chosen to be small, then \({{\mathcal {T}}}\) is called a \({{\mathcal {V}}}\)-topos in [25].

The following can be seen as a generalization of [40, Lemma 2.7] and [41, Proposition 3.4] to our context.

Proposition 2.12

Let \({{\mathcal {T}}}\) be small-exact and \({{\mathcal {C}}}\) be a small \({{\mathcal {V}}}\)-category. A \({{\mathcal {V}}}\)-functor \(F:{{\mathcal {C}}}\rightarrow {{\mathcal {T}}}\) is flat if and only if

$$\begin{aligned} \text {Lan}_YF:[{{\mathcal {C}}}^\text {op},{{\mathcal {V}}}]\longrightarrow {{\mathcal {T}}}\end{aligned}$$

is lex. If in addition we are given \(J:{{\mathcal {C}}}\rightarrow {{\mathcal {B}}}\) into a small \({{\mathcal {V}}}\)-category \({{\mathcal {B}}}\) , the following hold:

  1. (a)

    if F is flat then also \(\text {Lan}_J F \) is;

  2. (b)

    if J is fully faithful and \(\text {Lan}_{J} F \) is flat then F is flat as well.

Proof

Given a \({{\mathcal {V}}}\)-functor \(J:{{\mathcal {C}}}\rightarrow {{\mathcal {B}}}\) we can consider the following triangle

figure a

where \(Y'\) is the Yoneda embedding for \({{\mathcal {B}}}\). This commutes since \(\text {Lan}_YF\circ [J^\text {op},{{\mathcal {V}}}]\) is cocontinuous and its restriction to \({{\mathcal {B}}}\) coincides with \(\text {Lan}_JF\). Moreover, if J is fully faithful, the isomorphisms below hold.

$$\begin{aligned} \text {Lan}_YF&\cong \text {Lan}_YF\circ \text {id}_{[{{\mathcal {B}}},{{\mathcal {V}}}]}\nonumber \\&\cong \text {Lan}_YF\circ [J^\text {op},{{\mathcal {V}}}]\circ \text {Ran}_{J^\text {op}}\nonumber \\&\cong (\text {Lan}_{Y'}(\text {Lan}_JF))\circ \text {Ran}_{J^\text {op}} \end{aligned}$$
(1)

It is clear that if \(\text {Lan}_YF\) preserves all finite limits then F is flat. Conversely, assume that \(F:{{\mathcal {C}}}\rightarrow {{\mathcal {T}}}\) is flat, so that \(\text {Lan}_YF\) preserves finite limits of representables. Consider \({{\mathcal {B}}}:=\text {Fin}^\dagger {{\mathcal {C}}}\), the free completion of \({{\mathcal {C}}}\) under finite limits, with \(J:{{\mathcal {C}}}\rightarrow {{\mathcal {B}}}\) the inclusion. We want to prove that \(\text {Lan}_JF\) is lex (and hence flat). Note first that \(\text {Lan}_JF\) preserves finite limits of diagrams landing in \({{\mathcal {C}}}\): take a finite weight \(N :{{\mathcal {D}}}\rightarrow {{\mathcal {V}}}\) and a diagram \(H:{{\mathcal {D}}}\rightarrow {{\mathcal {C}}}\) then

$$\begin{aligned} (\text {Lan}_JF)\{ N ,JH\}&:= {{\mathcal {B}}}(J-,\{ N ,JH\})*F\nonumber \\&\cong \{ N \square ,{{\mathcal {C}}}(-,H\square )\}*F-\nonumber \\&\cong \{ N \square , {{\mathcal {C}}}(-,H\square )*F- \}\\&\cong \{ N , F \circ H\}\nonumber \\&\cong \{ N , (\text {Lan}_JF)\circ JH\}\nonumber \end{aligned}$$
(2)

where (2) follows from the fact that \(-* F\cong \text {Lan}_YF\) preserves finite limits of representables.

Now, every object of \({{\mathcal {B}}}\) is a J-absolute finite limit of a diagram landing in \({{\mathcal {C}}}\); therefore \(\text {Lan}_JF\) preserves all the J-absolute limits of a chosen codensity presentation of J. By [17, Proposition 2.2] we then have \(\text {Lan}_JF\cong \text {Ran}_JF\). But \({{\mathcal {B}}}\) is the free completion of \({{\mathcal {C}}}\) under finite limits, therefore the functor \(\text {Ran}_JF\) is lex by the universal property of such completion. This means that \(\text {Lan}_JF\) is lex. To conclude then note that \(\text {Lan}_{Y'}(\text {Lan}_JF)\) is also lex by [25, Proposition 2.4(5)]; thus \(\text {Lan}_YF\) is lex since it can be expressed as the composition of lex \({{\mathcal {V}}}\)-functors by (1). This proves the first part of the statement.

The proof of (a) and (b) now follows easily from what just proved and the initial arguments of the proof. If F is flat then \(\text {Lan}_YF\) is lex; thus also \(\text {Lan}_{Y'}(\text {Lan}_JF)\) is lex (by the commutativity of the triangle above), and hence \(\text {Lan}_JF\) is flat. Conversely, if J is fully faithful and \(\text {Lan}_JF\) is flat, then \(\text {Lan}_YF\) is lex being the composite of two lex functors by (1), so that F is flat too. \(\square \)

3 Free \(\Phi \)-exact completions

Consider now a class \(\Phi \) of lex-weights as in [25]; that is, a class \(\Phi \) of weights of the form \(M:{{\mathcal {C}}}^\text {op}\rightarrow {{\mathcal {V}}}\) with \({{\mathcal {C}}}\) a small lex \({{\mathcal {V}}}\)-category. By a \(\Phi \)-lex colimit in a \({{\mathcal {V}}}\)-category \({{\mathcal {E}}}\) we mean a colimit of the form \(M*H\) where \(M:{{\mathcal {C}}}^\text {op}\rightarrow {{\mathcal {V}}}\) is in \(\Phi \) and \(H:{{\mathcal {C}}}\rightarrow {{\mathcal {E}}}\) is lex.

For each lex \({{\mathcal {V}}}\)-category \({{\mathcal {E}}}\), we define the \({{\mathcal {V}}}\)-category \(\Phi _l{{\mathcal {E}}}\) as the closure of the representables in \({{\mathcal {P}}}{{\mathcal {E}}}\) under finite limits and \(\Phi \)-lex-colimits. Then [25] (but not us) defines a \({{\mathcal {V}}}\)-category \({{\mathcal {E}}}\) to be \(\Phi \)-exact if the inclusion \({{\mathcal {E}}}\hookrightarrow \Phi _l{{\mathcal {E}}}\) has a lex left adjoint. Because of the nature of our proofs, the definition of \(\Phi \)-exact \({{\mathcal {V}}}\)-category that we consider is slightly stronger than the one just mentioned; see below and Remark 3.2.

Definition 3.1

We say that a \({{\mathcal {V}}}\)-category \({{\mathcal {E}}}\) is \(\Phi \)-exact if it can be identified with a full subcategory of a small-exact \({{\mathcal {V}}}\)-category \({{\mathcal {T}}}\) which is closed under finite limits and \(\Phi \)-lex colimits. A \(\Phi \)-exact \({{\mathcal {V}}}\)-functor is one that preserves finite limits and \(\Phi \)-lex colimits.

By [25, Theorem 4.1], if a \({{\mathcal {V}}}\)-category \({{\mathcal {E}}}\) is \(\Phi \)-exact in the sense defined above, then is also \(\Phi \)-exact in the sense of [25], and the two notions coincide whenever \({{\mathcal {E}}}\) is small.

Remark 3.2

It is worth saying a few words on why we need to consider the notion of \(\Phi \)-exactness given above rather than the one of Garner and Lack.

In the proof of the main theorem of this section (Theorem 3.13) we need to show that the left Kan extension of a flat \(F:{{\mathcal {C}}}\rightarrow {{\mathcal {E}}}\), into a \(\Phi \)-exact \({{\mathcal {E}}}\), along the inclusion \({{\mathcal {C}}}\hookrightarrow \Phi _l{{\mathcal {C}}}\) is a lex \({{\mathcal {V}}}\)-functor. The way we achieve this, is by proving it first for any small-exact \({{\mathcal {V}}}\)-category \({{\mathcal {T}}}\) (using Proposition 2.12), and then by extending it to any \({{\mathcal {E}}}\) using an embedding as in the definition above. This makes such an embedding a key ingredient of our proof.

We should point out, however, that the embedding of Definition 3.1 consists merely in a smallness assumption on our \(\Phi \)-exact \({{\mathcal {V}}}\)-categories. Indeed, the \(\Phi \)-exact embedding into a small-exact \({{\mathcal {T}}}\) can be obtained also for any \(\Phi \)-exact \({{\mathcal {V}}}\)-category \({{\mathcal {E}}}\) in the sense of [25] if we allow \({{\mathcal {T}}}\) to be a small-exact \({\mathbb {V}}\)-category for an appropriate universe enlargement \({\mathbb {V}}\) of \({{\mathcal {V}}}\). This would in fact be enough for our results.

The universe enlargement can be chosen as follows. Since \({{\mathcal {V}}}_0\simeq \text {Lex}({{\mathcal {V}}}^\text {op}_{0f},\textbf{Set})\), where \({{\mathcal {V}}}_{0f}\) is the full subcategory of \({{\mathcal {V}}}_0\) spanned by its finitely presentable objects, then one can define \({\mathbb {V}}_0:=\text {Lex}({{\mathcal {V}}}^\text {op}_{0f},\textbf{SET})\) for a larger universe of sets \(\textbf{SET}\) for which \({{\mathcal {E}}}\) is \(\textbf{SET}\)-small (the monoidal structure on \({\mathbb {V}}\) is induced by that of \({{\mathcal {V}}}\)). Then \({\mathbb {V}}\)-finite limits are the same as \({{\mathcal {V}}}\)-finite limits (since \({{\mathcal {V}}}_f\simeq {\mathbb {V}}_f\) by construction), Proposition 2.12 still applies in this larger setting, and the \({\mathbb {V}}\)-small version of [25, Theorem 4.1] provides an embedding of \({{\mathcal {E}}}\) into a small-exact \({\mathbb {V}}\)-category \({{\mathcal {T}}}\).

Remark 3.3

In [25] a class of lex weights \(\Phi \) is called small if \(\Phi _l{{\mathcal {E}}}\) is small for any small and lex \({{\mathcal {E}}}\). Without considering universe enlargements, we shall see that when \(\Phi \) is small (as it is in many of our examples), the main theorem of this section applies not only to our notion of \(\Phi \)-exact \({{\mathcal {V}}}\)-category, but also to that of [25]. See Theorem 3.14.

For any small and lex \({{\mathcal {V}}}\)-category \({{\mathcal {C}}}\) the \({{\mathcal {V}}}\)-category \(\Phi _l{{\mathcal {C}}}\) is \(\Phi \)-exact and turns out to be the free \(\Phi \)-exact completion of \({{\mathcal {C}}}\) in the sense of [25, Proposition 3.8].

We want to generalize this free completion to the setting where \({{\mathcal {C}}}\) is not lex, but satisfies some weaker finite completeness conditions. First note that the definition of \(\Phi _l{{\mathcal {C}}}\), as the closure of representable in \([{{\mathcal {C}}}^\text {op},{{\mathcal {V}}}]\) under finite limits and \(\Phi \)-lex colimits, makes sense for any small \({{\mathcal {V}}}\)-category \({{\mathcal {C}}}\); and in that case \(\Phi _l{{\mathcal {C}}}\) is still \(\Phi \)-exact by construction.

Definition 3.4

Let \(M:{{\mathcal {C}}}^\text {op}\rightarrow {{\mathcal {V}}}\) be a weight. We say that a lex \({{\mathcal {V}}}\)-category \({{\mathcal {E}}}\) has M-wlex colimits if it has all weighted colimits of the form \(M*H\) where \(H:{{\mathcal {C}}}\rightarrow {{\mathcal {E}}}\) is flat.

Remark 3.5

Following the notation of [25], it would have been natural to call these M-flat colimits, rather than M-wlex. However, that notation is already used in the literature to denote those colimits that commute with M-weighted limits in \({{\mathcal {V}}}\); for instance, flat presheaves coincide with the weights which are M-flat with respect to any finite weight M. This would have resulted in a confusing notation; therefore we opted for something that recalls our principal application to the case of weakly lex categories (Sect. 4.1).

Recall that the saturation \(\Phi ^*\) of \(\Phi \), in the lex setting, is defined by stating that a weight \(M:{{\mathcal {C}}}^\text {op}\rightarrow {{\mathcal {V}}}\) lies in \(\Phi ^*\) if and only if \({{\mathcal {C}}}\) is lex and \(M\in \Phi _l{{\mathcal {C}}}\). Equivalently, \(M\in \Phi ^*\) if and only if \({{\mathcal {C}}}\) is lex and M-lex colimits exists in any \(\Phi \)-exact \({{\mathcal {V}}}\)-category and are preserved by any \(\Phi \)-exact \({{\mathcal {V}}}\)-functor (this follows from [25, 3.4 and 3.5]). We shall now define a saturation of \(\Phi \) in the flat-world.

Definition 3.6

We say that a weight \(M:{{\mathcal {C}}}^\text {op}\rightarrow {{\mathcal {V}}}\) belongs to \(\Phi ^\diamond \) if every \(\Phi \)-exact \({{\mathcal {V}}}\)-category admits M-wlex colimits and every \(\Phi \)-exact \({{\mathcal {V}}}\)-functor preserves them. Given a small \({{\mathcal {V}}}\)-category \({{\mathcal {C}}}\), we denote by \(\Phi ^\diamond [{{\mathcal {C}}}]\) the full subcategory of \([{{\mathcal {C}}}^\text {op},{{\mathcal {V}}}]\) spanned by the weights which lie in \(\Phi ^\diamond \).

When we say that every \(\Phi \)-exact \({{\mathcal {V}}}\)-functor \(F:{{\mathcal {E}}}\rightarrow {{\mathcal {F}}}\) preserves M-wlex colimits, we ask just that, for any flat \(H:{{\mathcal {C}}}\rightarrow {{\mathcal {E}}}\), the colimit \(M*FH\) exists and the comparison map into \(F(M*H)\) is an isomorphism. We do not ask the \({{\mathcal {V}}}\)-functor FH to be flat. However, we will see that under some hypotheses flatness is preserved under composition with \(\Phi \)-exact \({{\mathcal {V}}}\)-functors (Lemma 3.8).

If \({{\mathcal {C}}}\) is lex and \(M:{{\mathcal {C}}}^\text {op}\rightarrow {{\mathcal {V}}}\) is a weight, then M-wlex colimits coincide with M-lex colimits since flat \({{\mathcal {V}}}\)-functors out of \({{\mathcal {C}}}\) are the same as lex \({{\mathcal {V}}}\)-functors; thus \(M\in \Phi ^*\) if and only if \(M\in \Phi ^\diamond \). It follows that we have an inclusion \(\Phi ^*\subseteq \Phi ^\diamond \) given pointwise by the equality

$$\begin{aligned} \Phi _l{{\mathcal {C}}}=\Phi ^\diamond [{{\mathcal {C}}}] \end{aligned}$$

whenever \({{\mathcal {C}}}\) is lex. In general, only one of the inclusions holds:

Lemma 3.7

For any small \({{\mathcal {V}}}\)-category \({{\mathcal {C}}}\) the following inclusions hold

$$\begin{aligned} {{\mathcal {C}}}\subseteq \Phi ^\diamond [{{\mathcal {C}}}]\subseteq \Phi _l{{\mathcal {C}}}\end{aligned}$$

as full subcategories of \([{{\mathcal {C}}}^\text {op},{{\mathcal {V}}}]\).

Proof

For any \(H:{{\mathcal {C}}}\rightarrow {{\mathcal {E}}}\) we have \({{\mathcal {C}}}(-,C)*H\cong HC\); thus \({{\mathcal {C}}}(-,C)\)-weighted colimits exist and are preserved by any \({{\mathcal {V}}}\)-functor (that is, they are absolute). As a consequence \({{\mathcal {C}}}(-,C)\in \Phi ^\diamond \) and \({{\mathcal {C}}}\subseteq \Phi ^\diamond [{{\mathcal {C}}}]\).

Now note that the inclusion \(K:{{\mathcal {C}}}\hookrightarrow \Phi _l{{\mathcal {C}}}\) is flat by Proposition 2.10 since K is dense. Consider then \(M\in \Phi ^\diamond [{{\mathcal {C}}}]\); by definition the colimit \(M*K\) exists in \(\Phi _l{{\mathcal {C}}}\) and is preserved by the inclusion \(V:\Phi _l{{\mathcal {C}}}\hookrightarrow [{{\mathcal {C}}}^\text {op},{{\mathcal {V}}}]\) (being \(\Phi \)-exact). This means that

$$\begin{aligned} V(M*K)\cong M*VK\cong M*Y\cong M, \end{aligned}$$

where \(Y:{{\mathcal {C}}}\rightarrow [{{\mathcal {C}}}^\text {op},{{\mathcal {V}}}]\) is the Yoneda embedding. Thus the inclusion of \(\Phi ^\diamond [{{\mathcal {C}}}]\) into \([{{\mathcal {C}}}^\text {op},{{\mathcal {V}}}]\) factors through V. \(\square \)

Lemma 3.8

Suppose that \(\Phi ^\diamond [{{\mathcal {C}}}]\) has finite limits of diagrams in \({{\mathcal {C}}}\). Then:

  1. (1)

    \(\text {Lan}_ZH:{{\mathcal {C}}}_l\rightarrow {{\mathcal {E}}}\) exists for any \(H:{{\mathcal {C}}}\rightarrow {{\mathcal {E}}}\) into a \(\Phi \)-exact \({{\mathcal {E}}}\) ;

  2. (2)

    if \(F:{{\mathcal {E}}}\rightarrow {{\mathcal {F}}}\) is a \(\Phi \)-exact \({{\mathcal {V}}}\)-functor between \(\Phi \)-exact \({{\mathcal {V}}}\)-categories and \(H:{{\mathcal {C}}}\rightarrow {{\mathcal {E}}}\) is flat, then also FH is flat.

Proof

The fact that \(\Phi ^\diamond [{{\mathcal {C}}}]\) has finite limits of diagrams in \({{\mathcal {C}}}\) implies that \({{\mathcal {C}}}_l\subseteq \Phi ^\diamond [{{\mathcal {C}}}]\) as full subcategories of \([{{\mathcal {C}}}^\text {op},{{\mathcal {V}}}]\). Moreover, using that the colimits \(M\cong M*Z\), for \(M\in {{\mathcal {C}}}_l\), give a density presentation for \(Z:{{\mathcal {C}}}\hookrightarrow {{\mathcal {C}}}_l\), we know that the left Kan extension of a \({{\mathcal {V}}}\)-functor \(H:{{\mathcal {C}}}\rightarrow {{\mathcal {E}}}\) along Z exists if and only if \(M*H\) exists in \({{\mathcal {E}}}\) for any \(M\in {{\mathcal {C}}}_l\), and in that case \(\text {Lan}_ZH(M)\cong M*H\).

Now, since \({{\mathcal {C}}}_l\subseteq \Phi ^\diamond [{{\mathcal {C}}}]\), if \(H:{{\mathcal {C}}}\rightarrow {{\mathcal {E}}}\) is flat the colimits \(M*H\), for \(M\in {{\mathcal {C}}}_l\), always exist in \({{\mathcal {E}}}\) and are preserved by any \(\Phi \)-exact \({{\mathcal {V}}}\)-functor F. Then (1) follows at once by the argument above.

For (2), given \(H:{{\mathcal {C}}}\rightarrow {{\mathcal {E}}}\) flat, we know that \(\text {Lan}_ZH\) exists and preserves finite limits of objects from \({{\mathcal {C}}}\) (Proposition 2.8). Moreover, since F preserves the colimits \(M*H\) for \(M\in {{\mathcal {C}}}_l\), it follows that the composite \(F\circ \text {Lan}_ZH\) sends M to the colimit \(M*FH\). Thus

$$\begin{aligned} F\circ \text {Lan}_ZH\cong \text {Lan}_Z(FH). \end{aligned}$$

Since F is lex, \(\text {Lan}_Z(FH)\) preserves finite limits of objects of \({{\mathcal {C}}}\); hence FH is flat. \(\square \)

Next, we introduce the concept of free \(\Phi \)-exact completion in the flat setting. When \({{\mathcal {C}}}\) is lex, since flat and lex \({{\mathcal {V}}}\)-functors out of \({{\mathcal {C}}}\) are equivalent notions, we recover the free \(\Phi \)-exact completion of [25].

Definition 3.9

Let \(K:{{\mathcal {C}}}\hookrightarrow {{\mathcal {D}}}\) be a fully faithful \({{\mathcal {V}}}\)-functor between a small \({{\mathcal {V}}}\)-category \({{\mathcal {C}}}\) and a \(\Phi \)-exact \({{\mathcal {V}}}\)-category \({{\mathcal {D}}}\). We say that K exhibits \({{\mathcal {D}}}\) as the free \(\Phi \)-exact completion of \({{\mathcal {C}}}\) if left Kan extending along K induces an equivalence

$$\begin{aligned} \text {Flat}({{\mathcal {C}}},{{\mathcal {E}}}) \simeq \Phi \text {-Ex}({{\mathcal {D}}},{{\mathcal {E}}}) \end{aligned}$$

for any \(\Phi \)-exact \({{\mathcal {V}}}\)-category \({{\mathcal {E}}}\).

When the free \(\Phi \)-exact completion exists, the inverse of the equivalence above is necessarily given by restricting along K. Note, however, that such a free \(\Phi \)-exact completion need not exist in general, as the following remark shows.

Remark 3.10

Let \(\Phi =\emptyset \) and \({{\mathcal {C}}}\) be a small Cauchy complete \({{\mathcal {V}}}\)-category that does not have finite limits; then the free \(\emptyset \)-exact \({{\mathcal {V}}}\)-category over \({{\mathcal {C}}}\) does not exist. Indeed, by taking \({{\mathcal {E}}}={{\mathcal {V}}}\) in the universal property, we would obtain an equivalence

$$\begin{aligned} \text {Flat}({{\mathcal {C}}},{{\mathcal {V}}}) \simeq \text {Lex}({{\mathcal {D}}},{{\mathcal {V}}}) \end{aligned}$$

implying that \(\text {Flat}({{\mathcal {C}}},{{\mathcal {V}}})\) is locally finitely presentable. Since \({{\mathcal {C}}}\) is Cauchy complete, we would then obtain that \({{\mathcal {C}}}\simeq {{\mathcal {D}}}\) is lex, leading to a contradiction. Conversely, if \({{\mathcal {C}}}\) is lex then the free \(\emptyset \)-exact \({{\mathcal {V}}}\)-category over \({{\mathcal {C}}}\) is \({{\mathcal {C}}}\) itself.

If a free \(\Phi \)-exact completion of \({{\mathcal {C}}}\) exists, then it is unique up to equivalence and must coincide with \(\Phi _l{{\mathcal {C}}}\):

Lemma 3.11

Let \(K:{{\mathcal {C}}}\hookrightarrow {{\mathcal {D}}}\) exhibit \({{\mathcal {D}}}\) as the free \(\Phi \)-exact completion of \({{\mathcal {C}}}\) , then there exists an equivalence \(E:{{\mathcal {D}}}\rightarrow \Phi _l{{\mathcal {C}}}\) for which \(E\circ K\) is isomorphic to the inclusion \({{\mathcal {C}}}\hookrightarrow \Phi _l{{\mathcal {C}}}\).

Proof

Since the identity \(1_{{\mathcal {D}}}:{{\mathcal {D}}}\rightarrow {{\mathcal {D}}}\) is \(\Phi \)-exact, by the universal property we know that K is flat and \(\text {Lan}_K K\cong 1_{{\mathcal {D}}}\). Therefore K is a dense \({{\mathcal {V}}}\)-functor and hence we have an inclusion \(W:{{\mathcal {D}}}\hookrightarrow [{{\mathcal {C}}}^\text {op},{{\mathcal {V}}}]\) with \(W\cong \text {Lan}_KY\), where \(Y:{{\mathcal {C}}}\rightarrow [{{\mathcal {C}}}^\text {op},{{\mathcal {V}}}]\) is the Yoneda embedding. Again by the universal property, since K is flat, it follows that W is \(\Phi \)-exact. By definition of \(\Phi _l{{\mathcal {C}}}\) it follows that \(\Phi _l{{\mathcal {C}}}\subseteq {{\mathcal {D}}}\) as full subcategories of \([{{\mathcal {C}}}^\text {op},{{\mathcal {V}}}]\); call \(E:\Phi _l{{\mathcal {C}}}\rightarrow {{\mathcal {D}}}\) the inclusion. Now, the inclusion \(K':{{\mathcal {C}}}\hookrightarrow \Phi _l{{\mathcal {C}}}\) is flat; then \(\text {Lan}_KK':{{\mathcal {D}}}\rightarrow \Phi _l{{\mathcal {C}}}\) exists and is \(\Phi \)-exact. By uniqueness, we know that \(E\circ \text {Lan}_KK'\cong 1_{{{\mathcal {D}}}}\), so that E is essentially surjective on objects and hence an equivalence. This also satisfies \(E\circ K\cong K'\) by construction. \(\square \)

The following lemma will be important to characterize when free \(\Phi \)-exact completions exist.

Lemma 3.12

Let \({{\mathcal {C}}}\) be a small \({{\mathcal {V}}}\)-category for which \(\Phi ^\diamond [{{\mathcal {C}}}]\) has finite limits of diagrams landing in \({{\mathcal {C}}}\). Then \(\Phi ^\diamond [{{\mathcal {C}}}]=\Phi _l{{\mathcal {C}}}\) is \(\Phi \)-exact.

Proof

It is enough to prove that \(\Phi ^\diamond [{{\mathcal {C}}}]\) is closed in \([{{\mathcal {C}}}^\text {op},{{\mathcal {V}}}]\) under finite limits and \(\Phi \)-lex colimits; denote the inclusion by \(W:\Phi ^\diamond [{{\mathcal {C}}}]\hookrightarrow [{{\mathcal {C}}}^\text {op},{{\mathcal {V}}}]\). Then, since \(\Phi _l{{\mathcal {C}}}\) is minimal among the full subcategories of \([{{\mathcal {C}}}^\text {op},{{\mathcal {V}}}]\) satisfying this property and \( \Phi ^\diamond [{{\mathcal {C}}}]\subseteq \Phi _l{{\mathcal {C}}}\), it follows that \(\Phi ^\diamond [{{\mathcal {C}}}]=\Phi _l{{\mathcal {C}}}\) is \(\Phi \)-exact.

Let us first prove that \(\Phi ^\diamond [{{\mathcal {C}}}]\) is closed in \([{{\mathcal {C}}}^\text {op},{{\mathcal {V}}}]\) under finite limits. Consider a finite weight \(N:{{\mathcal {A}}}\rightarrow {{\mathcal {V}}}\) and a diagram \(S:{{\mathcal {A}}}\rightarrow \Phi ^\diamond [{{\mathcal {C}}}]\), it is enough to show that the limit \(\{N,WS\}\) is in \(\Phi ^\diamond \). For that, consider a \(\Phi \)-exact \({{\mathcal {V}}}\)-category \({{\mathcal {E}}}\) and a flat \({{\mathcal {V}}}\)-functor \(F:{{\mathcal {C}}}\rightarrow {{\mathcal {E}}}\). By definition there exists a fully faithful and \(\Phi \)-exact \(J:{{\mathcal {E}}}\hookrightarrow {{\mathcal {T}}}\) into a small-exact \({{\mathcal {T}}}\); then JF is flat by Lemma 3.8 and the colimit \(\{N,WS\}*JF\) exists (by cocompleteness of \({{\mathcal {T}}}\)) and is isomorphic to \(\{N,WS*JF\}\) by Proposition 2.12. Here, the \({{\mathcal {V}}}\)-functor

$$\begin{aligned} WS*JF:{{\mathcal {A}}}\rightarrow {{\mathcal {T}}}\end{aligned}$$

is given by sending \(A\in {{\mathcal {A}}}\) to \(WS(A)*JF\). Since \(WS(A)\in \Phi ^\diamond \) for any \(A\in {{\mathcal {A}}}\), the \({{\mathcal {V}}}\)-functor \(WS*F:{{\mathcal {A}}}\rightarrow {{\mathcal {E}}}\) is well defined and \(J(WS*F)\cong WS*JF\). It follows that

$$\begin{aligned} \{N,WS*JF\}\cong \{N,J(WS*F)\}\cong J\{N,WS*F\} \end{aligned}$$

and therefore \(\{N,WS\}*JF\), being isomorphic to the object above, actually lies in \({{\mathcal {E}}}\). Thus \(\{N,WS\}*F\) exists in \({{\mathcal {E}}}\) and coincides with \(\{N,WS*F\}\). This also shows that such colimit is preserved by any \(\Phi \)-exact \({{\mathcal {V}}}\)-functor. Therefore \(\{N,WS\}\) is in \(\Phi ^\diamond [{{\mathcal {C}}}]\).

We now need to prove that \(\Phi ^\diamond [{{\mathcal {C}}}]\) is closed in \([{{\mathcal {C}}}^\text {op},{{\mathcal {V}}}]\) under \(\Phi \)-lex colimits. Consider therefore \(M:{{\mathcal {D}}}^\text {op}\rightarrow {{\mathcal {V}}}\) in \(\Phi \) and a lex \({{\mathcal {V}}}\)-functor \(H:{{\mathcal {D}}}\rightarrow \Phi ^\diamond [{{\mathcal {C}}}]\); as before, it is enough to prove that \(M*WH\) lies in \(\Phi ^\diamond \). Consider hence a flat diagram \(F:{{\mathcal {C}}}\rightarrow {{\mathcal {E}}}\) into a \(\Phi \)-exact \({{\mathcal {E}}}\); then the colimits \((M*WH)*F\) exists in \({{\mathcal {E}}}\) (and is preserved) if and only if \(M*(WH*F)\) exists (and is preserved), and in that case they coincide. As before, the \({{\mathcal {V}}}\)-functor \(WH*F:{{\mathcal {D}}}\rightarrow {{\mathcal {E}}}\) is well defined since \(WH(D)\in \Phi ^\diamond \) for any \(D\in {{\mathcal {D}}}\).

Thus, to conclude it is enough to show that \(WH*F\) is lex; in fact then \((M*WH)*F\) can be seen as a \(\Phi \)-lex colimit. Consider first the case when \({{\mathcal {E}}}\) is small-exact; then for any finite weight \(N:{{\mathcal {A}}}\rightarrow {{\mathcal {V}}}\) and \({{\mathcal {S}}}:{{\mathcal {A}}}\rightarrow {{\mathcal {E}}}\)

$$\begin{aligned} (WH*F)\{N,S\}&\cong WH(\{N,S\})*F\qquad (\text {by Def}) \\&\cong \{N-,WHS-\}*F\qquad (\text {WH lex})\\&\cong \{N-,WHS-*F\}\qquad (\text {Prop}~2.12)\\&\cong \{N,(WH*F)\circ S\} \end{aligned}$$

showing that \(WH*F\) is lex. Now, given any \(\Phi \)-exact \({{\mathcal {V}}}\)-category \({{\mathcal {E}}}\), there exists a fully faithful and \(\Phi \)-exact \(J:{{\mathcal {E}}}\hookrightarrow {{\mathcal {T}}}\) into a small-exact \({{\mathcal {T}}}\). Since \(\Phi ^\diamond [{{\mathcal {C}}}]\) is lex, JF is still flat by Lemma 3.8; thus \(WH*JF\) is lex by the previous arguments. But \(WH*JF\cong J(WH*F)\) since any \(\Phi \)-exact \({{\mathcal {V}}}\)-functor preserves \(\Phi ^\diamond \)-flat colimits. Thus \(WH*F\) is lex since J is fully faithful. \(\square \)

Below we give equivalent conditions for \(\Phi _l{{\mathcal {C}}}\) to be the free \(\Phi \)-exact \({{\mathcal {V}}}\)-category on \({{\mathcal {C}}}\).

Theorem 3.13

The following are equivalent for a small \({{\mathcal {V}}}\)-category \({{\mathcal {C}}}\) :

  1. (1)

    the free \(\Phi \)-exact completion of \({{\mathcal {C}}}\) exists;

  2. (2)

    \(K:{{\mathcal {C}}}\hookrightarrow \Phi _l{{\mathcal {C}}}\) exhibits \(\Phi _l{{\mathcal {C}}}\) as the free \(\Phi \)-exact completion of \({{\mathcal {C}}}\) ;

  3. (3)

    \(\Phi ^\diamond [{{\mathcal {C}}}]=\Phi _l{{\mathcal {C}}}\) ;

  4. (4)

    \(\Phi ^\diamond [{{\mathcal {C}}}]\) has finite limits of diagrams landing in \({{\mathcal {C}}}\).

Proof

\((1)\Leftrightarrow (2)\) is given by Lemma 3.11, \((3)\Rightarrow (4)\) is trivial since \(\Phi _l{{\mathcal {C}}}\) is lex by definition, and \((4)\Rightarrow (3)\) follows from Lemma 3.12 above.

\((2)\Rightarrow (3)\). Since \(\Phi ^\diamond [{{\mathcal {C}}}]\subseteq \Phi _l{{\mathcal {C}}}\) always holds, it is enough to prove that every \(M\in \Phi _l{{\mathcal {C}}}\) lies in \(\Phi ^\diamond [{{\mathcal {C}}}]\). Fix an element \(M\in \Phi _l{{\mathcal {C}}}\), then by density of K we have that \(M\cong M*K\) in \(\Phi _l{{\mathcal {C}}}\), and such colimit is preserved by any \({{\mathcal {V}}}\)-functor \(\Phi _l{{\mathcal {C}}}\rightarrow {{\mathcal {E}}}\) which is the left Kan extension of its restriction to \({{\mathcal {C}}}\).

To prove that \(M\in \Phi ^\diamond [{{\mathcal {C}}}]\), consider a flat \({{\mathcal {V}}}\)-functor \(H:{{\mathcal {C}}}\rightarrow {{\mathcal {E}}}\) into a \(\Phi \)-exact \({{\mathcal {E}}}\). By (2) the left Kan extension \(\text {Lan}_KH\) exists and by the arguments above

$$\begin{aligned} \text {Lan}_KH(M)\cong \text {Lan}_KH(M*K)\cong M*(\text {Lan}_KH\circ K)\cong M*H \end{aligned}$$

so that \(M*H\) exists in \({{\mathcal {E}}}\). Let now \(F:{{\mathcal {E}}}\rightarrow {{\mathcal {F}}}\) be any \(\Phi \)-exact \({{\mathcal {V}}}\)-functor into another \(\Phi \)-exact \({{\mathcal {V}}}\)-category \({{\mathcal {F}}}\). Then

$$\begin{aligned} F\circ \text {Lan}_KH \cong \text {Lan}_K(FH) \end{aligned}$$

by (2) since the \({{\mathcal {V}}}\)-functor on the left is \(\Phi \)-exact and extends FH. It follows that

$$\begin{aligned} F(M*H)\cong F (\text {Lan}_KH(M) )\cong \text {Lan}_K(FH)(M)\cong M*FH \end{aligned}$$

and therefore \(M\in \Phi ^\diamond [{{\mathcal {C}}}]\).

\((3)\Rightarrow (2)\). First notice that any \({{\mathcal {V}}}\)-functor \(G:\Phi _l{{\mathcal {C}}}\rightarrow {{\mathcal {E}}}\) into a \(\Phi \)-exact \({{\mathcal {E}}}\) is the left Kan extension of its restriction to \({{\mathcal {C}}}\) if and only if it preserves the colimit \(M*K\) for any \(M\in \Phi _l{{\mathcal {C}}}\). This follows from the fact that K is dense and the \(M*K\) form a density presentation of it. In particular, since every \(M\in \Phi _l{{\mathcal {C}}}\) is by hypothesis in \(\Phi ^\diamond \) and K is flat, every \(\Phi \)-exact \({{\mathcal {V}}}\)-functor preserves said density presentation; thus \(G\cong \text {Lan}_K (GK)\) whenever \(G:\Phi _l{{\mathcal {C}}}\rightarrow {{\mathcal {E}}}\) is \(\Phi \)-exact.

Now we can show that acting by pre-composition with \(K:{{\mathcal {C}}}\hookrightarrow \Phi _l{{\mathcal {C}}}\) induces a \({{\mathcal {V}}}\)-functor

$$\begin{aligned} \Phi \text {-Ex}(\Phi _l{{\mathcal {C}}},{{\mathcal {E}}})\longrightarrow \text {Flat}({{\mathcal {C}}},{{\mathcal {E}}}) \end{aligned}$$

for any \(\Phi \)-exact \({{\mathcal {E}}}\). For, let \(W:{{\mathcal {C}}}_l\hookrightarrow \Phi _l{{\mathcal {C}}}\) be the inclusion, so that \(W\circ Z\cong K\); then for any \(\Phi \)-exact \(G:\Phi _l{{\mathcal {C}}}\rightarrow {{\mathcal {E}}}\) as above

$$\begin{aligned} G\circ W\cong \text {Lan}_K (GK) \circ W\cong \text {Lan}_W(\text {Lan}_Z(GK))\circ W\cong \text {Lan}_Z(GK); \end{aligned}$$

therefore \(\text {Lan}_Z(GK)\) exists and preserves finite limits of elements from \({{\mathcal {C}}}\) (since both G is lex and W preserves them). So GK is flat.

To conclude we are only left to prove that for any flat \(F:{{\mathcal {C}}}\rightarrow {{\mathcal {E}}}\) the left Kan extension \(\text {Lan}_KF\) exists and is \(\Phi \)-exact. By the arguments above, \(\text {Lan}_KF\) exists for any F (as long as \({{\mathcal {E}}}\) is \(\Phi \)-exact). Thus we only need to prove that if F is flat then \(\text {Lan}_KF\) is \(\Phi \)-exact.

Consider first the case of a small-exact \({{\mathcal {T}}}\); then \(\text {Lan}_KF\) is the restriction of the left Kan extension \(\text {Lan}_YF\) along the Yoneda embedding Y. By Proposition 2.12, \(\text {Lan}_YF\) is lex and cocontinuous; therefore \(\text {Lan}_KF\) is lex and preserves all colimits that are computed pointwise in \([{{\mathcal {C}}}^\text {op},{{\mathcal {V}}}]\). It follows that \(\text {Lan}_KF\) is \(\Phi \)-exact. Now, if \({{\mathcal {E}}}\) is any \(\Phi \)-exact \({{\mathcal {V}}}\)-category, by definition there exists a fully faithful and \(\Phi \)-exact \(H:{{\mathcal {E}}}\hookrightarrow {{\mathcal {T}}}\) into a small-exact \({{\mathcal {T}}}\). Since H is \(\Phi \)-exact it preserves the colimits in \({{\mathcal {E}}}\) involved in the density presentation of Z, therefore

$$\begin{aligned} H\circ \text {Lan}_KF\cong \text {Lan}_K(HF). \end{aligned}$$

By Lemma 3.8 the \({{\mathcal {V}}}\)-functor HF is still flat. Therefore \(\text {Lan}_K(HF)\) is \(\Phi \)-exact by the previous results, and hence also \(\text {Lan}_KF\) is since H is fully faithful. \(\square \)

In the case of a small \(\Phi \) we obtain the following:

Theorem 3.14

Let \(\Phi \) be a small class of lex weights. The conditions of Theorem 3.13above are further equivalent to:

  1. (5)

    left Kan extending along \(K:{{\mathcal {C}}}\rightarrow \Phi _l{{\mathcal {C}}}\) induces an equivalence

    $$\begin{aligned} \text {Flat}({{\mathcal {C}}},{{\mathcal {E}}}) \simeq \Phi \text {-Ex}(\Phi _l{{\mathcal {C}}},{{\mathcal {E}}}) \end{aligned}$$

    for any \({{\mathcal {E}}}\) that is a lex localization of \(\Phi _l{{\mathcal {E}}}\) (that is, for any \({{\mathcal {E}}}\) that is \(\Phi \)-exact in the sense of [25]).

Proof

It is clear that (5) implies (2) of Theorem 3.13 since every \(\Phi \)-exact \({{\mathcal {V}}}\)-category (in our sense) is a lex localization of \(\Phi _l{{\mathcal {E}}}\) ( [25, Theorem 4.1]). Conversely, let us assume that \(\Phi \) is small and that (2) holds. Consider a \({{\mathcal {V}}}\)-category \({{\mathcal {E}}}\) for which the inclusion \({{\mathcal {E}}}\hookrightarrow \Phi _l{{\mathcal {E}}}\) has a lex left adjoint. Arguing as in the beginning of \((3)\Rightarrow (2)\) of the proof above, we see that precomposition by K induces a \({{\mathcal {V}}}\)-functor

$$\begin{aligned} \Phi \text {-Ex}(\Phi _l{{\mathcal {C}}},{{\mathcal {E}}})\longrightarrow \text {Flat}({{\mathcal {C}}},{{\mathcal {E}}}) \end{aligned}$$

and that every \(\Phi \)-exact \(\Phi _l{{\mathcal {C}}}\rightarrow {{\mathcal {E}}}\) is the left Kan extension of its restriction to \({{\mathcal {C}}}\). Thus we only need to prove that \(\text {Lan}_KF\) exists and is \(\Phi \)-exact whenever \(F:{{\mathcal {C}}}\rightarrow {{\mathcal {E}}}\) is flat.

For that, let \(F:{{\mathcal {C}}}\rightarrow {{\mathcal {E}}}\) be flat. Then, since \(\Phi \) is small there exists a small full subcategory \(J:{{\mathcal {F}}}\hookrightarrow {{\mathcal {E}}}\) that is closed under finite limits and \(\Phi \)-lex colimits, and such that F factors as \(F=J\circ F'\) with \(F':{{\mathcal {C}}}\rightarrow {{\mathcal {F}}}\). Then \({{\mathcal {F}}}\) is \(\Phi \)-exact (in our sense) by [25, 4.11 & 4.2], and \(F'\) is easily seen to be flat (since J reflects limits and colimits in the codomain). Then \(\text {Lan}_KF':\Phi _l{{\mathcal {C}}}\rightarrow {{\mathcal {F}}}\) exists and is \(\Phi \)-exact by (2); moreover, \(J\circ \text {Lan}_KF'\cong \text {Lan}_KF\) by the arguments at the beginning of \((3)\Rightarrow (2)\) above (using that J, being \(\Phi \)-exact, preserves \(\Phi ^*\)-lex colimits). Thus \(\text {Lan}_KF\) is \(\Phi \)-exact being the composite of \(\Phi \)-exact \({{\mathcal {V}}}\)-functors. \(\square \)

Remark 3.15

It is not possible to express free exact completions in the flat world in terms of existence of a left biadjoint to some forgetful functor (as in [25, 3.7]). The problem being that flat \({{\mathcal {V}}}\)-functors do not compose, not even if the categories involved satisfy the equivalent conditions of Theorem 3.13 above, and hence they cannot form the class of morphisms of a category.

A formal explanation of why this happens in the case of exact completions is given in [16, 3.3]. A direct counterexample can also be easily constructed in the setting of infinitary lextensive categories; that is, by considering the class of lex-colimits \(\Phi _{\text {ilext}}\) of Sect. 4.2. The category \(\textbf{Fld}\) of fields is finitely accessible with connected limits; hence \(\textbf{Fld}\simeq \text {Flat}(\textbf{Fld}_f^\text {op},\textbf{Set})\) and \(\textbf{Fld}_f^\text {op}\) satisfies the conditions of the theorem above (by Proposition 4.7). However, the composition of any flat \(\textbf{Fld}_f^\text {op}\rightarrow \textbf{Set}\), corresponding to a field \({\mathbb {K}}\), with the flat functor \(\textbf{Set}(2,-):\textbf{Set}\rightarrow \textbf{Set}\) is not flat since it would correspond to a product \({\mathbb {K}}\times {\mathbb {K}}\) in \(\textbf{Fld}\), which does not exist.

Remark 3.16

Infinitary versions of regularity and Barr-exactness have been studied in the literature [48] together with corresponding notions of free infinitary exact completions and of weak infinitary limits [29, 60]. Similarly, flat functors also admit infinitary generalizations, which found important applications especially in the theory of accessible categories [2, 43].

Both the infinitary notions of exact categories and flat functors are obtained by replacing the class of finite limits with that of \(\lambda \)-small limits, for a fixed regular cardinal \(\lambda \). Such generalization could very likely be carried out also in our setting; however, we have decided not to address this here since it would require an infinitary version of [25]. One possible way to tackle this problem is to note that all the results of [25] and of this paper rely mostly on the fact that the class of finite limits is sound in the sense of [1, 41]; thus an infinitary generalization is likely to succeed since class of \(\lambda \)-small limits (for a regular cardinal \(\lambda \)) is sound as well.

4 Examples

In the sections below we consider specific examples of \(\Phi \)-exactness. In each case we express the necessary and sufficient conditions for a category to have a free \(\Phi \)-exact completion in terms of the existence of certain virtual (weak, multi, etc) finite limits.

To show that, whenever a category has these specified virtual finite limits then it also has a free \(\Phi \)-exact completion, is quite standard and requires only some easy computations. However, to prove that the opposite implications holds we need to invoke the theory of accessible categories with limits; in all the examples we shall see that if the free \(\Phi \)-exact completion for \({{\mathcal {C}}}\) exists, then the category of flat functors from \({{\mathcal {C}}}\) to \(\textbf{Set}\) has limits of some sort, and then apply a duality theorem (as in [57]) that implies the existence of said virtual limits.

4.1 Weak limits, regularity, and exactness

Let \(\Phi _{\text {reg}}\) and \(\Phi _{\text {ex}}\) be the classes of lex weights respectively for regular and Barr-exact categories (see [25, 5.1 and 5.2]). A functor is \(\Phi _{\text {reg}}\) or \(\Phi _{\text {ex}}\)-exact if and only if it is regular; meaning that it preserves finite limits and regular epimorphisms.

Recall the notion of weak limit below (see for instance [2, 16, 28]).

Definition 4.1

We say that a diagram \(H:{{\mathcal {D}}}\rightarrow {{\mathcal {C}}}\) has a weak limit in \({{\mathcal {C}}}\) if there exists an object \(C\in {{\mathcal {C}}}\) together with a cone \(\delta :\Delta C\rightarrow H\) such that every other cone \(e:\Delta E\rightarrow H\) factors as \(e=\delta \circ f\) for some \(f:E \rightarrow C\) in \({{\mathcal {C}}}\). We say that \({{\mathcal {C}}}\) is weakly lex if it has all weak finite limits.

Equivalently, C is a weak limit of H if there exists a regular epimorphism

$$\begin{aligned} {{\mathcal {C}}}(-,C)\twoheadrightarrow \lim YH \end{aligned}$$

in \([{{\mathcal {C}}}^\text {op},\textbf{Set}]\), where \(Y:{{\mathcal {C}}}\rightarrow [{{\mathcal {C}}}^\text {op},\textbf{Set}]\) is the Yoneda embedding. Note that weak limits are not unique.

Proposition 4.2

The following are equivalent for a small category \({{\mathcal {C}}}\) :

  1. (1)

    \({{\mathcal {C}}}\) has a free regular completion;

  2. (2)

    \({{\mathcal {C}}}\) has a free exact completion;

  3. (3)

    \(\text {Flat}({{\mathcal {C}}},\textbf{Set})\) has products;

  4. (4)

    \({{\mathcal {C}}}\) is weakly lex.

Proof

The implication \((1)\Rightarrow (2)\) is trivial by Theorem 3.13 since the inclusion \(\Phi ^\diamond _{\text {reg}}[{{\mathcal {C}}}]\subseteq \Phi ^\diamond _{\text {ex}}[{{\mathcal {C}}}]\) always hold. For \((2)\Rightarrow (3)\), by hypothesis there is an equivalence

$$\begin{aligned} \text {Flat}({{\mathcal {C}}},\textbf{Set})\simeq \text {Reg}(\Phi _{\text {ex}}({{\mathcal {C}}}),\textbf{Set}). \end{aligned}$$

Since regular epimorphisms are stable in \(\textbf{Set}\) under products, we know that the category \(\text {Reg}(\Phi _{\text {ex}}({{\mathcal {C}}}),\textbf{Set})\) is closed under products in the presheaf category; thus \(\text {Flat}({{\mathcal {C}}},\textbf{Set})\) has products. Regarding \((3)\Rightarrow (4)\), the Cauchy completion \({{\hat{{{\mathcal {C}}}}}}\), of \({{\mathcal {C}}}\), is weakly lex by [28, Corollary 1.6] (or [57, Theorem 3.8]) since it corresponds to the opposite of the category of the finitely presentable objects of \(\text {Flat}({{\mathcal {C}}},\textbf{Set})\). Now, if \({{\hat{A}}}\in {{\hat{{{\mathcal {C}}}}}}\) is a weak limit of a finite diagram H from \({{\mathcal {C}}}\) (seen in \({{\hat{{{\mathcal {C}}}}}}\)); then, since we can write \({{\hat{A}}}\) as a split quotient of some object A of \({{\mathcal {C}}}\), it is easy to see that A is actually a weak limit of H in \({{\mathcal {C}}}\). Thus \({{\mathcal {C}}}\) is weakly lex.

\((4)\Rightarrow (1)\). Consider the full subcategory \({{\mathcal {D}}}\) of \([{{\mathcal {C}}}^\text {op},\textbf{Set}]\) spanned by those functors \(M:{{\mathcal {C}}}^\text {op}\rightarrow \textbf{Set}\) which arise as

$$\begin{aligned} YA{\mathop {\twoheadrightarrow }\limits ^{q}} M {\mathop {\rightarrowtail }\limits ^{m}} YB_1\times \cdots \times YB_n \end{aligned}$$

with q a regular epimorphism and m a monomorphism. Then \({{\mathcal {D}}}\) contains the representables as well as any finite limit of them; indeed, any finite limit of representables is covered by a representable since \({{\mathcal {C}}}\) is weakly lex, and is a subobject of a finite product of representables by finiteness of the limit itself. To conclude it is then enough to prove that \({{\mathcal {D}}}\subseteq \Phi ^\diamond _{\text {reg}}[{{\mathcal {C}}}]\) and apply Theorem 3.13.

Consider \(M\in {{\mathcal {D}}}\) and a flat functor \(F:{{\mathcal {C}}}\rightarrow {{\mathcal {E}}}\) into a regular category \({{\mathcal {E}}}\); we need to prove that \(M*F\) exists in \({{\mathcal {E}}}\) and is preserved by any regular functor out of \({{\mathcal {E}}}\). Given a presentation for M as above, we can see M as the coequalizer of the kernel pair of \(mq:YA\rightarrow YB_1\times \cdots \times YB_n\). By fully faithfulness of the Yoneda embedding there exist maps \(h_i:A\rightarrow B_i\) in \({{\mathcal {C}}}\) for which \((Yh_1,\cdots ,Yh_n)=mq\). Now, it follows that the kernel pair of mq can be rewritten as a finite limit of representables; since F is flat, the colimit functor \(-*F\) preserves that limit and hence \(M*F\) corresponds to the coequalizer of the kernel pair of \((Fh_1,\cdots ,Fh_n):FA\rightarrow FB_1\times \cdots \times FB_n\). Such colimit exists in any regular category and is preserved by any regular functor. \(\square \)

Note that the category \({{\mathcal {D}}}\) described above is regular whenever \({{\mathcal {C}}}\) is weakly lex (by [16, Proposition 9]); since it also contains the representables and is contained in \(\Phi ^\diamond _{\text {reg}}[{{\mathcal {C}}}]\), then we necessarily have equalities

$$\begin{aligned} {{\mathcal {D}}}=\Phi ^\diamond _{\text {reg}}[{{\mathcal {C}}}]= \Phi _{\text {reg}}({{\mathcal {C}}}); \end{aligned}$$

showing that \({{\mathcal {D}}}\) is the free regular completion of \({{\mathcal {C}}}\).

Remark 4.3

Proposition 4.2 above can be extended to the setting of categories enriched over a symmetric monoidal finitary variety \({{\mathcal {V}}}\) as in [39]. The notions of regularity and exactness corresponding to points (1) and (2) are those introduced in [39, Section 5]; the limits involved in (3) are products and powers by regular projective objects; while the notion of enriched weak limit to consider in (4) is that appearing in [42, Section 5] (where \({{\mathcal {E}}}\) and \({{\mathcal {G}}}\) are as in [42, Example 4.47]). The proof extends without major modifications using the duality [57, Theorem 4.24].

To conclude that our regular and exact completions have the same universal properties as the regular and exact completions for a weakly lex category considered in [16, 28], we need to show that our notion of flatness coincides with Carboni and Vitale’s notion of left covering functor, when the domain category is weakly lex.

Let us first recall the definition, which was first given in Vitale’s PhD thesis [59].

Definition 4.4

Let \(F:{{\mathcal {C}}}\rightarrow {{\mathcal {E}}}\) be a functor from a weakly lex category \({{\mathcal {C}}}\) to a regular category \({{\mathcal {E}}}\). We say that F is left covering if for any finite diagram \(H:{{\mathcal {D}}}\rightarrow {{\mathcal {C}}}\) and any weak limit \(C\in {{\mathcal {C}}}\) of H, the comparison map

$$\begin{aligned} FC\twoheadrightarrow \lim (FH) \end{aligned}$$

is a regular epimorphism.

These were also defined independently by Hu, who called them \(\omega \)-flat in [28, 30], following a notation closer to ours.

Proposition 4.5

Let \({{\mathcal {C}}}\) be small and weakly lex. A functor \(F:{{\mathcal {C}}}\rightarrow {{\mathcal {E}}}\) into a regular category \({{\mathcal {E}}}\) is flat if and only if it is left covering.

Proof

By the proposition above \({{\mathcal {C}}}\) has a free regular category which can be identified with the full subcategory \({{\mathcal {D}}}\) of \([{{\mathcal {C}}}^\text {op},\textbf{Set}]\) just described. This also coincides with the free regular completion of the weakly lex \({{\mathcal {C}}}\) in the sense of [16]. Thus flat functors out of \({{\mathcal {C}}}\) and left covering functors coincide since they both can be described as those whose left Kan extension along the inclusion \({{\mathcal {C}}}\hookrightarrow {{\mathcal {D}}}\) is regular (by definition and by [16, Theorem 29]). \(\square \)

Thus we are able to capture regular and exact completions with respect to weakly lex categories as part of this framework.

4.2 Multilimits and infinitary lextensive categories

Let \(\Phi _{\text {ilext}}\) be the classes of lex weights for infinitary lextensive categories (see the infinite version of [25, 5.3]). In this setting \(\Phi _{\text {ilext}}\)-lex colimits are just coproducts; thus a functor is \(\Phi _{\text {ilext}}\)-exact if and only if it is lex and preserves coproducts. Given infinitary lextensive categories \({{\mathcal {E}}}\) and \({{\mathcal {F}}}\), denote by \(\text {iLext}({{\mathcal {E}}},{{\mathcal {F}}})\) the full subcategory of \([{{\mathcal {E}}},{{\mathcal {F}}}]\) spanned by the \(\Phi _{\text {ilext}}\)-exact functors.

We recall the notion of multilimit below:

Definition 4.6

([22]) We say that a diagram \(H:{{\mathcal {D}}}\rightarrow {{\mathcal {C}}}\) has a multilimit in \({{\mathcal {C}}}\) if there exists a family of objects \((C_i)_{i\in I}\) in \({{\mathcal {C}}}\) together with cones \(\delta _i:\Delta C_i\rightarrow H\) such that every other cone \(e:\Delta E\rightarrow H\) factors as \(e=\delta _i\circ f\) for a unique \(i\in I\) and a unique \(f:E \rightarrow C_i\) in \({{\mathcal {C}}}\). We say that \({{\mathcal {C}}}\) has finite multilimits if it has all multilimits indexed by finite diagrams.

Unlike weak limits, multilimits are unique up to isomorphism. Moreover, a family \((C_i)_{i\in I}\) is the multilimit of H if and only if there exists an isomorphism

$$\begin{aligned} \sum _i{{\mathcal {C}}}(-,C_i)\cong \lim YH \end{aligned}$$

in \([{{\mathcal {C}}}^\text {op},\textbf{Set}]\), where \(Y:{{\mathcal {C}}}\rightarrow [{{\mathcal {C}}}^\text {op},\textbf{Set}]\) is the Yoneda embedding.

In the Proposition below Cauchy completeness is required for the implication \((2)\Rightarrow (3)\) to be true. This additional hypothesis appears here, but not in Proposition 4.2, since the class \(\Phi _{\text {ex}}\) considered before subsumes absolute coequalizers (that is, all Cauchy colimits) while \(\Phi _{\text {ilext}}\) does not.

Proposition 4.7

The following are equivalent for a small Cauchy complete category \({{\mathcal {C}}}\) :

  1. (1)

    \({{\mathcal {C}}}\) has a free infinitary lextensive completion;

  2. (2)

    \(\text {Flat}({{\mathcal {C}}},\textbf{Set})\) has connected limits;

  3. (3)

    \({{\mathcal {C}}}\) has finite multilimits.

Proof

For \((1)\Rightarrow (2)\), if the free infinitary lextensive completion of \({{\mathcal {C}}}\) exists then

$$\begin{aligned} \text {Flat}({{\mathcal {C}}},\textbf{Set})\simeq \text {iLext}(\Phi _{\text {ilext}}({{\mathcal {C}}}),\textbf{Set}) \end{aligned}$$

has connected limits since these commute in \(\textbf{Set}\) with coproducts. Regarding \((2)\Rightarrow (3)\), the category \({{\mathcal {C}}}\) has finite multilimits by Diers duality for locally finitely multipresentable categories [21] which requires Cauchy completeness (see also [57, Theorem 3.8]).

\((3)\Rightarrow (1)\). Let \(\text {Fam}({{\mathcal {C}}})\) be the closure of the representables in \([{{\mathcal {C}}}^\text {op},\textbf{Set}]\) under small coproducts (that is, the coproduct completion of \({{\mathcal {C}}}\)); then \(\text {Fam}({{\mathcal {C}}})\subseteq \Phi _{\text {ilext}}^\diamond [{{\mathcal {C}}}]\) since, independently of the colimits being along a flat diagram, coproducts exist in any infinitary lextensive category and are preserved by any infinitary lextensive functor by definition.

Thus, if \({{\mathcal {C}}}\) has finite multilimits then \(\Phi _{\text {lext}}^\diamond [{{\mathcal {C}}}]\) has finite limits of representables and the free infinitary lextensive completion exists by theorem 3.13. \(\square \)

Note that then \(\text {Fam}({{\mathcal {C}}})\) is the free infinitary lextensive completion of \({{\mathcal {C}}}\). In fact, whenever \({{\mathcal {C}}}\) has finite multilimits then \(\text {Fam}({{\mathcal {C}}})\) is lex (see for instance [57, Corollary 3.9]), and hence an infinitary lextensive category.

Definition 4.8

([22]) Let \(F:{{\mathcal {C}}}\rightarrow {{\mathcal {E}}}\) be a functor from a category \({{\mathcal {C}}}\) with finite multilimits into a lex category \({{\mathcal {E}}}\) with coproducts. We say that F is finitely multicontinuous if for any finite diagram \(H:{{\mathcal {D}}}\rightarrow {{\mathcal {C}}}\) with multilimit \((C_i)_{i\in I}\) there is an isomorphism

$$\begin{aligned} \sum _{i\in I}FC_i\cong \lim FH \end{aligned}$$

induced by the image of the limiting cones.

Proposition 4.9

Let \({{\mathcal {C}}}\) be small and have finite multilimits. A functor \(F:{{\mathcal {C}}}\rightarrow {{\mathcal {E}}}\) into an infinitary lextensive category \({{\mathcal {E}}}\) is flat if and only if it is finitely multicontinuous.

Proof

By Proposition 2.8, F is flat if and only if for any finite diagram \(H:{{\mathcal {D}}}\rightarrow {{\mathcal {C}}}\) there is an isomorphism

$$\begin{aligned} \lim FH\cong (\lim YH)*F \end{aligned}$$

Now, since \({{\mathcal {C}}}\) has finite multilimits, \(\lim YH\cong \sum _i{{\mathcal {C}}}(-,C_i)\) with \((C_i)_{i\in I}\) the multilimit of H; therefore

$$\begin{aligned} (\lim YH)*F \cong \sum _i{{\mathcal {C}}}(-,C_i)*F\cong \sum _i FC_i. \end{aligned}$$

This shows that F is flat if and only if it is finitely multicontinuous. \(\square \)

Remark 4.10

All this can be captured in the context of Sect. 4.6, where we discuss generalizations to the enriched context.

4.3 Fc-limits and pretopoi

Let \(\Phi _{\text {pret}}=\Phi _{\text {ex}}\cup \Phi _{\text {lext}}\) be the classes of lex weights for pretopoi. A functor is \(\Phi _{\text {pret}}\)-exact if and only if it is lex and preserves finite coproducts and regular epimorphisms; these are usually called models. Given pretopoi \({{\mathcal {E}}}\) and \({{\mathcal {F}}}\), denote by \(\text {Mod}({{\mathcal {E}}},{{\mathcal {F}}})\) the full subcategory of \([{{\mathcal {E}}},{{\mathcal {F}}}]\) spanned by the models of \({{\mathcal {E}}}\) in \({{\mathcal {F}}}\).

The notion of fc-limit was first considered in [33, Definition 3.1] (with the name fm-limit), and can be thought as a generalization of that of weak limit and multi-finite limit. See also [6] where fc-limits and colimits are used in the context of flat functors.

Definition 4.11

([33]) We say that a diagram \(H:{{\mathcal {D}}}\rightarrow {{\mathcal {C}}}\) has a fc-limit in \({{\mathcal {C}}}\) if there exists a finite family of objects \((C_i)_{i\le n}\) in \({{\mathcal {C}}}\) together with cones \(\delta _i:\Delta C_i\rightarrow H\) such that every other cone \(e:\Delta E\rightarrow H\) factors as \(e=\delta _i\circ f\) for some \(i\in I\) and \(f:E \rightarrow C_i\) in \({{\mathcal {C}}}\). We say that \({{\mathcal {C}}}\) has finite fc-limits if it has all fc-limits indexed by finite diagrams.

Equivalently, \((C_i)_{i\le n}\) is a fc-limit of H if there exists a regular epimorphism

$$\begin{aligned} \sum _{i\le n}{{\mathcal {C}}}(-,C_i)\twoheadrightarrow \lim YH \end{aligned}$$

in \([{{\mathcal {C}}}^\text {op},\textbf{Set}]\). Like weak limits, fc-limits are not uniquely determined by the universal property.

The existence of finite fc-limit is what allows to consider free pretopos completions. Note that, by Corollary 5.8, the ultraproducts of \(\text {Flat}({{\mathcal {C}}},\textbf{Set})\) in point (2) below satisfy an universal property in the sense of Definition 5.1.

As we outline in the proof, the equivalence of (2) and (3) was first shown in [6], while \((3)\Rightarrow (1)\) is [32, Theorem 5.3].

Proposition 4.12

The following are equivalent for a small category \({{\mathcal {C}}}\) :

  1. (1)

    \({{\mathcal {C}}}\) has a free pretopos completion;

  2. (2)

    \(\text {Flat}({{\mathcal {C}}},\textbf{Set})\) is closed under ultraproducts in \([{{\mathcal {C}}},\textbf{Set}]\) ;

  3. (3)

    \({{\mathcal {C}}}\) has finite fc-limits.

Proof

\((1)\Rightarrow (2)\). Let \(\Phi _{\text {pret}}({{\mathcal {C}}})\) be the free pretopos completion of \({{\mathcal {C}}}\); then

$$\begin{aligned} \text {Flat}({{\mathcal {C}}},\textbf{Set})\simeq \text {Mod}(\Phi _{\text {ex}}({{\mathcal {C}}}),\textbf{Set}). \end{aligned}$$

In particular, \(\text {Flat}({{\mathcal {C}}},\textbf{Set})\) can be identified with a full subcategory of \({{\mathcal {K}}}:=[\Phi _{\text {ex}}({{\mathcal {C}}}),\textbf{Set}]\) closed under ultraproducts. Since restricting along the inclusion \({{\mathcal {C}}}\hookrightarrow \Phi _{\text {pret}}({{\mathcal {C}}})\) preserves all limits and colimits, it also preserves ultraproducts. Therefore \(\text {Flat}({{\mathcal {C}}},\textbf{Set})\) is closed under ultraproducts \([{{\mathcal {C}}},\textbf{Set}]\).

\((2)\Rightarrow (3)\). Let \({{\mathcal {K}}}=[{{\mathcal {C}}},\textbf{Set}]\), so that \({{\mathcal {K}}}_f\) coincides with the free cocompletion of \({{\mathcal {C}}}^\text {op}\) under finite colimits. Then the fact that (2) implies (3) is given by putting together Theorem 4.2 (with \({{\mathcal {A}}}={{\mathcal {K}}}_f\)) and Theorem 3.3 of [6].

\((3)\Rightarrow (1)\). We generalize the argument in the proof of Proposition 4.2. Assume that \({{\mathcal {C}}}\) has finite fc-limits and consider the full subcategory \({{\mathcal {D}}}\) of \([{{\mathcal {C}}}^\text {op},\textbf{Set}]\) spanned by those functors \(M:{{\mathcal {C}}}^\text {op}\rightarrow \textbf{Set}\) which arise as

$$\begin{aligned} YA_1+\cdots +YA_n{\mathop {\twoheadrightarrow }\limits ^{q}} M {\mathop {\rightarrowtail }\limits ^{m}} YB_1\times \cdots \times YB_m \end{aligned}$$

with q a regular epimorphism and m a monomorphism. Then \({{\mathcal {D}}}\) contains the representables and any finite limit of them; indeed, any finite limit of representables is covered by a finite coproduct of representable since \({{\mathcal {C}}}\) is has finite fc-limits, and is a subobject of a finite product of representables by finiteness of the limit itself. To conclude we need to show that \({{\mathcal {D}}}\subseteq \Phi ^\diamond _{\text {pret}}[{{\mathcal {C}}}]\), so that we can apply Theorem 3.13.

Consider \(M\in {{\mathcal {D}}}\) and a flat functor \(F:{{\mathcal {C}}}\rightarrow {{\mathcal {E}}}\) into a pretopos \({{\mathcal {E}}}\); we need to prove that \(M*F\) exists in \({{\mathcal {E}}}\) and is preserved by any pretopos functor out of \({{\mathcal {E}}}\). Given a presentation for M as above, we can see M as the coequalizer of the kernel pair of \(mq:\textstyle \sum _{i}YA_i\rightarrow \textstyle \prod _{j}YB_j\). Such kernel pair, being computed pointwise, is isomorphic to the coproduct of the kernel pairs of each i-component \((mq)_i:YA_i\rightarrow \textstyle \prod _{j}YB_j\), which in turn can be seen as a finite limit of representables involving maps \(h_{i,j}:A_i\rightarrow B_j\). Now, \(-*F\) preserves all colimits and any finite limit of representables (since F is flat); thus \(M*F\) can be computed as the coproduct, indexed on \(i\le n\), of the coequalizer of the kernel pairs of \((Fh_{i,1},\cdots ,Fh_{i,n}):FA_i\rightarrow \textstyle \prod _j FB_j\). Such combination of limits and colimits exists in any pretopos and are preserved by any pretopos functor by definition. \(\square \)

Remark 4.13

Following [6, Section 2], we say that a fully faithful inclusion \(J:{{\mathcal {A}}}\hookrightarrow {{\mathcal {K}}}\) is fc-reflective if for any \(K\in {{\mathcal {K}}}\) there exists a finite family \((A_i)_{i\le n}\) in \({{\mathcal {A}}}\) together with a regular epimorphism

$$\begin{aligned} \sum _{i\le n}{{\mathcal {A}}}(A_i,-)\twoheadrightarrow {{\mathcal {K}}}(K,J-). \end{aligned}$$

Then [6, 3.3] says that the conditions of the proposition above are further equivalent to

  1. (4)

    \({{\mathcal {C}}}^\text {op}\) is fc-reflective in \(\text {Fin}({{\mathcal {C}}}^\text {op})\) , the free cocompletion of \({{\mathcal {C}}}^\text {op}\) under finite colimits.

In general the inclusion \(\text {Flat}({{\mathcal {C}}}^\text {op},\textbf{Set})\hookrightarrow [{{\mathcal {C}}}^\text {op},\textbf{Set}]\) is not fc-reflective [6, Remark 4.6].

It remains to characterize flat functors out of a category \({{\mathcal {C}}}\) with finite fc-limits.

Definition 4.14

([32]) Let \(F:{{\mathcal {C}}}\rightarrow {{\mathcal {E}}}\) be a functor from category \({{\mathcal {C}}}\) with finite fc-limits to a pretopos \({{\mathcal {E}}}\). We say that F is finitely fc-continuous if for any finite diagram \(H:{{\mathcal {D}}}\rightarrow {{\mathcal {C}}}\) and any fc-limit \((C_i)_{i\le n}\) of H in \({{\mathcal {C}}}\), the comparison map

$$\begin{aligned} \sum _{i\le n} FC_i\twoheadrightarrow \lim (FH) \end{aligned}$$

is a regular epimorphism.

Remark 4.15

The definition above was first considered in [32, Section 5] to characterize flat functors into a pretopos \({{\mathcal {E}}}\) with respect to the precanonical topology on it. See Remark 2.5

Proposition 4.16

Let \({{\mathcal {C}}}\) be small and have finite fc-limits. A functor \(F:{{\mathcal {C}}}\rightarrow {{\mathcal {E}}}\) into a pretopos \({{\mathcal {E}}}\) is flat if and only if it is finitely fc-continuous.

Proof

Let \({{\mathcal {D}}}\) be the full subcategory of \([{{\mathcal {C}}}^\text {op},\textbf{Set}]\) described in the proof above, and let \(J:{{\mathcal {C}}}\rightarrow {{\mathcal {D}}}\) be the inclusion. Arguing as in [16], it is easy to see that \({{\mathcal {D}}}\) is closed in \([{{\mathcal {C}}}^\text {op},\textbf{Set}]\) under finite limits, and that if F is finitely fc-continuous then \(\text {Lan}_JF\) is left covering. Thus \(\text {Lan}_JF\) is lex by [16, Proposition 20] and hence, since \({{\mathcal {C}}}_l\subseteq {{\mathcal {D}}}\), F is flat.

Conversely, assume that \(F:{{\mathcal {C}}}\rightarrow {{\mathcal {E}}}\) is flat. For any finite diagram \(H:{{\mathcal {D}}}\rightarrow {{\mathcal {C}}}\), and any fc-limit \((C_i)_{i\le n}\) of H we have a regular epimorphism \(\textstyle \sum _{i\le n}{{\mathcal {C}}}(-,C_i)\twoheadrightarrow \lim YH\). Applying the functor \(-*F\) we obtain a regular epimorphism

$$\begin{aligned} \sum _{i\le n}FC_i\twoheadrightarrow \lim YH*F. \end{aligned}$$

Composing this with the isomorphism \((\lim YH)*F\cong \lim FH\) given by flatness of F, we obtain that F is finitely fc-continuous. \(\square \)

4.4 Multi-finite limits and lextensive categories

Let \(\Phi _{\text {lext}}\) be the classes of lex weights for lextensive categories (see [25, 5.3]). In this setting \(\Phi _{\text {lext}}\)-lex colimits are just finite coproducts; thus a functor is \(\Phi _{\text {lext}}\)-exact if and only if it is lex and preserves finite coproducts. Given lextensive categories \({{\mathcal {E}}}\) and \({{\mathcal {F}}}\), denote by \(\text {Lext}({{\mathcal {E}}},{{\mathcal {F}}})\) the full subcategory of \([{{\mathcal {E}}},{{\mathcal {F}}}]\) spanned by the \(\Phi _{\text {lext}}\)-exact functors.

First let us introduce the finite-indexed version of multilimits:

Definition 4.17

We say that a diagram \(H:{{\mathcal {D}}}\rightarrow {{\mathcal {C}}}\) has a multi-finite limit in \({{\mathcal {C}}}\) if there exists a finite family of objects \((C_i)_{i\le n}\) in \({{\mathcal {C}}}\) together with cones \(\delta _i:\Delta C_i\rightarrow H\) which form the multilimit of H in \({{\mathcal {C}}}\). We say that \({{\mathcal {C}}}\) has finite multi-finite limits if it has all multi-finite limits indexed by finite diagrams.

Since multi-finite limits are in particular multilimits, a finite family \((C_i)_{i\le n}\) is the multi-finite limit of H if and only if there exists an isomorphism

$$\begin{aligned} \sum _{i\le n}{{\mathcal {C}}}(-,C_i) \cong \lim YH \end{aligned}$$

in \([{{\mathcal {C}}}^\text {op},\textbf{Set}]\).

Cauchy completeness below needs to be assumed for the same reasons explained above Proposition 4.7.

Proposition 4.18

The following are equivalent for a small Cauchy complete category \({{\mathcal {C}}}\) :

  1. (1)

    \({{\mathcal {C}}}\) has a free lextensive completion;

  2. (2)

    \(\text {Flat}({{\mathcal {C}}},\textbf{Set})\) is closed under connected limits and ultraproducts in \([{{\mathcal {C}}},\textbf{Set}]\) ;

  3. (3)

    \({{\mathcal {C}}}\) has finite multi-finite limits.

Proof

\((1)\Rightarrow (2)\). If the free lextensive completion of \({{\mathcal {C}}}\) exists then also the free infinitary lextensive completion exists (by [25, Theorem 7.7]); thus \(\text {Flat}({{\mathcal {C}}},\textbf{Set})\) has connected limits by Proposition 4.7. Now, since also the free pretopos completion exists in this case (by the same theorem of [25]), the category \(\text {Flat}({{\mathcal {C}}},\textbf{Set})\) is also closed under ultraproducts in \([{{\mathcal {C}}},\textbf{Set}]\) by Proposition 4.12, showing (2).

\((2)\Rightarrow (3)\). Again by Propositions 4.7 and 4.12, \({{\mathcal {C}}}\) has both finite multilimits and finite fc-limits. The existence of these implies that the finite multilimits of \({{\mathcal {C}}}\) are actually multi-finite.

\((3)\Rightarrow (1)\). Let \(\text {Fam}_f({{\mathcal {C}}})\) be the closure of the representables in \([{{\mathcal {C}}}^\text {op},\textbf{Set}]\) under finite coproducts (that is, the finite coproduct completion of \({{\mathcal {C}}}\)); then it is easy to see that \(\text {Fam}_f({{\mathcal {C}}})\subseteq \Phi _{\text {lext}}^\diamond [{{\mathcal {C}}}]\) for any \({{\mathcal {C}}}\). Thus, if \({{\mathcal {C}}}\) has finite multi-finite limits then \(\Phi _{\text {lext}}^\diamond [{{\mathcal {C}}}]\) has finite limits of representables and the free lextensive completion exists by Theorem 3.13. \(\square \)

Note that then \(\text {Fam}_f({{\mathcal {C}}})\) is the free lextensive completion of \({{\mathcal {C}}}\). In fact, it is easy to see that if \({{\mathcal {C}}}\) has finite multi-finite limits then \(\text {Fam}_f({{\mathcal {C}}})\) is lex, and hence a lextensive category.

The following definition is a variation of the notion of finitely multicontinuous functor:

Definition 4.19

Let \(F:{{\mathcal {C}}}\rightarrow {{\mathcal {E}}}\) be a functor from a category \({{\mathcal {C}}}\) with finite multi-finite limits into a lex category \({{\mathcal {E}}}\) with finite coproducts. We say that F merges finite multi-finite limits if for any finite diagram \(H:{{\mathcal {D}}}\rightarrow {{\mathcal {C}}}\) with multi-finite limit \((C_i)_{i\le n}\) there is an isomorphism

$$\begin{aligned} \sum _{i\le n}FC_i\cong \lim FH \end{aligned}$$

induced by the image of the limiting cones.

Proposition 4.20

Let \({{\mathcal {C}}}\) be small and have finite multi-finite limits. A functor \(F:{{\mathcal {C}}}\rightarrow {{\mathcal {E}}}\) into a lextensive category \({{\mathcal {E}}}\) is flat if and only if it merges finite multi-finite limits.

Proof

Argue exactly as in the proof of Proposition 4.9. \(\square \)

4.5 Polylimits

Let us now define a class \(\Phi \) of lex colimits that wasn’t considered in [25]; this will describe the quasi-based lex categories of [31] as free \(\Phi \)-exact completions.

Let \({{\mathcal {C}}}\) be a category with an initial object. Following [57, Definition 4.10], we say that a diagram \(H:{{\mathcal {G}}}\rightarrow {{\mathcal {C}}}\), indexed on a small groupoid \({{\mathcal {G}}}\), is a free action if for each \(g\ne h:x\rightarrow y\) in \({{\mathcal {G}}}\) the equalizer of (HgHh) is the initial object of \({{\mathcal {C}}}\). We say that \({{\mathcal {C}}}\) has colimits of free actions if it has colimits of diagrams taken along a free action. Note that every diagram from a discrete groupoid \({{\mathcal {G}}}\) is free, hence coproducts are colimits of free actions.

Let \(\Phi \) be the class of lex weights \(M:C^\text {op}\rightarrow \textbf{Set}\), where \({{\mathcal {C}}}\) is lex and \(M\cong {\text {colim}}(YH)\) with \(H:{{\mathcal {G}}}\rightarrow {{\mathcal {C}}}\) a groupoid-indexed diagram for which YH is a free action in \([{{\mathcal {C}}}^\text {op},\textbf{Set}]\). In particular, by the arguments above, \(\Phi \) contains the class \(\Phi _{\text {ilext}}\) of Sect. 4.2.

Remark 4.21

It follows that the full subcategory \(\Phi [{{\mathcal {C}}}]\) of \([{{\mathcal {C}}}^\text {op},\textbf{Set}]\) spanned by the weights in \(\Phi \) with domain \({{\mathcal {C}}}^\text {op}\), coincides with the category \(\mathfrak F_1{{\mathcal {C}}}\) considered in [42, 57].

Lemma 4.22

If a lex category \({{\mathcal {E}}}\) has \(\Phi \)-lex colimits then it has colimits of free actions. If \({{\mathcal {E}}}\) is \(\Phi \)-exact, \(M:{{\mathcal {C}}}^\text {op}\rightarrow \textbf{Set}\) is in \(\Phi \) , and \(K:{{\mathcal {C}}}\rightarrow {{\mathcal {E}}}\) is lex, then

$$\begin{aligned} M*K\cong {\text {colim}}KH \end{aligned}$$

for some \(H:{{\mathcal {G}}}\rightarrow {{\mathcal {C}}}\) for which KH is a free action in \({{\mathcal {E}}}\). In particular a lex functor \(F:{{\mathcal {E}}}\rightarrow {{\mathcal {F}}}\) , out of a \(\Phi \)-exact \({{\mathcal {E}}}\) , preserves \(\Phi \)-lex colimits if and only if it preserves colimits of free actions.

Proof

Suppose that \({{\mathcal {E}}}\) has \(\Phi \)-lex colimits; then in particular it has all coproducts and hence an initial object. Now, for any free action \(H:{{\mathcal {G}}}\rightarrow {{\mathcal {E}}}\), the weight \(M:={\text {colim}}(YH)\) in \([{{\mathcal {E}}}^\text {op},\textbf{Set}]\) is by definition in \(\Phi \). Thus the \(\Phi \)-lex colimit \(M*1_{{\mathcal {E}}}\) exists in \({{\mathcal {C}}}\) by hypothesis. But \(M*1_{{\mathcal {E}}}\cong {\text {colim}}H\); therefore \({{\mathcal {E}}}\) has colimits of free actions.

Assume now that \({{\mathcal {E}}}\) is \(\Phi \)-exact and consider \(M:{{\mathcal {C}}}^\text {op}\rightarrow \textbf{Set}\) in \(\Phi \) and a lex \(K:{{\mathcal {C}}}\rightarrow {{\mathcal {E}}}\). Since by definition \(M\cong {\text {colim}}(Y_{{{\mathcal {C}}}}H)\) with \(H:{{\mathcal {G}}}\rightarrow {{\mathcal {C}}}\) and \(Y_{{{\mathcal {C}}}}H\) a free action, we have an isomorphism \(M*K\cong {\text {colim}}KH\); thus to conclude it is enough to prove that KH is a free action in \({{\mathcal {E}}}\).

Consider the isomorphism \(Y_{{{\mathcal {E}}}}.K.H\cong {{\mathcal {P}}}K.Y_{{{\mathcal {C}}}}.H\), where \({{\mathcal {P}}}K:{{\mathcal {P}}}{{\mathcal {C}}}\rightarrow {{\mathcal {P}}}{{\mathcal {E}}}\) is the cocontinuous functor induced by taking free cocompletions. Since \({{\mathcal {P}}}K\) is lex by [18, Remark 6.6] (because K was), it follows that \(Y_{{{\mathcal {E}}}}KH\) is still a free action (since \(Y_{{{\mathcal {C}}}}H\) was). Now, by [25, Proposition 3.4] the inclusion \(J:{{\mathcal {E}}}\rightarrow \Phi _l{{\mathcal {E}}}\) has a lex left adjoint \(T:\Phi _l{{\mathcal {E}}}\rightarrow {{\mathcal {E}}}\). Since \(\Phi _l{{\mathcal {E}}}\) is closed in \({{\mathcal {P}}}{{\mathcal {E}}}\) under finite limits and the initial object, the functor \(JKH:{{\mathcal {C}}}\rightarrow \Phi _l{{\mathcal {E}}}\) (obtained by restricting the codomain of \(Y_{{{\mathcal {C}}}}KH\)) is a free action. Then, since T is lex and preserves (any existing colimit and in particular) the initial object of \(\Phi _l{{\mathcal {E}}}\), the diagram \(KH\cong TJKH\) is also a free action, as desired. \(\square \)

As a consequence we can characterize \(\Phi \)-exact categories as follows:

Corollary 4.23

A category \({{\mathcal {E}}}\) is \(\Phi \)-exact if and only if it can be identified with a full subcategory of a small-exact \({{\mathcal {T}}}\) closed under finite limits and colimits of free actions.

Proof

If \({{\mathcal {E}}}\) is \(\Phi \)-exact, this follows by Definition 3.1 and by the lemma above. Conversely, assume that \(J:{{\mathcal {E}}}\rightarrow {{\mathcal {T}}}\) is a fully faithful embedding of \({{\mathcal {E}}}\) in a small-exact \({{\mathcal {T}}}\), that \({{\mathcal {E}}}\) has finite limits and colimits of free actions, and that J preserves them. It is enough to prove that \({{\mathcal {E}}}\) is also closed under \(\Phi \)-lex colimits.

Given \(M:{{\mathcal {C}}}^\text {op}\rightarrow \textbf{Set}\) in \(\Phi \) and a lex \(K:{{\mathcal {C}}}\rightarrow {{\mathcal {E}}}\), since every small-exact is \(\Phi \)-exact, the lemma above implies that \(M*JK\cong {\text {colim}}JKH\) for some \(H:{{\mathcal {G}}}\rightarrow {{\mathcal {C}}}\) for which JKH is a free action. But J is fully faithful, lex, and preserves the initial object; thus KH is also a free action in \({{\mathcal {E}}}\). It follows that \({\text {colim}}KH\) exists in \({{\mathcal {E}}}\) and is preserved by J. Again by fully faithfulness, this implies that \(M*K\cong {\text {colim}}KH \) exists in \({{\mathcal {E}}}\) and is preserved by J. \(\square \)

The virtual limits involved in this kind of free exact completions are polylimits:

Definition 4.24

([44, Definition 0.12]) Let \(H:{{\mathcal {C}}}\rightarrow {{\mathcal {A}}}\) be a diagram in a category \({{\mathcal {A}}}\). A polylimit of H is given by a family of cones \((c_i:\Delta A_i\rightarrow H)_{i\in I}\), with \(A_i\in {{\mathcal {A}}}\), with the following property: for any cone \(c:\Delta C\rightarrow H\) there exists a unique \(i\in I\) and a map \(f:C\rightarrow A_i\) in \({{\mathcal {A}}}\) such that \(c=c_i\circ \Delta f\), moreover f is unique up to unique automorphism of \(A_i\).

We are now ready to prove the following. Once again Cauchy completeness needs to be assumed for the same reasons explained above Proposition 4.7. By wide pullbacks we mean limits of diagrams of the form \((h_i:A_i\rightarrow B)_{i\in I}\) for a possibly infinite set I.

Proposition 4.25

The following are equivalent for a small Cauchy complete category \({{\mathcal {C}}}\) :

  1. (1)

    \({{\mathcal {C}}}\) has a free \(\Phi \)-exact completion;

  2. (2)

    \(\text {Flat}({{\mathcal {C}}},\textbf{Set})\) has wide pullbacks;

  3. (3)

    \({{\mathcal {C}}}\) has finite polylimits.

Proof

\((1)\Rightarrow (2)\). Let \(\Phi _l{{\mathcal {C}}}\) be the free \(\Phi \)-exact completion of \({{\mathcal {C}}}\); then

$$\begin{aligned} \text {Flat}({{\mathcal {C}}},\textbf{Set})\simeq \Phi \text {-Ex}(\Phi _l{{\mathcal {C}}},\textbf{Set}). \end{aligned}$$

By Lemma 4.22 above, a functor \(\Phi _l{{\mathcal {C}}}\rightarrow \textbf{Set}\) is \(\Phi \)-exact if and only if it preserves finite limits and colimits of free actions. Since these commute in \(\textbf{Set}\) with wide pullbacks (see [31, Proposition 1.4], where colimits of free actions are called quasi-coproducts), the category \(\Phi \text {-Ex}(\Phi _l{{\mathcal {C}}},\textbf{Set})\) is closed in the presheaf category under wide pullbacks. Thus (2) follows.

\((2)\Rightarrow (3)\). This is a direct consequence of the duality theorem of [31] which requires \({{\mathcal {C}}}\) to be Cauchy complete — see also [42, Proposition 4.28] and [57, Section 4.2].

\((3)\Rightarrow (1)\). If \({{\mathcal {C}}}\) has finite polylimits the full subcategory \({{\mathcal {D}}}:=\mathfrak F_1{{\mathcal {C}}}\) of \([{{\mathcal {C}}}^\text {op},\textbf{Set}]\), spanned by colimits of free actions of representables in \([{{\mathcal {C}}}^\text {op},\textbf{Set}]\) is closed under finite limits and colimits of free actions (by [42, 4.28] and [57, 3.9]) making it \(\Phi \)-exact. Let \(K:{{\mathcal {C}}}\hookrightarrow {{\mathcal {D}}}\) be the inclusion; it is now standard to see that a functor \(F:{{\mathcal {C}}}\rightarrow {{\mathcal {E}}}\), into a \(\Phi \)-exact \({{\mathcal {E}}}\), is flat if and only if \(\text {Lan}_KF\) is lex and preserves colimits of free actions. Therefore \({{\mathcal {D}}}\) is the free \(\Phi \)-exact completions of \({{\mathcal {C}}}\) (and coincides with \(\Phi _l{{\mathcal {C}}}\)). \(\square \)

It follows from the proof, that \({{\mathcal {E}}}\) is the free \(\Phi \)-exact completion of a small category \({{\mathcal {C}}}\) with finite polylimits, if and only if \({{\mathcal {E}}}\simeq \mathfrak F_1{{\mathcal {C}}}\) and is lex, if and only if it is quasi-based in the sense of [31, Section 3] (thanks to [42, 4.2.1]).

As with the other examples, we can characterize flat functors out of a category \({{\mathcal {C}}}\) with finite polylimits. In fact, an easy computation shows that \(F:{{\mathcal {C}}}\rightarrow {{\mathcal {E}}}\), into a \(\Phi \)-exact \({{\mathcal {E}}}\), is flat if and only if it is finitely polycontinuous in the sense of [31, 2.3].

4.6 \(\Psi ^+\)-virtual limits

For this section we fix a weakly sound class of weights \(\Psi \) as defined in [42, 4.4], which generalizes the original concept of [1]. In short, \(\Psi \) is weakly sound if any small and \(\Psi \)-continuous \({{\mathcal {V}}}\)-functor \(M:{{\mathcal {A}}}\rightarrow {{\mathcal {V}}}\) (from a \(\Psi \)-complete \({{\mathcal {A}}}\) for which the free limit completion \({{\mathcal {P}}}^\dagger {{\mathcal {A}}}\) is complete) is \(\Psi \)-flat, meaning that M-weighted colimits commute in \({{\mathcal {V}}}\) with \(\Psi \)-limits.

For a list of examples see [42, 4.8]. Denote by \(\Psi ^+\) be the corresponding class of weights, with small domain, whose colimits commute in \({{\mathcal {V}}}\) with \(\Psi \)-limits.

We consider the class of lex weights \(\Phi \) induced by \(\Psi \) as follows: for any weight \(M:{{\mathcal {C}}}^\text {op}\rightarrow {{\mathcal {V}}}\) with small domain, consider the inclusion \(J:{{\mathcal {C}}}\rightarrow \text {Fin}({{\mathcal {C}}})\) of \({{\mathcal {C}}}\) into its free completion under finite colimits, then we let \(\text {Lan}_{J^\text {op}}M\in \Phi \) if and only if \(M\in \Psi ^+\).

In this setting \(\Phi \)-lex colimits in a lex \({{\mathcal {V}}}\)-category are just \(\Psi ^+\)-colimits, and a \(\Phi \)-exact \({{\mathcal {V}}}\)-functor is one that preserves finite limits and \(\Psi ^+\)-colimits. This is because, given \(M\in \Psi ^+\) as above and \(H:{{\mathcal {C}}}\rightarrow {{\mathcal {E}}}\) into a lex \({{\mathcal {V}}}\)-category \({{\mathcal {E}}}\), the \(\Psi ^+\)-colimit \(M*H\) exists if and only if the \(\Phi \)-lex colimit

$$\begin{aligned} \text {Lan}_{J^\text {op}}M*\text {Ran}_JH \end{aligned}$$

exists, and in that case they coincide (here \(\text {Ran}_JH\) exists and is lex by definition of J).

The notion of limit below was first considered in [34, Definition 4.3] and studied more recently in [42, 57].

Definition 4.26

Given a \({{\mathcal {V}}}\)-category \({{\mathcal {C}}}\), a weight \(M:{{\mathcal {D}}}\rightarrow {{\mathcal {V}}}\), and \(H:{{\mathcal {D}}}\rightarrow {{\mathcal {C}}}\); we say that the \(\Psi ^+\)-virtual limit of H weighted by M exists in \({{\mathcal {C}}}\) if

$$\begin{aligned}{}[{{\mathcal {D}}},{{\mathcal {V}}}](M,{{\mathcal {C}}}(-,H)):{{\mathcal {C}}}^\text {op}\rightarrow {{\mathcal {V}}}\end{aligned}$$

lies in \(\Psi ^+({{\mathcal {B}}})\). We say that \({{\mathcal {B}}}\) is finitely \(\Psi ^+\)-virtually complete if it has all \(\Psi ^+\)-virtual limits weighted by a finite weight M.

Since \([{{\mathcal {C}}},{{\mathcal {V}}}](M,{{\mathcal {B}}}(-,H))\cong \{M,YH\}\), the \(\Psi ^+\)-virtual limit in \({{\mathcal {C}}}\) exists if and only if the \({{\mathcal {V}}}\)-functor \(\{M,YH\}\) in \([{{\mathcal {C}}}^\text {op},{{\mathcal {V}}}]\) is a \(\Psi ^+\)-colimit of representables. Then our characterization Theorem 3.13 implies:

Proposition 4.27

The following are equivalent for a small and Cauchy complete \({{\mathcal {V}}}\)-category \({{\mathcal {C}}}\) :

  1. (1)

    \({{\mathcal {C}}}\) has a free \(\Phi \)-exact completion;

  2. (2)

    \(\text {Flat}({{\mathcal {C}}},{{\mathcal {V}}})\) has \(\Psi \)-limits;

  3. (3)

    \({{\mathcal {C}}}\) is finitely \(\Psi ^+\)-virtually complete.

In that case then \(\Phi _l({{\mathcal {C}}})=\Psi ^+({{\mathcal {C}}})\).

Proof

If the free \(\Phi \)-exact completion of \({{\mathcal {C}}}\) exists then

$$\begin{aligned} \text {Flat}({{\mathcal {C}}},{{\mathcal {V}}})\simeq \Phi \text {-Ex}(\Phi _l({{\mathcal {C}}}),{{\mathcal {V}}}) \end{aligned}$$

and has \(\Psi \)-limits since these commute is \({{\mathcal {V}}}\) with \(\Psi ^+\)-colimits. Thus \((1)\Rightarrow (2)\) holds. For \((2)\Rightarrow (3)\) the \({{\mathcal {V}}}\)-category \({{\mathcal {C}}}\) is finitely \(\Psi ^+\)-virtually complete by [57, Theorem 3.8] (applied to \(\mathfrak C=\Psi ^+\)).

\((3)\Rightarrow (1)\). The free cocompletion under \(\Psi ^+\)-colimits \(\Psi ^+({{\mathcal {C}}})\) is contained in \(\Phi ^\diamond [{{\mathcal {C}}}]\) since, independently of the colimits being taken along a flat diagram, \(\Psi ^+\)-colimits exist in any \(\Phi \)-exact \({{\mathcal {V}}}\)-category and are preserved by any \(\Phi \)-exact \({{\mathcal {V}}}\)-functor by definition. Thus, if \({{\mathcal {C}}}\) is finitely \(\Psi ^+\)-virtually complete then \(\Phi _{\text {lext}}^\diamond [{{\mathcal {C}}}]\) has finite limits of representables and the free \(\Phi \)-exact completion exists by Theorem 3.13.

The assertion that \(\Phi _l({{\mathcal {C}}})=\Psi ^+({{\mathcal {C}}})\) follows from the fact that \(\Psi ^+({{\mathcal {C}}})\) is contained in \(\Phi _l({{\mathcal {C}}})\), has \(\Phi \)-lex colimits (by definition) and is lex by [57, Corollary 3.9]. \(\square \)

Example 4.28

The case where \({{\mathcal {V}}}=\textbf{Set}\) and \(\Psi \) be the weakly sound class of finite limits, so that \(\Phi \)-lex colimits are just filtered colimits; then \(\Phi \)-exactness has been studied in [25, Section 5.9].

Example 4.29

Let \({{\mathcal {V}}}=\textbf{Cat}\) and \(\Psi \) be the weakly sound class generated by connected conical limits and powers by connected categories [42, 4.8(11)], so that \(\Phi \)-lex colimits are given by small coproducts (and splitting of idempotents). In this case \(\Phi \)-exactness determines a 2-categorical generalization of the infinitary lextensive categories from Sect. 4.2.

5 Universal ultraproducts

Given a full subcategory \({{\mathcal {M}}}\) of a presheaf category \([{{\mathcal {C}}},\textbf{Set}]\) which is closed under the construction of categorical ultraproducts (see below), it is not true in general that these satisfy an universal property in \({{\mathcal {M}}}\) (see [12]). The aim of this section is to prove that instead the ultraproducts appearing in the statements of Propositions 4.12 and 4.18 for \({{\mathcal {M}}}=\text {Flat}({{\mathcal {C}}},\textbf{Set})\), do satisfy an universal property, which we shall describe in Definition 5.1.

Given a category \({{\mathcal {M}}}\) with products, categorical ultraproducts can be described as filtered colimits of products of elements of \({{\mathcal {M}}}\) (see for instance [45]). More precisely, let \({{\mathcal {U}}}\) be an ultrafilter on a set X and \((M_x)_{x\in X}\) be an X-indexed family of objects of \({{\mathcal {M}}}\), the categorical ultraproduct of \((M_x)_{x\in X}\) over \({{\mathcal {U}}}\) (if it exists) is the colimit

$$\begin{aligned} \textstyle \prod _{{\mathcal {U}}}M_x:={\mathop {{\text {colim}}}\limits _{S\in {{\mathcal {U}}}}}\ ( \prod _{s\in S} M_s ). \end{aligned}$$
(3)

Note that this colimit is filtered since whenever \(S,T\in {{\mathcal {U}}}\) then also \(S\cap T\in {{\mathcal {U}}}\).

This means in particular that we have a colimiting cocone

$$\begin{aligned} (\delta _S:\prod _{s\in S} M_s\longrightarrow \textstyle \prod _{{\mathcal {U}}}M_x)_{S\in {{\mathcal {U}}}} \end{aligned}$$

which is universal among all the other cocones over \((\textstyle \prod _{s\in S} M_s)_{S\in {{\mathcal {U}}}}\).

Naturally, when \({{\mathcal {M}}}\) does not have products the argument above does not work, leading one to define ultraproducts on a category as some additional structure. Below we exhibit a way to express the universal property of ultraproducts which avoids the necessity of dealing with products, and hence can be implemented in any category.

Let us go back to a cocone

$$\begin{aligned} (c_S:\prod _{s\in S} M_s\longrightarrow C)_{S\in {{\mathcal {U}}}} \end{aligned}$$

over the directed diagram \((\textstyle \prod _{s\in S} M_s)_{S\in {{\mathcal {U}}}}\), and let us embed \({{\mathcal {M}}}\) into \([{{\mathcal {M}}}^\text {op},\textbf{Set}]\) through the Yoneda embedding; then the cocone corresponds to a cocone of natural transformations

$$\begin{aligned} \left( \prod _{s\in S}{{\mathcal {M}}}(-,M_s) \longrightarrow {{\mathcal {M}}}(-,C)\right) _{S\in {{\mathcal {U}}}} \end{aligned}$$

over \({{\mathcal {U}}}\) in \([{{\mathcal {M}}}^\text {op},\textbf{Set}]\).

Note that, when \(C=\textstyle \prod _{{\mathcal {U}}}M_x\) and the cocone is the colimiting cocone \(\delta \) in \({{\mathcal {M}}}\), then its image \({{\mathcal {M}}}(-,\delta )\) in \([{{\mathcal {M}}}^\text {op},\textbf{Set}]\) does not give a colimiting cocone in \([{{\mathcal {M}}}^\text {op},\textbf{Set}]\). Nonetheless, \({{\mathcal {M}}}(-,\delta )\) is universal among the cocones in \([{{\mathcal {M}}}^\text {op},\textbf{Set}]\) whose codomain is representable (this is exactly the universal property defining the colimit in \({{\mathcal {M}}}\)).

This approach motivates the following definition:

Definition 5.1

Let \({{\mathcal {M}}}\) be a category and \({{\mathcal {U}}}\) be an ultrafilter on a set X. Given an X-indexed family of objects \((M_x)_{x\in X}\), we say that the universal ultraproduct of \((M_x)_{x\in X}\) over \({{\mathcal {U}}}\) exists in \({{\mathcal {M}}}\) if there exists an object \(\textstyle \prod _{{\mathcal {U}}}M_x\in {{\mathcal {M}}}\) together with a cocone

$$\begin{aligned} \left( \delta _S:\prod _{s\in S}{{\mathcal {M}}}(-,M_s) \longrightarrow {{\mathcal {M}}}(-,\textstyle \prod _{{\mathcal {U}}}M_x)\right) _{S\in {{\mathcal {U}}}} \end{aligned}$$

over \({{\mathcal {U}}}\) which is universal among all other cocones with representable codomain. We say that \({{\mathcal {M}}}\) has universal ultraproducts if \(\textstyle \prod _{{\mathcal {U}}}M_x\) exists for any set X, any ultrafilter \({{\mathcal {U}}}\) on X, and any X-indexed family \((M_x)_{x\in X}\) in \({{\mathcal {M}}}\).

It other words, \(\delta \) exhibits \(\textstyle \prod _{{\mathcal {U}}}M_x\in {{\mathcal {M}}}\) as the universal ultraproduct of \((M_x)_{x\in X}\) over \({{\mathcal {U}}}\) if and only if for any other cocone \((c_S:\textstyle \prod _{s\in S}{{\mathcal {M}}}(-,M_s) \longrightarrow {{\mathcal {M}}}(-,N))_{S\in {{\mathcal {U}}}}\) there exists a unique morphism \(f:N\rightarrow \textstyle \prod _{{\mathcal {U}}}M_x\) such that \({{\mathcal {M}}}(-,f)\circ c_S=\delta _S\) for any \(S\in {{\mathcal {U}}}\).

As a consequence of the universal property, if an universal ultraproduct exists in \({{\mathcal {M}}}\) then it is unique up isomorphism.

Remark 5.2

This notion is equivalent to that considered by Börger in [11], by Bui and Németi in [12], and by Rosický in [51]. Consider a category \({{\mathcal {M}}}\), an ultrafilter \({{\mathcal {U}}}\) on a set X, and a X-indexed family of objects \((M_x)_{x\in X}\) in \({{\mathcal {M}}}\). Define the category \(\Sigma \) with objects triples

$$\begin{aligned} (N,S,u_i):=(N\in {{\mathcal {M}}},S\in {{\mathcal {U}}},(u_s:N\rightarrow M_s)_{s\in S}) \end{aligned}$$

and morphisms \((N,S,u_s)\rightarrow (N',S',u'_s)\) being determined by

$$\begin{aligned} (h:N\rightarrow N', S'\subseteq S,\ hu'_s=u_s). \end{aligned}$$

This comes with a projection \(\pi :\Sigma \rightarrow {{\mathcal {M}}}\). Then [11, 12, 51] define the universal ultraproduct of \((M_x)_{x\in X}\) over \({{\mathcal {U}}}\) as the colimit of \(\pi \) in \({{\mathcal {M}}}\). It is easy to see that the universal property defining that colimit is the same as that defining our universal ultraproducts. Thus the two notions coincide.

Remark 5.3

Let \({{\mathcal {M}}}\) have universal ultraproducts; for any ultrafilter \({{\mathcal {U}}}\) on a set X we can define a functor

$$\begin{aligned} \textstyle \prod _{{\mathcal {U}}}(-):{{\mathcal {M}}}^X\longrightarrow {{\mathcal {M}}}\end{aligned}$$

given pointwise by sending a family \((M_x)_{x\in X}\) to its universal ultraproduct \(\textstyle \prod _{{\mathcal {U}}}M_x\). It is easy, but technical, to see that this actually extends to an ultrastructure on \({{\mathcal {M}}}\) in the sense of Lurie [45] and of Di Liberti [19]. We also expect this functor to induce an ultrastructure on \({{\mathcal {M}}}\) in the original sense defined by Makkai [47], but we leave that for the readers to verify.

The result below is an immediate consequence of the definition and the arguments above.

Proposition 5.4

If \({{\mathcal {M}}}\) has products and filtered colimits then it has universal ultraproducts, and they coincide with those defined using products and filtered colimits (3).

The following lemma will be important to recognize when universal ultraproducts exist.

Lemma 5.5

Let \({{\mathcal {K}}}\) be a category with universal ultraproducts and let \(J:{{\mathcal {M}}}\hookrightarrow {{\mathcal {K}}}\) be a full and dense subcategory of \({{\mathcal {K}}}\). If every universal ultraproduct of the form \(\textstyle \prod _{{\mathcal {U}}}JM_x\) in \({{\mathcal {K}}}\) , with \(M_x\in {{\mathcal {M}}}\) , lies in \({{\mathcal {M}}}\) , then \({{\mathcal {M}}}\) has universal ultraproducts and J preserves them.

Proof

Let \({{\mathcal {U}}}\) be an ultrafilter on a set X and \((M_x)_{x\in X}\) be an X-indexed family of objects in \({{\mathcal {M}}}\). By hypothesis there is \(M\in {{\mathcal {M}}}\) such that \(JM\cong \textstyle \prod _{{\mathcal {U}}}JM_x\); we need to show that \(M\cong \textstyle \prod _{{\mathcal {U}}}M_x\) in \({{\mathcal {M}}}\).

By fully faithfulness of J, the colimiting cocone defining \(\textstyle \prod _{{\mathcal {U}}}JM_x\) in \({{\mathcal {K}}}\) gives a unique cocone

$$\begin{aligned} \left( \delta _S:\prod _{s\in S}{{\mathcal {M}}}(-,M_s) \longrightarrow {{\mathcal {M}}}(-,M)\right) _{S\in {{\mathcal {U}}}} \end{aligned}$$

over \({{\mathcal {U}}}\) in \([{{\mathcal {M}}}^\text {op},\textbf{Set}]\). We need to prove that it satisfies the universal property defining the universal ultraproduct.

Note that, since J is dense, then \(J^\text {op}\) is codense and by the dual of [35, 5.31] the functor

$$\begin{aligned} \text {Ran}_{J^\text {op}}:[{{\mathcal {M}}}^\text {op},\textbf{Set}]\longrightarrow [{{\mathcal {K}}}^\text {op},\textbf{Set}] \end{aligned}$$

is fully faithful, continuous, and preserves the representables. Thus every cocone

$$\begin{aligned} \left( c_S:\textstyle \prod _{s\in S}{{\mathcal {M}}}(-,M_s) \longrightarrow {{\mathcal {M}}}(-,N)\right) _{S\in {{\mathcal {U}}}} \end{aligned}$$

extend to a cocone

$$\begin{aligned} \left( d_S:\textstyle \prod _{s\in S}{{\mathcal {K}}}(-,JM_s) \longrightarrow {{\mathcal {K}}}(-,JN)\right) _{S\in {{\mathcal {U}}}} \end{aligned}$$

in \({{\mathcal {K}}}\) defined by \(d_S:=\text {Ran}_J(c_S)\). Moreover every cocone over \({{\mathcal {U}}}\) in \({{\mathcal {K}}}\) as above lies in the image of \(\text {Ran}_{J^\text {op}}\) (again by [35, 5.31] since the functors involved preserve any existing limits) making it the right Kan extension of its restriction to \({{\mathcal {M}}}\).

Now, given any \(c=(c_S)_{S\in {{\mathcal {U}}}}\) as above, by the universal property of universal ultraproducts in \({{\mathcal {K}}}\) applied to \(d=(d_S)_{S\in {{\mathcal {U}}}}\), there is a unique map \(Jf:\textstyle \prod _{{\mathcal {U}}}JM_x\rightarrow JN\) for which precomposition with \({{\mathcal {K}}}(-,Jf)\) maps the colimiting cocone of \(\textstyle \prod _{{\mathcal {U}}}JM_x\) into the cocone d. Restricting along J, the map f also satisfies \({{\mathcal {M}}}(-,f)\circ c_S=\delta _S\). Such morphism f is unique because whenever \({{\mathcal {M}}}(-,f)\circ c_S={{\mathcal {M}}}(-,g)\circ c_S\) then also \({{\mathcal {K}}}(-,Jf)\circ d_S={{\mathcal {K}}}(-,Jg)\circ d_S\); thus \(Jf=Jg\) by the universal property in \({{\mathcal {K}}}\), and hence \(f=g\).

In conclusion M is the universal ultraproduct of the \(M_s\) and is preserved by J. \(\square \)

Proposition 5.6

Let \({{\mathcal {M}}}\) be a category and \({{\mathcal {C}}}\) be a small and dense subcategory of \({{\mathcal {M}}}\) , so that there is an inclusion \({{\mathcal {M}}}\hookrightarrow [{{\mathcal {C}}}^\text {op},\textbf{Set}]\). The following are equivalent:

  1. (1)

    \({{\mathcal {M}}}\) has universal ultraproducts and they are preserved by \({{\mathcal {M}}}(C,-)\) for any \(C\in {{\mathcal {C}}}\) ;

  2. (2)

    \({{\mathcal {M}}}\) is closed in \([{{\mathcal {C}}}^\text {op},\textbf{Set}]\) under categorical ultraproducts.

Proof

In \(\textbf{Set}\) universal ultraproducts are the usual categorical ultraproducts; thus the universal ultraproducts of \({{\mathcal {M}}}\) are preserved by homming out of \(C\in {{\mathcal {C}}}\) if and only if they are computed pointwise in \([{{\mathcal {C}}}^\text {op},\textbf{Set}]\). Then the result follows from Lemma 5.5 above. \(\square \)

Some direct consequences are:

Corollary 5.7

Let \(\text {Mod}({{\mathcal {C}}},\textbf{Set})\) be the category of models of a pretopos \({{\mathcal {C}}}\) such that, when seen as a full subcategory of \([{{\mathcal {C}}},\textbf{Set}]\) , it contains the representables. Then \(\text {Mod}({{\mathcal {C}}},\textbf{Set})\) has universal ultraproducts and they are preserved by the inclusion.

Proof

It is well known that \(\text {Mod}({{\mathcal {C}}},\textbf{Set})\) satisfies the closure property under ultraproducts in \([{{\mathcal {C}}},\textbf{Set}]\). If it also contains the representables then \(\text {Mod}({{\mathcal {C}}},\textbf{Set})\) is dense in \([{{\mathcal {C}}},\textbf{Set}]\). Thus it is enough to apply the lemma above. \(\square \)

For the following just choose \({{\mathcal {C}}}:={{\mathcal {M}}}_f\) in the setting of the proposition above.

Corollary 5.8

The following are equivalent for a finitely accessible category \({{\mathcal {M}}}\) :

  1. (1)

    \({{\mathcal {M}}}\) has universal ultraproducts and they are preserved by \({{\mathcal {M}}}(A,-)\) for any \(A\in {{\mathcal {M}}}_f\) ;

  2. (2)

    \({{\mathcal {M}}}\) is closed in \([{{\mathcal {M}}}_f^\text {op},\textbf{Set}]\) under categorical ultraproducts.

Note that this extends the equivalent conditions of Proposition 4.12 by taking \({{\mathcal {M}}}=\text {Flat}({{\mathcal {C}}},\textbf{Set})\).

Remark 5.9

Given a finitely accessible category \({{\mathcal {M}}}\) with universal ultraproducts, we do not know whether these are always preserved as in (1) above.

Remark 5.10

In [51], a theory \({\mathbb {T}}\) over a relational language \({\mathbb {L}}\) is called strongly special if the inclusion \(\text {Mod}({\mathbb {T}})\hookrightarrow {\mathbb {L}}\text {-Str}\), of the models of \({\mathbb {T}}\) into the \({\mathbb {L}}\)-structures, is fc-reflective (in the sense explained in Remark 4.13). Then [51, Proposition 3.3] shows that \(\text {Mod}({\mathbb {T}})\) has universal ultraproducts whenever \({\mathbb {T}}\) is strongly special.

Now, given \({{\mathcal {M}}}\) as in Corollary 5.8 above, then \({{\mathcal {M}}}\) can be expressed as \(\text {Mod}({\mathbb {T}})\) for a coherent theory \({\mathbb {T}}\) in the language of presheaves on \({{\mathcal {M}}}_f^\text {op}\) ( [6, 4.2]); however, this theory is not strongly special in general (see [6, 4.6] for a counterexample). Thus our corollary does not follow from [51]. Conversely, [51, Proposition 3.3] does not follow from our results since \(\text {Mod}({\mathbb {T}})\) is not finitely accessible in general.