Hereditarily finite set
Finite sets whose elements are all hereditarily finite sets
In mathematics, specifically set theory, hereditarily finite sets are defined as finite sets whose elements are all hereditarily finite sets. In other words, the set itself is finite and all of its elements are finite sets, recursively down to the empty set.
01Formal definition
A recursive definition of well-founded hereditarily finite sets is as follows:
- Base case: the empty set is a hereditarily finite set.
- Recursion rule: if
are hereditarily finite sets, then so is
.
Only sets that can be built by a finite number of applications of these two rules are hereditarily finite.
Representation
This class of sets is naturally ranked by the number of bracket pairs necessary to represent the sets:
- One bracket pair:
(the ordinal "0").
- Two bracket pairs:
(the ordinal "1").
- Three bracket pairs:
.
- Four bracket pairs:
and also
(the ordinal "2").
- Five bracket pairs:
, also
as well as
.
- Six bracket pairs, such as
. There are six such sets.
- Seven bracket pairs, such as
. There are twelve such sets.
- Eight bracket pairs, such as
or
(the ordinal "3").
The number of sets with bracket pairs is

02Discussion
Not every finite set is hereditarily finite. For example, is not hereditarily finite since it contains an infinite set as an element, the set of natural numbers
.
The class of all hereditarily finite sets is denoted by , meaning that the cardinality of each member is smaller than
. (Analogously, the class of hereditarily countable sets is denoted by
.)
It can also be denoted by
, which denotes the
th stage of the von Neumann universe.
is in bijective correspondence with
. Any theory that can prove
to be a set can also prove it to be countable.
03Models
Ackermann coding
In 1937, Wilhelm Ackermann introduced an encoding of hereditarily finite sets as natural numbers.
It is defined by a function that maps each hereditarily finite set to a natural number, given by the following recursive definition:
For example, the empty set contains no members, and is therefore mapped to an empty sum, that is, the number zero. On the other hand, a set with distinct members
is mapped to
The inverse of this function is given by
where BIT denotes the BIT predicate.
The Ackermann coding can be used to construct a model of finitary set theory in the natural numbers. More precisely, (where
is the converse relation of
, swapping its two arguments) models Zermelo-Fraenkel set theory without the axiom of infinity. Here, each natural number models a set, and the
relation models the membership relation between sets.
Graph models
The class can be seen to be in exact correspondence with a class of rooted trees, namely those without non-trivial symmetries (i.e. whose only automorphism is the identity).
The root vertex corresponds to the top level bracket
and each edge leads to an element (another such set) that can act as a root vertex in its own right. No automorphism of this graph exists, corresponding to the fact that equal branches are identified (e.g.
, trivializing the permutation of the two subgraphs of shape
).
This graph model enables an implementation of ZF without infinity as data types and thus an interpretation of set theory in expressive type theories.
Graph models exist for ZF and also set theories different from Zermelo set theory, such as non-well founded theories. Such models have more intricate edge structure.
In graph theory, the graph whose vertices correspond to hereditarily finite sets and edges correspond to set membership is the Rado graph or random graph.
04Axiomatizations
Theories of finite sets
In common axiomatic set theory approaches, the empty set also represents the first von Neumann ordinal number, denoted
. All finite von Neumann ordinals are indeed hereditarily finite and, thus, so is every set in the class of sets representing the natural numbers. In other words,
includes each element in the standard model of natural numbers and so a set theory expressing
must necessarily contain them as well.
Now note that Robinson arithmetic can already be interpreted in ST, the very small sub-theory of Zermelo set theory with only the axioms of extensionality, empty set and adjunction. All of has a constructive axiomatization involving these axioms and, for example, the axioms of set induction and replacement.
Axiomatically characterizing the theory of hereditarily finite sets, the negation of the axiom of infinity may be added. As the theory validates the other axioms of ZF, this establishes that the axiom of infinity is not a consequence of these other ZF axioms.
ZF
The hereditarily finite sets are a subclass of the Von Neumann universe. Here, the class of all well-founded hereditarily finite sets is denoted . Note that this is also a set in this context.
If we denote by the power set of
, and by
the empty set, then
can be obtained by setting
for each
. Thus,
can be expressed as
and all its elements are finite.
This formulation shows, again, that there are only countably many hereditarily finite sets: is finite for any finite
, its cardinality is
in Knuth's up-arrow notation (a tower of
powers of two), and the union of countably many finite sets is countable.
Equivalently, a set is hereditarily finite if and only if its transitive closure is finite.
Sources and credits
This article is adapted from the Wikipedia article “Hereditarily finite set”, written by its contributors and licensed under CC BY-SA 4.0. Fathomly has changed the layout, removed citation markers, navigation and maintenance notices, and adjusted punctuation. This adapted version is shared under the same license. For references, see the original article.
Images, from Wikimedia Commons:
- Nested set V4.svg by Watchduck You can name the author as "T. Piesk", "Tilman Piesk" or "Watchduck"., Public domain
Fathomly is not affiliated with or endorsed by the Wikimedia Foundation. Spotted a problem? Tell us.