1. Introduction
Dedekind’s problem asks for the number
of monotone Boolean functions on
n variables. Equivalently,
equals each of the following quantities: the number of antichains in the Boolean lattice
under the coordinatewise order; the number of downsets of
; and the cardinality of the free distributive lattice on
n generators. The problem goes back to Dedekind’s 1897 work on free distributive structures [
1]; the free-distributive-lattice and early numerical literature is attributed to Church, Ward, and Yamamoto [
2,
3,
4]. Its elementary formulation hides an extreme computational difficulty: the known exact values currently stop at
.
The values up to
were obtained through a sequence of increasingly refined enumerations [
2,
3,
4]; Wiedemann computed
in 1991 [
5], and later algorithms of Fidytek et al. gave an independent algorithmic confirmation [
6]. Subsequent work developed recursive, interval, and downset-enumeration approaches to the same antichain lattice [
7,
8,
9]. A related line of work counts inequivalent monotone Boolean functions and fixed points of variable permutations using Burnside-type reductions [
10,
11,
12,
13]. More than three decades after
was obtained,
was computed by two independent projects. Jaekel used a matrix formulation together with symmetries of the free distributive lattice and formal concept analysis [
14]. Van Hirtum, De Causmaecker and collaborators used a P-coefficient formula, equivalence-class reductions, and FPGA supercomputing [
15]; the mathematical form of this computation and its extensions are developed further in [
16]. Independent congruence checks for the ninth Dedekind number were also obtained by Pawelski and Szepietowski [
17]. Both computations produced
Theseexact computations reduce an enormous finite sum by algebraic structure, symmetry, interval decompositions, and specialized hardware. Their primary output is the total
. This should be distinguished from the finer Whitney-number sequence
where
is the
k-th Whitney number of the second kind (or rank number) of
, ranked by ideal cardinality [
18], Chapter 3. This sequence records how the total Dedekind number is distributed over the ranks of the ideal lattice. To our knowledge, exact complete rows of this Whitney-number sequence are currently available only through
[
19]. One advantage of the layer-ratio approach below is that it reconstructs this sequence directly, rather than merely estimating its sum.
The existing exact computations use several concrete reductions. Jäkel’s computation combines matrix enumeration with Formal Concept Analysis and canonical representations of colored graphs to identify (anti-)isomorphic lattice intervals and pairs [
14]. The independent computation by Van Hirtum et al. rewrites the P-coefficient formula using equivalence classes and dual-pair deduplication, and evaluates the resulting component-counting workload in parallel on FPGA hardware [
15,
16]. Recursive algorithms and direct downset enumeration provide further exact approaches at smaller dimensions [
6,
9]. These methods return certified integer counts. Our layer-ratio method samples fixed-cardinality layers and reconstructs the Whitney-number profile together with its sum. It returns a finite-
n numerical estimate whose empirical variability and sampling behavior are evaluated by the stated diagnostics. A detailed comparison of these methods and their outputs is provided in
Table 1.
In parallel, a separate line of work involves the asymptotic study of Dedekind’s problem. Kleitman proved that
is asymptotic to the size of the largest layer of the Boolean lattice [
20]; the error term was sharpened by Kleitman and Markowsky [
21]. Korshunov later obtained asymptotics for
itself [
22,
23]. Kahn gave an entropy-based proof of the Kleitman–Markowsky bound through independent sets and antichains [
24]; the same independent-set viewpoint also appears in related work on maximal antichains [
25]. Korshunov and Shmulevich studied the distribution of monotone Boolean functions by the number of lower units, equivalently the number of terms in the minimal DNF [
26]. More recently, cluster-expansion methods from statistical physics have yielded refined asymptotics for Dedekind’s problem and for antichains of prescribed size [
27]. These results explain why most of the mass is controlled by the central layers of the Boolean lattice, and they give powerful asymptotic information. Recent work has also developed related variants and generalizations of Dedekind-type counting problems [
28,
29,
30,
31,
32]. Our objective is to construct a finite-
n numerical estimator for values such as
.
We develop a finite-
n sampling method that reconstructs the Whitney numbers of the downset lattice. Decompose the set of all downsets by cardinality as follows:
Then
Thus,
is the sum of the finite Whitney-number sequence
.
For a downset
, let
and
be the numbers of elements that can be added to or removed from
D, respectively, while preserving the downset property. Double-counting cover edges between adjacent layers gives
where
denotes expectation under the uniform distribution on
. Thus, the global sequence of Whitney numbers can be reconstructed from fixed-layer averages.
Fixed-layer (or microcanonical) Monte Carlo runs a chain on the constrained finite state space with cardinality held fixed. The target distribution is uniform on that layer. In the present application, a reversible exchange chain estimates the layer averages of the local boundary statistics A and R. The adjacent-layer double-counting identity converts these averages into the ratio , and accumulation of the ratios recovers the Whitney-number profile. The construction uses the adjacent-layer geometry of the downset lattice.
The layer-ratio construction is related to the broad-histogram approach in statistical mechanics. de Oliveira, Penna, and Herrmann introduced the broad-histogram method for estimating the degeneracy
, the number of microscopic configurations at energy
E, from microcanonical averages of local transition multiplicities [
33]. de Oliveira subsequently showed that the underlying broad-histogram relation is exact under the appropriate reversibility assumptions [
34], namely
so that a density-of-states (DOS) ratio is obtained from fixed-energy averages of the numbers of upward and downward moves. In the present combinatorial setting,
is the exact degeneracy of the cardinality shell
,
is its uniform microcanonical analogue, and
A and
R are the upward and downward local transition multiplicities. Therefore,
has the same double-counting structure, and accumulating its ratios reconstructs the analogue of
. The correspondence concerns the relation between adjacent shells and local transition counts. In the present setting,
k is the downset cardinality coordinate, and the layer measures are uniform on the finite sets
.
Conceptually, the ratio step is therefore in the spirit of broad-histogram identities, but here, it is specialized to the fixed-cardinality layers of the downset lattice. General Monte Carlo schemes for finite-set size estimation, such as cascading exclusion [
35], follow a different statistical route: the present method uses the adjacent-layer geometry specific to downsets of the Boolean lattice. The main contributions are as follows.
We formulate Dedekind-number estimation as a finite-n reconstruction problem for the Whitney numbers of the downset lattice, rather than only for the total count .
We give a fixed-layer Monte Carlo implementation of the adjacent-ratio estimator together with a log-space reconstruction procedure, validate the resulting estimates at the known values and , and use those cases to calibrate seed-level variability, where a seed means one independent repetition of the fixed protocol.
We apply the calibrated protocol to estimate and analyze the finite-n layer shape, including the two-shoulder structure at and the higher-contrast odd-dimensional center-window patterns at and .
The remainder of this paper is organized as follows.
Section 2 develops the finite-
n layer-ratio framework, including the layer decomposition, the adjacent-layer identity, fixed-layer sampling, deterministic reconstruction, consistency, and the numerical protocol.
Section 3 presents the main numerical results, including the known-value validation, the
estimate, and the reconstructed Whitney-number shapes.
Appendix A records the
production protocol and additional validation diagnostics.
2. Theory and Method
2.1. Layer Decomposition and Ratio Identity
We use the coordinate model of the Boolean lattice,
. Its order is the coordinatewise order. Thus, for
,
We write
when
and
.
A subset
is a downset if
The
nth Dedekind number is
Equivalently,
counts monotone Boolean functions and antichains. Let
. The downsets are ranked by cardinality: for
, write
and
The number
is the
k-th Whitney number of the second kind (or rank number) of the ranked ideal lattice
. The sequence
is therefore the Whitney-number sequence of
, and
When
n is fixed, we suppress it from the notation when this causes no ambiguity. Let
be the uniform probability measure on
. For any real-valued function
, define
For each layer used below, is a finite nonempty set. We use the power-set sigma algebra and the uniform probability measure . Thus, for every , and . The displayed expectation is the integral of F with respect to .
Let denote the Whitney number of the second kind (the rank number) at rank k. By definition, , and the adjacent-layer ratio is . The notation refers to these second-kind Whitney numbers throughout.
There is a useful boxed-partition viewpoint for these definitions. An
n-dimensional partition may be viewed as a finite set of boxes in
satisfying the melting rule: whenever a box is present, all coordinatewise smaller boxes are present. This is the box form of MacMahon’s plane partition and higher-dimensional partitions [
36,
37], using the recent terminology of [
38]. Restricting the ambient corner to the
box
gives exactly the downsets of
. Thus,
is the number of legal boxed configurations in the
n-dimensional Boolean box of side length 2, and the Whitney number
counts those configurations with exactly
k occupied boxes; see
Figure 1.
Intersecting a legal boxed configuration with the finite Boolean box gives a bijection with a downset , where k is the number of occupied boxes. The boxed configurations in the k-box slice are therefore the elements of , and assigns mass to each configuration. For any statistic F, is the uniform average over the legal boxed configurations with k occupied boxes.
For
, let
and
Equivalently,
where the minimum and maximum are taken with respect to ⪯.
The global enumeration can now be expressed in terms of cover edges between adjacent cardinality layers. Let
be the set of cover edges between the two adjacent layers. Since
, every edge has the form
for a unique element
. Equivalently,
x is addable for
D, and the same
x is removable for
.
Theorem 1 (Layer-ratio reconstruction)
. For ,Consequently,If the addable/removable averages and are known for all relevant layers, then the whole Whitney-number sequence is determined byEquivalently, Proof. Fix
k with
. Each layer
,
, is nonempty: a linear extension of
has an initial segment of every cardinality, and every such initial segment is a downset. Thus,
. The set
consists of pairs
with
,
, and
. Because
, every such pair has a unique representation
for some
. The pair belongs to
if and only if
is a downset, which is exactly the condition that
x is addable to
D. Thus, for a fixed
, the map
is a bijection from the addable elements of
D to the edges in
, whose lower endpoint is
D. There are
such edges. Since every edge has exactly one lower endpoint, counting by lower endpoints gives
Now, fix an upper-layer configuration
. If
is removable, then
is a downset in
, and
. Conversely, every edge ending at
is obtained from its unique removed element in this way. Hence, the edges in
whose upper endpoint is
are in bijection with the removable elements of
, and their number is
. Counting by upper endpoints therefore gives
The layer measures are uniform, so the definitions of the expectations give
Substituting these formulae into the two endpoint counts yields
This proves the first assertion. Because
, every
has at least one addable element: choose a minimal element of the nonempty complement
. Likewise, every nonempty downset
has a maximal element and hence at least one removable element. Thus,
and
, and division gives
Finally,
. Applying the ratio identity successively for
gives, by induction,
Summing these layer counts over
gives
. □
The adjacent-layer identity is a finite-poset analogue of the exact broad-histogram relation: consecutive Whitney-number ratios are obtained from fixed-layer averages of addable and removable element counts, without imposing a parametric model on the sequence
[
33,
34].
2.2. Fixed-Layer Sampling
For a fixed
n and a fixed layer
, the Markov chain used in this paper has state space
. Its purpose is to sample approximately from the uniform layer measure
, so that averages of the addable/removable statistics
A and
R approximate the microcanonical expectations
and
. The sampling and boundary-measurement mechanism is illustrated in the three-dimensional example in
Figure 2.
The elementary move is an exchange move. Starting from a downset
, first delete a removable vertex, and then add an addable vertex, as follows:
Here,
By the extremal characterization of addable and removable elements above, deleting
u preserves the downset property, and adding
v to
also preserves it. Therefore,
. If
, then
, giving a natural self-loop.
The exchange graph
has vertex set
, with an edge between two distinct states
D and
if they differ by deleting one element and adding one element, as above. The Markov chain is a Metropolis–Hastings chain on this graph, with the self-loops coming both from trivial proposals and from rejected nontrivial proposals [
39,
40].
Assume first that . Given , the proposal is:
- 1.
Choose u uniformly from the removable vertices of D;
- 2.
Set ;
- 3.
Choose v uniformly from the addable vertices of ;
- 4.
Propose .
Fora nontrivial proposal
, the removed and added vertices are unique. Write
Then, the proposal probability from
D to
is
The reverse proposal deletes
v from
and adds
u back to the same intermediate downset
H, so
The target distribution on
is uniform. Hence, the Metropolis–Hastings acceptance probability for a nontrivial proposal is
If the proposal is rejected, the chain remains at
D. If
, the proposal is already
D and is treated as an accepted self-loop. The endpoint layers
and
are singletons, so the chain is the trivial stationary chain there.
Lemma 1 (Stationarity). For each , the uniform distribution on is stationary for the transition kernel described above.
Proof. For
and
, the state space is a singleton, so the claim is immediate. Suppose
. It is enough to verify detailed balance for distinct neighboring states
. Since
is uniform, detailed balance reduces to
Using the formula above, with
, the left-hand side is
The same expression is obtained after exchanging
D and
. Hence, detailed balance holds for every off-diagonal transition. The diagonal terms then balance automatically because each row of the transition matrix sums to one. Therefore,
is stationary. □
Lemma 2 (Connectivity of fixed layers). For every , the exchange graph is connected.
Proof. The cases and are trivial. Let , and take two states . If , there is nothing to prove.
Assume . Choose an element u maximal in with respect to ⪯. Then, u is also maximal in D. Indeed, suppose that there exists strictly above u, that is, . If , then , contradicting the maximality of u in . If , then the downset property of E, together with , implies , again a contradiction. Hence, , so deleting u preserves the downset property.
Next, choose an element v minimal in , again with respect to ⪯. We claim that v is addable to . Let . Since and E is a downset, we have . If , then , contradicting the minimality of v. Thus, every lies in D. Moreover, : if , then and would imply , contradicting . Therefore, every lies in , so is a downset.
Thus,
is a legal exchange move in
. Since
is removed and
is added, we have
Repeating the same argument finitely many times reaches
E. Hence, every two states in
are connected by legal exchange moves, so
is connected. □
Proposition 1 (Ergodicity of the fixed-layer chain). For every , the fixed-layer chain is irreducible and aperiodic. Consequently, for a fixed n and k, the empirical averages of A and R along the chain, from any initial state, converge almost surely to and , respectively. Discarding any fixed finite burn-in does not change these limits.
Proof. Irreducibility follows from Lemma 2, because every edge of has a positive proposal probability and positive acceptance probability.
For aperiodicity, consider first
. At any state
D, choose any removable vertex
. After deleting
u, the same vertex
u is addable to
. Thus, the proposal can choose
, which returns immediately to
D with positive probability. Hence, every state has a positive self-loop. The singleton layers
and
are also aperiodic. Therefore, the chain is aperiodic in all layers. Together with Lemma 1, the finite-state Markov-chain ergodic theorem applies to any real-valued function on
, in particular to
A and
R ([
41] Chapter 4). □
2.3. Estimator, Reconstruction, and Consistency
Fix
n, and let
. The estimator works layer by layer. For a sampled layer
k, let
be the number of fixed-layer chains run on
. Chain
c contributes
recorded states after burn-in and thinning; we write these states as
The total number of recorded states in layer
k is
The empirical layer means of the addable and removable counts are then
Here,
and
are the addable and removable counts defined in
Section 2.1. These quantities are empirical means over the recorded states. Each recorded state contributes one value of the corresponding bounded statistic, and the denominator
is the number of recorded states pooled for that layer. The endpoint means needed for adjacent ratios are exact, at
because the empty downset has exactly one addable element, and the full downset
has exactly one removable element.
The Boolean lattice has an order-reversing complement map
It induces a duality on downsets:
Equivalently,
is the complement in
of the image of
D under
.
Lemma 3 (Layer duality)
. For every downset , is a downset, , and . Consequently,Moreover,Hence, Proof. The complement map is order-reversing. Therefore, taking the complement of the image of D sends downsets to downsets, changes the size from to , and is its own inverse. Under the same order-reversing bijection, minimal elements of correspond to maximal elements of , and maximal elements of D correspond to minimal elements of . Hence, addable and removable vertices are exchanged, which gives the identities for A and R. Averaging over the bijection gives the expectation identities. □
The symmetry
is the same rank symmetry recorded for the level polynomials of free distributive lattices by Markowsky [
42]; with the two endpoint ideals omitted, it appears in OEIS A269699 as
[
19]. The same duality map also exchanges adjacent-layer boundaries: the addable elements of
D are in bijection with the removable elements of
, and conversely.
The use of Lemma 3 is not a prior estimate of the unknown answer. It is an exact automorphism identity of the finite poset. In practice, it lets us mirror sampled layer summaries, reduce redundant work, and check whether independently sampled mirror layers agree within their empirical uncertainty.
For the reported half-row reconstructions, define the exact adjacent ratio and its plug-in estimator on the sampled side by
By Theorem 1,
so
is obtained by replacing the two exact layer averages by their sampled estimates.
The reconstruction is performed on the logarithmic scale. Set
Starting from the exact endpoint value
, form the cumulative log Whitney numbers on the sampled half
In the reported numerical reconstructions, only one side of each dual pair is used for the production estimate. The remaining layers are filled by the exact rank duality
:
The reconstructed Whitney number is
and the Dedekind-number estimate is computed stably by log-sum-exp:
Since
and
, taking the logarithm yields the displayed identity. The shift
m keeps the exponentials in the sum at most to one and provides the standard numerically stable log-sum-exp evaluation. Once the addable and removable averages have been sampled, the reported
estimate is determined entirely by this reconstruction and the exact Boolean-lattice duality; the procedure introduces neither fitted smoothing weights nor penalty parameters.
The reconstruction is a deterministic finite-dimensional map once the empirical inputs have been computed. The MCMC trajectories, random seeds, and recorded states determine these inputs. The successive operations are then arithmetic operations. Seed-level summaries, bootstrap, jackknife, and split-half calculations quantify variation across the resulting estimates.
Theorem 2 (Fixed-
n consistency)
. Fix n, and write . For each layer , suppose that the layer averages used in the reconstruction satisfyfor all needed k, where B denotes the total number of recorded states in the fixed-n Monte Carlo budget and the layer budgets grow in fixed positive proportions. Let be obtained from the estimated log-ratios by the deterministic log Whitney-number reconstruction described above. Then,Equivalently, for every ,If the addable and removable averages converge almost surely under the same regime, then almost surely. Proof. All exact means appearing in the ratios are strictly positive. Therefore, by the continuous mapping theorem,
where the last equality follows from the adjacent-layer identity in Theorem 1. Because
n is fixed, the number of layers is finite, so the estimated log-ratio vector converges to the exact log-ratio vector.
The reconstruction from log-ratios to log Whitney numbers is a continuous finite-dimensional map. With the exact ratios, anchored at , it recovers the exact Whitney numbers, and hence, . The continuous mapping theorem therefore gives . If the fixed-layer sample averages converge almost surely, the same continuity argument gives almost-sure convergence. □
Proposition 2 (Long-chain fixed-
n Monte Carlo scaling)
. Fix n and a finite set of sampled layers J. Let K be the set of adjacent log-ratios estimated by the protocol. For , writeLet and . Consider the following budget-indexed long-chain regime. On layer , use the same fixed reversible transition kernel at every budget and run a fixed positive number of independent chains. Each chain has a fixed initial law, discards a fixed burn-in , uses a fixed thinning interval, and then records states. PutAssume independent random streams across chains and sampled layers. Then, the finite-state Markov-chain CLT and the delta method giveHere, is the asymptotic covariance matrix of the estimated log-ratio vector in this long-chain regime. Consequently, for the reconstructed total, there is a finite constant such thatConsequently, Proof. For a fixed n, each retained-state chain is a finite-state irreducible aperiodic Markov chain with a uniform stationary measure. Because A and R are bounded on the finite state space, the Markov-chain CLT applies to their time averages from any fixed initial law.
The initialization contribution is negligible at the required scale. Indeed, geometric convergence on a finite irreducible aperiodic state space implies, for either bounded statistic
,
The initialization bias of a chain average is therefore
. Since
is fixed and
, we have
, and hence,
Thus, the fixed initializations and burn-ins do not alter the centered
-limit. The fixed numbers of independent chains can be pooled, and the positive layer-budget proportions give a joint CLT for all required addable/removable averages. Because the exact means
and
in the ratios are strictly positive, the delta method propagates this CLT first to the adjacent log-ratios and then through the smooth finite-dimensional reconstruction map
. □
Numerical Protocol
All numerical runs use a fixed uniform allocation across sampled layers. Before a run, we fix the sampled layers, use of duality, number of chains, recorded states per chain, burn-in, thinning, and seed range. Each seed repeats the same procedure and produces one complete reconstruction. Here, “uniform” refers to the allocation of effort over sampled layers; within each layer, the Markov chain targets the uniform measure on
. The production-level choices for
, including the sampled layer set, chain layout, burn-in, thinning, reconstruction rule, and seed-level uncertainty calculation, are specified in
Appendix A.1.
All reported uncertainties are computed at the seed level. Internally, a seed produces
under the fixed protocol. For known backtests, we report
For unknown cases, the same seed-level log estimates give seed standard errors, percentile bootstrap intervals, jackknife standard errors, and split-half diagnostics [
43]. These quantify variation among independent repetitions of the fixed estimator; possible shared finite-chain bias is probed separately by the burn-in/thinning, chain-layout, and seed-level mixing checks in
Appendix A. Numerical tables and figures report log errors and standard errors in
units; the theoretical statements above use natural logarithms.
The long-chain limit in Proposition 2 and the replication of a fixed finite production protocol are distinct asymptotic statements. For the latter, let
be the log estimate from seed
s, let
, and suppose that the fixed protocol uses
recorded states per seed. Independent seeds with finite variance satisfy the ordinary iid (independent and identically distributed) limit
Since
, this standard error is equivalently
, where
. This replication limit is centered at the expectation of the stated finite protocol. The long-chain proposition instead increases the records per chain and is centered at
.
4. Discussion
The method provides a finite-n Monte Carlo reconstruction that complements exact enumeration. It recovers the Whitney-number profile from local adjacent-layer ratios and sums that profile to estimate . Asymptotic and cluster-expansion formulae remain important reference points for the scale of , but they do not by themselves provide a data-driven uncertainty estimate for a specific unknown finite case.
Although the reconstruction is a product of adjacent ratios on the original scale, the calculation is carried out in log space. Local ratio errors therefore accumulate additively in the reconstructed log Whitney numbers. To the first order,
where
s is the sensitivity of the log-sum-exp reconstruction to the adjacent log-ratios and
is their Monte Carlo covariance. The known-value tests and cross-
n scaling measure this accumulated error after reconstruction.
The two-shoulder structure in odd-dimensional cases is a counterintuitive feature of the reconstructed Whitney-number profile. The rank-unimodality of this sequence is an empirical description in this setting, not a consequence of the exact rank duality. The duality only enforces symmetry of the profile about the center. It does not require the central coefficient to be maximal. Therefore, a symmetric two-shoulder profile, with a center valley between two equal off-center shoulders, is compatible with the duality even though it contradicts unimodality. A mathematical explanation of this structure remains open; the evidence presented here is numerical and restricted to a finite n.
The long-chain law of Proposition 2 applies when the number of post-burn-in records per chain tends to infinity. The cross-dimensional experiment instead repeats a fixed finite protocol and estimates the seed-replication coefficient
around that protocol’s expectation. The cross-
n fit estimates how
changes with dimension. In the tested dimensions, this change appears regular: at a fixed recorded-state budget, the seed-level log standard error grows by about a factor
per added dimension. We use this empirical regularity as a budget forecast for
. One possible explanation is that the final log-sum-exp is most sensitive to the part of the reconstructed Whitney-number profile carrying the largest mass, so the effective error propagation may be governed by a relatively narrow central range of adjacent ratios. If the local addable/removable statistics and chain autocorrelations in that range change regularly with
n, then the fitted prefactor
can also vary regularly. This explanation is heuristic.
The known-value backtests at and are consistent with the measured seed-level variability, and the cross-n experiment gives a practical budget scale for . The principal limitation is that the combinatorial identity determines the exact target ratios but does not guarantee the finite-run accuracy of their Monte Carlo estimates. Finite-run mixing, autocorrelation, and error propagation through the reconstructed log Whitney numbers therefore remain empirical diagnostics.