The ultraproduct is a mathematical construction that appears mainly in abstract algebra and mathematical logic, in particular in model theory and set theory. An ultraproduct is a quotient of the direct product of a family of structures. All factors need to have the same signature. The ultrapower is the special case of this construction in which all factors are equal.

For example, ultrapowers can be used to construct new fields from given ones. The hyperreal numbers, an ultrapower of the real numbers, are a special case of this.

Some striking applications of ultraproducts include very elegant proofs of the compactness theorem and the completeness theorem, Keisler's ultrapower theorem, which gives an algebraic characterization of the semantic notion of elementary equivalence, and the Robinson–Zakon presentation of the use of superstructures and their monomorphisms to construct nonstandard models of analysis, leading to the growth of the area of nonstandard analysis, which was pioneered (as an application of the compactness theorem) by Abraham Robinson.

## Definition

The general method for getting ultraproducts uses an index set ${\displaystyle I,}$ a structure ${\displaystyle M_{i))$ (assumed to be non-empty in this article) for each element ${\displaystyle i\in I}$ (all of the same signature), and an ultrafilter ${\displaystyle {\mathcal {U))}$ on ${\displaystyle I.}$

For any two elements ${\displaystyle a_{\bullet }=\left(a_{i}\right)_{i\in I))$ and ${\displaystyle b_{\bullet }=\left(b_{i}\right)_{i\in I))$ of the Cartesian product ${\textstyle {\textstyle \prod \limits _{i\in I))M_{i},}$ declare them to be ${\displaystyle {\mathcal {U))}$-equivalent, written ${\displaystyle a_{\bullet }\sim b_{\bullet ))$ or ${\displaystyle a_{\bullet }=_{\mathcal {U))b_{\bullet },}$ if and only if the set of indices ${\displaystyle \left\{i\in I:a_{i}=b_{i}\right\))$ on which they agree is an element of ${\displaystyle {\mathcal {U));}$ in symbols,

${\displaystyle a_{\bullet }\sim b_{\bullet }\;\iff \;\left\{i\in I:a_{i}=b_{i}\right\}\in {\mathcal {U)),}$
which compares components only relative to the ultrafilter ${\displaystyle {\mathcal {U)).}$ This binary relation ${\displaystyle \,\sim \,}$ is an equivalence relation[proof 1] on the Cartesian product ${\displaystyle {\textstyle \prod \limits _{i\in I))M_{i}.}$

The ultraproduct of ${\displaystyle M_{\bullet }=\left(M_{i}\right)_{i\in I))$ modulo ${\displaystyle {\mathcal {U))}$ is the quotient set of ${\displaystyle {\textstyle \prod \limits _{i\in I))M_{i))$ with respect to ${\displaystyle \sim }$ and is therefore sometimes denoted by ${\displaystyle {\textstyle \prod \limits _{i\in I))M_{i}\,/\,{\mathcal {U))}$ or ${\displaystyle {\textstyle \prod }_{\mathcal {U))\,M_{\bullet }.}$

Explicitly, if the ${\displaystyle {\mathcal {U))}$-equivalence class of an element ${\displaystyle a\in {\textstyle \prod \limits _{i\in I))M_{i))$ is denoted by

${\displaystyle a_{\mathcal {U)):={\big \{}x\in {\textstyle \prod \limits _{i\in I))M_{i}\;:\;x\sim a{\big \))}$
then the ultraproduct is the set of all ${\displaystyle {\mathcal {U))}$-equivalence classes
${\displaystyle {\prod }_{\mathcal {U))\,M_{\bullet }\;=\;\prod _{i\in I}M_{i}\,/\,{\mathcal {U))\;:=\;\left\{a_{\mathcal {U))\;:\;a\in {\textstyle \prod \limits _{i\in I))M_{i}\right\}.}$

Although ${\displaystyle {\mathcal {U))}$ was assumed to be an ultrafilter, the construction above can be carried out more generally whenever ${\displaystyle {\mathcal {U))}$ is merely a filter on ${\displaystyle I,}$ in which case the resulting quotient set ${\displaystyle {\textstyle \prod \limits _{i\in I))M_{i}/\,{\mathcal {U))}$ is called a reduced product.

When ${\displaystyle {\mathcal {U))}$ is a principal ultrafilter (which happens if and only if ${\displaystyle {\mathcal {U))}$ contains its kernel ${\displaystyle \cap \,{\mathcal {U))}$) then the ultraproduct is isomorphic to one of the factors. And so usually, ${\displaystyle {\mathcal {U))}$ is not a principal ultrafilter, which happens if and only if ${\displaystyle {\mathcal {U))}$ is free (meaning ${\displaystyle \cap \,{\mathcal {U))=\varnothing }$), or equivalently, if every cofinite subsets of ${\displaystyle I}$ is an element of ${\displaystyle {\mathcal {U)).}$ Since every ultrafilter on a finite set is principle, the index set ${\displaystyle I}$ is consequently also usually infinite.

