Attic › Mathematics › Principia Mathematica
The theory of types stops a set from containing itself
About Theory of types
Whitehead and Russell wrote Principia Mathematica to fix a deep contradiction in set theory known as Russell's paradox. Their solution is a system called type theory, which puts all mathematical objects into levels so that no set can ever contain itself.
A set is a collection of distinct objects, called its members. Before Principia Mathematica, logicians assumed that any property could define a set. Most sets are not members of themselves: for example, the set of all dogs is not a dog. However, some sets seem to be members of themselves: the set of all things that are not dogs is not a dog, so it must be a member of itself.
In 1901, Russell asked what happens if you define the set R as "the set of all sets that are not members of themselves." He found that asking whether R is a member of itself causes a contradiction:
1. If R is a member of itself, then by its own definition, it must not be a member of itself.
2. If R is not a member of itself, then it fits the definition of R, so it must be a member of itself.
Either answer contradicts itself. If a logical system has even one contradiction, the rules of logic allow you to prove any statement at all, which makes the whole system useless.
Russell saw that the paradox happens because a set is defined in terms of the group of sets to which it belongs. To stop this self-reference, Principia Mathematica organizes all objects into a strict hierarchy of types:
1. Type 0 contains individual things (not sets).
2. Type 1 contains sets of Type 0 individuals.
3. Type 2 contains sets of Type 1 sets, and so on for higher numbers.
Under the rules of type theory, a set of a given type can only contain members from the type directly below it. A Type 1 set can only contain Type 0 individuals, and a Type 2 set can only contain Type 1 sets.
Because a set must always have a higher type than its members, it is against the rules of the language to say that a set is, or is not, a member of itself. The statement "R is a member of R" is not true or false; it is meaningless and cannot even be written in the system. This removes Russell's paradox.
However, the strict rules of types also made it impossible to state many standard theorems about real numbers (the continuous numbers used in measurement). To make normal mathematics work again, Whitehead and Russell had to add the axiom of reducibility, an extra assumption which states that any complex property at a high level is equivalent to a simpler property at the lowest level. Many mathematicians criticized this axiom because it seemed like a practical fix rather than a truth of pure logic.
Previous: *Principia Mathematica* tries to build all of mathematics from pure logic
Fact-checked against Principia Mathematica on Wikipedia
Part of the Mathematics syllabus: Infinity, Logic, and Incompleteness
See it on the timeline of Infinity, Logic, and Incompleteness