# The maximum frequency of an eight-leaf tree pattern approaches an irrational number

In a tree that branches in two at every fork, how often can eight randomly chosen leaves form a particular pattern? For any particular tree, the frequency is a fraction: count the sets of eight leaves that show the pattern and divide by the total number of such sets. What is harder to tell is whether the highest possible frequency must still be a ratio of whole numbers in the limit, as trees grow arbitrarily large.

For one pattern, the limiting maximum is irrational: it is exactly \((35\sqrt5-77)/4\), or about 31.56%. The pattern has a pair of leaves on one side of its first fork and a six-leaf ladder on the other. Two ladders joined at the root, with about 25.7% of the leaves in the smaller ladder, achieve the limit. The reason no tree can do better is that a branch containing copies of the pattern has fewer sets of six leaves available to form the ladder in a copy that crosses the root.

## The pattern and its frequency

In a rooted binary tree, each fork has two branches. To see the shape formed, or *induced*, by a set of leaves, trace their paths back to the first ancestor they all share. Keep only those paths and erase any fork where just one branch remains, joining the path on either side. The shape depends only on which branches meet, regardless of leaf names or the left-to-right order in a drawing.

The ladder shape is called a *caterpillar*: all its forks lie on a single path starting at the root. Write \(C_k\) for the caterpillar with \(k\) leaves. Starting with a single leaf, \(C_1\), make each successive caterpillar by joining the previous one and a new leaf at a new root. The two-leaf tree \(C_2\) is called a *cherry*. We write \(T=(C_2,C_6)\) for our eight-leaf pattern, a cherry joined to a six-leaf caterpillar.

For any shape with \(k\) leaves, its frequency in a larger tree (the *host*) is the fraction of \(k\)-leaf subsets that induce it. Take the highest frequency among hosts of each size \(n\). As \(n\) grows, these maxima can only stay the same or decrease. To see why, delete one leaf at random from a host with \(n+1\) leaves, then sample \(k\) of the remaining leaves. The sample is uniform among all \(k\)-leaf subsets of the original host, so at least one deletion preserves or increases the frequency. The maxima have a limit because they cannot fall below zero. This limit is called the shape's *inducibility*.

