Definition

In set theory, a class is a collection of sets defined by a property, which need not itself be a set. Formally, given a predicate , the class of all sets satisfying is written .

Every set is a class, but not every class is a set. A class that is not a set is called a proper class.

Motivation

The need for classes arises from Russell’s Paradox. Unrestricted comprehension — forming a set from any predicate — leads to contradiction. Restricting comprehension to sets (as in ZFC) resolves this, but leaves certain large collections, such as the collection of all sets, without a home. Classes provide a name for these collections without admitting them as sets.

Examples

  • The von Neumann universe : the class of all sets.
  • The class of all ordinals .
  • The class of all cardinals.
  • The class of all groups (in the sense of set-theoretic algebra).

Each of these is a proper class: assuming any of them were a set leads to a contradiction.

Classes in Formal Set Theory

In ZF, classes are not formal objects — they are a convenient shorthand for predicates () . The statement is simply an abbreviation for .

In von Neumann–Bernays–Gödel (NBG) set theory, classes are first-class objects. Every set is a class, but only sets may be elements of other classes. NBG is a conservative extension of ZFC: every theorem of ZFC about sets is a theorem of NBG.

Relationship to Type Theory

In type theory, an analogous issue arises with universes. A universe containing itself () leads to Girard’s Paradox, which is the type-theoretic analogue of Russell’s paradox. Universe hierarchies serve a role analogous to the set/class distinction.