The ultraproduct acts as a filter product space where elements are equal if they are equal only at the filtered components (non-filtered components are ignored under the equivalence). One may define a finitely additive measure ${\displaystyle m}$ on the index set ${\displaystyle I}$ by saying ${\displaystyle m(A)=1}$ if ${\displaystyle A\in {\mathcal {U))}$ and ${\displaystyle m(A)=0}$ otherwise. Then two members of the Cartesian product are equivalent precisely if they are equal almost everywhere on the index set. The ultraproduct is the set of equivalence classes thus generated.

Finitary operations on the Cartesian product ${\displaystyle {\textstyle \prod \limits _{i\in I))M_{i))$ are defined pointwise (for example, if ${\displaystyle +}$ is a binary function then ${\displaystyle a_{i}+b_{i}=(a+b)_{i))$). Other relations can be extended the same way:

${\displaystyle R\left(a_{\mathcal {U))^{1},\dots ,a_{\mathcal {U))^{n}\right)~\iff ~\left\{i\in I:R^{M_{i))\left(a_{i}^{1},\dots ,a_{i}^{n}\right)\right\}\in {\mathcal {U)),}$
where ${\displaystyle a_{\mathcal {U))}$ denotes the ${\displaystyle {\mathcal {U))}$-equivalence class of ${\displaystyle a}$ with respect to ${\displaystyle \sim .}$ In particular, if every ${\displaystyle M_{i))$ is an ordered field then so is the ultraproduct.

### Ultrapower

An ultrapower is an ultraproduct for which all the factors ${\displaystyle M_{i))$ are equal. Explicitly, the ultrapower of a set ${\displaystyle M}$ modulo ${\displaystyle {\mathcal {U))}$ is the ultraproduct ${\displaystyle {\textstyle \prod \limits _{i\in I))M_{i}\,/\,{\mathcal {U))={\textstyle \prod }_{\mathcal {U))\,M_{\bullet ))$ of the indexed family ${\displaystyle M_{\bullet }:=\left(M_{i}\right)_{i\in I))$ defined by ${\displaystyle M_{i}:=M}$ for every index ${\displaystyle i\in I.}$ The ultrapower may be denoted by ${\displaystyle {\textstyle \prod }_{\mathcal {U))\,M}$ or (since ${\displaystyle {\textstyle \prod \limits _{i\in I))M}$ is often denoted by ${\displaystyle M^{I))$) by

${\displaystyle M^{I}/{\mathcal {U))~:=~\prod _{i\in I}M\,/\,{\mathcal {U))\,}$

For every ${\displaystyle m\in M,}$ let ${\displaystyle (m)_{i\in I))$ denote the constant map ${\displaystyle I\to M}$ that is identically equal to ${\displaystyle m.}$ This constant map/tuple is an element of the Cartesian product ${\displaystyle M^{I}={\textstyle \prod \limits _{i\in I))M}$ and so the assignment ${\displaystyle m\mapsto (m)_{i\in I))$ defines a map ${\displaystyle M\to {\textstyle \prod \limits _{i\in I))M.}$ The natural embedding of ${\displaystyle M}$ into ${\displaystyle {\textstyle \prod }_{\mathcal {U))\,M}$ is the map ${\displaystyle M\to {\textstyle \prod }_{\mathcal {U))\,M}$ that sends an element ${\displaystyle m\in M}$ to the ${\displaystyle {\mathcal {U))}$-equivalence class of the constant tuple ${\displaystyle (m)_{i\in I}.}$

## Examples

The hyperreal numbers are the ultraproduct of one copy of the real numbers for every natural number, with regard to an ultrafilter over the natural numbers containing all cofinite sets. Their order is the extension of the order of the real numbers. For example, the sequence ${\displaystyle \omega }$ given by ${\displaystyle \omega _{i}=i}$ defines an equivalence class representing a hyperreal number that is greater than any real number.

Analogously, one can define nonstandard integers, nonstandard complex numbers, etc., by taking the ultraproduct of copies of the corresponding structures.

