KNOWPIA
WELCOME TO KNOWPIA

In mathematics and 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 all the way down to the empty set.

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*a*_{1},...,*a*_{k}are hereditarily finite, then so is {*a*_{1},...,*a*_{k}}.

The set is an example for such a hereditarily finite set and so is the empty set .
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 .

A symbol for the class of hereditarily finite sets is , standing for the cardinality of each of its member being smaller than . Whether is a set and statements about cardinality depend on the theory in context.

The class is countable. Ackermann (1937) gave the following natural bijection *f* from the natural numbers to the , known as the Ackermann coding. It is defined recursively by

- if
*a*,*b*, ... are distinct.

E.g.

We have *f*(*m*) ∈ *f*(*n*) if and only if the *m*th binary digit of *n* (counting from the right starting at 0) is 1.

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. ,
- ... sets represented with bracket pairs, e.g. ,
- ... 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^{[1]}

The set also represents the first von Neumann ordinal number, denoted . And indeed all finite von Neumann ordinals are in and thus the class of sets representing the natural numbers, i.e it includes each element in the standard model of natural numbers. Robinson arithmetic can already be interpreted in ST, the very small sub-theory of with axioms given by Extensionality, Empty Set and Adjunction.

Indeed, has a constructive axiomatizations involving these axiom and e.g. Set induction and Replacement.

Their models then also fulfill the axioms consisting of the axioms of Zermelo–Fraenkel set theory without the axiom of infinity. In this context, the negation of the axiom of infinity may be added, thus proving that the axiom of infinity is not a consequence of the other axioms of set theory.

The hereditarily finite sets are a subclass of the Von Neumann universe. Here, the class of all well-founded hereditarily finite sets is denoted *V*_{ω}. Note that this is also a set in this context.

If we denote by ℘(*S*) the power set of *S*, and by *V*_{0} the empty set, then *V*_{ω} can be obtained by setting
*V*_{1} = ℘(*V*_{0}), *V*_{2} = ℘(*V*_{1}),..., *V*_{k} = ℘(*V*_{k−1}),... and so on.

Thus, *V*_{ω} can be expressed as .

We see, again, that there are only countably many hereditarily finite sets: *V _{n}* is finite for any finite

Equivalently, a set is hereditarily finite if and only if its transitive closure is finite.

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 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 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.

**^**"A004111 - Oeis".