nLab
locally cartesian closed category

Context

Category Theory

Monoidal categories

Contents

Definition

A locally cartesian closed category is a category C whose slice categories C/x are all cartesian closed.

If a locally cartesian closed category C has a terminal object, then C is itself cartesian closed and in fact has all finite limits (because, cartesian products in C/x are pullbacks in C); often this requirement is included in the definition.

Equivalently, a locally cartesian category C is a category with pullbacks (and a terminal object, if required) such that each base change functor f *:C/y→C/x has a right adjoint Π f, called the dependent product. (This equivalence is discussed in detail below.)

In particular, such pullbacks preserve all colimits. Therefore, if a locally cartesian closed category has finite colimits, it is automatically a coherent category and in fact a Heyting category.

Properties

Cartesian closure in terms of base change and dependent product

We show how the dependent product and the internal hom in the slice categories may be used to express each other.

In category theory

Proposition

Let π’ž be a category with pullbacks that has all dependent products ∏ β€’, equivalently that every morphism f:Eβ†’X in π’ž induces an adjoint triple

π’ž /Eβ†’βˆ f←f *β†’βˆ‘ fπ’ž /X.\mathcal{C}_{/E} \stackrel{\overset{\sum_f}{\to}}{\stackrel{\overset{f^*}{\leftarrow}}{\underset{\prod_f}{\to}}} \mathcal{C}_{/X} \,.

Then the internal hom in a slice π’ž /X exists and is given by

[⟨Eβ†’fX⟩,βˆ’] π’ž /Xβ‰ƒβˆ f∘f *.[\langle E \stackrel{f}{\to} X\rangle \; ,\; -]_{\mathcal{C}_{/X}} \simeq \prod_f \circ f^* \,.
Proof

By the discusson at overcategory-Limits and colimits the product in the slice π’ž /X of two objects ⟨E 1β†’f 1X⟩ and ⟨E 1β†’f 2X⟩ is given by the pullback f 1 *E 2=f 2 *E 1 in π’ž, regarded again as a morphism over X. More formally this means that the product with ⟨Eβ†’fX⟩ is given by the composite

(βˆ’)Γ— π’ž /X⟨Eβ†’fX⟩:π’ž /Xβ†’f *π’ž /Eβ†’βˆ‘ fπ’ž /X(-) \times_{\mathcal{C}_{/X}} \langle E \stackrel{f}{\to} X\rangle \;\;\;:\;\;\; \mathcal{C}_{/X} \stackrel{f^*}{\to} \mathcal{C}_{/E} \stackrel{\sum_f}{\to} \mathcal{C}_{/X}

of the pullback along f with the dependent sum along f. By the above adjoint triple both these morphisms have right adjoints and so the composite of the right adjoints is the right adjoint of the composite, hence is the internal hom:

π’ž /Xβ†βˆ fπ’ž /E←f *π’ž /X:[⟨Eβ†’fX⟩,βˆ’] π’ž /X.\mathcal{C}_{/X} \stackrel{\prod_f}{\leftarrow} \mathcal{C}_{/E} \stackrel{f^* }{\leftarrow} \mathcal{C}_{/X} \;\;\;:\;\;\; [\langle E\stackrel{f}{\to} X \rangle, -]_{\mathcal{C}_{/X}} \,.
Proposition

If for a category π’ž every slice category is a cartesian closed category, then for every morphism f:Xβ†’Y in π’ž the dependent product ∏ f exists and is given on an object Eβ†’pX by the pullback

∏ f⟨Eβ†’pX⟩ β†’ [⟨Xβ†’fY⟩,⟨Eβ†’pXβ†’fY⟩] π’ž /Y ↓ ↓ Y β†’idΒ― [⟨Xβ†’fY⟩,⟨Xβ†’fY⟩] π’ž /Y\array{ \prod_f \langle E \stackrel{p}{\to} X\rangle &\to& [\langle X \stackrel{f}{\to}Y\rangle, \langle E \stackrel{p}{\to}X \stackrel{f}{\to} Y\rangle]_{\mathcal{C}_{/Y}} \\ \downarrow && \downarrow \\ Y &\stackrel{\bar id}{\to}& [\langle X \stackrel{f}{\to}Y \rangle,\langle X \stackrel{f}{\to}Y \rangle]_{\mathcal{C}_{/Y}} }

