Michael Shulman
2-categorical logic collated

The internal logic of a 2-topos (one-page version)

This page is a collected version that includes most of the sub-pages about 2-categorical logic, for ease of printing. Keep in mind that everything here is rough, much is missing, and not all of the pages were designed to be read sequentially, so you may have to skip around.

What is a 2-topos?

Of course, a 2-topos is the 2-categorical version of a topos. In other words, it is a (vertically) categorified topos. However, as we know, categorification, like quantization and groupoidification, is an art rather than a science; it depends on deciding what the crucial properties are of the thing we want to categorify.

The problem is especially acute for toposes, because of their many-faceted nature. To speak figuratively, which attributes of an elephant do we want to categorify? It isn’t even necessarily clear that there is a single beast which decategorifies to all the aspects of an elephant at once; perhaps we have 2-legs, 2-trunks, 2-ears, 2-tails, and so on but no actual 2-elephant.

According to WeberYS2T,

This is evidently a categorification of a definition such as

On the other hand, according to StreetCBS,

  • a 2-topos is a 2-category which is equivalent to the 2-category of stacks (2-sheaves) on some 2-site.

This is evidently a categorification of a definition such as

  • a topos is a category which is equivalent to the category of sheaves on some site.

The definition I propose to categorify is

Of course, this definition contains a good deal of redundancy, but not all of that was apparent in the early days of topos theory, and there seems less reason to believe that the redundancy will remain under categorification. Moreover, for the purposes of logic, having a Heyting pretopos is the most important part of the definition; it is what enables the internal interpretation of first-order logic. (Local cartesian closure and a subobject classifier then enable the interpretation of higher-order logic.) It may be simply an accident that in the 1-categorical case, the higher-order structure automatically implies the first-order structure.

Thus, in order to obtain an internal logic of a 2-category, it is natural to start with a notion of Heyting 2-pretopos. This is especially attractive because it is less clear how to categorify the “higher-order structure” of local cartesian closure and a subobject classifier. The 2-category Cat, which one expects to be the prototypical 2-topos just as Set is the prototypical topos, does not have a subobject classifier, nor is it locally cartesian closed (though it is cartesian closed). What is true is that fibrations are exponentiable, and that it has objects (namely, full subcategories of Set) that classify some discrete opfibrations.

Another guiding desideratum for us will be that all the notions we consider should be stable under slicing, just like the corresponding 1-categorical notions. For instance, this demands the upgrading of ordinary cartesian closure to some sort of local cartesian closure. However, in the 2-categorical case it turns out that usually the correct notion to consider is not the slice 2-category but rather the fibrational slice.

Thus, the proposed definition we will arrive at will be something like:

  • an (elementary) 2-topos is a finitely complete and cocomplete Heyting 2-pretopos with exponentials and (some sort of discrete opfibration classifier).

The goal, again, is to find a notion of 2-topos that has an internal logic in which we can reason about categories. Street’s “Grothendieck 2-toposes” turn out to have (almost) all of these properties of an “elementary 2-topos.” The intersection of this notion with Weber’s consists of finite limits, cartesian closure (strictly weaker than our notion of “exponentials”), and a discrete fibration classifier. While some of our 2-toposes admit duality involutions, others (perhaps surprisingly) do not.

On the meaning of ‘categorified logic’

In talking about 2-toposes and classifying discrete opfibrations it is common to hear people talk about “the category of sets being a generalized object of truth values,” or more loosely of “treating sets as truth values.” (See, for instance, the discussion at this post.) The idea, of course, is that just as the functor

XSub(X)X\mapsto Sub(X)

from Set (or any topos) to posets is representable by the set Ω of truth values, the functor

XDOpf(X)X\mapsto DOpf(X)

from Cat (or, hypothetically, any 2-topos) to categories is representable by the category Set of sets. Here DOpf(X) means the category of discrete opfibrations over X.

My current opinion is that there already exists a “logic which treats sets as truth values,” without the need for any categorification, namely type theory (more precisely, dependent type theory). It is central to categorical logic (although not always presented in this way) that the internal logic of a category C actually takes place in the fibration XSub(X) of subobjects of objects of C. In particular:

  • The Heyting algebra operations in each poset Sub(X) correspond to the logical connectives ,,,,,¬.
  • The reindexing functors f *:Sub(Y)Sub(X) correspond to logical substitution, weakening, and contraction.
  • Left adjoints to reindexing functors correspond to existential quantification.
  • Right adjoints to reindexing functors correspond to universal quantification.

The fact that the resulting logic is a “logic of truth values,” or as I would say a “logic of (-1,0)-categories,” depends on each Sub(X) being a poset; that is, a (0,1)-category. However, for an ordinary category C we also have a fundamental fibration XC/X of 1-categories, which has a corresponding “logic of 0-categories,” that is, sets. If C is (for instance) a locally cartesian closed category with finite colimits, then each C/X is a cartesian closed category with finite colimits (the 1-categorical analogue of a Heyting algebra) and the reindexing functors have left and right adjoints.

Now, instead of interpreting these operations as acting on logical statements that are either true or false, we interpret them as acting on types which can be inhabited or empty, but if inhabited can contain many different elements. For instance, instead of constructing a new proposition φψ from propositions φ and ψ, we construct a new type A×B from types A and B. And instead of constructing a new proposition (xA)φ(x) from a proposition φ that depends on a variable x, we construct a new type Π xAB(x) (a “dependent product”) from a type B(x) that depends on x.

There are several different ways of thinking about this. From one perspective, we can think of these types as merely “souped up” versions of propositions that record not only whether something is true, but all the “ways” in which it can be true or all the “proofs” that it is true. Thus, our real interest is in whether a given type is inhabited or not, which is a close generalization of whether a given proposition is true. I believe this is often called the propositions as types paradigm.

On the other hand, we can treat the types as sets whose different elements we may care about, and it is from this perspective that I want to view it. In this case, we may also want to say things about the elements of those sets, which is to say, we also need a logic (of propositions) on top of our type theory (the “logic of sets”). This construction of a “logic over a type theory” is very common in type theory, and seems to be the generally accepted way to develop the internal logic of a Π-pretopos. From an n-categorical point of view, what we have is a 1-category in which we have both a “logic of 0-categories” (type theory) that takes place in the slice categories C/X and a “logic of (-1,0)-categories” (ordinary logic) that takes place in the slice posets Sub C(X).

It is now clear how to categorify this: in a 2-category K we will have a “logic of 1-categories” that takes place in the slice 2-categories K/X, a “logic of 0-categories” that takes place in the slice 1-categories disc(K/X), and a “logic of (-1,0)-categories” that takes place in the slice posets Sub K(X). (Actually, we could easily add logics of (1,0)-categories and (0,1)-categories taking place in gpd(K/X) and pos(K/X), respectively, but this doesn’t seem to be as useful.) The only possibly-unexpected wrinkle is that it turns out to be best to ues the fibrational slices Fib K(X) and Opf K(X) in place K/X whenever possible.

From this perspective, it is evident that in “categorified logic” (at least as I conceive it) sets do not replace truth values. Rather, sets, and categories as well, have their own “logic” (aka “type theory”) which happens “underneath” the logic of truth values. The goal is that just as existing mathematical arguments involving sets can be formalized in the internal logic of a 1-topos, existing mathematical arguments involving categories should be formalizable in the internal logic of a 2-topos — and, empirically speaking, these arguments involving categories still use the same sort of (truth-valued) logic that arguments involving sets do. The only difference is that they involve categories (1-types) in addition to sets (0-types) and truth values ((-1)-types).

Something that would help me enormously (personally and convincing other philosophers) would be a concrete example to work with. It would be especially interesting if this could be in ‘natural language’, like my poodle example for 1-logic.

Perhaps an example from dependent type theory would do: During every month there exists a team for which there exists a day in that month on which every player on that team is fit.

It would be nicer though to have the meta-types be non-discrete categories.

You could try the following paper by Isar Stubbe: The canonical topology on a meet-semilattice which explicitly goes from Omega to Sets.

2-categorical conventions

In line with the rest of the nLab, 2-category means weak 2-category, or precisely bicategory. All notions such as limits, adjunctions, equivalences, and so on are understood in a suitably weak sense (without need for a prefix such as “bi-“). Note that without choice, even Cat is not a strict 2-category, since we must use anafunctors instead of functors; see regular 2-categories and choice.

If X has a meaning for 1-categories, then if X is used without a prefix for 2-categories it should include the existing notion for 1-categories as a special case (when 1-categories are considered as homwise-discrete 2-categories). If we consider a notion related to X but which is not a “conservative categorification” in this sense, we will call it 2-X; cf. subcategory. For instance, we say regular 2-category since a 1-category is regular as a 2-category iff it is regular as a 1-category, but 2-exact 2-category since an exact 1-category is almost never 2-exact as a 2-category.

n-categories for n2

In many cases it turns out to be just as easy to develop the theory not just for 2-categories, but for (s,r)-categories for some 0s2 and r>0. We will say that n2 and n is directed to mean that n=(s,r) for some such s,r. This includes the following cases:

2 = (2,2)
of course, a 2-category is just a 2-category
(2,1)
A (2,1)-category is a 2-category all of whose 2-cells are invertible, such as Gpd.
(1,2)
A (1,2)-category is a 2-category in which any two parallel 2-cells are equal, such as Pos.
1 = (1,1)
A 1-category is a 2-category in which any two parallel 2-cells are equal and invertible; that is, a 2-category which is both a (2,1)-category and a (1,2)-category. This means its hom-categories are equivalent to discrete sets, so it can be identified with a 1-category in the usual sense.
(0,1)
A (0,1)-category is a poset, or more precisely a preordered set.

The following values of n=(s,r) are considered 2, but are not directed.

(2,0)
A (2,0)-category is a 2-groupoid: a 2-category in which all 2-cells are isomorphisms and all 1-cells are equivalences.
(1,0)
A (1,0)-category is a groupoid.
0=(0,0)
A 0-category is a set (or a category, or 2-category, that is equivalent to one).
-1 = (-1,0)
A (-1,0)-category is poset in which any two objects are isomorphic; thus it is a truth value (the truth value of “there exists an object”). Since there is no useful notion of (-1,-1)-category, (-1,0)-categories are often called (-1)-categories and we will sometimes use this convention.
-2 = (-2,-1)
A (-2,-1)-category is an inhabited (-1,0)-category; that is, it is the truth value “true.” As with (-1)-categories, (-2,-1)-categories are often called simply (-2)-categories.

These values of n are also important, but for them one doesn’t expect a notion of n-topos, nor of regularity, exactness, extensivity, or an internal logic. For instance, a nontrivial groupoid has no limits, so it certainly cannot be regular.

Actually, I’ve been mildly surprised not to see you use these values of n. Sure, the concepts tend to be trivial then, but so they also tend to be when n<0.

And actually, I don't think it's appropriate to refer to n<0 as ‘directed’. Directedness is provided only by r>0.

—Toby

You’re right about directedness; I’ve fixed the page. What sort of “use” of nondirected n were you expecting? They do come up, of course; for instance it’s important to talk about n-truncated objects when n is not necessarily directed. The only point is that no nontrivial n-categories can be regular, exact, coherent, etc. unless n is directed.

I guess it might be useful to distinguish n-truncated 2-toposes even when n is not directed. For instance, 0-truncated (Grothendieck) 2-toposes are just powers of Cat, and (1,0)-truncated 1-toposes are toposes of actions by a groupoid. But you can’t say any more that an n-truncated 2-topos is the category of 2-sheaves on an n-topos, since there is no longer any notion of n-topos.

I incorporated your other comments into the text. -Mike

By ‘use’ I meant at a minimum ‘mention’. That is, remark that no groupoid is regular, etc. Mind you, I've been only mildly surprised not to see this (and such surprise as I had came in part because you sometimes did mention n0); I like to mention degenerate cases, but I know that others don't. Possibly we can regard the paragraph above as covering it now. —Toby

We adopt the natural convention that (s,r)±1=(s±1,r±1). Thus, for instance, saying that n-categories form an (n+1)-category includes the statements that:

  • sets form a 1-category
  • categories form a 2-category
  • groupoids form a (2,1)-category
  • posets form a (1,2)-category
  • truth values form a poset

and so on. For this convention it is important to remember that (-1)-category is a shorthand for (-1,0)-category, so that (1)+1=(0,1), not (0,0). And of course, (2)+1=(1). Note that n is directed if and only if it is of the form m+1 for some m(1,0).

Note that (s,r)-categories are the same as (s,r)-categories whenever either r,rs+1 or r,r0. (Although for monoidal categories, r=1 and r=0 can be distinguished.) Thus, to avoid duplication, usually one restricts to 0rs+1. However, these requirements conflict when s=2 (which is something of a special case in other ways as well). We choose -2 to mean (-2,-1) so that we obtain (-1,0) upon adding 1 to it, although (-2,0) would work just as well as long as we remember that (0,2) and (0,1) are the same. Thus, our general restriction on r and s is min(0,s+1)rs+1.

Discussion

From a previous discussion at truncated object, which doesn't really belong there:

Yes, definitely. A so called ‘1-category’ (a truth value) is really a 1-groupoid or a 0-poset, that is a (1,0)-category, not a (1,1)-category (which doesn't really make sense) at all. As you know. —Toby

Yeah. But (-1,0)-category is cumbersome to say when there is no different notion of (-1)-category that it needs to be distinguished from. (-: And it seems to break down at (-2) anyway; for the adding-one convention to continue to work we should write (-2,-1)-category instead of (-2)-category, but that doesn’t make sense in the general scheme of (n,r)-category. I suppose we could decide to write (n,) instead of (n,n+1) in all cases… -Mike

Partly, this would work better if we said ‘n-poset’ all the time for various values of n. In general, an (r,s)-category is an (r+1,s)-poset. The bad part is that now these pages focus on n(3,2), which is not so slick to say. But the general theory works better; we require 0sr (with the same exception as before, now when r=1) and no glitch crossing from 1 to 2. —Toby

I suppose so, but I don’t think you’ll have much luck trying to get people to say “(3,2)-poset” instead of “2-category.” (-: -Mike

Nothing wrong with ‘2-category’, ‘2-groupoid’, etc as abbreviations, but we shouldn't lose sight of the fundamental concept. (Similarly, wasn't someone trying to come up with a general name for (n,1)-category?) —Toby

What are you claiming is the “fundamental concept?” The only candidates for a fundamental concept that I see are either full-blown ω-categories or (s,r)-categories for arbitrary s,r. The only remaining question is terminology, and I think saying that “2-category” is an abbreviation for “(2,2)-category” is much more likely to catch on than saying that it is an abbreviation for “(3,2)-poset.” (In fact, it has already caught on.) In particular, there is a virtue to continuing to use the word “category,” which communicates the behavior of these things much better than “poset.” Already I think “(1,2)-category” is a more descriptive name than “2-poset.” -Mike

I agree with Toby that one should say ”(r+1,s)-order” (I don’t use “poset”, since this word suggests that they have a set of objects) rather than ”(n,r)-category” and even V-order instead of V-category, because the word “category” carries the further meaning that there is some groupoidality (the homs are groupoidal orders in a category). For this reason, I think that “order” conveys better the general behaviour than “category”. The most fundamental concepts, for me, are the n-orders, which are the most general ω-orders of dimension n. The study of higher-dimensional toposes would perhaps be more natural if the reference cases were modelled on Ord and 2-Ord rather than Set and Cat. —Mathieu

I disagree that “category” carries the meaning of groupoidality in the homs. I suppose it can mean whatever you choose it to mean, like Humpty Dumpty, but there is nothing in the past usage of the word “category” to suggest such an implication. Just because n-categories, for natural numbers n, happen to have homs that are groupoidal at the top dimension for which they have unequal parallel morphisms doesn’t mean that “category” necessarily implies such groupoidality. If in addition to 2-categories we allow (2,1)-categories then (2,3)-categories are just as natural. The existing meaning of V-category includes categories enriched over orders (= (1,2)-categories) and categories enriched over truth values (= (0,1)-categories); why not allow “category” its existing, more inclusive, meaning?

Also, even in an n-order (= (n1,n)-category) there is some groupoidality; it just doesn’t kick in until the (n+1)-cells. To me, a much stronger intuitive association is that “order” implies that parallel morphisms are equal. This is not true for n-orders for any n>1, except at the n-cells, and is not true for any dimension of cells in an ω-order (= ω-category). -Mike

My use of the phrase ‘fundamental concept’ was tongue in cheek, since (as you point out) it is the same concept. At best, one can say that the partial function from Z×Z to properties of -categories that maps (s,r) to being an (s,r)-poset (or (s,r)-order) is simpler (hence should be regarded as more fundamental, with the other defined in terms of it) than the partial function that maps (s,r) to being an (s,r)-category. Certainly the domain of the first partial function is nicer. So if we were inventing terminology afresh for the whole business, we would probably want to base it on that function. Even in the real world, where I titled an article (n,r)-category, one should talk about (s,r)-posets when that helps explain a pattern.

Also, we're not going to get anywhere talking about the limiting connotations that various words have. Of course ‘category’ has the connotation of being groupoidal at and above level 2, since an ordinary category is groupoidal at and above level 2; and ‘order’ and ‘poset’ have the connotation of being trivial at and above level 2, since an ordinary order or poset is trivial at and above level 2. (But I don't see what's wrong with the connotation that a poset has an underlying set, since even an -poset has an underlying set of equivalence classes of objects.) Any terminology that we choose to generalise will have limiting connotations from its previous use.

I think this is the last I'll say on the matter; it's not like I'm not trying to get Mike to renumber his work here.

—Toby

Regularity without choice

The 1-category Set is a 1-topos, and in particular regular, without any need for the axiom of choice, or indeed even any need for classical logic. Even predicativists generally agree that Set is a pretopos.

However, at first glance, the axiom of choice seems to be necessary in order for Cat to be a regular 2-category. Specifically, given a commutative square of functors

A f C e m B g D\array{A & \overset{f}{\to} & C\\ e \downarrow && \downarrow m\\ B& \underset{g}{\to} & D}

in which m is full and faithful and e is essentially surjective, in order to define a lift h:BC we have to first choose, for each bB, an object a bA and an isomorphism e(a b)b, then defining h(b)=f(a b) with its action on morphisms determined by g (since m is ff).

Of course, there is a sense in which this is not a “real” use of choice, since f(a b) is determined by b up to unique isomorphism. It is well-established that in the absence of choice, the usual notion of functor is too strict, and one should instead use anafunctors which determine their values only up to unique isomorphism. And it is not hard to check that if we define Cat to be the (no longer strict) 2-category of categories, anafunctors, and natural transformations, then it is regular, and in fact a 2-pretopos, without any need for choice.

Discussion on cartesian closure

Toby: Something to consider: In Makkai's paper on anafunctors, he needs a (fairly weak) form of the axiom of choice to conclude that the bicategory of categories, and anafunctors, and ananatural transformations is cartesian closed. Maybe the right notions of exponentials don’t require even this.

Mike: Interesting point! Of course, in the absence of choice, one has to use anafunctors in order for Cat to even be a regular 2-category, so this is an important question. However, it seems to me that his proof actually shows that without any choice at all, Cat (his AnaCat) is cartesian closed in the sense that there is an anaequivalence Cat(A×B,C)Cat(A,C B), and this is all one ought to need or want. Am I wrong?

Toby: But without that SCSA thing, I don't know what C B means in this context. That is, the category of small anafunctors from a small category B to a small category C is not itself small (at least not if B is inhabited), and Makkai uses SCSA to prove the existence of an equivalent small category.

Now that I look at this stuff closely again, it seems unlikely to shed much light on the matter here. But there it is.

Mike: If you trace through his proof, it seems to me that what he really shows is that (without any choice) any anafunctor XA is isomorphic to one whose set of specifications is of the form

(x,a)SIso(a,a)\coprod_{(x,a)\in S} Iso(a,a)

for some SOb(X)×Ob(A). And there is clearly a set of these, so the full subcategory of Cat(X,A) on them should be an exponential A X in Cat.

You only need choice if you want there to be a function assigning to each anafunctor XA an isomorphism to one of the above form. And you can avoid using the full strength of choice by allowing yourself to replace Iso(a,a) by anything in some specified set of sets that are isomorphic to it.

Mike: No, what I said in the previous comment is wrong! What’s true is that for any saturated anafunctor F, the set F(x,a) of specifications from x to a is, if inhabited, isomorphic to Iso(a,a). However, that isomorphism is non-canonical (to be precise, F(x,a) is a torsor over Iso(a,a)). Thus, in order to to replace your anafunctor by one whose set of specifications is of the above form, you need to choose simultaneously, for every x and a such that F(x,a) is inhabited, an isomorphism F(x,a)Iso(a,a), and that requires some choice. Where SCSA is weaker than AC is that you don’t need to be able to choose isomorphisms to Iso(a,a), you just need to be able to choose isomorphisms to something such that there is at most a set of targets of the somethings, and that’s enough to make the category of anafunctors essentially small.

Right now I feel as though even in the absence of choice, Cat “ought” to have all these good properties, including cartesian closure. If anafunctors aren’t good enough to recover all of that without some form of choice, then maybe that just means that even with anafunctors, set-theoretic foundations just aren’t fully capable of mimicking truly categorial foundations.

David Roberts: Clearly WISC has some bearing here (and probably the kernel of the idea originated from this discussion). Is there a 2-categorical form of WISC? Is it useful? I suppose this depends on the analogue of what is considered 'small' in the 2-logic

Slice 2-categories

The slice 2-category of a 2-category K over an object X is the 2-category whose objects are morphisms AX in K, whose morphisms are triangles in K that commute up to a specified isomorphism, and whose 2-cells are 2-cells in K forming a commutative 2-diagram with the specified isomorphisms in triangles.

In particular, any 2-cell in K/X must become an isomorphism in X. This means that more information is lost when passing to slice 2-categories than for slice 1-categories, and slice 2-categories are not always well-behaved; they often fail to inherit useful properties of K. Frequently a better replacement is the fibrational slice.

Pullbacks and adjoints

If K has pullbacks, then for any f:XY there is a pullback functor f *:K/YK/X. However, this does not make the assignation XK/X into a functor K opCat or K coopCat, since there is no way to define it on 2-cells. This is one reason to use fibrational slices instead.

Just as in the 1-categorical case, the pullback functor f *:K/YK/X always has a left adjoint Σ f:K/XK/Y given by composition with f. However, f * cannot be expected to have a right adjoint Π f for all maps f, since this fails even in Cat. It is true in Cat when f is a fibration or opfibration, however; see exponentials in a 2-category.

Fibrational slices

Definition

The fibrational slice of a 2-category K over an object X is the homwise-full sub-2-category Fib(X) of the slice 2-category K/X whose objects are fibrations over X and whose morphisms are morphisms of fibrations. Likewise, we have the opfibrational slice Opf(X) consisting of opfibrations.

The fibrational and opfibrational slices in a 2-category often play the role of the ordinary slice categories of a 1-category, replacing the ordinary slice 2-category. On this whole page we assume that K has finite limits.

Basic properties

The 2-category Opf(X) is monadic over K/X. The relevant monad on K/X takes p:AX to the comma object (p/1 X), or equivalently the pullback A× XX 2. It is lax-idempotent, so a morphism p:AX is an opfibration if and only if A(p/1 X) has a left adjoint with invertible counit in K/X. Likewise, p is a fibration iff A(1 X/p) has a right adjoint with invertible unit in K/X.

Since the fibrational slices are monadic over K/X, they inherit all limits from it. It follows that a fibration is a discrete object in Fib(X) iff it is discrete in K/X. These are unsurprisingly called discrete fibrations; we write DFib(X) for the category of such. Every morphism in K/X between discrete fibrations is a morphism of fibrations; thus DFib(X) is a full subcategory of both Fib(X) and K/X.

Any pullback of an (op)fibration is again an (op)fibration. Therefore, any morphism f:YX induces a pullback functor f *:Fib(X)Fib(Y), which restricts to a functor f *:DFib(X)DFib(Y), and dually. Regarding the existence of adjoints to these functors, see comprehensive factorization and exponentials in a 2-category.

Any morphism with groupoidal codomain is a fibration and opfibration. Therefore, if X is groupoidal, Fib(X)K/XOpf(X). In particular, for (2,1)-categories and thus also for 1-categories, the fibrational slices are no different from the ordinary slices.

Subobjects

Central for us is the following fact, which would be false if we replaced Opf(X) by K/X. It underlies the inheritance of all sorts of structure by fibrational slices, such as regularity, coherency, extensivity, and exactness.

Theorem

A morphism in Opf(X) is ff in Opf(X) iff its underlying morphism in K is ff.

Proof

Suppose that a:AX and b:BX are opfibrations, and that fmapsAB is a morphism in Opf(X) which is ff in K. Then since Opf(X)K is homwise faithful, f is clearly faithful in Opf(X). And given a 2-cell α:hk:TB in Opf(X), since f is ff in K, we must have α=fβ for some 2-cell β:jl:TA. But then aβbfβ=bα, so β must also be a 2-cell in Opf(X).

Conversely, suppose that f is ff in Opf(X), and that we have 2-cells α,β:xy:TA in K such that fα=fβ. Then since bfa we have aalph=aβ; call this 2-cell ξ:axay. Since a and b are opfibrations and f is a map of opfibrations, we have an opcartesian 2-cell xξ !(x) lying over ξ such that fxfξ !(x) is also opcartesian. Then α and β both factor through xξ !(x) to give 2-cells γ,δ:ξ !(x)y in Opf(X) whose images under f are equal. Since f is faithful in Opf(X), we have γ=δ, and hence α=β. Thus, f is faithful in K. The proof of fullness is analogous.

Therefore, if AX is an (op)fibration in K, we have Sub Opf(K)(A)Sub K(A), although in general the inclusion is proper. Of course, the dual result about Fib(X) is also true.

Iterated fibrations

It is well-known that a composite of fibrations is a fibration. Moreover:

Theorem

A morphism in Fib(X) is a fibration in the 2-category Fib(X) iff its underlying morphism in K is a fibration.

This is a standard result, at least in the case K=Cat, and is apparently due to Benabou. References include:

  • J. Benabou, “Fibered categories and the foundations of naive category theory”
  • B. Jacobs, Categorical Logic and Type Theory, Chapter 9
  • C. Hermida, “Some properties of Fib as a fibred 2-category”

Therefore, for any fibration AX in K we have Fib K(A)Fib Fib K(X)(AX), and similarly for opfibrations. This is a fibrational analogue of the standard equivalence K/A(K/X)/(AX) for ordinary slice categories. It also implies that any morphism between discrete fibrations over X is itself a (discrete) fibration in K, since in Fib(X) it has a discrete (hence groupoidal) target and thus is a fibration there.

We will also need the corresponding result for mixed-variance iterated fibrations, which seems to be less well-known. First we recall:

Definition

A span ApEqB is called a (two-sided) fibration from B to A if

  1. q is an opfibration and p takes q-opcartesian 2-cells to isomorphisms,

  2. p is a fibration and q takes p-cartesian 2-cells to isomorphisms, and

  3. for any e:XE, and any square

    α *e pcartesian e qopcartesian qopcartesian (α *e)β ! α *(eβ !) pcartesian eβ !\array{&& \alpha^*e & \overset{p-cartesian}{\to} & e\\ ^{q-opcartesian} & \swarrow && & \downarrow & ^{q-opcartesian}\\ (\alpha^* e)\beta_! & \to & \alpha^* (e \beta_!) & \overset{p-cartesian}{\to} & e \beta_!}

    of 2-cells, (α *e)β !α *(eβ !) is an isomorphism.

Such two-sided fibrations in Cat correspond to functors B×A opCat. The third condition corresponds precisely to the “interchange” equality (β,1)(1,α)=(1,α)(β,1) in B×A op. We write Fib(B,A) for the 2-category of two-sided fibrations from B to A.

Theorem

A span ApEqB is a two-sided fibration from B to A if and only if

  1. p:EA is a fibration and
  2. (p,q):EA×B is an opfibration in Fib(A).
Proof

Recall that the projection A×BA is a fibration (and also an opfibration, although that is irrelevant here), and the cartesian 2-cells are precisely those whose component in B is an isomorphism. Therefore, saying that (p,q) is a morphism in Fib(A), i.e. that it preserves cartesian 2-cells, says precisely that q takes p-cartesian 2-cells to isomorphisms.

Now, by the remarks above, q is an opfibration in K iff E(q/1 B) has a left adjoint with invertible counit in K/B, and (p,q) is an opfibration in Fib(A) iff E((p,q)/1 A×B) has a left adjoint with invertible counit in Fib(A)/(A×B). Of crucial importance is that here ((p,q)/1 A×B) denotes the comma object calculated in the 2-category Fib(A), or equivalently in K/A, and it is easy to check that this is in fact equivalent to the comma object (q/1 B) calculated in K.

Therefore, (p,q) is an opfibration in Fib(A) iff q is an opfibration in K and the left adjoint of E(q/1 B) is a morphism in Fib(A). It is then easy to check that this left adjoint is a morphism in K/A iff p inverts q-opcartesian arrows, and that it is a morphism of fibrations iff the final condition in Definition 1 is satisfied.

In particular, we have Fib(B,A)Opf Fib(A)(A×B). By duality, Fib(B,A)Fib Opf(B)(A×B), and therefore Fib Opf(B)(A×B)Opf Fib(A)(A×B), a commutation result that is not immediately obvious.

It follows that the 2-categories Fib(B,A) of two-sided fibrations also inherit any properties that can be shown to be inherited by the “one-sided” fibrational slices Fib(X) and Opf(X). Thus, we will usually concentrate on the latter, although two-sided fibrations will make an appearance in our treatment of duality involutions.

2-congruences

Idea

The correct notions of regularity and exactness for 2-categories is one of the subtler parts of the theory of first-order structure. In particular, we need a suitable replacement for the 1-categorical notion of equivalence relation. The (almost) correct definition was probably first written down in StreetCBS.

One way to express the idea is that in an n-category, every object is internally a (n1)-category; exactness says that conversely every “internal (n1)-category” is represented by an object. When n=1, an “internal 0-category” means an internal equivalence relation; thus exactness for 1-categories says that every equivalence relation is a kernel (i.e. is represented by some object). Thus, we need to find a good notion of “internal 1-category” in a 2-category.

Of course, there is an obvious notion of an internal category in a 2-category, as a straightforward generalization of internal categories in a 1-category. But internal categories in Cat are double categories, so we need to somehow cut down the double categories to those that really represent honest 1-categories. These are the 2-congruences.

Definition

If K is a finitely complete 2-category, a homwise-discrete category in K consists of a discrete morphism D 1D 0×D 0, together with composition and identity maps D 0D 1 and D 1× D 0D 1D 1 in K/(D 0×D 0), which satisfy the usual axioms of an internal category up to isomorphism. (Since D 1D 0×D 0 is discrete, these isomorphisms will automatically satisfy any coherence axioms one might care to impose.)

The notions of functor and transformation between such categories are evident. The first point worth noting is that the transformations between functors DE are a version of the notion for internal categories, thus given by a morphism D 0E 1 in K. The 2-cells in K(D 0,E 0) play no explicit role, but we will recapture them below. The second point worth noting is that by homwise-discreteness, any “modification” between transformations is necessarily a unique isomorphism, so (after performing some quotienting, if we want to be pedantic) we really have a 2-category HDC(K) rather than a 3-category.

If f:AB is any morphism in K, there is a canonical homwise-discrete category (f/f)A×A, where (f/f) is the comma object of f with itself. We call this the kernel ker(f) of f. In particular, if f=1 A then (1 A/1 A)=A 2, so we have a canonical homwise-discrete category A 2A×A called the kernel ker(A) of A. It is easy to check that taking kernels of objects defines a functor Φ:KHDC(K); this might first have been noticed by Street.

Theorem

If D 1D 0 is a homwise-discrete category in K, the following are equivalent.

  1. D 0D 1D 0 is a two-sided fibration in K.
  2. There is a functor ker(D 0)D whose object-map D 0D 0 is the identity.

Actually, homwise-discreteness is not necessary for this result, but we include it to avoid worrying about coherence isomorphisms, and since that is the case we are most interested in here.

Proof

We consider the case K=Cat; the general case follows because all the notions are defined representably. A homwise-discrete category in Cat is, essentially, a double category whose horizontal 2-category is homwise-discrete (hence equivalent to a 1-category). We say “essentially” because the pullbacks and diagrams only commute up to isomorphism, but up to equivalence we may replace D 1D 0×D 0 by an isofibration, obtaining a (pseudo) double category in the usual sense. Now the key is to compare both properties to a third: the existence of a companion for any vertical arrow.

Suppose first that D 0D 1D 0 is a two-sided fibration. Then for any (vertical) arrow f:xy in D 0 we have cartesian and opcartesian morphisms (squares) in D 1:

(1)x id x x f 1 y opcart f f cart x f 2 y y id y\array{x & \overset{id}{\to} & x & \qquad & x & \overset{f_1}{\to} & y' \\ \cong \downarrow & opcart & \downarrow f & \qquad & f \downarrow & cart & \downarrow \cong\\ x' & \overset{f_2}{\to} & y & \qquad & y & \overset{id}{\to} & y}

The vertical arrows marked as isomorphisms are so by one of the axioms for a two-sided fibration. Moreover, the final compatibility axiom for a 2-sided fibration says that the square

(2)x f 1 y x f 2 y,\array{ x & \overset{f_1}{\to} & y'\\ \cong \downarrow & & \downarrow\cong \\ x' & \overset{f_2}{\to} & y,}

induced by factoring the horizontal identity square of f through these cartesian and opcartesian squares, must be an isomorphism. We can then show that f 1 (or equivalently f 2) is a companion for f just as in Theorem 4.1 here. Conversely, from a companion pair we can show that D 0D 1D 0 is a two-sided fibration just as as in loc cit.

The equivalence between the existence of companions and the existence of a functor from the kernel of D 0 is essentially found in this paper, although stated only for the “edge-symmetric” case. In their language, a kernel ker(A) is the double category A of commutative squares in A, and a functor ker(D 0)D which is the identity on D 0 is a thin structure on D. In one direction, clearly ker(D 0) has companions, and this property is preserved by any functor ker(D 0)D. In the other direction, sending any vertical arrow to its horizontal companion is easily checked to define a functor ker(D 0)D.

In particular, we conclude that up to isomorphism, there can be at most one functor ker(D 0)D which is the identity on objects.

Definition

A 2-congruence in a finitely complete 2-category K is a homwise-discrete category in K satisfying the equivalent conditions of Theorem 4.

Of course, the kernel ker(A) of any object is a 2-congruence. More generally it is easy to see that the kernel ker(f) of any morphism is also a 2-congruence.

2-Forks and Quotients

The idea of a 2-fork is to characterize the structure that relates a morphism f to its kernel ker(f). The kernel then becomes the universal 2-fork on f, while the quotient of a 2-congruence is the couniversal 2-fork constructed from it.

Definition

A 2-fork in a 2-category consists of a 2-congruence s,t:D 1D 0, i:D 0D 1, c:D 1× D 0D 1D 1, and a morphism f:D 0X, together with a 2-cell ϕ:fsft such that ϕi=f and such that

D 1× D 0D 1 D 1 = D 1 ϕ D 1 D 0 D 0 ϕ f f D 1 D 0 f X=D 1× D 0D 1 c D 1 D 0 ϕ f D 1 f X.\array{ D_1\times_{D_0} D_1 & \to & D_1 & = & D_1\\ \downarrow && \downarrow & \Downarrow_\phi & \downarrow\\ D_1 & \to & D_0 && D_0\\ || &\Downarrow_\phi && \searrow^f & \downarrow f\\ D_1 & \to & D_0 & \overset{f}{\to} & X } \qquad = \qquad \array{ D_1\times_{D_0} D_1 \\ & \searrow^c\\ && D_1 & \to & D_0\\ && \downarrow & \Downarrow_\phi & \downarrow f\\ && D_1 & \overset{f}{\to} & X. }

The comma square in the definition of the kernel of a morphism f:AB gives a canonical 2-fork

(f/f)AfB.(f/f) \;\rightrightarrows\; A \overset{f}{\to} B.

It is easy to see that any other 2-fork

D 1D 0=AfBD_1 \;\rightrightarrows\; D_0 = A \overset{f}{\to} B

factors through the kernel by an essentially unique functor Dker(f) that is the identity on A.

If D 1D 0fX is a 2-fork, we say that it equips f with an action by the 2-congruence D. If g:D 0X also has an action by D, say ψ:gsgt, a 2-cell α:fg is called an action 2-cell if (αt).ϕ=ψ.(αs). There is an evident category Act(D,X) of morphisms D 0X equipped with actions.

Definition

A quotient for a 2-congruence D 1D 0 in a 2-category K is a 2-fork D 1D 0qQ such that for any object X, composition with q defines an equivalence of categories

K(Q,X)Act(D,X).K(Q,X) \simeq Act(D,X).

A quotient can also, of course, be defined as a suitable 2-categorical limit.

Lemma

The quotient q in any 2-congruence is eso.

Proof

If m:AB is ff, then the square we must show to be a pullback is

Act(D,A) Act(D,B) K(D 0,A) K(D 0,B)\array{Act(D,A) & \overset{}{\to} & Act(D,B)\\ \downarrow && \downarrow\\ K(D_0,A)& \underset{}{\to} & K(D_0,B)}

But this just says that an action of D on A is the same as an action of D on B which happens to factor through m, and this follows directly from the assumption that m is ff.

Definition

A 2-fork D 1D 0fX is called exact if f is a quotient of D and D is a kernel of f.

This is the 2-categorical analogue of the notion of exact fork in a 1-category, and plays an analogous role in the definition of a regular 2-category and an exact 2-category.

Opposites

The opposite of a homwise-discrete category is again a homwise-discrete category. However, the opposite of a 2-congruence in K is a 2-congruence in K co, since 2-cell duals interchange fibrations and opfibrations. Likewise, passage to opposites takes 2-forks in K to 2-forks in K co, and preserves and reflects kernels, quotients, and exactness.

Regular 2-categories

Definition

A 2-category K is called regular if

  1. It is finitely complete,
  2. esos are stable under pullback, and
  3. Every 2-congruence which is a kernel can be completed to an exact 2-fork.

In particular, the last condition implies that every 2-congruence which is a kernel has a quotient.

Examples

  • Cat is regular.

  • A 1-category is regular as a 2-category iff it is regular as a 1-category, since the esos in a 1-category are precisely the strong epics.

  • Every finitely complete (0,1)-category (that is, every meet-semilattice) is regular.

Factorizations

In StreetCBS the last condition is replaced by

  • Every morphism f factors as fme where m is ff and e is eso.

We now show that this follows from our definition. First we need:

Lemma

(Street’s Lemma) Let K be a finitely complete 2-category where esos are stable under pullback, let e:AB be eso, and let n:BC be a map.

  1. If the induced morphism ker(e)ker(ne) is ff, then n is faithful.
  2. If ker(e)ker(ne) is an equivalence, then n is ff.
Proof

First note that ker(e)ker(ne) being ff means that if a 1,a 2:YA and δ 1,δ 2:ea 1ea 2 are such that nδ 1=nδ 2, then δ 1=δ 2. Likewise, ker(e)ker(ne) being an equivalence means that given any α:nea 1nea 2, there exists a unique δ:ea 1ea 2 such that nδ=α.

We first show that n is faithful under the first hypothesis. Suppose we have b 1,b 2:XB and β 1,β 2:b 1b 2 with nβ 1=nβ 2. Take the pullback

Y r X (a 1,a 2) (b 1,b 2) A×A e×e B×B\array{&Y & \overset{r}{\to} & X \\ (a_1,a_2) & \downarrow && \downarrow & (b_1,b_2)\\ & A\times A & \overset{e\times e}{\to} & B\times B}

Then we have two 2-cells

β 1r,β 2r:b 1rb 2r\beta_1 r, \beta_2 r: b_1 r \;\rightrightarrows\; b_2 r

such that the composites

nea 1nb 1rnβ 1r=nβ 2rnb 2rnea 2n e a_1 \cong n b_1 r \overset{n \beta_1 r = n \beta_2 r}{\to} n b_2 r \cong n e a_2

are equal. By the hypothesis, nβ 1r=nβ 2r implies β 1r=β 2r. But r is eso, since it is a pullback of the eso e×e, so this implies β 1=β 2. Thus, n is faithful.

Now suppose the (stronger) second hypothesis, and form the pair of pullbacks:

(ne/ne) g n/n C 2 A×A e×e B×B n×n C×C\array{(n e / n e) & \overset{g}{\to} & n / n & \to & C^{\mathbf{2}}\\ \downarrow && \downarrow && \downarrow \\ A\times A & \overset{e\times e}{\to} & B\times B & \overset{n\times n}{\to} & C\times C}

Then g, being a pullback of e×e, is eso. We also have a commutative square

(e/e) (ne/ne) g B 2 (n/n).\array{(e/e) & \to & (n e / n e)\\ \downarrow && \downarrow g \\ B^{\mathbf{2}} & \to & (n/n).}

By assumption, (e/e)(ne/ne) is an equivalence. Since we have shown that n is faithful, the bottom map B 2(n/n) is ff, so since the eso g factors through it, it must be an equivalence as well. But this says precisely that n is ff.

Theorem

A 2-category is regular if and only if

  1. it has finite limits,
  2. esos are stable under pullback,
  3. every morphism f factors as fme where m is ff and e is eso, and
  4. every eso is the quotient of its kernel.
Proof

First suppose K is regular; we must show the last two conditions. Let f:AB be any morphism. By assumption, the kernel ker(f) can be completed to an exact 2-fork ker(f)AeC. Since e is the quotient of the 2-congruence ker(f), it is eso, and since f comes with an action by ker(f), we have an induced map m:CB with fme. But since the 2-fork is exact, we also have ker(f)ker(e), so by Street’s Lemma, m is ff.

Now suppose that in the previous paragraph f were already eso. Then since it factors through the ff m, m must be an equivalence; thus f is equivalent to e and hence is a quotient of its kernel.

Now suppose K satisfies the conditions in the lemma. Let f:AB be any morphism; we must show that ker(f) can be completed to an exact 2-fork. Factor f=me where m is ff and e is eso. Since m is ff, we have ker(f)ker(e). But every eso is the quotient of its kernel, so the fork ker(f)AeC is exact.

In StreetCBS it is claimed that the final condition in Theorem 5 follows from the other three, but there is a flaw in the proof.

Subobjects

In a regular 2-category K, we call a ff m:AX with codomain X a subobject of X. We write Sub(X) for the preorder of subobjects of X, as a full sub-2-category of the slice 2-category K/X. Since K is finitely complete and pullbacks preserve ffs, we have pullback functors f *:Sub(Y)Sub(X) for any f:XY.

If gme where m is ff and e is eso, we call m the image of g. Taking images defines a left adjoint f:Sub(X)Sub(Y) to f * in any regular 2-category, and the Beck-Chevalley condition is satisfied for any pullback square, because esos are stable under pullback.

Preservation

It is easy to check that if K is regular, so are:

The slice 2-category K/X does not, in general, inherit regularity, but we have:

Theorem

If K is regular, so are the fibrational slices Opf(X) and Fib(X).

Classification of congruences

In general, the idea is that an n-congruence in an m-category K, where nm, is an “internal (n1)-category” in K. Of course, we only deal formally with the case m2, although we allow n and m to be of the form (r,s); see n-prefix.

Definition

Let D be a 2-congruence in a 2-category K.

  • D is a (2,1)-congruence if it is an internal groupoid, i.e. there is a map D 1D 1 providing “inverses”.
  • It is a (1,2)-congruence if D 1D 0×D 0 is ff.
  • It is a 1-congruence if it is both a (2,1)-congruence and a (1,2)-congruence.
  • it is a (0,1)-congruence if D 1D 0×D 0 is an equivalence.

Note that in a 1-category,

  • a 2-congruence is just an internal category (a 1-category),
  • a (2,1)-congruence is an internal groupoid (a (1,0)-category),
  • a (1,2)-congruence is an internal poset (a (0,1)-category), and
  • a 1-congruence is an internal equivalence relation (a 0-category).

Of course, a (0,1)-congruence in any 2-category is completely determined by any object D 0.

Theorem

Let q:XY be a morphism in K. If Y is n-truncated for n1, then ker(q) is an (n+1)-congruence. This means that:

  1. If Y is groupoidal, then ker(q) is a (2,1)-congruence.
  2. If Y is posetal, then ker(q) is a (1,2)-congruence.
  3. If Y is discrete, then ker(q) is a 1-congruence.
  4. If Y is subterminal, then ker(q) is a (0,1)-congruence.

In all these cases the converse is true if K is regular and q is eso.

Proof

The forward directions are fairly obvious; it is the converses which take work. Suppose first that ker(q) is a (2,1)-congruence, and let α:fg:XY be any 2-cell. Pulling back the eso q along f and g gives P 1T and P 2T; let r:PT be the pullback P 1× XP 2. Since K is regular, r is eso. By definition of kernels, the 2-cell αr corresponds to a map P(q/q). But (q/q)C is a (2,1)-congruence, so composing this map with the “inverse” map (q/q)(q/q) gives another map P(q/q), and thereby another 2-cell frgr which is inverse to αr. Finally, since r is eso, precomposing with it reflects invertibility, so α must also be invertible. Thus Y is groupoidal.

Now suppose that ker(q) is a (1,2)-congruence, and let α,β:fg:TY be two parallel 2-cells. With notation as in the previous paragraph, the 2-cells αr and βr correspond to morphisms P(q/q) which become isomorphic in X. But since (q/q)X is a (1,2)-congruence, this implies that the two maps P(q/q) are isomorphic, and hence αr=βr. And since r is eso, precomposing with it is faithful, so α=β; thus Y is posetal.

The discrete case follows by combining the posetal and groupoidal cases, so it remains to show that if ker(q) is a (0,1)-congruence then Y is subterminal. We know it is discrete, so it suffices to show that given two f,g:TY we have a 2-cell fg. Continuing with the same notation, and letting h,k:PX be the induced maps with qhfr and qkgr, we have (h,k):PX×X=(q/q), and therefore the 2-cell defining the fork (q/q)XqY gives us a 2-cell qhqk and therefore frgr. Now r is the quotient of its kernel, so for this 2-cell to induce a 2-cell fg it suffices for it to be an action 2-cell for the actions of ker(r) on fr and gr; but this is automatic since we know Y to be posetal. Thus we have a 2-cell fg as desired, so Y is subterminal.

Exact 2-categories

A regular 1-category is exact when every congruence has a kernel. The definition for 2-categories is analogous.

Definition

Let 1<n2 be directed (see n-prefix). A 2-category is n-exact if it is regular and every n-congruence is a kernel.

Recall that a 1-category is regular as a 1-category iff it is regular as a homwise-discrete 2-category. However, a regular 1-category is exact as a 1-category precisely when it is 1-exact as a 2-category. Since general 2-congruences in a 1-category are internal categories, they will obviously not all be kernels. This is why we add a prefix to “exact:” the best notion for 2-categories, which we call “2-exact,” is not a conservative extension of the established meaning of “exact” for 1-categories.

Likewise, it is unreasonable to expect a (2,1)-category to be any more than (2,1)-exact, or a (1,2)-category to be any more than (1,2)-exact.

Examples

  • Cat is 2-exact. Likewise, Gpd is (2,1)-exact, Pos is (1,2)-exact, and of course Set is 1-exact.

  • Every regular (0,1)-category (that is, every meet-semilattice) is (0,1)-exact, and in fact even 2-exact, since there are no nontrivial congruences of any sort in a poset.

  • If K is 2-exact, then by the classification of congruences, gpd(K) is (2,1)-exact, pos(K) is (1,2)-exact, disc(K) is 1-exact, and Sub(1) is (0,1)-exact.

  • If K is n-exact, then so is K co, by the remarks about opposite 2-congruences. For 1-categories and (2,1)-categories, of course, this is contentless, but for 2-categories and (1,2)-categories it is contentful.

Coherent 2-categories

Definition

A 2-category is called coherent if

  1. it has finite limits,
  2. finite jointly-eso families are stable under pullback, and
  3. every finitary 2-polycongruence which is a kernel can be completed to an exact 2-polyfork.

Here a family {f i:A iB} is said to be jointly-eso if whenever m:CB is ff and every f i factors through m (up to isomorphism), then m is an equivalence.

Likewise, we have infinitary coherent 2-categories in which “finite” in the second two conditions is replaced by “small.”

Examples

  • Cat is coherent.

  • A 1-category is coherent as a 2-category iff it is coherent as a 1-category.

  • A (0,1)-category (= poset) is coherent iff it is a distributive lattice, and infinitary-coherent iff it is a frame.

Factorizations

The following are proven just like their unary analogues in a regular 2-category.

Lemma

(Street’s Lemma) In a finitely complete 2-category where finite jointly-eso families are stable under pullback, if {e i:A iB} is finite and jointly-eso and n:BC is such that the induced functor ker(e i)ker(ne i) is an equivalence, then n is ff.

Theorem

A 2-category is coherent if and only if

  1. it has finite limits,
  2. finite jointly-eso families are stable under pullback,
  3. every finite family {f i} factors as f i=me i where m is ff and {e i} is jointly-eso, and
  4. every jointly-eso family is the quotient of its kernel.

Of course, there are infinitary versions. In particular, we conclude that in a coherent (resp. infinitary-coherent) 2-category, the posets Sub(X) have finite (resp. small) unions that are preserved by pullback.

Colimits

Lemma

A coherent 2-category has a strict initial object; that is an initial object 0 such that any morphism X0 is an equivalence.

Proof

The empty 2-congruence is the kernel of the empty family (over any object), so it must have a quotient 0, which is clearly an initial object. The empty family over 0 is jointly-eso, so for any X0 the empty family over X is also jointly-eso; but this clearly makes X initial as well.

Two ffs m:AX and n:BX are said to be disjoint if the comma objects (m/n) and (n/m) are initial objects. If initial objects are strict, then this implies that the pullback A× XB is also initial, but it is strictly stronger already in Pos.

Lemma

In a coherent 2-category, if AX and BX are disjoint subobjects, then their union AB in Sub(X) is also their coproduct A+B.

Proof

If A and B are disjoint subobjects of X, then the kernel of {AX,BX} is the disjoint union of ker(A) and ker(B). Therefore, a quotient of it (which is a union of A and B in Sub(X)) will be a coproduct of A and B.

A coproduct A+B in a 2-category is disjoint if A and B are disjoint subobjects of A+B. We say a coherent 2-category is positive if any two objects have a disjoint coproduct. By Lemma 3, this is equivalent to saying that any two objects can be embedded as disjoint subobjects of some other object. Disjoint coproducts in a coherent 2-category are automatically stable under pullback, so a positive coherent 2-category is necessarily extensive. Conversely, we have:

Lemma

A regular and extensive 2-category is coherent (and positive).

In the presence of finite coproducts, a family {e i:A iB} is jointly-eso iff iA iB is eso; thus regularity and universal coproducts imply that finite jointly-eso families are stable under pullback. And assuming extensivity, any 2-polycongruence {C ij}{C i} gives rise to an ordinary 2-congruence ijC ij iC i. Likewise, 2-polyforks {C ij}{C i}X correspond to 2-forks ijC ij iC iX, and the property of being a kernel or a quotient is preserved; thus regularity implies coherency.

Preservation

If K is coherent, then easily so are K co, disc(K), gpd(K), pos(K), and Sub(1). Moreover, we have:

Theorem

If K is a coherent 2-category, so are the fibrational slices Opf(X) and Fib(X) for any XK.

Extensive 2-categories

A coproduct A+B in a 2-category is said to be disjoint if we have comma squares

A 2 A B 2 B 0 A 0 B A A+B B A+B B A+B A A+B \array{ A^{\mathbf{2}} & \to & A & \quad & B^{\mathbf{2}} & \to & B & \quad & 0 & \to & A & \quad & 0 & \to & B \\ \downarrow & \Downarrow & \downarrow & \quad & \downarrow & \Downarrow & \downarrow & \quad & \downarrow & \Downarrow & \downarrow & \quad & \downarrow & \Downarrow & \downarrow & \quad\\ A & \to & A+B & \quad & B & \to & A+B & \quad & B & \to & A+B & \quad & A & \to & A+B & \quad}

The first two say that AA+B and BA+B are ff and the second two say that they are disjoint subobjects of A+B.

A coproduct A+B is said to be universal if for any morphism ZA+B, the pullbacks

X Z Y A A+B B\array{X & \to & Z & \leftarrow & Y\\ \downarrow & & \downarrow & & \downarrow\\ A & \to & A+B & \leftarrow & B}

exist and exhibit Z as a coproduct X+Y.

Finally, we say a 2-category is extensive if it has finite coproducts which are disjoint and universal. If it also has finite limits we say it is lextensive, and if it is also coherent we call it positive. (Note that disjoint coproducts in a coherent 2-category are always universal.)

An extensive 2-category does satisfy 2-categorical versions of the additional characterizations of an extensive 1-category, but unlike in the 1-categorical case, these alternate conditions do not seem to suffice to characterize extensivity. In particular, though, a 1-category is extensive as a 1-category iff it is so as a homwise-discrete 2-category.

Preservation

If K is extensive, so is K co, obviously. Less obvious is:

Lemma

If K is extensive, so are gpd(K), pos(K), and disc(K). In other words, if K is extensive, so is its (n+1)-category trunc n(K) of n-truncated objects for 0n.

Proof

Since the three given categories are closed in K under limits and strict initial objects, it suffices to show they are closed under coproducts. First suppose given two morphisms f,g:ZA 1+A 2. Then f decomposes Z=X 1+X 2, and g decomposes Z=Y 1+Y 2. Then the inclusions X iZ=Y 1+Y 2 also decompose each X i=X i1+X i2. Now if there exists a 2-cell fg, it induces a map from each X ij to the comma object of A 1 and A 2. Since coproducts are disjoint and initials are strict, this implies that X 12=X 21=0. Therefore, we have a decomposition Z=X 11+X 22 so that f=f 1+f 2 and g=g 1+g 2, where f i:X iiA i and g i:X iiA i.

Now, by universality of the coproduct X 11+X 22, it follows that 2-cells fg are determined uniquely by pairs of 2-cells f 1g 1 and f 2g 2. Therefore, if A 1 and A 2 are groupoidal, any 2-cells f 1g 1 and f 2g 2 are invertible, and thus so is any 2-cell fg; so A 1+A 2 is groupoidal. And if A 1 and A 2 are posetal, any parallel 2-cells f 1g 1 and f 2g 2 are equal, and thus so are any fg; so A 1+A 2 is posetal. And of course the discrete case follows by combining these.

However, the (0,1)-category (= poset) Sub(1) of (-1)-truncated objects (= subterminal objects) does not inherit extensivity, and in fact posets are almost never extensive: the only disjoint coproduct is 0+0.

We also have:

Lemma

If K is extensive, so are the fibrational slices Opf(X) and Fib(X) for any XK.

2-pretoposes

Definition

Let n be 2, (2,1), (1,2), or 1. That is, 1n2 and n is directed; see n-prefix.

Definition

An n-pretopos is an n-exact n-category which is also extensive. An infinitary n-pretopos is an n-pretopos which is infinitary-extensive.

As remarked here, regularity plus extensivity implies coherency. Thus an n-pretopos is, in particular, a coherent n-category. Conversely, we have:

Theorem

An n-category is an n-pretopos if and only if it is coherent and every (finitary) n-polycongruence is a kernel.

Examples

  • Cat is a 2-pretopos. Likewise, Gpd is a (2,1)-pretopos and Pos is a (1,2)-pretopos.

  • A 1-category is a 1-pretopos precisely when it is a pretopos in the usual sense. Note that, as remarked for exactness, a 1-category is unlikely to be an n-pretopos for any n>1.

  • Since no nontrivial (0,1)-categories are extensive, the definition as phrased above is not reasonable for n=(0,1). However, for some purposes (such as the n-Giraud theorem), it is convenient to define an (infinitary) (0,1)-pretopos to simply be an (infinitary) coherent (0,1)-category (exactness being automatic).

Colimits

An n-pretopos has coproducts and quotients of n-congruences, which are an important class of colimits. However, it can fail to admit all finite colimits, for essentially the same reason as when n=1: namely, some ostensibly “finite” colimits secretly involve infinitary processes. In a 1-category, this manifests in the construction of arbitrary coequalizers and pushouts, where we must first generate an equivalence relation by an infinitary process and then take its quotient.

For 2-categories it is even easier to find counterexamples: the 1-pretopos FinSet does in fact have all finite colimits, but the 2-pretopos FinCat of finite categories (that is, finitely many objects and finitely many morphisms) does not have coinserters, coinverters, or coequifiers. (The category FPCat of finitely presented categories does have finite colimits, but fails to have finite limits.)

However, I conjecture that just as in the case n=1, once an n-pretopos is also countably-coherent, it does become finitely cocomplete. See colimits in an n-pretopos.

Heyting 2-categories

Definition

Definition

A 2-category is Heyting if it is coherent and each pullback functor f *:Sub(Y)Sub(X) has a right adjoint f.

As in the 1-categorical case, this also ensures that each Sub(X) is a Heyting algebra and that each f * is a homomorphism of Heyting algebras. Moreover, the right adjoints f satisfy the Beck-Chevalley condition for pullback squares, because the left adjoints f do. This is just what is necessary for the internal interpretation of (finitary) first-order logic.

Examples

  • Cat is Heyting.

  • A 1-category is Heyting as a 2-category iff it is Heyting as a 1-category.

  • A (0,1)-category is Heyting iff it is a Heyting algebra.

  • Any well-powered infinitary-coherent 2-category is Heyting, by the adjoint functor theorem for posets. In particular, any Grothendieck 2-topos is Heyting.

  • Unlike in the 1-categorical case, there seems no reason why a coherent 2-category with exponentials must be Heyting. It does, however have adjoints to pullback along fibrations and opfibrations, and in particular along product projections, which is enough for some uses of universal quantification in the internal logic.

Preservation

Clearly if K is Heyting, so are K co, gpd(K), pos(K), disc(K), and Sub(1) (the Heyting algebra of subterminals).

Moreover, Heytingness is also preserved by fibrational slicing. First we show:

Theorem

If K is Heyting, then for any X and any AOpf(X), Sub Opf(X)(A) is a coreflective sub-poset of Sub K(A).

Proof

As proven here, Sub Opf(X)(A) is a full sub-poset of Sub K(A). Moreover, it is easy to see that a ff BA is in Sub Opf(X)(A) precisely when

  1. BX is an opfibration and
  2. BA is a morphism of opfibrations.

In general, the first condition does not imply the second. It is also easy to check that these two conditions together are equivalent to saying that the composite

B× XX 2A× XX 2aAB\times_X X ^{\mathbf{2}} \to A\times_X X ^{\mathbf{2}} \overset{a}{\to} A

factors through BA, where a is the action making A into a fibration. Note that B× XX 2 is alternately written as p *B, where p:A× XX 2A is the projection onto the first factor. Therefore, B is in Sub Opf(X)(A) just when pa *BB, or equivalently when B ap *B.

We claim that B ap *B coreflects Sub(A) into Sub Opf(X)(A), and given the above, it suffices to verify that it is a comonad. First, let i:AA× XX 2 be the inclusion of identities; then ai1 and pi1, so we have

i *a *B= B a *B iB pa *B p iB=B.\begin{aligned} i^*a^*B =& B\\ a^*B \le& \forall_i B\\ \forall_p a^* B \le& \forall_p \forall_i B = B. \end{aligned}

This gives the counit of the comonad. The comultiplication is a little more involved. First note that we have a pullback square

A× XX 2× XX 2 q A× XX 2 a×1 a A× XX 2 p A\array{ A\times_X X ^{\mathbf{2}} \times_X X ^{\mathbf{2}} & \overset{q}{\to} & A\times_X X ^{\mathbf{2}} \\ ^{a\times 1}\downarrow && \downarrow^a\\ A\times_X X ^{\mathbf{2}} & \underset{p}{\to} & A}

where q denotes projection onto the first two factors. Thus, by the Beck-Chevalley condition, a * p= q(a×1) * and therefore

pa * pa *B= p q(a×1) *a *B= p q(1×m) *a *B\forall_p a^*\forall_p a^* B = \forall_p \forall_q (a\times 1)^* a^* B = \forall_p \forall_q (1\times m)^* a^* B

where m:X 2× XX 2X 2 is the “composition” morphism.

Let us write X for X 2× XX 2, the object of composable arrows in X, and write X for the power of X with the category

\array{&& \bullet\\ & \nearrow\\ \bullet &\to & \bullet & \to &\bullet}

Let r:X X forget the “lonely” arrow, and let c:X X make the lonely arrow into the composite of the other two. Then rc1, and moreover pqc1×m, where p and q are p and q applied to the non-lonely arrows. Thus, we have

c *(q) *(p) *a *B= (1×m) *a *B (q) *(p) *a *B c(1×m) *a *B r(q) *(p) *a *B r c(1×m) *a *B r(q) *(p) *a *B (1×m) *a *B q *p * pa *B (1×m) *a *B pa *B p q(1×m) *a *B pa *B pa * pa *B.\begin{aligned} c^* (q')^* (p')^* a^* B =& (1\times m)^* a^* B\\ (q')^* (p')^* a^* B \le& \forall_c (1\times m)^* a^* B\\ \forall_r (q')^* (p')^* a^* B \le& \forall_r \forall_c (1\times m)^* a^* B\\ \forall_r (q')^* (p')^* a^* B \le& (1\times m)^* a^* B\\ q^* p^* \forall_p a^* B \le& (1\times m)^* a^* B\\ \forall_p a^* B \le& \forall_p \forall_q (1\times m)^* a^* B\\ \forall_p a^* B \le& \forall_p a^*\forall_p a^* B. \end{aligned}

as desired. (Here we have used another Beck-Chevalley condition to move r past q and p, turning them into p and q and it into p.)

Corollary

If K is Heyting, so is each fibrational slice Opf(X) and Fib(X).

Proof

This follows from the adjoint lifting theorem for posets: for any f:AB in Opf(X) we have a commutative square

Sub Opf(X)(B) f * Sub Opf(X)(A) Sub K(B) f * Sub K(A)\array{Sub_{Opf(X)}(B) & \overset{f^*}{\to} & Sub_{Opf(X)}(A)\\ \downarrow && \downarrow\\ Sub_K(B)& \underset{f^*}{\to} & Sub_K(A)}

where the vertical arrows are comonadic (inclusions of coreflective sub-posets) and the bottom horizontal arrow has a right adjoint; hence so does the top horizontal arrow.

Booleanness

We may naturally say that a coherent 2-category K is Boolean if each Sub(X) is a Boolean algebra. As usual, this implies that K is Heyting; we have f=¬ f¬.

Note that a subobject and its complement in Sub(X) need not be “disjoint” in the sense introduced here; only their pullback, not their comma object, need be initial. Note also that unlike in the 1-categorical case, Booleanness is not stable under slicing; this fails already in the (1,2)-category Pos (though it holds in any (2,1)-category).

Cores

Cores

The core of a category A is the maximal subcategory of A that is a groupoid, consisting of all its objects and all isomorphisms between them. The core is not a functor on the 2-category Cat, but it is a functor on the (2,1)-category Cat g of categories, functors, and natural isomorphisms. In fact, it is a coreflection of Cat g into Gpd.

In general, for any 2-category K we write K g for its “homwise core:” the sub-2-category determined by all the objects and morphisms but only the iso 2-cells. Of course, K g is a (2,1)-category. Then gpd(K) is a full sub-2-category of K g, and we can ask whether it is coreflective. In a regular 2-category, however, it turns out that there is a stronger and more useful notion which implies this coreflectivity.

Definition

A core of an object A in a regular 2-category is a morphism JA which is eso, pseudomonic, and where J is groupoidal.

Lemma

In a regular 2-category K, any core JA is a coreflection of A from K g into gpd(K).

Proof

We must show that for any groupoidal G, the functor

gpd(K)(G,J)=K g(G,J)K g(G,A)gpd(K)(G,J)=K_g(G,J)\to K_g(G,A)

is an equivalence. Since JA is pseudomonic in K, it is ff in K g, so this functor is full and faithful; thus it remains to show it is eso. Given any map GA, take the pullback

P J G A\array{P & \to & J\\ \downarrow && \downarrow \\ G & \to & A}

and let P 1P be the kernel of PG. Since the composite PA descends to G, it comes equipped with an action by this kernel. However, since G is groupoidal, P 1P is a (2,1)-congruence, so the 2-cell defining the action must be an isomorphism. Therefore, it must factor uniquely through the pseudomonic JA, so PJ has an action as well; thus it descends to a map GJ, as desired.

In particular, cores in a regular 2-category are unique up to unique equivalence. We write J(A) for the core of A, when it exists.

Lemma

An object A of a (2,1)-exact 2-category has a core if and only if there is an eso CA where C is groupoidal.

Proof

“Only if” is clear, so suppose that p:CA is eso and C is groupoidal. Let C 1=C× AC be the pullback. Then C 1 is also groupoidal and is a (2,1)-congruence on C, so by exactness it is the kernel of some eso q:CJ. There is an evident induced map m:JA; we claim that this is a core of A.

Evidently m:JA is eso, since the eso CA factors through it. And since C 1 is a (2,1)-congruence, the classification of congruences implies that J is groupoidal; thus it remains to show that m is pseudomonic.

First suppose given f,g:XJ. Pulling back q along f and g gives esos P 1X and P 2X, whose pullback P=P 1× XP 2 comes with an eso r:PT and two morphisms h,k:PC with qhfr and qkgr. Then any pair of 2-cells α,β:fg induce maps PC 1, since C 1 is the kernel (q/q). But if mα=mβ, then these two maps must be equal, since C 1 is also the kernel (p/p). Therefore, αr=βr, and since r is eso, α=β; thus m is faithful.

On the other hand, again given f,g:XJ, any isomorphism α:mfmg induces a map PC 1 and therefore a 2-cell β:frgr with mβ=αr. To show that β descends to a 2-cell fg, we must verify that it is an action 2-cell for the actions of PJ on fr and gr. But mβ is an action 2-cell, since mβ=αr, and we now know that m is faithful, so it reflects the axiom for an action 2-cell. Therefore, m is full-on-isomorphisms, and hence pseudomonic.

Enough groupoids

We say that a regular 2-category has enough groupoids if every object admits an eso from a groupoidal one. Thus, a (2,1)-exact 2-category has cores if and only if it has enough groupoids.

Likewise, we say that a regular 2-category has enough discretes if every object admits an eso from a discrete one. Clearly this is a stronger condition. Note, though, that if K has enough groupoids, then pos(K) has enough discretes, since the core of any posetal object is discrete.

Having enough discretes, or at least enough groupoids, is a very familiar aspect of 2-categories such as Cat. It also turns out to make the internal logic noticeably easier to work with. However, in a sense none of the really “new” 2-categories have enough groupoids or discretes.

  • The 2-exact 2-categories having enough discretes are precisely the categories of internal categories and anafunctors in 1-exact 1-categories; see exact completion of a 2-category. Likewise, any 2-exact 2-categories having enough groupoids consists of certain internal categories in a (2,1)-category.

  • Basically the only Grothendieck 2-toposes having enough discretes are the 2-categories of stacks on 1-sites, and the only ones having enough groupoids are the 2-categories of stacks on (2,1)-sites. The “honestly 2-dimensional” case of stacks on 2-sites (almost?) never have enough of either.

Subobjects

We also remark that cores, when they exist, “capture all the information about subobjects.”

Proposition

If K is a regular 2-category and A is an object having a core j:JA, then j *:Sub(A)Sub(J) is an equivalence.

Proof

It is a general fact in a regular 2-category that for any eso f:XY, f *:Sub(Y)Sub(X) is full (and faithful, which of course is automatic for a functor between posets). For if f *Uf *V, then we have a square

f *U f *V V U Y\array{f^*U & \to & f^*V & \to & V\\ \downarrow &&&& \downarrow\\ U & & \to & & Y}

in which f *UU is eso and VY is ff, hence we have UV over Y.

Thus, in our case, j * is full and faithful since j is eso, so it suffices to show that for any ff UJ we have j * jUU in Sub(J). But we have a commutative square

U jU J X\array{U & \to & \exists_j U\\ \downarrow && \downarrow\\ J & \to & X}

where the vertical arrows are ff and the bottom arrow JX is faithful and pseudomonic, from which it follows that U jU is also faithful and pseudomonic. Since U jU is eso by definition, U is a core of jU, and since j * jU is a groupoid mapping to jU, it factors through U, as desired.

NNOs in a 2-category

If K is a 2-category with finite limits, a successor algebra in K is an object X equipped with morphisms o:1X and s:XX. A morphism of successor algebras is a morphism f:XY with isomorphisms fo Xo Y and fs Xs Yf. Likewise a 2-cell of successor algebras is a 2-cell α:fg commuting with the above isomorphisms in an obvious way.

Finally, a natural numbers object in K is an initial object N in the 2-category SuccAlg(K) of successor algebras. This means that for any successor algebra X there is a morphism NX of successor algebras, unique up to unique isomorphism. Clearly any NNO in K is also an NNO, in the usual sense, in disc(K).

If K doesn’t have enough exponentials, then perhaps this definition should be augmented with some parametricity, as in the 1-categorical case.

As in a 1-category, we can prove that:

  • If K has coproducts, then [o,s]:1+NN is an equivalence, since N is an initial algebra for the endofunctor 1+().
  • Therefore, if K is extensive, then o:1N and s:NN are disjoint subobjects of N.
  • N satisfies the fifth Peano axiom: if N is a subobject of N containing o and closed under s, then N=N.

This enables us to show the following, using the internal logic.

Theorem

If K is a positive Heyting coherent 2-category with an NNO N, then N is discrete.

Proof

First note that since N1+N and coproducts are disjoint, we have

x:N,f:hom N(o,x),g:hom N(x,o) f=gand is an isomorphism x:N,f:hom N(x,o),g:hom N(o,x) f=gand is an isomorphism\begin{aligned} x:N, f:hom_N(o,x), g:hom_N(x,o) &\vdash f=g\;\text{and is an isomorphism}\\ x:N, f:hom_N(x,o), g:hom_N(o,x) &\vdash f=g\;\text{and is an isomorphism} \end{aligned}

Now consider the subobject SN described in the internal logic as determined by those y:N for which the above sequents remain true when o is replaced by y. (This requires universal quantification over x,f,g.) The above observation shows that oS. Suppose that yS, x:N, and f:hom N(sy,x), g:hom N(sy,x). If x=o then f=g and is an isomorphism; otherwise x=sz; but s is ff, so we have f:hom N(y,z) and g:hom N(y,z) which are equal and isomorphisms; hence so are f=s(f) and g=s(g). Thus, S is closed under s, so it is all of N. Therefore, N is discrete.

Exponentials in a 2-category

Cat is not locally cartesian closed

The 2-category Cat is cartesian closed, in an appropriate 2-categorical sense; see also the discussion here. However, it is not locally cartesian closed. This failure is fundamental and has nothing to do with strictness or size issues; pullbacks just don’t preserve colimits. For example, let X=(012) be the ordinal 3; then there is a pushout

(1) (12) (01) (012)\array{(1) & \to & (1\to 2)\\ \downarrow && \downarrow\\ (0\to 1) & \to & (0\to 1\to 2)}

in Cat/X which pulls back along the inclusion (02)X to

(2) (0) (02)\array{\emptyset & \to & (2)\\ \downarrow && \downarrow\\ (0) & \to & (0\to 2)}

which is certainly not a pushout. Note that the same counterexample applies in Pos.

It is similarly easy to write down examples of coinserters, coinverters, and coequifiers that are not preserved by pullbacks. Coproducts are preserved by pullback (in fact, Cat is extensive), as are quotients of 2-congruences (since Cat is regular), but these seem to be about it for pullback-stable colimits in Cat.

2-categories with exponentials

However, there are a number of other useful exponentiability properties that do hold when K=Cat.

  1. Fibrations and opfibrations are exponentiable. That is, if f:AX is an (op)fibration, then exponentials (BX) (AX) exist in the slice 2-category K/X. Equivalently, f *:K/XK/A has a right adjoint Π f. (Fibrations and opfibrations are not the only exponentiable morphisms in Cat, but they are certainly the most important and most commonly encountered ones.)

  2. If AX is an opfibration and BX is a fibration, then the exponential (BX) (AX) in K/X is a fibration, and dually.

  3. For any f:YX, the functor f *:Fib(X)Fib(Y) has a right adjoint Ran f, and likewise for f *:Opf(X)Opf(Y).

  4. For any f:YX, the functors f *:DFib(X)DFib(Y) and f *:DOpf(X)DOpf(Y) have right adjoints Ran f.

  5. The 2-categories Fib(X) and Opf(X) are all cartesian closed.

  6. K itself is cartesian closed.

  7. The 2-categories DFib(X) and DOpf(X) are all locally cartesian closed.

Note that Ran f and Π f are not the same even when both exist, and likewise the exponentials in Fib(X) are not the same as the exponentials in K/X even when both exist. The latter are better-behaved in some ways, for instance they are stable under pullback (because they are “fiberwise”).

Perhaps surprisingly, it turns out that the first of these properties is sufficient to imply all the others. The goal of the rest of this page is to prove this claim. Therefore, we define:

Definition

A 2-category K with finite limits is said to have exponentials if all fibrations and opfibrations in K are exponentiable.

Note that a 1-category, and in fact any (2,1)-category, has exponentials if and only if it is locally cartesian closed, since every morphism is a fibration and opfibration.

Basic observations

We begin with a couple of easy observations.

Proposition

If either fibrations or opfibrations are exponentiable in K, then K is cartesian closed.

Proof

Of course, K is cartesian closed just when every morphism A1 is exponentiable; but every such morphism is both a fibration and an opfibration.

Proposition

If AX is an opfibration and BX is a fibration, then the exponential (BX) (AX) in K/X (if it exists) is a fibration, and dually.

Proof

We say briefly how to construct an action morphism

X 2× X(BX) (AX)(BX) (AX).X ^{\mathbf{2}} \times_X(B\to X)^{(A\to X)} \to (B\to X)^{(A\to X)}.

Of course, by adjointness it suffices to construct a morphism

A× XX 2× X(BX) (AX)BA\times_X X ^{\mathbf{2}} \times_X (B\to X)^{(A\to X)} \to B

over X. Now the left-hand side is a limit of the diagram

(BX) (AX) X 2 X A X.\array{ &&&& (B\to X)^{(A\to X)}\\ &&&& \downarrow\\ && X ^{\mathbf{2}} &\to & X\\ && \downarrow\\ A & \to & X.}

We first map it via a diagonal to the limit of

(BX) (AX) X 2 X A X X 2\array{ &&&& (B\to X)^{(A\to X)}\\ &&&& \downarrow\\ && X ^{\mathbf{2}} &\to & X\\ && \downarrow && \uparrow\\ A & \to & X & \leftarrow & X ^{\mathbf{2}}}

then use the covariant action of X on A to map to the limit of

(BX) (AX) A X X X 2\array{ && (B\to X)^{(A\to X)}\\ && \downarrow\\ A &\to & X\\ && \uparrow\\ X & \leftarrow & X ^{\mathbf{2}}}

then the evaluation A× X(BX) (AX)B to get to the limit of

B X X X 2\array{ && B\\ && \downarrow\\ && X\\ && \uparrow\\ X & \leftarrow & X ^{\mathbf{2}}}

and finally the contravariant action of X on B to get to

B X.\array{ B\\ \downarrow \\ X.}

It is then straightforward to check that this action makes (BX) (AX) into a fibration.

Comonadicity

The key observation for many of the proofs below is the following.

Lemma

If K has exponentials, then for any X, Fib(X) and Opf(X) are comonadic, as well as monadic, over K/X.

Proof

The monad on K/X whose category of algebras is Fib(X) takes AX to X 2× XA, or equivalently Σ st *A where (s,t):X 2X are the two projections. But t is an opfibration, so Σ st * has a right adjoint Π ts *. And it is a standard result, valid for 2-categories as for 1-categories, that when the underlying functor of a monad has a right adjoint, its right adjoint becomes a comonad whose category of coalgebras is equivalent to the category of algebras for the original monad.

Corollary

If K has exponentials, then Fib(X) and Opf(X) inherit any colimits possessed by K.

Proof

The category of coalgebras for any comonad inherits colimits from the base category, and slice (2-)categories always inherit colimits.

For our main applications of comonadicity, we require the following observation.

Proposition

Given a commutative square

D 1 G¯ D 2 U 1 U 2 C 1 G C 2\array{D_1 & \overset{\overline{G}}{\to} & D_2\\ ^{U_1}\downarrow && \downarrow ^{U_2}\\ C_1 & \underset{G}{\to} & C_2}

of functors between 2-categories, if U 1 and U 2 are monadic, D 1 has reflexive codescent objects, and G has a left adjoint, then G¯ also has a left adjoint. Dually, if U 1 and U 2 are comonadic, D 1 has reflexive descent objects, and G has a right adjoint, then G¯ also has a right adjoint.

Proof

The 1-categorical version of this, referring to reflexive (co)equalizers, is well-known; see for instance

  • P. T. Johnstone, Adjoint lifting theorems for categories of algebras.

The idea is the same as that in Beck’s (co)monadicity theorem: we express any object of D 2 as a reflexive coequalizer of free algebras, then apply the left adjoint of G to obtain a reflexive pair of free algebras in D 1 and take its coequalizer. The 2-categorical version is analogous, using the ideas of a 2-categorical monadicity theorem as found, for example, in

  • Claudio Hermida, Descent on 2-fibrations and strongly 2-regular 2-categories.

The dual is, of course, obvious.

Slicing and cartesian closure

Using comonadicity, we can show that certain exponentials are stable under slicing. First we observe:

Lemma

If YX is a fibration, then Fib(X)/Y is monadic over K/Y. If additionally K has exponentials, then Fib(X)/Y is also comonadic over K/Y.

Proof

The first statement is an instance of a general fact: if T is a monad on a (2-)category C and Y is a T-algebra, then there is an induced monad T Y on C/Y whose (2-)category of algebras is TAlg/Y, defined by taking AY to the composite TATYY.

The second statement is also an instance of a general fact: if such a T has a right adjoint G, then T Y also has a right adjoint G Y defined to take AY to the pullback

G YA GA Y GY.\array{G_Y A & \to & G A\\ \downarrow && \downarrow\\ Y & \to & G Y.}

Here the lower map YGY is the adjunct of the algebra structure map TYY.

Proposition

If K has exponentials, then a morphism in Fib(X) or Opf(X) is exponentiable if its underlying morphism in K is so. In particular, if K has exponentials, then for any X, fibrations are exponentiable in Fib(X) and opfibrations are exponentiable in Opf(X).

Proof

Suppose that f:ZY is a morphism in Fib(X) and that f is exponentiable in K. Then we have a commutative square

Fib(X)/Y f * Fib(X)/Z K/Y f * K/Z\array{Fib(X)/Y & \overset{f^*}{\to} & Fib(X)/Z\\ \downarrow && \downarrow\\ K/Y& \underset{f^*}{\to} & K/Z}

in which the vertical functors are comonadic by Lemma 10, and the bottom functor f * has a right adjoint since f is exponentiable in K. Therefore, by Proposition 4, the top functor f * has a right adjoint as well. The second statement follows because the underlying morphism in K of any fibration in Fib(X) is a fibration in K, and dually (see the theorems on iterated fibrations).

Corollary

If K has exponentials and a duality involution, then Fib(X) and Opf(X) also have exponentials for any X.

Proof

After Proposition 5, it remains to show that opfibrations are exponentiable in Fib(X) (and dually, fibrations are exponentiable in Opf(X)). Note that an opfibration in Fib(X) will not, in general, be an opfibration in K. But with a duality involution we have Fib(X)Opf(X o), and opfibrations are exponentiable in Opf(X o), hence also in Fib(X).

We say that a 2-category K has local exponentials if K has exponentials and each 2-category Fib(X) and Opf(X) also has local exponentials. Of course, the recursion in this definition is not well-founded, but we can reformulate it in explicit terms to say that

  1. K has exponentials,
  2. Each Opf(X) and Fib(X) has exponentials,
  3. Each Opf Fib(X)(AX) and Fib Opf(X)(AX) has exponentials,
  4. and so on.

Since duality involutions are stable under fibrational slicing, Corollary 3 implies that if K has exponentials and a duality involution, then it has local exponentials. It would be nice to have a finite list of axioms that implies local exponentials without invoking a duality involution (since not all Grothendieck 2-toposes have dualities).

Corollary

If K has exponentials, then the 2-categories Fib(X) and Opf(X) are all cartesian closed.

Proof

Combine Propositions 5 and 2.

Corollary

If K has exponentials, then the categories DFib(X) and DOpf(X) are all locally cartesian closed.

Proof

Since right adjoints preserve discrete objects, Corollary 4 implies that DFib(X) and DOpf(X) are cartesian closed for any X. Now, given a discrete fibration AX, we have Fib K(A)Fib Fib(X)(AX) by the theorem on iterated fibrations, and so DFib K(A)DFib Fib(X)(AX)DFib K(X)/(AX). Thus, since DFib K(A) is cartesian closed, so is DFib K(X)/(AX), and thus DFib K(X) is locally cartesian closed.

Left Kan extensions

We now turn to the existence of left and right adjoints to pullback functors. So far what we know is

  • f *:K/YK/X always has a left adjoint Σ f given by composition with f.
  • If K has exponentials and f is a fibration or opfibration, then (by definition) f *:K/YK/X has a right adjoint Π f.
  • If K has a comprehensive factorization (such as when it is countably-coherent), then f *:DFib(Y)DFib(X) and f *:DOpf(Y)DOpf(X) have left adjoints Lan f, which satisfy the Beck-Chevalley condition for comma squares.

Note that even if f is a fibration, so that Σ f maps Fib(Y) to Fib(X), it will not in general be a left adjoint to f *:Fib(X)Fib(Y). However, if f is a discrete fibration, then Σ f:DFib(Y)DFib(X) is left adjoint to f *:DFib(X)DFib(Y), since DFib(X) is a full sub-2-category of K/X.

We now consider how to construct left adjoints for non-discrete fibrations.

Proposition

If K has exponentials and reflexive codescent objects, then each pullback functor f *:Fib(Y)Fib(X) and f *:Opf(Y)Opf(X) has a left adjoint Lan f.

Proof

Because of the existence of Σ f, by Proposition 4 it suffices to show that Fib(X) and Opf(X) always have reflexive codescent objects; but this follows from Corollary 2.

The basic first-order structure we are interested in doesn’t imply the existence of such codescent objects, and a Heyting 2-pretopos, such as FinCat, need not have them. But they can be constructed with some infinitary structure; see colimits in an n-pretopos.

I do not know whether these adjunctions always satisfy the Beck-Chevalley condition for comma squares (although they do in one important case; see below).

Right Kan extensions

We now consider the existence of right adjoints to pullback functors between fibrational slices.

Proposition

If K has exponentials, then f *:Opf(X)Opf(Y) and f *:Fib(X)Fib(Y) have right adjoints Ran f for any f.

Proof

If f is exponentiable in K, this follows directly from Lemma 9 and Proposition 4. In particular, this applies when f is a fibration or opfibration.

Now let f:YX be any morphism, and consider the comma square:

Comma Square (1/f) X Y X t s 1 f

Suppose first that all the left adjoints Lan g exist for opfibrational slices and satisfy the Beck-Chevalley condition for comma squares. Then this comma square gives us an equivalence f *Lan ts *, so that f *:Opf(X)Opf(Y) has the right adjoint Ran f:=Ran st *.

We now show that regardless of the overall existence of left adjoints, the particular value Lan ts *(A) exists for any AOpf(X) and is given by f *A. This clearly suffices to prove the result.

According to the proof of Proposition 6, Lan ts *(A) should be given by the codescent object of

Descent object R S T

where

T= Σ ts *A× YY 2 S= Σ t(s *A× (1/f)(1/f) 2)× YY 2 R= Σ t(s *A× (1/f)(1/f) 2× (1/f)(1/f) 2)× YY 2.\begin{aligned} T =& \Sigma_t s^* A \times_Y Y ^{\mathbf{2}}\\ S =& \Sigma_t \left(s^* A\times_{(1/f)} (1/f)^{\mathbf{2}}\right) \times_Y Y ^{\mathbf{2}}\\ R =& \Sigma_t \left(s^* A\times_{(1/f)} (1/f)^{\mathbf{2}} \times_{(1/f)} (1/f)^{\mathbf{2}}\right) \times_Y Y ^{\mathbf{2}}. \end{aligned}

Now we have a map

q:Σ ts *A× YY 2f *A× YY 2f *A;q:\Sigma_t s^* A \times_Y Y ^{\mathbf{2}} \to f^* A \times_Y Y ^{\mathbf{2}} \to f^*A;

the first map is a Beck-Chevalley morphism, and the second comes from the fact that f *A is an opfibration. We claim that q is actually a codescent object of the above diagram, and in fact it is a split codescent object. Recall from

  • Claudio Hermida, Descent on 2-fibrations and strongly 2-regular 2-categories.

that a split codescent object is a diagram

Descent object R π 01 π 12 π 02 μ S c d τ T q σ Q

with isomorphisms cτσq, π 12μτc, π 02μτd, 1π 01μ, 1dτ, and 1qσ satisfying certain axioms. In this situation, q is necessarily the codescent object of the diagram composed of d,c,π 01,π 02,π 12.

Tracing through the definitions above, we see that our T is the limit of the span AXY weighted by

(0)(012)(12).(0) \;\to\; (0\to 1\to 2) \;\leftarrow\; (1\to 2).

Likewise, S is the limit of AXY weighted by

(0)(0 1 2 3 4)(234)(0) \;\to\; \left(\array{0&\to&1\\ \downarrow && \downarrow \\ 2 &\to & 3& \to & 4}\right) \;\leftarrow\; (2 \to 3\to 4)

and R is the limit by an evident more complicated weight. Finally, f *A itself is the limit of the same span weighted by

()()().(\cdot) \;\to\; (\cdot) \;\leftarrow\; (\cdot).

The morphism q is induced by the action of X on the opfibration A, applied twice. The morphism d is induced by the inclusion of the second arrow in a composable pair and the action of X on A applied once. The morphism c is induced by the composition of a composable pair. We define the splitting σ,τ,μ in terms of the limit weights by adding in identity morphisms in appropriate places. It is then straightforward to check that the axioms for a split codescent object are satisfied.

Corollary

If K has exponentials, then f *:DOpf(X)DOpf(Y) and f *:DFib(X)DFib(Y) have right adjoints Ran f for any f.

Proof

Right adjoints preserve discrete objects.

This completes the proof that exponentiability of fibrations and opfibrations implies all the other notable exponentiability properties we might want to require of a 2-category.

Enrichment

One further observation:

Proposition

If K has exponentials, then each category DFib(X) is enriched over the cartesian closed category disc(K).

Proof

We define the hom-object DFib(X)(A,B) to be Ran XB A, where B A is the exponential in DFib(X) and

Ran X:DFib(X)DFib(1)disc(K)Ran_X:DFib(X) \to DFib(1)\simeq disc(K)

is the right adjoint to X *. A composition map is obtained by adjointness in the usual way. We also have

K(1,DFib(X)(A,B)) K(1,Ran XB A) DFib(X)(1 X,B A) DFib(X)(A,B)\begin{aligned} K(1,\mathbf{DFib(X)}(A,B)) \cong& K(1, Ran_X B^A)\\ \cong& DFib(X)(1_X, B^A)\\ \cong& DFib(X)(A,B) \end{aligned}

so the underlying ordinary category of this disc(K)-enriched category is the ordinary category DFib(X).

In fact, more is true: I believe DFib(X) can be made into a locally internal category, or equivalently a locally small fibration, over disc(K). Its fiber over a discrete object ZK is the category DFib(X×Z). This follows by localizing the previous lemma in the slices Fib(Z)K/Z; one also has to check that a suitable Beck-Chevalley condition is satisfied by the right adjoints Ran f.

Duality involutions

An important structure possessed by the 2-category Cat is the duality involution () op:Cat coCat. Here we consider what the important properties of this involution are that should be generalized to other 2-categories.

Involutions

The most obvious property of () op is that it is coherently self-inverse. To state this formally, let J be the walking isomorphism (01), considered as a 3-category with only identity 2-cells and 3-cells. Thus, a (pseudo) functor from J to any 3-category T can be considered an “internal adjoint (bi)equivalence in T.” If T is a 3-category, let C 3op denote the 3-cell dual of T; note that J 3opJ and that () co is a functor 2Cat2Cat 3op. Finally, let τ:JJJ 3op be the evident involution that switches 0 and 1.

Definition

A 2-contravariant involution (hereafter merely an involution) on a 2-category K is functor W:J2Cat such that W(0)=K and the square

J τ J 3op W W 2Cat () co 2Cat 3op\array{J & \overset{\tau}{\to} & J^{3op}\\ ^W \downarrow && \downarrow^W\\ 2Cat & \underset{(-)^{co}}{\to} & 2Cat^{3op}}

commutes (on the nose).

We write () o:KK co (or equivalently K coK) for the functor W(01); the rest of the data of W simply says that (() o) oId in a coherent way.

Example

Any (2,1)-category K admits a canonical involution that is the identity on objects and morphisms and sends each 2-cell to its inverse.

Example

Let C be a 2-category equipped with an involution and let K=[C,Cat]. Then K has a canonical induced involution defined by

[C,Cat] co[C co,Cat co][C,Cat co]() op[C,Cat].[C,Cat]^{co} \overset{\simeq}{\to} [C^{co},Cat^{co}] \overset{\simeq}{\to} [C, Cat^{co}] \overset{(-)^{op}\circ -}{\to} [C,Cat].

Conversely, if C is Cauchy-complete, then C op can be identified with the full subcategory of indecomposable projectives in K, and thus an involution on K induces an involution on C.

Thus, in particular, any (2,1)-truncated 2-presheaf 2-topos admits a canonical involution. However, in general a 2-category that admits an involution will admit many involutions.

Proposition

For any 2-category K, the 2-category Inv(K) of involutions on K, if nonempty, is a torsor for the 3-group Aut(K) of (covariant) automorphisms of K.

Proof

Easy.

In particular, any automorphism of a (2,1)-category C induces an involution on [C,Cat].

Duality Involutions

As observed by WeberYS2T, experience suggests that the most important additional property of the involution () op on Cat is that fibrations over A can be identified with opfibrations over A op, since both are equivalent to functors A opCat. So it is reasonable to consider, together with an involution () o on a 2-category K, a family of equivalences Fib(X)Opf(X o).

The next question is what additional properties should be required of such a family. The following definition is provisional, but I believe whatever eventual definition we settle on should allow the construction of all the data given below.

Definition

A duality involution on a 2-category K is an involution () o together with the following data.

  1. Equivalences of 2-categories

    V X:Fib(X)Opf(X o)V_X:Fib(X) \simeq Opf(X^o)

    which are natural in X (that is, V is a natural equivalence between functors K coop2Cat),

  2. An equivalence between V 1:Fib(1)Opf(1 o) and the composite Fib(1)KOpf(1)Opf(1 o) (note 1 o1 since () o is an equivalence).

  3. For any pullback square

    P A B X\array{P & \to & A\\ \downarrow && \downarrow\\ B & \to & X}

    in which all the displayed maps are fibrations, an invertible modification between the two composites

    Fib(P)V POpf(P o)Opf Opf(A o)(P oA o)V A 1Opf Fib(A)(V AP oA) Opf Fib Fib(X)(AX)(V AP oA)Fib Fib(X)(V X 1B o,A)\begin{gathered} Fib(P) \overset{V_P}{\to} Opf(P^o) \simeq Opf_{Opf(A^o)}(P^o\to A^o) \overset{V_A^{-1}}{\to} Opf_{Fib(A)}(V_A P^o \to A)\\ \simeq Opf_{Fib_{Fib(X)}(A\to X)}(V_A P^o\to A) \simeq Fib_{Fib(X)}(V_X^{-1} B^o, A) \end{gathered}

    and

    Fib(P)Fib Fib(B)(PB)V BFib Opf(B o)(V BPB o)Fib Opf Opf(X o)(B oX o)(V BPB o) V X 1Fib Opf Fib(X)(V X 1B oX)(V X 1V BPV X 1B o)Fib Fib(X)(V X 1B o,A).\begin{gathered} Fib(P) \simeq Fib_{Fib(B)}(P\to B) \overset{V_B}{\to} Fib_{Opf(B^o)}(V_B P\to B^o) \simeq Fib_{Opf_{Opf(X^o)}(B^o\to X^o)}(V_B P\to B^o)\\ \overset{V_X^{-1}}{\to} Fib_{Opf_{Fib(X)}(V_X^{-1} B^o\to X)}(V_X^{-1} V_B P\to V_X^{-1} B^o) \simeq Fib_{Fib(X)}(V_X^{-1} B^o, A). \end{gathered}
  4. An invertible modification filling the square

    Fib(X) V X Opf(X o) () o () o Opf(X o) co V X 1 Fib(X) co.\array{Fib(X) & \overset{V_X}{\to} & Opf(X^o)\\ (-)^o\downarrow && \downarrow (-)^o\\ Opf(X^o)^{co}& \underset{V_X^{-1}}{\to} & Fib(X)^{co}.}

    which commutes with the previous two equivalences.

Perhaps there should also be some coherence data and axioms relating these data to each other.

The first two data should be fairly self-explanatory, but the third datum may seem quite complicated. In fact, it requires some thought to see that the two displayed composites are even well-defined. Note first that since P=A× XB, by naturality of V we have V BPB o× X oV XA, and thus V X 1V BPV X 1B o× XA. Also, P oB o× X oA o, so again by naturality V A 1P oV X 1B o× XA. Thus V X 1V BPV A 1P o, and the final two equivalences in each displayed composite are instances of the theorem on iterated fibrations. One way to think about this datum is as sort of an “inclusion-exclusion” property for reversal of arrows.

We call the final datum commutation of opposites. To explain it, observe that because () o is a 2-contravariant involution, we automatically have equivalences Fib K(X)Fib K co(X o)=Opf K(X o) co (these are the vertical maps in the displayed square). In Cat, this equivalence corresponds to composing a functor A opCat with () op:CatCat as well as reinterpreting it as an opfibration. Commutation of opposites then says that this operation commutes with V.

One immediate application of commutation of opposites is to deduce a version of the third datum for a pullback square of opfibrations, by passage along the equivalences Fib(X)Opf(X o) co. We will see others below.

Example

If K is a (2,1)-category, then its canonical involution extends to a canonical duality involution, since Fib(X)K/XOpf(X).

Example

If C is a (2,1)-category, then the canonical involution on K=[C,Cat] extends in a natural way to a duality involution. This does not seem to be the case if C is merely a 2-category equipped with an involution.

The 3-group Aut(K) also acts on the 2-category DualInv(K) of duality involutions on K; the action is free but (seemingly) no longer necessarily transitive. However, I do not know an example of two inequivalent duality involutions having the same underlying involution (as would be necessary for non-transitivity).

The differences between Definition 13 and the definition of WeberYS2T are threefold.

  1. Our definition is less strict; () o is only required to be self-inverse in a 2-categorically non-evil way.
  2. Our definition refers to arbitrary fibrations and opfibrations, rather than merely discrete ones.
  3. Our definition refers only to one-sided fibrations, whereas WeberYS2T requires an equivalence DFib(A×B,C)DFib(A,B o×C).

Of course, since any equivalence of 2-categories preserves discrete objects, our definition implies an equivalence DFib(X)DOpf(X o). More surprisingly, it turns out that the seemingly stronger two-sided version is a consequence of our definition.

Theorem

If K is equipped with a duality involution, then we have natural equivalences Fib(A×B,C)Fib(A,B o×C).

Proof

We first construct an equivalence Opf(A×B)Fib(A,B o). Note that since Fib(1)Opf(1 o) is the identity, naturality implies that V A(A×B)A o×B. Also, since () o is an equivalence, and products in K are the same as products in K co, we have (A×B) oA o×B o. Now we have the composite equivalence (using the theorem on iterated fibrations):

Opf(A×B)Opf Opf(B)(A×BB)V BOpf Fib(B o)(A×B oB o)Fib(A,B o).Opf(A\times B) \simeq Opf_{Opf(B)}(A\times B \to B) \overset{V_B}{\to} Opf_{Fib(B^o)}(A\times B^o \to B^o) \simeq Fib(A,B^o).

Note that there is also another equivalence

Opf(A×B)V A×BFib((A×B) o)Fib Fib(A o)(A o×B oA o)V AFib Opf(A)(A×B oA)Fib(A,B o),Opf(A\times B) \overset{V_{A\times B}}{\to} Fib((A\times B)^o) \simeq Fib_{Fib(A^o)}(A^o\times B^o\to A^o) \overset{V_A}{\to} Fib_{Opf(A)}(A\times B^o\to A) \simeq Fib(A,B^o),

but the second and third data in the definition of a duality involution supply a canonical equivalence between these composites, so it doesn’t matter which we use. Finally, for the general case, we simply apply this twice:

Fib(A×B,C)Opf(A×B×C o)Opf(A×(B o×C) o)Fib(A,B o×C).Fib(A\times B, C) \simeq Opf(A\times B\times C^o) \simeq Opf(A\times (B^o\times C)^o) \simeq Fib(A, B^o\times C).

This gives our desired equivalence.

Note, though, that this proof crucially requires that the duality involution come with an equivalence Fib(X)Opf(X o), and not merely DFib(X)DOpf(X o).

Commutation of opposites, which we have not yet used, is necessary for the following important, and perhaps also surprising, result: duality involutions are preserved by (fibrational) slicing.

Theorem

Any duality involution on K induces a duality involution on each fibrational slice Fib K(X) and Opf K(X).

Proof

We define () o X:Fib(X) coFib(X) to be the composite

Fib(X)() oOpf(X o) coV X 1Fib(X) co.Fib(X) \overset{(-)^o}{\to} Opf(X^o)^{co} \overset{V_{X}^{-1}}{\to} Fib(X)^{co}.

To show that () o X is an involution, we verify

(A o X) o X=V X 1((V X 1(A o)) o)V X 1(V X((A o) o))(A o) oA.(A^{o_X})^{o_X} = V_X^{-1}((V_X^{-1}(A^o))^o) \simeq V_X^{-1}(V_X((A^o)^o)) \simeq (A^o)^o \simeq A.

Here we use commutation of opposites in K to commute () o past V X. We now define

V A X:Fib Fib(X)(A)Opf Fib(X)(A o X)V^X_A: Fib_{Fib(X)}(A) \simeq Opf_{Fib(X)}(A^{o_X})

to be the composite

Fib Fib(X)(A)Fib(A)V AOpf(A o)Opf Opf(X o)(A o)V X 1Opf Fib(X)(V X(A o))=Opf Fib(X)(A o X).Fib_{Fib(X)}(A) \simeq Fib(A) \overset{V_A}{\to} Opf(A^o) \simeq Opf_{Opf(X^o)}(A^o) \overset{V_X^{-1}}{\to} Opf_{Fib(X)}(V_X(A^o)) = Opf_{Fib(X)}(A^{o_X}).

It is easy to see that V 1 X XV X 1V X1, and to construct the pullback-commutation equivalence. Finally, we construct commutation of opposites in Fib(X) as the composite

(V A X(B)) o XV X 1((V X 1(V A(B))) o)V X 1(V X((V A(B)) o))(V A(B)) oV A 1(B o)V A 1(V X(V X 1(B o)))=(V A X) 1(B o X).(V^X_A(B))^{o_X} \simeq V_X^{-1}((V_X^{-1}(V_A(B)))^o) \simeq V_X^{-1}(V_X((V_A(B))^o)) \simeq (V_A(B))^o\simeq V_A^{-1}(B^o)\simeq V_A^{-1}(V_X(V_X^{-1}(B^o))) = (V^X_A)^{-1}(B^{o_X}).

The case of Opf(X) is dual.

Fixing groupoids

We saw above that in general, a 2-category admitting an involution or duality involution will admit many. One way to get rid of some of these spurious involutions is to require that () o fix groupoidal objects, as is clearly the case for the involution of Cat and the “canonical” involutions of (2,1)-truncated 2-presheaf 2-toposes.

Note that any involution takes groupoidal objects to groupoidal objects.

Definition

An involution () o on K fixes groupoids it it restricts to the canonical involution on gpd(K), i.e. if X oX coherently whenever X is groupoidal.

Lemma

If K is a regular n-category having enough groupoids, then it admits, up to equivalence, at most one involution that fixes groupoids. If K is also n-exact, then it admits exactly one such involution.

Proof

Suppose that () o is an involution on K that fixes groupoids. Then for any A and any groupoidal X, we have

K(X,A o)K co(X o,A)K co(X,A)K(X,A) op.K(X,A^o) \cong K^{co}(X^o,A) \cong K^{co}(X,A) \cong K(X,A)^{op}.

Now given B as well, with an eso p:XB where X is groupoidal, any morphism BA o is determined by a map XA o with an action by ker(p). But ker(p)=(p/p) is also groupoidal, so morphisms BA o are completely determined by morphisms to A out of groupoidal objects. Thus, by the Yoneda lemma, any two values of A o must be canonically isomorphic.

Now suppose K is exact, and let p:XA be an eso where X is groupoidal. Then its kernel (p/p) is also groupoidal, and so ker(p) is a homwise-discrete category in gpd(K). Thus we can consider its opposite, which is also a homwise-discrete category in gpd(K). In general, the opposite of a 2-congruence in a 2-category will not be a 2-congruence, since the condition of being a two-sided fibration is not preserved. But in a (2,1)-category such as gpd(K), this extra condition is automatic, so this opposite of is also a 2-congruence in gpd(K) (and, in fact, an n-congruence when K is an n-category). Thus, since K is n-exact, this opposite has a quotient, which we call A o. It is straightforward to verify that this defines an involution on K that fixes groupoids.

Of course, the only interesting values of n in the above lemma are 2 and (1,2), since any groupoid-fixing involution on a (2,1)-category is equivalent to the canonical one. Of particular note is that any (2,1)-truncated Grothendieck 2-topos admits a unique groupoid-fixing involution.

In fact, this groupoid-fixing involution should also extend to a duality involution. For when K is n-exact, the functor Opf:K op2Cat ought to be a 3-sheaf? (a 2-stack). This means that if p:XA is an eso with X groupoidal, then Opf(A) can be reconstructed from Opf(X) and Opf(p/p) with descent data. Similarly, Fib:K coop2Cat should also be a 3-sheaf, and so Fib(A) can be recovered from Fib(X) and Fib(p/p) with “op-descent data.” But since X is groupoidal, Opf(X)Fib(X), and likewise for (p/p). Therefore, descent data for ker(p) over Opf(X), which determines an object of Opf(A), is the same as op-descent data for the opposite of ker(p) over Fib(X), which determines an object of Fib(A o). This gives the equivalence Opf(A)Fib(A o).

Alternately, there is also a stronger theorem that if K is 2-exact with enough groupoids, then it is equivalent to a particular 2-category of internal categories and anafunctors in the (2,1)-category gpd(K) (more precisely, it is the 2-exact completion of gpd(K)). And it is fairly easy to see, by its construction, that this 2-category has a duality involution, just as the 2-category of internal categories in any 1-category does.

Modulo the action of automorphisms, these are the only examples of duality involutions that I know. I do not know an example of a duality involution on a 2-category that does not have enough groupoids.

Fixing groupoids locally

Now, since a duality involution on K extends to a duality involution on Fib K(X) and Opf K(X), it is natural to strengthen the notion of groupoid-fixing so that it carries over to fibrational slices. We write GFib(X)=gpd(Fib(X)) and similarly GOpf(X).

Definition

A duality involution () o on K fixes groupoids locally if we have a equivalence modification between V X:GFib(X)GOpf(X o) and the composite GFib(X)() oGOpf(X o) coGOpf(X o).

The latter equivalence GOpf(X o) coGOpf(X o) is the canonical involution on the (2,1)-category GOpf(X o). Taking X=1, together with the second condition in the definition of a duality involution, this implies that () o fixes groupoids in the previous sense. Moreover, we have:

Theorem

If () o is a duality involution that fixes groupoids locally, then the induced duality involutions on Fib(X) and Opf(X) also fix groupoids locally.

Proof

For a fibration AX, on Fib Fib(X)(A) we have () o X=V X 1() o and V A X=V X 1V A, so the equivalence between () o and V A in K induces one between () o X and V A X in Fib(X).

Now, suppose that () o is a duality involution that fixes groupoids locally. Then for any A and B, the pullback-commutation datum shows that the composite equivalence

Fib(A×B o)Fib(B,A)Opf(A o×B)Opf((A×B o) o)Fib(A\times B^o) \simeq Fib(B,A) \simeq Opf(A^o\times B)\simeq Opf((A\times B^o)^o)

derived from Theorem 12 is equivalent to V A×B o. But if we restrict to groupoidal fibrations, then

V A×B o:GFib(A×B o)GOpf(A o×B)V_{A\times B^o}:GFib(A\times B^o) \simeq GOpf(A^o\times B)

is equivalent to () o. Together with commutation of opposites, this implies that the canonical equivalence

GFib(B,A)GFib(A o,B o)GFib(B,A)\simeq GFib(A^o,B^o)

is, up to equivalence, simply given by () o. In particular, since () o preserves powers, the canonical equivalence

DFib(A,A)DFib(A o,A o)DFib(A,A)\simeq DFib(A^o,A^o)

takes A 2 to (A o) 2. In the 2-internal logic, this corresponds to the statement that ”hom A(x,y)hom A o(y,x),” which is certainly an expected part of the behavior of opposite categories. Of course, for this it suffices that () o fix discretes locally, which has the evident definition.

Further axioms

Another natural requirement is that when X is groupoidal, V X should be equivalent to the composite

Fib(X)K/XOpf(X)Opf(X o).Fib(X)\simeq K/X \simeq Opf(X)\simeq Opf(X^o).

Note that this includes the second datum in the definition of a duality involution as a special case, since 1 is groupoidal. There seems no reason for this condition to be stable under slicing, but it could be stabilized.

Grothendieck 2-toposes

Definition

A Grothendieck 2-topos is a 2-category that is equivalent to the 2-category of 2-sheaves (aka stacks) on some 2-site. More generally, a Grothendieck n-topos is an n-category that is equivalent to the n-category of n-sheaves on some n-site (for n2); see truncated 2-topos.

The 2-Giraud theorem due to StreetCBS characterizes Grothendieck n-toposes as the infinitary n-pretoposes having a small eso-generating set of objects.

Cores and opposites

The most familiar Grothendieck 2-toposes are those of 2-sheaves on a 1-site. Even 2-presheaves on a 2-category that is not a 1-category can exhibit unexpected behavior; for instance they do not in general have cores or opposites. (2-presheaves on a (2,1)-category do have cores and opposites, though.)

The 2-Giraud theorem implies that if K is a Grothendieck 2-topos, so is K co. In the case of 2-presheaves, we can identify this as:

[C,Cat] co[C co,Cat co][C co,Cat][C,Cat]^{co} \simeq [C^{co},Cat^{co}] \simeq [C^{co},Cat]

since we have () op:Cat coCat. In other words, the “2-topos of presheaves” functor from 2-categories to 2-toposes preserves the 2-cell-dual involution. Another way to say this is that only for 2-sheaves on a (2,1)-category is “oppositization” an endofunctor; in other cases “passage to opposites” means passage to a different 2-topos.

2-sheaves (stacks) on a 2-site

Definition

A coverage on a 2-category C consists of, for each object UC, a collection of families (f i:U iU) i of morphisms with codomain U, called covering families, such that

  • If (f i:U iU) i is a covering family and g:VU is a morphism, then there exists a covering family (h j:V jV) j such that each composite gh j factors through some f i, up to isomorphism.

This is the 2-categorical analogue of the 1-categorical notion of coverage introduced in the Elephant.

A 2-category equipped with a coverage is called a 2-site.

Examples

  • If C is a regular 2-category, then the collection of all singleton families (f:VU), where f is eso, forms a coverage called the regular coverage.

  • Likewise, if C is a coherent 2-category, the collection of all finite jointly-eso families forms a coverage called the coherent coverage.

  • On Cat, the canonical coverage consists of all families that are jointly essentially surjective on objects.

2-sheaves

Let C be a 2-site having finite limits (for convenience). For a covering family (f i:U iU) i we have the comma objects

Comma Square (f i/f j) U i U j U f i f j q ij p ij μ ij

We also have the double comma objects (f i/f j/f k)=(f i/f j)× U j(f j/f k) with projections r ijk:(f i/f j/f k)(f i/f j), s ijk:(f i/f j/f k)(f j/f k), and t ijk:(f i/f j/f k)(f i/f k).

Now, a functor X:C opCat is called a 2-presheaf. It is 1-separated if

  • For any covering family (f i:U iU) i and any x,yX(U) and a,b:xy, if X(f i)(a)=X(f i)(b) for all i, then a=b.

It is 2-separated if it is 1-separated and

  • For any covering family (f i:U iU) i and any x,yX(U), given b i:X(f i)(x)X(f i)(y) such that μ ij(y)X(p ij)(b i)=X(q ij)(b i)μ ij(x), there exists a (necessarily unique) b:xy such that b i=X(f i)(b).

It is a 2-sheaf if it is 2-separated and

  • For any covering family (f i:U iU) i and any x iX(U i) together with morphisms ζ ij:X(p ij)(x i)X(q ij)(x j) such that the following diagram commutes:

    X(r ijk)X(p ij)(x i) X(r ijk)(ζ ij) X(r ijk)X(q ij)(x j) X(s ijk)X(p jk)(x j) X(s ijk)(ζ jk) X(t ijk)X(p ik)(x i) X(t ijk)(ζ ik) X(t ijk)X(q ik)(x k) X(s ijk)X(q jk)(x k)\array{X(r_{i j k})X(p_{i j})(x_i) & \overset{X(r_{i j k})(\zeta_{i j})}{\to} & X(r_{i j k})X(q_{i j})(x_j) & \overset{\cong}{\to} & X(s_{i j k})X(p_{j k})(x_j)\\ ^\cong \downarrow && && \downarrow ^{X(s_{i j k})(\zeta_{j k})}\\ X(t_{i j k}) X(p_{i k})(x_i) & \underset{X(t_{i j k})(\zeta_{i k})}{\to} & X(t_{i j k}) X(q_{i k})(x_k) & \underset{\cong}{\to} & X(s_{i j k}) X(q_{j k})(x_k)}

    there exists an object xX(U) and isomorphisms X(f i)(x)x i such that for all i,j the following square commutes:

    X(p ij)X(f i)(X) X(p ij)(x i) X(μ ij) ζ ij X(q ij)X(f j)(x) X(q ij)(x j).\array{ X(p_{i j})X(f_i)(X) & \overset{\cong}{\to} & X(p_{i j})(x_i)\\ ^{X(\mu_{i j})}\downarrow && \downarrow^{\zeta_{i j}}\\ X(q_{i j})X(f_j)(x) & \underset{\cong}{\to} & X(q_{i j})(x_j).}

A 2-sheaf, especially on a 1-site, is frequently called a stack. However, this has the unfortunate consequence that a 3-sheaf is then called a 2-stack, and so on with the numbering all offset by one. Also, it can be helpful to use a new term because of the notable differences between 2-sheaves on 2-sites and 2-sheaves on 1-sites. The main novelty is that μ ij and ζ ij need not be invertible.

Note, though, they must be invertible as soon as C is (2,1)-site: μ ij by definition and ζ ij since an inverse is provided by ι ij *(ζ ij), where ι ijmaps(f i/f j)(f j/f i) is the symmetry equivalence.

If C lacks finite limits, then in the definitions of “2-separated” and “2-sheaf” instead of the comma objects (f i/f j), we need to use arbitrary objects V equipped with maps p:VU i, q:VU j, and a 2-cell f ipf jq. We leave the precise definition to the reader.

A 2-site is said to be subcanonical if for any UC, the representable functor C(,U) is a 2-sheaf. When C has finite limits, it is easy to verify that this is true precisely when every covering family is a (necessarily pullback-stable) quotient of its kernel 2-polycongruence. In particular, the regular coverage on a regular 2-category is subcanonical, as is the coherent coverage on a coherent 2-category.

The 2-category 2Sh(C) of 2-sheaves on a small 2-site C is, by definition, a Grothendieck 2-topos.

Saturation conditions

A pre-Grothendieck coverage on a 2-category is a coverage satisfying the following additional conditions:

  • If f:VU is an equivalence, then the one-element family (f:VU) is a covering family.

  • If (f i:U iU) iI is a covering family and for each i, so is (h ij:U ijU i) jJ i, then (f ih ij:U ijU) iI,jU i is also a covering family.

This is the 2-categorical version of a Grothendieck pretopology.

Now, a sieve on an object UC is defined to be a functor R:C opCat with a transformation RC(,U) which is objectwise fully faithful (equivalently, it is ff in [C op,Cat]). Every family (f i:U iU) i generates a sieve by defining R(V) to be the full subcategory of C(V,U) on those g:VU such that gf ih for some i and some h:VU i. The following observation is due to StreetCBS.

Lemma

A 2-presheaf X:C opCat is a 2-sheaf for a covering family (f i:U iU) i if and only if

X(U)[C op,Cat](C(,U),X)[C op,Cat](R,X)X(U) \simeq[C^{op},Cat](C(-,U),X) \to [C^{op},Cat](R,X)

is an equivalence, where R is the sieve on U generated by (f i:U iU) i.

Therefore, just as in the 1-categorical case, it is natural to restrict attention to covering sieves. We define a Grothendieck coverage on a 2-category C to consist of, for each object U, a collection of sieves on U called covering sieves, such that

  • If R is a covering sieve on U and g:VU is any morphism, then g *(R) is a covering sieve on V.

  • For each U the sieve M U consisting of all morphisms into U (the sieve generated by the singleton family (1 U)) is a covering sieve.

  • If R is a covering sieve on U and S is an arbitrary sieve on U such that for each f:VU in R, f *(S) is a covering sieve on V, then S is also a covering sieve on U.

Here if R is a sieve on U and g:VU is a morphism, g *(R) denotes the sieve on V consisting of all morphisms h into V such that gh factors, up to isomorphism, through some morphism in R.

As in the 1-categorical case, one can then show that every coverage generates a unique Grothendieck coverage having the same 2-sheaves.

Truncated 2-toposes

Definition

Let K be a Grothendieck 2-topos. We say that K is n-truncated if it has a small eso-generator consisting of (n1)-truncated objects. It is easy to see that if a coproduct of (n1)-truncated objects is (n1)-truncated (as is the case for all n1), then this is equivalent to saying that K has enough (n1)-truncated objects (i.e. every object admits an eso from an (n1)-truncated one). In particular:

  • K is always 2-truncated.
  • K is (2,1)-truncated if it has enough groupoids.
  • K is 1-truncated if it has enough discretes.
  • K is (0,1)-truncated if the subterminal objects are eso-generating.
  • K is (-1)-truncated if the terminal object is an eso-generator.

n-sites and n-sheaves

By the 2-Giraud theorem, small eso-generating sets of objects correspond to small 2-sites of definition for K. Thus, if we define an n-site to be a 2-site which is an n-category (where n2 as usual), we have:

Theorem

A Grothendieck 2-topos is n-truncated iff it is equivalent to the 2-category of 2-sheaves on some n-site.

Note that a 1-site is the same as the usual notion of site, and a (0,1)-site is sometimes called a posite. In particular, any frame is a (0,1)-site with its canonical coverage (the covering families are given by unions).

Particular cases include:

  • K is 1-truncated iff it is equivalent to the 2-category of 2-sheaves (stacks) on an ordinary small (1-)site, and therefore to the 2-category of stacks for the canonical coverage on some Grothendieck 1-topos.

  • K is (0,1)-truncated iff it is equivalent to the 2-category of stacks on a posite, and therefore also to the 2-category of stacks on some locale. We call such a K localic.

  • If K is (-1)-truncated, then it is in particular localic, and its terminal object is a (strong) generator. It is not hard to see that this is equivalent to saying that the corresponding locale X is a sublocale of the terminal locale 1. Thus, just as (-1)-categories are subsets of 1, (-1)-toposes are sublocales of 1. If Cat has classical logic, this implies that either X0 or X1; and hence that either K1 or KCat. However, constructively there may be many other sublocales of 1.

  • It would be nice if the only (-2)-truncated Grothendieck 2-topos were Cat. However, I don’t see a way to make this happen except by fiat.

Grothendieck n-toposes

Now, if C is an n-site, it is also reasonable to consider n-sheaves on C, by which we mean 2-sheaves taking values in (n1)-categories. Thus, a 1-sheaf on a 1-site is precisely the usual notion of sheaf on a site. And a (0,1)-sheaf on a (0,1)-site is easily seen to be a lower set that is an “ideal” for the coverage.

We define a Grothendieck n-topos to be an n-category equivalent to the n-category of n-sheaves on an n-site. The case n=1 gives classical Grothendieck toposes; the case n=(0,1) gives locales. Note the distinction between a Grothendieck n-topos and an n-truncated Grothendieck 2-topos. The relationship is that

  1. The 2-category of 2-sheaves for the canonical coverage on a Grothendieck n-topos is an n-truncated Grothendieck 2-topos, and
  2. Any n-truncated Grothendieck 2-topos arises in this way from the Grothendieck n-topos which is its full subcategory of (n1)-truncated objects.

This relationship is completely analogous to the classical relationship between locales and localic toposes. In fact, if GrnTop denotes the (n+1)-category of Grothendieck n-toposes (that is, n-categories of n-sheaves on an n-site), we have inclusions

Gr(1,2)Top Gr(1)Top Gr(0,1)Top Gr1Top Gr2Top Gr(2,1)Top\array{ &&&&&& Gr(1,2)Top\\ &&&&& \nearrow && \searrow\\ Gr (-1) Top &\to& Gr(0,1)Top &\to & Gr1Top &&&& Gr2Top\\ &&&&& \searrow && \nearrow\\ &&&&&& Gr(2,1)Top }

where the inclusion from GrnTop to Gr(n+1)Top is given by taking the (n+1)-category of (n+1)-sheaves for the canonical coverage. (See 2-geometric morphism for the morphisms in these categories.)

2-geometric morphisms

If K and L are Grothendieck n-toposes, an n-geometric morphism f:KL consists of an adjoint pair f *f *, where f *:KL is the direct image and f *:LK is the inverse image, such that f * preserves finite limits (in the n-categorical sense).

When n=1 this is, of course, the usual definition. When n=(0,1) this reduces to a continuous map between locales.

In general, we expect that Grothendieck n-toposes satisfy an n-categorical version of the adjoint functor theorem, so that any functor f *:LK that preserves finite limits and small colimits is the inverse image of some n-geometric morphism.

We define transformations and modifications between n-geometric morphisms to be transformations and modifications between their inverse image functors. We then have an (n+1)-category GrnTop of Grothendieck n-toposes and n-geometric morphisms.

Truncation in an exact 2-category

In a suitably exact 2-category, we can construct truncations as quotients of suitable congruences.

(-1)-truncation

This case is easy and just like for 1-categories.

Theorem

In any regular 2-category K the inclusion Sub(1)K of the subterminal objects has a left adjoint called the support or (-1)-truncation.

Proof

Define the support supp(A)=A 1 of an object A to be the image of the unique morphism A1. That, is Asupp(A)1 is an eso-ff factorization. Since supp(A)1 is ff, supp(A) is subterminal, and since esos are orthogonal to ffs, it is a reflection into Sub(1).

(0,1)-truncation

Perhaps surprisingly, the next easiest case is the posetal reflection.

Theorem

In any (1,2)-exact 2-category K the inclusion pos(K)K of the posetal objects has a left adjoint called the (0,1)-truncation.

Proof

Given A, define A 1 to be the (ff) image of A 2A×A. Since esos are stable under pullback, A 1A is a homwise-discrete category, and it clearly has a functor from ker(A), so it is a (1,2)-congruence. Let AP be its quotient. By the classification of congruences, P is posetal. And if we have any f:AQ where Q is posetal, then we have an induced functor ker(A)ker(f). But Q is posetal, so ker(f) is a (1,2)-congruence, and thus ker(A)ker(f) factors through a functor A 1ker(f). This then equips f with an action by the (1,2)-congruence A 1A, so that it descends to a map PQ. It is easy to check that 2-cells also descend, so P is a reflection of A into pos(K).

This is actually a special case of the (eso+full,faithful) factorization system?, since an object A is posetal iff A1 is faithful. The proof is also an evident specialization of that.

0-truncation

The discrete reflection, on the other hand, requires some additional structure.

Theorem

In any 1-exact and countably-coherent 2-category K, the inclusion disc(K)K of the discrete objects has a left adjoint called the 0-truncation or discretization.

Proof

Given A, define A 1 to be the equivalence relation generated by the image of A 2A×A; this can be constructed with countable unions in the usual way. Then A 1A is a 1-congruence, and as in the posetal case we can show that its quotient is a discrete reflection of A.

There are other sufficient conditions on K for the discretization to exist; see for instance classifying cosieve. We can also derive it if we have groupoid reflections, since the discretization is the groupoid reflection of the posetal reflection.

(1,0)-truncation

The groupoid reflection is the hardest and also requires infinitary structure. Note that the 2-pretopos FinCat does not admit groupoid reflections (the groupoid reflection of the “walking parallel pair of arrows” is BZ).

Theorem

In any (2,1)-exact and countably-extensive 2-category K, the inclusion gpd(K)K of the groupoidal objects has a left adjoint called the (1,0)-truncation.

The comprehensive factorization system

In Cat there is a factorization system (E,M) where E is the class of initial functors and M is the class of discrete opfibrations; see

  • Street, Walters, The comprehensive factorization of a functor. Bull. Amer. Math. Soc. 79, 1973.

We can construct an analogous factorization system in any 1-exact and countably-coherent 2-category.

Definition

A morphism f:AB in a 2-category K is initial if it is left orthogonal to discrete opfibrations. That is, whenever g:CD is a discrete opfibration, the following square is a pullback in Cat:

K(B,C) K(B,D) K(A,C) K(A,D)\array{ K(B,C) & \to & K(B,D)\\ \downarrow & & \downarrow\\ K(A,C) & \to & K(A,D)}
Theorem

Every morphism in a 1-exact countably-coherent 2-category (in particular, in an n-pretopos for n1) factors, up to isomorphism, as an initial morphism followed by a discrete opfibration.

Proof

By the 2-categorical analogue of a standard theorem about factorization systems in 1-categories, it suffices to show that

  1. discrete opfibrations are closed under composition, and
  2. for every X, the discrete opfibrational slice DOpf(X) is a full reflective subcategory of the slice 2-category K/X.

The first point is true in any 2-category. For the second, we factor the inclusion as

DOpf(X)Opf(X)K/XDOpf(X) \to Opf(X) \to K/X

and observe that both forgetful functors have left adjoints. The left adjoint to DOpf(X)Opf(X) is discretization in the 1-exact and countably-coherent 2-category Opf(X). The left adjoint to Opf(X)K/X constructs the “free opfibration” on a functor f:AX, which is given by A× XX 2.

Corollary

In any 1-exact countably-coherent 2-category, (initial, discrete opfibration) is a (2-categorical) factorization system.

Corollary

In any 1-exact countably-coherent 2-category, each pullback functor f *:DOpf(Y)DOpf(X) has a left adjoint Lan f.

Proof

Lan f is given by composing with f, then factoring into an initial morphism followed by a discrete opfibration.

Examples

  • In a 1-category, every morphism is a discrete opfibration, so the only initial morphisms are isomorphisms. The factorization system (isomorphisms,all morphisms) is well-known.

  • In a (2,1)-category, the discrete opfibrations are precisely the faithful morphisms. Thus, in this case the comprehensive factorization system coincides with the (eso+full, faithful) factorization system.

Beck-Chevalley conditions

The appropriate Beck-Chevalley condition for the adjunctions Lan ff * refers not to pullback squares, but to comma squares. The easiest proof of this fact uses the internal logic. We start with an internal characterization of initial morphisms, analogous to the classical characterization in Cat as the functors f:AB for which each comma category (f/b), for bB, is nonempty and connected.

For the rest of this page we make the standing assumption that K is a 1-exact and countably-coherent 2-category.

Lemma

A morphism f:AB in K is initial iff the following are internally valid:

b:B(a:A)(α:hom B(f(a),b)) b:B,a 1:A,a 2:A,α 1:hom B(f(a 1),b),α 2:hom B(f(a 2),b) iφ i\begin{gathered} b:B | \top \vdash (\exists a:A)(\exists \alpha:hom_B(f(a),b))\\ b:B, a_1:A, a_2:A, \alpha_1:hom_B(f(a_1),b), \alpha_2:hom_B(f(a_2),b) | \top \vdash \bigvee_{i\in \mathbb{N}} \varphi_i \end{gathered}

where for each i, φ i expresses “there is a zigzag of length i connecting α 1 and α 2 over b.”

Thus, for instance, we have

φ 1 (γ:hom A(a 1,a 2))(α 2f(γ)=α 1) φ 2 (c:A)(β:hom B(f(c),b))(γ 1:hom A(a 1,c))(γ 2:hom A(a 2,c))(α 1=βf(γ 1)α 2=βf(γ 2))\begin{aligned} \varphi_1 \equiv& (\exists \gamma:hom_A(a_1,a_2)) (\alpha_2 \circ f(\gamma) = \alpha_1)\\ \varphi_2 \equiv& (\exists c:A)(\exists \beta:hom_B(f(c),b))(\exists \gamma_1:hom_A(a_1,c))(\exists \gamma_2:hom_A(a_2,c)) (\alpha_1 = \beta \circ f(\gamma_1) \wedge \alpha_2 = \beta \circ f(\gamma_2)) \end{aligned}

and so on.

Proof

f:AB will be initial iff the discrete-opfibration part of its factorization is an equivalence. By construction, this factorization is the discrete reflection of X=A× BB 2B in Opf(B), which is constructed as the quotient of the equivalence relation X 1 generated by X 2 (the power taken in Opf(B)). Therefore, this discrete reflection will be the terminal object 1 B iff

  1. XB is eso and
  2. the kernel of XB in Opf(B) is X 1.

It is fairly evident that XB is eso iff the first displayed sequent holds in K. For the second, note that the kernel of XB in Opf(B) (or equivalently, in K/B) is just the pullback X× BX, since B is discrete as an object of K/B. By definition of X, this pullback can be computed as the lax limit

Lax pullback X× BX A A B f f

and therefore it is precisely the context of the second displayed sequent. Since X 1 is the equivalence relation generated by X 2, it is necessarily contained in this kernel, so it suffices to show the converse implication. But X 1 is defined as the symmetric transitive closure of the image of X 2, which makes it essentially a countable union of “zigzags” from X 2, and this translates directly into the conclusion of the second sequent.

Lemma

Initial morphisms in K are stable under transfer across comma squares, in the sense that if

Comma Square (f/g) A B C f g q p

is a comma square with f initial, then q is also initial.

Proof

Given the characterization of initial morphisms in Lemma 13, we can simply observe that the usual proof of this fact in Cat takes place entirely in countably-coherent logic.

Theorem

The adjunctions Lan ff * for discrete opfibrations in K satisfy the Beck-Chevalley condition for comma squares. That is, if

Comma Square (f/g) A B C f g q p

is a comma square, then the canonical transformation Lan qp *g *Lan f between functors DOpf(A)DOpf(B) is an equivalence.

Note that unlike the case for a pullback square, there is no possible “handedness” ambiguity in saying that a comma square satisfies the Beck-Chevalley condition; there is no transformation Lan pq *f *Lan g at all.

The existence of the transformation in the correct direction also depends on the fact that opfibrational slices are functorial at the level of 2-cells. In particular, for a comma square there is no transformation Σ qp *g *Σ f between functors K/AK/B.

Proof

Given a discrete opfibration XA, let XLan fXC be the (initial,discrete-opfibration) factorization of the composite XAfC. Now by properties of comma squares and pullbacks, the pasting composite

Composite Square 1 p *X X (f/g) A B C f g q p

is also a comma square, and thus so is

Composite Square 2 p *X X g *Lan fX Lan fX B C g

where the upper 2-cell is opcartesian for the opfibration Lan fXC, and the map p *Xg *Lan fX is obtained from the universal property of the pullback square on the bottom. Again, it follows from general properties of pullbacks and comma squares that the top square in this latter diagram is also a comma square. Thus, by Lemma 14, its left-hand morphism is initial. But then the left-hand composite p *Xg *Lan fXB is an (initial, discrete-opfibration) factorization of p *X(f/g)B, and hence it exhibits the desired equivalence Lan qp *Xg *Lan fX.

Passing to 2-cell duals, we obtain:

Corollary

For a comma square as above, the canonical transformation Lan pq *f *Lan g between functors DFib(B)DFib(A) is an equivalence.

Full morphisms and (eso+full, faithful) factorization

In Cat and Gpd, in addition to the (eso, ff) factorization system that is enshrined in the notion of regular 2-category, there is also an (eso+full, faithful) factorization system. In Gpd, the (eso+full, faithful) factorization is the same as the comprehensive factorization, but in Cat they are different.

Mathieu Dupont has pointed out that given sufficient exactness, (eso+full, faithful) factorizations can be constructed from (eso,ff) factorizations. Here we give the argument.

eso+full and full morphisms

Recall that a morphism m:CD is said to be faithful if K(X,C)K(X,D) is faithful for any X.

Definition

A morphism e:AB in a 2-category K is eso+full if for any faithful m:CD, the following square is a pullback:

K(B,C) K(B,D) K(A,C) K(A,D)\array{K(B,C) & \to & K(B,D)\\ \downarrow & & \downarrow\\ K(A,C) & \to & K(A,D)}
Definition

A morphism f is said to be full if we have fme where m is ff and e is eso+full.

Luckily, the terminology is consistent:

Lemma

In any 2-category,

  1. f is eso+full if and only if it is both eso and full.
  2. f is ff if and only if it is both faithful and full.
Proof

Since ffs are faithful, any eso+full is eso, and any eso+full clearly factors as an eso+full (itself) followed by an ff (the identity). Conversely, if f is eso and fme where e is eso+full and m is ff, then m is an equivalence, and hence f, like e, is eso+full.

Now, ffs are clearly faithful, and any ff clearly factors as an eso+full (the identity) followed by an ff (itself). Conversely, if f is faithful and we have fme where e is eso+full and m is ff, then e is also faithful, and hence an equivalence; thus f, like m, is ff.

Lemma

Any eso+full morphism is co-ff.

Proof

Let f:AB be eso+full; we want to show that K(B,C)K(A,C) is ff. It is faithful since f is eso, so suppose that g,h:BC and that α:gfhf; we want to show α=βf for some β:gh. Let p:EB with γ:gphp be the inserter of g,h. Then we have a k:AE such that pkf and (modulo this isomorphism) γk=α. But since p, being an inserter, is faithful, and f is eso+full, we have q:BE with kqf and therefore α=γk=γqf; thus β=γq is our desired 2-cell.

Factorizations

Lemma

If A 1A is a 2-congruence such that A 2A 1 is eso, then its quotient f:AB (if it has one) is eso+full.

Proof

Suppose that m:CD is faithful and that mghf; we want to show there is a k:BC with gkf and hmk (the rest follows by standard arguments). Since mg comes with an action by A 1A, it suffices to lift this action to g itself, and since m is faithful it suffices to lift the 2-cell defining the action. This follows by the existence of a diagonal lift in the following rectangle:

A 2 C 2 A 1 (f/f) (m/m)\array{A^{\mathbf{2}} && \to && C^{\mathbf{2}} \\ \downarrow && && \downarrow\\ A_1 & \to & (f/f) & \to & (m/m)}

which exists since A 2A 1 is eso (by assumption) and C 2(m/m) is ff (since m is faithful).

Lemma

In a regular 2-category, if f:AB is a map such that A 2(f/f) is eso, then f is full.

Proof

The (eso,ff) factorization of f is constructed by taking the quotient of ker(f). But by assumption, this kernel has the property of Lemma 17, so the eso part of the (eso,ff) factorization of f is eso+full. Hence f is full, by definition.

For comparison, recall that

  • A 2(f/f) is always faithful,
  • A 2(f/f) is full (equivalently, ff) iff f is faithful, and
  • A 2(f/f) is an equivalence iff f is ff.

I do not know whether the converse of Lemma 18 is true in general, but it is at least true in an exact 2-category.

Theorem

Let K be an n-exact n-category, where n is 2, (2,1), (1,2), or 1. Then:

  1. Every morphism f factors as fme where e is eso+full and m is faithful. Thus, (eso+full, faithful) is a factorization system on K.
  2. A morphism f:AB is full iff A 2(f/f) is eso.
  3. Therefore, f is eso+full iff it is the quotient of a 2-congruence A 1A such that A 2A 1 is eso.

Of course, the cases n=1 and (1,2) are fairly trivial, since in those cases every morphism in an n-category is faithful and thus the only eso+full morphisms are the equivalences. However, we include them for completeness.

Proof

For the first statement, let f:AB be any morphism, and factor A 2(f/f) as an eso followed by a ff to get A 2A 1(f/f). Then A 1 inherits the structure of a 2-congruence, which is an n-congruence since (f/f) is. Since K is n-exact, this n-congruence has a quotient e:AQ, which is eso+full by Lemma 17, and clearly f factors through e as fme. Finally, since (e/e)=A 1(f/f) is ff by definition, Street's Lemma implies that m is faithful.

The “if” direction of the second statement is Lemma 18. Conversely, if fme where m is ff and e is eso+full, then e must be obtained, up to equivalence, as the quotient of the n-congruence A 1A constructed above, for which A 2A 1 is eso. But since m is ff, we have (f/f)(e/e)=A 1, so A 2(f/f) is eso as desired.

One direction of the third statement is Lemma 17. For the other, if f is eso+full, then by the second statement A 2(f/f) is eso, and because f is eso it is the quotient of its kernel, namely (f/f)A.

Inspecting the proof shows that we don’t need the full strength of exactness, either; all we need is that any sub-congruence of a kernel has a quotient. This is a property in between regularity and exactness. For instance, it is satisfied by FinCat, which is not exact.

Corollary

In a (2,1)-exact (2,1)-category, eso+full morphisms are stable under pullback, and therefore so are full ones.

Proof

If p:AB is eso+full, then it is the quotient of its kernel, which in a (2,1)-category is A× BAA. And since p is eso+full, by Theorem 22, AA× BA is eso. If

D A q p C f B\array{D & \to & A \\ ^q\downarrow && \downarrow ^p\\ C & \overset{f}{\to} & B}

is a pullback square, then the kernel D× CD is also the pullback of A× BA along f. Thus, by properties of pullback squares, DD× CD is a pullback of AA× BA, and hence also eso. But q, being eso (as a pullback of p), is also the quotient of its kernel, so by Lemma 17 q is eso+full. The second statement follows since ffs are certainly stable under pullback.

Corollary

Let K be an n-exact n-category. Then:

  1. Full morphisms are stable under composition.
  2. A morphism is full iff it is (isomorphic to) a composite of eso+full and ff morphisms.
  3. If gf is full and f is eso, then g is full.
Proof

Given f:AB and g:BC, we have two pullback squares

(f/f) (gf/gf) A×A B 2 (g/g) B×B.\array{ (f/f) & \to & (g f / g f) & \to & A\times A\\ \downarrow &&\downarrow && \downarrow\\ B ^{\mathbf{2}} & \to & (g/g) & \to & B\times B.}

Thus, if f and g are full, so that A 2(f/f) and B 2(g/g) are eso, then (f/f)(gf/gf) is also eso, hence so is A 2(gf/gf); thus gf is full. This proves the first statement, from which the second follows. For the third, if gf is full and f is eso, then A 2(gf/gf) is eso, and so is (gf/gf)(g/g) since it is a pullback of f×f. Thus the composite A 2(g/g) is eso, and since it factors through B 2, it follows that B 2(g/g) is also eso; hence g is full.

The Cauchy factorization system

Definitions

A morphism m:AB in a 2-category K is called ff and retract-closed or rff if K(X,A)K(X,B) is fully faithful and closed under retracts for all X. Explicitly this means that (in addition to being ff) if b:XB is a retract of ma for some a:XA, then bma for some aA.

A morphism e:AB is called Cauchy surjective or cso if it is left orthogonal to all rffs; that is, if

K(B,C) K(B,D) K(A,C) K(A,D)\array{K(B,C) & \to & K(B,D)\\ \downarrow & & \downarrow \\ K(A,C) & \to & K(A,D)}

is a pullback whenever m:CD is rff.

Remarks

  • Since rffs are stable under pullback, e is cso if and only if whenever it factors through an rff m:CB, then m is an equivalence.

  • Every eso is cso, since every rff is ff. Conversely, in a (2,1)-category, every ff is rff, and thus every cso is eso.

  • In Cat, the Cauchy surjective functors are those for which every object of B is a retract of an object of A.

  • Every equifier or inverter is rff. Therefore, every Cauchy surjective morphism is cofaithful and coconservative. In “Modulated bicategories” by Carboni, Johnson, Street, and Verity it is shown that conversely, every coconservative functor in Cat is Cauchy surjective.

Factorization System

In Cat, (cso,rff) is a factorization system. We now show that the same is true in any regular 2-category.

Given f:AB, let R f be its retractor. This is a 2-categorical finite limit which comes with projections p:R fA and q:R fB and 2-cells ρ:fpq and σ:qfp such that ρσ=1 q, and which is universal with these properties.

Lemma

In any 2-category, if q:R fB is eso, then f is Cauchy surjective.

Proof

Suppose that q is eso and let AgCmB be such that fmg and m is rff; we want to show m is an equivalence. But since m is rff and q is a retract of fpmgp, it follows that q factors through m; whence m is an equivalence since q is eso.

Now suppose that K is regular, and for any f:AB, let R fjC fmB be an (eso,ff) factorization of q. Since f is a retract of f1 A, there is a canonical s:AR f with ps1 A and fqsmjs.

Lemma

In a regular 2-category, if f:AB is ff and C fA (hence C fA), then f is rff.

Proof

Suppose f is ff and C fA, and let b:XB and a:XA be such that b is a retract of a. Then bqc and apc for some c:XR f. Then we have jc:XC f with mjcb. But since C fA in Sub(B), we have a y:XA with fyb as well; hence f is rff.

Theorem

In a regular 2-category K,

  1. Every morphism f factors as a Cauchy surjective morphism followed by an rff.
  2. Therefore, (cso,rff) is a factorization system on K.
  3. A morphism f is cso if and only if q:R fB is eso.
  4. Likewise, f is rff if and only if it is ff and C fA.
Proof

Given any f:AB, let j, m, and s be as above, and define e=js:AC f. Then memjsqsf. Is easy to check that R fR e; thus R eC f is eso, so by Lemma 19 e is Cauchy surjective.

Now let R m be the retractor of m, with p:R mC f, q:R mB, and corresponding factorization R mjC mmB. Let

P u R f v j R m p C f\array{P & \overset{u}{\to}& R_f\\ ^v \downarrow && \downarrow ^j\\ R_m & \underset{p'}{\to} & C_f}

be a pullback. Then v, like j, is eso, and thus so is jv:PC m. Now mjvqv is a retract of mpvmjuqu, and q is a retract of fp, so qu is a retract of fpu. Therefore, mjv:PB is also a retract of fpu, so there is a morphism w:PR f with mjwqwmjv (and pwpu). Now in the square

P jw C f jv m C m m B,\array{P & \overset{j w}{\to} & C_f\\ ^{j' v}\downarrow && \downarrow ^m\\ C_m & \underset{m'}{\to} & B,}

m is ff and jv is eso, so we have C mC f in Sub(B); thus by Lemma 20 m is rff.

Therefore, with fme we have factored f as a cso followed by an rff; this shows the first two statements. Moreover, e satisfies the condition of Lemma 19, so if f is cso and hence equivalent to e, so does it. Likewise, m satisfies the condition of Lemma 20, so if f is rff and hence equivalent to m, so does it.

Internal logic

From the characterization of csos and rffs in Theorem 23, we can conclude that csos and rffs have the expected descriptions in the internal logic.

Corollary

In a regular 2-category, a morphism f:AB is Cauchy surjective if and only if the following sequent is valid in the internal logic:

y:B(x:A)(ρ:hom B(f(x),y))(σ:hom B(y,f(x)))(ρσ=1 y).y:B | \top \vdash (\exists x:A)(\exists \rho:hom_B(f(x),y))(\exists \sigma:hom_B(y,f(x)))(\rho \sigma = 1_y).
Proof

The context y:B,x:A,ρ:hom B(f(x),y),σ:hom B(y,f(x))ρσ=1 y is easily seen to be precisely R f.

Corollary

In a regular 2-category, a morphism f:AB is rff if and only if it is ff and the following sequent is valid in the internal logic:

x:A,y:B,ρ:hom B(f(x),y),σ:hom B(y,f(x))ρσ=1 y(x:A)(f(x)y)x:A,y:B,\rho:hom_B(f(x),y), \sigma:hom_B(y,f(x)) | \rho \sigma = 1_y \vdash (\exists x':A)(f(x')\cong y)
Proof

The validity of this sequent says that the pullback of f:AB along q:R fB is eso. But since both f and q factor through the ff m:C fB, this pullback is equivalent to the pullback of e:AC f along j:R fC f. Since j is eso, this pullback being eso is equivalent to e:AC f being eso. And since f is ff, so is e; thus this is equivalent to e being an equivalence.

Colimits in 2-pretopoi

An n-pretopos has coproducts and quotients of n-congruences, which are important classes of colimits. From these we can construct some other colimits, such as the following.

Theorem

A 2-pretopos admits copowers with any finite category.

Proof

If C is a finite category and AK is an object, we build a finite 2-polycongruence with one copy of A indexed by each object cC, and with the hom-object from A c to A d being C(c,d)A 2. It is easy to check that a quotient of this congruence is a copower AC.

However, an n-pretopos can fail to admit all finite colimits, for essentially the same reason as when n=1: some ostensibly “finite” colimits secretly involve infinitary processes. In a 1-category, this manifests in the construction of arbitrary coequalizers and pushouts, where we must first generate an equivalence relation by an infinitary process and then take its quotient. Likewise, a 2-pretopos can fail to admit pushouts, coinserters, coinverters, and coequifiers.

For 2-categories it is even easier to find counterexamples. The 1-pretopos FinSet does in fact have all finite colimits, but the 2-pretopos FinCat of finite categories does not have coinserters or coinverters. (It does have coequifiers, for the same reason that FinSet has coequalizers). The category FPCat of finitely presented categories, on the other hand, does have finite colimits, but fails to have finite limits.

You can also generate the equivalence relation using a higher-order process. Thus a topos (where higher-order processes occur) has all coequalisers, even if it's not a W-pretopos (where countably infinitary processes occur).

Incidentally, this is the example that first made me agree that predicativity was a reasonable constructive restriction. I just asked myself which way of generating an equivalence relation seemed more ‘constructive’.

—Toby

Indeed so. I noted at classifying cosieve that you can do the same thing in a 2-category if you have only a poset of truth values rather than a set. All this work on 2-toposes is actually making me more sympathetic to predicativism as well, because in the 2-dimensional case there isn’t really a “higher-order” version you can recourse to; you have to do things the “more constructive” way. Put differently, why is it okay to have a set (or poset) of all truth values, but not a category of all sets?

(Mathieu Dupont and I have been speculating about whether there could actually be a category of all sets; i.e. whether there could be a 2-pretopos having (exponentials, duality, and) a classifying discrete opfibration that classifies all discrete opfibrations. This would have marvelous consequences like that Set has all (not just small) limits and colimits, and so the adjoint functor theorem can be just true without any messing around with generators. But it is inconsistent with there being enough groupoids, or with Set being a topos, and hence also inconsistent with classical logic. I don’t really have very high hopes that it is consistent at all. Having a (1,2)-category of all posets appears to be inconsistent with just exponentials and duality.)

BTW, I assume that by ”Π-pretopos” you meant ”Π-pretopos with a NNO?” In my limited experience ”Π-pretopos” means “locally cartesian closed pretopos” which certainly includes all toposes.

-Mike

Sorry, I removed the wrong letter from ’Π-W-pretopos’. I meant a W-pretopos, that is a pretopos in which every polynomial functor has pullback-stable initial algebras in every slice category (which may follow from simply a pullback-stable NNO, I forget).

In my experience, when you can't find an inconsistency but you're sure that one exists, then the Burali-Forti paradox always works. There may be a simpler one, but Burali-Forti is the surest.

—Toby

I think that Burali-Forti works in this case to get a contradiction from having enough groupoids. But I can’t make it do anything else, because without cores, all I can construct is a poset of ordinals, which isn’t itself an ordinal because an ordinal is a set equipped with a certain sort of relation.

Why are you changing my Πs to characters that I can’t type?

-Mike

Sorry, I started to fix the ‘Π’s (and ‘Π’s), then realised that I was fixing some inappropriately and so changed them back (but apparently not always to what they had been before). And you can type that character, as &Pi;. Actually, since you're using Ubuntu like me, you can install SCIM and use that to type it directly (the TeX input method is pretty neat). That said, ‘Π’ (also ‘W’), in math mode, is probably more appropriate, as it refers to closure under a type operation with that name.

I'll try to think about it and see if I can make a paradox work. I don't quite understand how you construct these posets that don't have underlying sets. Although it reminds of me of Paul Taylor's Abstract Stone Duality, where there is a topological space of truth values (in fact one free on a poset) but no underlying set of such.

—Toby

I can type &Pi; but when I view the source that you’ve typed, I don’t see &Pi; but rather an actual Pi-character.

-Mike

It produces the same output in the displayed XHTML. If you want to get Π in your Markdown source, either cut and paste from the display of &Pi;, or install SCIM (or something along those lines) like I did. —Toby

Also, see the new page category of all sets regarding posets and categories that don’t have underlying sets.

-Mike

Will do. —Toby

I don’t want to get a Pi-character in my Markdown source; my point was rather that I wished you wouldn’t put it in yours! I thought the whole point of things like HTML entities like &Pi; and TeX code like $\Pi$ was so that we could produce nice-looking math just by inputting ordinary ASCII text that can be read and edited without installing any fancy fonts or software.

-Mike

OK, fair enough, it's your web, so all special characters will be implemented as XHTML or SGML character entities (unless available through Instiki, of course). —Toby

However, once we have some infinitary structure, this problem goes away.

Theorem

A countably-extensive n-pretopos has all countable colimits.

1-pretoposes are balanced

It is well-known that in a 1-pretopos,

  1. every monic is regular, and as a consequence
  2. a 1-pretopos is balanced (every monic epic is an isomorphism), and
  3. every epic is regular.

2-pretoposes are not balanced

For a similar statement in an n-pretopos for n>1, the natural first guess is to replace “monic” by “ff” and “regular epic” by “eso.” However, there are (at least) two reasonable replacements for “epic” and “regular monic:”

  1. We could replace “epic” by “cofaithful” and “regular monic” by “equifier,” or
  2. we could replace “epic” by “coconservative” (aka “liberal”) and “regular monic” by “inverter.”

Since esos in Cat are cofaithful and liberal but not co-ff, it wouldn’t work to replace “epic” by “co-ff.” Unfortunately, both ideas fail in Cat, where equifiers and inverters are not just ff but are closed under retracts. Likewise, the map from a category to its Cauchy completion is full, faithful, cofaithful, and liberal, but generally not an equivalence.

There are two ways to deal with this problem. One is to restrict to smaller values of n, for which there are no nontrivial retracts. The other is to go back and change “ff” to “ff and closed under retracts” and change “eso” to “surjective up to retracts.”

(2,1)-pretoposes are balanced

Theorem

In a (2,1)-exact positive coherent 2-category, every ff with groupoidal codomain is an equifier (in fact, an identifier of an involution).

Recall that an identifier of a 2-cell α:ff:AB in a 2-category is the equifier of α and 1 f. By an involution we mean an (invertible) 2-cell that is its own inverse.

Proof

Let m:AB be ff with B groupoidal, and consider first the (2,1)-congruence given by B+BB, where one copy of B gives the identities, and the composition treats the other copy of B as an involution. Its quotient is the copower of B by the “walking involution.”

Now consider the following equivalence relation on B+B in disc(K/B×B). We have

(B+B)× B×B(B+B)(B× B×BB)+(B× B×BB)+(B× B×BB)+(B× B×BB)(B+B)\times_{B\times B}(B+B) \simeq (B\times_{B\times B} B)+(B\times_{B\times B} B)+(B\times_{B\times B} B)+(B\times_{B\times B} B)

and we define the relation to be given by

B+A+A+B (B× B×BB)+(B× B×BB)+(B× B×BB)+(B× B×BB).\array{B+A+A+B \\ \downarrow\\ (B\times_{B\times B} B)+(B\times_{B\times B} B)+(B\times_{B\times B} B)+(B\times_{B\times B} B).}

Since disc(K/B×B)disc(Fib K(B×B)) is a 1-pretopos, this relation has a quotient, say [f,g]:B+BC. It is easy to verify that a,b:CB is then a (2,1)-congruence on B with af=ag=bf=bg=1 B. (This depends on B being groupoidal; otherwise it would be a homwise-discrete category but not necessarily a congruence.) Let q:BD be the quotient in K of this (2,1)-congruence. Then we have a 2-fork ϕ:qaqb such that ϕf=1 q and ϕg is an involution of q.

We claim that m is an identifier of ϕg. By construction of C, we have ϕgm=1 qm, so since m is ff, it suffices to show that for any x:XB with ϕgx=1 qx, x factors through m. But since C with ϕ is the kernel of q, the assumption ϕgx=1 qx=ϕfx implies that in fact fx=gx. If we write i,j:BB+B for the two inclusions, this means that ix:XB+B and jx:XB+B become equal in C, and therefore factor through the kernel pair of [f,g], namely B+A+A+B. But this is evidently tantamount to saying that x factors through A.

Corollary

In a (2,1)-pretopos,

  1. every ff is an equifier,
  2. every cofaithful ff is an equivalence, and
  3. every cofaithful morphism is eso.
Proof

Theorem 26 shows the first statement. Then any ff f:AB is an equifier of α,β:gh:BC, so in particular αf=βf; but if f is also cofaithful, this implies α=β, and thus their equifier f is an equivalence. Finally, if f is just cofaithful, we factor it as f=me where m is ff and e is eso; but then m is also cofaithful, hence an equivalence, and so f, like e, is eso.

(1,2)-pretoposes are balanced

Theorem

In a (1,2)-exact positive coherent 2-category, every ff with posetal codomain is an inverter.

Proof

Let m:AB be ff, and consider the 2-congruence on B+B defined as follows. We have

(B 0+B 1)×(B 0+B 1)=(B 0×B 0)+(B 0×B 1)+(B 1×B 0)+(B 1×B 1),(B_0+B_1)\times (B_0+B_1) = (B_0\times B_0)+(B_0\times B_1)+(B_1\times B_0)+(B_1\times B_1),

(adding subscripts to distinguish the two copies of B) and the congruence is given by

B 2 + B 2 + Y + B 2 (B 0×B 0) + (B 0×B 1) + (B 1×B 0) + (B 1×B 1).\array{ B ^{\mathbf{2}} &+& B ^{\mathbf{2}} &+& Y &+& B ^{\mathbf{2}}\\ &&& \downarrow\\ (B_0\times B_0) &+& (B_0\times B_1) &+& (B_1\times B_0) &+& (B_1\times B_1).}

Here YB 2 is defined to be the ff image of the “composition” morphism (1 B/m/1 B)B 2; in other words it is “the object of arrows in B which factor through some element of A.” The composition is easy to define making this into a 2-congruence, and if B is posetal, then it is a (1,2)-congruence.

Let [p,q]:B+BC be the quotient of this congruence. Analogously to the proof of Theorem 26, the fork defining this quotient gives a 2-cell ϕ:pq such that ϕm is an isomorphism. Thus, to show that m is the inverter of ϕ, it suffices to show that for any x:XB with ϕx invertible, x factors through m. Now ϕx is induced by the fork defining C together with the composite XBB 2. If ϕx is invertible, then its inverse is given by some map y:XY, which must lie over the diagonal XBB×B.

Now, pulling back the eso (1/m/1)Y along y we obtain an eso r:ZX with a morphism s:ZA such that the identity 2-cell of xr is the composite of 2-cells xrmsxr; in other words, xr is a retract of ms. But since B is posetal, this means xrms, and then the fact that r is eso implies that x factors through m, as desired.

Corollary

In a (1,2)-pretopos,

  1. every ff is an inverter,
  2. every liberal ff is an equivalence, and
  3. every liberal morphism is eso.
Proof

Just like Corollary 14 but using Theorem 27 instead.

2-pretoposes are Cauchy balanced

Now, in any regular 2-category, in addition to the (eso,ff) factorization system we also have a Cauchy factorization system consisting of the cso (Cauchy surjective) and rff (ff and retract-closed) morphisms. Moreover, every cso is cofaithful and liberal. In “Modulated bicategories” by Carboni, Johnson, Street, and Verity (CJSV), it is shown that the liberal functors in Cat are precisely the Cauchy surjective ones; we now show that the same is true in any 2-pretopos.

Corollary

In a 2-pretopos,

  1. every rff is an inverter,
  2. every liberal rff is an equivalence, and
  3. every liberal morphism is Cauchy surjective.

In particular, every liberal morphism is cofaithful.

Proof

The first statement is proven exactly like Theorem 27, except that at the last step we use the assumption that m is retract-closed rather than the assumption that B is posetal. The other statements follow as before, recalling that Cauchy surjective morphisms are cofaithful.

In (CJSV) a 2-category is defined to be co-conservational (liberational?) if

  • it has finite colimits,
  • it has (liberal, strong conservative) factorizations,
  • strong conservative morphisms are preserved by copowers with 2, and
  • strong conservative morphisms are stable under pushout,

and faithfully co-conservational if moreover

  • every liberal morphism is cofaithful.

Here a strong conservative morphism is one that is right orthogonal to all liberals. Theorem 16 shows that in a 2-pretopos, strong conservatives coincide with rffs, since liberals coincide with csos; thus any 2-pretopos satisfies the second condition to be co-conservational. It need not have finite colimits, but this can be remedied with some infinitary structure. The construction of copowers in a 2-pretopos can be used to show that rffs are preserved by copowers with 2. And we have also seen that since every liberal is cso, it is cofaithful.

However, even Cat fails the final condition, as shown in (CJSV, Prop. 3.4). This can be remedied by passing to the 2-category Cat cc of Cauchy-complete categories. I do not yet know whether a similar construction is possible in any 2-pretopos.

Regular completion

Recall that there is a 2-category HDC(K) of homwise-discrete categories in any finitely complete 2-category K. We write nCong s(K) for its full sub-2-category spanned by the n-congruences (always we take n= 2, (2,1), (1,2), or 1). Recall that there is a functor Φ:K2Cong s(K) sending each object to its kernel; if K is an n-category then the image of Φ is contained in nCong(K).

Lemma

Suppose that K has finite limits. Then:

  1. HDC(K) has finite limits.
  2. nCong s(K) is closed under finite limits in HDC(K).
  3. Φ is 2-fully-faithful (that is, an equivalence on hom-categories) and preserves finite limits.
Proof

It suffices to deal with finite products, inserters, and equifiers. Evidently Φ(1) is a terminal object. If D and E are homwise-discrete categories, define P 0=D 0×E 0 and P 1=D 1×E 1; it is easy to check that then P 1P 0 is a homwise-discrete category that is the product D×E in HDC(K). Since (D 0×E 0) 2(D 0) 2×(E 0) 2, and products preserve ffs, we see that P is an n-congruence if D and E are and that Φ preserves products.

For inserters, let f,g:CD be functors in HDC(K), define i 0:I 0C 0 by the pullback

I 0 D 1 i 0 C 0 (f 0,g 0) D 0×D 0,\array{I_0 & \to & D_1\\ i_0 \downarrow && \downarrow \\ C_0 & \overset{(f_0,g_0)}{\to} & D_0\times D_0,}

and define i 1:I 1C 1 by the pullback

I 1 X i 1 C 1 (f 1,g 1) D 1×D 1\array{I_1 & \to & X\\ i_1\downarrow && \downarrow\\ C_1 & \overset{(f_1,g_1)}{\to} & D_1\times D_1}

where X is the “object of commutative squares in D.” Then I 1I 0 is a homwise-discrete category and i:IC is an inserter of f,g. Also, I is an n-congruence if C is, and Φ preserves inserters.

Finally, for equifiers, suppose we have functors f,g:CD and 2-cells α,β:fg in HDC(K), represented by morphisms a,b:C 0D 1 such that (s,t)a(f 0,g 0)(s,t)b. Let e 0:E 0C 0 be the universal morphism equipped with an isomorphism ϕ:ae 0be 0 such that (s,t)ϕ is the given isomorphism (s,t)a(s,t)b (this is a finite limit in K.) Note that since (s,t):D 1D 0×D 0 is discrete, e 0 is ff. Now let E 1=(e 0×e 0) *C 1; then E 1E 0 is a homwise-discrete category and e:EC is an equifier of α and β in HDC(K). Also E is an n-congruence if C is, and Φ preserves equifiers.

For any morphism f:AB in K, Φ(f) is the functor ker(A)ker(B) that consists of f:AB and f 2:A 2B 2. A transformation between Φ(f) and Φ(g) is a morphism AB 2 whose composites AB 2B are f and g; but this is just a transformation fg in K. Thus, Φ is homwise fully faithful. And homwise essential-surjectivity follows from the essential uniqueness of thin structures, or equivalently a version of Prop 6.4 in FBMF.

Moreover, we have:

Theorem

If K is an n-category with finite limits, then nCong s(K) is regular.

Proof

It is easy to see that a functor f:CD between n-congruences is ff in nCong s(K) iff the square

C 1 D 1 C 0×C 0 D 0×D 0\array{C_1 & \to & D_1\\ \downarrow && \downarrow\\ C_0\times C_0 & \to & D_0\times D_0}

is a pullback in K.

We claim that if e:ED is a functor such that e 0:E 0D 0 is split (that is, e 0s1 D 0 for some s:D 0E 0), then e is eso in nCong s(K). For if efg for some ff f:CD as above, then we have g 0s:D 0C 0 with f 0g 0se 0s1 D 0, and so the fact that C 1 is a pullback induces a functor h:DC with h 0=g 0s and fh1 D. But this implies f is an equivalence; thus e is eso.

Moreover, if e 0:E 0D 0 is split, then the same is true for any pullback of e. For the pullback of e:ED along some k:CD is given by a P where P 0=E 0× D 0D iso× D 0C 0; here D isoD 1 is the “object of isomorphisms” in D. What matters is that the projection P 0C 0 has a splitting given by combining the splitting of e 0 with the “identities” morphism D 0D iso.

Now suppose that f:DE is any functor in nCong s(K). It is easy to see that if we define Q 0=D 0 and let Q 1 be the pullback

Q 1 E 1 Q 0×Q 0 f 0×f 0 E 0×E 0\array{ Q_1 & \to & E_1 \\ \downarrow && \downarrow\\ Q_0 \times Q_0 & \overset{f_0\times f_0}{\to} & E_0\times E_0}

then fme where e:DQ and m:QE are the obvious functors. Moreover, clearly m is ff, and e satisfies the condition above, so any pullback of it is eso. It follows that if f itself were eso, then it would be equivalent to e, and thus any pullback of it would also be eso; hence esos are stable under pullback.

Since m is ff, the kernel of f is the same as the kernel of e, so to prove K regular it remains only to show that e is a quotient of that kernel. If CD denotes ker(f), then C is the comma object (f/f) and thus we can calculate

C 0=D 0× E 0E 1× E 0D 0Q 1.C_0 = D_0\times_{E_0} E_1 \times_{E_0} D_0 \cong Q_1.

Therefore, if g:DX is equipped with an action by ker(f), then the action 2-cell is given by a morphism Q 1=C 0X 1, and the action axioms evidently make this into a functor QX. Thus, Q is a quotient of ker(f), as desired.

However, there are three problems with the 2-category nCong s(K).

  1. It is too big. It is not necessary to include every n-congruence in order to get a regular category containing K, only those that occur as kernels of morphisms in K.
  2. It is too small. While it is regular, it is not exact.
  3. It doesn’t remember information about K. If K is already regular, then passing to nCong s(K) destroys most of the esos and quotients already present in K.

The solution to the first problem is straightforward. If K is a 2-category with finite limits, define K reg/lex to be the sub-2-category of 2Cong s(K) spanned by the 2-congruences which occur as kernels of morphisms in K. If K is an n-category then any such kernel is an n-congruence, so in this case K reg/lex is contained in nCong s(K) and is an n-category. Also, clearly Φ factors through K reg/lex.

Theorem

For any finitely complete 2-category K, the 2-category K reg/lex is regular, and the functor Φ:KK reg/lex induces an equivalence

Reg(K reg/lex,L)Lex(K,L)Reg(K_{reg/lex},L) \simeq Lex(K,L)

for any regular 2-category K.

Here Reg(,) denotes the 2-category of regular functors, transformations, and modifications between two regular 2-categories, and likewise Lex(,) denotes the 2-category of finite-limit-preserving functors, transformations, and modifications between two finitely complete 2-categories.

Proof

It is easy to verify that K reg/lex is closed under finite limits in 2Cong s(K), and also under the eso-ff factorization constructed in Theorem 28; thus it is regular. If F:KL is a lex functor where L is regular, we extend it to K reg/lex by sending ker(f) to the quotient in L of ker(Ff), which exists since L is regular. It is easy to verify that this is regular and is the unique regular extension of F.

In particular, if K is a regular 1-category, K reg/lex is the ordinary regular completion of K. In this case our construction reduces to one of the usual constructions (see, for example, the Elephant).

To solve the second and third problems with nCong s(K), we need to modify its morphisms.

Exact completion

Recall that 2-congruences in Cat can be identified with certain double categories. As noted in PAPDC, edge-symmetric double categories with a thin structure are essentially the same as 2-categories, and homwise-discreteness makes them the same as 1-categories. Our lack of edge-symmetry means that we really have a 1-category with distinguished subclass of morphisms (the vertical ones), which must be preserved by functors between congruences. (Note that the transformations are “horizontal” and need not have distinguished components. Since every vertical arrow has a horizontal companion, any vertical transformation is represented by a horizontal one.) In order to eliminate the effect of the distinguished vertical morphisms, we can replace functors between congruences by anafunctors.

Definition

Suppose that K is a finitely complete 2-site and that D, E, and F are 2-congruences in K. A functor g:FD is a weak equivalence if 1. the square

F 1 g 1 D 1 F 0×F 0 g 0×g 0 D 0×D 0\array{F_1 &\overset{g_1}{\to} & D_1 \\ \downarrow && \downarrow\\ F_0\times F_0 & \overset{g_0\times g_0}{\to} & D_0\times D_0}

is a pullback, and 1. g 0:F 0D 0 is a cover (a one-element covering family). An anafunctor DE is a span of functors Df sFf tE such that f s is a weak equivalence.

The primary example we have in mind is when K is a regular 2-category with its regular coverage, but it is useful to consider the general case.

Definition

If DFE and DGE are anafunctors between 2-congruences, then a transformation FG is a transformation between the two induced functors F× DGE.

(Here F× DG denotes the pullback in 2Cong s(K).)

Theorem

For any subcanonical and finitely complete 2-site K (such as a regular n-category with its regular coverage), there is a finitely complete 2-category 2Cong(K) of 2-congruences, anafunctors, and transformations in K. It contains 2Cong s(K) as a homwise-full sub-2-category (that is, 2Cong s(K)(D,E)2Cong(K)(D,E) is ff) closed under finite limits.

Proof

Composition is, of course, by pullback. Since covers are stable under pullback and composition, the composite of anafunctors is again an anafunctor. The coverage must be subcanonical in order to define the vertical composite of natural transformations. We regard a functor as an anafunctor by taking f s to be the identity; it is then clear that a transformation between functors is the same as a transformation between their corresponding anafunctors.

It is easy to see that products in 2Cong S(K) remain products in nCong(K). Before dealing with inserters and equifiers, we observe that if AFB is an anafunctor in 2Cong(K) and e:X 0F 0 is any eso, then pulling back F 1 to X 0×X 0 defines a new congruence X and an anafunctor AXB which is isomorphic to the original in 2Cong(K)(A,B). Thus, if AFB and AGB are parallel anafunctors in 2Cong(K), by pulling them both back to F× AG we may assume that they are defined by spans with the same first leg, i.e. we have AXB.

Now, for the inserter of F and G as above, let EX be the inserter of XB in 2Cong s(K). It is easy to check that the composite EXA is an inserter of F,G in 2Cong(K). Likewise, given α,β:FG with F and G as above, we have transformations between the two functors XB in 2Cong s(K), and it is again easy to check that their equifier in 2Cong s(K) is again the equifier in 2Cong(K) of the original 2-cells α,β. Thus, 2Cong(K) has finite limits. Finally, by construction clearly the inclusion of 2Cong s(K) preserves finite limits.

We write nCong(K) for the full sub-2-category of 2Cong(K) on the n-congruences, which is a finitely complete n-category. Of course, it contains nCong s(K) as a homwise-full sub-n-category closed under finite limits, and when K is an n-category we have Φ:KnCong(K).

Theorem

If K is a subcanonical finitely complete n-site, then the functor Φ:KnCong(K) is 2-fully-faithful. If K is an n-exact n-category equipped with its regular coverage, then Φ:KnCong(K) is an equivalence of 2-categories.

Proof

Since Φ:KnCong s(K) is 2-fully-faithful and nCong s(K)nCong(K) is homwise fully faithful, Φ:KnCong(K) is homwise fully faithful. For homwise essential-surjectivity, suppose that ker(A)Fker(B) is an anafunctor. Then h:F 0A is a cover and F 1 is the pullback of A 2 along it; but this just says that F 1=(h/h). The functor FB consists of morphisms g:F 0B and F 1=(h/h)B 2, and functoriality says precisely that the resulting 2-cell equips g with an action by the congruence F. But since F is precisely the kernel of h:F 0A, which is a cover in a subcanonical 2-site and hence the quotient of this kernel, we have an induced morphism f:AB in K. It is then easy to check that f is isomorphic, as an anafunctor, to F. Thus, Φ is homwise an equivalence.

Now suppose that K is an n-exact n-category and that D is an n-congruence. Since K is n-exact, D has a quotient q:D 0Q, and since D is the kernel of q, we have a functor Dker(Q) which is a weak equivalence. Thus, we can regard it either as an anafunctor Dker(Q) or ker(Q)D, and it is easy to see that these are inverse equivalences in nCong(K). Thus, Φ is essentially surjective, and hence an equivalence.

Note that by working in the generality of 2-sites, this construction includes the previous one. Specifically, if K is a finitely complete 2-category equipped with its minimal coverage, in which the covering families are those that contain a split epic, then nCong(K)nCong s(K). This is immediate from the proof of Theorem 28, which implies that the first leg of any anafunctor relative to this coverage is both eso and ff in nCong s(K), and hence an equivalence.

We also remark in passing that this allows us to reconstruct 2-exact 2-categories with enough groupoids or discretes from their subcategories of such.

Theorem

If K is a 2-exact 2-category with enough groupoids, then K2Cong(gpd(K)). Likewise, if K is 2-exact and has enough discretes, then K2Cong(disc(K)).

Proof

Define a functor K2Cong(gpd(K)) by taking each object A to the kernel of j:JA where j is eso and J is groupoidal (for example, it might be the core of A). Note that this kernel lives in 2Cong(gpd(K)) since (j/j)J×J is discrete, hence (j/j) is also groupoidal. The same argument as in Theorem 31 shows that this functor is 2-fully-faithful for any regular 2-category K with enough groupoids, and essentially-surjective when K is 2-exact; thus it is an equivalence. The same argument works for discrete objects.

In particular, the 2-exact 2-categories having enough discretes are precisely the 2-categories of internal categories and anafunctors in 1-exact 1-categories.

Our final goal is to construct the n-exact completion of a regular n-category, and a first step towards that is the following.

Theorem

If K is a regular n-category, so is nCong(K). The functor Φ:KnCong(K) is regular, and moreover for any n-exact 2-category L it induces an equivalence

Reg(nCong(K),L)Reg(K,L).Reg(n Cong(K), L) \to Reg(K,L).
Proof

We already know that nCong(K) has finite limits and Φ preserves finite limits. The rest is very similar to Theorem 28. We first observe that an anafunctor AFB is an equivalence as soon as FB is also a weak equivalence (its reverse span BFA then provides an inverse.) Also, AFB is ff if and only if

F 1 B 1 F 0×F 0 B 0×B 0\array{F_1 & \to & B_1\\ \downarrow && \downarrow \\ F_0\times F_0 & \to & B_0\times B_0}

is a pullback.

Now we claim that if AFB is an anafunctor such that F 0B 0 is eso, then F is eso. For if we have a composition

F G M A C B\array{ &&&& F \\ &&& \swarrow && \searrow\\ && G &&&& M\\ & \swarrow && \searrow && \swarrow && \searrow\\ A &&&& C &&&& B}

such that M is ff, then F 0B 0 being eso implies that M 0B 0 is also eso; thus MB is a weak equivalence and so M is an equivalence. Moreover, by the construction of pullbacks in nCong(K), anafunctors with this property are stable under pullback.

Now suppose that AFB is any anafunctor, and define C 0=F 0 and let C 1 be the pullback of B 1 to C 0×C 0 along C 0=F 0toB 0. Then C is an n-congruence, CB is ff in nCong s(K) and thus also in nCong(K), and AFB factors through C. (In fact, C is the image of FB in nCong s(K).) The kernel of AFB can equally well be calculated as the kernel of FB, which is the same as the kernel of FC.

Finally, given any AGD with an action by this kernel, we may as well assume (by pullbacks) that F=G (which leaves C unchanged up to equivalence). Then since the kernel acting is the same as the kernel of FC, regularity of nCong s(K) gives a descended functor CD. Thus, AFC is the quotient of its kernel; so nCong(K) is regular.

Finally, if L is n-exact, then any functor KL induces one nCong(K)nCong(L), but nCong(L)L, so we have our extension, which it can be shown is unique up to equivalence.

When K is a regular 1-category, it is well-known that 1Cong(K) (which, in that case, is the category of internal equivalence relations and functional relations) is the 1-exact completion of K (the reflection of K from regular 1-categories into 1-exact 1-categories). Theorem 33 shows that in general, nCong(K) will be the n-exact completion of K whenver it is n-exact. However, in general for n>1 we need to “build up exactness” in stages by iterating this construction.

It is possible that the iteration will converge at some finite stage, but for now, define nCong r(K)=nCong(nCong r1(K)) and let K nex/reg=colim rnCong r(K).

Theorem

For any regular n-category K, K nex/reg is an n-exact n-category and there is a 2-fully-faithful regular functor Φ:KK nex/reg that induces an equivalence

Reg(K nex/reg,L)Reg(K,L)Reg(K_{n ex/reg},L) \simeq Reg(K,L)

for any n-exact 2-category L.

Proof

Sequential colimits preserve 2-fully-faithful functors as well as functors that preserve finite limits and quotients, and the final statement follows easily from Theorem 33. Thus it remains only to show that K nex/reg is n-exact. But for any n-congruence D 1D 0 in K nex/reg, there is some r such that D 0 and D 1 both live in nCong r(K), and thus so does the congruence since nCong r(K) sits 2-fully-faithfully in K nex/reg preserving finite limits. This congruence in nCong r(K) is then an object of nCong r+1(K) which supplies a quotient there, and thus also in K nex/reg.

2-internal logic

Could not include 2-internal logic

Classifying discrete opfibrations

Definition

As in WeberYS2T, a classifying discrete opfibration in a finitely complete 2-category K is a discrete opfibration p:ES such that for any X, the functor

K(X,S)DOpf(X),K(X,S) \to DOpf(X),

given by pullback of p, is full and faithful.

The canonical example is when K is some 2-category of “large categories” and S is the category of (small) sets. More generally, we could take K to be the 2-category Cat and S the category of sets of cardinality bounded by some cardinal λ.

When K is equipped with a classifying discrete opfibration, we make the following definitions.

  • A discrete opfibration is small if it is in the image of the above functor.
  • A discrete object X is small if X1 is a small discrete opfibration.
  • If K has a duality involution, we say an object A is locally small or arrow-small if the discrete opfibration XA×A op corresponding to the 2-sided fibration AA 2A is small.
  • A not-necessarily-discrete object A is small if it is locally small and admits an eso from a small discrete object.

If K lacks a duality involution, then merely giving the discrete opfibration ES doesn’t suffice to characterize the notion of “smallness,” since we can’t define what it means to be locally small. This suggests the definition of a size structure.

Additional axioms

We may impose additional axiom on a classifying discrete opfibration, many of which assert closure conditions of the class of small maps.

  • Identity maps are small.
  • The composite of small discrete opfibrations is small (the “axiom of replacement”).
  • All cosieves are small (the “axiom of separation”).
  • If qr and q are small discrete opfibrations, then so is r (“full slices”).
  • If q is a discrete opfibration, qr is a small discrete opfibration and r is eso, then q is a small discrete opfibration (“quotients”).
  • If q is a discrete opfibration whose pullback along an eso is a small discrete opfibration, then q is small (“descent”).
  • The map p:ES is exponentiable.

Some immediate consequences are:

  • If identity maps are small, then each category K(X,S) has a natural terminal object, and so S “has a terminal object” internally, i.e. S1 has a right adjoint.
  • If small discrete opfibrations are closed under composition, then if YX and ZX are small discrete opfibrations, so is Y× XZY, and thus so is the composite Y× XZX. Hence K(X,S) has binary products naturally, and thus S “has binary products” internally, i.e. the diagonal SS×S has a right adjoint.
  • In particular, if small discrete opfibrations form a subcategory, then S is a cartesian object.
  • One can also show that the “axiom of replacement” implies that any small object is the quotient of an internal category (2-congruence) in sm(disc(K)), the category of small discrete objects.

We will see some further consequences of these axioms below.

The universal map as a comma object

Theorem

Suppose that p:ES is a classifying discrete opfibration for which identity maps are small. Then there is a comma square

E 1 p 1 S id S\array{E & \overset{}{\to} & 1\\ ^p\downarrow &\Downarrow& \downarrow^1\\ S & \underset{id}{\to} & S}

in which the map 1S classifies the discrete opfibration id 1:11.

Proof

A map XE is the same as a discrete opfibration q:YX equipped with a section s:XY with ps1. Thus, it suffices to show that giving such data is equivalent to giving a square

X 1 S id S\array{X & \overset{}{\to} & 1\\ \downarrow & \Downarrow& \downarrow\\ S & \underset{id}{\to} & S}

in which the left-hand vertical map XS classifies q. But the composite X1S classifies id:XX, so since pullback of p is full and faithful into discrete opfibrations, giving such a 2-cell is the same as giving a map idq of discrete opfibrations over X, which is precisely to give a section of q.

Families

Suppose that p:ES is a CDO which is exponentiable. Then for any object A, we call the exponential

Fam(A)(S×AS) (ES)Fam(A) \coloneqq (S\times A \to S)^{(E\to S)}

the object of (small) families in A. It comes with a projection to S which “assigns to each family its indexing set.” Moreover, as observed in our study of exponentials, since p is an opfibration and S×AS is a fibration, then Fam(A)S is also a fibration, as we would expect.

Fam(A) has a universal property that can be directly expressed as follows. Evidently, to give a morphism XFam(A) is equivalent to giving a map XS together with a map X× SES×A over S. But X× SE is simply the discrete opfibration classified by XS, and a map to S×A over S is just an arbitrary map to A. Thus to give a map XFam(A) is the same as to give a small discrete opfibration YX together with a map YA: in other words, an X-indexed family of small sets, each of which indexes a family of objects of A.

(This sort of thing is closely related to the construction of generic families in Algebraic Set Theory.)

Families of sets as a codomain fibration

Now consider the special case when A=S. As above, to give a map XFam(S) is to give a small discrete opfibration YX and a map YS. But a map YS is in turn equivalent to a small discrete opfibration ZY. Thus K(X,Fam(S)) is naturally equivalent the category of composable pairs ZYX of small discrete opfibrations. Recalling that any map between discrete opfibrations over X is again a discrete opfibration, we observe that the 1-category DOpf(K/X) 2 consists of composable pairs ZYX of discrete opfibrations; thus K(X,Fam(S)) is naturally a full subcategory of this category.

On the other hand, we can consider another full subcategory of DOpf(K/X) 2 determined by those composable pairs ZYX in which YX and the composite ZX are small. This is precisely the subcategory SDOpf(K/X) 2, where SDOpf(K/X) consists of small discrete opfibrations, and is thus equivalent to K(X,S). It follows that this second full subcategory of DOpf(K/X) 2 is equivalent to K(X,S 2). Clearly these two subcategories agree if and only if small discrete opfibrations are closed under composition and have full slices, in the terminology defined above. Thus we have proven:

Theorem

Let p:ES be an exponentiable classifying discrete opfibration; the following are equivalent.

  1. Small discrete opfibrations are closed under composition and have full slices.
  2. For each X, the categories K(X,Fam(S)) and K(X,S 2) are equivalent as full subcategories of DOpf(K/X) 2.

When these conditions hold, we clearly have a natural equivalence K(X,Fam(S))K(X,S 2) lying over K(X,S), and therefore, by the Yoneda lemma, an equivalence over S between Fam(S)S and the codomain fibration S 2S.

(Note the slight peculiarity of this result: it is more common, when showing that two things are equivalent under certain conditions, to construct a canonical map between them which always exists and happens to be an equivalence in the cases of interest. Here instead we have constructed a canonical cospan which induces an equivalence in the cases of interest.)

Colloquially speaking, this theorem says that the category S of sets satisfies the “replacement axiom” if and only if the “naive indexing” Fam(S) of S over itself is equivalent to its “self-indexing” S 2. In classical material set theory, this is well-known to be equivalent to the usual axiom of replacement.

Note, though, that depending on what K is, Fam(S) may not be the “naive indexing” at all. For instance, if K is the category of stacks on a topos E, then the self-indexing of E is a classifying discrete opfibration in K, which always satisfies the “axiom of replacement,” essentially by construction. Analogous facts are well-known in algebraic set theory, and are one reason why “the axiom of replacement” is a bit slippery in structural set theory. Generally, in intuitionistic logic, the axioms of replacement and collection add no extra proof-theoretic strength because they can be made to hold internally in suitable (2-)topoi of sheaves/stacks; it is the axiom of separation which carries all the power distinguishing IZF from IETCS.

Constructing familiar categories

Given a classifying discrete opfibration, we can use finite 2-categorical limits and the “internal logic” to construct all the usual concrete categories out of the object S. For instance, if small discrete opfibrations are a subcategory, so that S is a cartesian object, then we have the composite SS×SS of the diagonal with the “binary products” morphism which, intuitively, takes a set A to the set A×A. Now the inserter of this composite and id S can be considered “the category of sets A equipped with a function A×AA,” i.e. the category of magmas.

Now we have a forgetful morphism magmaset, and also a functor magmaset which takes a magma to the triple product A×A×A, and there are two 2-cells relating these constructed from two different composites of the inserter 2-cell defining the category of magmas. It makes sense to call the equifier of these 2-cells “the category of semigroups” (sets with an associative binary operation). Proceeding in this way we can construct the categories of monoids, groups, abelian groups, and eventually rings.

A more direct way to describe these categories with a universal property is as follows. Since S is a cartesian object, each hom-category K(X,S) has finite products, so we can define the category ring(K(X,S)) of rings internal to it. Then the category ring is equipped with a forgetful functor ringset which has the structure of a ring in K(ring,set), and which is universal in the sense that we have a natural equivalence ring(K(X,S))K(X,ring). The above construction then just shows that such a representing object exists.

Preservation

If K has a duality involution and p:ES is a classifying discrete opfibration, then p o:E oS o is a “classifying discrete fibration,” and therefore also a classifying discrete opfibration in K co.

A classifying discrete opfibration in K is not inherited by any category of truncated objects in K, since E and S will generally not be truncated. However, it is inherited by (op)fibrational slices.

Recall first that opfibrations in Opf(X) can be identified with morphisms in Opf(X) whose underlying morphism in K is an opfibration. Moreover, such an opfibration is discrete if and only if its underlying morphism in K is so. Thus, it is natural to hope for the following.

Theorem

If K has exponentials and a classifying discrete opfibration, then each 2-category Opf K(X) has a classifying discrete opfibration, and the small opfibrations in Opf(X) are those whose underlying opfibrations in K are small.

Proof

Recall that when K has exponentials, Opf(X) is comonadic over K/X; let G X denote the comonad. For any A, write SOpf(A) for the category of small discrete opfibrations over A. Then our goal is for SOpf Opf(X)(AX):=SOpf(A) to be representable. But we have

SOpf(A)K(A,S)K(Σ X(AX),S)K/X(A,X×S)Opf(X)(A,G X(X×S)).SOpf(A) \simeq K(A,S) \simeq K(\Sigma_X (A\to X), S) \simeq K/X(A, X\times S) \simeq Opf(X)(A,G_X(X\times S)).

Therefore, defining S X=G X(X×SX) we obtain a classifying discrete opfibration in Opf(X) that classifies the desired small opfibrations.

Corollary

If K has exponentials, a duality involution, and a classifying discrete opfibration, then each 2-category Fib K(X) also has a classifying discrete opfibration.

Proof

This follows from Theorem 36 since Fib(X)Opf(X o). The classifying object is explicitly given by V X(G X o(X o×SX o)), although the small maps are not as explicitly characterized.

Classifying cosieves

A cosieve is a morphism AX in a 2-category that is both ff and a discrete opfibration. Equivalently, it is a subterminal object in Opf(X). It is easy to check that in Cat, this is equivalent to saying that A is a full subcategory of X such that if aA and f:ab, then bA.

A classifying cosieve is a classifying discrete opfibration which is a cosieve—and hence classifies only cosieves, since cosieves are stable under pullback. We write ζΩ for a classifying cosieve. Clearly any such Ω is posetal.

A cosieve classifier is a classifying cosieve which classifies all cosieves. In this case one can show, just as for the subobject classifier in a topos, that ζ=1. In Cat, the “walking arrow” 2 is a cosieve classifier.

Construction from classifying discrete opfibrations

If ES is any classifying discrete opfibration in a Heyting 2-pretopos K, then the subobject of S described in the internal logic by

{x:S(a:E(x))(b:E(x))(f:hom E(a,b))}\{x:S | (\forall a:E(x))(\forall b:E(x))(\exists f:hom_E(a,b))\top \}

is the largest subobject ΩS such that the pullback of E to Ω is a cosieve. (Verifying this is a straightforward argument using the Kripke-Joyal semantics?.) It is thus a classifying cosieve, which is canonically associated to ES.

In Cat, the cosieve classifier 2 arises from Set (or any full subcategory of it containing 0 and 1) in this way.

From cosieve classifiers to subobject classifiers

If X is groupoidal, then every ff into X is a cosieve. Therefore, maps from a groupoidal X into a cosieve classifier Ω classify all subobjects of X. Since subobjects of X are the same as subobjects of its core J(X) if that exists, subobjects of X can be classified by maps J(X)Ω.

Moreover, if a cosieve classifier Ω itself has a core, then since J(Ω) is a coreflection of Ω into gpd(K), it is a subobject classifier in gpd(K) in a suitable (2,1)-categorical sense. Moreover, since Ω is posetal, its core (if it exists) is discrete. Thus:

Theorem

If K is a 2-category having a cosieve classifier and enough groupoids, then disc(K) has a subobject classifier.

In particular, if K also has (discrete) exponentials, then disc(K) is a topos.

However, disc(K) can have both a subobject classifier and a cosieve classifier without the former being a core of the latter. For instance, in the 2-presheaf 2-topos K=[C,Cat], the category disc(K) is the 1-topos of 1-sheaves on the homwise-discrete reflection of C, but there will not in general be a map in either direction relating its subobject classifier to the cosieve classifier.

A subobject classifier can also be constructed from a cosieve classifier in a Heyting 2-category with a duality involution. For then if Ω is a cosieve classifier, Ω o is a sieve opclassifier, i.e. K(X,Ω o) is equivalent to the opposite of the poset of sieves on X. On Ω×Ω o we thus have both a sieve R and a cosieve S, pulled back from Ω and Ω o; let Ω d be the subobject of Ω×Ω o defined as RS in the Heyting algebra structure. Now maps into Ω d classify sieves and cosieves that are equal as subobjects, which is to say, subobjects that are both sieves and cosieves. And transformations between maps XΩ d correspond to both inclusions of cosieves and coinclusions of sieves, which is to say, identities; thus Ω d is discrete, and hence a subobject classifier in disc(K).

Theorem

If K is a Heyting 2-category having a cosieve classifier and a duality involution, then disc(K) has a subobject classifier.

Replacing subobject classifiers

If K has a cosieve classifier and (discrete) exponentials, but not enough groupoids, then disc(K) may not be a topos. But it retains many of the properties of a topos, because even though the “power object” PX=Ω X is not an object of disc(K), it can still be quantified over in the internal logic of K to define objects and properties in disc(K), and even in gpd(K), where all subobjects are cosieves.

For example, if K is also Heyting, then for any groupoidal X we can construct the “internally least” subobject of X with some property, as

{x:X(S:PX)(φ(S)xS)}.\{x:X | (\forall S:P X)(\varphi(S) \Rightarrow x\in S)\}.

This allows the construction of all sorts of “closure” operations that exist in a topos, such as the equivalence relation generated by any given relation on a groupoidal object. In particular:

Proposition

If K is 1-exact and Heyting with exponentials and a cosieve classifier, then disc(K) is finitely cocomplete.

If X is not groupoidal, then the above technique only constructs cosieves in X rather than arbitrary subobjects of it. However, if there are enough groupoids, we can construct arbitrary subobjects of any object X in this way, since subobjects of X are bijective with subobjects of its core J(X). In particular:

Proposition

If K is 1-exact and Heyting with exponentials, a cosieve classifier, and either enough groupoids or a duality involution, then it has discrete reflections.

Proof

It suffices to be able to construct the equivalence relation generated by the image of A 2A×A, for any A. Note that these relations are not cosieves on A×A, but as remarked above, we can get around this if A×A has a core. Alternately, since the relations we care about are all “2-sided sieves” (subterminals in Fib(A,A)), if there is a duality involution we can turn them into cosieves on A op×A and perform the closure there.

In another vein, if K is a positive Heyting 2-category with a (necessarily discrete) natural numbers object N, we can of course construct the discrete object of rational numbers Q in the usual way, and then define the Dedekind real numbers as two-sided cuts. Thus, R is a subobject of PQ×PQ, and hence posetal, but since the order relation on R inherited from the two copies of PQ would go in different directions, in fact R is discrete.

I haven’t made a concerted effort yet, but I haven’t yet thought of any really important aspect of topos-ness for disc(K) that isn’t almost as well-served by having a posetal power-object rather than a discrete one. Mathieu Dupont was the one who originally pointed out to me that 2-categorically, power-objects are naturally posets rather than sets.