# Universe (mathematics)

In mathematics, and particularly in set theory, category theory, type theory, and the foundations of mathematics, a **universe** is a collection that contains all the entities one wishes to consider in a given situation.

In set theory, universes are often classes that contain (as elements) all sets for which one hopes to prove a particular theorem. These classes can serve as inner models for various axiomatic systems such as ZFC or Morse–Kelley set theory. Universes are of critical importance to formalizing concepts in category theory inside set-theoretical foundations. For instance, the canonical motivating example of a category is **Set**, the category of all sets, which cannot be formalized in a set theory without some notion of a universe.

Perhaps the simplest version is that *any* set can be a universe, so long as the object of study is confined to that particular set. If the object of study is formed by the real numbers, then the real line **R**, which is the real number set, could be the universe under consideration. Implicitly, this is the universe that Georg Cantor was using when he first developed modern naive set theory and cardinality in the 1870s and 1880s in applications to real analysis. The only sets that Cantor was originally interested in were subsets of **R**.

This concept of a universe is reflected in the use of Venn diagrams. In a Venn diagram, the action traditionally takes place inside a large rectangle that represents the universe *U*. One generally says that sets are represented by circles; but these sets can only be subsets of *U*. The complement of a set *A* is then given by that portion of the rectangle outside of *A'*s circle. Strictly speaking, this is the relative complement *U* \ *A* of *A* relative to *U*; but in a context where *U* is the universe, it can be regarded as the absolute complement *A*^{C} of *A*. Similarly, there is a notion of the nullary intersection, that is the intersection of zero sets (meaning no sets, not null sets).

Without a universe, the nullary intersection would be the set of absolutely everything, which is generally regarded as impossible; but with the universe in mind, the nullary intersection can be treated as the set of everything under consideration, which is simply *U*. These conventions are quite useful in the algebraic approach to basic set theory, based on Boolean lattices. Except in some non-standard forms of axiomatic set theory (such as New Foundations), the class of all sets is not a Boolean lattice (it is only a relatively complemented lattice).

In contrast, the class of all subsets of *U*, called the power set of *U*, is a Boolean lattice. The absolute complement described above is the complement operation in the Boolean lattice; and *U*, as the nullary intersection, serves as the top element (or nullary meet) in the Boolean lattice. Then De Morgan's laws, which deal with complements of meets and joins (which are unions in set theory) apply, and apply even to the nullary meet and the nullary join (which is the empty set).