As an example of the carrying over of relations into the ultraproduct, consider the sequence ${\displaystyle \psi }$ defined by ${\displaystyle \psi _{i}=2i.}$ Because ${\displaystyle \psi _{i}>\omega _{i}=i}$ for all ${\displaystyle i,}$ it follows that the equivalence class of ${\displaystyle \psi _{i}=2i}$ is greater than the equivalence class of ${\displaystyle \omega _{i}=i,}$ so that it can be interpreted as an infinite number which is greater than the one originally constructed. However, let ${\displaystyle \chi _{i}=i}$ for ${\displaystyle i}$ not equal to ${\displaystyle 7,}$ but ${\displaystyle \chi _{7}=8.}$ The set of indices on which ${\displaystyle \omega }$ and ${\displaystyle \chi }$ agree is a member of any ultrafilter (because ${\displaystyle \omega }$ and ${\displaystyle \chi }$ agree almost everywhere), so ${\displaystyle \omega }$ and ${\displaystyle \chi }$ belong to the same equivalence class.

In the theory of large cardinals, a standard construction is to take the ultraproduct of the whole set-theoretic universe with respect to some carefully chosen ultrafilter ${\displaystyle {\mathcal {U)).}$ Properties of this ultrafilter ${\displaystyle {\mathcal {U))}$ have a strong influence on (higher order) properties of the ultraproduct; for example, if ${\displaystyle {\mathcal {U))}$ is ${\displaystyle \sigma }$-complete, then the ultraproduct will again be well-founded. (See measurable cardinal for the prototypical example.)

## Łoś's theorem

Łoś's theorem, also called the fundamental theorem of ultraproducts, is due to Jerzy Łoś (the surname is pronounced [ˈwɔɕ], approximately "wash"). It states that any first-order formula is true in the ultraproduct if and only if the set of indices ${\displaystyle i}$ such that the formula is true in ${\displaystyle M_{i))$ is a member of ${\displaystyle {\mathcal {U)).}$ More precisely:

Let ${\displaystyle \sigma }$ be a signature, ${\displaystyle {\mathcal {U))}$ an ultrafilter over a set ${\displaystyle I,}$ and for each ${\displaystyle i\in I}$ let ${\displaystyle M_{i))$ be a ${\displaystyle \sigma }$-structure. Let ${\displaystyle {\textstyle \prod }_{\mathcal {U))\,M_{\bullet ))$ or ${\displaystyle {\textstyle \prod \limits _{i\in I))M_{i}/{\mathcal {U))}$ be the ultraproduct of the ${\displaystyle M_{i))$ with respect to ${\displaystyle {\mathcal {U)).}$ Then, for each ${\displaystyle a^{1},\ldots ,a^{n}\in {\textstyle \prod \limits _{i\in I))M_{i},}$ where ${\displaystyle a^{k}=\left(a_{i}^{k}\right)_{i\in I},}$ and for every ${\displaystyle \sigma }$-formula ${\displaystyle \phi ,}$

${\displaystyle {\prod }_{\mathcal {U))\,M_{\bullet }\models \phi \left[a_{\mathcal {U))^{1},\ldots ,a_{\mathcal {U))^{n}\right]~\iff ~\{i\in I:M_{i}\models \phi [a_{i}^{1},\ldots ,a_{i}^{n}]\}\in {\mathcal {U)).}$

The theorem is proved by induction on the complexity of the formula ${\displaystyle \phi .}$ The fact that ${\displaystyle {\mathcal {U))}$ is an ultrafilter (and not just a filter) is used in the negation clause, and the axiom of choice is needed at the existential quantifier step. As an application, one obtains the transfer theorem for hyperreal fields.

### Examples

