Balance in four- and six-leaf samples follows an eightfold cycle near a perfectly even tree
Why it matters
How often four random tips of a branching tree divide two against two limits how often six tips can divide three against three. The limit follows a repeating pattern: as the tree approaches perfect balance, the pattern returns each time the four-tip shortfall shrinks eightfold.
One way to measure how evenly a binary tree branches is to pick a few leaves and see how they divide at the first fork that separates them. In the limit of large trees, four-leaf and six-leaf samples both have the best chance of dividing in half when every fork has equally many leaves on each side. Knowing these two maxima leaves a question unanswered. If four-leaf samples divide equally less often, how far must the six-leaf probability fall?
Measure each loss as a fraction of its own maximum. We prove that a four-leaf loss of d forces a six-leaf loss of at least d^{5/3}. The minimum equals that power at d=1,1/8,1/64,\ldots and exceeds it everywhere between, even if we average over trees. As the losses approach zero, the ratio of the minimum to d^{5/3} follows a repeating curve: shrinking d eightfold takes it through one cycle. At the geometric midpoint between successive exact values, the limiting minimum is between 1.19 and 1.60 times d^{5/3}.
Measuring balance with a sample of leaves
In a rooted binary tree, each fork leads to two children. Choose leaves uniformly without replacement. Trace their paths from the root until they first take different branches. This fork is their lowest common ancestor. For an even sample size p, an equal first split means that each child of this ancestor contains half the sample. Write P_p for the limiting probability of an equal first split as the number of leaves grows along a sequence of trees. For four leaves an equal split specifies the entire branching pattern connecting the sample: each side is a pair. For six leaves each side is a triple, and there is only one binary branching pattern on three leaves if we ignore their labels. For larger samples we count all patterns with an equal first split.
In the completely even tree, the chance of an equal split at the root is \binom p{p/2}2^{-p}. With probability 2^{1-p} all sampled leaves enter the same child, where they face the same split again. Accounting for these repeated chances gives the even-tree probability A_p. We use it to define the relative shortfall d_p:
For four and six leaves the benchmarks are 3/7 and 10/31. Czabarka, Székely and Wagner [1] proved that these are the largest possible probabilities for the respective sample shapes. Brosch and Puges [2] studied which pairs of probabilities trees can attain, plotting 1-P_4 for the four-leaf coordinate. They established another point on the boundary besides the even tree: (P_4,P_6)=(3/8,5/16). The tree giving this pair splits evenly at the root, then grows as a comb on each side. A comb peels off one leaf at each fork, so a sample of four or more leaves inside it cannot split equally.
To move from a comb toward the completely even tree, keep the first h levels of the even tree and put equal-sized combs at the ends of its 2^h branches. The sample encounters a different first split only if all its leaves enter the same comb. That happens with limiting probability 2^{-h(p-1)}. There the chance of an equal split falls from A_p to zero. Thus d_4=8^{-h} and d_6=32^{-h}=d_4^{5/3}. Each additional even level divides the two losses by eight and 32 respectively. Could another branching pattern give a smaller six-leaf loss, or reach the same power curve between levels?
Powers of two also appear in a different measure of balance, the Colless index. It sums the difference in child leaf counts (larger minus smaller) over all forks. Its minimum depends on the binary digits of the total number of leaves [3]. For the two sampling probabilities, the quantity that sets the cycle is the shortfall from the maximum.
The smallest possible loss
The whole-level trees just described achieve the smallest six-leaf loss at their respective four-leaf losses. The result extends to any two even sample sizes 4\le p<q. Write g=(q-1)/(p-1) for the power relating the losses and B=2^{p-1} for the factor by which an extra equal level divides the smaller sample's loss. Allow a mixture of trees: choose a tree at random, then draw all sampled leaves from that tree. Each mixture gives a weighted average of the trees' loss pairs. These averages and their limits form the closed convex hull of all limiting pairs. Its lower boundary, f(d), is the least loss d_q possible at d_p=d.
As d\downarrow0, the boundary satisfies
Here o(1) tends to zero with d. The argument of L counts how many factors of B the loss has shrunk from one. The function L is continuous with period one: a further factor of B returns it to the same value. Its minimum is one, attained exactly at the integers. In fact there is a constant e=e(p,q)>0 such that for every 0<d\le1,
At d=B^{-h}, for every integer h\ge0, the tree with h equal levels above combs attains f(d)=d^g.
The size of the cycle
To bound the minimum loss from above, mix two trees whose numbers of equal levels differ by one. Write a shortfall as d=B^{-h}a, with 1/B\le a\le1. In coordinates scaled by B^h horizontally and B^{hg} vertically, the two trees have deficit pairs (1/B,B^{-g}) and (1,1). Every point on the line segment between them is attainable. The position within this cycle, measured on the logarithmic scale, is its phase t=\log_B(1/a). Combining the line segment with (1) gives
These same bounds hold before taking a limit, for the ratio f(d)/d^g. For four and six leaves we prove below that e=0.19 works. At mid-cycle the adjacent-level upper bound is 1.6082; at three quarters it is 1.6899 (rounded).
One unequal fork improves the upper bound at every interior phase for this pair. Think of a branch’s mass as its share of all leaves. Divide the mass at the root into fractions b=515/1024 and 1-b, split the larger arm exactly in half, and put combs on the three tips. Its deficits are
The two subtracted terms count equal splits at the root and at the fork on the larger arm, respectively. In coordinates scaled by eight and 32 this gives (a_*,c_*)=(8d_4,32d_6)\approx(0.552636,0.501538). It lies strictly below the adjacent-level line: 1+(31/28)(a_*-1)-c_*>0.0031 by substitution. Mix this tree with each of the two whole-level trees in turn. This gives two attainable line segments below the original one. Putting identical copies under equal roots reproduces the segments at smaller losses, so they bound L more tightly throughout the open interval. At mid-cycle this brings the upper bound down to 1.599 (rounded up).