in π’ž /Y, where the bottom morphism is the adjunct of

YΓ— π’ž /Y⟨Xβ†’fYβŸ©β‰ƒβŸ¨Xβ†’fYβŸ©β†’id⟨Xβ†’fY⟩.Y \times_{\mathcal{C}_{/Y}} \langle X \stackrel{f}{\to} Y\rangle \simeq \langle X \stackrel{f}{\to}Y\rangle \stackrel{id}{\to} \langle X \stackrel{f}{\to}Y\rangle \,.
Proof

It is sufficient to check the (f *⊣∏ f)-adjunction hom set-natural isomorphism

π’ž /Y(⟨Fβ†’Y⟩,∏ f⟨Eβ†’pX⟩)β‰ƒπ’ž /X(f *⟨Fβ†’Y⟩,⟨Eβ†’pX⟩),\mathcal{C}_{/Y}( \langle F \stackrel{}{\to} Y\rangle , \prod_f \langle E \stackrel{p}{\to} X\rangle) \simeq \mathcal{C}_{/X}(f^* \langle F \stackrel{}{\to} Y\rangle, \langle E \stackrel{p}{\to} X\rangle) \,,

natural in ⟨Fβ†’Y⟩.

Since the hom functor π’ž /Y(⟨Fβ†’Y⟩,βˆ’) preserves limits and hence pullbacks, the expression on the left is exhibited as the pullback

