contradictionA and B and CA and BA and CB and C(A and B) or (A and C)(A and B) or (B and C)(A and C) or (B and C)ABC(A or B) and (A or C) and (B or C) <====> (A and B) or (A and C) or (B and C)(A or B) and (A or C)(A or B) and (B or C)(A or C) and (B or C)A or BA or CB or CA or B or Ctautology
Loupe light.svg The free distributive lattices of monotonic Boolean functions on 0, 1, 2, and 3 arguments, with 2, 3, 6, and 20 elements respectively (move mouse over right diagram to see description)

In mathematics, the Dedekind numbers are a rapidly growing sequence of integers named after Richard Dedekind, who defined them in 1897. The Dedekind number M(n) counts the number of monotone boolean functions of n variables. Equivalently, it counts the number of antichains of subsets of an n-element set, the number of elements in a free distributive lattice with n generators, or the number of abstract simplicial complexes with n elements.

Accurate asymptotic estimates of M(n) and an exact expression as a summation are known.[1] However Dedekind's problem of computing the values of M(n) remains difficult: no closed-form expression for M(n) is known, and exact values of M(n) have been found only for n ≤ 8.[2]


A Boolean function is a function that takes as input n Boolean variables (that is, values that can be either false or true, or equivalently binary values that can be either 0 or 1), and produces as output another Boolean variable. It is monotonic if, for every combination of inputs, switching one of the inputs from false to true can only cause the output to switch from false to true and not from true to false. The Dedekind number M(n) is the number of different monotonic Boolean functions on n variables.[3]

An antichain of sets (also known as a Sperner family) is a family of sets, none of which is contained in any other set. If V is a set of n Boolean variables, an antichain A of subsets of V defines a monotone Boolean function f, where the value of f is true for a given set of inputs if some subset of the true inputs to f belongs to A and false otherwise. Conversely every monotone Boolean function defines in this way an antichain, of the minimal subsets of Boolean variables that can force the function value to be true. Therefore, the Dedekind number M(n) equals the number of different antichains of subsets of an n-element set.[4]

A third, equivalent way of describing the same class of objects uses lattice theory. From any two monotone Boolean functions f and g we can find two other monotone Boolean functions fg and fg, their logical conjunction and logical disjunction respectively. The family of all monotone Boolean functions on n inputs, together with these two operations, forms a distributive lattice, the lattice given by Birkhoff's representation theorem from the partially ordered set of subsets of the n variables with set inclusion as the partial order. This construction produces the free distributive lattice with n generators.[5] Thus, the Dedekind numbers count the number of elements in free distributive lattices.[6]

The Dedekind numbers also count (one more than) the number of abstract simplicial complexes on n elements, families of sets with the property that any subset of a set in the family also belongs to the family. Any antichain determines a simplicial complex, the family of subsets of antichain members, and conversely the maximal simplices in a complex form an antichain.[7]


For n = 2, there are six monotonic Boolean functions and six antichains of subsets of the two-element set {x,y}:


The exact values of the Dedekind numbers are known for 0 ≤ n ≤ 8:

2, 3, 6, 20, 168, 7581, 7828354, 2414682040998, 56130437228687557907788 (sequence A000372 in the OEIS).

The first six of these numbers are given by Church (1940). M(6) was calculated by Ward (1946), M(7) was calculated by Church (1965) and Berman & Köhler (1976), and M(8) by Wiedemann (1991).

If n is even, then M(n) must also be even.[8] The calculation of the fifth Dedekind number M(5) = 7581 disproved a conjecture by Garrett Birkhoff that M(n) is always divisible by (2n − 1)(2n − 2).[9]

Summation formula

Kisielewicz (1988) rewrote the logical definition of antichains into the following arithmetic formula for the Dedekind numbers:

where is the th bit of the number , which can be written using the floor function as

However, this formula is not helpful for computing the values of M(n) for large n due to the large number of terms in the summation.[citation needed]


The logarithm of the Dedekind numbers can be estimated accurately via the bounds

Here the left inequality counts the number of antichains in which each set has exactly elements, and the right inequality was proven by Kleitman & Markowsky (1975).

Korshunov (1981) provided the even more accurate estimates[10]

for even n, and

for odd n, where


The main idea behind these estimates is that, in most antichains, all the sets have sizes that are very close to n/2.[10] For n = 2, 4, 6, 8 Korshunov's formula provides an estimate that is inaccurate by a factor of 9.8%, 10.2%, 4.1%, and -3.3%, respectively.[11]


  1. ^ Kleitman & Markowsky (1975); Korshunov (1981); Kahn (2002); Kisielewicz (1988).
  2. ^ Wiedemann (1991).
  3. ^ Kisielewicz (1988).
  4. ^ Kahn (2002).
  5. ^ The definition of free distributive lattices used here allows as lattice operations any finite meet and join, including the empty meet and empty join. For the free distributive lattice in which only pairwise meets and joins are allowed, one should eliminate the top and bottom lattice elements and subtract two from the Dedekind numbers.
  6. ^ Church (1940); Church (1965); Zaguia (1993).
  7. ^ Kisielewicz (1988).
  8. ^ Yamamoto (1953).
  9. ^ Church (1940).
  10. ^ a b Zaguia (1993).
  11. ^ Brown, K. S., Generating the monotone Boolean functions