Figure 1. The shaded band contains the sharp limiting coefficient for four and six leaves. Its lower edge is the proved sine-squared bound. The dashed upper curve uses only whole levels; the solid upper curve also uses the tree with one unequal fork. The two upper curves nearly coincide. Only at their endpoints is the upper bound known to equal the sharp coefficient.
For a numerical estimate from above, we also searched grids of up to 1,024 mass units. For each mass we considered ending the branch in a comb or dividing its units between two children in every possible integer proportion. We rewarded four-leaf loss and penalized six-leaf loss, keeping the pair with the largest weighted difference. We varied the relative weight around the slope of the line joining two adjacent whole-level pairs. Mixing the resulting pairs gave the lowest six-leaf loss attainable from those pairs at each phase. Dividing that loss by the four-leaf loss raised to the power 5/3 gave estimates of the coefficient from above. At phases 1/8,2/8,\ldots,7/8 these estimates are 1.15, 1.30, 1.46, 1.60, 1.69, 1.68 and 1.50, respectively. The estimates at those phases changed by less than 0.001 between 512 and 1,024 units when compared between the same two whole-level losses.
How an unequal fork changes the two losses
To prove the bound for trees of arbitrary size, we work with finite patterns of forks. Assign a mass to each tip and grow a comb there in proportion to that mass. The sampling probabilities of the resulting trees converge to those of the mass model. Conversely, take any n-leaf tree as a pattern with equal tip masses. Sampling independently from those masses gives the original sample law conditional on hitting distinct tips, and the chance of a repeat is at most \binom q2/n for samples of size at most q. A uniform bound on the mass models therefore extends to every limit.
For total mass one, a fork with child masses a,b contributes \binom p{p/2}(ab)^{p/2} to P_p. Summing counts each successful sample at its first split. For samples drawn entirely within one branch, define its conditional deficit using the same benchmark as for the whole tree. At its first fork let u\le1/2 and v=1-u be the two fractions of its mass. The parent's conditional deficit is the sum of its child deficits weighted by u^p,v^p, plus a local deficit l_p E_p(u), where
The local deficit is zero at a half split. An unequal fork imposes a larger local penalty at the larger sample size. Specifically, the normalized local terms satisfy
for some c_{pq}>0.
To prove (2), put z=1-2u. Draw a random positive even index R_p=r with probability proportional to \binom pr. Expanding (1+z)^p+(1-z)^p gives
Raising p to q shifts the index distribution toward larger values: the ratio \binom qr/\binom pr increases with r on the common support, and the new distribution extends farther. The normalized probabilities thus cross at most once from smaller to larger, so the chance that the index exceeds any given threshold is at least as large under q as under p, and its mean is strictly larger. In E_q-E_p, the term \mathbb E z^{R_p}-\mathbb E z^{R_q} is consequently nonnegative. Near u=0 it equals 2u(\mathbb E R_q-\mathbb E R_p)+O(u^2). The other term, (1-z^2)^{p/2}-(1-z^2)^{q/2}, is positive in the interior and asymptotic to (q-p)z^2/2 near u=1/2. These endpoint estimates and continuity in between prove the lower bound in (2). Starting the same comparison at E_2=0 proves nonnegativity. In particular, the recursion from comb tips gives d_p\ge0, so the even benchmark is a maximum at every order considered here.
Bounding the loss over a whole tree
To turn a cost at each fork into a bound for the tree, give a branch a high score for a large loss at sample size p and a small loss at size q. We now measure mass in units that let the root have any mass X; changing units changes the relative weight of the two losses. For a branch of mass x with conditional deficits a=d_p,b=d_q, use the score g x^p a-x^q b. Stopping in a comb scores C(x)=g x^p-x^q. Its score per unit mass has a unique maximum g-1 at x=1 because g(p-1)=q-1.
At a fork the parent score equals the sum of child scores minus the cost
There are two mass ranges. Set s=(g l_p/l_q)^{1/(q-p)}. For x\le s, stopping is optimal: compared with a comb, each fork introduced at mass y\le x adds
to the score, by the direct probability count. For x\ge s, the coefficient of E_q in T is at least the coefficient subtracted against E_p. By (2),
This cost lets us lower the per-mass bound g-1 at every scale between powers of two. Put w(x)=\sin^2(\pi\log_2 x). We claim that for sufficiently small e>0 every branch score is at most
For a comb this follows from the strict quadratic maximum of C(x)/x at one. In the variable y=\log x, the gap is (q-1)(q-p)y^2/2+O(y^3), whereas w(x)\sim(\pi y/\log 2)^2. Away from one the gap is bounded below, since it tends to g-1 at zero and grows without bound at infinity. Since a comb is optimal up to mass s, the comb bound covers every branching pattern in that range.
For a larger branch, suppose both children satisfy (3). Adding their bounds and subtracting the fork cost proves (3) for the parent if T/x is at least e[w(x)-u w(ux)-v w(vx)]. At a half split the bracket vanishes because halving preserves w. Its first derivative in u vanishes there by symmetry; its second derivative is uniformly bounded near 1/2 because w is smooth and periodic in log mass. Near u=0, write the bracket as u[w(x)-w(ux)]+v[w(x)-w(vx)]. The first term is at most u and the second at most (\pi/\log 2)v|\log v|\le (\pi/\log 2)u. Thus the bracket is bounded above by M u(1-2u)^2 for a constant M independent of x. The lower bound on T/x contains the same factor u(1-2u)^2, so one choice of sufficiently small e works at every fork. Induction proves (3) at the root. For fixed X it bounds a linear score, so it holds on the closed convex hull as well.
At X=2^h, equal subdivision down to mass one makes every fork cost zero and every comb attain the maximum per unit mass. To bound the q-leaf loss for any specified d_p=d>0, choose X=d^{-1/(p-1)}. Then X^{p-1}d=1, and dividing (3) by X gives X^{q-1}d_q\ge1+e w(X). This is (1), including strict separation from the plain power between whole levels.
Why the coefficient converges
Inequality (1) puts a repeating lower bound on the loss ratio. To see why the minimum ratio itself approaches a repeating curve, consider what happens when we add one equal level. Joining two identical trees below an equal root maps a loss pair (a,b)=(d_p,d_q) to (a/B,b/D), where D=2^{q-1}=B^g. The map also takes mixtures to mixtures. Hence D f(a/B)\le f(a). The hull contains the even and comb points (0,0),(1,1), so f is finite and convex on [0,1].
For every a>0, the sequence D^n f(a/B^n), starting once a/B^n<1, decreases to a finite limit F(a) bounded below by a^g. The limit is convex, hence continuous on (0,\infty). Monotone convergence of continuous functions to this continuous limit is uniform on each compact subinterval. Increasing the level count n by one gives F(a/B)=F(a)/D. Thus L(t)=F(B^{-t})/B^{-tg} has period one. Uniform convergence over one period, 1/B\le a\le1, yields the stated asymptotic for every way of taking d to zero. Inequality (1) passes to the limit, and the exact constructions give F(1)=1.
An explicit lower bound for four and six leaves
For four and six leaves the lower edge of Figure 1 uses e=0.19. To verify that value in (3), we must check both a comb and the cost of each added fork. Start with a comb. Its gap per unit mass below g-1 factors as
For x\le0.7, G(x)\ge G(0.7)>0.19. For x\ge0.96, use |\log x|\le |x-1|/0.96 in w(x)\le(\pi\log x/\log2)^2; the factor multiplying (x-1)^2 in G exceeds 0.19(4.54/0.96)^2.
On the remaining interval a short rational calculation gives G\ge0.1914w. Here are the bounds needed to reproduce it. On each interval [a,b] of width 0.0001 from 0.7 to 0.96, use G(b) as a lower bound for the numerator of G(x)/w(x). With v=(1-a)/(1+a), put t=2(4.54)[v+v^3/(3(1-v^2))]. The power series for -\log a=2\operatorname{arctanh}v and \pi/\log2<4.54 bound the absolute sine argument by t. Bound the denominator from above by 1 if t>1.5, and (t-t^3/6+t^5/120)^2 otherwise, by monotonicity of sine up to 1.5 and its Taylor bound. The smallest of the 2,600 resulting ratios exceeds 0.19148. For this choice of w the comb bound leaves little room to raise e: the comb at x=0.841 has G(x)/w(x)<0.193.
For a fork, write J=w(x)-uw(ux)-vw(vx) for the change in the periodic term. We need T/x\ge0.19J when passing the bound from children to parent, unless we can bound the parent score directly. For x\ge s, expanding (2) at p=4,q=6 gives
For 1/4\le z\le4/5 this covers 0.19J since J\le1. Indeed, the product z^2(1-z^2)A(z) is log-concave in z^2 (each factor is positive and affine), and at both endpoints the product times K exceeds 0.20. For z\ge4/5, use 1-z^2=2u(1+z) and A(z)\ge48/31-8/7; the resulting bound exceeds 2u, while J\le(1+4.54)u.
For z\le1/4, if both children have mass at most s, they do best as combs. A single fork's reward over stopping is of the form t^2(At-C) with t=4uv and A,C>0. It is increasing wherever positive, so either stopping or an equal split above combs does at least as well. Both obey (3) by the comb bound and the absence of cost at a half split. Otherwise x>8s/5 since the larger fraction is at most 5/8. The displayed cost bound then exceeds 12z^2 for z>0. To bound J, let h(y)=yw(xy) and k=2\pi/\log2<9.1. On [3/8,5/8], |h''(y)|\le(k+k^2)/(2y)<124. Taylor expansion about 1/2 gives J=2h(1/2)-h(u)-h(v)\le31z^2, which the cost covers after multiplication by 0.19. This proves the stated amplitude, including the half split where both sides vanish.
Independent count checks
We checked the exact whole-level values and the scaling of the proof in two ways. On a 512-unit grid we computed scores directly from the fork contributions to P_p,P_q. For each mass in increasing order we kept the better of stopping and the best sum of two smaller scores plus the fork reward, clearing denominators before comparisons. Table 1 divides the optimum root score by X(g-1). Each row gave the same displayed values at four scales X=1,2,4,8 and at their respective multiples 5X/4.
| Sample sizes | Whole-level scale | Scale multiplied by 1.25 |
|---|---|---|
| 4, 6 | 1 | 0.4673 |
| 6, 8 | 1 | 0.24065 |
| 4, 12 | 1 | 0.33356 |
| 10, 32 | 1 | 0.020505 |
| 32, 34 | 1 | 4.9114e-06 |
| 4, 64 | 1 | 0.25635 |
Table 1. Exact mass-grid optimization at and between whole levels. The whole-level entries are exact; the other entries are rounded.
We also used all 399 rooted shapes through 11 leaves in the public appendix to [2]. We replaced each leaf by a comb of m leaves and counted samples without replacement: for sample size 2j, a fork with i,k leaves on its two sides contributes \binom ij\binom kj. The total is a polynomial of degree at most 2j in m; differencing the counts at successive values of m and repeating until we have taken 2j differences yields (2j)! times its leading coefficient. Dividing by the corresponding difference for all samples gives the limiting probability. For all 28 pairs of even orders from four through 18, we tested d_q^{p-1}\ge d_p^{q-1} by rational arithmetic. In these 11,172 comparisons, equality occurred exactly for the four complete branching patterns, on one, two, four and eight leaves.
The lower bound holds for individual tree limits as well as mixtures. The sharp periodic coefficient describes the minimum when mixtures are allowed. Grid searches give attainable values; even close agreement between grids cannot certify how far those values lie from the minimum. Between whole levels, the exact coefficient and the trees or mixtures that attain it remain open.
References
- É. Czabarka, L. A. Székely and S. Wagner. Inducibility in binary trees and crossings in random tanglegrams. SIAM Journal on Discrete Mathematics 31 (2017), 1732–1750.
- D. Brosch and D. Puges. Getting to the root of the problem: sums of squares for limits of trees. Mathematical Programming 218 (2026), 505–561. Tree profiles and boundary points; source archive with tree-shape appendix.
- T. M. Coronado, M. Fischer, L. Herbst, F. Rosselló and K. Wicke. On the minimum value of the Colless index and the bifurcating trees that achieve it. Journal of Mathematical Biology 80 (2020), 1993–2054.