53
$\begingroup$

Can there be a foundations of mathematics using only category theory, i.e. no set theory? More precisely, the definition of a category is a class/set of objects and a class/set of arrows, satisfying some axioms that make commuting diagrams possible. So although in question 7627, where psihodelia asked for alternative foundations for mathematics without set theory, there Steven Gubkin said that Lawvere and McCarthy did some work in reformulation the set theoretic axioms ZFC as the axioms of elementary topoi, this manner of foundations is still not complete since a category is still ultimately a set!

J Williams in his answer below noted that via metacategories, we can have a first order axiomatization of categories. However, this does not provide a foundations of mathematics using only category theory, since set theory permeates the formulation of first order logic. In first order logic, structures are sets together with constants, functions and relations. Here constants, functions and relations are also sets. So even if we say that categories are first order axiomatizable, at the very end, categories are still defined in terms of sets.

I admit in wanting foundations totally in terms of categories, then there will be some kind of recursiveness. However, this recursiveness should not be seen as a problem since as described above, first order axiomatization of sets like ZFC, are written in the language of first order logic which (at least in a meta-level) are sets themselves. In fact, this recursiveness is very much a feature of symbolic logic and is partially responsible for the successful that a single primitve concept of set/set-membership can describe so much (or all?) of mathematics.

I'm aware also in certain proofs of equivalence of categories in mainstream math, like GAGA theorems by Serre, there is a need to use categories where the objects are of classes of different levels, like the NBG set theory. In the end, the reasons provided for why the argument of using classes can be pushed down to essentially small category, this in the end invokes NBG set theory.

$\endgroup$
17
  • 11
    $\begingroup$ What is this obsession with trying to get rid of sets? It's the kind of thing that you think about when you first start learning category theory, but once you actually do work with category theory, you realize how important sets actually are. The fact is, in describing the foundations of category theory, you're going to have to build some formal notion of a collection like in SEAR or ETCS. $\endgroup$ Commented Dec 13, 2009 at 14:46
  • 9
    $\begingroup$ I agree with Harry: could someone explain the desirability of an alternate foundation in which sets do not appear? What problem with the standard foundations is this intended to solve? What advantages would a purely categorical foundation have? $\endgroup$ Commented Dec 13, 2009 at 15:03
  • 9
    $\begingroup$ Also I noticed the question has been edited - first order logic does not need set theory. First order logic can be given entirely syntactically $\endgroup$
    – J Williams
    Commented Dec 13, 2009 at 20:22
  • 4
    $\begingroup$ Let me give some motivate why an alternate foundations in which sets do not appear is desirable. I wanted to post a separate question on this, but since it is being brought up here, I will post here. The first thing to observe is this paradoxical thing in geometry. In geometry, there are many intuitively obvious statements yet have long proofs. Eg, jordan curve theorem. or even simpler, just pythagoras theorem. Long ago a proof of pythagoras theorem was done by cut and paste. But now, any proof must incessarily invoke the real numbers and possibly integrals. $\endgroup$
    – user2529
    Commented Dec 14, 2009 at 6:52
  • 7
    $\begingroup$ The pythagorean theorem only holds by the definition of an inner product space. I disagree with you about geometric intuition. It's useful, but it's often wrong, and it also doesn't generalize past dimensions higher than 3. The jordan curve theorem is actually not obvious when you allow the kinds of curves that it allows, and it's actually false in dimensions higher than 2. $\endgroup$ Commented Dec 16, 2009 at 8:15

5 Answers 5

46
$\begingroup$

On the subject of categorical versus set-theoretic foundations there is too much complicated discussion about structure that misses the essential point about whether "collections" are necessary.

It doesn't matter exactly what your personal list of mathematical requirements may be -- rings, the category of them, fibrations, 2-categories or whatever -- developing the appropriate foundational system for it is just a matter of "programming", once you understand the general setting.

