← All articles
mathlogicfoundationshistorySeptember 17, 20263 min read

Can a Set Contain Itself? A Question That Broke Mathematics

By the BrainSnail editorial team. How these articles are written and checked, and how to tell us when one is wrong.

Asking whether the collection of all collections that do not contain themselves contains itself produces a contradiction either way. That question arrived while somebody was publishing a book founded on the assumption it could not.

The contradiction

Suppose collections can be defined by any property, which is the natural assumption and the one early set theory made. Consider the collection of all collections that are not members of themselves. Ask whether that collection is a member of itself. If it is, then by its own defining property it must not be, since it contains only collections that are not members of themselves. If it is not, then it satisfies the defining property and therefore must be a member. Either answer contradicts itself immediately, which means no such collection can exist, which means the assumption that any property defines a collection is false. That assumption was the foundation of the subject.

Why it mattered so much

The contradiction struck at a specific project at a specific moment:

  • Set theory was being used to provide secure foundations for the whole of mathematics
  • Gottlob Frege had spent years building arithmetic on exactly the assumption the contradiction destroys
  • Bertrand Russell wrote to Frege in 1902 while the second volume was at the printer
  • Frege added an appendix acknowledging that the foundation of his work was undermined
  • Similar contradictions were found in other formulations shortly afterwards
  • The episode is among the most documented moments in the history of mathematics

How it was resolved

The response was to restrict which collections are allowed to exist rather than to abandon the subject. Axiomatic set theories were developed specifying exactly what may be formed, with the crucial change being that a property does not by itself define a set, and a set can only be formed by selecting from a set that already exists, which blocks the construction entirely. The system that became standard, developed by Zermelo and refined by Fraenkel and others, has served since without producing a contradiction, which is reassuring and is not a proof that none exists. Alternative responses included Russell's own theory of types, which forbids a collection from being applied to itself by arranging everything in levels, and it influenced the design of programming languages substantially.

The other paradoxes of the same family

Several related contradictions arise from self-reference and comparing them clarifies what the problem is. The liar paradox, considering a sentence asserting its own falsity, is ancient and has the same structure. The barber who shaves everyone who does not shave themselves cannot consistently either shave himself or not, which is the set paradox restated in ordinary language and is easier to dismiss because no such barber need exist. A paradox about the collection of all collections asks whether it contains itself. One about naming considers the smallest number not describable in fewer than a stated quantity of words, which the description itself then describes. What these share is a construction referring to a totality it is itself part of, which is what the modern restrictions block.

The limits that followed

The episode opened a broader question about whether mathematics could be secured at all, and the answer turned out to be discouraging. Hilbert proposed a programme to prove that a formal system of arithmetic is consistent, meaning free of contradiction, using only methods the system itself contains. Kurt Gödel showed in 1931 that this cannot be done, and that any consistent system strong enough to express arithmetic contains true statements it cannot prove. That result is not a paradox and is frequently misused as though it licensed vagueness about anything. What it establishes is precise and narrow, namely that the particular kind of complete self-contained certainty Hilbert wanted is unavailable, which is a genuine limit rather than a reason to doubt arithmetic.

The takeaway

The collection of all collections not containing themselves cannot consistently either contain itself or not, which shows that a property does not by itself define a collection. Russell put it to Frege in 1902 while the second volume of his foundational work was at the printer. The resolution restricts which sets may be formed, and Gödel later showed that a system cannot prove its own consistency.

Practise this

Questions from Higher Mathematics

Reading about something is not the same as being able to recall it. These are real questions from the Higher Mathematics unit in our Math track, answers and explanations included. The unit has 120 in total across 21 steps.

  • Odd one outLevel 4

    1. Which of these does NOT prove that a statement is true for ALL cases?

    • Checking a single examplecorrect
    • Direct proof
    • Proof by induction
    • Proof by contradiction

    Checking one example cannot cover every case; direct proof, induction, and contradiction can each prove a universal claim.

  • Fill the blankLevel 4

    2. A function that is both injective (one-to-one) and surjective (onto) is called ____.

    • bijectivecorrect
    • constant
    • continuous
    • linear

    A function that is both one-to-one and onto is a bijection, or bijective.

  • Build the sentenceLevel 4

    3. Build a true statement about a logic term.

    Answer: A statement that is always true is a tautology

    A proposition that is true under every assignment of its variables is a tautology.