Let ${\displaystyle R}$ be a unary relation in the structure ${\displaystyle M,}$ and form the ultrapower of ${\displaystyle M.}$ Then the set ${\displaystyle S=\{x\in M:Rx\))$ has an analog ${\displaystyle {}^{*}S}$ in the ultrapower, and first-order formulas involving ${\displaystyle S}$ are also valid for ${\displaystyle {}^{*}S.}$ For example, let ${\displaystyle M}$ be the reals, and let ${\displaystyle Rx}$ hold if ${\displaystyle M}$ is a rational number. Then in ${\displaystyle M}$ we can say that for any pair of rationals ${\displaystyle x}$ and ${\displaystyle y,}$ there exists another number ${\displaystyle z}$ such that ${\displaystyle z}$ is not rational, and ${\displaystyle x Since this can be translated into a first-order logical formula in the relevant formal language, Łoś's theorem implies that ${\displaystyle {}^{*}S}$ has the same property. That is, we can define a notion of the hyperrational numbers, which are a subset of the hyperreals, and they have the same first-order properties as the rationals.

Consider, however, the Archimedean property of the reals, which states that there is no real number ${\displaystyle x}$ such that ${\displaystyle x>1,\;x>1+1,\;x>1+1+1,\ldots }$ for every inequality in the infinite list. Łoś's theorem does not apply to the Archimedean property, because the Archimedean property cannot be stated in first-order logic. In fact, the Archimedean property is false for the hyperreals, as shown by the construction of the hyperreal number ${\displaystyle \omega }$ above.

## Direct limits of ultrapowers (ultralimits)

 For the ultraproduct of a sequence of metric spaces, see Ultralimit.

In model theory and set theory, the direct limit of a sequence of ultrapowers is often considered. In model theory, this construction can be referred to as an ultralimit or limiting ultrapower.

Beginning with a structure, ${\displaystyle A_{0))$ and an ultrafilter, ${\displaystyle {\mathcal {D))_{0},}$ form an ultrapower, ${\displaystyle A_{1}.}$ Then repeat the process to form ${\displaystyle A_{2},}$ and so forth. For each ${\displaystyle n}$ there is a canonical diagonal embedding ${\displaystyle A_{n}\to A_{n+1}.}$ At limit stages, such as ${\displaystyle A_{\omega },}$ form the direct limit of earlier stages. One may continue into the transfinite.

The ultrafilter monad is the codensity monad of the inclusion of the category of finite sets into the category of all sets.[1]

Similarly, the ultraproduct monad is the codensity monad of the inclusion of the category ${\displaystyle \mathbf {FinFam} }$ of finitely-indexed families of sets into the category ${\displaystyle \mathbf {Fam} }$ of all indexed families of sets. So in this sense, ultraproducts are categorically inevitable.[1] Explicitly, an object of ${\displaystyle \mathbf {Fam} }$ consists of a non-empty index set ${\displaystyle I}$ and an indexed family ${\displaystyle \left(M_{i}\right)_{i\in I))$ of sets. A morphism ${\displaystyle \left(N_{i}\right)_{j\in J}\to \left(M_{i}\right)_{i\in I))$ between two objects consists of a function ${\displaystyle \phi :I\to J}$ between the index sets and a ${\displaystyle J}$-indexed family ${\displaystyle \left(\phi _{j}\right)_{j\in J))$ of function ${\displaystyle \phi _{j}:M_{\phi (j)}\to N_{j}.}$ The category ${\displaystyle \mathbf {FinFam} }$ is a full subcategory of this category of ${\displaystyle \mathbf {Fam} }$ consisting of all objects ${\displaystyle \left(M_{i}\right)_{i\in I))$ whose index set ${\displaystyle I}$ is finite. The codensity monad of the inclusion map ${\displaystyle \mathbf {FinFam} \hookrightarrow \mathbf {Fam} }$ is then, in essence, given by

${\displaystyle \left(M_{i}\right)_{i\in I}~\mapsto ~\left(\prod _{i\in I}M_{i}\,/\,{\mathcal {U))\right)_((\mathcal {U))\in U(I)}\,.}$

1. ^ Although ${\displaystyle {\mathcal {U))}$ is assumed to be an ultrafilter over ${\displaystyle I,}$ this proof only requires that ${\displaystyle {\mathcal {U))}$ be a filter on ${\displaystyle I.}$ Throughout, let ${\displaystyle a_{\bullet }=\left(a_{i}\right)_{i\in I},b_{\bullet }=\left(b_{i}\right)_{i\in I},}$ and ${\displaystyle c_{\bullet }=\left(c_{i}\right)_{i\in I))$ be elements of ${\displaystyle {\textstyle \prod \limits _{i\in I))M_{i}.}$ The relation ${\displaystyle a_{\bullet }\,\sim \,a_{\bullet ))$ always holds since ${\displaystyle \{i\in I:a_{i}=a_{i}\}=I}$ is an element of filter ${\displaystyle {\mathcal {U)).}$ Thus the reflexivity of ${\displaystyle \,\sim \,}$ follows from that of equality ${\displaystyle \,=.\,}$ Similarly, ${\displaystyle \,\sim \,}$ is symmetric since equality is symmetric. For transitivity, assume that ${\displaystyle R=\{i:a_{i}:=b_{i}\))$ and ${\displaystyle S:=\{i:b_{i}=c_{i}\))$ are elements of ${\displaystyle {\mathcal {U));}$ it remains to show that ${\displaystyle T:=\{i:a_{i}=c_{i}\))$ also belongs to ${\displaystyle {\mathcal {U)).}$ The transitivity of equality guarantees ${\displaystyle R\cap S\subseteq T}$ (since if ${\displaystyle i\in R\cap S}$ then ${\displaystyle a_{i}=b_{i))$ and ${\displaystyle b_{i}=c_{i))$). Because ${\displaystyle {\mathcal {U))}$ is closed under binary intersections, ${\displaystyle R\cap S\in {\mathcal {U)).}$ Since ${\displaystyle {\mathcal {U))}$ is upward closed in ${\displaystyle I,}$ it contains every superset of ${\displaystyle R\cap S}$ (that consists of indices); in particular, ${\displaystyle {\mathcal {U))}$ contains ${\displaystyle T.}$ ${\displaystyle \blacksquare }$