In
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 ...
and
set theory
Set theory is the branch of mathematical logic that studies Set (mathematics), sets, which can be informally described as collections of objects. Although objects of any kind can be collected into a set, set theory – as a branch of mathema ...
, hereditarily finite sets are defined as
finite set
In mathematics, particularly set theory, a finite set is a set that has a finite number of elements. Informally, a finite set is a set which one could in principle count and finish counting. For example,
is a finite set with five elements. Th ...
s whose elements are all hereditarily finite sets. In other words, the set itself is finite, and all of its elements are finite sets, recursively all the way down to the
empty set
In mathematics, the empty set or void set is the unique Set (mathematics), set having no Element (mathematics), elements; its size or cardinality (count of elements in a set) is 0, zero. Some axiomatic set theories ensure that the empty set exi ...
.
Formal definition
A
recursive definition of
well-founded
In mathematics, a binary relation is called well-founded (or wellfounded or foundational) on a set (mathematics), set or, more generally, a Class (set theory), class if every non-empty subset has a minimal element with respect to ; that is, t ...
hereditarily finite sets is as follows:
: ''Base case'': The empty set is a hereditarily finite set.
: ''Recursion rule'': If
are hereditarily finite, 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:
*
(i.e.
, the Neumann ordinal "0")
*
(i.e.
or
, the Neumann ordinal "1")
*
*
and then also
(i.e.
, the Neumann ordinal "2"),
*
,
as well as
,
* ... sets represented with
bracket pairs, e.g.
. There are six such sets
* ... sets represented with
bracket pairs, e.g.
. There are twelve such sets
* ... sets represented with
bracket pairs, e.g.
or
(i.e.
, the Neumann ordinal "3")
* ... etc.
In this way, the number of sets with
bracket pairs is
Discussion
The set
is an example for such a hereditarily finite set and so is the empty set
, as noted.
On the other hand, the sets
or
are examples of finite sets that are not ''hereditarily'' finite. For example, the first cannot be hereditarily finite since it contains at least one infinite set as an element, when
.
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
.)
is in bijective correspondence with
.
It can also be denoted by
, which denotes the
th stage of the
von Neumann universe.
So here it is a
countable
In mathematics, a Set (mathematics), set is countable if either it is finite set, finite or it can be made in one to one correspondence with the set of natural numbers. Equivalently, a set is ''countable'' if there exists an injective function fro ...
set.
Models
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
0 (zero) is a number representing an empty quantity. Adding (or subtracting) 0 to any number leaves that number unchanged; in mathematical terminology, 0 is the additive identity of the integers, rational numbers, real numbers, and compl ...
. On the other hand, a set with distinct members
is mapped to
.
The inverse 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
In mathematics, the converse of a binary relation is the relation that occurs when the order of the elements is switched in the relation. For example, the converse of the relation 'child of' is the relation 'parent of'. In formal terms ...
of
, swapping its two arguments) models
Zermelo–Fraenkel set theory
In set theory, Zermelo–Fraenkel set theory, named after mathematicians Ernst Zermelo and Abraham Fraenkel, is an axiomatic system that was proposed in the early twentieth century in order to formulate a theory of sets free of paradoxes suc ...
ZF without the
axiom of infinity
In axiomatic set theory and the branches of mathematics and philosophy that use it, the axiom of infinity is one of the axioms of Zermelo–Fraenkel set theory. It guarantees the existence of at least one infinite set, namely a set containing ...
. 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. the only
automorphism
In mathematics, an automorphism is an isomorphism from a mathematical object to itself. It is, in some sense, a symmetry of the object, and a way of mapping the object to itself while preserving all of its structure. The set of all 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 exist, 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
model
A model is an informative representation of an object, person, or system. The term originally denoted the plans of a building in late 16th-century English, and derived via French and Italian ultimately from Latin , .
Models can be divided in ...
s 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
In mathematics and computer science, graph theory is the study of ''graph (discrete mathematics), graphs'', which are mathematical structures used to model pairwise relations between objects. A graph in this context is made up of ''Vertex (graph ...
, the graph whose vertices correspond to hereditarily finite sets and edges correspond to set membership is the
Rado graph or random graph.
Axiomatizations
Theories of finite sets
In the common axiomatic set theory approaches, the empty set
also represents the first von Neumann
ordinal number
In set theory, an ordinal number, or ordinal, is a generalization of ordinal numerals (first, second, th, etc.) aimed to extend enumeration to infinite sets.
A finite set can be enumerated by successively labeling each element with the leas ...
, denoted
. All finite von Neumann ordinals are indeed hereditarily finite and, thus, so is 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 Z
− with its
axioms
An axiom, postulate, or assumption is a statement that is taken to be true, to serve as a premise or starting point for further reasoning and arguments. The word comes from the Ancient Greek word (), meaning 'that which is thought worthy or f ...
given by
Extensionality
In logic, extensionality, or extensional equality, refers to principles that judge objects to be equality (mathematics), equal if they have the same external properties. It stands in contrast to the concept of intensionality, which is concerned wi ...
, Empty Set and
Adjunction. All of
has a
constructive axiomatization involving these axioms and e.g.
Set induction and
Replacement.
Axiomatically characterizing the theory of hereditarily finite sets, the negation of the
axiom of infinity
In axiomatic set theory and the branches of mathematics and philosophy that use it, the axiom of infinity is one of the axioms of Zermelo–Fraenkel set theory. It guarantees the existence of at least one infinite set, namely a set containing ...
may be added. As the theory validates the other axioms of
, this establishes that the axiom of infinity is not a consequence of these other
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
In mathematics, the power set (or powerset) of a set is the set of all subsets of , including the empty set and itself. In axiomatic set theory (as developed, for example, in the ZFC axioms), the existence of the power set of any set is po ...
of
, and by
the empty set, then
can be obtained by setting
for each integer
. 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
The thumb is the first digit of the hand, next to the index finger. When a person is standing in the medical anatomical position (where the palm is facing to the front), the thumb is the outermost digit. The Medical Latin English noun for thum ...
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
In mathematics, the transitive closure of a homogeneous binary relation on a set (mathematics), set is the smallest Relation (mathematics), relation on that contains and is Transitive relation, transitive. For finite sets, "smallest" can be ...
is finite.
See also
*
Constructive set theory
Constructivism may refer to:
Art and architecture
* Constructivism (art), an early 20th-century artistic movement that extols art as a practice for social purposes
* Constructivist architecture, an architectural movement in the Soviet Union in ...
*
Finite set
In mathematics, particularly set theory, a finite set is a set that has a finite number of elements. Informally, a finite set is a set which one could in principle count and finish counting. For example,
is a finite set with five elements. Th ...
*
Hereditary set
*
Hereditarily countable set
*
Hereditary property
*
Rooted trees
References
{{Set theory
Set theory