TL;DR
This paper develops a computational method to generate extensive power series expansions for the free energy of the planar monomer-dimer model, surpassing previous results despite high complexity.
Contribution
It introduces a new approach to compute longer power series expansions for the monomer-dimer problem, enabling more accurate bounds and numerical estimates.
Findings
Computed nearly three times more terms than previous work.
Provided tighter bounds and more precise numerical values for free energy.
Demonstrated potential applicability to other complex models.
Abstract
We compute the free energy of the planar monomer-dimer model. Unlike the classical planar dimer model, an exact solution is not known in this case. Even the computation of the low-density power series expansion requires heavy and nontrivial computations. Despite of the exponential computational complexity, we compute almost three times more terms than were previously known. Such an expansion provides both lower and upper bound for the free energy, and allows to obtain more accurate numerical values than previously possible. We expect that our methods can be applied to other similar problems.
| [28] | Our estimate | |
|---|---|---|
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Power series expansions for
the planar monomer-dimer problem
Gleb Pogudin
Institute for Algebra, Johannes Kepler University, Linz, Austria
Abstract.
We compute the free energy of the planar monomer-dimer model. Unlike the classical planar dimer model, an exact solution is not known in this case. Even the computation of the low-density power series expansion requires heavy and nontrivial computations. Despite of the exponential computational complexity, we compute almost three times more terms than were previously known. Such an expansion provides both lower and upper bound for the free energy, and allows to obtain more accurate numerical values than previously possible. We expect that our methods can be applied to other similar problems.
Key words and phrases:
the monomer-dimer moodel; symbolic computation; cluster expansion; the free energy
This work was supported by the Austrian Science Fund FWF grant Y464-N18.
1. Introduction
The exact solution of the closed-packed dimer plane model obtained in [1, 2, 3] is a fundamental result in statistical mechanics and combinatorics. In particular, it implies that the number of tilings of rectangle using dimers grows as , where is the Catalan constant. Similar results were later obtained for other shapes (see [4] and references therein). Applications to physics suggest two natural further questions: what if the dimension of the lattice is higher (i.e. we compute the number of tilings of a hyperrectangle), and what if we consider tilings using both dimers and monomers with a fixed proportion. For the first question, we refer the reader to [5, 6, 7] and references therein. The second questions originates from the study of liquid mixtures on crystal surfaces in [8], see also [9] for comparison with experimental data. Monomer-dimer systems also arise in connection with the Ising model and the Heisenberg model, see [10, Sect. 5]. For both these questions, the exact solution is out of reach so far. However, even finding the answer numerically leads to very challenging computational problems, because the underlying combinatorial counting problems are very hard, and even a small change of the parameters of the problem makes computations much harder or even unfeasible. For example, in [11] it is proved that the monomer-dimer tilings counting problem is #P-complete in the sense of theoretical computer science.
In this paper we will focus on the second question, namely on the case of planar monomer-dimer tilings with fixed dimer density. Let us state the problem precisely. We denote by the number of tilings of an rectangle by monomers and dimers with exactly dimers, where are positive integers, and . Then is roughly the fraction of the area covered by dimers. We are interested in the limit
[TABLE]
In other words, we want to determine the constant such that as a function of . From the point of view of statistical mechanics, is equal to the negative of the Helmholtz free energy per lattice site expressed in units of the thermal energy . Some lower and upper bounds for were rigorously proved in [12, 13]. However, these bound are not very tight.
Another approach, taken in a series of papers [14, 15, 16] and independently in [17, IV.A] is to expand this function as a power series in (in some of these papers also expansion with respect to the dimension was discussed). In the former papers, the authors look for a representation of of the form
[TABLE]
In [17], the representation is of the form (see details in Section 2)
[TABLE]
Expanding into a Taylor series in , it is easy to move back and forth between (1) and (2) (see (18)). An important observation is that and for all known and . Under the assumption that this pattern holds for all , truncations of (1) and (2) provide lower and upper bound for , respectively. Thus, computing more terms of these series would result in tighter bounds for .
Previously, the record in the number of computed terms in (1) and (2) was (i.e. from till ) obtained in [16, Table II]. This result is highly nontrivial, because the underlying combinatorial problem has exponential complexity, so the cost of every next term is usually higher by some factor. In this paper, we compute terms (from to , see Table LABEL:table:ak) i.e., is almost three times more than what was previously possible.
The contribution of our paper is two-fold. First, our approach allows us to compute significantly more terms for both series (1) and (2) than were previously known and, combining them, we obtain very accurate values of . Moreover, we provide additional support for the important conjecture that and for all . Second, we show how methods of computer algebra (guessing, modular computation, etc.) can be applied to study models in statistical mechanics. We expect that our methods can be used in other problems of this type (monomer-polymer mixtures, other types of lattices, etc.) in order to push computational limits further.
The rest of the paper is organized as follows. In Section 2 we collect some known results and approaches that connect power series expansion of to the combinatorial data. Section 3 contains Theorem 1, a main combinatorial ingredient of our computation. Section 4 contains the description of our algorithm together with all computer algebra machinery used to speed it up. Finally, in Section 5 we describe our implementation, provide numerical results, and compare them to the previous work.
The author is grateful to Manuel Kauers and Doron Zeilberger for introducing him to the subject and for helpful discussions, and to the referees for the comments on the manuscript.
2. Reduction to grand-canonical partition function
For every fixed and , consider the grand-canonical partition function
[TABLE]
We consider a thermodynamic limit of (its existence is proved in [10, VIII])
[TABLE]
Since , . Theorems [10, 8.8A, 8.8B] rewritten in our notation (i.e., replacing with , with , with , and with ) state that
[TABLE]
We compute , where the expression is minimal
[TABLE]
hence
[TABLE]
Since , then . Hence, there exists a unique compositional inverse of and is a formal power series (see [18, Th. 1.8]). Moreover, .
Due to [10, Eq. 8.24], is a convex function in for all . Then equation (5) can be seen as a fact that as a function of is a Legendre transform of as a function of (for introduction to Legendre transform, see [19] and [20, §14]). Involutivity of Legendre transform (see [20, §14.C]) implies that
[TABLE]
and the supremum on the right-hand side is reached at . On the other hand, we can find this also by differentiation
[TABLE]
Hence, . Substituting into , we obtain . Integrating with respect to , and using the initial condition , we conclude that
[TABLE]
The same formula is obtained in [17, IV.A] using another argument.
Finally, we deduce expansion (2) from (8). Using , we conclude that
[TABLE]
The latter expression is exactly of the same form as the right-hand side in (2).
3. Computation of using
The goal of the present section is to prove the following theorem, which provides a way to compute the thermodynamical limit .
Theorem 1**.**
For every integer ,
[TABLE]
where .
In what follows, we will use some properties of the Mayer expansion following [21, Section 2.2].
Let be the first quadrant of the plane. We denote the rectangle whose lower-left corner is the origin by . By definition, for all and . We denote the set of all dimers in by . By definition, the cardinality of is , and for every . For , we introduce by
[TABLE]
Using this notation, the grand-canonical partition function introduced in (3) can be written as (see formula (1.1a) in [21])
[TABLE]
where stands for the set of all ordered -tuples of elements of . Unlike (3), formula (10) includes an infinite sum. However, since among every dimers there exists at least one pair of overlapping dimers, all terms with vanish. We introduce for every . Then (10) can be rewritten as (see formula (2.7) in [21])
[TABLE]
and denotes the set of all graphs on , and is the set of edges of a graph . Changing the order of summation, we obtain , where
[TABLE]
In [21, p. 1161] it is shown that (see formula (2.11a))
[TABLE]
where is the set of all connected graphs on . The above calculations work in quite general context and do not exploit the structure of . Now we will perform a more careful analysis of (12) and (13) in our setting.
For a tuple , we construct a graph with vertices labeled such that there is an edge between and if and only if and overlap. We call a tuple connected if the corresponding graph is connected. The set of connected tuples in of length is denoted by . For , we define the height (resp., the width) of to be the number of rows (resp., columns) having nontrivial intersection with at least one of the dimers in . We denote it by (resp., ). Two tuples and are said to be translation-equivalent if there exists a translation of the plane by some vector such that for every . This is an equivalence relation, and we write it as .
The following facts follow straightforwardly from the definitions
Lemma 1**.**
- (i)
For every tuple , the corresponding summand in (12) vanishes. 2. (ii)
If and are translation-equivalent, then for every graph . 3. (iii)
For every connected tuple , the number of tuples such that is exactly
[TABLE]
where .
We denote by a set of tuples in that contains exactly one representative of every equivalence class of translation-equivalent connected tuples. Due to Lemma 1 we can rewrite (12) as
[TABLE]
For , we define . Using this notation and (14), we can rewrite (13) as
[TABLE]
Hence
[TABLE]
Now we want to obtain a similar expression for defined in (4)
[TABLE]
Since , we obtain
[TABLE]
We are now ready to deduce Theorem 1 from (15) and (16).
Lemma 2**.**
For every
[TABLE]
Proof.
By Lemma 1, the coefficient of is equal to
[TABLE]
If , the above expression is equal to . Otherwise, it is equal to
[TABLE]
It can be verified by direct computation using the formula for the sum of squares that the latter expression is equal to . This proves the lemma. ∎
Fix some and . We will prove that all summands of the form on the left-hand side of (9) cancel. Since is connected, it contains at least horizontal dimers and at least vertical dimers. Hence, , so . This inequality together with Lemma 2 and (16) implies that the coefficient of on the left-hand side of (9) is equal to
[TABLE]
Expanding the brackets, we verify that this expression is zero for every . This concludes the proof of Theorem 1.
4. Description of the algorithm
4.1. General algorithm.
Combining (8) and Theorem 1, we obtain Algorithm 1, the first version of an algorithm for computing the first terms of . Note that
- •
line 1 is correct due to Theorem 1;
- •
- •
procedure is described in subsection 4.2;
- •
procedure computes a power series given a power series (see [18, Th. 1.8]).
Several improvements can be made:
- •
Computation of deals with a very long vector of possibly very large numbers (see Section 4.2). In order to fit into the memory, we perform computation modulo several primes and use chinese remaindering and rational reconstruction to obtain the final result (see Section 4.4).
- •
The output of Algorithm 1 with input , let us call it , coincides with only modulo . Nevertheless, the first few nonzero coefficients of turn out to satisfy linear recurrence relations with respect to , so they can be computed easily. This allows us to “correct” these terms and obtain a more precise result. See Section 4.3 for further details.
- •
Since we need only the first terms of , it is sufficient to compute only the first terms for every computed . Therefore, all intermediate polynomials can also be truncated.
With these improvements, we obtain the final version of our algorithm. For more details, see the source code (see Section 5.1).
4.2. Computation of .
We will compute using an optimization of the transfer–matrix method (see [22, §4.7]). Fix a positive integer . Let be a nonnegative integer, and . Viewing as a vector of bits, we denote the -th bit of by . We denote by the polygon obtained form the rectangle by adding one additional cell (we will call it an external cell) to the end of every row such that , where is the index of the row. For example, is shown on Figure 1. In particular, is the same as .
We introduce polynomial to be a generating function for the number of tilings of such that every external cell is covered by a horizontal dimer, i.e. , where is the number of monomer-dimer tilings of with exactly dimers such that every external cell is covered by a horizontal dimer. We will call such tilings rigid. In particular, . We denote by the vector .
Remark 1**.**
It can be shown (using techniques from [23, §V.6.]), that there exists a matrix with entries in such that . Hence, can be computed as the first coordinate of . However, in our computations can be any natural number up to , so can have entries. Luckily, the matrix is highly structured (see [24]), so there exists a faster algorithm for computing from .
We present an algorithm (Algorithm 2) that computes from in-place (i.e. with additional space) using arithmetic operations. We denote the number of ones in the binary representation of by .
Proposition 1**.**
Algorithm 2 is correct.
Proof.
We will prove by induction on that after the -th iteration of the loop in line 2 (for it means the moment just before the first iteration) is the generating polynomial for the number of monomer-dimer tilings of satisfying the following property:
property:* the tiling is rigid, and the right-most cell in rows with the number greater than is covered by a horizontal dimer. *
First we prove the base case, where . Due to the loop in line 2, . Since the binary representation of can be obtained from the binary representation of by inverting all bits, adding a horizontal dimer to the end of every row without an external cell provides us a bijection between the set of rigid tilings of and the set of tilings of with property (see Fig. 2). This map adds new dimers, so the corresponding generating polynomials differ by the factor .
Assume now that . For such that , properties and are the same, so the corresponding component of vector should not be changed. Assume that . We denote the last cell of the -th row in by . Consider an arbitrary monomer-dimer tilings of with property . There are three options for :
- (1)
Cell is covered by a horizontal dimer. Then this tiling has also property and is already counted in . 2. (2)
Cell is covered by a monomer. Replacing this monomer by a horizontal dimer, we establish a bijection between such tilings of and tilings of with property (see Figure 3). Due to the induction hypothesis, the generating polynomial for the latter is . Hence, in order to take into account tilings where is covered by a monomer, we should add to . This is equivalent to in line 2.
- (3)
Cell is covered by a vertical dimer. This dimer cannot cover also the cell below due to property. Hence, it covers and the cell above, say , so . Replacing this dimer with two horizontal dimers, we establish a bijection between such tilings of and tilings of with property . These cases are counted in line 2.
Since the property is just rigidness, after multiplication by an appropriate degree of in line 2 we obtain the vector . ∎
Remark 2**.**
Algorithm 2 can be parallelized. Consider an iteration of the loop in line 2 with . Then, during the iteration, coordinates of with different do not interact, so the whole vector can be divided into two halves (depending on ), and these halves can be processed by separate threads. Taking into accout , we can divide the work between four threads, and so on. In our computation, we used threads (so, we divided the work based on ).
Finally, using Algorithm 2, we can write a pseudocode for procedure , see Algorithm 3.
4.3. Correction terms
We can compute more terms of and, consequently, of if we examine carefully the right-hand side of (9). Below we write down the first nonzero term of the right-hand side of (9) for
[TABLE]
Denote the sequence of coefficients by . Using Guess package ([25], for introduction to guessing, see [26, §4]) we find that this sequence (we computed first terms) satisfies the following recurrence relation
[TABLE]
Using (17), we can compute easily, so we get one more correct term of . Instead of giving a rigorous proof of (17) which is long and involved, we would like to explain informally why it is natural to expect such a relation.
Formula (16) shows that the coefficient of in is a sum of weights of all connected polyominos constructed from overlapping dimers. On the other hand, the argument after Lemma 2 shows that the coefficient of in
[TABLE]
is a sum of weights over all connected polyominos constructed from overlapping dimers with the sum of height and width at most . Hence, the coefficient of in their difference is a sum of weights of all connected polyominos constructed from overlapping dimers with the sum of the height and the width exactly (the sum can not be larger for a connected polyomino). These requirements on a polyomino are quite restrictive, by a combinatorial argument one can see that all such polyominos are “of a similar shape” as those in Figure 5. More precisely, there exist two cells ( and in the figure), maybe coinciding, such that each of them is connected to two sides of an () rectangle by straight lines, and and are connected by a path such that at each step the path becomes closer to (all such paths have the same length). Counting such polyominos is a standard combinatorial problem (similar counting problems for polyominos are discussed in [22, §4.7.5]), that is very likely to result in a formula satisfying a linear recurrence.
Moreover, the same argument shows that there also should be a combinatorial description and a similar recurrence for the second nonzero term in the left-hand side of (9), the third, the fourth and so on. Our data was enough to discover and verify five formulas of this type (from the first until the fifth nonzero term in (9)). This is the recurrence for the second nonzero coefficient
[TABLE]
We omit the others, because they are too large. However, in our program we do not use recurrences themselves, but the closed form expression for their solutions. This allows us to compute five more terms of and, consequently, of .
4.4. Modular computation
The largest we used as an input of the algorithm in our computation was . Taking into account correction terms, this means that is invoked with parameters and . Hence, the vector in Algorithm 2 will have entries. Every entry is a polynomial (in our computations it is a truncated polynomial with only terms), hence in total we have integers at every moment. Since these integers represent the number of tilings of a rectangle, they grow fast, so storing them all exactly would require at least several terabytes of memory. However, the final result is a list of coefficients of a power series for , that is just rational numbers. A standard way to deal with such situation (see [26, §4.2]) is to use computations modulo prime for intermediate steps. If , then all numbers will fit into bits, and the whole vector will occupy just gigabytes. Repeating this computation for different primes, we can reconstruct the coefficients of using the chinese remaindering (see [27, §5.4]) and the rational reconstruction procedure (see [27, §5.10]).
The question is how many primes we should take. We start with , and add new prime numbers until the result of the reconstruction stabilizes. It turned out that fifteen prime numbers (from down to ) are enough, however we computed several more in order to make sure that the result is correct. The correctness of the result is further justified by the comparison in Section 5.
5. Numerical results and implementation
5.1. Implementation.
We implemented most of our algorithm in Sage except the function , which was implemented in C. See the source code in github.com/pogudingleb/monomer˙dimer˙tilings. Computation modulo one prime with took about two days using cores and gigabytes of memory. Since we need fifteen primes, the whole computation took about one month.
5.2. Numerical results.
Table LABEL:table:ak contains ’s (defied in (1)) obtain by our computation. Expanding into Taylor series at , we obtain the following formula expressing defined in (2) via :
[TABLE]
We introduce following truncated versions of (1) and (2)
[TABLE]
All computed values are positive, all computed values are negative. Assuming that this pattern persists, we can write
[TABLE]
This provides us with lower and upper bound for . We plot both and together for on Figure 6(a). Dashed curve on this plot is , that is the negative value of the free energy for monomer-monomer problem with two different types of monomers. We also plot both and for on Figure 6(b).
Plots of and in Figure 6(a) are indistinguishable, the difference between them in Figure 6(b) is visible only very close to . On Figure 6(b) we also see that lower bound is much more accurate at . The difference does not exceed for and for . Note that for (these two bounds could be computed using results of [16]) these numbers are and , respectively, so our bound reduces the error by several orders of magnitude.
5.3. Comparison with [28].
We already compared our result to the previously known best bound used power series expansion from [16]. However, another method of computing lower and upper bounds for based on the empirically observed inequality [28, Eq. 16] for strips was proposed in [28]. In this paper bounds for were computed (see [28, Table II]). We compare our results with this computation in Table 2. The table shows that for close to one Kong’s results may be more accurate. On the other hand, our bound is much more precise for .
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[1] P. W. Kasteleyn, “The statistics of dimers on a lattice,” Physica , vol. 27, pp. 1209–1225, 1961.
- 2[2] M. E. Fisher, “Statistical mechanics of dimers on a plane lattice,” Phys. Rev. , vol. 124, pp. 1664–1672, 1961.
- 3[3] H. N. Temperley and M. E. Fisher, “Dimer problem in statistical mechanics — an exact result,” Philisophical Magazine , vol. 6, no. 68, pp. 1061–1063, 1961.
- 4[4] H. Cohn, R. Kenyon, and J. Propp, “A variational principle for domino tilings,” Journal of Amer. Math. Soc. , vol. 14, no. 2, pp. 297–346, 2000.
- 5[5] M. Ciucu, “An improved upper bound for the 3-dimensional dimer problem,” Duke Math. J. , vol. 94, no. 1, pp. 1–11, 1998.
- 6[6] D. Gamarnik and D. Katz, “Sequential cavity method for computing free energy and surface pressure,” J. Statistical Physics , vol. 137, pp. 205–232, 2009.
- 7[7] M. Abért, P. Csikvári, and T. Hubai, “Matching measure, benjamini–schramm convergence and the monomer–dimer free energy,” Journal of Statistical Physics , vol. 161, pp. 16–34, Oct 2015.
- 8[8] R. H. Fowler and G. S. Rushbrooke, “An attempt to extend the statistical theory of perfect solutions,” Trans. Faraday Soc. , vol. 33, pp. 1272–1294, 1937.