The crucial issue is whether you are taken in by the Great Set-Theoretic Swindle that mathematics depends on collections (completed infinities). (I am sorry that it is necessary to use strong language here in order to flag the fact that I reject a widely held but mistaken opinion.)

Set theory as a purported foundation for mathematics does not and cannot turn collections into objects. It just axiomatises some of the intuitions about how we would like to handle collections, based on the relationship called "inhabits" (eg "Paul inhabits London", "3 inhabits N"). This binary relation, written $\epsilon$, is formalised using first order predicate calculus, usually with just one sort, the universe of sets. The familiar axioms of (whichever) set theory are formulae in first order predicate calculus together with $\epsilon$.

(There are better and more modern ways of capturing the intuitions about collections, based on the whole of the 20th century's experience of algebra and other subjects, for example using pretoposes and arithmetic universes, but they would be a technical distraction from the main foundational issue.)

Lawvere's "Elementary Theory of the Category of Sets" axiomatises some of the intuitions about the category of sets, using the same methodology. Now there are two sorts (the members of one are called "objects" or "sets" and of the other "morphisms" or "functions"). The axioms of a category or of an elementary topos are formulae in first order predicate calculus together with domain, codomain, identity and composition.

Set theorists claim that this use of category theory for foundations depends on prior use of set theory, on the grounds that you need to start with "the collection of objects" and "the collection of morphisms". Curiously, they think that their own approach is immune to the same criticism.

I would like to make it clear that I do NOT share this view of Lawvere's.

Prior to 1870 completed infinities were considered to be nonsense.

When you learned arithmetic at primary school, you learned some rules that said that, when you had certain symbols on the page in front of you, such as "5+7", you could add certain other symbols, in this case "=12". If you followed the rules correctly, the teacher gave you a gold star, but if you broke them you were told off.

Maybe you learned another set of rules about how you could add lines and circles to a geometrical figure ("Euclidean geometry"). Or another one involving "integration by parts". And so on. NEVER was there a "completed infinity".

Whilst the mainstream of pure mathematics allowed itself to be seduced by completed infinities in set theory, symbolic logic continued and continues to formulate systems of rules that permit certain additions to be made to arrays of characters written on a page. There are many different systems -- the point of my opening paragraph is that you can design your own system to meet your own mathematical requirements -- but a certain degree of uniformity has been achieved in the way that they are presented.

  • We need an inexhaustible supply of VARIABLES for which we may substitute.

  • There are FUNCTION SYMBOLS that form terms from variables and other terms.

  • There are BASE TYPES such as 0 and N, and CONSTRUCTORS for forming new types, such as $\times$, $+$, $/$, $\to$, ....

  • There are TRUTH VALUES ($\bot$ and $\top$), RELATION SYMBOLS ($=$) and CONNECTIVES and QUANTIFIERS for forming new predicates.

  • Each variable has a type, formation of terms and predicates must respect certain typing rules, and each formation, equality or assertion of a predicate is made in the CONTEXT of certain type-assignments and assumptions.

  • There are RULES for asserting equations, predicates, etc.

We can, for example, formulate ZERMELO TYPE THEORY in this style. It has type-constructors called powerset and {x:X|p(x)} and a relation-symbol called $\epsilon$. Obviously I am not going to write out all of the details here, but it is not difficult to make this agree with what ordinary mathematicians call "set theory" and is adequate for most of their requirements

Alternatively, one can formulate the theory of an elementary topos is this style, or any other categorical structure that you require. Then a "ring" is a type together with some morphisms for which certain equations are provable.

If you want to talk about "the category of sets" or "the category of rings" WITHIN your tpe theory then this can be done by adding types known as "universes", terms that give names to objects in the internal category of sets and a dependent type that provides a way of externalising the internal sets.

So, although the methodology is the one that is practised by type theorists, it can equally well be used for category theory and the traditional purposes of pure mathematics. (In fact, it is better to formalise a type theory such as my "Zermelo type theory" and then use a uniform construction to turn it into a category such as a topos. This is easier because the associativity of composition is awkward to handle in a recursive setting. However, this is a technical footnote.)

A lot of these ideas are covered in my book "Practical Foundations of Mathematics" (CUP 1999), http://www.PaulTaylor.EU/Practical-Foundations Since writing the book I have written things in a more type-theoretic than categorical style, but they are equivalent. My programme called "Abstract Stone Duality", http://www.PaulTaylor.EU/ASD is an example of the methodology above, but far more radical than the context of this question in its rejection of set theory, ie I see toposes as being just as bad.

$\endgroup$
7
  • $\begingroup$ "...see toposes as being just as bad." Could I characterize ASD as a cousin of Sambin's formal topology or Simpson's reverse mathematics, in which you take some interesting mathematics (ie, real analysis), and then try to understand exactly which logical principles are necessary to make it work (where sets/toposes/HOL give over-abundant logical power)? $\endgroup$ Commented Dec 21, 2009 at 10:02
  • 1
    $\begingroup$ I just looked at the typing rules on your axioms link, and I now see that implication isn't a proposition-former. That's really cool! But you're right this is going off the track of the question, so I'll fall silent now. $\endgroup$ Commented Dec 21, 2009 at 16:22
  • 9
    $\begingroup$ Paul, can you explain what you mean by a completed infinity? What's the difference between an infinity and a completed infinity, or between a completed infinity and an uncompleted infinity? I've never understood the meaning of this word. $\endgroup$ Commented Dec 21, 2009 at 18:44
  • 2
    $\begingroup$ @TomLeinster, consider an infinite page that begins with a finite set of strings written on it. There are rules that allow you to write more strings on the page, given that certain other strings are already written down. Then we can think of the set of all strings writable on the page as a (perhaps infinite) set. But in reality, at any one moment in time, there are only finitely many strings written down. Hence the aforementioned system (consisting of the paper and its rules) could be described as a potentially infinite set. $\endgroup$ Commented Mar 3, 2014 at 11:50
  • 3
    $\begingroup$ Does rejection of completed infinity at all change how you do more elementary mathematics outside the esoteric world of foundations? Like does calculus change at all if you have no completed infinities? How do you do set-heavy things like analysis that looks to be a natural way to a complete beginner to them with no sets, that doesn't look either too complicated, contrived, or "handwavy" like you're trying to "get around something"? Furthermore, what is the precise reason to reject completed infinities, on purely abstract or logical grounds? $\endgroup$ Commented Jun 6, 2016 at 5:37
24
$\begingroup$

Since Tom Leinster queries my reference to actual/completed versus potential/incomplete infinities, maybe we should ask a philosopher whether I am using these terms in the standard way.

In any case, I am not doing metaphysics. I am just describing the way in which it appears to me that mathematicians actually work, in contrast to the way they say they work because they have been trained to say such things. When you compare my remarks with the others on this page, please note that they are based on thinking about these things for myself over 25 years, originally from a categorical perspective but increasingly influenced by symbolic logic, and not on reciting bits of textbooks.

To do ordinary arithmetic, you may need very (arbitrarily) large numbers, but you don't all of them together. So far as I can gather from history, mathematicians up to the mid-19th century managed very well to deal with things in this way, for example defining functions as expressions.

Post-Cantor, 20th century mathematicians got into the habit of introducing the completed infinity before the structure. For example, we say "a group is a set with...", relegating the essence of symmetry to second place. This is like saying that humanity is a collection of pieces of flesh, onto which faces are painted as an afterthought.

Categorists, being part of the pure mathematical culture, did the same thing, in the vast majority of cases with great profit. However, when it comes to foundations, treating the universe first as a completed infinity (and only afterwards containing products, function-spaces, powersets or whatever other structure you require) inevitably leads into the set-theoretic trap.

By contrast, type theoretic methods build up the universe by means of the actual operations that you actually want to consider, just as the symmetry group of the Rubik cube is built up from individual rotations. Moreover, despite the fact that type theory looks completely different from category theory or algebra, it is an accurate underpinning of the actual methods of reasoning of mathematics. See, for example, my discussion of the idiom "there exists" in my book.

This is not dogmatic Finitism or Logicism and is readily adaptable to considering the object $\bf N$ along with individual natural numbers, an internal category $\bf Set$ along with individual types, and so on.

Now let me consider the other approaches to this question.

First order logic. This was the first usable general technique in mathematical logic. Like other disciplines, it starts with the completed infinity and adds properties to it. Does it presuppose a set theory? Well, yes, in the same sense that a boot-loader presupposes a primitive operating system. I would be more convinced that first-order logic is independent of set theory if there were a branch of model theory that had examples of structures whose carriers were topological spaces or algebraic varieties.

In fact, first order logic can be set up in the type-theoretic way that I have described above. But if you're going to do that, you may as well set up the type theory that you actually want to use.

If we're looking for a metalanguage specificaly for categorical logic (say, in which to construct toposes) then first order logic is not the right structure. It is easy to describe an internal category in a category with all finite finits, and, by adding more diagrams, we can talk about internal toposes too. However, it's much more interesting to consider free internal structures, for which we need an arithmetic universe, although unfortunately there is next to zero literature on this topic.

Fibrations, 2-categories, etc. None of what I have said contradicts the use of these categorical techniques. I personally consider that fibrations, and especially hyperdoctrines, are obfuscation, but other people find them useful. However, they organise the world, but they do not bring it into existence, which was the thrust of the original question.

$\endgroup$
5
  • 2
    $\begingroup$ What's wrong with metaphysics?Shouldn't you care what kinds of objects you accept as "real" in your discourse?This is part what always made me nuts when I was a philosophy student.To me,it's important to be clear what you're willing to accept as furniture in the world you live in and why.But I better stop before I get banned again........ $\endgroup$ Commented Mar 23, 2011 at 16:38
  • 3
    $\begingroup$ "Metaphysics is a branch of fantastic literature", J.L.Borges $\endgroup$
    – Qfwfq
    Commented Jul 14, 2011 at 18:14
  • 8
    $\begingroup$ @TheMathemagician Paul never said anything was particularly wrong with "metaphysics"; if you read carefully you'll see his answers are more description than prescription. But let me put it another way. You may recall the apocryphal story about Laplace and Napoleon, where Napoleon had learned that no mention was ever made of God in Laplace's Celestial Mechanics. When Napoleon asked why not, Laplace reportedly replied, "Sire, I had no need of that hypothesis." Similarly, Paul is arguing there is no need of the hypothesis of infinite collections. You can still believe in them if you like. $\endgroup$ Commented Jul 2, 2017 at 11:43
  • $\begingroup$ @ToddTrimble I wish people would stop repeating this apocryphon (misinformation). Laplace himself loathed it and demanded it be deleted. $\endgroup$
    – user76284
    Commented Mar 8, 2021 at 9:09
  • 3
    $\begingroup$ @user76284 I think you can take my "reportedly" as taking into account that possibility. Let that not deflect from the point being made here. (Edit: I even said "apocryphal". That should suffice for disclaimers.) $\endgroup$ Commented Mar 8, 2021 at 21:28
15
$\begingroup$

Yes, you can do category theory without set theory. A category can easily be expressed in first order logic, like metacategories in MacLane's book. However, there are many concepts in category theory which require notions of small collections vs large. There is a way to reason with these entirely in category theory, and for this you need (categorical) fibrations, or similarly indexed categories.

You need a base category, say B, which will act like a category of sets. You probably need it to satisfy certain properties, like pullbacks/cartesian-closed/topos... depending on how much you want to do. A fibration is a functor $p:C \to B$ which satisfies certain properties. Objects of C are like collections of objects which are indexed over objects of B.

The standard example is p:Fam(Set)$\to$ Set, where Fam(Set) are families of sets $\lbrace S_i\rbrace_{i\in \Lambda}$, where $p$ sends this family to $\Lambda$.

Small categories over the base category are easy to handle using internal category theory, if your base category has pullbacks. These are just pairs of objects (Obj, Mor) in B along with various morphisms like head:Mor $\to$ Obj expressing the categorical properties.

Now for large categories you will need the concept of locally small categories over the base. For this we can use locally internal categories, which are special fibrations which are also enriched in B. In these you can talk about collections of morphisms, indexed by objects in B. Concepts like complete and cocomplete can be defined for locally internal categories.

With all of this machinery you can prove that indexed adjoint functor theorem and various other theorems in category theory.

Once you have an axiom stating that you have a sufficiently nice base category you do large parts of category theory without mentioning sets. With NBG you can use the category of sets instead of an axiom.

For a article on fibrations see "Fibered Categories and the Foundations of Naive Category Theory" by Bénabou. Johnstone's "Sketches of an Elephant" vol1 has a few chapters on locally internal categories.

$\endgroup$
4
  • 1
    $\begingroup$ That is very useful. I will look up metacategories as well as the fibrations you have mentioned. $\endgroup$
    – user2529
    Commented Dec 13, 2009 at 8:17
  • $\begingroup$ There's no "base category" if you use universes or some stronger axiom like ZMC-Strong (see Mike's recent nCafe post). Also, large categories are again just an illusion since we can only talk of large with respect to a specific inaccessible cardinal. There is no set of all sets, and the class of all sets is not a mathematical object. Using and/or axiomatising NBG class theory into pure category theory makes things too difficult to work with. $\endgroup$ Commented Dec 13, 2009 at 14:42
  • 10
    $\begingroup$ The base category is the choice of the mathematician, and many categories can take that role. So they do indeed exist. Furthermore none of this is dependent on NBG or classes. If you have them, then there is a good choice for a base category. If you don't have NBG, you can choose another base category. Finally you are seriously misguided about classes - the class of all sets is a mathematical object in NBG set theory. $\endgroup$
    – J Williams
    Commented Dec 13, 2009 at 20:10
  • 2
    $\begingroup$ I like this answer the most, because it shows how misguided and restrictive the very notion of "foundations" for mathematics really is. $\endgroup$ Commented May 9, 2018 at 4:26
