By Eric Schmid
Dedicated to Dieter Roth, Gerhard Rühm, and Oswald Wiener.
Contents
- How to read these notes
- Part I. Categorical Logic
- 1. Introduction: logic through the lens of categories
- 2. Preliminaries: subobjects, predicates, and stability
- 3. Algebraic theories and functorial semantics
- 4. Lawvere duality and abstract algebraic theories
- 5. Interlude: proofs as morphisms and the -calculus
- 6. First-order logic, categorically
- 7. Quantifiers as adjoints
- 8. Regular categories and regular logic
- 9. Coherent logic
- 10. Heyting categories and full first-order logic
- 11. Interlude: the Curry–Howard–Lambek correspondence
- 12. Doctrines and unifying frameworks
- Part II. Topos Theory
- 13. What is a topos?
- 14. Elementary toposes: definition and first consequences
- 15. A gallery of toposes
- 16. Presheaf toposes and generic figures
- 17. Sheaves and Grothendieck toposes
- 18. The internal logic I: the Mitchell–Bénabou language
- 19. The internal logic II: Kripke–Joyal semantics
- 20. Geometric morphisms
- 21. Toposes as mathematical universes
- 22. A guide to the literature
- 23. Exercises
- A. Summary tables and glossary
- B. Further exercises
- C. Category-theoretic background in one page
- D. Background in detail: categories, functors, adjoints
This book provides the maths behind the program initiated by Peter Wolfendale and Reza Negarestani called “Neo-Rationalism.” My aim is to extend their program through these self-contained lecture-style notes in two parts. Part I develops categorical logic along the following arc: from Lawvere’s functorial semantics of algebraic theories, through the doctrinal hierarchy of logical fragments (cartesian, regular, coherent, Heyting), to theleft unifying frameworks of doctrines and generalized sketches. Part II develops topos theory: the elementary topos axioms, the standard examples (sets, -sets, presheaves, graphs, sheaves), the internal higher-order logic via the Mitchell–Bénabou language and Kripke–Joyal semantics, the bi-Heyting structure of presheaf toposes, geometric morphisms, and the view of toposes as custom-tailored universes for mathematics.
How to Read These Notes
Part I assumes basic category theory (categories, functors, natural transformations, limits, adjunctions)—Appendix C is a one-page refresher, and Awodey & Bauer’s own appendices [4] a fuller one. Part II assumes Part I through Section 10. Readers who want the shortest path to toposes can read §2, §7, skim §8, and jump to Part II; readers headed for type theory should take §11 seriously and continue with Shulman [5].
Part I. Categorical Logic
1. Introduction: Logic through the Lens of Categories
1.1 What the Subject Is
Categorical logic is the study of logical systems using the tools of category theory. The subject originated in F. W. Lawvere’s 1963 PhD thesis on the functorial semantics of algebraic theories, and it has since expanded to encompass a vast range of logical systems drawn from both mathematics and computer science.1 The basic point of view can be stated in two slogans.
Slogan 1.1. Theories are structured categories; models are structure-preserving functors; homomorphisms of models are natural transformations.
Slogan 1.2. The logical operations are adjoints.
The first slogan is Lawvere’s functorial semantics. Instead of treating a theory as a bundle of uninterpreted syntax and a model as a set-based structure satisfying axioms, one distills the theory into a category carrying exactly the categorical structure needed to interpret the theory’s logic (finite products for equational logic, finite limits for cartesian logic, and so on), and one recovers models as functors preserving that structure. Syntax and semantics become objects of the same kind, related by functors, and the classical metatheorems—soundness, completeness, the existence of free models—become statements about universal properties.
The second slogan, also due to Lawvere, identifies the quantifiers and connectives as adjoint functors: existential and universal quantification are the left and right adjoints to substitution, conjunction and implication are related by the adjunction defining Heyting algebras, and comprehension, equality, and even the powerset arise from adjunctions.
1.2 Two Traditions: Model Theory and Proof Theory
Following de Paiva and Rodin, it is useful to distinguish two grand strands within categorical logic:2
Categorical model theory. In the Lawvere tradition, one studies the correspondence between theories-as-categories and their categories of models. Provability is reflected in the ordering of subobjects; a formula is a subobject, and satisfaction is containment of subobjects. Part I of these notes lives mostly in this tradition.
Categorical proof theory. In the Curry–Howard–Lambek tradition, one identifies propositions with types (objects) and proofs—not merely provability—with terms (morphisms). The paradigmatic result is Lambek’s theorem that the simply typed -calculus is the internal language of cartesian closed categories, so that -equivalence classes of terms correspond to morphisms. Shulman’s lecture notes [5] develop categorical logic thoroughly from this side, using multicategories as an intermediate structure between type theories and monoidal or cartesian categories.3
The two strands meet in the higher reaches of the subject: an elementary topos is simultaneously the model-theoretic environment for higher-order theories (Part II) and, via its internal type theory, a proof-theoretic object.
1.3 How the Subject Is Organized: Fragments and Structures
A recurring theme is a dictionary between fragments of first-order and higher-order logic and classes of structured categories. Each row of the following table is a “doctrine” in the informal sense of Section 12; the table is the roadmap for all of Part I and the bridge to Part II.4
| Fragment | Logical operations | Categorical structure | Where treated |
|---|---|---|---|
| Algebraic | (equations only) | finite products | §3 |
| Cartesian | finite limits | §6.4 | |
| Regular | regular categories | §8 | |
| Coherent | regular | coherent categories | §9 |
| First-order | coherent | Heyting categories | §10 |
| Higher-order | first-order powersets | elementary toposes | Part II |
Reading the table downward, each fragment adds connectives, and each class of categories adds the corresponding structure. Reading a single row, one has three interlocking activities: a proof theory (the deductive calculus of the fragment), a categorical semantics (interpretation in any category of the given class), and a completeness theorem mediated by a syntactic classifying category.
1.4 Plan of Part I
Section 2 collects the categorical preliminaries on subobjects that the semantics requires. Sections 3 and 4 develop algebraic theories, functorial semantics, and Lawvere’s syntax–semantics duality in detail, following Awodey & Bauer [4]. Sections 6–10 climb the first-order hierarchy: cartesian, regular, coherent, and Heyting logic. Section 12 steps back to the organizing frameworks: doctrines as 2-monads, Makkai’s generalized sketches, and Fujii’s unified framework for algebraic notions.
2. Preliminaries: Subobjects, Predicates, and Stability
Throughout Part I, the semantic home of a predicate on an object is the poset of subobjects of . This section fixes the relevant machinery.5
2.1 Subobjects
Let be an object of a category . Given monomorphisms and , say when factors through , i.e. when there is with . Such a is automatically monic and unique. This makes the class of monos into a preorder; its poset reflection is the poset of subobjects of : elements are equivalence classes of monos, where iff (in which case over ). One calls well-powered when each is (equivalent to) a small poset; all categories in these notes are well-powered.
When has pullbacks, becomes a functor sending to the monotone map given by pullback of monos along (pullbacks of monos are monos, and the two-pullbacks lemma makes this functorial up to the identifications built into ).
Lemma 2.1 (Two-pullbacks lemma). If in a commuting diagram both inner squares are pullbacks, so is the outer rectangle; and if the outer rectangle and the right square are pullbacks, so is the left square.
2.2 Predicates, Meets, and the Top Element
If has pullbacks, each has finite meets: the top element is , and the meet of and is the diagonal of the pullback square Moreover these meets are stable: for any , Stability is the categorical shadow of the syntactic fact that substitution commutes with the connectives, : since substitution will be interpreted as pullback, every operation used to interpret a connective must be preserved by pullback for the semantics to be well-defined. “Stable under pullback” is a hypothesis that will recur in every definition of Part I.
2.3 Generalized Elements
A generalized element of is simply a morphism ; one thinks of as a stage or domain of variation of the element. Given a subobject , write when factors (necessarily uniquely) through . The following rules let one reason about subobjects element-wise, and will reappear in Part II as the degenerate, “global” fragment of Kripke–Joyal semantics:
always;
iff for every stage and every , implies ;
iff and ;
for the diagonal : iff ;
for an equalizer of : iff ;
for a pullback: iff .
2.4 Adjoints Between Subobject Posets
A monotone map between posets is a functor; adjoint functors between posets are Galois connections: means . All logical structure in Part I lives in this poset-level world. For in a category with pullbacks, one asks whether the pullback functor has adjoints: When they exist, the left adjoint interprets existential quantification along and the right adjoint universal quantification. The adjunction laws are precisely the two-way inference rules for the quantifiers, a point we take up in Section 7.
3. Algebraic Theories and Functorial Semantics
Algebraic theories describe structures determined by everywhere-defined operations and equational axioms: groups, rings, modules, lattices. The scope of the notion is wider than it first appears—many concepts without an obviously equational flavor admit algebraic formulations—while some familiar ones are genuinely excluded: fields (because is undefined) and categories (because composition is only partially defined) are not algebraic.6
3.1 Signatures, Terms, and Theories
Definition 3.1. A signature for an algebraic theory is a family of sets ; elements of are the -ary operation symbols, and elements of are constants. Terms are generated inductively: variables are terms, and if are terms and then is a term. An algebraic theory (or equational theory) consists of a signature together with a set of axioms, each an equation between terms.
Example 3.2 (Groups). The naive axioms for a group involve nested quantifiers (), but since units and inverses are unique one may instead add them to the signature: a constant , a unary operation , and a binary operation , subject to the purely equational axioms This is the standard way to put such a theory into algebraic form.
Example 3.3 (Further examples). Commutative unital rings form an algebraic theory (constants ; unary ; binary ; the usual twelve equations). For a fixed ring , left -modules form an algebraic theory with a unary operation of scalar multiplication for each —signatures may be infinite. The empty theory is the theory of a bare set; one constant and no equations gives pointed sets. Inductive datatypes in programming languages, such as binary trees with integer leaves, are algebraic theories with no equations, of which the datatype denotes the free model. By contrast, the theory of posets, axiomatized with a binary relation symbol , is not presented equationally—though the theory of -semilattices is, and it captures posets-with-meets by defining .7
3.2 Models in Any Category with Finite Products
The set-based notion of a group—a set with functions , , satisfying equations between composites—transcribes verbatim into any category with finite products: the equations become commutative diagrams, e.g. associativity becomes This yields the category of groups in : topological groups when , Lie groups when is a category of manifolds, and so on.
In general, an interpretation of a theory in a finite-product category assigns to the (single) sort an object and to each a morphism . A term is always interpreted in a context listing (at least) its variables, as a morphism : variables become product projections, and becomes . The interpretation satisfies an equation in context when as morphisms , and it is a model when it satisfies all axioms. A homomorphism of models is a morphism of commuting with the interpretations of all basic operations. This defines the category .
Example 3.4 (Variable models). A group in a functor category is the same thing as a functor : products in are computed pointwise, so evaluation at each preserves them, and a group structure on a functor is exactly a pointwise group structure varying naturally. More generally so a model in variable sets is a variable model.8
3.3 The Syntactic Category
A theory presented by operations and equations is like an algebra presented by generators and relations: useful, but presentation-bound. Group theory can equally be presented by a single binary “double division” operation and one exotic axiom; the concept presented is the same. The remedy is to package the theory itself as a category, remembering all derived operations and all provable equations while forgetting which were basic.9
Construction 3.5 (Syntactic category). Given an algebraic theory , the syntactic category has:
objects: contexts , i.e. finite lists of distinct variables, up to renaming;
morphisms : -tuples of terms in context , identified when proves them componentwise equal;
composition: simultaneous substitution, ; identities are tuples of variables.
The equational calculus guarantees these operations are well defined on provable-equality classes. has finite products: , with terminal object the empty context .
One may think of as the Lindenbaum–Tarski category of : the syntax-invariant algebraic gadget presented by the theory. It carries a tautological model : the underlying object is the singleton context , and each is interpreted as the morphism . Satisfaction in is provability:
3.4 Models Are Functors; the Classifying Category
Theorem 3.6 (Functorial semantics). For any algebraic theory and any finite-product category , evaluation at gives an equivalence of categories, natural in : between finite-product-preserving functors (with natural transformations as morphisms) and models of in (with homomorphisms).10
A finite-product category equipped with a model satisfying this universal property is called a classifying category for ; it is unique up to equivalence, and the theorem says the syntactic category is one. Two consequences follow.
First, the correspondence gives a principled answer to “what is a theory?”: the category with its universal property, not any particular presentation. Second, the universal model is logically generic by (1): it satisfies all and only the provable equations. Classical, -valued semantics almost never provides such a single generic model; allowing models in arbitrary finite-product categories does.
3.5 Completeness
Theorem 3.7 (Strong completeness for equational logic). Let be an algebraic theory and an equation.
iff every model of in every finite-product category satisfies .
There is a single model—the universal in —whose satisfaction relation coincides with provability.
Completeness with respect to restricted classes of models then follows from embedding theorems, in a pattern that will repeat for the richer fragments:
Proposition 3.8. The Yoneda embedding preserves finite products and is faithful, so is again a generic model, now in a presheaf category. Since the evaluation functors are jointly faithful and preserve finite products, equational logic is complete with respect to ordinary -valued models as well.11
Example 3.9 (The universal group). For the theory of groups, the generic presheaf model assigns to the context the set of terms in variables modulo the equations of group theory—that is, the free group on generators. The universal group is thus “the free group on generators, with a parameter,” with group structure given stagewise by the free-group operations.12
3.6 The Four-Part Scheme, Reorganized
Awodey and Bauer summarize the reorganization that functorial semantics effects on the traditional picture of logic.13 Traditionally a logical system comprises: a type theory (calculus of types and terms); a logic (here, equational reasoning); a notion of theory (basic types, terms, axioms); and interpretations and models (denotational assignment of objects and morphisms, with satisfaction of axioms). Functorial semantics repackages all four: theories are structured categories; models are structure-preserving functors; homomorphisms are natural transformations—obtained “for free” from the functorial setting; and universal models exist, are logically generic, and reduce completeness to embedding theorems for classifying categories. This scheme is not special to algebraic theories: it is the template applied to each fragment in the sections that follow, and to higher-order logic in Part II.
4. Lawvere Duality and Abstract Algebraic Theories
4.1 Syntax Is Dual to Semantics
There is a remarkable duality, going back to Lawvere’s thesis, of the schematic form which is nearly invisible without categorical tools.14 Concretely:
Theorem 4.1 (Logical duality for algebraic theories). For any algebraic theory , let be the full subcategory of finitely generated free models. Then there is an equivalence
The proof identifies the universal model inside as , the free model on one generator, with (since free functors send coproducts of generating sets to coproducts of models, which become products in the opposite category). An -ary term corresponds to the element , hence—by freeness—to a homomorphism , which read in the opposite category is a morphism : exactly the interpretation of . Provable equality of terms is equality of elements in the free model, so the syntactic category is faithfully reconstructed. An invariant copy of the syntax of sits inside the opposite of its category of models, as the finitely generated free algebras.
Example 4.2 (The empty theory and finite sets). For the empty theory (pure equality on one sort), every model is free and the finitely generated ones are the finite sets, so : the opposite of finite sets is the free finite-product category on one object.
Example 4.3 (Abelian groups). For the theory of abelian groups, : contexts become the groups , the group operation becomes the homomorphism , , and the laws of abelian groups hold because every abelian group’s structure is induced by precomposition with these co-operations.
Example 4.4 (Affine schemes). Algebraic geometry runs on the same duality: affine schemes are defined as the opposite of commutative rings, , and the finitely generated free algebra becomes a ring object in affine schemes—the affine line—whose co-operations , and , induce addition and multiplication of functions.
4.2 Lawvere Algebraic Theories
Nothing in the duality depended on a syntactic presentation, which motivates the presentation-free notion:
Definition 4.5 (Lawvere theory). A Lawvere algebraic theory is a small category with finite products whose objects form a sequence with ; thus every object is a finite power of the generating object . A model in a finite-product category is an FP-functor ; homomorphisms are natural transformations.
Every Lawvere theory determines a syntactic theory whose -ary operations are all morphisms , with an equation for every commuting diagram; and every syntactic theory determines a Lawvere theory, its syntactic category. The abstract notion covers examples where the operations come from mathematics rather than from a signature:15
Example 4.6 (-rings). Let be the category whose objects are the Euclidean spaces and whose morphisms are all smooth maps. This is a Lawvere theory (generated by ), and a model is a set equipped with an -ary operation for every smooth , compatibly with composition. Since and are smooth, is in particular a commutative ring; the extra structure makes it a -ring. These are the building blocks of synthetic differential geometry and of the smooth toposes mentioned in Part II.
Example 4.7 (Computability as a theory). The category with objects and morphisms the total recursive functions is a Lawvere theory; its models in a category give a notion of computability internal to .
Example 4.8 (The total theory of an object). Any object in a finite-product category spans a Lawvere theory: the full subcategory on . Models of this “total theory of ” are the avatars of in other categories.
4.3 Algebraic Categories and Monadicity
Which categories are categories of models of an algebraic theory? The classical answer within a fixed signature is Birkhoff’s HSP theorem (closure under homomorphic images, subalgebras, products). The presentation-free answer characterizes the forgetful functor:
Theorem 4.9. For a category with a functor , the following are equivalent:16
is a Lawvere algebraic category, i.e. equivalent to for a Lawvere theory , with the evaluation at the generator;
has a left adjoint, preserves filtered colimits, and creates -absolute coequalizers;
is monadic over for a finitary monad.
The free model functor is constructed on finite sets as —the representables are exactly the finitely generated free models, recovering Theorem 4.1 in the abstract setting—and extended to all sets by filtered colimits.
Example 4.10 (Fields are not algebraic). Every algebraic category has a terminal object (the constant functor is a model). But has no terminal object: a terminal field would admit homomorphisms from both and , forcing and in , hence , a contradiction. So no reformulation of the field axioms—however ingenious—can be purely equational.17 The field axiom needs a richer fragment of logic.
4.4 Algebraic Functors: Translations and their Semantics
A syntactic translation of theories is an FP-functor ; it induces a functor on semantics in the opposite direction by precomposition, . Forgetful functors arise this way: the underlying-group functor is for the translation classifying the underlying group of the universal ring. Conversely, a functor commuting with the forgetful functors is for an essentially unique generator-preserving translation ; and dropping generator-preservation, the semantic characterization of “definable” functors is: those preserving limits, filtered colimits, and regular epimorphisms (with theories taken Cauchy-complete). Every such has a left adjoint , generalizing free constructions such as the free ring on a group.18
5. Interlude: Proofs as Morphisms and the -Calculus
Before climbing the first-order hierarchy, we pause for the proof-theoretic strand promised in the introduction: the Curry–Howard–Lambek correspondence, in which morphisms interpret proofs rather than provable containments.19
5.1 Cartesian Closed Categories
Definition 5.1. A category is cartesian closed (a CCC) when it has finite products and, for every pair of objects , an exponential: an object with evaluation such that every has a unique currying with . Equivalently: for every .
Example 5.2. is cartesian closed ( the function set). Every presheaf category is cartesian closed (§16); so are (functor categories as exponentials), , and the category of directed graphs. is not (no exponential exists for all ), which is one standard motivation for “convenient categories” of spaces. Every elementary topos is cartesian closed by definition.
Two consequences of the adjunction deserve note. First, exponentials are automatically functorial, contravariantly in the exponent and covariantly in the base, and satisfy the expected isomorphisms and , all by Yoneda-style uniqueness arguments. Second, in a CCC the name of a morphism is the point : morphisms are internalized as elements of function objects.
5.2 Simply Typed -Calculus
The simply typed -calculus over a set of base types has types generated by ; terms generated by typed variables, pairing and projections, application , the unit , and abstraction ; and equations plus the analogous laws for products. It is simultaneously a pure functional programming language and, by Curry–Howard, a proof calculus for minimal propositional logic: types are propositions ( is implication, conjunction, truth), terms are proofs, and -reduction is proof normalization (cut elimination).
Theorem 5.3 (Lambek). The simply typed -calculus is an internal language for cartesian closed categories. Precisely: every typed -theory (a set of base types, constants, and equations) presents a CCC whose objects are the types and whose morphisms are the terms modulo provable -equality; and this construction is one half of an equivalence between -theories (with translations) and CCCs (with CC functors). Under the equivalence, categorical semantics of the calculus in a CCC is the same as a CC functor .
This is the functorial-semantics template of §3 transposed to the proof-theoretic setting, with one important difference of grain: in Part I’s model-theoretic reading, a hom-poset records provability; here a hom-set records the proofs themselves, and equality of morphisms is the meaningful, decidable-by-normalization relation of -convertibility. The doctrinal tower of Part I has a parallel proof-relevant tower: monoidal categories interpret linear/ordered calculi, CCCs interpret the simply typed -calculus, locally cartesian closed categories interpret dependent type theory, and elementary toposes interpret full intuitionistic HOL.
5.3 Multicategories: Separating the Structural Rules
A sequent has a list on the left. Interpreting the list as a product works, but silently imports the structural rules—weakening, contraction, exchange—as properties of the diagonal and projections. Shulman’s systematic development therefore interposes multicategories: structures whose morphisms have finite lists as domains, with multi-composition but no assumption that the domain list is a product. Type theories present multicategories; requiring representability of the domain list by an object (via or ) then recovers monoidal or cartesian categories, and the choice of admissible structural rules—none, exchange only, all—selects the flavor of logic (linear, affine, ordered, intuitionistic).20
5.4 Functional Completeness
A final CCC fact with logical meaning: for any object of a CCC , the slice-like category obtained by freely adjoining a point (the polynomial category ) is again a CCC, and morphisms in correspond to morphisms in . This is functional completeness: a term with a free variable of type is the same as a morphism from a product with —the categorical justification for the deduction theorem, and the reason -abstraction is total.
6. First-Order Logic, Categorically
We now pass from equational logic to predicate logic, with connectives and quantifiers . The strategy is fixed by the template of Section 3: identify the categorical structure that models each logical operation (adjoints will do most of the work), study categories with that structure and functors preserving it, construct classifying categories, and derive completeness from embeddings.21
6.1 Why Equations Are Not Enough
Consider the property of a group of having no nontrivial square roots of unity: This is not equivalent to any system of equations. Yet its set-theoretic meaning suggests a categorical one: each of and carves out a subset of —an equalizer, hence available in any category with finite limits—and the implication asserts that the first subobject is contained in the second. Thus (2) can be interpreted in any finite-limit category as the requirement that one equalizer factor through another. The general scheme: formulas are interpreted as subobjects, and sequents as containments in a subobject poset.22
6.2 The Shape of a First-Order Theory
A first-order theory has two layers. The type-theoretic layer supplies sorts, function symbols with signatures , typing judgments for a typing context, and equations between terms. The logical layer supplies relation symbols with signatures , formula judgments , and axioms in the form of sequents in context read: in context , hypothesis entails . (With available, finite lists of hypotheses reduce to a single one.) A fragment is fixed by choosing which logical operations may appear; the fragments of interest were tabulated in the introduction. Languages and theories are best not separated too strictly: in rich systems, well-formedness of terms can depend on provability—as when denotes a real number only if is integrable—so types and logic may be defined by mutual recursion.23
6.3 Interpretation: The General Pattern
Fix a fragment and a category with the corresponding structure. An interpretation assigns: to each sort an object ; to each context the product ; to each function symbol a morphism; to each relation symbol of signature a subobject ; and then, by structural recursion:
terms become morphisms (variables are projections; application is composition);
formulas become subobjects , using the categorical operation matching each connective;
substitution into a term is composition; substitution of a term into a formula is pullback:
A model of is an interpretation validating every axiom in the sense that in .
6.4 Cartesian Logic
Cartesian logic is the fragment with only, interpreted in cartesian categories: categories with all finite limits. Its deductive calculus consists of the structural rules (weakening, substitution, identity, cut), the truth rule , the two-way conjunction rules, and the equality rules (reflexivity, and substitution of provably equal terms). The interpretation clauses: is the top subobject; is the pullback of along ; is the equalizer of ; conjunction is meet; weakening a formula from to is pullback along the projection.
Theorem 6.1 (Soundness of cartesian logic). If in the cartesian calculus, then every model of in every cartesian category satisfies it.
The proof is induction on derivations; the only interesting cases are substitution—sound because pullback functors are monotone—and the equality rule, where the key computation shows using the fact that the equalizer of equalizes the graphs as well.24
6.5 The Cartesian Calculus, Displayed
For reference, the full deductive calculus of the fragment, as a table of rules on sequents-in-context (context annotations suppressed when unchanged):25 Symmetry and transitivity of equality are derivable from the last rule (substitute into and respectively). Each subsequent fragment adds its rules on top: regular logic adds the two-way -rule and Frobenius (§8); coherent logic the -elimination and two-way -rules with distributivity; Heyting logic the two-way rules for and . In every case the “two-way” shape of a rule is the syntactic trace of an adjunction, per Section 7.
Example 6.2 (Posets, internally). The theory of posets—one sort , one relation of signature , axioms of reflexivity, transitivity, antisymmetry—is cartesian. A poset in a cartesian category is thus an object with a subobject validating the three sequents; e.g. reflexivity holds iff the diagonal factors through . Since finite limits in are pointwise, a poset in is precisely a functor : variable posets are posets in variable sets.26
Example 6.3 (Internal categories, and a limitation). A category internal to a cartesian category consists of objects , morphisms , , and a composition defined on the pullback of composable pairs, subject to unit and associativity equations (the latter stated on the triple-composable object ). Internal categories in are small categories; in , functors . But note a mismatch: this definition uses pullbacks directly, and cannot be transcribed as a multi-sorted cartesian theory as defined so far, because the signature of would need the subtype of composable pairs, and simple sorts provide no such thing. One remedy is a subtype former ; the systematic remedy is dependent type theory, where the sort of morphisms may depend on a pair of objects.27
6.6 Separating the Fragments
That the hierarchy is strict is witnessed by theories expressible at one level and provably not below:
Example 6.4 (Cartesian, not algebraic). Posets (Example 6.2): the relation symbol has no equational surrogate—Example 3.3 showed that any equational axiomatization would make the category of posets algebraic, but monotone maps do not commute with any candidate operations; more decisively, the category of posets and monotone maps fails the exactness properties of algebraic categories (Theorem 4.9): its forgetful functor to does not create the required coequalizers, as quotienting a poset by a congruence can collapse order non-freely.
Example 6.5 (Regular, not cartesian). “Every element has some inverse” for a monoid, : its models among monoids are the groups, but group homomorphisms = monoid homomorphisms between groups, and the resulting full subcategory is not closed in monoids under the constructions preserved by cartesian interpretations—concretely, a filtered colimit of monoids each of which is a group is a group, fine, but a submonoid of a group need not be a group, whereas cartesian (finite-limit) theories always have model classes closed under arbitrary submodels. Failure of closure under submodels convicts of essential use.
Example 6.6 (Coherent, not regular). The theory of fields with the geometric axiom : regular theories have model classes closed under products of models (finite limits and images pass through products), but a product of two fields is never a field ( is neither nor invertible)—so disjunction is essential.
Example 6.7 (First-order, not coherent). Torsion-free abelian groups: for all , a family of Horn sequents, is in fact cartesian; but divisible torsion-free groups pattern with sentences whose model classes fail the preservation theorems (directed-colimit and homomorphism-preservation) enjoyed by coherent theories. The model-theoretic preservation theorems thus calibrate the hierarchy exactly: each fragment corresponds to a closure property of its classes of models, a correspondence made precise by the definability theorems of categorical model theory (Makkai–Reyes; cf. [16] and [23], Part D).
7. Quantifiers as Adjoints
7.1 The Fundamental Adjunctions
Let in a category with pullbacks. Lawvere’s second great observation is that quantification along is adjoint to substitution along : For the projection , these adjunctions are exactly the natural-deduction rules for the quantifiers. The left adjunction, unwound, says: entails (no free in ) iff entails ; the right one similarly for . The eigenvariable side condition of traditional proof theory is absorbed into the statement that one is transposing across an adjunction.
Example 7.1 (In sets). For and : Direct image and its dual.
7.2 Beck–Chevalley and Frobenius
Two coherence conditions make the adjoints fit the logic.
Beck–Chevalley. Substitution must commute with quantification: syntactically, for not in . Categorically: for every pullback square one requires (and dually for ). This is the stability, under pullback, of the quantifiers.
Frobenius. The law (no in ) corresponds to In the presence of implication (right adjoints to ), Frobenius is automatic; in its absence it must be imposed.28
To summarize: interpreting a quantifier means having an adjoint to substitution, stable under pullback. The next two sections identify the categories in which the -adjoint exists for the right class of maps.
8. Regular Categories and Regular Logic
Regular logic is the fragment . It is the logic of images: the existential quantifier applied to a graph.
Definition 8.1 (Regular category). A category is regular if
has finite limits;
every kernel pair (the pullback of a morphism against itself) has a coequalizer;
regular epimorphisms (coequalizers of some parallel pair) are stable under pullback.
Equivalently (and more transparently for logic): has finite limits and pullback-stable image factorizations, i.e. every factors as a regular epi followed by a mono, , and such factorizations are preserved by pullback.29
The mono part of the factorization of is the least subobject of through which factors: the image. Existential quantification along is then and one checks: always; Beck–Chevalley holds because images are stable under pullback; Frobenius holds likewise. Thus a regular category interprets all of regular logic, soundly.
Example 8.2 (Regular categories are plentiful). is regular (images are set-theoretic images; regular epis are surjections, stable under pullback). Every presheaf category is regular (everything is computed pointwise). Every category of models of an algebraic theory—groups, rings, -modules—is regular, as is every abelian category. Every topos is regular (Part II). By contrast and are not regular: in , regular epis (quotient maps) are not stable under pullback; in , not every kernel pair even coequalizes well.30
Example 8.3 (Projective planes: regular logic in action). Statements of the form “every two distinct points lie on some line”—universally quantified implications between regular formulas, i.e. regular sequents —axiomatize a great deal of mathematics: divisibility in ordered groups, transitivity of actions, surjectivity of maps, existence of factorizations. Regular logic is precisely the fragment preserved and reflected in the calculus of relations: in a regular category, relations compose via pullback-then-image, and the associativity of this composition is equivalent to regularity.
8.1 The Calculus of Relations
Regular categories are exactly the environment for a well-behaved algebra of relations, and this gives an alternative, quantifier-free face to regular logic.31
A relation is a subobject . Given also , form the pullback of against to obtain the object of “composable pairs” , map it to , and take the image: In this is the familiar : relational composition is an image, i.e. an existential quantifier, which is why regularity (stable images) is exactly what makes composition associative. One obtains a locally ordered 2-category (indeed an allegory in Freyd’s sense) with: identities the diagonals; an order on parallel relations from ; an involution by swapping components; and meets inherited from subobjects. Morphisms of embed as the relations whose graphs are single-valued and total: , and one recovers inside as the relations with and .
Proposition 8.4 (Modular law). In for regular, all of composable shape satisfy
The modular law is the relational avatar of Frobenius reciprocity, and in fact regular categories, unitary tabular allegories, and regular theories-as-syntax are three equivalent presentations of one subject: one can define a regular category as a category whose relations form an allegory with enough structure, and regular logic as the equational theory of that allegory. Statements provable in regular logic are exactly those stable under the relational translation—a quantifier-elimination phenomenon that partly explains the fragment’s tractability for automation (§9).
Example 8.5 (Groups: images do the work). In , the image factorization of a homomorphism is the usual , and stability under pullback along any is elementary. The regular sequent (“every element is a square”) is satisfied by an internal group in any regular category iff the squaring map’s image is all of ; Beck–Chevalley guarantees this reading is stable under change of parameters, e.g. under restriction along any map of parameter objects when varies in a presheaf category (Example 3.4).
8.2 Regular Theories and their Classifying Categories
The functorial-semantics template runs as before. A regular theory is a set of regular sequents; a model in a regular category is an interpretation validating them; homomorphisms are as expected. The syntactic regular category has as objects the formulas-in-context of the fragment, and as morphisms the -provably-functional relations: regular formulas such that proves entails , that is single-valued, and that entails . Then:
is a regular category;
there is a universal model in , and for every regular , evaluation at gives an equivalence with regular (finite-limit- and regular-epi-preserving) functors on the left;
satisfaction in coincides with provability, so the calculus of regular logic is strongly complete for categorical semantics.32
Classical completeness—with respect to -models—then follows from an embedding theorem: every small regular category admits a conservative regular embedding into a presheaf category (via a regular-logic refinement of Yoneda), and evaluations are jointly faithful. Deeper representation theorems (the Barr embedding, and Deligne’s theorem in Part II) refine this pattern.
8.3 Soundness for the Regular Fragment, in Detail
To display the mechanics once at full magnification, here is the soundness argument for the two quantifier rules in a regular category , extending Theorem 6.1.33
Rule (-intro/elim as adjunction). The bidirectional rule is validated because, writing , and is exactly the interpretation of weakened into the extended context: the adjunction is the rule.
Frobenius, used tacitly. The entailment (no in ) requires , i.e. the Frobenius law. In a regular category, verify it on images: with and image factorizations as in Definition 8.1, both sides compute the image of the same composite, using stability of the factorization along the mono .
Substitution stability. Finally the substitution rule needs Beck–Chevalley: for a term , the square is a pullback, so : substituting into an existential equals existentially quantifying the substitution. All three verifications are one-line diagram chases given the standing stability hypotheses: the definition of regular category is reverse-engineered from exactly these proof obligations.
8.4 The Calculus of Relations, Revisited
Regular categories are exactly the environments supporting a well-behaved algebra of binary relations, a point worth making explicit both because it explains the axioms and because it opens the door to relational and allegorical formulations of logic.34
A relation is a subobject . In a regular category, relations compose: given , form the pullback of , obtaining an object of “matching pairs” mapping to , and let be its image: Existential quantification (the image) is exactly what the composite requires.
Proposition 8.6. In a regular category, composition of relations is associative, with the diagonals as identities; the resulting locally ordered category has an involution (transposition) and meets in each hom-poset. Moreover associativity of relational composition fails in a merely finitely complete category with images that are not pullback-stable: stability is used exactly where a quantifier must be pulled through a substitution (Beck–Chevalley).
Morphisms embed into relations via graphs, , and are characterized inside as the maps: relations with (totality) and (single-valuedness). This is the semantic counterpart of the provably-functional-relations device used to build the syntactic regular category in §8: there, syntax manufactured maps from functional relations; here, semantics recognizes them.
Example 8.7 (Equivalence relations and exactness). An internal equivalence relation on is with , , . Every kernel pair is one; a regular category is exact (Barr-exact) when, conversely, every equivalence relation is a kernel pair—i.e. every congruence has a quotient. , every variety of algebras, and every topos are exact; the category of torsion-free abelian groups is regular but not exact (the congruence “differ by an element of ” considered inside torsion-free groups has no quotient there). Exactness is invisible to the regular-logic fragment—it is a completeness property of the semantics, not an axiom of the syntax—which is why it appears in embedding theorems rather than in the deductive calculus.
9. Coherent Logic
Coherent logic extends regular logic by finite disjunction: . The corresponding categories:
Definition 9.1 (Coherent category). A regular category is coherent (older literature: a logos) if each has finite joins , and these are stable under pullback: and .35
In a coherent category the interpretation extends by , , and distributivity of over —which follows from stability—keeps the calculus sound. Coherent sequents between coherent formulas axiomatize coherent theories.
Example 9.2 (Expressive power). Many central mathematical theories are coherent: nontrivial rings (), local rings (), integral domains, fields in the “geometric” axiomatization (), linear orders, dense orders without endpoints, and any algebraic theory whatsoever. Adding infinitary disjunctions (with contexts still finite) yields geometric logic, the logic whose formulas are preserved by the inverse-image parts of geometric morphisms between toposes; torsion abelian groups () and fields of finite characteristic are geometric but not coherent.
Remark 9.3 (Why “coherent”?). The name descends from algebraic geometry: the coherent objects of a coherent topos generalize coherent sheaves, and a Grothendieck topos is coherent iff it classifies a coherent theory. Reyes’s model-theoretic reading of Grothendieck topoi [16] was an early systematic development of this connection, and Makkai–Reyes proved the corresponding conceptual completeness theorems.
9.1 Metatheory: Undecidability and Automation
Coherent sequents have a distinctive proof theory: reading as a forward-chaining rule (“from facts matching , produce witnesses and case-split”), proof search becomes a breadth-first closure procedure requiring no clausification or Skolemization, and yielding proofs that are directly readable and directly formalizable. This makes the fragment well suited to automated reasoning—expressive, yet with transparent proofs:
Bezem proved that provability in coherent logic is undecidable [17], so the fragment is no toy;
Bezem & Coquand initiated its automation [18];
Stojanović et al. built a coherent-logic geometry theorem prover producing formal and human-readable proofs [19] and designed a vernacular for coherent proofs [20];
Avigad et al. gave a formal system for Euclid’s Elements whose inferences are essentially coherent [21];
Ganesalingam & Gowers’s problem solver with human-style write-ups works in a closely related forward-reasoning regime [22].
10. Heyting Categories and Full First-Order Logic
10.1 Implication and Universal Quantification
To interpret we need right adjoints.
Definition 10.1 (Heyting category). A coherent category is a Heyting category if every pullback functor has a right adjoint . It follows that each is a Heyting algebra: a bounded lattice with an implication satisfying with negation defined as ; and that implication and are stable under pullback (Beck–Chevalley for the right adjoints).36
A Heyting category interprets full intuitionistic first-order logic soundly: all the rules of the intuitionistic sequent calculus are validated, but excluded middle and double-negation elimination generally fail, because subobject lattices are Heyting but rarely Boolean. First-order classical logic corresponds to Boolean categories: Heyting categories in which every subobject is complemented.
Example 10.2 (Presheaf categories are Heyting). Every presheaf category is a Heyting category (indeed a topos). On a presheaf , subobjects are subfunctors, and a first sighting of the Kripke clause for implication: membership at stage requires the implication to persist along all transitions into . Universal quantification carries the same relativization to later stages. We shall re-derive these formulas from the subobject classifier in Part II.
10.2 Kripke Semantics as Presheaf Semantics
The classical completeness theorem for intuitionistic logic—Kripke’s theorem that a sequent is provable iff it holds in all Kripke models over all posets—becomes, categorically, completeness with respect to models in presheaf categories over posets: a Kripke model on a poset is exactly a model in (sets varying over stages, growing along ; the forcing clauses are the pointwise formulas of Example 10.2). The two-step completeness scheme—embed the syntactic Heyting category generically, then evaluate—delivers this: the classifying Heyting category of an intuitionistic first-order theory embeds conservatively into a presheaf category over a poset.37
10.3 The Hierarchy, Assembled
We may now read the table of §6 as a tower of forgetful/free relationships between 2-categories of structured categories: cartesian regular coherent Heyting, with structure-preserving functors and all natural transformations at each level, and with each fragment’s classifying category providing a left 2-adjoint to the inclusion of “semantics” into “syntax.” The hierarchy of logics is thus a hierarchy of doctrines—the subject of the next section.
11. Interlude: The Curry–Howard–Lambek Correspondence
Before ascending to doctrines, we pause for the proof-theoretic strand promised in §6, which runs parallel to the model-theoretic hierarchy and rejoins it inside the topos.38
11.1 Cartesian Closed Categories, Again
A category is cartesian closed (a CCC) when it has finite products and exponentials: , naturally in all variables. Transposition sends to its currying ; the counit is evaluation ; and the triangle identities say exactly that which the reader should recognize, ahead of the formal statement, as the and laws of the -calculus.
11.2 The Simply Typed -Calculus
The simply typed -calculus over a set of base types has types generated by ; terms generated by variables, pairing , projections, abstraction , and application ; typing judgments derived by the evident rules; and the equational theory generated by together with the product laws. A -theory adds base constants and equational axioms.
Theorem 11.1 (Lambek, restated). The simply typed -calculus is the internal language of cartesian closed categories. Precisely: every -theory has a syntactic CCC (objects the types; morphisms the terms modulo provable equality), which classifies : CCC-functors correspond to models of in . Conversely every CCC yields a -theory (its internal language) with types the objects and constants the morphisms, and the two constructions form an equivalence between -theories and CCCs.
The correspondence is the categorical leg of the Curry–Howard triangle:
| Logic (ND for ) | Type theory | Category theory |
|---|---|---|
| proposition | type | object |
| proof of from | term | morphism |
| conjunction | product | product |
| implication | function type | exponential |
| proof normalization | -reduction | — (equality) |
| provability | inhabitation | existence of morphism |
Note the shift of dimension from Part I: there, a formula was a subobject and entailment a mere ordering; here, a proposition is an object and each proof is a distinct morphism. Categorical model theory truncates proofs to provability; categorical proof theory keeps them. The two reconcile in a topos, where a proposition may be regarded either as a subobject of (truncated) or as an arbitrary object under the propositions-as-types reading (untruncated), and where the support factorization mediates between them.
Example 11.2 (Failure of naive quantifier reading). In a CCC, is a genuine object, so higher-order functionals , Church numerals , and fixed-point-free combinatory algebra all make sense; what a bare CCC lacks is the subobject apparatus for . Full higher-order logic needs both halves—exponentials and classifier—which is precisely the topos axioms (Part II): a topos is a CCC whose proof-relevant and proof-irrelevant logics coexist.
11.3 Multicategories, Again
Shulman’s notes [5] refine the correspondence using multicategories: structures whose morphisms have finite lists of inputs, composed by grafting. A sequent with hypotheses is interpreted as a multimorphism directly—no product needed—and the cartesian structure (the ability to duplicate and discard hypotheses, i.e. contraction and weakening) becomes a property of the multicategory rather than a consequence of re-encoding contexts as products. The payoff is modularity: dropping contraction and weakening yields linear logic and monoidal categories by the same machinery, and the two-step analysis (type theory multicategory representable structure) cleanly explains why the / distinction tracks the structural rules. The syntax–structure correspondences of Part I are then two instances of a single pattern, one that covers substructural and higher-order logics as well.
12. Doctrines and Unifying Frameworks
12.1 Doctrines
The word doctrine, introduced in the wake of Lawvere’s work, names the organizing principle we have been using: a doctrine is a species of structured category, together with the functors preserving the structure—“categories with finite products,” “regular categories,” “Heyting categories,” “elementary toposes.” The term is old and useful but has never had a single fixed technical meaning.39 Several formalizations coexist:
Doctrines as 2-monads. Kelly & Street’s “Review of the elements of 2-categories” [7] develops monads in a 2-category; taking the 2-category to be , a doctrine is a (nice) 2-monad on , its algebras are the theories of the doctrine, and lax/pseudo/strict morphisms of algebras give the appropriate translations. “Categories with finite products” is the paradigm: the 2-monad freely adjoins finite products.
Doctrines as indexed posets (Lawvere doctrines). A first-order doctrine in the sense that grew out of Lawvere’s “hyperdoctrines” is a functor —think —with adjoints to reindexing modeling the quantifiers, plus Beck–Chevalley and Frobenius. This viewpoint isolates the logical superstructure over a base of contexts, and supports modern developments: Dagnino & Rosolini [9] study modalities on doctrines and show how comonads on doctrines induce the box-like operators of modal logic, with quotients and comprehension treated uniformly.
Doctrines in the physics literature. Paugam’s book on the mathematics of quantum field theory [8], Sec. 2.1, uses higher categories, doctrines, and theories as the organizing frame for the functor-of-points approach to spaces of fields.
12.2 Generalized Sketches
Ehresmann’s sketches present theories by specifying a small category together with chosen cones and cocones to be sent to limits and colimits—a graphical, universal-property-first alternative to logical syntax. Makkai’s three-part “Generalized sketches as a framework for completeness theorems” [10] widens the notion so that sketches can specify categorical doctrines themselves, especially (but not only) those based on universal properties, and equips the framework with both a model theory and a proof theory, each categorical in nature and each supporting completeness theorems.40 The framework is a natural home for structures—like the internal categories of Example 6.3—that outrun simple multi-sorted signatures.
12.3 A Unified Framework for Algebraic Notions
Beyond Lawvere theories, twentieth-century algebra produced a zoo of “theory-like” gadgets: PROs and PROPs (product-and-permutation categories presenting operations with many inputs and outputs), symmetric and nonsymmetric operads, clones, monads. Fujii’s “A unified framework for notions of algebraic theory” [11] organizes the zoo: each notion of algebraic theory embeds into a single framework (via monoid objects in suitable monoidal categories indexed by a choice of “metatheory”), morphisms of metatheories transport theories and models, and the standard constructions—categories of models, free algebras, the passage to monads—become functorial in the metatheory.41
12.4 Bridge to Part II
The top row of our table remains: higher-order logic and elementary toposes. Everything in Part I concerned predicates over objects; nothing yet allows predicates to be collected into an object of predicates. The subobject classifier does exactly this, and a category with finite limits, exponentials, and a subobject classifier—an elementary topos—is a Heyting category with enough additional structure to interpret quantification over predicates, powersets, and hence intuitionistic higher-order logic in full.
Part II. Topos Theory
13. What Is a Topos?
13.1 The Slogan and its Limits
An elementary topos can be regarded as a category that is enough like the category of sets to interpret intuitionistic higher-order logic. In this sense topos theory is a branch of categorical logic. But that is only one of several ways of thinking about what a topos is.42 At least four complementary answers circulate:
A topos is a generalized universe of sets: a place in which to do mathematics, where the ambient logic may be intuitionistic and the axiom of choice may fail.
A topos is a generalized space: the category of sheaves on a site remembers the space (indeed improves on it), and geometric morphisms generalize continuous maps.
A topos is a theory: a Grothendieck topos classifies a geometric theory, and the topos is the theory’s presentation-invariant incarnation—the higher-order analogue of the classifying categories of Part I.
A topos is an algebraic object: a cartesian closed category with a subobject classifier, studied by universal-algebraic means, localizations, and 2-categorical structure.
13.2 A Capsule History
The concept has a double origin.43 Around 1963 Lawvere set out to found mathematics on category theory, asking what makes the category of sets special purely in terms of objects and morphisms—a radical inversion of the membership-based axiomatics of set theory. In 1966 he encountered Grothendieck’s notion of topos (Greek: place), invented for algebraic geometry, where one cares not only whether a statement is true but where it is true—on which open subset two functions agree, for example. Grothendieck’s toposes are categories of sheaves on sites, conceived as places in which to do mathematics; they were introduced as the environment for the cohomology theories needed for the Weil conjectures. By 1971 Lawvere and Tierney had distilled and generalized the notion to the elementary topos: a finitary, first-order axiomatization—finite limits, exponentials, subobject classifier—encompassing Grothendieck’s examples and many more, with a notion of truth that has a general concept of space built in. Baez points to Voevodsky’s proof of Milnor’s conjecture, which uses simplicial sheaves, as a recent product of the geometric line of development.
Remark 13.1 (Against the potted history). The capsule above, like most, risks suggesting that topos theory arose by generalizing set theory. McLarty’s corrective essay “The uses and abuses of the history of topos theory”—recommended by Baez as the big-picture companion to the textbooks—argues the reverse: category theory grew out of practical problems in topology, topos theory out of Grothendieck’s geometry, Tierney’s topology, and Lawvere’s interest in the foundations of physics; important concepts rarely arise by generalizing a single earlier concept, but rather by unifying and easing a mass of earlier problems, so that honest history starts at the hardest point. He concludes, wryly, that a “more broadly falsified” history may still be the best pedagogy.44
14. Elementary Toposes: Definition and First Consequences
14.1 The Definition
Definition 14.1 (Elementary topos). An elementary topos is a category with
(A) finite limits;
(B) exponentials: for all an object with evaluation inducing natural bijections ;
(C) a subobject classifier: an object with a morphism such that for every mono there is a unique making a pullback.
Finite colimits need not be assumed: they follow from the axioms, by a theorem of Paré (the functor is monadic).45
14.2 Reading the Axioms in
In : (A) provides the empty set, singletons, products, disjoint unions, equalizers , and quotients; (B) provides function sets ; and (C) is the two-element set: taking with , functions are exactly the characteristic functions of subsets. The classifier axiom asserts, in an arbitrary , the natural correspondence making an object of truth values and making representable.46
14.3 First Consequences
Proposition 14.2. Let be an elementary topos.
Power objects. classifies relations: . The topos axioms can equivalently be phrased as: finite limits plus power objects.
Epi–mono factorization. Every morphism factors as an epi followed by a mono, stably; hence is a regular category, and in fact every epi is regular (a coequalizer of its kernel pair): is exact.
Balance. A morphism both monic and epic is an isomorphism.
Heyting structure. Each is a Heyting algebra, and pullback has both adjoints ; thus is a Heyting category and interprets first-order intuitionistic logic (Section 18).
Slices. For every , the slice is again a topos (“the fundamental theorem of topos theory”), with ; pullback along any induces a logical functor between slices. Working in is working “over a varying parameter ”.
Cartesian-closedness of slices. is locally cartesian closed; the right adjoints to pullback interpret dependent products, so the internal type theory of a topos is a full dependent type theory.
We will not prove these here—the systematic development is Mac Lane & Moerdijk [33], Ch. IV, with the logic-first route in Goldblatt [32] and the encyclopedic treatment in Johnstone [23], Part A—but each will be used below.
Remark 14.3 (The internal Heyting algebra ). The Heyting operations on every assemble, via (3) and Yoneda, into morphisms making an internal Heyting algebra—the algebra of truth values. For instance . All propositional logic in is computed by composing with these maps.
15. A Gallery of Toposes
The definition is best absorbed through examples. The following gallery is essentially Baez’s, down to his framing: different kinds of mathematicians will feel at home in different toposes.47
Example 15.1 (Sets). itself, with . Lawvere & Schanuel’s Conceptual Mathematics [29] is an elementary introduction to precisely this topos.
Example 15.2 (Finite sets). is a topos: the topos axioms are finitary, so infinity is not built in—it is an optional extra (a natural numbers object, §21). A finitist can do mathematics here.
Example 15.3 (-sets). For a group , the category of -actions and equivariant maps is a topos: if is the symmetry group of one’s universe, one may work only with symmetric sets and symmetric functions. Here with trivial action; but exponentials are subtler: is the set of all functions with acting by conjugation, , so that the fixed points of are the equivariant maps.
Example 15.4 (Presheaves). For any small category , the functor category is a topos (Section 16). Special cases: -sets ( a one-object groupoid); directed graphs ( generated by two parallel arrows); simplicial sets ( the category of nonempty finite total orders), beloved of algebraic topologists and, increasingly, of physicists; and time-dependent sets, presheaves on a linear order of times, where an element’s set of avatars can grow and elements can become identified as time passes.
Example 15.5 (Sheaves). For a topological space , the category of sheaves on ; more generally for any site (Section 17). These are the Grothendieck toposes, the original examples, engineered for the Weil conjectures; simplicial sheaves powered Voevodsky’s proof of Milnor’s conjecture.
Example 15.6 (The effective topos). Hyland’s effective topos has as its ambient logic computable mathematics: crudely, everything in sight is effectively constructible and all functions are computable. It is an elementary topos that is not a Grothendieck topos—evidence that the Lawvere–Tierney axioms genuinely widen the field.
Example 15.7 (Smooth toposes). The smooth toposes of synthetic differential geometry (Lawvere, Kock; built from the -rings of Example 4.6) contain a line object with nonzero nilpotent infinitesimals: is not , and every function is smooth, with derivative defined by for . Infinitesimal calculations of the kind physicists do informally become literally correct here. The price is intuitionistic logic: , yet has no element provably distinct from , which is only consistent because excluded middle fails.
Slogan 15.8. There are lots of toposes; one can hand-craft them to one’s specific needs.
The slogan is Baez’s; Blechschmidt’s “custom-tailored mathematical universes” [27], taken up in §21, develop it into a working method. One chooses the topos so that the mathematics of interest becomes native to it.
15.1 The Classifier Across the Gallery
We tabulate , and with it the flavor of truth, across the examples so far:
| Topos | truth value of “” | |
|---|---|---|
| , | yes/no | |
| – | , trivial action | yes/no, invariantly |
| – (evolutive) | steps until membership | |
| graphs | vertices, edges | how much of the figure is in |
| largest open where true | ||
| (Sierpiński) | linear values | now / later / never |
Reading the table, the classifier is a precise record of what kind of partiality the topos tolerates: symmetry classes, time to arrival, incidence, locality. Baez’s dictum that there is a topos for one’s specific needs (§15) can be sharpened: choosing a topos is choosing an , i.e. choosing what shall count as a degree of truth.
16. Presheaf Toposes and Generic Figures
Presheaf toposes deserve a section of their own: they are combinatorial, fully computable, and already exhibit almost every phenomenon that separates toposes from . This is the pedagogical thesis of Reyes–Reyes–Zolfaghari’s Generic figures and their glueings [30], a book that bridges Conceptual Mathematics and Mac Lane–Moerdijk: it introduces topos theory through presheaf toposes, viewed as categories of objects glued from “generic figures,” with a running cast of easily visualized examples.48
16.1 -Sets and their Figures
Fix a small category . A -set (presheaf) is a functor ; write for the action of on . By Yoneda, so elements of at stage are the same as maps from the representable : the representables are the generic figures, and an arbitrary -set is a colimit of representables—a glueing of figures along the incidence relations encoded by . All limits and colimits are computed pointwise; exponentials are given by the Yoneda-forced formula and the subobject classifier by sieves, as follows.
Definition 16.1 (Sieves). A sieve on is a set of morphisms with codomain closed under precomposition: and composable imply . The assignment is a presheaf, and classifies subobjects: for a subfunctor, the characteristic map is the sieve of all transitions that carry into . A truth value at stage thus records the ways an element can come to belong to under restriction.
16.2 The Heyting Operations on Sieves
The internal propositional connectives of can be computed directly on sieves, and the formulas repay study: they are the Kripke clauses of §19 in embryo. For sieves on :49 Meets and joins are computed pointwise, but implication is not: a transition belongs to only if the implication -to- persists under all further transitions . The quantification over the future is forced by the requirement that be a sieve—closed under precomposition—and it is the exact algebraic reason presheaf logic is intuitionistic: need not contain even when computed with the displayed .
Example 16.2 (Truth values of the graph classifier, revisited). For the graph base category and the five edge-stage truth values of the next subsection, the reader can check from the formulas above, e.g.: ; ; ; ; hence , an edge-level double-negation gap that will reappear as the failure of decidability in §19.
16.3 The Topos of Graphs, Worked in Detail
Let be the category with two objects and two nonidentity arrows .50 A presheaf on is a pair of sets with two maps : a directed multigraph, with the vertices, the edges, and the actions of giving source and target. The generic figures are (a single vertex) and (a single edge with its two, possibly distinct, endpoints); every graph is a glueing of copies of these along incidence.
The classifier. Sieves on : either all of ’s sieve or empty—two truth values for vertices, . Sieves on : a sieve may contain (hence everything), or any subset of ; so five truth values for edges. As a graph, has two vertices ( and ) and five edges: the classifying graph Given a subgraph , the classifying map sends a vertex to or according to membership, and an edge to the record of how much of lies in : the edge itself (); both endpoints but not the edge (); only its source (); only its target (); or nothing ().
Failure of classicality, concretely. Let be a single edge and the subgraph . Then (the largest subgraph disjoint from ) is : the edge is excluded because its source lies in . Hence … but now take ’s two endpoints: , so . Double negation is a closure operator, not the identity: the internal logic of graphs is non-Boolean, and the picture shows exactly why—an edge cannot be separated from its endpoints.
16.4 Bi-Heyting Structure: The Two Negations
In a presheaf topos every subobject lattice is not only a Heyting algebra but a co-Heyting algebra as well: joins have a left-adjoint-like “subtraction” with making bi-Heyting. Consequently there are two negations: In the two coincide; in graphs they diverge. For the single-edge graph and : as above, while minus nothing that can be removed—the edge must stay (to cover ) and drags both endpoints with it. In general , the discrepancy measuring the boundary of . Reyes and collaborators build modal operators by iterating combinations of the two negations, and argue in “The non-boolean logic of natural language negation” [31] that natural-language negation tracks the co-Heyting rather than the Heyting : the negation of a predicate keeps its presuppositional boundary, as does and does not.51
16.5 Dynamical Systems and Other Small Presheaf Toposes
Two more base categories from the Reyes–Reyes–Zolfaghari cast—monoid actions and “bouquets”—show how much variety two or three arrows can generate.52
Example 16.3 (-sets and evolutive sets). For a monoid , presheaves on the one-object category are right -sets: a set with an action satisfying the monoid laws. For , an -set is a set with a single self-map: a discrete-time dynamical system (“evolutive set”), morphisms being maps commuting with the dynamics. The subobject classifier of -sets has as elements the right ideals of (the sieves on the unique object); for these are and the up-sets , so with the action : the truth value of “ eventually enters ” is how many steps remain until it does. Unlike graphs, the topos of evolutive sets has a non-two-valued but linear only when the monoid forces it; for -sets yet the topos is far from Boolean—the classifier above has infinitely many global truth values at the unique stage.
Example 16.4 (Reflexive graphs). Adding to the graph base category two arrows exhibiting a chosen loop-at-each-vertex (a section of both and ) yields reflexive graphs. The change looks cosmetic but is not: the terminal reflexive graph’s loop is degenerate rather than structural, the classifier drops from five edge-truth-values to a different lattice, and homotopy-like behavior appears (the interval object becomes an edge with distinguished degeneracies)—a first step on the ladder toward simplicial sets, whose base adds all finite ordered stages at once.
16.6 Points of a Presheaf Topos
A point of (geometric morphism from ; §20) corresponds, by Diaconescu’s other theorem, to a flat functor —one whose category of elements is cofiltered—with the inverse image given by the tensor . For the graph base category, flatness works out to: a point is a choice of “way of looking at a graph through one figure at a time,” and the two obvious points are evaluation-at- and evaluation-at-; these are jointly faithful and jointly conservative, which is why graph-theoretic statements can be checked on vertices and edges separately. For -sets the points are the flat -sets; for evolutive sets, evaluation at the unique stage. Presheaf toposes thus have enough points, all of an essentially combinatorial nature.
16.7 Exponentials of Graphs, Computed
The exponential formula becomes concrete, and instructive, for graphs. Vertices of are graph morphisms . Now is the vertex part of : all vertices, no edges. So a vertex of is any function from vertices of to vertices of —no edge-preservation required. Edges of are morphisms ; unwinding, consists of two disjoint copies of the vertices of (the source copy and target copy) together with, for every edge of , an edge from its source in the source copy to its target in the target copy. An edge of from vertex-function to vertex-function is therefore an assignment sending each edge of to an edge of .
Thus is a graph whose vertices are arbitrary vertex-maps and whose edges are “edge-maps between possibly different vertex-maps”: graph homomorphisms appear not as the vertices of but as its loops—an edge from to covering it. The global points , since is the single loop, likewise pick out the honest homomorphisms. This generalizes the -set phenomenon of Example 15.3: in a presheaf topos, the function object must contain enough “unnatural” would-be morphisms for the adjunction to hold, and the genuinely structure-preserving ones are recovered as the fixed or looped elements.53
16.8 Evolutive Sets: Presheaves as Time
A second running example of [30]: take , or any linear order of instants. A presheaf on —equivalently a copresheaf, sets evolving forward—assigns to each instant a set and to each passage a transition : an evolutive set, in which elements may merge (transitions need not be injective) and may be born (need not be surjective). The truth values at instant are the sieves on , i.e. the up-closed sets of later instants: a truth value is a time of becoming true—true now, true from tomorrow, true eventually-at-, never true. Negation reads “will never be true from any accessible future,” so says that remains possible at every future instant—which is clearly weaker than being true now, and this is exactly how fails. The double-negation topology of §17 forces exactly the “eventually constant” sheaves, Kostecki [28] uses this example to motivate the stage-dependent reading of presheaf semantics; it is also the simplest nontrivial Kripke frame, making §19 computable by hand.
17. Sheaves and Grothendieck Toposes
17.1 From Spaces to Sites
Let be a topological space. A presheaf on is a presheaf on the poset of opens; a sheaf is a presheaf satisfying the glueing condition: for every open cover , a family of sections agreeing on overlaps glues to a unique . Continuous functions, smooth functions, sections of a bundle: the fundamental objects of geometry are sheaves, and is a topos.
Grothendieck’s generalization replaces by any small category equipped with a Grothendieck topology : an assignment to each object of a collection of covering sieves, required to contain the maximal sieve, to be stable under pullback, and to satisfy a transitivity (local character) axiom. The pair is a site, and is the full subcategory of presheaves satisfying descent for covering sieves. A Grothendieck topos is a category equivalent to some .
Theorem 17.1 (Basic facts). is an elementary topos, and the inclusion has a finite-limit-preserving left adjoint (sheafification). Conversely (Giraud’s theorem), a category is a Grothendieck topos iff it is a cocomplete, well-powered exact category with disjoint stable coproducts and a small generating set.54
The subobject classifier of refines the sieve formula: is the set of -closed sieves on , a sieve being closed when any that is “covered into” already belongs to . For this specializes to: , and the truth value of a statement is literally the largest open set on which it holds—Grothendieck’s “where is it true?” made formal.
Construction 17.2 (Sheafification via the plus construction). The reflector admits a two-step description. For a presheaf define the colimit over covering sieves (ordered by reverse inclusion) of compatible families indexed by the sieve: an element of is a matching family on some cover, two being identified when they agree on a common refinement. Then is separated for any ; is a sheaf whenever is separated; hence , with the finite-limit-preservation of visible because filtered colimits and limits of the relevant finite shapes commute in . The construction is Grothendieck’s original one, and its two-step rhythm—first quotient away local disagreement, then adjoin local data—is the same rhythm as the – and -clauses of Kripke–Joyal semantics (§19): sheafification is the semantic closure of a presheaf under locally-true membership.
17.2 Lawvere–Tierney Topologies
The elementary-topos abstraction of a Grothendieck topology is internal: a Lawvere–Tierney topology on a topos is a morphism with an internal closure/modal operator (“it is locally the case that”). Each determines a closure of subobjects , a notion of -dense mono, and a subtopos of -sheaves, again with finite-limit-preserving reflector. On a presheaf topos, Lawvere–Tierney topologies correspond exactly to Grothendieck topologies on the base; but the notion applies to any topos, and two special cases matter for logic:
the double-negation topology , whose sheaves form the largest Boolean subtopos , which is where classical logic reappears; it is used in the topos-theoretic independence proofs (Cohen forcing = sheaves for a -like topology on a poset of conditions);
open and closed topologies induced by a truth value , giving the open and closed subtoposes into which decomposes.
Remark 17.3 (Modal reading). A Lawvere–Tierney satisfies exactly the laws of a “lax” modality: is not required, but is inflationary on the order, idempotent, and meet-preserving. The geometric reading “locally ” and the logical reading “ modulo -negligible information” coincide; the co-Heyting boundary operators of §16.4 give a different, non-idempotent family of modalities, so any presheaf topos carries a large supply of modal operators of both kinds.
18. The Internal Logic I: The Mitchell–Bénabou Language
18.1 Formulas as Morphisms to
Part I interpreted logic about a category from outside. A topos supports a slicker, self-contained idiom: since , predicates are morphisms into , and the whole apparatus of Part I can be internalized as a typed language whose types and terms are the objects and morphisms of . This is the Mitchell–Bénabou language of .55
The language has:
types: the objects of , closed under , , and ;
terms: built from typed variables by pairing, projection, application, -abstraction, and the morphisms of as function symbols; a term of type with free variables of types denotes a morphism ;
formulas: terms of type . Atomic formulas include (denoting ) and for of type (denoting evaluation composed with the membership relation ); compound formulas are formed by composing with the internal Heyting operations on ; and quantified formulas , are formed by applying the adjoints to the subobject denoted by and reconverting to characteristic morphisms.
Thus every formula has an extension , and a sequent holds in when the extension of is contained in that of . A formula is true when its extension is the whole product—equivalently, when factors through .
18.2 What the Language Is for
The point is expressive economy: one reasons about the objects of an arbitrary topos as if they were sets, writing element-wise definitions and proofs, provided one reasons intuitionistically. Three illustrations:
Example 18.1 (Internal definitions). “The object is inhabited” is the formula ; its truth is a weaker condition than the existence of a global point (in graphs: the single-edge graph with distinct endpoints has no global point—a global point is a loop— yet is internally inhabited). “ is epi” is the truth of . “ is decidable” is the truth of ; in graphs, decidable objects are exactly the edgeless graphs—equality of edges cannot be decided at vertex stages.
Example 18.2 (Internal algebra). A group in (Part I) is the same as a model, in the Mitchell–Bénabou language, of the usual first-order group axioms; an internal ring, module, poset, or local ring likewise. Theorems of intuitionistic algebra then hold automatically for all such internal structures in all toposes at once; this is what drives the applications of §21.
Example 18.3 (Higher-order statements). Because is a type, induction (“every inhabited subobject of with and closed under successor is all of ”), completeness of orders, and topological statements are all first-class formulas. The internal language of a topos is full intuitionistic higher-order logic (HOL), and conversely every HOL theory generates a syntactic topos—the higher-order classifying category, completing the tower of Part I.
19. The Internal Logic II: Kripke–Joyal Semantics
19.1 Forcing
The Mitchell–Bénabou language says what formulas denote; Kripke–Joyal semantics says how to compute whether they hold, by unwinding extensions stage by stage. For a formula with of type , an object , and a generalized element , define i.e. factors through the extension of . The forcing relation obeys two structural laws—monotonicity (if and then ) and local character (if is jointly epic and for all , then )—and is computed by structural recursion:56 Truth of is with the generic (identity) element. Note where the intuitionism lives: disjunction and existence hold only locally—after passing to a cover—and implication and universal quantification must be stable—they quantify over all later stages.
19.2 Specializations
Example 19.1 (Presheaves: Kripke semantics recovered). In it suffices to force at representable stages , where by Yoneda a generalized element is just , and morphisms of stages are morphisms of . The clauses become: iff for all , implies ; and iff a witness exists at itself (representables have no nontrivial epic covers by representables in general, but in presheaf toposes existence at a stage reduces to elementwise existence). Over a poset this is verbatim Kripke’s semantics for intuitionistic predicate logic, with -models as the possible-worlds picture: Part I’s Example 10.2 and completeness discussion are the special case.57
Example 19.2 (Sheaves: local truth). In , stages may be taken to be opens , jointly epic families are open covers, and the clauses read exactly as “locally on a cover”: iff some open cover of admits local witnesses. This is why nontrivial sheaf toposes validate statements like “every locally constant function is constant” only locally, and why internal existence of, say, roots of polynomials can hold without global sections providing them.
Example 19.3 (Graphs, once more). In the topos of graphs, take the single-edge graph with endpoints and decidability-at-. At the vertex stage all is well; at the edge stage , the generic edge satisfies neither nor its negation after restriction, and no epic family of graph morphisms can separate the cases: fails, matching the failure of decidability computed via in §16. The forcing calculus and the sieve calculus always agree—they are two notations for the same subobject.
Example 19.4 (-sets: forcing is invariance). In the terminal object has no proper covers, and forcing at with generalized elements from the regular representation recovers a classical-looking but symmetry-constrained logic: the topos is Boolean (Example 15.3), so the and clauses collapse to their pointwise readings, yet AC fails (§21) because the witnesses demanded by the -clause must be produced equivariantly: an epi of -sets forces internal surjectivity, while a splitting would be a -equivariant section, which the orbit structure may forbid.
Example 19.5 (Sheaves on Sierpiński space). Let with opens (Sierpiński space). A sheaf is a restriction map ; the topos is equivalent to , sets over a map. The truth values are : three-valued logic, linearly ordered. For a mono of sheaves, can hold with the witness existing only over and merely locally over ; and says ’s germ near the open point lies in —double negation is “true on a dense open,” the -topology of §17 in its smallest nontrivial instance.
19.3 Soundness, Completeness, and Use
Kripke–Joyal semantics is sound and complete for the internal logic: a sequent holds in iff it is forced at every stage—this is just the definition unwound—and the internal logic itself is sound for intuitionistic higher-order deduction. The working consequence:
Slogan 19.6. To prove that a statement holds in a topos, prove it constructively about elements; the forcing clauses then interpret the proof at every stage automatically.
This transfer principle is used constantly in the applications of §21.
19.4 Two Worked Applications of Forcing
Example 19.7 (Diaconescu: choice implies excluded middle). The internal language turns Diaconescu’s theorem into a short constructive argument, valid in any topos. Let be any proposition (truth value); consider the two subobjects of a two-element set : Both are inhabited (, ), so the evident epimorphism from onto the (internal, two-element) set of the pair admits, by AC, a section choosing an element of each. Now means , and means ; distributing, either holds, or —in which case , hence (for if held, ; here decidable equality of is used). So . Read through Kripke–Joyal, the argument shows: a topos in which every epi splits forces excluded middle at every stage, i.e. is Boolean—and contrapositively, the topos of graphs, being non-Boolean (§16), cannot satisfy choice, an instance of which is visible directly: the double-vertex edge admits an epi from two disjoint loops with no splitting. 58
Example 19.8 (Real numbers vary with the topos). Internal and are rigid: in they are the constant sheaves. The real numbers are not. Interpreting the Dedekind-cut construction in the internal language of —a real is a pair of inhabited, open, located subsets of —and computing with the forcing clauses, one finds that the sheaf of Dedekind reals is the sheaf of continuous real-valued functions: a “real number” in the universe of sheaves over is a real number varying continuously over . (The Cauchy construction, by contrast, yields only the locally constant functions: in intuitionistic logic the two constructions genuinely diverge, and the topos exhibits the divergence.) This single computation is the seed of the “custom-tailored universes” method of §21: internal theorems of constructive analysis, e.g. that every function with a certain modulus is integrable, externalize to uniform, parametrized statements about continuous families—with continuity obtained for free rather than proved by hand.59
20. Geometric Morphisms
20.1 Definition and Provenance
Toposes form a 2-category, in two inequivalent ways. Logical functors preserve all the elementary structure (finite limits, exponentials, )—the right notion for the “topos as theory of sets” reading. Geometric morphisms track the geometry:
Definition 20.1. A geometric morphism is an adjoint pair with (the inverse image) preserving finite limits; is the direct image. A point of is a geometric morphism .
The paradigm: a continuous map of spaces induces between and , and for sober spaces every geometric morphism arises so; points of recover the points of . Likewise sheafification exhibits as a geometric embedding, and every Grothendieck topos sits so inside a presheaf topos. Kostecki’s introduction emphasizes the resulting two-level variability: objects of a presheaf topos are structures varying over internal stages, and geometric morphisms let entire theories be transported between toposes, each topos giving the theory its own interpretation.60
20.2 Inverse Images Preserve Geometric Logic
Because preserves finite limits and (being a left adjoint) all colimits, it preserves exactly the ingredients of geometric logic: . It need not preserve . This is the structural explanation of the privileged status of geometric theories announced in §9: models of a geometric theory transport along inverse images, so each geometric theory has a classifying topos with naturally—the higher-order terminus of the classifying-category tower of Part I. The object classifier (presheaves on ), the ring classifier (presheaves on finitely presented rings), and the local-ring classifier (the Zariski topos) are the standard first examples; the last returns the story to Grothendieck’s algebraic geometry.
20.3 Classifying Toposes, Worked a Little
The correspondence unwinds in two cases.
Example 20.2 (The object classifier). Take the empty (one-sort, no-axiom) theory. A model in any topos is an object, so must satisfy . The answer is presheaves on finite sets, : by Diaconescu’s correspondence plus the fact that finite-limit-preserving = flat here, geometric morphisms into it are filtered-colimit-friendly functors out of —and is the free finite-limit completion of a point, dual to the free finite-coproduct category on one object met in Part I as the syntactic category of the empty theory. The generic object is the inclusion .
Example 20.3 (Rings and local rings). For the algebraic theory of commutative rings, models correspond to left-exact colimit-preserving functors out of presheaves on —so , with generic ring the forgetful functor. Imposing the local-ring axioms of Example 9.2—coherent sequents—corresponds to imposing a Grothendieck topology (the Zariski topology) on the same base: the classifying topos of local rings is the Zariski topos, and the generic local ring is the structure sheaf of the “big” Zariski site. Quotient theories = subtoposes = Lawvere–Tierney topologies, exactly as promised; and the internal-language method of §21 applied to the generic model proves theorems about all models at once, the topos-level restatement of the genericity (1) with which Part I began.
Remark 20.4 (Surjections, embeddings, and the two theorems). Every geometric morphism factors as a surjection followed by an embedding; embeddings correspond to Lawvere–Tierney topologies on the codomain, i.e. to quotient theories. Two classical depth results anchor the model theory: Deligne’s theorem (a coherent topos has enough points) is, in logical dress, Gödel’s completeness theorem for coherent logic; Barr’s theorem (every Grothendieck topos is covered by one satisfying choice, with Boolean logic) licenses the elimination of classical reasoning from proofs of geometric sequents. Both belong to the “toposes as theories” part of the Elephant [23], Part D.
Remark 20.5 (The shape of the 2-category). Two factorization systems organize . Every geometric morphism factors as a surjection followed by an embedding (inclusion of a subtopos), as noted; independently, as a hyperconnected morphism followed by a localic one. A topos is localic (over ) when generated by subobjects of —equivalently, equivalent to sheaves on a locale, its frame of opens being ; localic toposes are the faithful categorical avatars of (point-free) spaces. Hyperconnected morphisms, at the other extreme, have inverse images that are full and faithful on subobjects: they change “stuff” but not “truth values.” The factorization says every topos over is a hyperconnected extension of an honest (point-free) space—a precise measure of how far toposes exceed topology, with -sets (localic reflection trivial, all hyperconnected) and (all localic) as the two poles.
21. Toposes as Mathematical Universes
21.1 Set-Like Structure: NNO, Choice, Booleanness
How much of set theory does a topos support? The elementary axioms give pairing, powersets (), function spaces, and comprehension (extensions of formulas). The remaining classical commitments become optional axioms, each with a clean categorical form:
Infinity. A natural numbers object is , initial among such data: for any , there is a unique recursion map . and have NNOs (constant presheaf ); does not—infinity is a feature one adds, not part of the notion of topos.
Excluded middle. is Boolean when is an internal Boolean algebra (equivalently every subobject is complemented; equivalently ). , , -sets are Boolean; graphs and almost all sheaf toposes are not.
Choice. satisfies AC when every epi splits. AC implies Booleanness (Diaconescu’s theorem: choice yields excluded middle), and fails already in -sets for nontrivial (the epi has no equivariant splitting) and in sheaves over most spaces (no continuous choice of local sections).
Two-valuedness and well-pointedness. may be large ( in : the truth values are the opens); a topos is two-valued when and well-pointed when generates. Well-pointed toposes with NNO and AC are exactly the models of Lawvere’s Elementary Theory of the Category of Sets (ETCS), a structural set theory of strength just below ZF; adding replacement-style axioms calibrates the gap.61
21.2 Arithmetic from the NNO
The NNO’s universal property is precisely primitive recursion at higher types, and here is how ordinary arithmetic falls out. Given the data , , define addition by recursion in the second argument: the maps and exhibit as a recursion-algebra, and currying the unique mediating map gives with these equations holding as identities of morphisms, hence internally with full generality. Multiplication and exponentiation iterate the trick. Induction is then a theorem of the internal logic: for a subobject containing and closed under , the universal property applied to ’s own zero-and-successor data produces a section of the inclusion, forcing . Peano arithmetic (in its higher-order, categorical form) thus holds in any topos with NNO—with the caveat that the ambient logic is intuitionistic, so e.g. trichotomy for the internal integers holds but analogous statements for the internal reals of the next subsection do not.
21.3 Diaconescu’s Argument, and Internal Number Systems
Theorem 21.1 (Diaconescu). A topos satisfying the axiom of choice is Boolean.
Proof sketch. Fix a truth value ; we produce its complement. Consider the two-element quotient: internally, form the set where identifies iff holds. The evident surjection splits by AC; a splitting selects representatives , and equality in is decidable, so internally either —which forces —or —which forces , since would identify the classes. Hence holds; as was arbitrary, is Boolean. The argument is fully constructive in the metatheory and formalizes verbatim in the internal language; its moral is that choice smuggles in case-analysis.62
Internal number systems. With an NNO , the internal integers and rationals are constructed as in constructive set theory (quotients of , etc.), uniquely up to isomorphism. The reals bifurcate: Cauchy reals (equivalence classes of internal Cauchy sequences) and Dedekind reals (two-sided cuts in ) agree in but not in general—in the Dedekind reals are the sheaf of continuous real-valued functions on : real analysis internal to is automatically parametrized real analysis, a first instance of the tailoring theme of the next subsection. Internal completeness, Heine–Borel, and the intermediate value theorem then hold or fail according to the constructive status of their proofs—IVT, whose usual proof uses undecidable case-splitting on the sign of , fails sheaf-internally in general, while its approximate version survives.
21.4 Custom-Tailored Universes
Blechschmidt’s survey “Exploring mathematical objects from custom-tailored mathematical universes” [27] distills the working method that the internal language makes possible.63 Each topos is a universe with its own ambient assumptions: the effective topos, where all functions are computable; smooth toposes, where infinitesimals exist and all functions are smooth; sheaf toposes over a space, where everything varies continuously over that space. The method:
choose or build a topos whose native objects are the structures of interest (e.g. for a scheme or space , with the structure sheaf a native ring);
prove theorems inside constructively, treating those objects as bare sets/rings/modules;
translate outward through Kripke–Joyal (Slogan 19.6): a constructive theorem about the internal ring becomes, externally, a theorem about the sheaf, often one whose direct proof would require delicate glueing or finiteness bookkeeping. Blechschmidt’s flagship examples are of this shape: e.g. internal one-line arguments specializing to Grothendieck-style generic freeness over reduced schemes.
Two refinements complete the toolkit. First, the choice of topos can encode hypotheses: passing to or to Barr covers (§20) adjusts the ambient logic. Second, the failure of classical axioms is a feature: that the smooth topos refutes -style classicality is exactly what permits honest nilpotent infinitesimals; that the effective topos refutes “every function is dominated by a computable one”-negations is what makes it a universe of computability.
21.5 Forcing, Classically: Independence via -Sheaves
The Lawvere–Tierney machinery reproduces Cohen’s independence proofs in a form that is one of the subject’s founding applications.64 To violate the continuum hypothesis: take the poset of finite partial functions (Cohen conditions) for a suitably large cardinal, form the presheaf topos , and pass to the Boolean subtopos of double-negation sheaves. The result is a Boolean topos with choice in which the generic function forces ; cutting down to a well-pointed model (or reading the construction as Boolean-valued sets) yields the classical independence of CH from ZFC. The conceptual gain over the classical presentation: the “forcing language” is the internal language, the “forcing relation” is Kripke–Joyal, and the passage to -sheaves is the standard subtopos machinery of §17—no new metamathematics, only a change of universe. Independence proofs thus join synthetic differential geometry and computability as instances of the single method of this section: choose the topos in which the desired phenomenon is generic.
21.6 The Higher-Order Classifying Correspondence
The two parts of these notes fit together as follows. Part I: a theory in a fragment of first-order logic generates a classifying category in the matching doctrine, and models are structure-preserving functors out of it. Part II: an intuitionistic higher-order theory generates a syntactic topos, its universal model living inside; conversely every topos is the classifying topos of its own internal theory. Sound and complete rules for the internal logic are those of intuitionistic HOL; Booleanness, choice, infinity are optional axioms locating within the space of all universes. Functorial semantics, which began with one-sorted equational logic, extends all the way up.65
22. A Guide to the Literature
22.1 Topos Theory, in Increasing Order of Difficulty
A rough order of increasing difficulty; the one-line characterizations follow Baez’s reading advice.66
Lawvere & Schanuel [29]: elementary introduction to the topos of sets; deceptively gentle—Baez passes on Schanuel’s warning that skipping the exercises makes the later chapters impossible.
Reyes, Reyes & Zolfaghari [30]: combinatorial (presheaf) toposes via generic figures and glueings; the missing link before the graduate texts; six running examples, including the graphs of §16; Sec. 9.1 for the two negations.
Goldblatt [32]: same level, logic-first; starts from scratch with categories; criticized by experts as showing what toposes illuminate rather than what they can do, which is precisely what a beginner wants.
Mac Lane & Moerdijk [33]: the standard graduate text, broad and deep, unifying the geometric and logical lineages; Secs. VI.5–VI.6 for the internal language and forcing.
Johnstone [23]: the Elephant, “the bible of topos theory”—two of three projected volumes published, roughly 1200 pages, organized by the perspectives of §13; sequel to the 1977 Topos Theory [24], long the key text and famously unforgiving.
Shorter on-ramps: Baez’s nutshell [25] and eight Azimuth lectures [26]; Kostecki’s guided tour [28]; Blechschmidt’s survey [27] for the universes-and-applications viewpoint.
22.2 Categorical Logic
Start with Awodey & Bauer [4] (algebraic theories and first-order fragments, the backbone of Part I), then Shulman [5] for the type-theoretic, multicategorical development; Abramsky & Tzevelekos [2] for a compact introduction from the computer-science side; Bell [1] for history; and Johnstone [23], Parts A and D, as the reference of record. For the regular and coherent fragments specifically: van Oosten [12], Butz [13], Gran [14], Borceux [15], and Reyes [16]. For the organizing frameworks: Kock & Reyes [6], Kelly & Street [7], Dagnino & Rosolini [9], Paugam [8], Makkai [10], and Fujii [11].
23. Exercises
The following exercises track the text; those marked require material from the cited sources beyond what is developed here.
23.1 Part I
Verify that the two-pullbacks lemma (Lemma 2.1) makes a functor , checking independence of the choice of pullbacks.
Show that in , with the formulas of §7, and verify Beck–Chevalley and Frobenius by direct computation.
Write out the theory of a single idempotent endomorphism () and describe its syntactic category and its category of -models. What are the finitely generated free models?
Prove that the category of fields has neither products nor a terminal object, and locate exactly which limits exist. Conclude again (Example 4.10) that fields are not algebraic, and determine which fragment of §6’s table first suffices to axiomatize them.
Show that a poset in the topos of graphs is a graph whose vertex-set and edge-set each carry a poset structure compatibly with source and target, and characterize reflexivity internally.
In a regular category, prove that the composition of relations (§8.1) is associative, indicating precisely where pullback-stability of images is used.
() Following [4], Sec. 2.5, construct the classifying regular category of the theory of a surjection between two sorts, and identify its universal model.
Show that in any coherent category, distributes over in every , using stability of joins.
Verify the Kripke clause for in Example 10.2 directly from the adjunction computed pointwise-with-restrictions.
() Using [5], formulate the theory of a monoid in a symmetric monoidal multicategory and identify the extra structural rules needed to specialize it to the cartesian theory of monoids of §3.
23.2 Part II
Verify in detail that the five sieves on listed in §16 exhaust the sieves, that the stated graph structure on is forced by the presheaf action, and that as defined is a graph morphism.
Compute for the topos of reflexive graphs (add an arrow with to the base category—note the direction) and compare: how many truth values do edges have?
Determine the truth values of the evolutive-set topos over (§16.8) at each instant, verify the reading of given there, and identify the -sheaves.
For -sets, show with trivial action, and conclude that – is Boolean; then exhibit the failure of AC for by finding a non-split equivariant epi.
Complete the computation of for graphs (§16.7) by describing the source and target maps of explicitly, and verify the exponential adjunction on a small example ( the single edge).
Show that the global points of in the topos of graphs are exactly and (the two loops), so that “external” truth values number two while internal ones number five at edge stage: internal and external logic diverge.
Prove monotonicity and local character of the forcing relation directly from the definition in §19.
Using the forcing clauses, verify that in the single-edge graph the formula fails at stage , and that its double negation also fails, but that holds—as it must, in any topos.
() Following [33], Ch. VI.8, carry out the identification of the Dedekind reals of with the sheaf of continuous functions for , at least at the level of the forcing clause for locatedness.
() Read the statement of Barr’s theorem in [23], Part D, and use it to justify the following practice: to prove a geometric sequent in all Grothendieck toposes, it suffices to prove it with classical logic and choice.
A. Summary Tables and Glossary
A.1 Fragments and Structures
| Structure | New operations interpreted | Key stability requirement |
|---|---|---|
| finite products | terms, equations | — |
| finite limits | meets, equalizers stable | |
| regular | (images) | regular epis pullback-stable |
| coherent | joins pullback-stable | |
| Heyting | Beck–Chevalley for | |
| topos | , , HOL | classifier: |
A.2 Glossary
- Beck–Chevalley condition
-
Commutation of quantifier-adjoints with pullback functors over pullback squares; the semantic form of “substitution commutes with quantification.”
- Classifying category/topos
-
The structured category representing the models-functor of a theory; carries the universal (generic) model.
- Doctrine
-
A species of structured category serving as the environment for a fragment of logic; formalizable as a 2-monad on , among other ways.
- Frobenius law
-
; automatic in the presence of implication.
- Generic figure
-
A representable presheaf; arbitrary presheaves are glueings of generic figures.
- Geometric morphism
-
Adjunction with left-exact inverse image; the topos-level continuous map.
- Kripke–Joyal semantics
-
The stagewise forcing computation of the internal language; specializes to Kripke and Beth semantics.
- Lawvere–Tierney topology
-
Internal closure operator ; determines a subtopos of -sheaves.
- Mitchell–Bénabou language
-
The typed higher-order internal language of a topos; formulas are morphisms to .
- Natural numbers object
-
Initial “zero-and-successor” object; the optional axiom of infinity.
- Regular category
-
Finite limits plus pullback-stable image factorizations; the environment for .
- Sieve
-
A precomposition-closed set of morphisms into an object; sieves are the truth values in presheaf toposes.
- Subobject classifier
-
representing ; the object of truth values.
B. Further Exercises
The following exercises track the text; several are adapted from the exercise streams of the sources.67
(AB) Formulate the notion of a left -set, for a fixed group , as an algebraic theory. What are the models in an arbitrary finite-product category?
(AB) Determine what a group is in: ; ; the category of graphs; and itself. (For the last: show first that two commuting monoid structures with a common unit coincide and are commutative—the Eckmann–Hilton argument—and conclude that groups in are abelian groups.)
(AB) Show that the syntactic category of an algebraic theory has all finite products, and that the universal model satisfies exactly the provable equations.
(AB) Describe the action on morphisms of the universal group of Example 3.9, and verify that terms have equal interpretations iff in the free group on generators.
Prove the two-pullbacks lemma (Lemma 2.1), and deduce that pullback along agrees with pullback along after pullback along on subobject posets.
(AB) Show that a category with finite products and pullbacks of monos along monos has all finite limits, by constructing equalizers from the pullback of against .
Verify the six generalized-element rules of §2, and use them to give element-style proofs that meets of subobjects are pullback-stable.
Show that in , is right adjoint to , and verify Beck–Chevalley for an explicit non-square pullback of your choosing.
Show that is not regular: exhibit a quotient map whose pullback fails to be a quotient map.
Prove the modular law of §8.1 in by element chasing, then in a general regular category using stable images.
Show that the category of fields has neither a terminal nor an initial object, and locate exactly which steps of Theorem 4.9 fail.
(RRZ) In the topos of graphs: compute and explicitly; verify the five-element edge stage of ; and check the bi-Heyting inequality on three subgraphs of the single-edge graph.
(RRZ) In evolutive sets (-sets): verify that the right ideals of form the classifier described in Example 16.3, compute on it, and determine for which the truth value satisfies .
Show that in – for nontrivial finite , the object with left translation has no global points, yet the unique map is epi; conclude internal inhabitation without global inhabitation, and reconcile with the Kripke–Joyal -clause.
Verify the forcing computation for graphs in §19: no jointly epic family of graph maps can decide at the edge stage.
Prove from the universal property of the NNO that as defined in §21 is associative and commutative. (Hint: uniqueness of recursion maps.)
Work out the Sierpiński-topos truth-value computation: exhibit , compute the Heyting implication table, and find a sheaf and formula witnessing local but not global existence.
Show that a Lawvere–Tierney topology gives a closure operator on each commuting with pullback, and that satisfies the three axioms.
(AB) Derive symmetry and transitivity of equality in the cartesian calculus from the substitution-of-equals rule.
Complete the proof sketch of Diaconescu’s theorem (Theorem 21.1) in the internal language, marking exactly where decidable equality of and the splitting are used.
C. Category-Theoretic Background in One Page
For reference we recall the notions used throughout; any of [4] (Appendix A), [2], or [29] supplies the details at increasing leisure.
Categories, functors, naturality. A category has objects, morphisms, associative composition, identities. A functor preserves all of it. A natural transformation assigns components commuting with every . Functor categories collect functors and natural transformations; presheaves are the case , in the exponent.
Yoneda. , , is full and faithful, and naturally. Consequences used above: representables generate; preserves limits; an object is determined by its generalized elements.
Limits and colimits. Products, equalizers, pullbacks; their duals. A category with binary products, a terminal object, and equalizers has all finite limits; a pullback of a mono is a mono. Filtered colimits commute with finite limits in .
Adjunctions. means naturally; unit and counit satisfy the triangle identities. Left adjoints preserve colimits; right adjoints preserve limits. Poset case: Galois connections. Examples on which Part I runs: free forgetful; ; ; sheafification inclusion.
Monads. An adjunction generates a monad with unit and multiplication; algebras for reconstruct (Beck) the “algebraic” part of the adjunction. Finitary monads on = Lawvere theories (Theorem 4.9).
2-categorical language. has categories, functors, and natural transformations; doctrines live here as 2-monads (§12); toposes form 2-categories under either logical functors or geometric morphisms (§20).
D. Background in Detail: Categories, Functors, Adjoints
For self-containedness we collect the background notions used throughout; any introductory text (e.g. the opening chapters of [2], [29], or [32]) covers them fully.
D.1 Categories and Functors
A category consists of objects, morphisms with assigned domain and codomain, identities, and an associative, unital composition. A functor assigns objects to objects and morphisms to morphisms preserving all the structure; a natural transformation assigns to each object a component with for every . Functors and natural transformations form the functor category . A functor is faithful/full when injective/surjective on each hom-set; an equivalence when full, faithful, and essentially surjective.
D.2 Limits and Colimits
A cone over a diagram is an object with compatible morphisms to every ; a limit is a universal cone. Special cases: terminal object ( empty), binary products, equalizers, pullbacks. Colimits are the dual: initial object, coproducts, coequalizers, pushouts. A category with finite products and equalizers has all finite limits; a functor preserves a limit when it sends universal cones to universal cones. Monomorphisms are the morphisms with ; equivalently, such that is a pullback. Epimorphisms are dual; regular epi/mono means “a coequalizer/equalizer of some pair.”
D.3 Adjunctions
An adjunction between and is a natural bijection ; equivalently unit and counit , satisfying the triangle identities. Left adjoints preserve colimits; right adjoints preserve limits. Between posets, an adjunction is a Galois connection, the form in which most of Part I’s logic lives. Examples used in the text: free forgetful (free groups, free models of any algebraic theory); (exponentials, currying); (quantifiers); sheafification inclusion; (geometric morphisms).
D.4 Yoneda
For a small category , the Yoneda embedding sends to . The Yoneda lemma states naturally; consequences used above: is full and faithful; it preserves all limits that exist; every presheaf is a colimit of representables; and universal properties determine objects up to isomorphism. The completeness proofs of §3, the generic figures of §16, and the classifier of §17 all rest on it.
J. L. Bell, 2005. The development of categorical logic. In Handbook of Philosophical Logic. doi:10.1007/1-4020-3092-4.
S. Abramsky and N. Tzevelekos, 2011. Introduction to categories and categorical logic. doi:10.1007/978-3-642-12821-9_1; arXiv:1102.1313.
V. de Paiva and A. Rodin, 2013. Elements of categorical logic: Fifty years later. doi:10.1007/s11787-013-0086-9.
S. Awodey and A. Bauer, 2019. Introduction to Categorical Logic. Lecture notes. https://awodey.github.io/catlog/.
M. Shulman, 2016. Categorical Logic from a Categorical Point of View. Lecture notes. https://mikeshulman.github.io/catlog/catlog.pdf.
A. Kock and G. E. Reyes, 1977. Doctrines in categorical logic. In Handbook of Mathematical Logic. doi:10.1016/S0049-237X(08)71104-2.
G. M. Kelly and R. Street, 1974. Review of the elements of 2-categories (Sec. 3: Monads in a 2-category). doi:10.1007/BFb0063101.
F. Paugam, 2014. Towards the Mathematics of Quantum Field Theory, Sec. 2.1: Higher categories, doctrines, and theories. Springer.
F. Dagnino and G. Rosolini, 2021. Doctrines, modalities and comonads. arXiv:2107.14031.
M. Makkai, 1997. Generalized sketches as a framework for completeness theorems, Parts I–III. doi:10.1016/S0022-4049(96)00007-2; doi:10.1016/S0022-4049(96)00008-4; doi:10.1016/S0022-4049(96)00009-6.
S. Fujii, 2019. A unified framework for notions of algebraic theory. Theory and Applications of Categories. arXiv:1904.08541.
J. van Oosten, 1995. Basic Category Theory, Sec. 4.2: The logic of regular categories. Lecture notes. https://www.staff.science.uu.nl/~ooste110/syllabi/catsmoeder.pdf.
C. Butz, 1998. Regular categories and regular logic. BRICS Lecture Series LS-98-2. https://www.brics.dk/LS/98/2/BRICS-LS-98-2.pdf.
M. Gran, 2021. An introduction to regular categories. doi:10.1007/978-3-030-84319-9_4; arXiv:2004.08964.
F. Borceux, 1994. Handbook of Categorical Algebra, Vol. 2, Ch. 2: Regular categories. Cambridge University Press.
G. E. Reyes, 1977. Sheaves and Concepts: A Model-Theoretic Interpretation of Grothendieck Topoi, Ch. II: Coherent logic. Cahiers de topologie et géométrie différentielle. https://www.numdam.org/article/CTGDC_1977__18_2_105_0.pdf.
M. Bezem, 2005. On the undecidability of coherent logic. doi:10.1007/11601548_2.
M. Bezem and T. Coquand, 2005. Automating coherent logic. doi:10.1007/11591191_18.
S. Stojanović et al., 2010. A coherent logic based geometry theorem prover capable of producing formal and readable proofs. doi:10.1007/978-3-642-25070-5_12.
S. Stojanović et al., 2014. A vernacular for coherent logic. doi:10.1007/978-3-319-08434-3_28; arXiv:1405.3391.
J. Avigad et al., 2009. A formal system for Euclid’s Elements. doi:10.1017/S1755020309990098; arXiv:0810.4315.
M. Ganesalingam and W. T. Gowers, 2013. A fully automatic problem solver with human-style output. Preprint; a revised version appeared as “A fully automatic theorem prover with human-style output,” J. Automated Reasoning 58(2):253–291, 2017. arXiv:1309.4501.
P. T. Johnstone, 2002. Sketches of an Elephant: A Topos Theory Compendium. Oxford University Press.
P. T. Johnstone, 1977. Topos Theory. Academic Press.
J. Baez, 2021. Topos theory in a nutshell. https://math.ucr.edu/home/baez/topos.html.
J. Baez, 2020. Lecture notes on topos theory, Parts 1–8. Azimuth blog. https://johncarlosbaez.wordpress.com/2020/01/05/topos-theory-part-1/.
I. Blechschmidt, 2022. Exploring mathematical objects from custom-tailored mathematical universes. doi:10.1007/978-3-030-84706-7_4; arXiv:2204.00948.
R. P. Kostecki, 2011. An introduction to topos theory. Lecture notes. https://web.archive.org/web/20220823182043/https://www.fuw.edu.pl/~kostecki/ittt.pdf.
F. W. Lawvere and S. H. Schanuel, 2009. Conceptual Mathematics, 2nd ed. Cambridge University Press. doi:10.1017/CBO9780511804199.
M. La Palme Reyes, G. E. Reyes, and H. Zolfaghari, 2004. Generic Figures and Their Glueings: A Constructive Approach to Functor Categories. Polimetrica, Monza. https://marieetgonzalo.files.wordpress.com/2004/06/generic-figures.pdf.
M. La Palme Reyes et al., 1994. The non-boolean logic of natural language negation. Philosophia Mathematica. doi:10.1093/philmat/2.1.45.
R. Goldblatt, 1984. Topoi: The Categorial Analysis of Logic. North-Holland. https://projecteuclid.org/euclid.bia/1403013939.
S. Mac Lane and I. Moerdijk, 1992. Sheaves in Geometry and Logic: A First Introduction to Topos Theory. Springer. doi:10.1007/978-1-4612-0927-0.
The distinction is drawn from de Paiva & Rodin [3], a short introduction to a special issue of Logica Universalis on categorical logic, who separate categorical model theory, based on functorial semantics, from categorical proof theory, based on the Curry–Howard–Lambek correspondence between types and terms, propositions and proofs, and objects and morphisms.↩︎
Following Shulman [5]. The idea is that a sequent with several hypotheses is most naturally interpreted as a multimorphism in a multicategory; representing the domain as a single object via or is a separate, second step. This decomposition cleanly separates the structural rules of the logic from the connectives.↩︎
The fragment names and their connective-sets follow Awodey & Bauer [4], Sec. 2.1, which lists cartesian, regular, coherent, and geometric fragments of first-order logic and notes that the names for these fragments come from the names of various categorical structures in which they are interpreted. The correspondence table itself is standard; see also Johnstone [23], Part D.↩︎
This section closely follows Awodey & Bauer [4], Sec. 2.2 (“Predicates as subobjects”), including the poset reflection of monos, the subobject functor, the interpretation of substitution as pullback, the notion of stability, and the calculus of generalized elements; all statements are rephrased and reorganized.↩︎
This section is a condensed paraphrase of Awodey & Bauer [4], Ch. 1, whose opening observes that the scope of algebraic theories is actually much greater than first appears, and which develops the syntax, semantics, syntactic category, completeness theorems, and functorial-semantics summary reproduced (in compressed form) below.↩︎
All of these examples appear in [4], Sec. 1.1, including the observation about inductive datatypes denoting free models and the semilattice trick for posets with meets.↩︎
Example and isomorphism from [4], Example 1.1.11 and Exercise 1.1.12.↩︎
The double-division presentation, the generators-and-relations analogy, and the construction below follow [4], Sec. 1.1.2.↩︎
Theorem, proof strategy, and the universal property below follow [4], Prop. 1.1.16 and Def. 1.1.18: given a model , the classifying functor sends to and a tuple of terms to the tuple of their interpretations; conversely an FP-functor yields the model , and natural transformations correspond to homomorphisms.↩︎
Following [4], Prop. 1.1.24 and Prop. 1.1.27. The same two-step scheme—generic model by Yoneda, then classical completeness by evaluating pointwise—is the template for the Kripke-style completeness theorems of richer fragments.↩︎
The two four-part lists paraphrase the summary in [4], Sec. 1.1.5.↩︎
This subsection compresses [4], Sec. 1.2.1, including the theorem, the reconstruction of syntax inside semantics, and the three worked examples below.↩︎
Examples from [4], Sec. 1.2.2: the theory of smooth maps and its models the -rings; the theory of recursive functions; and the total theory of an object.↩︎
Statement following [4], Thm. 1.2.18; the equivalence with (3) is via Beck’s monadicity theorem, and [4] also records Borceux’s variant characterization [15] (coequalizers and kernel pairs; with a left adjoint, preserving filtered colimits and regular epimorphisms, reflecting isomorphisms).↩︎
Following [4], Sec. 1.2.4, Prop. 1.2.24, Cor. 1.2.25, and Remark 1.2.29, which credits the full syntax–semantics duality for algebraic categories to the literature on Cauchy-complete theories.↩︎
This section draws on two introductions to this material: Abramsky & Tzevelekos [2], whose Sec. 1.5 develops cartesian closed categories and the -calculus for a computer-science audience, and Shulman [5], Chs. 1–2, for the unary/simple type theories and the multicategorical refinement sketched at the end. The presentation here is compressed and rearranged.↩︎
Following the design rationale of [5]; the identification of structural rules with properties of the cartesian product is made explicit there in the comparison of cartesian with symmetric monoidal multicategories.↩︎
This section and the next three follow Awodey & Bauer [4], Ch. 2, supplemented for the regular and coherent fragments by van Oosten [12], Sec. 4.2, Butz [13], Gran [14], Borceux [15], Ch. 2, and Johnstone [23], Secs. A1.3–A1.4 and D1.1.↩︎
The square-roots-of-unity example, and the observation that this special pattern needs only finite limits, open [4], Ch. 2.↩︎
The judgment notation, the reduction to binary sequents, the fragment list, and the integrability example all follow [4], Sec. 2.1.↩︎
Rules, semantics, and the proof of soundness follow [4], Sec. 2.3, including this equality computation (their Thm. 2.3.10).↩︎
Transcribing the rule list of [4], Sec. 2.3 (“Inference rules for cartesian logic”), in a two-column layout.↩︎
The internal-category example and the diagnosis that composition’s signature requires subtypes—with dependent type theory as the systematic solution—follow [4], Sec. 2.3.1. The theory of categories is cartesian in the more generous sense of essentially algebraic or finite-limit theories; see the discussion of doctrines in §12.↩︎
The treatment of quantifiers as adjoints together with Beck–Chevalley follows [4], Secs. 2.4–2.4.1; the role of Frobenius in the regular fragment is standard, cf. Butz [13] and Johnstone [23], A1.3.↩︎
Definition and equivalence as in Gran [14] and Borceux [15], Ch. 2; the logical reading via stable images follows [4], Secs. 2.5.1–2.5.2, van Oosten [12], Sec. 4.2, and Butz [13].↩︎
The relational calculus in a regular category is classical; see Butz [13], Sec. 1, Gran [14], and Borceux [15], Ch. 2. The Frobenius/modular-law computation below is a standard exercise in those sources, redone here in our notation.↩︎
The classifying-category construction for regular theories is [4], Secs. 2.5.3–2.5.4; the functional-relations device is standard and is developed in full generality in Johnstone [23], Sec. D1.4.↩︎
Expanding the proofs of [4], Sec. 2.5.2, and Butz [13], Sec. 2, in our notation.↩︎
The relational calculus in a regular category is classical; concise treatments occur in the standard regular-category sources, e.g. Butz [13], Sec. 1, and Borceux [15], Ch. 2. Freyd–Scedrov’s allegories axiomatize the resulting structure directly; Johnstone [23], A3, gives the topos-theoretic development.↩︎
As in Johnstone [23], Sec. A1.4, and [4], Sec. 2.5.5. Reyes’s monograph [16], Ch. II, develops coherent logic as the model theory of Grothendieck topoi.↩︎
As in [4], Sec. 2.6 and Johnstone [23], A1.4; the construction of from is for .↩︎
Following the arc of [4], Sec. 2.7 (“Kripke–Joyal semantics,” with Kripke models and completeness as Secs. 2.7.1–2.7.2). We take up the topos-theoretic Kripke–Joyal semantics in full in Part II.↩︎
This section draws on two type-theoretic introductions: Abramsky & Tzevelekos [2], whose final sections introduce cartesian closed categories and the simply typed -calculus, and Shulman [5], whose multicategorical development is sketched at the end. The material is classical (Lambek); our exposition is a compressed paraphrase.↩︎
For the classical survey see Kock & Reyes [6]; John Baez gives an introduction at the -Category Café.↩︎
Following Fujii [11], whose framework encompasses not just algebraic theories in the strict sense but PROs, PROPs, symmetric and nonsymmetric operads, and so on.↩︎
The Lab catalogues the many perspectives on toposes; the multiplicity of viewpoints is a theme of Baez’s “Topos theory in a nutshell” [25] and of the historiographic literature Baez cites there; Johnstone’s Sketches of an Elephant [23] is organized around it, with parts titled “Toposes as Categories,” “Toposes as Spaces,” “Toposes as Theories,” and (projected) “Toposes as Mathematical Universes.”↩︎
This capsule history follows Baez [25] (Sec. 1, “Hand-wavy vague explanation”) and the first of his Azimuth lectures [26]: Lawvere’s 1963 search for categorical foundations, his 1966 encounter with Grothendieck’s toposes, the meaning of “topos” as place and Grothendieck’s interest in where statements hold, and the Lawvere–Tierney distillation of the elementary axioms by 1971. Baez’s Azimuth lecture adds that Grothendieck’s motivation lay in algebraic geometry—associating to a space its ring of functions and, for the Weil conjectures, needing cohomology theories attached to sites—and that the logical approach is more self-contained though drier, with Mac Lane & Moerdijk’s title Sheaves in Geometry and Logic [33] flagging the intended synthesis.↩︎
Paraphrasing the passage of McLarty’s essay quoted at length in Baez [25], Sec. 5, where Baez also endorses McLarty’s Elementary Categories, Elementary Toposes as the laconic, logic-focused alternative to [33].↩︎
Definition and the remark that colimits are derivable follow Baez [25], Sec. 2, who gives the “rather inefficient” definition with colimits included and immediately notes the list could be made even shorter, since colimits follow from the rest. The full development is Mac Lane & Moerdijk [33], Ch. IV.↩︎
The paraphrase of the axioms in terms of familiar set-theoretic constructions follows Baez [25], Sec. 3, who suggests that mastering these concepts (limits, exponentials, classifiers) is the most valuable first step in learning topos theory.↩︎
The gallery, including the -sets, presheaves, simplicial sets, finitist, effective-topos, smooth-topos, and time-dependent examples and the closing moral that toposes can be tailored to specific needs, paraphrases Baez [25], Sec. 4. The effective topos is due to Hyland; the smooth toposes to Lawvere and Kock; the quip about working in is Baez’s.↩︎
The bridge-between-textbooks framing and the generic-figures pedagogy are from the book’s own description and front matter [30].↩︎
These formulas are standard presheaf-topos computations; cf. [33], Sec. I.8 and III.8, and the “logical operations” entries in the index of [30], which computes them for each of its running examples.↩︎
This subsection works out, in our own notation, the running example of [30] (their “irreflexive graphs”); the book’s index of notions—bouquets, evolutive sets, the graphic topos examples, the computation of , bi-Heyting algebras—documents the same program carried much further. Directed graphs as a functor category also appear in [4], Sec. A.4.1.↩︎
See [30], Sec. 9.1, for the interpretation of the two negation operations in categories of presheaves, developed linguistically in Reyes et al. [31]. The bi-Heyting algebra and modal-operators-from-two-negations program appears in the related literature by the same authors.↩︎
The running examples of [30] include, besides irreflexive and reflexive graphs, the categories of -sets for a monoid (their “evolutive sets” when ) and of bouquets; this subsection paraphrases the shape of those examples.↩︎
This computation is a standard exercise in the sources for this section; it appears among the worked examples of generic-figure methods in [30] (whose Ch. 5 treats exponentials in presheaf toposes) and as an exercise in [4]. The presentation here is our own.↩︎
Mac Lane & Moerdijk [33], Ch. III (sites and sheafification) and the appendix (Giraud); Baez’s Azimuth lectures [26] develop presheaves and sheaves on spaces at a gentler pace over lectures 1–8.↩︎
This section follows Mac Lane & Moerdijk [33], Sec. VI.5 for the Mitchell–Bénabou language and Sec. VI.6 for Kripke–Joyal semantics; the compressed presentation and examples here are our own paraphrase, with the graphs examples continuing §16. Goldblatt [32] develops the same material with the logic foregrounded at an introductory level.↩︎
The clause list paraphrases Mac Lane & Moerdijk [33], Sec. VI.6, stated there for generalized elements in an arbitrary topos with epimorphic families; the specializations below are standard.↩︎
The recovery of Kripke (and, over spaces, Beth) semantics is the point of the name; cf. [33], Sec. VI.7 and [4], Sec. 2.7.↩︎
Diaconescu’s theorem is standard; the internal argument above follows the usual constructive presentation, cf. [33], Ch. VI, and Goldblatt [32] for the logical reading.↩︎
The identification of the Dedekind reals in with the sheaf of continuous functions is classical (Mac Lane & Moerdijk [33], Ch. VI.8); Blechschmidt [27], Sec. 3, uses it as a flagship example of the internal-to-external dictionary.↩︎
This emphasis paraphrases the overview portion of Kostecki [28], which presents as enabling evaluation of a theory at different “stages” or contexts, and geometric morphisms as the vehicle for moving between toposes; the guided tour there runs from categories to the Lawvere–Tierney axioms.↩︎
The axiom-by-axiom comparison of toposes with set theory is the program of Goldblatt [32] at the introductory level and of Part F of the projected third volume of [23]; the independence-proof connection (forcing as sheaves, double-negation topology) is classical Lawvere–Tierney, exposited in [33], Ch. VI.↩︎
Diaconescu’s theorem is standard; the internal-language proof sketched here follows the usual presentations (e.g. [33], Ch. VI exercises; [23], D4.5). Goldblatt [32] discusses the axis classical-vs-intuitionistic at length at the introductory level.↩︎
This subsection paraphrases the program of [27] (per its abstract and introduction): toposes as alternative mathematical universes tailored to specific objects; the dictionary between internal and external statements provided by the internal language; the sheaf-topos example in which internal reasoning about a ring specializes to statements about a sheaf of rings; and the survey’s advertised applications to algebraic geometry, where a generic-freeness style theorem admits a short internal proof. The synthetic-differential-geometry and effective-topos illustrations continue Baez’s gallery [25].↩︎
The topos-theoretic form of Cohen forcing is due to Lawvere and Tierney and is exposited in [33], Ch. VI; Goldblatt [32] gives an introductory account. The two-line summary here is our paraphrase.↩︎
For the full development of the topos–theory correspondence see Johnstone [23], Part D, and Mac Lane & Moerdijk [33], Ch. VI; Bell’s survey [1] narrates the same arc historically.↩︎
The study advice about exercises and the warnings about the harder books paraphrase Baez [25], Sec. 5, who reports Schanuel’s dictum that the exercises in [29] are mandatory, describes Goldblatt [32] as beginner-friendly though “toposophers” find it light, calls Mac Lane–Moerdijk broad and deep, and relays the referee’s verdict that Johnstone’s 1977 book was far too hard for the faint-hearted while the Elephant explains more but overwhelms beginners with detail.↩︎
Exercises marked (AB) adapt exercises in Awodey & Bauer [4]; those marked (RRZ) adapt the computational program of Reyes–Reyes–Zolfaghari [30]; unmarked exercises are ours.↩︎

Leave a comment