π’ž /Y(⟨Fβ†’Y⟩,∏ f⟨Eβ†’pX⟩ β†’ π’ž /Y(⟨Fβ†’Y⟩,[⟨Xβ†’fY⟩,⟨Eβ†’pXβ†’fY⟩] π’ž /Y) ↓ ↓ * β†’ π’ž /Y(⟨Fβ†’Y⟩,[⟨Xβ†’fY⟩,⟨Xβ†’fY⟩] π’ž /Y)\array{ \mathcal{C}_{/Y}(\langle F \stackrel{}{\to} Y\rangle, \prod_f \langle E \stackrel{p}{\to} X\rangle &\to& \mathcal{C}_{/Y}(\langle F \stackrel{}{\to} Y\rangle, [\langle X \stackrel{f}{\to}Y \rangle,\langle E \stackrel{p}{\to}X \stackrel{f}{\to} Y\rangle]_{\mathcal{C}_{/Y}}) \\ \downarrow && \downarrow \\ * &\stackrel{}{\to}& \mathcal{C}_{/Y}(\langle F \stackrel{}{\to} Y\rangle,[\langle X \stackrel{f}{\to}Y \rangle,\langle X \stackrel{f}{\to}Y \rangle]_{\mathcal{C}_{/Y}}) }

in Set. Using the ((βˆ’)Γ— π’ž /Y⟨Xβ†’fY⟩⊣[⟨Xβ†’fY⟩,βˆ’] π’ž /Y)-adjunction this is equivalently

π’ž /Y(⟨Fβ†’Y⟩,∏ f⟨Eβ†’pX⟩ β†’ π’ž /Y(⟨Fβ†’YβŸ©Γ— π’ž /Y⟨Xβ†’fY⟩,⟨Eβ†’pXβ†’fY⟩) ↓ ↓ * β†’ π’ž /Y(⟨Fβ†’YβŸ©Γ— π’ž /Y⟨Xβ†’fY⟩,⟨Xβ†’fY⟩).\array{ \mathcal{C}_{/Y}(\langle F \stackrel{}{\to} Y\rangle, \prod_f \langle E \stackrel{p}{\to} X\rangle &\to& \mathcal{C}_{/Y}(\langle F \stackrel{}{\to} Y\rangle \times_{\mathcal{C}_{/Y}} \langle X \stackrel{f}{\to}Y \rangle, \langle E \stackrel{p}{\to}X \stackrel{f}{\to} Y\rangle) \\ \downarrow && \downarrow \\ * &\stackrel{}{\to}& \mathcal{C}_{/Y}(\langle F \stackrel{}{\to} Y\rangle \times_{\mathcal{C}_{/Y} }\langle X \stackrel{f}{\to}Y \rangle , \langle X \stackrel{f}{\to}Y \rangle) } \,.

This pullback now manifestly computes π’ž /X(f *⟨Fβ†’Y⟩,⟨Eβ†’pX⟩).

Proposition

If C is locally cartesian closed (i.e., if every slice C/X is cartesian closed), then every slice C/X is also locally cartesian closed.

Proof

The slice of a slice is a slice, i.e., for every f:X→Y there is an equivalence

(C/Y)/(f:Xβ†’Y)≃C/X(C/Y)/(f \colon X \to Y) \simeq C/X

whence the statement immediately follows.

Proposition

If C is locally cartesian closed (and has a terminal object), then the pullback functor XΓ—βˆ’:Cβ†’C/X preserves both finite products and exponentials up to isomorphism.

Proof

Clearly XΓ—βˆ’:Cβ†’C/x, being right adjoint to the forgetful functor βˆ‘ X:C/Xβ†’C, preserves limits, hence it preserves finite products in particular.

Let ϕ:A→X be any morphism. From the pullback diagram

AΓ—Z →ϕ×1 XΓ—Z Ο€ A↓ ↓ Ο€ X A β†’Ο• X\array{ A \times Z & \stackrel{\phi \times 1}{\to} & X \times Z \\ _\mathllap{\pi_A} \downarrow & & \downarrow _\mathrlap{\pi_X} \\ A & \underset{\phi}{\to} & X }

we conclude AΓ— X(XΓ—Z)β‰…AΓ—Z, seen as an object over X via Ο•βˆ˜Ο€ A:AΓ—Zβ†’X. Thus arrows in the slice C/X of the form

AΓ— X(XΓ—Z)β†’XΓ—YA \times_X (X \times Z) \to X \times Y

are in natural bijection with arrows in C of the form

AΓ—Zβ†’βŸ¨Ο•βˆ˜Ο€ A,g⟩XΓ—YA \times Z \stackrel{\langle \phi \circ \pi_A, g\rangle}{\to} X \times Y

which in turn are in natural bijection with arrows in the slice C/X of the form

Aβ†’βŸ¨Ο•,g˜⟩XΓ—Y ZA \stackrel{\langle \phi, \tilde{g} \rangle}{\to} X \times Y^Z

(where g˜:Aβ†’Y Z is obtained by currying g:AΓ—Zβ†’Y in C). This proves that XΓ—βˆ’:Cβ†’C/x preserves exponentials.

Corollary

For any f:Xβ†’Y in C, the base change f *:C/Yβ†’C/X preserves exponentials. In other words, the dependent sum functor βˆ‘ f and the dependent product functor ∏ f satisfy Frobenius reciprocity.

Proof

This is by combining proposition 3 and proposition 4, and recalling that the pullback functor

C/Yβ†’(C/Y)/(f:Xβ†’Y)≃C/XC/Y \to (C/Y)/(f \colon X \to Y) \simeq C/X

is identified with the pullback functor f *:C/Y→C/X.

This state of affairs may be summarized in terms of the notion of hyperdoctrine:

Proposition

If C is a category with finite limits, then it is locally cartesian closed precisely if regarded as an C-indexed category (by forming slice categories) it is a hyperdoctrine.

For a proof of the statement in this form, see for instance (Freyd).

In type theory

We formulate some of the above considerations in the syntax of dependent type theory.

Proposition

Let

X A Ο•β†˜ ↙ c B\array{ X &&&& A \\ & {}_{\mathllap{\phi}}\searrow && \swarrow_{\mathrlap{c}} \\ && B }

be two display maps. Then the category theoretic identification

[X,A] B=∏ ϕϕ *⟨Aβ†’cX⟩[X,A]_{B} = \prod_\phi \phi^* \langle A \stackrel{c}{\to} X\rangle

from prop. 1 is the categorical semantics of the dependent type theory syntax

b:B⊒X(b)β†’A(b):Type= defb:B⊒∏ x:X(b)A(Ο•(x)).b : B \vdash X(b) \to A(b) : Type \;\;\; =_{def} \;\;\; b : B \vdash \prod_{x : X(b)} A(\phi(x)) \,.
Remark

While equivalent under the relation between type theory and category theory, the latter expression almost verbatim expresses the evident idea that:

(collection of internal homs parameterized over B) = ( collection of sections of the pullback of A to X )

Proof

By definition, the display map on the right is expressed as the dependent type

b:B⊒A(b):Type,b : B \vdash A(b) : Type \,,

the pullback f *⟨Aβ†’B⟩ is expressed by substitution

x:X⊒A(Ο•(x)):Typex : X \vdash A(\phi(x)) : Type

and next the dependent product ∏ ϕϕ *⟨Aβ†’B⟩ by

b:B⊒∏ x:X(b)A(Ο•(x)):Type.b : B \vdash \prod_{x : X(b)} A(\phi(x)) : Type \,.

Now on the right Ο•(x)= defb, formally because Ο• is equivalently the projection pr 1 out of X expressed as the direct sum

(b,x):βˆ‘ b:BX(b)pr 1(b,x)= defb= defΟ•(x):B.\frac{(b,x) : \sum_{b : B} X(b)} { pr_1(b,x) =_{def} b =_{def} \phi(x) : B} \,.

Inserting this in the above expression makes it definitionally equal to

b:B⊒∏ x:X(b)A(b):Type.b : B \vdash \prod_{x : X(b)} A(b) : Type \,.

This in now a dependent product over a type that does not actually depend on the context B, and hence by definition this is the dependent function type

b:B⊒X(b)β†’A(b):Type.b : B \vdash X(b) \to A(b) : Type \,.

which expresses the internal hom in the slice over B.

Internal logic

The internal logic of locally cartesian closed categories is an extensional form of dependent type theory. In particular, the dependent product Ξ  f represents an extensional dependent product type in the internal logic.

Almost local cartesian closure

There are categories which are cartesian closed and not locally cartesian closed, but in which for some f the base change functor f *:C/y→C/x has a right adjoint. This includes Cat, Gpd, and the category of crossed complexes; in the latter two cases, it is necessary and sufficient for f to be a fibration, while in Cat it is sufficient for f to be a fibration or an opfibration.

Examples

Proposition

Every sheaf topos is locally cartesian closed.

Proof

By Giraud's theorem, in a sheaf topos pullbacks preserve colimits. With the adjoint functor theorem this implies that for every morphism f:Xβ†’Y, the pullback functor f *:π’ž /Yβ†’π’ž /X has a right adjoint ∏ f. By prop. 1 this yields the local cartesian closure.

References

A standard textbook account is around corollary A1.5.3 in

The relation between local cartesian closure and base change/hyperdoctrine structure is sometimes attributed to

  • Peter Freyd, Aspects of topoi, Bull. Australian Math. Soc. 7 (1972), 1-76.

A discussion of dependent type theory as the internal language of locally cartesian closed categories is in

  • R. A. G. Seely, Locally cartesian closed categories and type theory, Math. Proc. Camb. Phil. Soc. (1984) 95 (pdf)

Related literature includes

  • Marta Bunge, and Susan Niefield, Exponentiability and single universes J. Pure Appl. Algebra 148 (2000) 217–250.

  • FranΓ§ois ConduchΓ©, Au sujet de l’existence d’adjoints Γ  droite aux foncteurs β€œimage rΓ©ciproque” dans la catΓ©gorie des catΓ©gories (French) C. R. Acad. Sci. Paris SΓ©r. A-B 275 (1972), A891–A894.

  • J. Howie, Pullback functors and crossed complexes , Cahiers Topologie GΓ©om. DiffΓ©rentielle, 20 (1979) 281–296.

Revised on November 22, 2012 21:13:07 by Todd Trimble (67.81.93.16)