[Czabarka, Székely and Wagner](https://arxiv.org/pdf/1601.07149#page=12) asked in Question 2 whether the inducibility of every binary tree is rational. [Dossou-Olory and Wagner](https://dmtcs.episciences.org/articles/5804) studied a five-leaf candidate: a single leaf joined to a balanced four-leaf tree (two cherries joined at the root). [Brosch and Puges](https://doi.org/10.1007/s10107-025-02305-1) described the question as open in 2025. A search of later work on irrational binary-tree inducibility and on trees made by joining two caterpillars found no prior example.

For \(T\), the two-caterpillar construction attains the limiting frequency
\[
 M=\frac{35\sqrt{5}-77}{4}=0.3155948031\ldots .
\]
We prove that in *every* rooted binary tree with \(n\ge8\) leaves, the frequency of \(T\) is at most \(M/p_n\), where \(p_n=\prod_{j=0}^{7}(1-j/n)\) is the probability that eight independent draws from the leaves give eight distinct leaves. Since \(p_n\) tends to one, this makes \(M\) the inducibility of \(T\). The finite maxima decrease or stay constant on their way to \(M\); each lies strictly above it because each is rational.

## The best split between two caterpillars

[Brosch and Puges tabulated upper bounds for 399 shapes](https://arxiv.org/abs/2404.12838), including a bound of 0.315595 for \(T\). In a scan of 2,049 ways to split the leaves between two caterpillars, seven shapes other than caterpillars came within 0.00001 of their published bounds at unequal splits. A close match alone tells us little about rationality. For example, for a cherry joined to \(C_5\), the best split is 1:2 and gives the rational value \(28/81\).

To calculate the frequency of \(T\), put \(\lfloor xn\rfloor\) leaves in one caterpillar (rounding \(xn\) down to a whole number) and the remaining \(n-\lfloor xn\rfloor\) in the other, where \(0<x<1\). The limiting shares are \(x\) and \(y=1-x\). Every nonempty subset of a caterpillar induces a caterpillar, so eight leaves form \(T\) precisely when two come from one side and six from the other. There are 28 choices for which two of eight draws supply the cherry. As \(n\) grows, the limiting frequency is
\[
 B(x)=28(x^2y^6+y^2x^6)=28z^2(1-4z+2z^2),\qquad z=xy.
\]
Writing the frequency in terms of the product \(z\) makes it easy to find the best split. The derivative with respect to \(z\) is \(56z(1-6z+4z^2)\). On \(0<z\le 1/4\) it changes from positive to negative at \(z_*=(3-\sqrt5)/4\). Substitution gives the maximum \(M=(35\sqrt5-77)/4\). The smaller branch then has limiting share \((1-\sqrt{1-4z_*})/2\).

## The cost of copies within a branch

A branch more elaborate than a caterpillar could contain whole copies of \(T\). To count what that costs in copies spanning the root, start with eight leaves that form \(T\) and remove two. Removing any two of the six caterpillar leaves gives a pair on one side and four leaves on the other (Figure 1). A caterpillar cannot split that way: at its root at least one branch must be a single leaf.

![The eight-leaf pattern has a pair opposite a six-leaf caterpillar. Removing two leaves from that caterpillar leaves a pair opposite a four-leaf caterpillar.](results/deletion.png)

*Figure 1. Leaves a and b form the cherry on the left. Removing d and f gives the tree on the right. Both sides of its root have at least two leaves, so the six remaining leaves do not form a caterpillar.*

Of the 28 ways to retain six of the eight leaves, 15 remove two caterpillar leaves and give the 2:4 split. The other 13 remove at least one leaf of the cherry and leave a caterpillar.

We want to use this count in branches of any size, even those too small for eight distinct leaves. Draw leaves independently and uniformly *with replacement*, counting any repeated leaf as a failure. For a host \(H\), let \(t(H)\) be the probability that eight draws are distinct and induce \(T\). Let \(h(H)\) be the probability that six draws are distinct and induce \(C_6\). Keeping six randomly chosen positions from eight independent draws gives the same distribution as six fresh draws. Whenever the eight draws form \(T\), at least the 15 choices just counted fail to give \(C_6\). Thus
\[
  1-h(H)\ \ge\ \frac{15}{28}\,t(H). \tag{1}
\]

## An upper bound for every tree

We prove \(t(H)\le M\) by building up from smaller trees. For a single leaf, \(t(H)=0\). For a tree with a fork at its root, suppose the bound holds in both branches. Let \(x\le y\) be their shares of the leaves. Write \(t_1,h_1\) for the two sampling probabilities in the smaller branch and \(t_2,h_2\) for those in the larger one.

The probability of finding a copy entirely in one branch is \(x^8t_1+y^8t_2\). For a copy spanning the root, six draws must give a caterpillar in one branch and two draws must be distinct in the other. Bounding the probability that the pair is distinct by one gives
\[
 t(H)\le x^8t_1+y^8t_2+28(x^2y^6h_2+y^2x^6h_1).
\]
Using (1) to bound \(h_1\) and \(h_2\) gives the frequency for two caterpillars plus a correction for each branch:
\[
 t(H)\le B(x)+x^6(x^2-15y^2)t_1+y^6(y^2-15x^2)t_2. \tag{2}
\]
When \(y\le\sqrt{15}\,x\), both corrections are nonpositive. The loss of copies spanning the root offsets any gain inside the branches, so \(t(H)\le B(x)\le M\).

For a more unequal split, only the larger branch has a positive coefficient in (2). Call that coefficient \(A=y^6(y^2-15x^2)\); it satisfies \(0<A<1\). By the induction hypothesis \(t_2\le M\), so it suffices to show \(B(x)+AM\le M\), or equivalently \(B(x)/(1-A)\le M\). In terms of the branch ratio \(r=x/y\), the quantity to bound is
\[
 \frac{B(x)}{1-A}=\frac{28(r^2+r^6)}{D(r)},\qquad D(r)=(1+r)^8-1+15r^2 .
\]
The denominator is at least \(90(r^2+r^6)\), as can be seen by expanding the difference:
\[
\begin{aligned}
 D(r)-90(r^2+r^6)
  &=r\big[8(1-3r)^2+r(1-8r)^2\big]\\
  &\quad+6r^4+r^5(56-62r)+8r^7+r^8 .
\end{aligned}
\]
Every term is nonnegative in the range at issue, \(0<r<1/\sqrt{15}<1/3\). Thus \(B(x)/(1-A)\le 14/45\). For comparison, the split with smaller share \(1/4\) gives \(14/45 < 2583/8192 = B(1/4)\le M\). This proves \(t(H)\le M\) for the more unequal splits as well, completing the induction.

Finally, conditional on eight distinct draws, every eight-leaf subset is equally likely. The ordinary frequency of \(T\) in a host with \(n\ge8\) leaves is therefore \(t(H)/p_n\le M/p_n\). As \(p_n\to1\), no sequence of growing binary trees can exceed \(M\) in the limit. The two caterpillars give a tree for each sufficiently large \(n\) whose frequency tends to \(M\). The two bounds meet, and the nonzero coefficient of \(\sqrt5\) makes their common value irrational.
