In
model theory
In mathematical logic, model theory is the study of the relationship between theory (mathematical logic), formal theories (a collection of Sentence (mathematical logic), sentences in a formal language expressing statements about a Structure (mat ...
and related areas of
mathematics
Mathematics is a field of study that discovers and organizes methods, Mathematical theory, theories and theorems that are developed and Mathematical proof, proved for the needs of empirical sciences and mathematics itself. There are many ar ...
, a type is an object that describes how a (real or possible) element or finite collection of elements in a
mathematical structure
In mathematics, a structure on a set (or on some sets) refers to providing or endowing it (or them) with certain additional features (e.g. an operation, relation, metric, or topology). Τhe additional features are attached or related to the ...
might behave. More precisely, it is a set of
first-order formulas in a language ''L'' with
free variable
In mathematics, and in other disciplines involving formal languages, including mathematical logic and computer science, a variable may be said to be either free or bound. Some older books use the terms real variable and apparent variable for f ...
s ''x''
1, ''x''
2,..., ''x''
''n'' that are true of a set of
''n''-tuples of an ''L''-structure
. Depending on the context, types can be complete or partial and they may use a fixed set of constants, ''A'', from the structure
. The question of which types represent actual elements of
leads to the ideas of
saturated models and omitting types.
Formal definition
Consider a
structure
A structure is an arrangement and organization of interrelated elements in a material object or system, or the object or system so organized. Material structures include man-made objects such as buildings and machines and natural objects such as ...
for a
language
Language is a structured system of communication that consists of grammar and vocabulary. It is the primary means by which humans convey meaning, both in spoken and signed language, signed forms, and may also be conveyed through writing syste ...
''L''. Let ''M'' be the
universe
The universe is all of space and time and their contents. It comprises all of existence, any fundamental interaction, physical process and physical constant, and therefore all forms of matter and energy, and the structures they form, from s ...
of the structure. For every ''A'' ⊆ ''M'', let ''L''(''A'') be the language obtained from ''L'' by adding a constant ''c''
''a'' for every ''a'' ∈ ''A''. In other words,
:
A 1-type (of
) over ''A'' is a set ''p''(''x'') of formulas in ''L''(''A'') with at most one free variable ''x'' (therefore 1-type) such that for every finite subset ''p''
0(''x'') ⊆ ''p''(''x'') there is some ''b'' ∈ ''M'', depending on ''p''
0(''x''), with
(i.e. all formulas in ''p''
0(''x'') are true in
when ''x'' is replaced by ''b'').
Similarly an ''n''-type (of
) over ''A'' is defined to be a set ''p''(''x''
1,...,''x''
''n'') = ''p''(''x'') of formulas in ''L''(''A''), each having its free variables occurring only among the given ''n'' free variables ''x''
1,...,''x''
''n'', such that for every finite subset ''p''
0(''x'') ⊆ ''p''(''x'') there are some elements ''b''
1,...,''b''
''n'' ∈ ''M'' with
.
A complete type of
over ''A'' is one that is
maximal with respect to
inclusion. Equivalently, for every
either
or
. Any non-complete type is called a partial type.
So, the word type in general refers to any ''n''-type, partial or complete, over any chosen set of parameters (possibly the empty set).
An ''n''-type ''p''(''x'') is said to be realized in
if there is an element ''b'' ∈ ''M''
''n'' such that
. The existence of such a realization is guaranteed for any type by the
compactness theorem
In mathematical logic, the compactness theorem states that a set of first-order sentences has a model if and only if every finite subset of it has a model. This theorem is an important tool in model theory, as it provides a useful (but generall ...
, although the realization might take place in some
elementary extension of
, rather than in
itself.
If a complete type is realized by ''b'' in
, then the type is typically denoted
and referred to as the complete type of ''b'' over ''A''.
A type ''p''(''x'') is said to be isolated by ''
'', for
, if for all
we have
. Since finite subsets of a type are always realized in
, there is always an element ''b'' ∈ ''M''
''n'' such that ''φ''(''b'') is true in
; i.e.
, thus ''b'' realizes the entire isolated type. So isolated types will be realized in every elementary substructure or extension. Because of this, isolated types can never be omitted (see below).
A model that realizes the maximum possible variety of types is called a
saturated model, and the
ultrapower
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 fact ...
construction provides one way of producing saturated models.
Examples of types
Consider the language ''L'' with one binary
relation symbol, which we denote as
. Let
be the structure
for this language, which is the
ordinal with its standard
well-ordering. Let
denote the
first-order theory
In mathematical logic, a theory (also called a formal theory) is a set of sentences in a formal language. In most scenarios a deductive system is first understood from context, giving rise to a formal system that combines the language with deduct ...
of
.
Consider the set of ''L''(ω)-formulas
. First, we claim this is a type. Let
be a finite subset of
. We need to find a
that satisfies all the formulas in
. Well, we can just take the successor of the largest ordinal mentioned in the set of formulas
. Then this will clearly contain all the ordinals mentioned in
. Thus we have that
is a type.
Next, note that
is not realized in
. For, if it were there would be some
that contains every element of
.
If we wanted to realize the type, we might be tempted to consider the structure
, which is indeed an extension of
that realizes the type. Unfortunately, this extension is not elementary, for example, it does not satisfy
. In particular, the sentence
is satisfied by this structure and not by
.
So, we wish to realize the type in an elementary extension. We can do this by defining a new ''L''-structure, which we will denote
. The domain of the structure will be
where
is the set of integers adorned in such a way that
. Let
denote the usual order of
. We interpret the symbol
in our new structure by
. The idea being that we are adding a "
-chain", or copy of the integers, above all the finite ordinals. Clearly any element of
realizes the type
. Moreover, one can verify that this extension is elementary.
Another example: the complete type of the number 2 over the empty set, considered as a member of the natural numbers, would be the set of all first-order statements (in the language of
Peano arithmetic
In mathematical logic, the Peano axioms (, ), also known as the Dedekind–Peano axioms or the Peano postulates, are axioms for the natural numbers presented by the 19th-century Italian mathematician Giuseppe Peano. These axioms have been used nea ...
), describing a variable ''x'', that are true when ''x'' = 2. This set would include formulas such as
,
, and