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.
Formal definition
A recursive definition of well-founded hereditarily finite sets is as follows: 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.
Discussion
A symbol for the class 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.
This class of sets is naturally ranked by the number of bracket pairs necessary to represent the sets: In this way, the number of sets with bracket pairs is
The hereditarily finite sets are a subclass of the Von Neumann universe. Here, all well-founded hereditarily finite sets is denoted Vω. Note that this is a set in this context. If we denote by ℘ the power set of S, and by V0 the empty set, then Vω can be obtained by setting V1 = ℘, V2 = ℘,..., Vk = ℘,... and so on. Thus, Vω can be expressed as. We see, again, that there's only countably many hereditarily finite sets: Vn is finite for any finite n. Its cardinality is n−12, see tetration. The union of countably many finite sets is countable. Equivalently, a set is hereditarily finite if and only if its transitive closure is finite.
Graph models
The class can be seen to be in exact correspondence with a class of rooted trees, namely those without non-trivial symmetries : The root vertex corresponds to the top level bracket and each edge leads to an element 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. 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 is the Rado graph or random graph.