However, once subsets of a given set *X* (in Cantor's case, *X* = **R**) are considered, the universe may need to be a set of subsets of *X*. (For example, a topology on *X* is a set of subsets of *X*.) The various sets of subsets of *X* will not themselves be subsets of *X* but will instead be subsets of **P***X*, the power set of *X*. This may be continued; the object of study may next consist of such sets of subsets of *X*, and so on, in which case the universe will be **P**(**P***X*). In another direction, the binary relations on *X* (subsets of the Cartesian product *X* × *X*) may be considered, or functions from *X* to itself, requiring universes like **P**(*X* × *X*) or *X*^{X}.

Thus, even if the primary interest is *X*, the universe may need to be considerably larger than *X*. Following the above ideas, one may want the **superstructure** over *X* as the universe. This can be defined by structural recursion as follows:

Then the superstructure over *X*, written **S***X*, is the union of **S**_{0}*X*, **S**_{1}*X*, **S**_{2}*X*, and so on; or

There is a slight shift in philosophy from the previous section, where the universe was any set *U* of interest. There, the sets being studied were *subset*s of the universe; now, they are *members* of the universe. Thus although **P**(**S***X*) is a Boolean lattice, what is relevant is that **S***X* itself is not. Consequently, it is rare to apply the notions of Boolean lattices and Venn diagrams directly to the superstructure universe as they were to the power-set universes of the previous section. Instead, one can work with the individual Boolean lattices **P***A*, where *A* is any relevant set belonging to **S***X*; then **P***A* is a subset of **S***X* (and in fact belongs to **S***X*). In Cantor's case *X* = **R** in particular, arbitrary sets of real numbers are not available, so there it may indeed be necessary to start the process all over again.

It is possible to give a precise meaning to the claim that **SN** is the universe of ordinary mathematics; it is a model of Zermelo set theory, the axiomatic set theory originally developed by Ernst Zermelo in 1908. Zermelo set theory was successful precisely because it was capable of axiomatising "ordinary" mathematics, fulfilling the programme begun by Cantor over 30 years earlier. But Zermelo set theory proved insufficient for the further development of axiomatic set theory and other work in the foundations of mathematics, especially model theory.

For a dramatic example, the description of the superstructure process above cannot itself be carried out in Zermelo set theory. The final step, forming **S** as an infinitary union, requires the axiom of replacement, which was added to Zermelo set theory in 1922 to form Zermelo–Fraenkel set theory, the set of axioms most widely accepted today. So while ordinary mathematics may be done *in* **SN**, discussion *of* **SN** goes beyond the "ordinary", into metamathematics.

defines *V*_{i} for *any* ordinal number *i*.
The union of all of the *V*_{i} is the von Neumann universe *V*:

Every individual *V*_{i} is a set, but their union *V* is a proper class. The axiom of foundation, which was added to ZF set theory at around the same time as the axiom of replacement, says that *every* set belongs to *V*.

In an interpretation of first-order logic, the universe (or domain of discourse) is the set of individuals (individual constants) over which the quantifiers range. A proposition such as ∀*x* (*x*^{2} ≠ 2) is ambiguous, if no domain of discourse has been identified. In one interpretation, the domain of discourse could be the set of real numbers; in another interpretation, it could be the set of natural numbers. If the domain of discourse is the set of real numbers, the proposition is false, with *x* = √2 as counterexample; if the domain is the set of naturals, the proposition is true, since 2 is not the square of any natural number.

There is another approach to universes which is historically connected with category theory. This is the idea of a Grothendieck universe. Roughly speaking, a Grothendieck universe is a set inside which all the usual operations of set theory can be performed. This version of a universe is defined to be any set for which the following axioms hold:^{[1]}

The advantage of a Grothendieck universe is that it is actually a *set*, and never a proper class. The disadvantage is that if one tries hard enough, one can leave a Grothendieck universe.^{[citation needed]}

The most common use of a Grothendieck universe *U* is to take *U* as a replacement for the category of all sets. One says that a set *S* is * U*-

**small**if

*S*∈

*U*, and

*-*

**U****large**otherwise. The category

*U*-

**Set**of all

*U*-small sets has as objects all

*U*-small sets and as morphisms all functions between these sets. Both the object set and the morphism set are sets, so it becomes possible to discuss the category of "all" sets without invoking proper classes. Then it becomes possible to define other categories in terms of this new category. For example, the category of all

*U*-small categories is the category of all categories whose object set and whose morphism set are in

*U*. Then the usual arguments of set theory are applicable to the category of all categories, and one does not have to worry about accidentally talking about proper classes. Because Grothendieck universes are extremely large, this suffices in almost all applications.

Often when working with Grothendieck universes, mathematicians assume the Axiom of Universes: "For any set *x*, there exists a universe *U* such that *x* ∈*U*." The point of this axiom is that any set one encounters is then *U*-small for some *U*, so any argument done in a general Grothendieck universe can be applied. This axiom is closely related to the existence of strongly inaccessible cardinals.

There are at least two kinds of universes that one can consider in type theory: **Russell-style universes** (named after Bertrand Russell) and **Tarski-style universes** (named after Alfred Tarski).^{[2]}^{[3]}^{[4]} A Russell-style universe is a type whose terms are types.^{[2]} A Tarski-style universe is a type together with an interpretation operation allowing us to regard its terms as types.^{[2]}