12
$\begingroup$

You write:

"set theory permeates the formulation of first order logic. In first order logic, structures are sets together with constants"

No; first order logic does not assume any set theory. The notion of a structure comes from model theory, which builds on top of both first-order logic and set theory.

For example, one can describe the syntax and deduction rules of the predicate calculus using completely finitary means (nothing more than Peano Arithmetic). So you might say that PA is (or something like it) is a prerequisite foundation for first order logic, but set theory certainly is not!

This thread on the FOMlist gives an inkling of how you would go about creating a purely first-order axiomatization of the category of categories:

http://cs.nyu.edu/pipermail/fom/2000-May/003968.html

The tricky question is what sorts of axioms you assume about the "category of all categories" -- for example, does it contain an isomorphic copy of every category (including itself?) This runs a serious risk of a Russell-type paradox! The way out probably involves weakening this assumption; for example, not giving a way to explicitly talk about the action which translates an object of category C into the functor from the one-object category to C which picks out that object -- giving up the ability to talk about this action (or perhaps just giving up the assumption that it is total) might weaken the theory just enough...

$\endgroup$
8
$\begingroup$

You may be interested in this article comparing Set Theory, Type Theory and Category Theory for the foundation of mathematics : http://www.andrew.cmu.edu/user/awodey/preprints/stcsFinal.pdf

$\endgroup$

You must log in to answer this question.