Introduction
Balanced minimum evolution is a distance-based criterion for phylogenetic reconstruction. Pauplin [1 ] showed that the length of a tree fitted to a distance matrix under the balanced weighting is a linear function of the matrix, with coefficients determined by the tree’s topology alone. The criterion is statistically consistent [2 ] . It underlies the FastME software [3 ] , and Neighbor-Joining (NJ) [4 ] is a greedy algorithm for it [5 ] . NJ does not always return the BME-optimal tree [6 ] , so finding the optimum is a separate problem.
On the theoretical side, the Balanced Minimum Evolution Problem (BMEP) is NP-hard and has no polynomial-time c n c^n c n -approximation for some c > 1 c > 1 c > 1 unless P=NP [7 ] ; the variant with a fixed tree shape, which only assigns the taxa to the leaves of a given tree, is also NP-hard and also hard to approximate [8 ] . The convex hull of the weight vectors of all trees, the BME polytope, has been studied through its facets [9 ] , [10 ] and its faces [6 ] , [11 ] , and Catanzaro et al. characterize the integer path-length matrices of binary trees by linear and disjunctive conditions [12 ] , [13 ] . A survey of the area is given in [14 ] .
On the computational side, exact methods are integer programs solved by branch-and-bound or branch-and-cut [15 ] , [16 ] , [17 ] . The current best, the distance-indexed branch-and-cut of Catanzaro et al. [13 ] , is reported to certify instances of up to about 32 taxa within an hour [18 ] . These formulations all work with integer path lengths and indicators of their values, which need Θ ( n 3 ) \Theta(n^3) Θ ( n 3 ) variables.
The objective, however, is linear in the weights w i j = 2 − τ i j w_{ij} = 2^{-\tau_{ij}} w ij = 2 − τ ij , of which there are only ( n 2 ) \binom{n}{2} ( 2 n ) . This paper asks what a formulation in these weights can and cannot do.
Our starting point is a pinning result (Theorem 1). Let us fix a tree T T T , and consider the following constraints on nonnegative vectors w w w : every bipartition of the leaves induced by an edge of T T T (a split of T T T ) has a cut value, the total weight of the pairs of leaves it separates, of 1 2 \frac{1}{2} 2 1 ; and an entropy of w w w satisfies a lower bound valid for all trees. The weight vector of T T T is the unique point that satisfies all these constraints simultaneously. Without the entropy bound, the points satisfying the split constraints form a polytope that, for n ≥ 5 n \ge5 n ≥ 5 , is far from a single point. So in w w w a tree is described exactly by 2 n − 3 2n-3 2 n − 3 linear equalities and one convex inequality, without integer variables. This motivates the rest of the paper: committing splits as equalities is how a search in w w w narrows down to a tree, the entropy bound is what turns a full set of committed splits into a single point, and the solver of Part II branches by committing or forbidding splits for this reason. Table 1 lists our main results.
Table 1. The main results of this paper and their relationship to previous work.
The rest of this paper is organised as follows. Part I contains the theoretical results. Section 2 sets out definitions and the two formulations. Section 3 proves the pinning theorem, the cut-value ladder and the invariant count, and Section 4 reviews the known facets of the BME polytope. Section 5 gives the polynomial clique cover and encodes splits by membership variables. Section 6 compares linearity in w w w and in τ \tau τ and settles the sufficiency question. Part II contains the computational results: Section 7 describes the experimental setup and Section 8 the experiments. Section 9 discusses open problems. The appendices contain the proof of an inequality used in § 2.2.2 (Appendix § 3.4 ), the proofs of Theorems 2 and 3 (Appendix § 3.5 ), the enumeration behind Theorem 5 (Appendix § 3.6 ), the tables of results behind § 3.2 (Appendix § 3.7 ), the checks of numerical reliability (Appendix E), the compact solver’s branch and bound in pseudocode (Appendix F), and a short proof that the four-point and triangle conditions on the quartets and triples that contain one leaf imply them everywhere (Appendix G), and the lower bound of Proposition 4 with a smaller clique cover (Appendix § 3.11 ).
Part I: Theoretical results
Preliminaries
In this section we fix the notation for trees, splits and tree metrics (§ 2.1.1 ), state the problem (§ 2.1.2 ), introduce the weight space in which we work (§ 2.1.3 ), and set out the two integer programming models that the paper compares (§ 2.1.4 ).
Trees, splits and tree metrics
A phylogenetic tree on [ n ] = { 1 , … , n } [n] = \{1,\ldots,n\} [ n ] = { 1 , … , n } is a tree whose leaves are in bijection with [ n ] [n] [ n ] and none of whose internal vertices has degree 2. All trees are unrooted. A tree is binary if every internal vertex has degree 3; it then has 2 n − 3 2n - 3 2 n − 3 edges (n n n pendant, n − 3 n - 3 n − 3 internal) and n − 2 n - 2 n − 2 internal vertices. Contracting internal edges gives non-binary trees; the extreme case is the star , with one internal vertex. A cherry is a pair of leaves adjacent to the same internal vertex. The topology of a tree is the tree as a graph with labelled leaves, without edge lengths; we identify a tree with its topology.
A bipartition is an unordered pair { S , S c } \{S,S^{c}\} { S , S c } with both blocks nonempty, where S c = [ n ] ∖ S S^{c} = [n] \setminus S S c = [ n ] ∖ S is the complement of S S S . We name it by its smaller block, and when both blocks have n / 2 n/2 n /2 leaves, by the block not containing leaf 1. It is trivial if one block is a single leaf and nontrivial otherwise. Removing an edge e e e of T T T induces the bipartition S e S_e S e ; the bipartitions induced this way are the splits of T T T , of which n n n are trivial (pendant edges) and n − 3 n - 3 n − 3 nontrivial (internal edges). Two bipartitions are compatible if at least one of S ∩ S ′ S \cap S' S ∩ S ′ , S ∩ S ′ c S \cap S'^{c} S ∩ S ′ c , S c ∩ S ′ S^{c} \cap S' S c ∩ S ′ , S c ∩ S ′ c S^{c} \cap S'^{c} S c ∩ S ′ c is empty, and cross otherwise. A set of nontrivial bipartitions is the split set of a tree if and only if it is pairwise compatible [19 , 20 ] ; we call pairwise compatibility laminarity . There are ( 2 n − 5 ) ! ! = 1 ⋅ 3 ⋅ 5 ⋯ ( 2 n − 5 ) (2n - 5)!! = 1 \cdot3 \cdot5 \cdots(2n - 5) ( 2 n − 5 )!! = 1 ⋅ 3 ⋅ 5 ⋯ ( 2 n − 5 ) binary topologies on n n n labelled leaves: about 2 × 10 6 2 \times10^{6} 2 × 1 0 6 for n = 10 n = 10 n = 10 , 2 × 10 20 2 \times10^{20} 2 × 1 0 20 for n = 20 n = 20 n = 20 and 9 × 10 36 9 \times10^{36} 9 × 1 0 36 for n = 30 n = 30 n = 30 .
A nearest-neighbour interchange (NNI) across an internal edge v w vw v w , with subtrees A , B A,B A , B hanging from u u u and C , D C,D C , D from v v v , exchanges B B B with C C C or with D D D . Each internal edge admits two NNIs, so a binary tree has 2 ( n − 3 ) 2(n - 3) 2 ( n − 3 ) NNI neighbours.
A symmetric nonnegative d d d is a tree metric if and only if it satisfies the **four-point condition [19 ] : on every quartet { i , j , k , l } \{i,j,k,l\} { i , j , k , l } , the larger two of d i j + d k l d_{ij}+d_{kl} d ij + d k l , d i k + d j l d_{ik}+d_{jl} d ik + d j l , d i l + d j k d_{il}+d_{jk} d i l + d j k are equal. A tree resolves the quartet as a b ∣ c d ab|cd ab ∣ c d when the path between a a a and b b b is disjoint from the path between c c c and d d d . For the path lengths τ \tau τ of a binary tree, the two larger sums are then τ a c + τ b d = τ a d + τ b c \tau_{ac}+\tau_{bd}=\tau_{ad}+\tau_{bc} τ a c + τ b d = τ a d + τ b c , and they exceed τ a b + τ c d \tau_{ab}+\tau_{cd} τ ab + τ c d by 2 m ≥ 2 2m \ge2 2 m ≥ 2 , where m m m is the number of internal edges between the paths. We call this the strong four-point condition .
The Balanced Minimum Evolution Problem
A dissimilarity matrix (or distance matrix) on [ n ] [n] [ n ] is a symmetric matrix D D D with zero diagonal and nonnegative entries, where D i j D_{ij} D ij estimates the evolutionary distance between taxa i i i and j j j . Given D D D , the minimum-evolution principle selects the tree of least estimated total length [21 ] . In the balanced version the length is L ( T ) = ∑ i < j D i j w i j L(T)=\sum_{i<j}D_{ij}w_{ij} L ( T ) = ∑ i < j D ij w ij with w i j = 2 − τ i j w_{ij}=2^{-\tau_{ij}} w ij = 2 − τ ij [1 ] , and the Balanced Minimum Evolution Problem (BMEP) is to minimize L L L over binary topologies.
The weight space
For a binary tree T T T write τ i j ∈ { 2 , … , n − 1 } \tau_{ij}\in\{2,\ldots,n-1\} τ ij ∈ { 2 , … , n − 1 } , w i j = 2 − τ i j w_{ij}=2^{-\tau_{ij}} w ij = 2 − τ ij , and w T = ( w i j ) i < j ∈ R ( n 2 ) w_T=(w_{ij})_{i<j}\in\mathbb{R}^{\binom{n}{2}} w T = ( w ij ) i < j ∈ R ( 2 n ) for its weight vector . For any w ∈ R ( n 2 ) w\in\mathbb{R}^{\binom{n}{2}} w ∈ R ( 2 n ) and S ⊆ [ n ] S\subseteq[n] S ⊆ [ n ] , the cut value of S S S is W [ S ] = ∑ i ∈ S , j ∉ S w i j W[S]=\sum_{i\in S,j\notin S}w_{ij} W [ S ] = ∑ i ∈ S , j ∈ / S w ij , and W T [ S ] W_T[S] W T [ S ] denotes the cut value for w = w T w=w_T w = w T . Each edge e e e of T T T defines the bipartition S e S_e S e of the leaves on its two sides.
Lemma 2.1 (edge cut values). For every edge e e e of a binary tree T T T , W T [ S e ] = 1 2 W_T[S_e]=\frac{1}{2} W T [ S e ] = 2 1 .
Proof. Let e = u v e=uv e = uv , with leaf set A A A on the side of u u u and B B B on the side of v v v . Rooted at u u u , the side of A A A is a full binary tree (a single leaf if e e e is a pendant edge); let a i a_i a i be the number of edges from u u u to leaf i ∈ A i\in A i ∈ A . Then ∑ i ∈ A 2 − a i = 1 \sum_{i\in A}2^{-a_i}=1 ∑ i ∈ A 2 − a i = 1 , by induction on ∣ A ∣ |A| ∣ A ∣ : replacing a cherry at depth d + 1 d+1 d + 1 by one leaf at depth d d d keeps the sum, since 2 ⋅ 2 − ( d + 1 ) = 2 − d 2\cdot2^{-(d+1)}=2^{-d} 2 ⋅ 2 − ( d + 1 ) = 2 − d . Likewise ∑ j ∈ B 2 − b j = 1 \sum_{j\in B}2^{-b_j}=1 ∑ j ∈ B 2 − b j = 1 , with b j b_j b j the number of edges from v v v to j j j . For i ∈ A i\in A i ∈ A and j ∈ B j\in B j ∈ B , τ i j = a i + 1 + b j \tau_{ij}=a_i+1+b_j τ ij = a i + 1 + b j , so
W T [ S e ] = ∑ i ∈ A ∑ j ∈ B 2 − a i − 1 − b j = 1 2 ( ∑ i ∈ A 2 − a i ) ( ∑ j ∈ B 2 − b j ) = 1 2 . W_T[S_e]=\sum_{i\in A}\sum_{j\in B}2^{-a_i-1-b_j}=\frac{1}{2}\left(\sum_{i\in A}2^{-a_i}\right)\left(\sum_{j\in B}2^{-b_j}\right)=\frac{1}{2}. W T [ S e ] = i ∈ A ∑ j ∈ B ∑ 2 − a i − 1 − b j = 2 1 ( i ∈ A ∑ 2 − a i ) j ∈ B ∑ 2 − b j = 2 1 .
For a pendant edge the lemma is the Kraft equality [6 ] , [7 ] : ∑ j ≠ i w i j = 1 2 \sum_{j\ne i}w_{ij}=\frac{1}{2} ∑ j = i w ij = 2 1 for every leaf i i i , equivalently W [ { i } ] = 1 2 W[\{i\}]=\frac{1}{2} W [{ i }] = 2 1 . Two further facts are used throughout.
Cut floor [10 ] , [11 ] , [12 ] : W T [ S ] ≥ 1 2 W_T[S]\ge\frac{1}{2} W T [ S ] ≥ 2 1 , with equality if and only if S S S is a split of T T T . Equality for splits is Lemma 2.1; strict inequality for the other bipartitions follows from Theorem 2 below (Appendix § 3.5 ).
Edge decomposition. τ i j \tau_{ij} τ ij is the number of edges of T T T separating i i i and j j j , that is, τ i j = ∑ e ∈ E ( T ) [ e separates i and j ] \tau_{ij}=\sum_{e\in E(T)}[e\text{ separates }i\text{ and }j] τ ij = ∑ e ∈ E ( T ) [ e separates i and j ] , where the Iverson bracket [ P ] [P] [ P ] is 1 if P P P holds and 0 otherwise. Exchanging the order of summation, for every w ∈ R ( n 2 ) w\in\mathbb{R}^{\binom{n}{2}} w ∈ R ( 2 n ) ,
∑ i < j τ i j w i j = ∑ e ∈ E ( T ) ∑ i < j [ e separates i and j ] w i j = ∑ e ∈ E ( T ) W [ S e ] . (1) \sum_{i<j}\tau_{ij}w_{ij}=\sum_{e\in E(T)}\sum_{i<j}[e\text{ separates }i\text{ and }j]w_{ij}=\sum_{e\in E(T)}W[S_e]. \tag*{(1)} i < j ∑ τ ij w ij = e ∈ E ( T ) ∑ i < j ∑ [ e separates i and j ] w ij = e ∈ E ( T ) ∑ W [ S e ] . (1)
For w = w T w=w_T w = w T , Lemma 2.1 applied to the 2 n − 3 2n-3 2 n − 3 edges gives ∑ i < j τ i j ( w T ) i j = ( 2 n − 3 ) / 2 = n − 3 2 \sum_{i<j}\tau_{ij}(w_T)_{ij}=(2n-3)/2=n-\frac{3}{2} ∑ i < j τ ij ( w T ) ij = ( 2 n − 3 ) /2 = n − 2 3 .
Since log 2 w i j = − τ i j \log_2w_{ij}=-\tau_{ij} log 2 w ij = − τ ij , the last identity says that w T w_T w T lies on the phylogenetic manifold [16 ]
g ( w ) : = ∑ i < j w i j log 2 w i j = 3 2 − n , g(w):=\sum_{i<j}w_{ij}\log_2w_{ij}=\frac{3}{2}-n, g ( w ) := i < j ∑ w ij log 2 w ij = 2 3 − n ,
@references-offsetof with the convention 0 log 0 = 0 0 \log0 = 0 0 log 0 = 0 . The function g g g is strictly convex on R ≥ 0 ( n 2 ) \mathbb{R}_{\geq0}^{\binom{n}{2}} R ≥ 0 ( 2 n ) , since each term x log 2 x x\log_2 x x log 2 x has second derivative 1 / ( x ln 2 ) > 0 1/(x\ln2)>0 1/ ( x ln 2 ) > 0 for x > 0 x>0 x > 0 . (The identity is usually written over ordered pairs, as ∑ i ∑ j ≠ i τ i j 2 − τ i j = 2 n − 3 \sum_i\sum_{j\ne i}\tau_{ij}2^{-\tau_{ij}}=2n-3 ∑ i ∑ j = i τ ij 2 − τ ij = 2 n − 3 .) By Kraft, p ( i ) = ( 2 w i j ) j ≠ i p^{(i)}=(2w_{ij})_{j\ne i} p ( i ) = ( 2 w ij ) j = i is a probability vector for each leaf i i i , and its Shannon entropy H i = − ∑ j ≠ i p j ( i ) log 2 p j ( i ) H_i=-\sum_{j\ne i}p_j^{(i)}\log_2 p_j^{(i)} H i = − ∑ j = i p j ( i ) log 2 p j ( i ) [22 Ch. 2] satisfies
∑ i = 1 n H i = − n − 4 g ( w ) . (2) \sum_{i=1}^{n} H_i=-n-4g(w). \tag*{(2)} i = 1 ∑ n H i = − n − 4 g ( w ) . (2)
Minimizing g g g is therefore maximizing the total leaf entropy ∑ i H i \sum_i H_i ∑ i H i , and the manifold can be equivalently written as ∑ i H i = 3 ( n − 2 ) \sum_i H_i=3(n-2) ∑ i H i = 3 ( n − 2 ) . “Entropy” below always means ∑ i H i \sum_i H_i ∑ i H i ; the weights themselves sum to n / 4 n/4 n /4 , not 1, and do not form a single probability distribution. The information-theoretic reading of the BME objective and of the manifold is due to [23 ] .
The BME polytope P B M E P_{\mathrm{BME}} P BME is the convex hull of the weight vectors w T w_T w T of all binary trees T T T on [ n ] [n] [ n ] . Several authors use the integer coordinate x i j = 2 n − 1 w i j ∈ { 1 , … , 2 n − 3 } x_{ij}=2^{n-1}w_{ij}\in\{1,\ldots,2^{n-3}\} x ij = 2 n − 1 w ij ∈ { 1 , … , 2 n − 3 } , in which the facets of § 2.3 are usually stated.
The two formulations
The compact model is the convex relaxation
min ∑ i < j D i j w i j s.t. ∑ j ≠ i w i j = 1 2 ∀ i ∈ [ n ] (Kraft) 2 − ( n − 1 ) ≤ w i j ≤ 1 4 ∀ i < j (box; F1) W [ S ] ≥ 1 2 ∀ ∅ ≠ S ⊊ [ n ] (cut) w i j + w j k − w i k ≤ 1 4 ∀ distinct i , j , k (double cherry; F2) g ( w ) ≤ 3 2 − n (manifold) ∑ { i , j } ∈ M w i j ≥ C n 2 − ( n − 1 ) ∀ perfect matchings M (PM) \begin{aligned}
\min\quad&\sum_{i<j}D_{ij}w_{ij}\\
\text{s.t.}\quad&\sum_{j\ne i}w_{ij}=\frac{1}{2} &&\forall i\in[n] &&\text{(Kraft)}\\
&2^{-(n-1)}\le w_{ij}\le\frac{1}{4} &&\forall i<j &&\text{(box; F1)}\\
&W[S]\ge\frac{1}{2} &&\forall\varnothing\ne S\subsetneq[n] &&\text{(cut)}\\
&w_{ij}+w_{jk}-w_{ik}\le\frac{1}{4} &&\forall\text{ distinct }i,j,k &&\text{(double cherry; F2)}\\
&g(w)\le\frac{3}{2}-n && &&\text{(manifold)}\\
&\sum_{\{i,j\}\in M}w_{ij}\ge C_n2^{-(n-1)} &&\forall\text{ perfect matchings }M &&\text{(PM)}
\end{aligned} min s.t. i < j ∑ D ij w ij j = i ∑ w ij = 2 1 2 − ( n − 1 ) ≤ w ij ≤ 4 1 W [ S ] ≥ 2 1 w ij + w j k − w ik ≤ 4 1 g ( w ) ≤ 2 3 − n { i , j } ∈ M ∑ w ij ≥ C n 2 − ( n − 1 ) ∀ i ∈ [ n ] ∀ i < j ∀ ∅ = S ⊊ [ n ] ∀ distinct i , j , k ∀ perfect matchings M (Kraft) (box; F1) (cut) (double cherry; F2) (manifold) (PM)
The cut family can be separated exactly in polynomial time: a minimum cut of the complete graph on [ n ] [n] [ n ] with edge weights w w w gives the most violated cut inequality. The manifold constraint is the convex half of g ( w ) = 3 2 − n g(w)=\frac{3}{2}-n g ( w ) = 2 3 − n , so every w T w_T w T satisfies it. PM is the perfect-matching family of [12 ] , prop. 11, with the constant C n C_n C n given there.
The compact model has no integer variables: a point is a tree because its half-cuts (the bipartitions with cut value 1 2 \frac{1}{2} 2 1 ) form a compatible split system, not because any variable is integral. Solving BMEP with it therefore needs a branch and bound of its own, which § 3.1.2 describes.
The distance-indexed model [12 ] , [13 ] carries, for each pair i < j i<j i < j and each level ℓ ∈ { 2 , … , n − 1 } \ell\in\{2,\ldots,n-1\} ℓ ∈ { 2 , … , n − 1 } , a binary level indicator x i j ( ℓ ) = [ τ i j = ℓ ] x_{ij}^{(\ell)}=[\tau_{ij}=\ell] x ij ( ℓ ) = [ τ ij = ℓ ] , so O ( n 3 ) O(n^3) O ( n 3 ) variables in all. The path lengths τ i j = ∑ ℓ ℓ x i j ( ℓ ) \tau_{ij}=\sum_\ell\ell x_{ij}^{(\ell)} τ ij = ∑ ℓ ℓ x ij ( ℓ ) and the weights w i j = ∑ ℓ 2 − ℓ x i j ( ℓ ) w_{ij}=\sum_\ell2^{-\ell}x_{ij}^{(\ell)} w ij = ∑ ℓ 2 − ℓ x ij ( ℓ ) are linear expressions in them. In the configuration we run (Section 7.1) the model is
min ∑ i < j D i j ∑ ℓ 2 − ℓ x i j ( ℓ ) s.t. ∑ ℓ x i j ( ℓ ) = 1 ∀ i < j (one length) ∑ j ≠ i ∑ ℓ 2 − ℓ x i j ( ℓ ) = 1 2 ∀ i ∈ [ n ] (Kraft) ∑ i < j ∑ ℓ ℓ 2 − ℓ x i j ( ℓ ) = n − 3 2 (manifold) τ i k + τ k j − τ i j ≥ 2 ∀ distinct i , j , k (strong triangle) τ i k + τ k j − τ i j ∈ 2 Z ∀ triples containing leaf 1 (parity) quartet inequalities ∀ quartets containing leaf 1 (four-point) x i j ( ℓ ) ∈ { 0 , 1 } . \begin{aligned}
\min\ &\sum_{i<j}D_{ij}\sum_{\ell}2^{-\ell}x_{ij}^{(\ell)}\\
\text{s.t. }&\sum_{\ell}x_{ij}^{(\ell)}=1 && \forall i<j && \text{(one length)}\\
&\sum_{j\ne i}\sum_{\ell}2^{-\ell}x_{ij}^{(\ell)}=\frac{1}{2} && \forall i\in[n] && \text{(Kraft)}\\
&\sum_{i<j}\sum_{\ell}\ell2^{-\ell}x_{ij}^{(\ell)}=n-\frac{3}{2} && && \text{(manifold)}\\
&\tau_{ik}+\tau_{kj}-\tau_{ij}\ge2 && \forall\text{ distinct }i,j,k && \text{(strong triangle)}\\
&\tau_{ik}+\tau_{kj}-\tau_{ij}\in2\mathbb{Z} && \forall\text{ triples containing leaf 1} && \text{(parity)}\\
&\text{quartet inequalities} && \forall\text{ quartets containing leaf 1} && \text{(four-point)}\\
&x_{ij}^{(\ell)}\in\{0,1\}.
\end{aligned} min s.t. i < j ∑ D ij ℓ ∑ 2 − ℓ x ij ( ℓ ) ℓ ∑ x ij ( ℓ ) = 1 j = i ∑ ℓ ∑ 2 − ℓ x ij ( ℓ ) = 2 1 i < j ∑ ℓ ∑ ℓ 2 − ℓ x ij ( ℓ ) = n − 2 3 τ ik + τ k j − τ ij ≥ 2 τ ik + τ k j − τ ij ∈ 2 Z quartet inequalities x ij ( ℓ ) ∈ { 0 , 1 } . ∀ i < j ∀ i ∈ [ n ] ∀ distinct i , j , k ∀ triples containing leaf 1 ∀ quartets containing leaf 1 (one length) (Kraft) (manifold) (strong triangle) (parity) (four-point)
The parity rows use one integer variable per triple. The quartet inequalities use, for each quartet, three binary indicators of its resolutions, one of which is 1, and linear inequalities that impose the strong four-point condition for the selected resolution. Restricting them to the quartets that contain leaf 1 loses nothing: Catanzaro et al. show that the strong four-point condition on these quartets implies it on every quartet, and, together with the strong triangle inequalities on the triples that contain leaf 1, implies the strong triangle inequalities on every triple [13 ] , thm. 2 and prop. 8. Appendix G gives a short proof of both. Catanzaro et al. also define further families of valid inequalities for this model [13 ] : the generalized Kraft inequalities, which are the cut inequalities W [ S ] ≥ 1 2 W[S]\ge\frac{1}{2} W [ S ] ≥ 2 1 written in the level indicators, and three further families. The weak four-point inequalities state that 2 ( τ u i + τ u j + τ u k ) − ( τ i j + τ i k + τ j k ) ≥ 8 2(\tau_{ui}+\tau_{uj}+\tau_{uk})-(\tau_{ij}+\tau_{ik}+\tau_{jk})\ge8 2 ( τ u i + τ u j + τ u k ) − ( τ ij + τ ik + τ j k ) ≥ 8 for distinct leaves u , i , j , k u,i,j,k u , i , j , k : the left side is twice the sum of the distances from u u u to the three paths between i i i , j j j and k k k , and in a binary tree these distances sum to at least 4, since u u u joins the three paths away from their common vertex, which already has degree 3 [13 ] , prop. 10. The 2-K-split inequalities state that ∑ k ∈ X ( τ i k + τ j k ) ≥ α K \sum_{k\in X}(\tau_{ik}+\tau_{jk})\ge\alpha_K ∑ k ∈ X ( τ ik + τ j k ) ≥ α K for distinct leaves i , j i,j i , j and every set X X X of K K K other leaves, where α K \alpha_K α K is the largest constant valid for every tree, which can be computed in polynomial time [13 ] , prop. 11. The circular-order inequalities state that τ i 1 i 2 + τ i 2 i 3 + ⋯ + τ i n − 2 i n − 1 + τ i n − 1 i 1 ≥ 4 n − 8 \tau_{i_1i_2}+\tau_{i_2i_3}+\cdots+\tau_{i_{n-2}i_{n-1}}+\tau_{i_{n-1}i_1}\ge4n-8 τ i 1 i 2 + τ i 2 i 3 + ⋯ + τ i n − 2 i n − 1 + τ i n − 1 i 1 ≥ 4 n − 8 for every leaf i n i_n i n and every cyclic order ( i 1 , … , i n − 1 ) (i_1,\ldots,i_{n-1}) ( i 1 , … , i n − 1 ) of the other leaves: removing i n i_n i n and its pendant edge leaves a tree with 2 n − 4 2n-4 2 n − 4 edges, and a closed walk through its leaves traverses every edge at least twice [13 ] , prop. 9. The four-point cuts are the quartet inequalities above, added when violated. The two models solve the same problem and differ in which constraints are linear; Section 6 makes this precise. Before that, the next section shows that in the weight space a tree is determined by its splits.
Splits, cut values and the weight vector
This section contains the result the rest of the paper builds on: the splits of a tree, written as linear equalities in w w w , together with the convex half of the phylogenetic manifold, leave exactly one point, the tree’s weight vector (Theorem 1). § 2.2.2 shows that the equalities cannot be weakened to inequalities, and § 2.2.3 describes the cut values of the bipartitions that are not splits.
Pinning a fixed tree
For a binary topology T T T let
A T = { w ∈ R ≥ 0 ( n 2 ) : ∑ j ≠ i w i j = 1 2 ∀ i , W [ S ] = 1 2 ∀ nontrivial splits S of T } . \mathcal{A}_T=\left\{w\in\mathbb{R}_{\ge0}^{\binom{n}{2}}:\sum_{j\ne i}w_{ij}=\frac{1}{2}\ \forall i,\quad W[S]=\frac{1}{2}\ \forall\text{ nontrivial splits }S\text{ of }T\right\}. A T = ⎩ ⎨ ⎧ w ∈ R ≥ 0 ( 2 n ) : j = i ∑ w ij = 2 1 ∀ i , W [ S ] = 2 1 ∀ nontrivial splits S of T ⎭ ⎬ ⎫ .
This is a polytope, since Kraft and w ≥ 0 w \ge0 w ≥ 0 give w i j ≤ 1 2 w_{ij} \le\frac{1}{2} w ij ≤ 2 1 . It is defined by 2 n − 3 2n - 3 2 n − 3 equalities, so for n ≥ 5 n \ge5 n ≥ 5 it is far from a single point.
Theorem 1 (pinning). For every w ∈ A T w \in\mathcal{A}_T w ∈ A T ,
g ( w ) = ( 3 2 − n ) + ∑ i < j w i j log 2 w i j ( w T ) i j . g(w) = \left(\frac{3}{2} - n\right) + \sum_{i<j} w_{ij} \log_2 \frac{w_{ij}}{(w_T)_{ij}}. g ( w ) = ( 2 3 − n ) + i < j ∑ w ij log 2 ( w T ) ij w ij . and the sum is ≥ 0 \ge0 ≥ 0 with equality if and only if w = w T w = w_T w = w T . Consequently w T w_T w T is the unique minimizer of g g g over A T \mathcal{A}_T A T (the unique maximizer of ∑ i H i \sum_i H_i ∑ i H i , with value 3 ( n − 2 ) 3(n - 2) 3 ( n − 2 ) ), and A T ∩ { g ≤ 3 2 − n } = { w T } \mathcal{A}_T \cap\{g \le\frac{3}{2} - n\} = \{w_T\} A T ∩ { g ≤ 2 3 − n } = { w T } .
Proof. Let w ∈ A T w \in\mathcal{A}_T w ∈ A T . By (1) , ∑ i < j τ i j w i j = ∑ e W [ S e ] \sum_{i<j} \tau_{ij}w_{ij} = \sum_e W[S_e] ∑ i < j τ ij w ij = ∑ e W [ S e ] ; each pendant edge contributes a Kraft row and each internal edge a split equality, each equal to 1 2 \frac{1}{2} 2 1 , so the sum is n − 3 2 n - \frac{3}{2} n − 2 3 . Since log 2 ( w T ) i j = − τ i j \log_2(w_T)_{ij} = -\tau_{ij} log 2 ( w T ) ij = − τ ij ,
g ( w ) − ( 3 2 − n ) = ∑ w i j log 2 w i j + ∑ τ i j w i j = ∑ w i j log 2 w i j ( w T ) i j . g(w) - \left(\frac{3}{2} - n\right) = \sum w_{ij}\log_2 w_{ij} + \sum\tau_{ij}w_{ij} = \sum w_{ij}\log_2\frac{w_{ij}}{(w_T)_{ij}}. g ( w ) − ( 2 3 − n ) = ∑ w ij log 2 w ij + ∑ τ ij w ij = ∑ w ij log 2 ( w T ) ij w ij .
Summing the Kraft rows gives ∑ i < j w i j = n / 4 = ∑ i < j ( w T ) i j \sum_{i<j} w_{ij} = n/4 = \sum_{i<j}(w_T)_{ij} ∑ i < j w ij = n /4 = ∑ i < j ( w T ) ij . The log-sum inequality [22 ] , thm. 2.7.1 then gives ∑ w log 2 ( w / w T ) ≥ ( ∑ w ) log 2 ( ∑ w / ∑ w T ) = 0 \sum w\log_2(w/w_T) \ge(\sum w)\log_2(\sum w/\sum w_T) = 0 ∑ w log 2 ( w / w T ) ≥ ( ∑ w ) log 2 ( ∑ w / ∑ w T ) = 0 , with equality if and only if w w w is proportional to, hence equal to, w T w_T w T . The convention 0 log 0 = 0 0\log0 = 0 0 log 0 = 0 is consistent because w T > 0 w_T > 0 w T > 0 . ■
The content of Theorem 1 is that 2 n − 3 2n - 3 2 n − 3 linear equalities and one convex inequality, in ( n 2 ) \binom{n}{2} ( 2 n ) variables and without integrality, describe a fixed tree exactly. It does not give an algorithm, because A T \mathcal{A}_T A T presupposes T T T ; the hardness of the problem therefore lies precisely in determining the splits, which determine the tree.
Remark (flatness). The function g g g is strictly convex, with Hessian diag ( 1 / ( w i j ln 2 ) ) \operatorname{diag}(1/(w_{ij}\ln2)) diag ( 1/ ( w ij ln 2 )) , and on A T \mathcal{A}_T A T it attains its minimum at w T w_T w T , so g − g ( w T ) g - g(w_T) g − g ( w T ) grows quadratically near w T w_T w T . Kelley’s cutting-plane method [24 ] imposes a convex constraint through finitely many of its tangent hyperplanes, added where the current point violates it. Relaxing the manifold to g ≤ 3 2 − n + ε g \le\frac{3}{2} - n + \varepsilon g ≤ 2 3 − n + ε , as any finite set of such tangents does, admits points at distance Θ ( ε ) \Theta(\sqrt{\varepsilon}) Θ ( ε ) from w T w_T w T , so a solver that pins the tree through tangent cuts carries an O ( ε ) O(\sqrt{\varepsilon}) O ( ε ) objective error.
Why equalities and not inequalities: the star point
The pinning is lost if the split equalities are replaced by the cut inequalities W [ S ] ≥ 1 2 W[S] \ge\frac{1}{2} W [ S ] ≥ 2 1 . The star point w i j ⋆ = 1 2 ( n − 1 ) w_{ij}^{\star} = \frac{1}{2(n-1)} w ij ⋆ = 2 ( n − 1 ) 1 , the balanced weights of the star tree, satisfies Kraft and every cut inequality, since W ⋆ [ S ] = ∣ S ∣ ( n − ∣ S ∣ ) 2 ( n − 1 ) ≥ 1 2 W^{\star}[S] = \frac{|S|(n-|S|)}{2(n-1)} \ge\frac{1}{2} W ⋆ [ S ] = 2 ( n − 1 ) ∣ S ∣ ( n − ∣ S ∣ ) ≥ 2 1 . For every integer n ≥ 4 n \ge4 n ≥ 4 it also satisfies
g ( w ⋆ ) = − n 4 ( 1 + log 2 ( n − 1 ) ) < 3 2 − n g(w^\star) = -\frac{n}{4}(1 + \log_2(n - 1)) < \frac{3}{2} - n g ( w ⋆ ) = − 4 n ( 1 + log 2 ( n − 1 )) < 2 3 − n
(Appendix § 3.4 ). So the star lies strictly inside { Kraft , W [ S ] ≥ 1 2 ∀ S , g ≤ 3 2 − n } \{\text{Kraft}, W[S] \ge\frac{1}{2}\ \forall S,\ g \le\frac{3}{2} - n\} { Kraft , W [ S ] ≥ 2 1 ∀ S , g ≤ 2 3 − n } . That relaxation does not pin a tree, and the entropy constraint alone cannot separate trees from non-trees. The star is excluded from A T \mathcal{A}_T A T only because its nontrivial cuts exceed 1 2 \frac{1}{2} 2 1 .
The cut-value ladder and an invariant count
Let us fix a binary tree T T T and a bipartition S S S , and colour each leaf S S S or S c S^c S c . An edge e e e is a boundary edge if both components of T − e T-e T − e contain leaves of both colours; B ( S ) B(S) B ( S ) is the set of boundary edges. Lemma B.1 shows that B ( S ) B(S) B ( S ) is either empty or a subtree of T T T spanning internal vertices only. For each vertex u u u of B ( S ) B(S) B ( S ) , the components of T − u T-u T − u that contain no boundary edge are the pendant subtrees at u u u , and each is monochromatic. A path boundary of length k k k is a path v 0 v 1 ⋯ v k v_0v_1\cdots v_k v 0 v 1 ⋯ v k . Each of its end vertices carries two pendant subtrees, necessarily of opposite colours, and each interior vertex carries exactly one. The colouring is constant if all the interior pendant subtrees have the same colour.
Theorem 2 (cut-value ladder). For every binary tree T T T and bipartition S S S :
B ( S ) = ∅ B(S)=\varnothing B ( S ) = ∅ if and only if S S S is a split of T T T , and then W T [ S ] = 1 2 W_T[S]=\frac{1}{2} W T [ S ] = 2 1 .
∣ B ( S ) ∣ = 1 \lvert B(S)\rvert=1 ∣ B ( S )∣ = 1 if and only if S S S is a split of a tree one NNI away from T T T but not a split of T T T , and then W T [ S ] = 3 4 W_T[S]=\frac{3}{4} W T [ S ] = 4 3 . There are exactly 2 ( n − 3 ) 2(n-3) 2 ( n − 3 ) such bipartitions, two per internal edge, in bijection with the NNI moves of T T T .
If B ( S ) B(S) B ( S ) is a path of length k ≥ 2 k\ge2 k ≥ 2 , then W T [ S ] = 1 − 2 − ( k + 1 ) + 1 4 P W_T[S]=1-2^{-(k+1)}+\frac{1}{4}P W T [ S ] = 1 − 2 − ( k + 1 ) + 4 1 P , where
P = ∑ 1 ≤ i < j ≤ k − 1 c i ≠ c j 2 − ( j − i ) ≥ 0 P=\sum_{\substack{1\le i<j\le k-1\\c_i\ne c_j}}2^{-(j-i)}\ge0 P = 1 ≤ i < j ≤ k − 1 c i = c j ∑ 2 − ( j − i ) ≥ 0 sums over pairs of interior pendant subtrees of opposite colours. In particular W T [ S ] = 1 − 2 − ( k + 1 ) W_T[S]=1-2^{-(k+1)} W T [ S ] = 1 − 2 − ( k + 1 ) (the rungs 7 8 , 15 16 , … \frac{7}{8},\frac{15}{16},\ldots 8 7 , 16 15 , … ) if and only if the colouring is constant, and W T [ S ] > 1 W_T[S]>1 W T [ S ] > 1 otherwise.
If B ( S ) B(S) B ( S ) is not a path, then W T [ S ] ≥ 9 8 W_T[S]\ge\frac{9}{8} W T [ S ] ≥ 8 9 , and equality is attained.
Hence W T [ S ] ∈ { 1 2 } ∪ { 3 4 } ∪ [ 7 8 , ∞ ) W_T[S]\in\left\{\frac{1}{2}\right\}\cup\left\{\frac{3}{4}\right\}\cup\left[\frac{7}{8},\infty\right) W T [ S ] ∈ { 2 1 } ∪ { 4 3 } ∪ [ 8 7 , ∞ ) , and the open intervals ( 1 2 , 3 4 ) \left(\frac{1}{2},\frac{3}{4}\right) ( 2 1 , 4 3 ) and ( 3 4 , 7 8 ) \left(\frac{3}{4},\frac{7}{8}\right) ( 4 3 , 8 7 ) contain no cut value of any tree.
The proof (Appendix § 3.5 ) rests on one identity. Seen from its attachment vertex, each pendant subtree carries total Pauplin weight 1 2 \frac{1}{2} 2 1 . Hence 4 W T [ S ] 4W_T[S] 4 W T [ S ] is the sum of 2 − d 2^{-d} 2 − d over pairs of opposite-coloured pendant subtrees, where d d d is their distance along B ( S ) B(S) B ( S ) (Lemma B.3 ).
Theorem 3 (invariant count). For every binary tree T T T on n ≥ 4 n\ge4 n ≥ 4 leaves,
∣ { bipartitions S : W T [ S ] ≤ 1 } ∣ = 2 n 2 − 10 n + 15 , \left|\left\{\text{bipartitions }S: W_T[S]\le1\right\}\right|=2n^2-10n+15, ∣ { bipartitions S : W T [ S ] ≤ 1 } ∣ = 2 n 2 − 10 n + 15 , counting { S , S c } \{S,S^c\} { S , S c } once and including the n n n trivial splits.
Proof sketch (full proof in Appendix § 3.5 ). By Theorem 2 , W T [ S ] ≤ 1 W_T[S]\le1 W T [ S ] ≤ 1 if and only if B ( S ) B(S) B ( S ) is empty or a path with constant colouring. The empty case gives the 2 n − 3 2n-3 2 n − 3 splits. A path is determined by its two end vertices, an unordered pair of distinct internal vertices, of which there are ( n − 2 2 ) \binom{n-2}{2} ( 2 n − 2 ) . Conversely, every such pair with every admissible colouring yields a bipartition whose boundary is exactly that path. A path of length 1 admits 2 bipartitions (the NNI pair). A path of length k ≥ 2 k\ge2 k ≥ 2 admits 4: 2 × 2 2\times2 2 × 2 end colourings, 2 choices of constant interior colour, halved for complementation. The n − 3 n-3 n − 3 internal edges are the paths of length 1, so the count is ( 2 n − 3 ) + 2 ( n − 3 ) + 4 [ ( n − 2 2 ) − ( n − 3 ) ] = 2 n 2 − 10 n + 15 (2n-3)+2(n-3)+4\left[\binom{n-2}{2}-(n-3)\right]=2n^2-10n+15 ( 2 n − 3 ) + 2 ( n − 3 ) + 4 [ ( 2 n − 2 ) − ( n − 3 ) ] = 2 n 2 − 10 n + 15 .
■
Corollary. By Kraft, every pair cut satisfies W [ { i , j } ] = W [ { i } ] + W [ { j } ] − 2 w i j = 1 − 2 w i j < 1 W[\{i,j\}]=W[\{i\}]+W[\{j\}]-2w_{ij}=1-2w_{ij}<1 W [{ i , j }] = W [{ i }] + W [{ j }] − 2 w ij = 1 − 2 w ij < 1 . Removing the ( n 2 ) \binom{n}{2} ( 2 n ) pair cuts and the n n n singletons from the count of Theorem 3 leaves exactly 3 2 ( n − 2 ) ( n − 5 ) \frac{3}{2}(n-2)(n-5) 2 3 ( n − 2 ) ( n − 5 ) bipartitions with both blocks of size ≥ 3 \ge3 ≥ 3 and W T [ S ] ≤ 1 W_T[S]\le1 W T [ S ] ≤ 1 , again independent of T T T (n ≥ 5 n\ge5 n ≥ 5 ). The subtraction needs the ( n 2 ) \binom{n}{2} ( 2 n ) pair cuts to be distinct bipartitions, which holds for n ≥ 5 n\ge5 n ≥ 5 ; at n = 4 n=4 n = 4 each 2 ∣ 2 2|2 2∣2 bipartition is two pair cuts, and the count of blocks of size ≥ 3 \ge3 ≥ 3 is zero (as it is at n = 5 n=5 n = 5 ).
The individual rungs above 3 4 \frac{3}{4} 4 3 vary with the topology; only the total up to 1 is invariant.
Worked example (n = 6 n=6 n = 6 ). We take the caterpillar (the tree whose internal vertices form a path) with internal path u 1 u 2 u 3 u 4 u_1u_2u_3u_4 u 1 u 2 u 3 u 4 , cherries { 1 , 2 } \{1,2\} { 1 , 2 } at u 1 u_1 u 1 and { 5 , 6 } \{5,6\} { 5 , 6 } at u 4 u_4 u 4 , and leaves 3, 4 at u 2 u_2 u 2 , u 3 u_3 u 3 (Figure 1 a). Table 2 lists four bipartitions.
Figure 1. The two 6-leaf trees of the worked example in § 2.2.3 .
Table 2. Boundaries and cut values of four bipartitions of the 6-leaf caterpillar.
For a branching boundary, we take the tree with cherries { 1 , 2 } \{1,2\} { 1 , 2 } , { 3 , 4 } \{3,4\} { 3 , 4 } , { 5 , 6 } \{5,6\} { 5 , 6 } around a central vertex (Figure 1 b). Then S = { 1 , 3 , 5 } S=\{1,3,5\} S = { 1 , 3 , 5 } has all three internal edges in B ( S ) B(S) B ( S ) , and W T [ S ] = 3 ⋅ 1 4 + 6 ⋅ 1 16 = 9 8 W_T[S]=3\cdot\frac{1}{4}+6\cdot\frac{1}{16}=\frac{9}{8} W T [ S ] = 3 ⋅ 4 1 + 6 ⋅ 16 1 = 8 9 , the minimum in part 4.
The floor W ≥ 1 2 W\ge\frac{1}{2} W ≥ 2 1 and the dichotomy between = 1 2 =\frac{1}{2} = 2 1 and > 1 2 >\frac{1}{2} > 2 1 are published (§ 2.1.3 ). Haws, Hodge and Yoshida [11 ] , cor. 1 show that NNI neighbours are adjacent vertices of P B M E P_{\mathrm{BME}} P BME , but the correspondence between the NNIs and the cuts of value 3 4 \frac{3}{4} 4 3 appears to be new, as do the rest of the ladder and the invariant count.
Theorems 1 and 2 describe a tree once its splits are known; neither says how to find the right splits. A solver searches for them over an outer relaxation of the BME polytope, so the next section reviews the inequalities known to be valid for it.
Facets of the BME polytope for small n n n
In this section we review the known valid inequalities of the BME polytope and compute its facets for n = 6 n=6 n = 6 , to see how much of the polytope they describe. An outer relaxation of P B M E P_{\mathrm{BME}} P BME is a set that contains it, described by inequalities valid for every w T w_T w T ; the feasible set of the compact model is one. The objective is linear in w w w , so the gap between the optimum over an outer relaxation and the optimum over P B M E P_{\mathrm{BME}} P BME comes entirely from the points of the relaxation outside P B M E P_{\mathrm{BME}} P BME . Table 3 lists the known families of valid inequalities, translated into w w w -space and numbered F1–F13 as in [14 ] , table 1.
Table 3. Known inequalities of the BME polytope in w w w -space. For each inequality we record whether the source proves it is facet-defining (facet) or we only know it is valid (valid); whether our experiments ever separate it (used); and whether it is in the default cut set (default).
In F6 the four leaves are distinct; F7–F12 include the perfect-matching, star and cycle inequalities.
F3 is implied by Kraft and the cut inequalities: by Kraft, W [ { i , j , k } ] = 3 2 − 2 ( w i j + w i k + w j k ) W[\{i,j,k\}]=\frac{3}{2}-2(w_{ij}+w_{ik}+w_{jk}) W [{ i , j , k }] = 2 3 − 2 ( w ij + w ik + w j k ) , so the cut inequality W [ { i , j , k } ] ≥ 1 2 W[\{i,j,k\}]\ge\frac{1}{2} W [{ i , j , k }] ≥ 2 1 is F3. Being implied in this way does not prevent it from being a facet: at n = 6 n=6 n = 6 it is the balanced ( 3 , 3 ) (3,3) ( 3 , 3 ) cut inequality, which does define facets of P 6 P_6 P 6 (below).
The named families are a small fraction of the facets. We converted the 105 vertices of P 6 P_6 P 6 to a facet description with cddlib [25 ] , after using the 6 Kraft equalities to eliminate the coordinates w i j w_{ij} w ij of the six pairs at circular distance 2 on the cycle 1 , 2 , … , 6 1,2,\ldots,6 1 , 2 , … , 6 , which leaves 9 coordinates, and obtained 90,262 facets. Lifting F1, F2 and F6 into these coordinates matches 165 of them (F1: 15, F2: 60, F6: 90), or 0.18%; in these coordinates 90% of the facets involve all 9. Among the cut inequalities only the balanced ( 3 , 3 ) (3,3) ( 3 , 3 ) family defines facets of P 6 P_6 P 6 : ( 1 , 5 ) (1,5) ( 1 , 5 ) -cuts are Kraft equalities and ( 2 , 4 ) (2,4) ( 2 , 4 ) -cuts reduce to w i j ≤ 1 4 w_{ij}\le\frac{1}{4} w ij ≤ 4 1 . We measure what the named families add to the bound in § 3.2.2 . Since the known facets describe the polytope only in part, the next section approaches it from the other side, through extended formulations whose variables encode the splits themselves.
A polynomial laminarity, and splits via membership
By Theorem 1, finding a BME tree amounts to finding its splits. We can think of this search as determining an implicit vector x x x indexed by the nontrivial bipartitions, where x S = 1 x_S=1 x S = 1 if and only if the tree we are looking for has S S S as a split. Additionally, we can introduce auxiliary variables s i k s_{ik} s ik for each leaf i i i and each of the n − 3 n-3 n − 3 internal splits of the tree, numbered k = 1 , … , n − 3 k=1,\ldots,n-3 k = 1 , … , n − 3 , with s i k = 1 s_{ik}=1 s ik = 1 if and only if leaf i i i lies on a chosen side of split k k k . Both lead to extended formulations of BMEP: the variables x S x_S x S , whose compatibility constraints we make polynomial in number, in § 2.4.1 , and the variables s i k s_{ik} s ik in § 2.4.2 . Although neither extended formulation turned out to be practical (§ 3.2.4 ), we nevertheless prove some of their theoretical properties.
Incompatibility and a polynomial clique cover
Let G G G be the crossing graph on nontrivial bipartitions, with an edge between every crossing pair. A clique of G G G is a pairwise-crossing family, and a tree contains at most one split from it. For split indicators x S x_S x S the inequality ∑ S ∈ K x S ≤ 1 \sum_{S\in K}x_S\le1 ∑ S ∈ K x S ≤ 1 is therefore valid, and it implies every pairwise inequality x S + x S ′ ≤ 1 x_S+x_{S'}\le1 x S + x S ′ ≤ 1 inside K K K . An edge clique cover of G G G , a family of cliques such that every edge lies in at least one of them, therefore replaces the Θ ( 4 n ) \Theta(4^n) Θ ( 4 n ) pairwise laminarity constraints.
Fixed-leaf representation. For a leaf x x x write A x ( S ) A_x(S) A x ( S ) for the block of S S S containing x x x . Since A x ( S ) ∩ A x ( S ′ ) A_x(S)\cap A_x(S') A x ( S ) ∩ A x ( S ′ ) always contains x x x , the bipartitions S S S and S ′ S' S ′ are compatible if and only if A x ( S ) ⊆ A x ( S ′ ) A_x(S)\subseteq A_x(S') A x ( S ) ⊆ A x ( S ′ ) , A x ( S ′ ) ⊆ A x ( S ) A_x(S')\subseteq A_x(S) A x ( S ′ ) ⊆ A x ( S ) , or A x ( S ) ∪ A x ( S ′ ) = [ n ] A_x(S)\cup A_x(S')=[n] A x ( S ) ∪ A x ( S ′ ) = [ n ] .
Proposition 4 (polynomial laminarity). (a) For distinct leaves x , y x,y x , y and sizes 2 ≤ j ≤ k 2\le j\le k 2 ≤ j ≤ k with j + k ≤ n j+k\le n j + k ≤ n , let
Q x , y j , k = { S : ∣ A x ( S ) ∣ = j , y ∈ A x ( S ) } ∪ { S : ∣ A x ( S ) ∣ = k , y ∉ A x ( S ) } . Q_{x,y}^{j,k}=\{S:|A_x(S)|=j,\ y\in A_x(S)\}\cup\{S:|A_x(S)|=k,\ y\notin A_x(S)\}. Q x , y j , k = { S : ∣ A x ( S ) ∣ = j , y ∈ A x ( S )} ∪ { S : ∣ A x ( S ) ∣ = k , y ∈ / A x ( S )} .
Each Q x , y j , k Q_{x,y}^{j,k} Q x , y j , k is a clique of G G G , and these O ( n 4 ) O(n^4) O ( n 4 ) cliques cover every edge of G G G . (b) Every edge clique cover of G G G has at least 8 ( 1 − e − n / 16 − 2 − n / 4 ) ( n 2 ) 8(1-e^{-n/16}-2^{-n/4})\binom{n}{2} 8 ( 1 − e − n /16 − 2 − n /4 ) ( 2 n ) cliques, where m m m is the number of integers i i i with max ( 2 , n / 4 ) ≤ i < n / 2 \max(2,n/4) \le i < n/2 max ( 2 , n /4 ) ≤ i < n /2 ; in particular, at least ( 1 − o ( 1 ) ) n 2 / 4 (1-o(1))n^2/4 ( 1 − o ( 1 )) n 2 /4 .
Proof of (a). Clique. Two members from the first half have distinct x x x -blocks of size j j j , so neither contains the other, and both blocks contain x x x and y y y , so their union has at most 2 j − 2 < n 2j-2<n 2 j − 2 < n elements (as j ≤ n / 2 j\le n/2 j ≤ n /2 ). Two members from the second half have distinct x x x -blocks of size k k k , and their union misses y y y . For blocks A ∋ y A\ni y A ∋ y from the first half and A ′ ∌ y A'\not\ni y A ′ ∋ y from the second, y ∈ A ∖ A ′ y\in A\setminus A' y ∈ A ∖ A ′ ; A ′ A' A ′ is not contained in A A A , since it would then lie in A ∖ { y } A\setminus\{y\} A ∖ { y } , which has j − 1 < k j-1<k j − 1 < k elements; and their union has at most j + k − 1 ≤ n − 1 j+k-1\le n-1 j + k − 1 ≤ n − 1 elements, because x ∈ A ∩ A ′ x\in A\cap A' x ∈ A ∩ A ′ . By the fixed-leaf criterion, every pair crosses. Cover. Let S , S ′ S,S' S , S ′ cross, with quadrants Q 1 = S ∩ S ′ Q_1=S\cap S' Q 1 = S ∩ S ′ , Q 2 = S ∖ S ′ Q_2=S\setminus S' Q 2 = S ∖ S ′ , Q 3 = S ′ ∖ S Q_3=S'\setminus S Q 3 = S ′ ∖ S and Q 4 = [ n ] ∖ ( S ∪ S ′ ) Q_4=[n]\setminus(S\cup S') Q 4 = [ n ] ∖ ( S ∪ S ′ ) , all nonempty. Choosing the reference leaf in Q 1 Q_1 Q 1 gives ∣ A ∣ + ∣ A ′ ∣ = n + ∣ Q 1 ∣ − ∣ Q 4 ∣ |A|+|A'|=n+|Q_1|-|Q_4| ∣ A ∣ + ∣ A ′ ∣ = n + ∣ Q 1 ∣ − ∣ Q 4 ∣ ; choosing it in Q 4 Q_4 Q 4 gives n + ∣ Q 4 ∣ − ∣ Q 1 ∣ n+|Q_4|-|Q_1| n + ∣ Q 4 ∣ − ∣ Q 1 ∣ . We take x x x in the smaller of Q 1 Q_1 Q 1 and Q 4 Q_4 Q 4 , so that ∣ A ∣ + ∣ A ′ ∣ ≤ n |A|+|A'|\le n ∣ A ∣ + ∣ A ′ ∣ ≤ n , and name the two bipartitions so that ∣ A ∣ ≤ ∣ A ′ ∣ |A|\le|A'| ∣ A ∣ ≤ ∣ A ′ ∣ . The x x x -blocks are not nested, so we can take y ∈ A ∖ A ′ y\in A\setminus A' y ∈ A ∖ A ′ , and then S S S and S ′ S' S ′ both lie in Q x , y ∣ A ∣ , ∣ A ′ ∣ Q_{x,y}^{|A|,|A'|} Q x , y ∣ A ∣ , ∣ A ′ ∣ . Count. There are n ( n − 1 ) n(n-1) n ( n − 1 ) ordered pairs ( x , y ) (x,y) ( x , y ) and O ( n 2 ) O(n^2) O ( n 2 ) size pairs. ■
The condition j + k ≤ n j+k\le n j + k ≤ n cannot be dropped: without it the families are not cliques in general. At n = 6 n=6 n = 6 , Q 1 , 2 4 , 4 Q_{1,2}^{4,4} Q 1 , 2 4 , 4 contains A = { 1 , 2 , 4 , 5 } A=\{1,2,4,5\} A = { 1 , 2 , 4 , 5 } and A ′ = { 1 , 3 , 4 , 6 } A'=\{1,3,4,6\} A ′ = { 1 , 3 , 4 , 6 } , whose union is [ 6 ] [6] [ 6 ] , so the corresponding splits { 3 , 6 } \{3,6\} { 3 , 6 } and { 2 , 5 } \{2,5\} { 2 , 5 } are compatible.
Part (b) is a counting argument, proved in Appendix § 3.11 . The smaller blocks of the bipartitions in a clique pairwise intersect and none contains another, so by an inequality of Bollobás [26 ] and of Greene, Katona and Kleitman [27 ] , a clique has at most β i ( n − 1 i − 1 ) \beta_i\binom{n-1}{i-1} β i ( i − 1 n − 1 ) smaller blocks of each size i i i , with ∑ i β i ≤ 1 \sum_i\beta_i\le1 ∑ i β i ≤ 1 . For sizes n / 4 ≤ i < j < n / 2 n/4\le i<j<n/2 n /4 ≤ i < j < n /2 almost every pair of an i i i -set and a j j j -set crosses, and a clique covers at most a share of about β i β j / 4 \beta_i\beta_j/4 β i β j /4 of these pairs. Each such size pair must be covered in full, while ∑ i < j β i β j ≤ 1 2 \sum_{i<j}\beta_i\beta_j\le\frac{1}{2} ∑ i < j β i β j ≤ 2 1 for every clique, and there are about n 2 / 32 n^2/32 n 2 /32 size pairs.
Sizes. The cover of part (a) has O ( n 4 ) O(n^4) O ( n 4 ) cliques. In split-indicator form these are O ( n 4 ) O(n^4) O ( n 4 ) constraints over Θ ( 2 n ) \Theta(2^n) Θ ( 2 n ) variables x S x_S x S , each of exponential support. Aggregating each half into an indicator, a x , y , t + a^+_{x,y,t} a x , y , t + (“T T T has a split whose x x x -block has size t t t and contains y y y ”) or a x , y , t − a^-_{x,y,t} a x , y , t − (the same with y y y excluded), gives O ( n 3 ) O(n^3) O ( n 3 ) variables and O ( n 4 ) O(n^4) O ( n 4 ) two-term constraints a x , y , j + + a x , y , k − ≤ 1 a^+_{x,y,j}+a^-_{x,y,k}\le1 a x , y , j + + a x , y , k − ≤ 1 . An integer program for set cover over the maximal cliques gives the minimum edge clique cover 1 , 5 , 21 , 49 1,5,21,49 1 , 5 , 21 , 49 for n = 4 , … , 7 n=4,\ldots,7 n = 4 , … , 7 . A subfamily of the cover of part (a) attains these values, and at n = 8 n=8 n = 8 it has 116 cliques, while every edge clique cover has at least 88 (Appendix § 3.11 ), so it is within a factor of 1.32 of the minimum. Between the bounds Ω ( n 2 ) \Omega(n^2) Ω ( n 2 ) and O ( n 4 ) O(n^4) O ( n 4 ) , the growth rate of the minimum is open.
Integrality. The clique relaxation is not integral. G G G contains induced 5-cycles, for example at n = 6 n=6 n = 6 the bipartitions { 2 , 3 , 6 } , { 5 , 6 } , { 2 , 6 } , { 2 , 3 } , { 3 , 4 } \{2,3,6\},\{5,6\},\{2,6\},\{2,3\},\{3,4\} { 2 , 3 , 6 } , { 5 , 6 } , { 2 , 6 } , { 2 , 3 } , { 3 , 4 } , where consecutive ones cross and non-consecutive ones are compatible, so G G G is not a perfect graph. LPs over the cover with random objectives reach fractional optima for every n = 5 , … , 8 n=5,\ldots,8 n = 5 , … , 8 . Proposition 4 gives a compact description of compatibility for problems whose objective is linear in the split indicators, such as maximum-weight compatible splits. We revisit it as part of a BME model in § 3.2.4 .
Side-membership variables
The membership model encodes each of the n − 3 n-3 n − 3 internal splits by a binary side-membership vector s i k ∈ { 0 , 1 } s_{ik}\in\{0,1\} s ik ∈ { 0 , 1 } , with s i k = 1 s_{ik}=1 s ik = 1 if and only if leaf i i i is on the reference side of split k k k . Split k k k separates leaves i i i and j j j if and only if exactly one of s i k s_{ik} s ik and s j k s_{jk} s j k is 1, that is, if and only if their exclusive or (XOR) B i j k = s i k ⊕ s j k B_{ijk}=s_{ik}\oplus s_{jk} B ij k = s ik ⊕ s j k is 1. The four inequalities
B i j k ≤ s i k + s j k , B i j k ≤ 2 − s i k − s j k , B i j k ≥ s i k − s j k , B i j k ≥ s j k − s i k B_{ijk}\le s_{ik}+s_{jk},\qquad B_{ijk}\le2-s_{ik}-s_{jk},\qquad B_{ijk}\ge s_{ik}-s_{jk},\qquad B_{ijk}\ge s_{jk}-s_{ik} B ij k ≤ s ik + s j k , B ij k ≤ 2 − s ik − s j k , B ij k ≥ s ik − s j k , B ij k ≥ s j k − s ik
define the convex hull of the XOR relation and are its facets. Then τ i j − 2 = ∑ k B i j k \tau_{ij} - 2 = \sum_k B_{ijk} τ ij − 2 = ∑ k B ij k . We linearize the product P i j k = B i j k w i j P_{ijk} = B_{ijk}w_{ij} P ij k = B ij k w ij , with w i j ∈ [ L , U ] = [ 2 − ( n − 1 ) , 1 4 ] w_{ij} \in[L,U] = [2^{-(n-1)}, \frac{1}{4}] w ij ∈ [ L , U ] = [ 2 − ( n − 1 ) , 4 1 ] , by the McCormick inequalities [28 ]
L B i j k ≤ P i j k ≤ U B i j k , w i j − U ( 1 − B i j k ) ≤ P i j k ≤ w i j − L ( 1 − B i j k ) , LB_{ijk} \le P_{ijk} \le UB_{ijk}, \qquad w_{ij} - U(1 - B_{ijk}) \le P_{ijk} \le w_{ij} - L(1 - B_{ijk}), L B ij k ≤ P ij k ≤ U B ij k , w ij − U ( 1 − B ij k ) ≤ P ij k ≤ w ij − L ( 1 − B ij k ) ,
which are exact at binary B B B . The cut coupling ∑ i < j P i j k = 1 2 \sum_{i<j} P_{ijk} = \frac{1}{2} ∑ i < j P ij k = 2 1 is the split equality of Theorem 1 for split k k k . We enforce laminarity pairwise, with one binary variable per pair of splits that selects between nesting and disjointness. Symmetry breaking takes the minority side as the reference side A k A_k A k and, for even n n n , places leaf 1 outside every split of size n / 2 n/2 n /2 ; it orders the splits by size, requires the first two to be disjoint cherries (every tree with n ≥ 6 n \ge6 n ≥ 6 has two), and lists splits of equal size in strictly decreasing lexicographic order of their membership vectors:
v k − v k + 1 ≥ 1 − 2 n ( ∣ A k + 1 ∣ − ∣ A k ∣ ) , v k = ∑ i 2 n − i s i k , v_k - v_{k+1} \ge1 - 2^n\left(\lvert A_{k+1}\rvert- \lvert A_k\rvert\right), \qquad v_k = \sum_i 2^{n-i}s_{ik}, v k − v k + 1 ≥ 1 − 2 n ( ∣ A k + 1 ∣ − ∣ A k ∣ ) , v k = i ∑ 2 n − i s ik ,
which forces v k > v k + 1 v_k > v_{k+1} v k > v k + 1 when ∣ A k ∣ = ∣ A k + 1 ∣ \lvert A_k\rvert= \lvert A_{k+1}\rvert ∣ A k ∣ = ∣ A k + 1 ∣ and is slack otherwise.
The leaf-1 condition is needed for correctness as well as symmetry. Without it, two complementary balanced splits pass every compatibility test, which gives duplicate splits and non-trees (at n = 8 n = 8 n = 8 : 17,535 split systems instead of 10,395). The lexicographic order removes the remaining multiplicity: without it a tree with c m c_m c m splits of size m m m is represented ∏ m c m ! \prod_m c_m! ∏ m c m ! times.
Conjecture 1. With these symmetry-breaking constraints, the integral points of the membership model are in one-to-one correspondence with the ( 2 n − 5 ) ! ! (2n - 5)!! ( 2 n − 5 )!! binary topologies, for every n n n .
Complete enumeration confirms Conjecture 1 for n ≤ 8 n \le8 n ≤ 8 : the model has exactly 105, 945 and 10,395 integral points for n = 6 , 7 , 8 n = 6, 7, 8 n = 6 , 7 , 8 , one for each tree.
Cut-polytope inequalities on the membership layer
Each column B ⋅ ⋅ k B_{\cdot\cdot k} B ⋅⋅ k is a cut vector, so the cut-polytope triangle inequalities B i j k ≤ B i p k + B j p k B_{ijk} \le B_{ipk} + B_{jpk} B ij k ≤ B i p k + B j p k and B i j k + B i p k + B j p k ≤ 2 B_{ijk} + B_{ipk} + B_{jpk} \le2 B ij k + B i p k + B j p k ≤ 2 are valid for each split. Summing the first over k k k and using τ i j − 2 = ∑ k B i j k \tau_{ij} - 2 = \sum_k B_{ijk} τ ij − 2 = ∑ k B ij k gives the strong triangle inequality τ i p + τ j p − τ i j ≥ 2 \tau_{ip} + \tau_{jp} - \tau_{ij} \ge2 τ i p + τ j p − τ ij ≥ 2 of [12 ] . The per-split form therefore implies the aggregated one, and it is strictly stronger as a constraint on B B B : with two splits, ( B i j 1 , B i p 1 , B j p 1 ) = ( 1 , 0 , 0 ) (B_{ij1}, B_{ip1}, B_{jp1}) = (1, 0, 0) ( B ij 1 , B i p 1 , B j p 1 ) = ( 1 , 0 , 0 ) and ( B i j 2 , B i p 2 , B j p 2 ) = ( 0 , 1 , 1 ) (B_{ij2}, B_{ip2}, B_{jp2}) = (0, 1, 1) ( B ij 2 , B i p 2 , B j p 2 ) = ( 0 , 1 , 1 ) satisfy the aggregated inequality ( 3 + 3 − 3 ≥ 2 ) (3 + 3 - 3 \ge2) ( 3 + 3 − 3 ≥ 2 ) but violate the per-split inequality for split 1. The odd-cycle inequalities of the cut polytope can be separated in polynomial time [29 ] . We revisit both families in § 3.2.4 . The extended formulations of this section keep the objective linear in w w w , but the condition that makes a matrix a tree metric, the four-point condition, is not linear in w w w ; the next section compares which constraints are linear in w w w and which in τ \tau τ .
Linearity in w w w versus linearity in τ \tau τ
This section compares which constraints are linear in the two coordinate systems w i j = 2 − τ i j w_{ij} = 2^{-\tau_{ij}} w ij = 2 − τ ij and τ i j = − log 2 w i j \tau_{ij} = -\log_2 w_{ij} τ ij = − log 2 w ij , with no auxiliary variables. It describes a trade-off. It is not a lower bound on extended formulations, which may add variables freely; we return to that question in § 3.3 .
The four-point condition in w w w
For the resolution a b ∣ c d ab|cd ab ∣ c d of a quartet, the strong four-point condition in τ \tau τ is the pair of linear constraints
τ a c + τ b d = τ a d + τ b c , τ a c + τ b d ≥ τ a b + τ c d + 2. \tau_{ac}+\tau_{bd}=\tau_{ad}+\tau_{bc}, \qquad\tau_{ac}+\tau_{bd}\geq\tau_{ab}+\tau_{cd}+2. τ a c + τ b d = τ a d + τ b c , τ a c + τ b d ≥ τ ab + τ c d + 2.
In w w w these become
w a c w b d = w a d w b c , w a b w c d ≥ 4 w a c w b d , w_{ac}w_{bd}=w_{ad}w_{bc}, \qquad w_{ab}w_{cd}\geq4w_{ac}w_{bd}, w a c w b d = w a d w b c , w ab w c d ≥ 4 w a c w b d ,
so for a fixed resolution the feasible set in w w w is non-convex. In either coordinate system the condition is a disjunction over the three resolutions. The standard linear outer approximation of a product p = u v p=uv p = uv over a box [ L , U ] 2 [L,U]^2 [ L , U ] 2 , the McCormick envelope [28 ] , is weakest at the centre of the box, where it underestimates p p p by ( U − L 2 ) 2 \left(\frac{U-L}{2}\right)^2 ( 2 U − L ) 2 . With L = 2 − ( n − 1 ) ≈ 0 L=2^{-(n-1)}\approx0 L = 2 − ( n − 1 ) ≈ 0 and U = 1 4 U=\frac{1}{4} U = 4 1 this is 1 64 \frac{1}{64} 64 1 , the whole of p p p at u = v = 1 8 u=v=\frac{1}{8} u = v = 8 1 , so the envelope reduces to p ≥ 0 p\geq0 p ≥ 0 .
The trade-off
Table 4. Linearity of the main objects in each coordinate system, with no auxiliary variables.
In w w w the objective and the cut and Kraft constraints are linear, but the quartet and triangle conditions are not; in τ \tau τ the reverse holds. The distance-indexed model gets both by lifting. Its level indicators x i j ( ℓ ) x_{ij}^{(\ell)} x ij ( ℓ ) make the objective ( ∑ ℓ 2 − ℓ x i j ( ℓ ) ) (\sum_{\ell}2^{-\ell}x_{ij}^{(\ell)}) ( ∑ ℓ 2 − ℓ x ij ( ℓ ) ) and the τ \tau τ -conditions ( τ = ∑ ℓ ℓ x ( ℓ ) ) (\tau=\sum_{\ell}\ell x^{(\ell)}) ( τ = ∑ ℓ ℓ x ( ℓ ) ) linear at once, at the cost of Θ ( n 3 ) \Theta(n^3) Θ ( n 3 ) variables. The same lift makes the whole manifold linear: by (1) every tree satisfies the equality ∑ i < j ∑ ℓ ℓ 2 − ℓ x i j ( ℓ ) = n − 3 2 \sum_{i<j}\sum_{\ell}\ell2^{-\ell}x_{ij}^{(\ell)}=n-\frac{3}{2} ∑ i < j ∑ ℓ ℓ 2 − ℓ x ij ( ℓ ) = n − 2 3 , whereas in w w w only its convex half g ( w ) ≤ 3 2 − n g(w)\leq\frac{3}{2}-n g ( w ) ≤ 2 3 − n can be imposed, as a convex constraint. The claim that no coordinate system makes both linear therefore holds only for the two unlifted systems. We revisit the lifted manifold in § 3.2.7 .
The generalized Kraft cut of the distance-indexed model builds w i j = ∑ ℓ 2 − ℓ x i j ( ℓ ) w_{ij}=\sum_{\ell}2^{-\ell}x_{ij}^{(\ell)} w ij = ∑ ℓ 2 − ℓ x ij ( ℓ ) and imposes W [ S ] ≥ 1 2 W[S]\geq\frac{1}{2} W [ S ] ≥ 2 1 , which is linear in w w w and is exactly the min-cut family of the compact model. Its 2-K-split, circular-order and four-point cuts are linear in τ \tau τ . Rewritten in w w w they take the form ∑ c i j ( − log 2 w i j ) ≥ b \sum c_{ij}(-\log_2 w_{ij})\geq b ∑ c ij ( − log 2 w ij ) ≥ b with c ≥ 0 c\geq0 c ≥ 0 . These are superlevel sets of convex functions and are not convex in w w w , so none has an exact convex counterpart in w w w -coordinates. Valid convex outer approximations exist (for example tangent cuts of P B M E P_{\mathrm{BME}} P BME ), but they are relaxations.
Sufficiency of the path-length conditions
Catanzaro, Pesenti and Wolsey [12 ] give necessary conditions for an integer matrix τ \tau τ to be the path-length matrix of a binary tree: (4) zero diagonal, (5) symmetry, (6) strong triangle τ i k + τ k j − τ i j ≥ 2 \tau_{ik}+\tau_{kj}-\tau_{ij}\geq2 τ ik + τ k j − τ ij ≥ 2 , (7) τ i j ∈ { 2 , … , n − 1 } \tau_{ij}\in\{2,\ldots,n-1\} τ ij ∈ { 2 , … , n − 1 } , (8) Kraft, (9) manifold. Adding the strong four-point condition (10) makes them sufficient: a matrix satisfying (4)–(10) is the path-length matrix of a binary tree [12 ] , [13 ] , thm. 1. Their open question is whether (4)–(9) already suffice, that is, whether (10) follows from the rest.
Theorem 5 (computer-assisted). (4)–(9) imply (10) for every n ≤ 11 n \le11 n ≤ 11 . For n = 12 n = 12 n = 12 they do not, and up to relabelling of the leaves there is exactly one 12 × 12 12 \times12 12 × 12 matrix satisfying (4)–(9) but not (10).
The counterexample (cherry lift). Let
r = ( 0 2 3 4 5 5 2 0 4 3 5 5 3 4 0 3 3 4 4 3 3 0 4 3 5 5 3 4 0 2 5 5 4 3 2 0 ) . r = \begin{pmatrix}
0 & 2 & 3 & 4 & 5 & 5 \\
2 & 0 & 4 & 3 & 5 & 5 \\
3 & 4 & 0 & 3 & 3 & 4 \\
4 & 3 & 3 & 0 & 4 & 3 \\
5 & 5 & 3 & 4 & 0 & 2 \\
5 & 5 & 4 & 3 & 2 & 0
\end{pmatrix}. r = 0 2 3 4 5 5 2 0 4 3 5 5 3 4 0 3 3 4 4 3 3 0 4 3 5 5 3 4 0 2 5 5 4 3 2 0 .
Each row of r r r satisfies ∑ l ≠ k 2 − r k l = 1 2 \sum_{l \ne k} 2^{-r_{kl}} = \frac{1}{2} ∑ l = k 2 − r k l = 2 1 , and r r r satisfies the weak triangle inequality r k l + r l m ≥ r k m r_{kl} + r_{lm} \ge r_{km} r k l + r l m ≥ r k m but is not a tree metric. We replace each of the six nodes by a cherry: leaves 2 a − 1 , 2 a 2a - 1, 2a 2 a − 1 , 2 a (a = 1 , … , 6 a = 1, \ldots, 6 a = 1 , … , 6 ) form cherry a a a , and
τ p q = { 2 , p , q in the same cherry , r a b + 2 , p ∈ cherry a , q ∈ cherry b , a ≠ b . \tau_{pq} =
\begin{cases}
2, & p,q\text{ in the same cherry}, \\
r_{ab} + 2, & p \in\text{cherry }a,\ q \in\text{cherry }b,\ a \ne b.
\end{cases} τ pq = { 2 , r ab + 2 , p , q in the same cherry , p ∈ cherry a , q ∈ cherry b , a = b .
Kraft lifts row by row: 1 4 + 2 ⋅ 1 4 ∑ b 2 − r a b = 1 2 \frac{1}{4} + 2 \cdot\frac{1}{4}\sum_b 2^{-r_{ab}} = \frac{1}{2} 4 1 + 2 ⋅ 4 1 ∑ b 2 − r ab = 2 1 . The shift by 2 turns the weak triangle into the strong one, since ( r a c + 2 ) + ( r c b + 2 ) − ( r a b + 2 ) ≥ 2 (r_{ac} + 2) + (r_{cb} + 2) - (r_{ab} + 2) \ge2 ( r a c + 2 ) + ( r c b + 2 ) − ( r ab + 2 ) ≥ 2 . The manifold holds by direct computation. For the four-point condition, we take the quartet { 1 , 2 , 3 , 5 } \{1,2,3,5\} { 1 , 2 , 3 , 5 } (both leaves of cherry 1 and one leaf each of cherries 2 and 3). Its three pair sums are 8, 9, 9. The two largest are equal, but the gap to the third is 1, which is odd, whereas in a binary tree the gap is 2 m ≥ 2 2m \ge2 2 m ≥ 2 . So (10) fails. In all, 216 quartets of τ \tau τ violate (10).
The positive result for n ≤ 11 n \le11 n ≤ 11 is an exhaustive enumeration of all integer matrices satisfying (4)–(9), and every one of them satisfies (10); uniqueness at n = 12 n = 12 n = 12 combines a further enumeration with a structural argument showing that every counterexample is a 6-cherry lift of a matrix in a single S 6 S_6 S 6 -orbit (Appendix § 3.6 ). The counterexample lies on the manifold, satisfies Kraft and the strong triangle, and is not a tree, so the convex manifold together with these linear conditions cannot certify that a matrix comes from a tree; other characterizations are not ruled out. Catanzaro, Pesenti, Sapucaia and Wolsey [13 Sec. 9] exhibit a 12 × 12 12 \times12 12 × 12 matrix satisfying (4)–(9) but not (10), and it is isomorphic to ours, so the existence of a counterexample is due to them. Our additions are the threshold (n ≤ 11 n \le11 n ≤ 11 sufficient), the uniqueness at n = 12 n = 12 n = 12 , and the cherry-lift construction, which explains the odd gap.
This concludes the theoretical results. Part II turns to computation: it describes the solver built on them and compares it with the distance-indexed solver.
Part II: Computational results
Experimental setup
In this section we describe the machine, the two solvers, the instances and the measures used in Section 8. Both solvers maintain an upper bound and a lower bound on the optimum: every tree they find gives an upper bound, its BME value, and the difficulty lies in raising the lower bound to match it. A solver certifies an instance when it closes the gap between the two, which proves that its best tree is optimal. The main text states each comparison’s conclusion at the level of categories, such as whether a solver certifies or which cut family determines the bound; Appendix D gives the exact times, node counts and percentages behind each conclusion, and Appendix E the checks on numerical reliability.
Hardware and software
Machine: one Apple-silicon (arm64) laptop with 14 cores and 24 GB of RAM, running macOS. No two experiments that report a time ran at the same time.
Threads: every run that reports a time uses ten cores and a time limit of 3600 s: the distance-indexed solver runs Gurobi on 10 threads, and the compact solver runs ten worker processes of one thread each (§ 3.1.2 ). Nothing else runs beside it. Every other experiment reports a bound, a count or a check, uses one thread, and runs beside up to nine others.
Random seeds: a run that reports a time is repeated with three random seeds (Gurobi’s Seed parameter; CPLEX’s randomseed in the compact solver) when the first seed certifies, and we report the median and range of its times and node counts over the seeds. The distance-indexed solver is deterministic for a given seed and thread count, except where a run stops at the time limit; the compact solver with ten workers is not, since its node order depends on timing.
Compact solver: Python 3, with LPs solved by IBM CPLEX 22.1.2 through its Python API. A cut is separated when the LP point violates it by more than a separation tolerance ϵ s e p \epsilon_{\mathrm{sep}} ϵ sep . A node is pruned, and the root certifies, when its lower bound is at least the incumbent minus an absolute pruning tolerance ϵ p r u n e \epsilon_{\mathrm{prune}} ϵ prune . CPLEX’s feasibility and optimality tolerances ϵ L P \epsilon_{\mathrm{LP}} ϵ LP are set below ϵ s e p \epsilon_{\mathrm{sep}} ϵ sep , so that the next LP point satisfies every separated cut. Appendix E gives the values of these and the other tolerances.
Distance-indexed solver: the C++ implementation of Catanzaro et al. [13 ] , compiled with Apple clang 16 at -O3 and linked to Gurobi 12.0.1. We ran the model of § 2.1.4 , whose quartet inequalities the implementation marks as lazy constraints (Gurobi’s Lazy attribute 1), so that Gurobi adds them to the relaxation when they cut off a candidate solution. We enabled every separation family at the implementation’s default violation thresholds: circular order with a greedy tour, generalized Kraft, weak four-point and 2-K-split. The implementation sets Gurobi’s relative MIP gap and keeps Gurobi’s default tolerances (Appendix E). We call a run certified when its final relative gap ( U B − L B ) / U B (UB-LB)/UB ( U B − L B ) / U B (§ 3.1.4 ) is 0.0000% to four decimals, that is, below 5 × 10 − 7 5 \times10^{-7} 5 × 1 0 − 7 . In both solvers, then, “certified” means optimal up to the solvers’ floating-point tolerances; Appendix E checks the certified optima in exact arithmetic.
Conic solver: MOSEK 11.2.5 [30 ] , an interior-point solver for conic programs, run on one thread: directly in the compact solver’s branch and bound, and through CVXPY 1.9.3 [31 ] in the root experiments (§ 3.1.2 ).
Starting tree: both solvers use FastME 2.1.6 [32 ] , which searches for a BME tree by local moves. The distance-indexed solver starts FastME from the tree built by its own LP-based variant of neighbour joining (NJ); the compact solver starts from the better of FastME’s tree and the tree obtained from NJ by hill-climbing with NNI moves as steps.
The compact solver
The compact solver runs its own branch and bound, with CPLEX solving the LP at each node and every separated cut kept for all later nodes. The search is best-first : it always processes next the open node with the least lower bound. A node commits some splits (W [ S ] = 1 2 W[S] = \frac{1}{2} W [ S ] = 2 1 ) and forbids others (W [ S ] ≥ 3 4 W[S] \ge\frac{3}{4} W [ S ] ≥ 4 3 ), a disjunction that is valid by Theorem 2 . It branches on the most balanced split S S S of the incumbent (the best tree found so far) with 1 2 < W [ S ] < 3 4 \frac{1}{2}<W[S]<\frac{3}{4} 2 1 < W [ S ] < 4 3 at the LP optimum, into “commit S S S ” and “forbid S S S ”; a split that crosses a committed one is only forbidden. A node is closed when its bound reaches the incumbent within the pruning tolerance ϵ p r u n e \epsilon_{\mathrm{prune}} ϵ prune , or when its LP optimum is a tree. When a child’s relaxation still contains its parent’s LP optimum, the child inherits the parent’s bound, and its LP is solved only when the search selects it.
Merging two clusters of leaves whenever their union is a side of a committed split, from single leaves onwards, leaves clusters that each hang from the rest of the tree as a subtree of fixed shape (Lemma F.1 ). If leaf i i i lies e i e_i e i edges below the top of its cluster Z Z Z , then in every tree of the node 2 e i w i c 2^{e_i}w_{ic} 2 e i w i c is the same for every i ∈ Z i\in Z i ∈ Z and every leaf c ∉ Z c\notin Z c ∈ / Z , and w i j = 2 − p i j w_{ij}=2^{-p_{ij}} w ij = 2 − p ij for two leaves of Z Z Z at the fixed path length p i j p_{ij} p ij . Each node imposes these cluster equalities , which its relaxation does not imply. When the LP optimum is no tree and has no split with 1 2 < W [ S ] < 3 4 \frac{1}{2}<W[S]<\frac{3}{4} 2 1 < W [ S ] < 4 3 , the search enumerates the trees on the clusters if there are at most m e n u m m_{\mathrm{enum}} m enum of them. Otherwise it branches on the most balanced undecided half-cut (W [ S ] = 1 2 W[S]=\frac{1}{2} W [ S ] = 2 1 ) that crosses no committed split, and if there is none, on cherries: in every tree of the node some pair of the clusters attached to one end vertex of the tree that the committed splits form on the clusters is a cherry, so child k k k commits the k k k -th such pair and forbids the earlier ones. Half-cuts are minimum cuts of the graph weighted by w w w , since every cut is at least 1 2 \frac{1}{2} 2 1 , and the search lists them in polynomial time [33 ] . At such a node the search also looks for a better incumbent: it treats the cherries of the LP point as committed splits and enumerates the trees that remain. Appendix F states the branch and bound in pseudocode.
The search runs on k k k worker processes, each with its own copy of the relaxation. A coordinator holds the open nodes and the incumbent, and whenever a worker returns a node it passes that worker’s cuts to the others and hands it the open node of least bound (or the worker’s own unsolved child, if it has one). With k = 1 k=1 k = 1 this is the sequential search.
We also implemented the families F4–F7 of Table 3 and inequalities (50), (53) and (54) of [12 ] ; the default cut set omits them and keeps min-cut, manifold and PM, together with the crossing cut W [ A ] + W [ B ] ≥ 5 4 W[A]+W[B]\ge\frac{5}{4} W [ A ] + W [ B ] ≥ 4 5 for two crossing bipartitions A A A and B B B that both have cut value 1 2 \frac{1}{2} 2 1 at the LP optimum (valid by Theorem 2 , since at most one of two crossing bipartitions is a split). We revisit this choice in § 3.2.3 .
Imposing the manifold constraint. The manifold constraint g ( w ) = ∑ i < j w i j log 2 w i j ≤ 3 2 − n g(w)=\sum_{i<j}w_{ij}\log_2 w_{ij}\le\frac{3}{2}-n g ( w ) = ∑ i < j w ij log 2 w ij ≤ 2 3 − n of the compact model is convex but not linear. We impose it exactly, as ∑ i < j entr ( w i j ) ≥ ( n − 3 2 ) ln 2 \sum_{i<j}\operatorname{entr}(w_{ij})\ge(n-\frac{3}{2})\ln2 ∑ i < j entr ( w ij ) ≥ ( n − 2 3 ) ln 2 with entr ( x ) = − x ln x \operatorname{entr}(x)=-x\ln x entr ( x ) = − x ln x , which an exponential-cone solver accepts. (We first imposed it in CPLEX by Kelley’s tangent cuts [24 ] , but these led to numerical difficulties, and we dropped them.)
In the root experiments (§ 3.2.3 , § 3.2.4 and § 3.2.7 , Appendix E), every relaxation is solved by MOSEK, and the other cut families are separated at its optimum until none is violated.
In the branch and bound , each node’s LP first goes through the cut loop in CPLEX, without the manifold constraint; the same rows with the constraint are then solved by MOSEK, and a cut violated at the conic optimum returns to the LP loop (Algorithm 5 of Appendix F). The node’s bound is the larger of the LP bound and the conic bound below. Before each conic solve, every row is divided by the power of two nearest its largest coefficient (exact in floating point), since coefficients reach 2 n − 4 2^{n-4} 2 n − 4 .
Each conic bound we report is rigorous. For multipliers y y y of the linear rows (with the sign each row’s sense requires) and μ ≥ 0 \mu\ge0 μ ≥ 0 of the manifold constraint,
b T y − μ β + ∑ j min l j ≤ w j ≤ u j ( r j w j + μ w j ln w j ) , r = c − A T y , β = ( 3 2 − n ) ln 2 , b^{\mathsf{T}}y-\mu\beta+\sum_j\min_{l_j\le w_j\le u_j}\left(r_jw_j+\mu w_j\ln w_j\right),\qquad r=c-A^{\mathsf{T}}y,\ \beta=\left(\frac{3}{2}-n\right)\ln2, b T y − μ β + j ∑ l j ≤ w j ≤ u j min ( r j w j + μ w j ln w j ) , r = c − A T y , β = ( 2 3 − n ) ln 2 ,
is a lower bound on the relaxation, whatever the multipliers; each one-dimensional minimum is at w j = e − r j / μ − 1 w_j=e^{-r_j/\mu-1} w j = e − r j / μ − 1 clipped to [ l j , u j ] [l_j,u_j] [ l j , u j ] . We take y y y and μ \mu μ from the conic solver’s dual solution. In the root experiments we evaluate the bound in 60-digit arithmetic. In the branch and bound, which evaluates it at every node, we evaluate it in double precision and subtract a bound on every rounding error, so the result is at most the exact value (Appendix E). An inaccurate dual can only weaken this bound, never invalidate it. A relaxation with no nonlinear constraint (in § 3.2.7 , those that contain the distance-indexed model’s linear manifold equality, which implies our convex inequality) is a linear program, and we solve it by the dual simplex method of CPLEX, with the safe bound of Neumaier and Shcherbina [34 ] described in Appendix E.
Instances
The instances come from two sources. (a) A synthetic testbed of integer distance matrices for n = 4 , … , 10 n=4,\ldots,10 n = 4 , … , 10 , generated with varying distortion from a tree. They are nested, each being the leading principal submatrix of the next, so they are not independent instances. (b) The matrices distributed with the distance-indexed solver: Primates12, M17, M18 and M43, plus 42 supplementary matrices with n = 20 , … , 30 n=20,\ldots,30 n = 20 , … , 30 , which we name by size and dataset as in that distribution (for example 20_euros2). For the sweep of Section 8.6 we ran one supplementary matrix per size, chosen so that the same biological families continue across sizes (euros2 at n = 20 , 22 , 23 n=20,22,23 n = 20 , 22 , 23 ; proteic M2624 at 25, 26; nucleic M2573 at 27, 28; B-NS1 at 29, 30). 20_rosids and 20_B-HA-573-585 come from the same supplementary set.
Objective values follow the scaling of the distance-indexed solver, whose value is ours times 2 n + 1 2^{n+1} 2 n + 1 ; for example, Primates12 is 802.589 = 0.097972 × 2 13 \times2^{13} × 2 13 .
Metrics
With certified optimum L ∗ L^* L ∗ , lower bound L B LB L B and incumbent value U B UB U B (the BME value of the best tree found):
dual gap ( L ∗ − L B ) / L ∗ (L^*-LB)/L^* ( L ∗ − L B ) / L ∗ ; the root gap is the dual gap of the root LP after separation converges;
primal gap ( U B − L ∗ ) / L ∗ (UB-L^*)/L^* ( U B − L ∗ ) / L ∗ ;
solver gap ( U B − L B ) / U B (UB-LB)/UB ( U B − L B ) / U B , as reported by Gurobi;
gap closed by a family F F F : ( L B b a s e + F − L B b a s e ) / ( L ∗ − L B b a s e ) (LB_{\mathrm{base}+F}-LB_{\mathrm{base}})/(L^*-LB_{\mathrm{base}}) ( L B base + F − L B base ) / ( L ∗ − L B base ) ;
root cut-closeable gap L B f u l l − L B b a s e LB_{\mathrm{full}}-LB_{\mathrm{base}} L B full − L B base , the bound that the full cut set adds to the base relaxation (Kraft and box). A family’s standalone share is ( L B b a s e + F − L B b a s e ) / ( L B f u l l − L B b a s e ) (LB_{\mathrm{base}+F}-LB_{\mathrm{base}})/(LB_{\mathrm{full}}-LB_{\mathrm{base}}) ( L B base + F − L B base ) / ( L B full − L B base ) , and its marginal share is ( L B f u l l − L B f u l l − F ) / ( L B f u l l − L B b a s e ) (LB_{\mathrm{full}}-LB_{\mathrm{full}-F})/(LB_{\mathrm{full}}-LB_{\mathrm{base}}) ( L B full − L B full − F ) / ( L B full − L B base ) . The families overlap, so neither the standalone nor the marginal shares need sum to 100%. These shares do not depend on the order in which the families are separated: when separation converges, the relaxation is the initial polytope with every inequality of the enabled families added, explicitly or implicitly, so it is well defined whatever the order. The order affects only how long convergence takes.
Results
The compact solver certifies up to n = 20 n=20 n = 20 and is mostly slower than the distance-indexed solver
In the timed solves (ten cores, § 3.1.1 ), the compact solver certifies the optimum of every synthetic instance, of Primates12, M17 and M18, and of 20_euros2 and 20_B-HA, in every seed (Table D1 ). It certifies 20_rosids in one of three seeds, just within the hour, and does not certify 21_nucleic or 25_proteic; every run it does not certify stops within 1% of the optimum. The distance-indexed solver, on the same ten cores, certifies all of them (Table D2 ). It is faster on Primates12, M18, 20_euros2 and 20_rosids; the compact solver is faster on M17 and 20_B-HA, by factors of about 1.3 and 2.3 in median time, with the ranges over seeds disjoint. The compact solver’s root gaps are larger, by factors between about 4 and 80 on M17, M18, 20_euros2 and 20_rosids (Table D1 and Table D9 ), and its search makes up the difference by branching, with between five and nearly a thousand times as many nodes.
Table D1.
Table D2.
Table D9. Table D9. The distance-indexed model by cut configuration (§ 3.2.7 ). 10 threads, except the two root-LP rows (one thread). (a) base, no separated cuts; (b) strong triangles strengthened by parity on all triples; then cumulatively generalized Kraft (GK), 2-K-split and circular order (2K, CO), and four-point (4pt); full is the configuration of § 3.1.1 , and full − CO the same without circular order. (a) and (b) are root LPs; the other rows are full solves (time limit 3600 s, three seeds where the first certifies), of which we report the converged root bound. On M18, the + GK run with seed 2 ended early, in each of three attempts, with an internal error of the solver after it rejected a heuristic solution; we report seeds 1 and 3 for that cell. Top: root gap to L ∗ L^* L ∗ (%). Bottom: nodes to certification; “non-tree” marks runs that end at a matrix below L ∗ L^* L ∗ that is not a tree.
The named facets close a shrinking share of the gap
On the synthetic instances, the facet families F1 and F6 of § 2.3 , added to a base of Kraft, the box, every cut W [ S ] ≥ 1 2 W[S] \ge\frac{1}{2} W [ S ] ≥ 2 1 , the double cherry and every crossing cut W [ A ] + W [ B ] ≥ 5 4 W[A] + W[B] \ge\frac{5}{4} W [ A ] + W [ B ] ≥ 4 5 of § 3.1.2 , close two thirds of the root gap at n = 6 n=6 n = 6 and a tenth at $n=10 ({xref}Table D3`).
The minimum-cut family accounts for most of the root bound
For this attribution the manifold is one exact convex constraint (§ 3.1.2 ).
On the real instances, the min-cut family alone closes most of the gap that the full cut set closes at the root, between 71% and 93%, with only 3 to 9 of its rows needed (Table D4 ). The manifold constraint closes nearly all the rest. Every other family (PM, F4–F7 and inequalities (50), (53) and (54) of [12 ] ) adds at most a few percent over min-cut and nothing at the margin. This is why the default cut set keeps only min-cut, crossing, PM and manifold. The synthetic instance behaves in the opposite way: there the min-cut family closes almost nothing and PM most of the gap, so the synthetic testbed of § 3.2.2 is not representative of real data.
Table D4. Shares of the root cut-closeable gap (§ 3.2.3 ; definitions in § 3.1.4 ). One thread. With the manifold imposed exactly (§ 3.1.2 ) and every other family separated by the solver’s own separators until none is violated. Min-cut is standalone; the manifold and the other families are measured with min-cut on: “incr.” is the increment over min-cut alone and “marg.” the marginal share in the full set. “Tight” counts the min-cut rows tight at the root optimum. “Other” gives the other family with the largest increment, and the largest marginal share of any other family in absolute value.
The split layer does not raise the root bound
On Primates12, the membership model of § 2.4.2 starts from a large Kraft-only gap; the min-cut family removes most of it and the manifold constraint most of the remainder. The split, coupling and laminarity layers then leave the root bound unchanged, with either laminarity encoding (Table D5 ). The coupling ∑ i < j P i j = 1 2 \sum_{i<j} P_{ij} = \frac{1}{2} ∑ i < j P ij = 2 1 pins w w w only at integral B B B , and the pairwise laminarity constraints are big-M disjunctions, switched on or off by a binary variable through a large constant, which are loose at fractional s s s . A further lifted model, with cut-value-ladder indicators (y S = 1 ⇒ W [ S ] = 1 2 y_S=1 \Rightarrow W[S]=\frac{1}{2} y S = 1 ⇒ W [ S ] = 2 1 , y S = 0 ⇒ W [ S ] ≥ 3 4 y_S=0 \Rightarrow W[S]\ge\frac{3}{4} y S = 0 ⇒ W [ S ] ≥ 4 3 ), the clique cover of Proposition 4 and an indicator for the 3 4 \frac{3}{4} 4 3 rung, lowers the root gap below that of the min-cut relaxation but does not close it, consistent with G G G not being perfect (§ 2.4.1 ). Each of its three layers contributes, and the manifold is needed for the lowest gap.
Table D5. Root gap on Primates12 of the membership model and the lifted ladder model (§ 3.2.4 ). One thread. Left: membership model, layers added cumulatively, with the two laminarity encodings. Right: lifted ladder model.
The per-split cut-polytope triangles of § 2.4.3 imply the aggregated strong triangle inequality and are strictly stronger as constraints on B B B . Added to the level indicators of the distance-indexed model together with our B B B variables, they give exactly the same root bound as the strong triangle inequality alone, with or without the min-cut family (Table D6); we did not investigate why any further. The odd-cycle inequalities of the cut polytope are never violated at the root optimum of the level-indicator model. In the membership model they are violated, but adding them does not change the root bound.
The residual cannot be repaired quartet by quartet
At the root optimum w ∗ w^* w ∗ of the compact model, with the manifold imposed exactly, on M17, M18, 20_euros2 and 20_rosids, we call a quartet violated if w ∗ w^* w ∗ violates one of the strong four-point inequalities w a b w c d ≥ 4 w a c w b d w_{ab}w_{cd} \ge4w_{ac}w_{bd} w ab w c d ≥ 4 w a c w b d and w a b w c d ≥ 4 w a d w b c w_{ab}w_{cd} \ge4w_{ad}w_{bc} w ab w c d ≥ 4 w a d w b c of the quartet’s resolution a b ∣ c d ab|cd ab ∣ c d in the certified optimal tree T T T . Between a third and a half of all quartets are violated, and among the more strongly violated half w ∗ w^* w ∗ mostly prefers a resolution other than T T T ’s (Table D7). Since this uses T T T , it is a diagnostic and not a separation procedure.
Imposing T T T ’s quartets globally, as the distance-indexed model does lazily, needs a solver that handles both the non-convex four-point products and the exponential cone of the manifold. MOSEK solves the cone but not the products. Gurobi handles the products by spatial branch and bound but has no exponential cone, so it must outer-approximate w ln w w\ln w w ln w ; on M17 its bound stayed below the convex root’s even before any quartet was added. We therefore ask a narrower question: whether the violations can be fixed locally.
To see whether they can, we try to repair each violated quartet on its own, changing only its six weights. The changes that keep Kraft form a plane,
Δ a b = Δ c d = s , Δ a c = Δ b d = t , Δ a d = Δ b c = − ( s + t ) , \Delta_{ab} = \Delta_{cd} = s,\qquad\Delta_{ac} = \Delta_{bd} = t,\qquad\Delta_{ad} = \Delta_{bc} = -(s+t), Δ ab = Δ c d = s , Δ a c = Δ b d = t , Δ a d = Δ b c = − ( s + t ) ,
since the Kraft rows of the quartet’s four leaves have rank four on its six pairs. A local fix is a point ( s , t ) (s,t) ( s , t ) at which the quartet satisfies T T T ’s two inequalities. (We do not impose the equality w a c w b d = w a d w b c w_{ac}w_{bd} = w_{ad}w_{bc} w a c w b d = w a d w b c of § 2.5.1 , which can only make a fix harder.) We write P 0 = w a b w c d P_0 = w_{ab}w_{cd} P 0 = w ab w c d , P 1 = w a c w b d P_1 = w_{ac}w_{bd} P 1 = w a c w b d and P 2 = w a d w b c P_2 = w_{ad}w_{bc} P 2 = w a d w b c . On the plane, the manifold function g ( w ) = ∑ i < j w i j ln w i j g(w) = \sum_{i<j} w_{ij}\ln w_{ij} g ( w ) = ∑ i < j w ij ln w ij has gradient ( ln ( P 0 / P 2 ) , ln ( P 1 / P 2 ) ) (\ln(P_0/P_2),\ln(P_1/P_2)) ( ln ( P 0 / P 2 ) , ln ( P 1 / P 2 )) , so it is smallest where the three products are equal and grows as they separate, while the four-point condition asks for P 0 ≥ 4 max ( P 1 , P 2 ) P_0 \ge4\max(P_1,P_2) P 0 ≥ 4 max ( P 1 , P 2 ) . Because w ∗ w^* w ∗ lies on the boundary of the manifold constraint, a fix that keeps the manifold must stay within the level set of g g g through w ∗ w^* w ∗ . For each violated quartet we compute, with Gurobi’s global solver on the two variables, the local fix of least manifold excess, first within the box 2 − ( n − 1 ) ≤ w ≤ 1 4 2^{-(n-1)} \le w \le\frac{1}{4} 2 − ( n − 1 ) ≤ w ≤ 4 1 only and then with every row of the root relaxation imposed as well.
Within the box, almost every violated quartet has a local fix, and for more than half of them the fix keeps the manifold constraint; nine in ten of the others need an excess g g g above its bound of under 0.003 bits, and none more than 0.04. The manifold is therefore not what ties the quartets together. The cut rows are: once the root’s other rows are imposed, between 85% and 97% of the violated quartets have no local fix at all. Each violated quartet’s six weights appear in a median of 6 to 14 rows that are tight at w ∗ w^* w ∗ and that any local fix would change. The share is as high among the quartets whose separation log 2 P 0 − log 2 max ( P 1 , P 2 ) \log_2 P_0 - \log_2\max(P_1,P_2) log 2 P 0 − log 2 max ( P 1 , P 2 ) is below 1.75, that is, falls short of the required 2 by more than 12.5%. At the other extreme, the optimal tree’s point, which satisfies every quartet, differs from w ∗ w^* w ∗ in nearly all of the ( n 2 ) \binom{n}{2} ( 2 n ) weights (Table D7). The four-point residual at the root is thus a property of the whole weight vector: it cannot be repaired one quartet at a time without breaking the cuts that hold the root bound.
The distance-indexed model certifies 13 of 14 instances with n ≤ 30 n\le30 n ≤ 30 in every seed
In the timed solves (10 threads), the distance-indexed solver certifies 13 of the 14 instances with 12 ≤ n ≤ 30 12\le n\le30 12 ≤ n ≤ 30 in all three seeds (Table D8). The fourteenth, 28_nucleic, certifies in two seeds and stops at the time limit with a gap of 0.05% in the third. Times vary between seeds by up to a factor of four on the same instance, so they support only category-level comparisons. On M43 (n = 43 n=43 n = 43 ) the solver does not leave the root node within the hour, and stops with a gap of 0.9%. M43 is also the only instance at which the smallest terms D i j 2 − τ i j D_{ij}2^{-\tau_{ij}} D ij 2 − τ ij of the objective approach machine precision relative to the objective, the regime in which Catanzaro, Frohn and Pesenti [35 ] show the problem becomes numerically unstable. Every certified run of an instance returns the same tree (Appendix E), which we recover from the integer τ \tau τ output by cherry contraction , repeatedly replacing a cherry by a single leaf; § 3.2.5 uses these optima.
Its root bound comes from its integer lifting, and four-point separation makes its certificates correct
To separate the formulation from its cut families, we measured the root gap to L ∗ L^* L ∗ with the families switched on cumulatively (Table D9 ): (a) the base model with no separated cuts, (b) strong triangles on all triples, then generalized Kraft, then 2-K-split and circular order, then four-point. Configurations (a) and (b) are root LPs; the others are full solves, of which we report the root bound.
The base model already contains every triangle inequality τ i k + τ k j − τ i j ≥ 2 \tau_{ik}+\tau_{kj}-\tau_{ij}\ge2 τ ik + τ k j − τ ij ≥ 2 and the manifold as a linear equality in the level indicators (§ 2.5.2 ). Strengthening the triangles by parity, as in (b), does not move the root LP bound.
With generalized Kraft (our min-cut family) separated, the root bound of the full solve closes between 71% and 98% of the base gap, and the 2-K-split and circular-order families add nothing further at the root. That bound, however, is not the bound of the model’s linear relaxation: the MIP solver also adds its own general-purpose cutting planes, which use the integrality of the level indicators and of the parity variables. With those switched off and the solve stopped at the root (Table D11 ), generalized Kraft closes between 2% (M18) and 72% (20_rosids) of the base gap, and Gurobi’s cuts close most of the rest; on M17 they are mainly mixed-integer rounding, flow cover, cover and GUB cover cuts.
Without four-point separation the model is a relaxation of BME. With generalized Kraft as the only separated family, on M18 and 20_rosids it ends at a matrix that satisfies (4)–(9) of § 2.5.3 and has cherries, but is not a tree, with a value below L ∗ L^* L ∗ . These are real-data instances of the phenomenon behind Theorem 5 . With the 2-K-split and circular-order families added, the M18 run certifies L ∗ L^* L ∗ and the 20_rosids run does not finish within the hour; neither ends at a non-tree.
Four-point separation makes certification much faster, as measured by the number of nodes: from 71 to 1 on M17 and from 5,263 to 965 on M18, while 20_rosids, which does not certify within the hour without it, certifies in 131 nodes (medians over the seeds). It does so during the search: imposed statically on the quartets containing leaf 1, the four-point rows leave the root bound unchanged (Table D10 ), and the solver adds them lazily, where they cut off the non-tree points the search reaches.
Table D10. Table D10. Rows of the distance-indexed base model added to the compact root relaxation (§ 3.2.7 ). One thread. With the compact model’s manifold imposed exactly (§ 3.1.2 ). Root gap to L ∗ L^* L ∗ (%); a cell marked * is the bound of the arm’s last solve before the conic solver failed, which is valid but may be weaker. L: the level indicators; M: the manifold equality; T: the triangle inequalities on all triples; 2K: lifted 2-K-splits for every K K K ; 2K₄: the distance-indexed solver’s root 2-K-split separation, K ≤ 4 K \le4 K ≤ 4 ; 4pt₁: the static four-point rows of every quartet containing leaf 1. Relaxations with M are linear programs (M implies the compact model’s convex manifold inequality) and are solved by dual simplex with the safe bound; the others by MOSEK with the rigorous dual bound (§ 3.1.2 ).
Table D11. Table D11. Where the distance-indexed model’s root bound comes from (Section 8.7). One thread. Root gap to L ∗ L^* L ∗ of the distance-indexed model in the configuration with generalized Kraft only (Table D9), stopped at the root node, with Gurobi’s general-purpose cutting planes off (Cuts 0) and on (default), one thread; and, for comparison, the compact relaxation with the distance-indexed model’s level indicators, manifold equality, triangles and lifted 2-K-splits added (Table D10), and the compact relaxation alone, both with the manifold imposed exactly.
How much of the root comes from general-purpose cuts depends on the solver and the instance. Given the same static model (without generalized Kraft), Gurobi’s and CPLEX’s cuts at the root close between 12% and 85% of its LP gap, and neither solver is better on every instance (Table D12 ). On 28_nucleic they close only about a quarter of it, and the separated families do most of the work: its root falls from about 2.1% to 0.3% once they are added.
Table D12. Table D12. The distance-indexed model’s static root in two MIP solvers (Section 8.7). One thread. The model of the generalized-Kraft configuration exported before any callback cut (so without generalized Kraft), solved on one thread to the end of the root node with each solver’s general-purpose cutting planes at their defaults and at their most aggressive settings (Gurobi Cuts 3; every CPLEX cut family at its upper limit). Root gap to L ∗ L^* L ∗ (%). Last column: CPLEX with every cut family off; Gurobi with Cuts 0 stays within 0.12 points of the LP value.
Which rows of the distance-indexed model would help the compact one can be tested by adding them to the compact relaxation (Table D10 ). The level indicators alone, the triangles alone, the solver’s root 2-K-split separation and the leaf-1 four-point rows each leave the compact root bound unchanged. The linear manifold equality closes between 6% and 47% of the compact root gap, and together with the triangles between 23% and 90%; the lifted 2-K-splits add at most 5%. With all of these rows, the compact relaxation is at least as tight as the distance-indexed model’s own LP with generalized Kraft, on every instance tested (Table D11 ).
The distance-indexed model’s advantage at the root therefore lies in no particular cut family, but in its lifting to integer level indicators. The lift makes the whole manifold equality linear, where the compact model can impose only its convex half, and it gives the MIP solver integer variables on which its general-purpose cuts tighten the root. Four-point separation during the search then makes the certificates correct and fast.
The two solvers also differ in presolve, branching, heuristics and implementation language. These measurements isolate the cut families and the base rows, but they do not separate the formulation from the implementation.
Discussion and open problems
The weight-space formulation has much more structure than earlier work used. A fixed tree’s weights are determined by linear split data and one convex constraint (Theorem 1), cut values form a discrete ladder with an exact NNI characterization and a topology-invariant count (Theorems 2 and 3 ), compatibility has a polynomial clique description (Proposition 4), and the classical path-length conditions without the four-point condition suffice exactly up to n = 11 n = 11 n = 11 (Theorem 5 ). These results stand independently of any solver.
Computationally, the compact model uses ( n 2 ) \binom{n}{2} ( 2 n ) weight variables against Θ ( n 3 ) \Theta(n^3) Θ ( n 3 ) for the distance-indexed model, keeps the objective linear, and certifies instances with up to n = 20 n = 20 n = 20 taxa within an hour. The distance-indexed model certifies most of them faster, from a tighter root bound, and certifies 13 of 14 instances with n ≤ 30 n \le30 n ≤ 30 in every seed. The measurements place the difference in the distance-indexed model’s integer lifting: the linear manifold equality it allows, and above all the integer level indicators on which a MIP solver’s general-purpose cuts act; four-point separation then makes its certificates correct and fast. They do not show that no compact model, and no better branching or separation, could close the gap.
Open problems. Each item is labelled as a question, a conjecture or an observation.
Extension complexity in w w w (question). An extended formulation of a polytope is a polytope in more variables that projects onto it, and the extension complexity is the smallest number of facets such a polytope can have. Is there an extended formulation of P B M E P_{\mathrm{BME}} P BME , in w w w or in split indicators, with O ( n 3 ) O(n^3) O ( n 3 ) variables that represents the manifold equality linearly and exposes integer structure that general-purpose MIP cuts can exploit? Our results bear only on unlifted w w w -constraints. As far as we know, lower-bound techniques such as those of [36 ] , [37 ] have not been applied to P B M E P_{\mathrm{BME}} P BME .
Conjecture 2 (a cherry always exists). Every matrix satisfying (4)–(9) has a cherry, that
is, τ i j = 2 \tau_{ij}=2 τ ij = 2 for some pair. It holds by exhaustive search for n ≤ 15 n \le15 n ≤ 15 , and constraint programming (n = 16 n=16 n = 16 –20 20 20 ) and simulated annealing (n = 24 n=24 n = 24 ) found no counterexample.
The n ≤ 11 n \le11 n ≤ 11 coincidence (observation). The sufficiency threshold of Theorem 5 coincides with the range n ≤ 11 n \le11 n ≤ 11 in which the splitohedron, an outer relaxation of P B M E P_{\mathrm{BME}} P BME defined in [10 ] , equals the BME polytope [14 p. 17] . The two objects are different, and we do not claim a common cause.
In summary, the weight space describes a tree exactly through linear split data and one convex constraint, and a compact solver built on this description certifies instances with up to 20 taxa. Its weakness is the root bound: the distance-indexed model’s integer lifting, which the compact model lacks, is what lets that solver certify larger instances. Closing this gap without giving up the compactness of the weight space is the main open problem that our results leave.
The star-point inequality
We show that g ( w ⋆ ) < 3 2 − n g(w^\star)<\frac{3}{2}-n g ( w ⋆ ) < 2 3 − n for every integer n ≥ 4 n \ge4 n ≥ 4 , where w i j ⋆ = 1 2 ( n − 1 ) w_{ij}^\star=\frac{1}{2(n-1)} w ij ⋆ = 2 ( n − 1 ) 1 . There are ( n 2 ) \binom{n}{2} ( 2 n ) pairs, so
g ( w ⋆ ) = ( n 2 ) 1 2 ( n − 1 ) log 2 1 2 ( n − 1 ) = − n 4 ( 1 + log 2 ( n − 1 ) ) . g(w^\star)=\binom{n}{2}\frac{1}{2(n-1)}\log_2\frac{1}{2(n-1)}=-\frac{n}{4}\left(1+\log_2(n-1)\right). g ( w ⋆ ) = ( 2 n ) 2 ( n − 1 ) 1 log 2 2 ( n − 1 ) 1 = − 4 n ( 1 + log 2 ( n − 1 ) ) .
The inequality − n 4 ( 1 + log 2 ( n − 1 ) ) < 3 2 − n -\frac{n}{4}(1+\log_2(n-1))<\frac{3}{2}-n − 4 n ( 1 + log 2 ( n − 1 )) < 2 3 − n is equivalent, after dividing by n / 4 n/4 n /4 and moving the n n n -dependent terms to the left, to
f ( n ) : = log 2 ( n − 1 ) + 6 n > 3. f(n):=\log_2(n-1)+\frac{6}{n}>3. f ( n ) := log 2 ( n − 1 ) + n 6 > 3.
For real x > 1 x>1 x > 1 ,
f ′ ( x ) = 1 ( x − 1 ) ln 2 − 6 x 2 = q ( x ) x 2 ( x − 1 ) ln 2 , q ( x ) = x 2 − 6 ln 2 ( x − 1 ) . f'(x)=\frac{1}{(x-1)\ln2}-\frac{6}{x^2}=\frac{q(x)}{x^2(x-1)\ln2},\qquad q(x)=x^2-6\ln2\,(x-1). f ′ ( x ) = ( x − 1 ) ln 2 1 − x 2 6 = x 2 ( x − 1 ) ln 2 q ( x ) , q ( x ) = x 2 − 6 ln 2 ( x − 1 ) .
Since q ′ ( x ) = 2 x − 6 ln 2 > 0 q'(x)=2x-6\ln2>0 q ′ ( x ) = 2 x − 6 ln 2 > 0 for x > 3 ln 2 x>3\ln2 x > 3 ln 2 , and 3 ln 2 < 3 3\ln2<3 3 ln 2 < 3 , the quadratic q q q is increasing on [ 3 , ∞ ) [3,\infty) [ 3 , ∞ ) . Also q ( 3 ) = 9 − 12 ln 2 > 0 q(3)=9-12\ln2>0 q ( 3 ) = 9 − 12 ln 2 > 0 because ln 2 < 3 4 \ln2<\frac{3}{4} ln 2 < 4 3 . So q > 0 q>0 q > 0 and f f f is strictly increasing on [ 3 , ∞ ) [3,\infty) [ 3 , ∞ ) . The minimum of f f f on ( 1 , ∞ ) (1,\infty) ( 1 , ∞ ) lies at the larger root of q q q , between 2 and 3, and at the neighbouring integers f ( 2 ) = f ( 3 ) = 3 f(2)=f(3)=3 f ( 2 ) = f ( 3 ) = 3 . Hence f ( n ) > 3 f(n)>3 f ( n ) > 3 for every integer n ≥ 4 n\ge4 n ≥ 4 . (At n = 3 n=3 n = 3 the star is the only binary tree, and the inequality becomes an equality.) □
Proofs of Theorems 2 and 3
Throughout, T T T is binary, S S S is a bipartition, and leaves are coloured S S S or S c S^c S c .
Mass fact. If X X X is the component of T − u v T-uv T − uv containing v v v , then ∑ a ∈ X 2 − d ( u , a ) = 1 2 \sum_{a\in X}2^{-d(u,a)}=\frac{1}{2} ∑ a ∈ X 2 − d ( u , a ) = 2 1 . Proof: rooted at v v v , X X X is a full binary tree (or the single leaf v v v ), so ∑ a ∈ X 2 − d ( v , a ) = 1 \sum_{a\in X}2^{-d(v,a)}=1 ∑ a ∈ X 2 − d ( v , a ) = 1 by the Kraft equality for prefix codes; the edge u v uv uv adds a factor 1 2 \frac{1}{2} 2 1 .
Lemma B.1 (structure of the boundary). (a) Pendant edges are never boundary edges. (b) B ( S ) B(S) B ( S ) is connected. (c) For a vertex u u u of B ( S ) B(S) B ( S ) , every component of T − u T-u T − u that contains no boundary edge is monochromatic. (d) A vertex of degree 1 in B ( S ) B(S) B ( S ) has two pendant subtrees of opposite colours. (e) Conversely, let π \pi π be the path between two distinct internal vertices, and colour the pendant subtrees hanging off π \pi π so that each end of π \pi π has both colours. Then the induced S S S has B ( S ) = π B(S)=\pi B ( S ) = π .
Proof. (a) One side is a single leaf. (b) Let e , f ∈ B ( S ) e,f \in B(S) e , f ∈ B ( S ) and let h h h lie on the path between them. Each side of h h h contains the far side of e e e or of f f f , which is bichromatic, so h ∈ B ( S ) h \in B(S) h ∈ B ( S ) . (c) Let u v uv uv be the edge into such a component X X X . Since u v ∉ B ( S ) uv \notin B(S) uv ∈ / B ( S ) , one side of u v uv uv is monochromatic. The u u u -side contains the far side of a boundary edge at u u u , which is bichromatic, so X X X is monochromatic. (d) The side of the unique boundary edge at u u u that contains u u u is the union of u u u ’s two pendant subtrees. It is bichromatic, and each pendant subtree is monochromatic by (c). (e) Each edge of π \pi π has both colours on each side, coming from the end of π \pi π on that side. Each edge off π \pi π has a side inside one pendant subtree. □
Lemma B.2 (empty boundary). B ( S ) = ∅ B(S)=\varnothing B ( S ) = ∅ if and only if S S S is a split, and then W T [ S ] = 1 2 W_T[S]=\frac{1}{2} W T [ S ] = 2 1 .
Proof. If S S S is the side of an edge u v uv uv containing u u u , then every edge has a side inside S S S or inside S c S^c S c , so B ( S ) = ∅ B(S)=\varnothing B ( S ) = ∅ . Applying the mass fact on both sides gives W T [ S ] = ∑ a ∈ S , b ∉ S 2 − d ( a , u ) − 1 − d ( v , b ) = 1 ⋅ 1 ⋅ 1 2 W_T[S]=\sum_{a\in S,b\notin S}2^{-d(a,u)-1-d(v,b)}=1\cdot1\cdot\frac{1}{2} W T [ S ] = ∑ a ∈ S , b ∈ / S 2 − d ( a , u ) − 1 − d ( v , b ) = 1 ⋅ 1 ⋅ 2 1 . Conversely, suppose B ( S ) = ∅ B(S)=\varnothing B ( S ) = ∅ but S S S is not a split. Among all monochromatic sides of edges, we take one, M M M , of maximum size, and suppose that M M M is the v v v -side of u v uv uv and has colour S S S . Then M ≠ S M\ne S M = S , so the u u u -side contains leaves of both colours and u u u is internal, with two further edges f , g f,g f , g whose far sides F , G F,G F , G partition the leaves on the u u u -side. The near side of f f f contains M ∪ G M\cup G M ∪ G , which is larger than M M M , so by maximality it is not monochromatic. Hence F F F is monochromatic, and likewise G G G . Since F ∪ G F\cup G F ∪ G contains both colours, one of them, say F F F , has colour S S S . Then M ∪ F M\cup F M ∪ F is a monochromatic side of g g g larger than M M M , a contradiction. □
Lemma B.3 (path identity). Let ℓ 1 , ℓ 2 \ell_1,\ell_2 ℓ 1 , ℓ 2 be distinct vertices of degree 1 1 1 in B ( S ) ≠ ∅ B(S)\ne\varnothing B ( S ) = ∅ , joined by the path v 0 = ℓ 1 , v 1 , … , v k = ℓ 2 v_0=\ell_1,v_1,\ldots,v_k=\ell_2 v 0 = ℓ 1 , v 1 , … , v k = ℓ 2 (k ≥ 1 k\ge1 k ≥ 1 ). Each interior v i v_i v i has one neighbour off the path; let X i X_i X i be the component through it. We define m S ( i ) = 2 ∑ a ∈ X i ∩ S 2 − d ( v i , a ) m_S(i)=2\sum_{a\in X_i\cap S}2^{-d(v_i,a)} m S ( i ) = 2 ∑ a ∈ X i ∩ S 2 − d ( v i , a ) and m c ( i ) = 1 − m S ( i ) m_c(i)=1-m_S(i) m c ( i ) = 1 − m S ( i ) , the two colour masses of X i X_i X i , which sum to 1 1 1 by the mass fact. Then
4 W T [ S ] = 4 − 2 1 − k + ∑ 1 ≤ i < j ≤ k − 1 ( m S ( i ) m c ( j ) + m c ( i ) m S ( j ) ) 2 − ( j − i ) + 4 ∑ i = 1 k − 1 W X i , 4W_T[S]=4-2^{1-k}+\sum_{1\le i<j\le k-1}\left(m_S(i)m_c(j)+m_c(i)m_S(j)\right)2^{-(j-i)}+4\sum_{i=1}^{k-1}W_{X_i}, 4 W T [ S ] = 4 − 2 1 − k + 1 ≤ i < j ≤ k − 1 ∑ ( m S ( i ) m c ( j ) + m c ( i ) m S ( j ) ) 2 − ( j − i ) + 4 i = 1 ∑ k − 1 W X i , where W X i = ∑ a ∈ X i ∩ S , b ∈ X i ∩ S c 2 − τ a b ≥ 0 W_{X_i}=\sum_{a\in X_i\cap S,b\in X_i\cap S^c}2^{-\tau_{ab}}\ge0 W X i = ∑ a ∈ X i ∩ S , b ∈ X i ∩ S c 2 − τ ab ≥ 0 .
Proof. Every leaf lies either in one of the four end pendant subtrees (two at each end, of opposite colours by B.1(d)) or in some X i X_i X i . By the mass fact, a part of mass α \alpha α at path position i i i and a part of mass β \beta β at position j j j contribute α β 2 − ∣ i − j ∣ \alpha\beta2^{-|i-j|} α β 2 − ∣ i − j ∣ to 4 W 4W 4 W , and each end pendant subtree has mass 1 1 1 . There are four kinds of opposite-coloured pairs.
End–end: 1 + 1 1+1 1 + 1 (same vertex) plus 2 ⋅ 2 − k 2\cdot2^{-k} 2 ⋅ 2 − k (across).
End–X i X_i X i : each colour part of X i X_i X i meets the opposite-coloured pendant subtree at each end, giving ( m S ( i ) + m c ( i ) ) ( 2 − i + 2 − ( k − i ) ) = 2 − i + 2 − ( k − i ) (m_S(i)+m_c(i))(2^{-i}+2^{-(k-i)})=2^{-i}+2^{-(k-i)} ( m S ( i ) + m c ( i )) ( 2 − i + 2 − ( k − i ) ) = 2 − i + 2 − ( k − i ) . Summed over i = 1 , … , k − 1 i=1,\ldots,k-1 i = 1 , … , k − 1 this is 2 − 2 2 − k 2-2^{2-k} 2 − 2 2 − k .
X i X_i X i –X j X_j X j : the displayed double sum.
Within X i X_i X i : the last term.
Adding, 2 + 2 1 − k + 2 − 2 2 − k = 4 − 2 1 − k 2+2^{1-k}+2-2^{2-k}=4-2^{1-k} 2 + 2 1 − k + 2 − 2 2 − k = 4 − 2 1 − k . □
Proof of Theorem 2. Part 1 is Lemma B.2.
Path boundaries. If B ( S ) B(S) B ( S ) is the path v 0 ⋯ v k v_0\cdots v_k v 0 ⋯ v k , each X i X_i X i is a pendant subtree, monochromatic by B.1(c), so m S ( i ) ∈ { 0 , 1 } m_S(i)\in\{0,1\} m S ( i ) ∈ { 0 , 1 } and W X i = 0 W_{X_i}=0 W X i = 0 . Lemma B.3 gives 4 W = 4 − 2 1 − k + P 4W=4-2^{1-k}+P 4 W = 4 − 2 1 − k + P . Hence W = 1 − 2 − ( k + 1 ) W=1-2^{-(k+1)} W = 1 − 2 − ( k + 1 ) if and only if the interior colouring is constant, which is always the case for k ≤ 2 k\le2 k ≤ 2 . For a non-constant colouring with k ≥ 3 k\ge3 k ≥ 3 , some adjacent interior pair differs, so P ≥ 1 2 > 2 1 − k P\ge\frac{1}{2}>2^{1-k} P ≥ 2 1 > 2 1 − k and W > 1 W>1 W > 1 .
For k = 1 k=1 k = 1 , W = 3 4 W=\frac{3}{4} W = 4 3 . Let the boundary edge be u v uv uv , with pendant subtrees A A A , B B B at u u u and C C C , D D D at v v v . By B.1(d), S S S is A ∪ C A\cup C A ∪ C or A ∪ D A\cup D A ∪ D up to complement, and these are exactly the two splits created by the NNI moves across u v uv uv . Conversely, each NNI split across u v uv uv has boundary { u v } \{uv\} { uv } . The boundary determines the edge, so the 2 ( n − 3 ) 2(n-3) 2 ( n − 3 ) bipartitions are distinct. Bipartitions with ∣ B ∣ ≥ 2 |B|\ge2 ∣ B ∣ ≥ 2 have W ≥ 7 8 W\ge\frac{7}{8} W ≥ 8 7 , so W = 3 4 W=\frac{3}{4} W = 4 3 if and only if ∣ B ( S ) ∣ = 1 |B(S)|=1 ∣ B ( S ) ∣ = 1 . This proves parts 2 and 3.
Branching boundaries. If B ( S ) B(S) B ( S ) is not a path, it is a subtree with at least three vertices of degree 1. We take two of them, ℓ 1 \ell_1 ℓ 1 and ℓ 2 \ell_2 ℓ 2 , at distance k ≥ 2 k\ge2 k ≥ 2 . A third, ℓ 3 \ell_3 ℓ 3 , lies off the path, inside some X i X_i X i . Its two pendant subtrees have opposite colours and are at distance 0, so 4 W X i ≥ 1 4W_{X_i}\ge1 4 W X i ≥ 1 . Lemma B.3 gives 4 W ≥ 4 − 2 1 − k + 1 ≥ 9 2 4W\ge4-2^{1-k}+1\ge\frac{9}{2} 4 W ≥ 4 − 2 1 − k + 1 ≥ 2 9 , that is, W ≥ 9 8 W\ge\frac{9}{8} W ≥ 8 9 . Equality holds for three cherries around one vertex with S S S taking one leaf of each (Section 3.3). This proves part 4. □
Proof of Theorem 3. By Theorem 2 , W ≤ 1 W\le1 W ≤ 1 if and only if B ( S ) = ∅ B(S)=\varnothing B ( S ) = ∅ (2 n − 3 2n-3 2 n − 3 splits, one per edge) or B ( S ) B(S) B ( S ) is a path with constant colouring. By B.1(e) and the uniqueness of B ( S ) B(S) B ( S ) , bipartitions of the second kind correspond bijectively to pairs consisting of a path between distinct internal vertices and an admissible colouring up to complement. For a path of length k k k there are 2 ⋅ 2 ⋅ 2 k − 1 2\cdot2\cdot2^{k-1} 2 ⋅ 2 ⋅ 2 k − 1 admissible colourings, of which 8 are constant for k ≥ 2 k\ge2 k ≥ 2 ; halving for complements leaves 4. For k = 1 k=1 k = 1 there are 4 / 2 = 2 4/2=2 4/2 = 2 . There are ( n − 2 2 ) \binom{n-2}{2} ( 2 n − 2 ) pairs of internal vertices, n − 3 n-3 n − 3 of them adjacent, so
∣ { W ≤ 1 } ∣ = ( 2 n − 3 ) + 2 ( n − 3 ) + 4 [ ( n − 2 2 ) − ( n − 3 ) ] = 2 ( n − 3 ) 2 + 2 n − 3 = 2 n 2 − 10 n + 15. |\{W\le1\}|=(2n-3)+2(n-3)+4\left[\binom{n-2}{2}-(n-3)\right]=2(n-3)^2+2n-3=2n^2-10n+15. ∣ { W ≤ 1 } ∣ = ( 2 n − 3 ) + 2 ( n − 3 ) + 4 [ ( 2 n − 2 ) − ( n − 3 ) ] = 2 ( n − 3 ) 2 + 2 n − 3 = 2 n 2 − 10 n + 15.
Appendix C. The enumeration behind Theorem 5
Representation. Candidate matrices are filled row by row in the upper triangle. A row type is a multiset of path lengths that can appear in one Kraft row. Because ∑ j 2 − ( τ i j − 1 ) = 1 \sum_j 2^{-(\tau_{ij}-1)}=1 ∑ j 2 − ( τ ij − 1 ) = 1 is the depth profile of a full binary tree, there are few row types: 9, 16, 28, 50 and 89 for n = 8 , … , 12 n=8,\ldots,12 n = 8 , … , 12 .
Pruning. The search applies three prunes.
It checks the strong triangle (6) as soon as a triple is complete.
Every partially filled row must remain a sub-multiset of at least one row type, tracked as a bitmask over the types. This makes (7) and (8) exact at completion.
It bounds (9) row by row, using the minimum and maximum manifold contribution over each incomplete row’s remaining compatible types.
Symmetry and completeness. Leaf 1’s row is put in non-decreasing order, which removes relabellings of the other n − 1 n-1 n − 1 leaves. This is valid for an existence question, since any solution can be relabelled to satisfy it. Otherwise the search is exhaustive: it cuts a branch only if the branch violates (6)–(9). A survivor is a complete matrix satisfying (4)–(9), and each survivor is then tested against (10). Without the ordering constraint on leaf 1, the survivor counts equal ( 2 n − 5 ) ! ! (2n-5)!! ( 2 n − 5 )!! for n ≤ 8 n\le8 n ≤ 8 with no non-tree, so the enumerator neither misses a tree nor produces a spurious matrix on these sizes.
Table C1 . Canonical survivors of the enumeration. For n = 12 n=12 n = 12 see “Uniqueness at n = 12 n=12 n = 12 ” below.
Table C1. Canonical survivors of the enumeration.
Uniqueness at n = 12 n = 12 n = 12 . (o) A complete search for 12 × 12 12 \times12 12 × 12 matrices satisfying (4)–(9) with no pair at path length 2 finds none, so every counterexample has a cherry. (i) Let { i , j } \{i,j\} { i , j } be a cherry of a counterexample τ \tau τ . The strong triangle forces τ i k = τ j k = : a k \tau_{ik} = \tau_{jk} =: a_k τ ik = τ j k =: a k for all k k k . Contracting the cherry to a leaf p p p with τ p k = a k − 1 \tau_{pk} = a_k - 1 τ p k = a k − 1 preserves Kraft and range, lowers the manifold sum by exactly 1 (so (9) holds for n − 1 n - 1 n − 1 ), and preserves the strong triangle except possibly on triangles through p p p . If it held there too, the contracted matrix would satisfy (4)–(9) for n = 11 n = 11 n = 11 and so would be a tree, and τ \tau τ , its cherry expansion, would be a tree as well, a contradiction. So some k , l k,l k , l have a k + a l − τ k l < 4 a_k + a_l - \tau_{kl} < 4 a k + a l − τ k l < 4 . In the quartet { i , j , k , l } \{i,j,k,l\} { i , j , k , l } the two cross sums then both equal a k + a l a_k + a_l a k + a l and the third is 2 + τ k l 2 + \tau_{kl} 2 + τ k l , so the gap is below 2 (or the third sum is the unique maximum) and (10) fails. Every cherry of a counterexample therefore lies in a violating quartet. (ii) Hence a complete search that fixes a cherry at { 1 , 2 } \{1,2\} { 1 , 2 } and a violation at { 1 , 2 , 3 , 4 } \{1,2,3,4\} { 1 , 2 , 3 , 4 } finds every class of counterexample. It terminates with 84 witnesses, all in one class: 6-cherry lifts. (iii) The reduced 6-node matrices of weak-triangle type number 285, of which 105 are trees and 180 are not, and the 180 form a single S 6 S_6 S 6 -orbit (that of r r r , whose stabilizer has order 4).
Appendix D. Tables of results
The tables of this appendix give the exact values behind the conclusions of § 3.2 . Times are wall-clock seconds; a cell with a range is the median and, in brackets, the minimum and maximum over the seeds that ran.
Table D1. The compact solver (§ 3.2.1 ). Ten cores. Ten workers of one thread each, time limit 3600 s; seeds 2 and 3 where seed 1 certified. Time in seconds. Gaps relative to L ∗ L^* L ∗ ; the final gap is given for runs stopped by the time limit.
Table D2. The two solvers on the instances of Table D1 with n ≥ 12 n \ge12 n ≥ 12 (§ 3.2.1 ). Ten cores. The compact solver as in Table D1, the distance-indexed solver in the configuration of Section 7.1 (Table D8; 20_rosids from the configuration full of Table D9 , which is the same). Time in seconds to certify, and nodes, for each solver.
Table 5.
Table 6. Table D6. Root gap on Primates12 of the level-indicator model with per-split triangles (§ 3.2.4 ). One thread. The last column is the largest difference between the bound with per-split triangles (alone or with the strong triangle) and the bound with the strong triangle alone.
Table 7. Table D7. Local fixes of the quartets violated at the compact model’s root (§ 3.2.5 ). One thread. At the root optimum w ∗ w^{*} w ∗ (manifold exact): quartets whose optimal-tree resolution w ∗ w^{*} w ∗ violates; the share of them with no local fix (a change of the quartet’s six weights that keeps Kraft and satisfies the tree’s four-point inequalities) within the box 2 − ( n − 1 ) ≤ w ≤ 4 2^{-(n-1)} \le w \le4 2 − ( n − 1 ) ≤ w ≤ 4 ; with a local fix within the box that also keeps the manifold constraint; with no local fix once every row of the root relaxation is imposed as well (rows), over all violated quartets and over those violated by more than 12.5% (separation below 1.75 bits); and the number of weights, out of ( n 2 ) \binom{n}{2} ( 2 n ) , in which w ∗ w^{*} w ∗ differs from the optimal tree’s point.
Table 8. Table D8. The distance-indexed solver (Section 8.6). 10 threads. Configuration of § 3.1.1 , time limit 3600 s. Time in seconds. Last column: final gap of the runs that did not certify.
Table 10.
Appendix E. Numerical reliability
The tolerances and parameters of § 3.1.1 and § 3.1.2 take the following values.
Compact solver: separation tolerance ϵ s e p = 10 − 7 \epsilon_{\mathrm{sep}} = 10^{-7} ϵ sep = 1 0 − 7 ; absolute pruning tolerance ϵ p r u n e = 10 − 6 \epsilon_{\mathrm{prune}} = 10^{-6} ϵ prune = 1 0 − 6 , on objective values between about 0.08 and 7; CPLEX’s feasibility and optimality tolerances ϵ L P = 10 − 9 \epsilon_{\mathrm{LP}} = 10^{-9} ϵ LP = 1 0 − 9 ; the largest number of clusters whose trees are enumerated exactly, m e n u m = 10 m_{\mathrm{enum}} = 10 m enum = 10 .
Distance-indexed solver: relative MIP gap 10 − 8 10^{-8} 1 0 − 8 , set by the implementation; Gurobi’s defaults otherwise: absolute feasibility and optimality tolerances of 10 − 6 10^{-6} 1 0 − 6 , an absolute integrality tolerance of 10 − 5 10^{-5} 1 0 − 5 and an absolute MIP gap of 10 − 10 10^{-10} 1 0 − 10 .
Both solvers compute in floating point, and the distance-indexed model’s objective coefficients 2 − ℓ 2^{-\ell} 2 − ℓ span a factor 2 n − 3 2^{n-3} 2 n − 3 , which exceeds 10 8 10^8 1 0 8 for n ≥ 30 n \ge30 n ≥ 30 . Catanzaro, Frohn and Pesenti [35 ] show that the objective itself becomes numerically unstable once its smallest terms D i j 2 − τ i j D_{ij}2^{-\tau_{ij}} D ij 2 − τ ij approach machine precision, and that no rescaling of the exponents τ \tau τ avoids this without changing the optimal tree. On every instance that either solver certifies here, the smallest term is at least 2 × 10 − 11 2 \times10^{-11} 2 × 1 0 − 11 of the optimal value; on M43 it is 9 × 10 − 16 9 \times10^{-16} 9 × 1 0 − 16 , a few units of machine precision. (The distance-indexed solver multiplies the objective by 2 n + 1 2^{n+1} 2 n + 1 ; scaling by a constant changes neither the optimum nor any condition number.) This appendix tests whether rounding could have changed any reported result, in the objective or in the relaxations.
Every certified optimum is exactly a tree’s value. For each instance of Table D8, every certified run of the distance-indexed solver (Tables D8 and Table D9 , configurations that separate the four-point condition) returns the same tree. Its path-length matrix satisfies the four-point condition, and its BME value, computed in exact rational arithmetic from the decimal input, differs from the value the solver reports by at most a relative 3 × 10 − 12 3 \times10^{-12} 3 × 1 0 − 12 . Its value is therefore exact. That no better tree exists rests, as for most computational results in exact combinatorial optimization, on three things: the validity of the model’s rows and cut families for every tree, proved by Catanzaro et al. [12 ] , [13 ] ; their correct implementation; and the correctness of the search up to the solver’s tolerances. Independent certification of the bounds and of each cut has been carried out for the travelling salesman problem [38 ] , and exact MIP solving with verifiable certificates [39 ] covers the search; a formal proof of a BME optimum at these sizes would need both. The checks below test the three ingredients where they can, without amounting to such a proof: the enumeration covers only n ≤ 12 n \le12 n ≤ 12 , and the exact row checks show that no row cuts off the certified tree, not that none cuts off a better one.
Safe bounds and rows that would cut off the optimum. Every LP bound in Appendix D comes with a safe lower bound in the sense of Neumaier and Shcherbina [34 ] . For the LP min { c ⊤ x : A x □ b , l ≤ x ≤ u } \min\{c^\top x : Ax \mathrel{\Box} b,\ l \le x \le u\} min { c ⊤ x : A x □ b , l ≤ x ≤ u } and any dual vector y y y of the correct signs, b ⊤ y + ∑ j min ( r j l j , r j u j ) b^\top y + \sum_j \min(r_j l_j,r_j u_j) b ⊤ y + ∑ j min ( r j l j , r j u j ) with r = c − A ⊤ y r = c-A^\top y r = c − A ⊤ y is a lower bound on the LP optimum. We take y y y from the solver, set any component of the wrong sign to zero, and evaluate the bound in exact rational arithmetic on the LP as written in double precision, so the result is rigorous for that LP. Separately, we evaluated every row of each final LP, again exactly, at the point of the certified optimal tree: a row violated there would make the bound invalid for BME, whatever the arithmetic. Table E1 shows that no row of any of these LPs cuts off the optimal tree, and that the safe bounds lie below the solver’s values by at most a relative 10 − 14 10^{-14} 1 0 − 14 , far less than any gap we report.
Table E1. Safe bounds and the exact check at the optimal tree. One thread. For each group of LP bounds: the number of LPs, the most negative relative difference between the safe bound and the solver’s LP value (negative: the floating-point value overstates the bound), the number of LP rows that cut off the certified optimal tree in exact arithmetic, and the number of LPs whose safe bound is − ∞ -\infty − ∞ .
Table D3. Root bound with F1 and F6 on the synthetic instances (§ 3.2.2 ). One thread. L ∗ L^* L ∗ by enumeration of all trees.
Conic bounds in double precision. The branch and bound evaluates the Lagrangian bound of § 3.1.2 at every node in double precision, with explicit bounds on the rounding errors in the style of Higham [40 ] . Let δ = 2 − 53 \delta= 2^{-53} δ = 2 − 53 be the unit roundoff and γ k = k δ / ( 1 − k δ ) \gamma_k = k\delta/(1-k\delta) γ k = k δ / ( 1 − k δ ) ; a sum or dot product of k k k terms, computed in any order, is within γ k \gamma_k γ k times the sum of the absolute values of its terms. With m m m rows, the computed reduced cost r ^ j \hat{r}_j r ^ j is therefore within ε j = γ m + 2 ( ∣ c j ∣ + ( ∣ A ∣ ⊤ ∣ y ∣ ) j ) \varepsilon_j = \gamma_{m+2}(|c_j| + (|A|^\top|y|)_j) ε j = γ m + 2 ( ∣ c j ∣ + ( ∣ A ∣ ⊤ ∣ y ∣ ) j ) of r j r_j r j . The solver doubles ε j \varepsilon_j ε j , to cover the rounding in computing it, and subtracts it from r ^ j \hat{r}_j r ^ j , which gives a value r ~ j ≤ r j \tilde{r}_j \leq r_j r ~ j ≤ r j . Each one-dimensional minimum φ j ( r ) = min l j ≤ x ≤ u j ( r x + μ x ln x ) \varphi_j(r) = \min_{l_j \leq x \leq u_j}(rx + \mu x \ln x) φ j ( r ) = min l j ≤ x ≤ u j ( r x + μx ln x ) is nondecreasing in r r r , since its derivative is the minimiser x ≥ l j > 0 x \geq l_j > 0 x ≥ l j > 0 , so φ j ( r ~ j ) ≤ φ j ( r j ) \varphi_j(\tilde{r}_j) \leq\varphi_j(r_j) φ j ( r ~ j ) ≤ φ j ( r j ) . For μ > 0 \mu> 0 μ > 0 the stationary point is e t e^t e t with t = − r ~ j / μ − 1 t = -\tilde{r}_j/\mu- 1 t = − r ~ j / μ − 1 . The solver takes the minimum at the endpoint l j l_j l j only when t < ln l j t < \ln l_j t < ln l j by more than the rounding error in t t t plus 10 − 6 10^{-6} 1 0 − 6 , at u j u_j u j only when t > ln u j t > \ln u_j t > ln u j by as much, and otherwise takes the minimum over all x > 0 x > 0 x > 0 , which is − μ e t -\mu e^t − μ e t and never above the minimum over the box. Each term is then lowered by 16 units of roundoff of the magnitudes it is computed from, which covers exponentials and logarithms accurate to a few units in the last place, and each sum by γ \gamma γ of its length. The result is at most the exact value of the Lagrangian bound for the multipliers in hand, given IEEE 754 arithmetic and that accuracy of the exponential and logarithm.
Certificates against exhaustive enumeration. On instances small enough to enumerate every tree, a certificate can be compared with the truth. We cropped each real instance to n = 6 , … , 12 n = 6,\ldots,12 n = 6 , … , 12 leaves, both to its first n n n leaves and to three random subsets of n n n leaves per size, enumerated all ( 2 n − 5 ) ! ! (2n - 5)!! ( 2 n − 5 )!! trees by stepwise addition [41 ] , re-ranked the best 200 in exact arithmetic, and ran both solvers on each crop with one thread. These crops test correctness, not scaling. Over the 196 crops of the seven real instances (at each n = 6 , … , 12 n = 6,\ldots,12 n = 6 , … , 12 , the first n n n leaves and three random subsets) and the five synthetic instances, both solvers certified all 201. No certificate from either solver is false: every certified tree is optimal, including on crops where the best and second-best trees differ by a relative 10 − 5 10^{-5} 1 0 − 5 (Table E2 ).
Table E2. Table E2. Certificates against exhaustive enumeration. One thread per crop; not comparable with the times of Tables D1 and D8. Crops of each instance to n = 6 , … , 12 n = 6,\ldots,12 n = 6 , … , 12 leaves (the first n n n , or three random subsets per n n n ). Columns: crops, crops certified by each solver, smallest relative gap between the optimum and the best non-optimal tree, and false certificates (a certified tree that is not optimal). Both solvers had a time limit of one hour per crop.
Conditioning. The condition number of a basis, the ratio of its largest to its smallest singular value, bounds how much rounding errors in the data can be amplified in the solution of the corresponding linear system [40 ] . It is unchanged when the whole matrix is multiplied by a scalar but not when rows and columns are scaled separately, so we report it for the optimal root basis after Ruiz’s equilibration [42 ] , which divides every row and column by the square root of its largest absolute entry, repeatedly, until all of them are within 10 − 6 10^{-6} 1 0 − 6 of 1. Gurobi also reports a condition number for the optimal basis (its KappaExact attribute); its documentation does not say whether this refers to the model as written or to Gurobi’s internally scaled model, so we computed our own from the basis that Gurobi reports. We measured the root LP of the compact model without the manifold constraint, and the static model of the distance-indexed solver before any callback cut, on the first n n n leaves of 30_B-NS1 and M43 (Table E3 ). The compact model’s root basis stays below about 10 5 10^5 1 0 5 up to n = 43 n = 43 n = 43 , and the distance-indexed static model grows steadily, to about 4 × 10 6 4 \times10^6 4 × 1 0 6 at n = 43 n = 43 n = 43 .
Table E3. Table E3. Condition number of the optimal root basis. One thread. First n n n leaves: Gurobi’s KappaExact, and in parentheses our own 2-norm value after Ruiz equilibration where the basis is small enough for a dense decomposition. “Compact” is the root LP of the compact model without the manifold constraint; “distance-indexed” the static model of Catanzaro et al.
Robustness of the distance-indexed solver’s certificates. On 29_B-NS1 and 30_B-NS1, the largest instances that certify, we reran the distance-indexed solver with each separated cut family except four-point switched off in turn, and with Gurobi’s numerical emphasis at its maximum (NumericFocus 3) and its absolute feasibility, optimality and integrality tolerances lowered to 10 − 9 10^{-9} 1 0 − 9 . A cut that wrongly removed the optimal tree through rounding would show as a different optimum when its family is off, and a certificate that depended on the tolerances would show as a different optimum when they are tightened. Every run that certified, six of the ten, returned the same tree as the full configuration, and the four that did not certify within the hour held that tree as their incumbent (Table E4 ). Switching off generalized Kraft leaves gaps of 2.7% and 4.7%; switching off the weak four-point cuts or tightening the tolerances slows certification without changing its result. No cut family, and no tolerance in this range, changes the certified optimum.
Table E4. The distance-indexed solver with one cut family switched off, or with strict tolerances. 10 threads. Seed 1, time limit 3600 s. Strict tolerances: Gurobi’s numerical emphasis at its maximum (NumericFocus 3) and its feasibility, optimality and integrality tolerances at 10 − 9 10^{-9} 1 0 − 9 . Last column: the best tree found, compared with the tree of the full configuration (Table D8).
Appendix F. The branch and bound
This appendix states the compact solver’s branch and bound (§ 3.1.2 ) in full. A node is a pair ( C , F ) (C,F) ( C , F ) of committed splits C C C , imposed as W [ S ] = 1 2 W[S] = \frac{1}{2} W [ S ] = 2 1 , and forbidden splits F F F , imposed as W [ S ] ≥ 3 4 W[S] \ge\frac{3}{4} W [ S ] ≥ 4 3 ; its face is the set of binary trees whose splits include C C C and exclude F F F . Two invariants hold at every node: C C C is laminar, because the search never commits a split that crosses a committed one, and C ∩ F = ∅ C \cap F = \varnothing C ∩ F = ∅ , because the split it branches on is always outside C ∪ F C \cup F C ∪ F . Comparisons of objective values use the tolerance of § 3.1.1 .
Repeated cherry contraction
Contract merges two clusters of leaves into one whenever a test says they form a cherry, and repeats on the merged clusters until no pair passes or three clusters remain. It serves three purposes, with two tests. The committed test merges X X X and Y Y Y when X ∪ Y X \cup Y X ∪ Y is a side of a split in C C C ; it contracts exactly what every tree of the face shares. The cherry test merges X X X and Y Y Y when w ^ X Y = 1 4 \hat{w}_{XY} = \frac{1}{4} w ^ X Y = 4 1 and w ^ X K = w ^ Y K \hat{w}_{XK} = \hat{w}_{YK} w ^ X K = w ^ Y K for every other cluster K K K , where w ^ \hat{w} w ^ is w w w updated at each merge by w ^ Z K = 2 w ^ X K \hat{w}_{ZK} = 2\hat{w}_{XK} w ^ Z K = 2 w ^ X K : if X X X and Y Y Y form a cherry merged into Z Z Z , the path from a leaf of X X X to K K K is one edge longer than the path from Z Z Z to K K K . The cherry test recognises a tree: if it stops at three clusters, its recorded splits are the n − 3 n - 3 n − 3 splits of a tree T T T , which the search accepts only if w T = w w_T = w w T = w , since the test checks cherry pairs only.
Algorithm 1 Contract(test)
1: clusters $\leftarrow \{\{1\},\ldots,\{n\}\}$; $e_i \leftarrow 0$ for every leaf $i$; $\hat{w} \leftarrow w$
2: repeat
3: if two clusters $X,Y$ pass $test(X,Y)$ then
4: replace $X$ and $Y$ by $Z=X\cup Y$; $e_i \leftarrow e_i+1$ for every $i\in Z$
5: $\hat{w}_{ZK} \leftarrow 2\hat{w}_{XK}$ for every other cluster $K$
6: record $Z$ as a split
7: end if
8: until no pair passes, or 3 clusters remain
9: return clusters, $e$, the recorded splits
committed test: $X\cup Y$ is a side of a split in $C$
cherry test: $\hat{w}_{XY}=\frac{1}{4}$ and $\hat{w}_{XK}=\hat{w}_{YK}$ for every other cluster $K$
With the committed test, the objective of every tree in the face splits into a part that is the same for all of them and a smaller instance on the clusters.
Lemma F.1. Let C C C be laminar, and let Contract with the committed test return the clusters A 1 , … , A m A_1,\ldots,A_m A 1 , … , A m (m ≥ 3 m\ge3 m ≥ 3 ) and the values e i e_i e i . Let C ′ C' C ′ be the splits of C C C it did not record, and F ′ F' F ′ the splits of F F F whose sides are unions of clusters. Then:
every tree T T T whose splits include C C C contains each cluster A A A as the leaf set of a subtree hanging from one edge, with a shape that does not depend on T T T , and e i e_i e i is the number of edges from leaf i i i to the vertex r A r_A r A of that subtree nearest the rest of the tree;
replacing each such subtree by one leaf gives a binary tree T ′ T' T ′ on the clusters, and T ↦ T ′ T\mapsto T' T ↦ T ′ is a bijection from the face of ( C , F ) (C,F) ( C , F ) onto the trees on the clusters whose splits include C ′ C' C ′ and exclude F ′ F' F ′ , provided C ∩ F = ∅ C\cap F=\varnothing C ∩ F = ∅ ;
for i ∈ A i\in A i ∈ A and j ∈ B ≠ A j\in B\ne A j ∈ B = A , τ i j = e i + e j + τ A B ′ \tau_{ij}=e_i+e_j+\tau'_{AB} τ ij = e i + e j + τ A B ′ , where τ ′ \tau' τ ′ are the path lengths of T ′ T' T ′ ; hence
L ( T ) = K + ∑ A < B 2 − τ A B ′ D A B ′ , D A B ′ = ∑ i ∈ A , j ∈ B 2 − e i − e j D i j , L(T)=K+\sum_{A<B}2^{-\tau'_{AB}}D'_{AB},\qquad D'_{AB}=\sum_{i\in A,j\in B}2^{-e_i-e_j}D_{ij}, L ( T ) = K + A < B ∑ 2 − τ A B ′ D A B ′ , D A B ′ = i ∈ A , j ∈ B ∑ 2 − e i − e j D ij , where K = ∑ A ∑ i < j ∈ A 2 − τ i j D i j K=\sum_A\sum_{i<j\in A}2^{-\tau_{ij}}D_{ij} K = ∑ A ∑ i < j ∈ A 2 − τ ij D ij is the same for every tree of the face.
Proof. (1) By induction on the merges. Initially every cluster is a leaf i i i , with r { i } = i r_{\{i\}}=i r { i } = i and e i = 0 e_i=0 e i = 0 . Suppose the claim holds for the clusters X X X and Y Y Y that are merged, and let Z = X ∪ Y Z=X\cup Y Z = X ∪ Y , a side of a split in C C C , hence of a split of T T T ; Z Z Z is the leaf set of a subtree of T T T hanging from one edge. Its vertex r Z r_Z r Z nearest the rest of the tree has two child subtrees, whose leaf sets Z 1 , Z 2 Z_1,Z_2 Z 1 , Z 2 partition Z Z Z . The leaf set X X X of a subtree inside Z Z Z lies within Z 1 Z_1 Z 1 or within Z 2 Z_2 Z 2 , and so does Y Y Y ; as X ∪ Y = Z X\cup Y=Z X ∪ Y = Z , one of them is Z 1 Z_1 Z 1 and the other Z 2 Z_2 Z 2 . So r Z r_Z r Z is adjacent to r X r_X r X and r Y r_Y r Y , the shape of the subtree on Z Z Z is fixed, and each leaf of Z Z Z is one edge further from r Z r_Z r Z than from its old vertex, which is the update e i ← e i + 1 e_i\leftarrow e_i+1 e i ← e i + 1 .
(2) The splits of T T T are those of T ′ T' T ′ , all unions of clusters, together with the splits that separate a subtree inside a cluster, which are exactly the recorded ones, since each merge creates one and a binary subtree on k k k leaves has k − 1 k-1 k − 1 such subtrees of size at least 2. Gluing the fixed subtrees back onto the leaves of T ′ T' T ′ inverts the map. A split of C C C is either recorded, and present in every T T T , or not; in the latter case it is compatible with every recorded split, so each side is a union of clusters or lies inside one, and inside a cluster it would cross a recorded split or be one, as the recorded splits inside a cluster are all its subtree splits. So T T T contains C C C if and only if T ′ T' T ′ contains C ′ C' C ′ . A split of F F F that is not a union of clusters separates a cluster: it is either a recorded split, excluded by C ∩ F = ∅ C\cap F=\varnothing C ∩ F = ∅ , or crosses one, and then no tree of the face contains it. So T T T excludes F F F if and only if T ′ T' T ′ excludes F ′ F' F ′ . (3) The path from i ∈ A i \in A i ∈ A to j ∈ B j \in B j ∈ B runs from i i i to r A r_A r A inside the subtree on A A A (e i e_i e i edges), from r A r_A r A to r B r_B r B along the path between the leaves A A A and B B B of T T T (τ A B \tau_{AB} τ A B edges), and from r B r_B r B to j j j (e j e_j e j edges). Substituting into L ( T ) = ∑ i < j 2 − τ i j D i j L(T) = \sum_{i<j} 2^{-\tau_{ij}}D_{ij} L ( T ) = ∑ i < j 2 − τ ij D ij and grouping the pairs by cluster gives the formula; pairs inside one cluster have path lengths fixed by (1). □
The search enumerates a face exactly when at most m e n u m = 10 m_{\mathrm{enum}} = 10 m enum = 10 clusters remain: at most ( 2 m e n u m − 5 ) ! ! = 2,027,025 (2m_{\mathrm{enum}} - 5)!! = 2{,}027{,}025 ( 2 m enum − 5 )!! = 2 , 027 , 025 trees on the clusters, generated by stepwise addition (leaf k k k inserted on each edge of every tree on the first k − 1 k - 1 k − 1 ), in compiled code.
The algorithms
Algorithm 2 BranchAndBound(D D D )
1: T* ← FastME tree on D, improved by NNI; U ← L(T*)
2: (β, w) ← NodeBound(∅, ∅); Q ← {(β, ∅, ∅, w)} ▷ priority queue on β
3: next ← none ▷ an inherited child, taken first
4: while (next ≠ none or Q ≠ ∅) and the budget is not exhausted do
5: if next ≠ none then
6: (β, C, F, w) ← next; next ← none
7: if β ≥ U then continue
8: else
9: (β, C, F, w) ← remove the entry of least β from Q
10: if β ≥ U then return T*, certified ▷ every open node is at least U
11: end if
12: if Contract(cherry test) recognises a tree T with w_T = w and L(T) = β then
13: if β < U then T* ← T; U ← β
14: continue ▷ closed: the LP optimum is a tree
15: end if
16: S ← the most balanced split of T* with 1/2 < W[S] < 3/4, not in C ∪ F
17: if there is none then S ← a split with 1/2 < W[S] < 3/4, not in C ∪ F
18: if there is none then
19: (status, X) ← SettleFace(w, C, F)
20: if status = tree then
21: if L(X) < U then T* ← X; U ← L(X)
22: continue ▷ closed exactly
23: end if
24: if status = empty then continue ▷ closed: no tree
25: IncumbentSearch(w, C, F)
26: if status = branch then S ← X
27: end if
28: if SettleFace returned cherries then ▷ X = (P₁, . . . , Pᵣ)
29: children ← {(C ∪ {P_k}, F ∪ {P₁, . . . , P_{k−1}}) : k = 1, . . . , r}
30: else if S crosses a split of C then ▷ no tree of the face contains S
31: children ← {(C, F ∪ {S})}
32: else
33: children ← {(C, F ∪ {S}), (C ∪ {S}, F)} ▷ W[S] ≥ 3/4, then W[S] = 1/2
34: end if
35: for (C′, F′) ∈ children do
36: if w satisfies the rows of (C′, F′) and its cluster equalities then
37: (β′, w′) ← (β, w) ▷ inherited, not solved
38: if next = none then next ← (β′, C′, F′, w′); continue
39: else
40: (β′, w′) ← NodeBound(C′, F′)
41: if the relaxation is infeasible then continue
42: end if
43: if β′ < U then add (β′, C′, F′, w′) to Q
44: end for
45: end while
46: return T*, lower bound min{β : (β, ·) ∈ Q ∪ {next}}
Algorithm 3 SettleFace (w , C , F w,C,F w , C , F ), with C C C laminar and C ∩ F = ∅ C \cap F = \varnothing C ∩ F = ∅
( c l u s t e r s , e , r e c o r d e d ) ← Contract ( committed test ) ; m ← ∣ c l u s t e r s ∣ (\mathrm{clusters},e,\mathrm{recorded}) \leftarrow\operatorname{Contract}(\text{committed test});\ m \leftarrow|\mathrm{clusters}| ( clusters , e , recorded ) ← Contract ( committed test ) ; m ← ∣ clusters ∣
if m ≤ m e n u m m \le m_{\mathrm{enum}} m ≤ m enum then
enumerate the trees on the clusters whose splits include C ′ C' C ′ and exclude F ′ F' F ′ , and evaluate L L L by Lemma F.1
if there is none then return empty
return tree, the best one
end if
S ← S \leftarrow S ← the most balanced undecided split (not in C ∪ F C \cup F C ∪ F ) with W [ S ] = 1 2 W[S] = \frac{1}{2} W [ S ] = 2 1 that crosses no split of C C C ▷ the half-cuts are listed as minimum cuts
if there is one then return branch, S S S
V ← V \leftarrow V ← the smallest set of clusters attached to one vertex of the skeleton (the tree on the clusters whose edges are the splits of C ′ C' C ′ ) that ends a single skeleton edge; all the clusters if C ′ = ∅ C' = \varnothing C ′ = ∅
P 1 , … , P r ← P_1,\ldots,P_r \leftarrow P 1 , … , P r ← the pairs of clusters of V V V whose union is not in F F F , ordered by the total weight of w w w between the two clusters, largest first
if r = 0 r = 0 r = 0 then return empty ▷ no pair of V V V can form a cherry
return cherries, ( P 1 , … , P r ) (P_1,\ldots,P_r) ( P 1 , … , P r ) ▷ each P k P_k P k as the split it commits
Algorithm 4 IncumbentSearch (w , C , F w,C,F w , C , F ): candidate trees only, never a bound
P ← P \leftarrow P ← the splits recorded by Contract ( cherry test ) \operatorname{Contract}(\text{cherry test}) Contract ( cherry test )
if a split of P P P crosses a split of C C C , or lies in F F F then
X ← X \leftarrow X ← NNI hill climb from a tree whose splits include C C C
else
( s t a t u s , X ) ← SettleFace ( w , C ∪ P , F ) (\mathrm{status},X) \leftarrow\operatorname{SettleFace}(w,C \cup P,F) ( status , X ) ← SettleFace ( w , C ∪ P , F ) , without choosing a split to branch on
if more than m e n u m m_{\mathrm{enum}} m enum clusters remain then X ← X \leftarrow X ← NNI hill climb from a tree whose splits include C C C
end if
if X X X is a tree and L ( X ) < U L(X) < U L ( X ) < U then T ∗ ← X T^* \leftarrow X T ∗ ← X ; U ← L ( X ) U \leftarrow L(X) U ← L ( X )
Algorithm 5 NodeBound(C , F C,F C , F )
1: add W [ S ] = 1 2 W[S]=\frac{1}{2} W [ S ] = 2 1 for S ∈ C S \in C S ∈ C and W [ S ] ≥ 3 4 W[S]\ge\frac{3}{4} W [ S ] ≥ 4 3 for S ∈ F S \in F S ∈ F to the LP 2: ( clusters , e , ⋅ ) ← Contract ( committed test ) (\text{clusters},e,\cdot)\leftarrow\operatorname{Contract}(\text{committed test}) ( clusters , e , ⋅ ) ← Contract ( committed test ) 3: for each cluster Z Z Z , a fixed leaf z z z of Z Z Z , every other leaf i i i of Z Z Z and every leaf c ∉ Z c\notin Z c ∈ / Z do 4: add 2 e i w i c = 2 e z w z c 2^{e_iw_{ic}}=2^{e_zw_{zc}} 2 e i w i c = 2 e z w z c to the LP ▷ cluster equalities 5: end for 6: for every two leaves i , j i,j i , j of one cluster, at path length p i j p_{ij} p ij within it do 7: add w i j = 2 − p i j w_{ij}=2^{-p_{ij}} w ij = 2 − p ij to the LP 8: end for 9: run the cut loop (minimum cut, perfect matching, crossing half-cuts) to convergence: LP bound β \beta β , point w w w 10: repeat 11: solve the same rows and ∑ i < j entr ( w i j ) ≥ ( n − 3 2 ) ln 2 \sum_{i<j}\operatorname{entr}(w_{ij})\ge\left(n-\frac{3}{2}\right)\ln2 ∑ i < j entr ( w ij ) ≥ ( n − 2 3 ) ln 2 by the conic solver 12: if the solver fails or reports infeasibility then break ▷ keep the LP bound and point 13: β c ← \beta_c\leftarrow β c ← its rigorous Lagrangian bound; w c ← w_c\leftarrow w c ← its optimum 14: if a separator finds a cut violated at w c w_c w c then 15: add it; rerun the cut loop; update β \beta β and w w w 16: else 17: if β c > β \beta_c>\beta β c > β then ( β , w ) ← ( β c , w c ) (\beta,w)\leftarrow(\beta_c,w_c) ( β , w ) ← ( β c , w c ) 18: break 19: end if 20: until false 21: remove the node’s own rows ▷ the cuts stay: they hold for every tree 22: return ( β , w ) (\beta,w) ( β , w )
The two calls of SettleFace differ only in what they treat as committed. In Algorithm 2 it receives the node’s own splits, so its enumeration covers the whole face and may close the node. In Algorithm 4 it also receives the cherries of the LP point, which the trees of the node need not share; its best tree can then only replace the incumbent, and the node stays open. A child whose relaxation is cut short by the time limit stays open with its parent’s bound, which enters the lower bound; Algorithm 2 omits this case. A relaxation that the conic solver reports infeasible is never pruned on that report: an interior-point method gives no exact certificate, so the node keeps its LP bound.
In Algorithm 2 the cherry branching (status cherries) gives children that partition the face: a tree of the face has some pair of V V V as a cherry, because the clusters of V V V hang from the rest of the tree as one rooted binary subtree (or form the whole tree), and child k k k holds exactly the trees whose first such pair in the order is P k P_k P k . An inherited child keeps its parent’s point, which is optimal for the child because the child’s relaxation is contained in the parent’s; its cluster equalities are the only rows it adds that the parent’s point might violate, so the test checks them.
The parallel search
Algorithm 6 ParallelBranchAndBound(D D D , k k k )
as Algorithm 2 up to the root; start k k k workers, each with its own LP (and conic) model
while some worker is busy, or the budget is not exhausted and a node is available do
hand each idle worker i i i a node: its own inherited child n e x t i \mathit{next}_i next i if β ( n e x t i ) < U \beta(\mathit{next}_i) < U β ( next i ) < U , otherwise the entry of least β \beta β from Q Q Q if that β < U \beta< U β < U
wait until some worker i i i returns its node
merge: U U U and T ∗ T^* T ∗ if it found a better tree; its children into Q Q Q , except that one inherited child becomes n e x t i \mathit{next}_i next i ; its new cuts into every other worker’s queue of rows, added to that worker’s model before its next node
end while
certified if no node is being processed, no n e x t i < U \mathit{next}_i < U next i < U and every entry of Q Q Q is at least U U U
lower bound: the least β \beta β over Q Q Q , the n e x t i \mathit{next}_i next i and the nodes being processed
A worker processes a node as one pass of the loop of Algorithm 2, without the queue. The cuts are valid for every tree, so a worker may add them at any time. A child’s bound is at least its parent’s, so a node still being processed cannot produce a child below the lower bound.
The four-point condition on the quartets that contain one leaf
Catanzaro et al. [13 ] , thm. 2 and prop. 8 prove the following by a case analysis of 81 combinations of resolutions. We give a short proof. Throughout, a quartet { a , b , c , d } \{a,b,c,d\} { a , b , c , d } satisfies the strong four-point condition if, of its three pair sums τ a b + τ c d \tau_{ab}+\tau_{cd} τ ab + τ c d , τ a c + τ b d \tau_{ac}+\tau_{bd} τ a c + τ b d and τ a d + τ b c \tau_{ad}+\tau_{bc} τ a d + τ b c , the two largest are equal and exceed the smallest by at least 2; a triple { i , j , k } \{i,j,k\} { i , j , k } satisfies the strong triangle inequalities if τ i k + τ k j − τ i j ≥ 2 \tau_{ik}+\tau_{kj}-\tau_{ij} \ge2 τ ik + τ k j − τ ij ≥ 2 for each of the three choices of the middle leaf k k k .
Proposition G.1. Let τ \tau τ be a real symmetric n × n n \times n n × n matrix, n ≥ 4 n \ge4 n ≥ 4 . (a) If τ \tau τ satisfies the strong four-point condition on every quartet that contains leaf 1, it satisfies it on every quartet. (b) If, in addition, τ \tau τ satisfies the strong triangle inequalities on every triple that contains leaf 1, it satisfies them on every triple.
Proof. For distinct leaves i , j ≠ 1 i,j \ne1 i , j = 1 let ( i ∣ j ) = 1 2 ( τ 1 i + τ 1 j − τ i j ) (i|j) = \frac{1}{2}(\tau_{1i}+\tau_{1j}-\tau_{ij}) ( i ∣ j ) = 2 1 ( τ 1 i + τ 1 j − τ ij ) , the Gromov product of i i i and j j j seen from leaf 1.
Translation. For distinct i , j , k ≠ 1 i,j,k \ne1 i , j , k = 1 , with σ = τ 1 i + τ 1 j + τ 1 k \sigma= \tau_{1i}+\tau_{1j}+\tau_{1k} σ = τ 1 i + τ 1 j + τ 1 k , the three pair sums of the quartet { 1 , i , j , k } \{1,i,j,k\} { 1 , i , j , k } are
τ 1 i + τ j k = σ − 2 ( j ∣ k ) , τ 1 j + τ i k = σ − 2 ( i ∣ k ) , τ 1 k + τ i j = σ − 2 ( i ∣ j ) . \tau_{1i}+\tau_{jk} = \sigma- 2(j|k), \qquad\tau_{1j}+\tau_{ik} = \sigma- 2(i|k), \qquad\tau_{1k}+\tau_{ij} = \sigma- 2(i|j). τ 1 i + τ j k = σ − 2 ( j ∣ k ) , τ 1 j + τ ik = σ − 2 ( i ∣ k ) , τ 1 k + τ ij = σ − 2 ( i ∣ j ) .
So the strong four-point condition on { 1 , i , j , k } \{1,i,j,k\} { 1 , i , j , k } says exactly:
(P) of the three products ( i ∣ j ) (i|j) ( i ∣ j ) , ( i ∣ k ) (i|k) ( i ∣ k ) , ( j ∣ k ) (j|k) ( j ∣ k ) , the two smallest are equal and the largest exceeds them by at least 1.
In particular the largest of the three is unique. (Condition (P) is the three-point condition of an ultrametric for − ( i ∣ j ) -(i|j) − ( i ∣ j ) , so part (a) says that the matrix τ i j − τ 1 i − τ 1 j = − 2 ( i ∣ j ) \tau_{ij}-\tau_{1i}-\tau_{1j} = -2(i|j) τ ij − τ 1 i − τ 1 j = − 2 ( i ∣ j ) , the Farris transform of τ \tau τ with respect to leaf 1, is an ultrametric up to an additive constant.)
Part (a). Let i , j , k , l ≠ 1 i,j,k,l \ne1 i , j , k , l = 1 be distinct. With σ ′ = τ 1 i + τ 1 j + τ 1 k + τ 1 l \sigma'=\tau_{1i}+\tau_{1j}+\tau_{1k}+\tau_{1l} σ ′ = τ 1 i + τ 1 j + τ 1 k + τ 1 l , the three pair sums of { i , j , k , l } \{i,j,k,l\} { i , j , k , l } are σ ′ − 2 A \sigma'-2A σ ′ − 2 A , σ ′ − 2 B \sigma'-2B σ ′ − 2 B and σ ′ − 2 C \sigma'-2C σ ′ − 2 C , where
A = ( i ∣ j ) + ( k ∣ l ) , B = ( i ∣ k ) + ( j ∣ l ) , C = ( i ∣ l ) + ( j ∣ k ) . A=(i|j)+(k|l),\qquad B=(i|k)+(j|l),\qquad C=(i|l)+(j|k). A = ( i ∣ j ) + ( k ∣ l ) , B = ( i ∣ k ) + ( j ∣ l ) , C = ( i ∣ l ) + ( j ∣ k ) .
The strong four-point condition on { i , j , k , l } \{i,j,k,l\} { i , j , k , l } says that the two smallest of A , B , C A,B,C A , B , C are equal and the largest exceeds them by at least 1. Since the claim is symmetric in the four leaves, we may label them so that ( i ∣ j ) (i|j) ( i ∣ j ) is the largest of the six products. By (P) on { i , j , k } \{i,j,k\} { i , j , k } , ( i ∣ k ) = ( j ∣ k ) = : a ≤ ( i ∣ j ) − 1 (i|k)=(j|k)=:a\le(i|j)-1 ( i ∣ k ) = ( j ∣ k ) =: a ≤ ( i ∣ j ) − 1 , and by (P) on { i , j , l } \{i,j,l\} { i , j , l } , ( i ∣ l ) = ( j ∣ l ) = : b ≤ ( i ∣ j ) − 1 (i|l)=(j|l)=:b\le(i|j)-1 ( i ∣ l ) = ( j ∣ l ) =: b ≤ ( i ∣ j ) − 1 . Hence B = C = a + b B=C=a+b B = C = a + b . Let c = ( k ∣ l ) c=(k|l) c = ( k ∣ l ) , and apply (P) to { i , k , l } \{i,k,l\} { i , k , l } , whose products are a a a , b b b and c c c . If a < b a<b a < b , the two smallest must be a a a and c c c , so c = a c=a c = a and A − B = ( i ∣ j ) − b ≥ 1 A-B=(i|j)-b\ge1 A − B = ( i ∣ j ) − b ≥ 1 . If a > b a>b a > b , likewise c = b c=b c = b and A − B = ( i ∣ j ) − a ≥ 1 A-B=(i|j)-a\ge1 A − B = ( i ∣ j ) − a ≥ 1 . If a = b a=b a = b , then c c c is the largest, c ≥ a + 1 c\ge a+1 c ≥ a + 1 , and A − B = ( ( i ∣ j ) − a ) + ( c − a ) ≥ 2 A-B=((i|j)-a)+(c-a)\ge2 A − B = (( i ∣ j ) − a ) + ( c − a ) ≥ 2 . In every case A ≥ B + 1 = C + 1 A\ge B+1=C+1 A ≥ B + 1 = C + 1 .
Part (b). The strong triangle inequalities on { 1 , i , j } \{1,i,j\} { 1 , i , j } with middle leaf i i i and j j j give τ i j ≥ 2 + ∣ τ 1 i − τ 1 j ∣ \tau_{ij}\ge2+|\tau_{1i}-\tau_{1j}| τ ij ≥ 2 + ∣ τ 1 i − τ 1 j ∣ , that is, ( i ∣ j ) ≤ min ( τ 1 i , τ 1 j ) − 1 (i|j)\le\min(\tau_{1i},\tau_{1j})-1 ( i ∣ j ) ≤ min ( τ 1 i , τ 1 j ) − 1 . Let i , j , p ≠ 1 i,j,p\ne1 i , j , p = 1 be distinct and take j j j as the middle leaf. Expanding each entry by the definition of the products,
τ i j + τ j p − τ i p = 2 ( τ 1 j − ( i ∣ j ) − ( j ∣ p ) + ( i ∣ p ) ) , \tau_{ij}+\tau_{jp}-\tau_{ip}=2(\tau_{1j}-(i|j)-(j|p)+(i|p)), τ ij + τ j p − τ i p = 2 ( τ 1 j − ( i ∣ j ) − ( j ∣ p ) + ( i ∣ p )) ,
so we need τ 1 j − ( i ∣ j ) − ( j ∣ p ) + ( i ∣ p ) ≥ 1 \tau_{1j}-(i|j)-(j|p)+(i|p)\ge1 τ 1 j − ( i ∣ j ) − ( j ∣ p ) + ( i ∣ p ) ≥ 1 . Apply (P) to { i , j , p } \{i,j,p\} { i , j , p } . If ( i ∣ p ) (i|p) ( i ∣ p ) is the largest, then ( i ∣ j ) = ( j ∣ p ) = : a (i|j)=(j|p)=:a ( i ∣ j ) = ( j ∣ p ) =: a , ( i ∣ p ) ≥ a + 1 (i|p)\ge a+1 ( i ∣ p ) ≥ a + 1 and τ 1 j ≥ a + 1 \tau_{1j}\ge a+1 τ 1 j ≥ a + 1 , so the left-hand side is at least 2. If ( i ∣ j ) (i|j) ( i ∣ j ) is the largest, then ( j ∣ p ) = ( i ∣ p ) (j|p)=(i|p) ( j ∣ p ) = ( i ∣ p ) and the left-hand side is τ 1 j − ( i ∣ j ) ≥ 1 \tau_{1j}-(i|j)\ge1 τ 1 j − ( i ∣ j ) ≥ 1 ; the case where ( j ∣ p ) (j|p) ( j ∣ p ) is the largest is symmetric. The other two choices of the middle leaf follow by renaming. ■
Neither part uses integrality, and part (a) does not use the triangle inequalities.
Clique covers of the crossing graph
This appendix proves part (b) of Proposition 4, describes the subfamily of the cover of part (a) mentioned in § 2.4.1 , and computes the lower bound 88 at n = 8 n=8 n = 8 .
Intersecting antichains. For a clique K K K of G G G , let F K \mathcal{F}_K F K be the family of the smaller blocks of its bipartitions (for a bipartition with two blocks of size n / 2 n/2 n /2 , the block not containing leaf 1). Two crossing bipartitions have all four quadrants nonempty, so any two members of F K \mathcal{F}_K F K intersect and neither contains the other, and every member has at most n / 2 n/2 n /2 elements.
Lemma H.1 [26 ] , [27 ] . Let F \mathcal{F} F be a family of subsets of [ n ] [n] [ n ] , each with at most n / 2 n/2 n /2 elements, any two of which intersect and neither of which contains the other. Then
∑ A ∈ F 1 ∣ A ∣ − 1 ≤ 1. \sum_{A\in\mathcal{F}} \frac{1}{\lvert A\rvert-1}\le1. A ∈ F ∑ ∣ A ∣ − 1 1 ≤ 1.
Proof. We use the circle method of Katona [43 ] . Let us place [ n ] [n] [ n ] on a circle in one of the ( n − 1 ) ! (n-1)! ( n − 1 )! cyclic orders, and call a member of F \mathcal{F} F an arc if its elements are consecutive. Let B = ( b 1 , … , b k ) B=(b_1,\ldots,b_k) B = ( b 1 , … , b k ) be a shortest arc. Every other arc A A A meets B B B and is neither contained in B B B nor contains it, so A ∩ B A\cap B A ∩ B is { b 1 , … , b i } \{b_1,\ldots,b_i\} { b 1 , … , b i } or { b i + 1 , … , b k } \{b_{i+1},\ldots,b_k\} { b i + 1 , … , b k } for some 1 ≤ i ≤ k − 1 1\le i\le k-1 1 ≤ i ≤ k − 1 ; it cannot contain both b 1 b_1 b 1 and b k b_k b k , since it would then contain every element outside B B B as well, giving ∣ A ∣ ≥ n − k + 2 > n / 2 |A|\ge n-k+2>n/2 ∣ A ∣ ≥ n − k + 2 > n /2 . In the first case A A A ends at b i b_i b i , in the second it starts at b i + 1 b_{i+1} b i + 1 . Two arcs with the same end, or the same start, are nested, so for each i i i at most one arc ends at b i b_i b i and at most one starts at b i + 1 b_{i+1} b i + 1 . Not both: such arcs lie in the ⌊ n / 2 ⌋ \lfloor n/2\rfloor ⌊ n /2 ⌋ positions ending at b i b_i b i and the ⌊ n / 2 ⌋ \lfloor n/2\rfloor ⌊ n /2 ⌋ positions starting at b i + 1 b_{i+1} b i + 1 respectively, which are disjoint. So there are at most k k k arcs, each with at least k k k elements, and ∑ A arc 1 / ∣ A ∣ ≤ 1 \sum_{A\text{ arc}}1/|A|\le1 ∑ A arc 1/∣ A ∣ ≤ 1 . A set with a a a elements is an arc in exactly a ! ( n − a ) ! a!(n-a)! a ! ( n − a )! cyclic orders, so summing over all cyclic orders gives ∑ A ∈ F a ! ( n − a ) ! / a ≤ ( n − 1 ) ! \sum_{A\in\mathcal{F}}a!(n-a)!/a\le(n-1)! ∑ A ∈ F a ! ( n − a )! / a ≤ ( n − 1 )! , where a = ∣ A ∣ a=|A| a = ∣ A ∣ , which is the claim. ■
Proof of Proposition 4(b). Let I I I be the set of integers i i i with max ( 2 , n / 4 ) ≤ i < n / 2 \max(2,n/4) \le i < n/2 max ( 2 , n /4 ) ≤ i < n /2 , so m = ∣ I ∣ m = |I| m = ∣ I ∣ , and let c n = 1 − e − n / 16 − 2 − n / 4 c_n = 1 - e^{-n/16} - 2^{-n/4} c n = 1 − e − n /16 − 2 − n /4 . For i < j i < j i < j in I I I let E i j E_{ij} E ij be the set of crossing pairs whose smaller blocks have sizes i i i and j j j ; since i , j < n / 2 i,j < n/2 i , j < n /2 , the smaller block of each bipartition is unique. An i i i -set A A A and a j j j -set B B B give a crossing pair if and only if A ∩ B ≠ ∅ A \cap B \ne\varnothing A ∩ B = ∅ and A ⊈ B A \not\subseteq B A ⊆ B , since B ⊈ A B \not\subseteq A B ⊆ A (as j > i j > i j > i ) and A ∪ B ≠ [ n ] A \cup B \ne[n] A ∪ B = [ n ] (as i + j < n i+j < n i + j < n ) hold automatically. For a fixed A A A , a uniformly random j j j -set misses A A A with probability at most ( 1 − i / n ) j ≤ e − i j / n ≤ e − n / 16 (1-i/n)^j \le e^{-ij/n} \le e^{-n/16} ( 1 − i / n ) j ≤ e − ij / n ≤ e − n /16 and contains A A A with probability ( j i ) / ( n i ) ≤ ( j / n ) i ≤ 2 − i ≤ 2 − n / 4 \binom{j}{i}/\binom{n}{i} \le(j/n)^i \le2^{-i} \le2^{-n/4} ( i j ) / ( i n ) ≤ ( j / n ) i ≤ 2 − i ≤ 2 − n /4 . Since ( n i ) = n i ( n − 1 i − 1 ) ≥ 2 ( n − 1 i − 1 ) \binom{n}{i} = \frac{n}{i}\binom{n-1}{i-1} \ge2\binom{n-1}{i-1} ( i n ) = i n ( i − 1 n − 1 ) ≥ 2 ( i − 1 n − 1 ) , and likewise for j j j ,
∣ E i j ∣ ≥ c n ( n i ) ( n j ) ≥ 4 c n ( n − 1 i − 1 ) ( n − 1 j − 1 ) . |E_{ij}| \ge c_n \binom{n}{i}\binom{n}{j} \ge4c_n \binom{n-1}{i-1}\binom{n-1}{j-1}. ∣ E ij ∣ ≥ c n ( i n ) ( j n ) ≥ 4 c n ( i − 1 n − 1 ) ( j − 1 n − 1 ) .
For a clique K K K , let a i ( K ) a_i(K) a i ( K ) be the number of its bipartitions whose smaller block has size i i i and β i ( K ) = a i ( K ) / ( n − 1 i − 1 ) \beta_i(K) = a_i(K)/\binom{n-1}{i-1} β i ( K ) = a i ( K ) / ( i − 1 n − 1 ) , so that ∑ i β i ( K ) ≤ 1 \sum_i \beta_i(K) \le1 ∑ i β i ( K ) ≤ 1 by Lemma H.1. The clique contains at most a i ( K ) a j ( K ) a_i(K)a_j(K) a i ( K ) a j ( K ) pairs of E i j E_{ij} E ij . For an edge clique cover K \mathcal{K} K of G G G , covering E i j E_{ij} E ij requires ∑ K ∈ K a i ( K ) a j ( K ) ≥ ∣ E i j ∣ \sum_{K\in\mathcal{K}} a_i(K)a_j(K) \ge|E_{ij}| ∑ K ∈ K a i ( K ) a j ( K ) ≥ ∣ E ij ∣ , that is, ∑ K ∈ K β i ( K ) β j ( K ) ≥ 4 c n \sum_{K\in\mathcal{K}} \beta_i(K)\beta_j(K) \ge4c_n ∑ K ∈ K β i ( K ) β j ( K ) ≥ 4 c n . Summing over the ( m 2 ) \binom{m}{2} ( 2 m ) pairs i < j i < j i < j in I I I , and using ∑ i < j β i ( K ) β j ( K ) ≤ 1 2 ( ∑ i β i ( K ) ) 2 ≤ 1 2 \sum_{i<j}\beta_i(K)\beta_j(K) \le\frac{1}{2}\left(\sum_i\beta_i(K)\right)^2 \le\frac{1}{2} ∑ i < j β i ( K ) β j ( K ) ≤ 2 1 ( ∑ i β i ( K ) ) 2 ≤ 2 1 for each K K K , gives ∣ K ∣ / 2 ≥ 4 c n ( m 2 ) |\mathcal{K}|/2 \ge4c_n\binom{m}{2} ∣ K ∣/2 ≥ 4 c n ( 2 m ) . Since m ≥ n / 4 − 1 m \ge n/4 - 1 m ≥ n /4 − 1 and c n → 1 c_n \to1 c n → 1 , this is at least ( 1 − o ( 1 ) ) n 2 / 4 (1-o(1))n^2/4 ( 1 − o ( 1 )) n 2 /4 . ■
A smaller cover. The subfamily of the cover of Proposition 4(a) consists of the cliques Q x , y 2 , 2 Q^{2,2}_{x,y} Q x , y 2 , 2 , which do not depend on y y y (each is the set of 2-blocks containing x x x ), and the cliques Q x , y j , k Q^{j,k}_{x,y} Q x , y j , k with 2 ≤ j < k ≤ n / 2 2 \le j < k \le n/2 2 ≤ j < k ≤ n /2 , except Q x , s ( x ) 3 , k Q^{3,k}_{x,s(x)} Q x , s ( x ) 3 , k , where s s s is a fixed permutation of the leaves without fixed points, an involution when n n n is even. When k = n / 2 k=n/2 k = n /2 , Q x , y j , k Q^{j,k}_{x,y} Q x , y j , k and Q y , x j , k Q^{j,k}_{y,x} Q y , x j , k coincide, as a block of size n / 2 n/2 n /2 containing x x x but not y y y is the complement of one containing y y y but not x x x ; the subfamily counts each such clique once. It is an edge clique cover. Let S , S ′ S,S' S , S ′ cross, with smaller blocks B , B ′ B,B' B , B ′ of sizes j ≤ k j \le k j ≤ k . If j = k j=k j = k , we take x ∈ B ∩ B ′ x \in B \cap B' x ∈ B ∩ B ′ and y ∉ B ∪ B ′ y \notin B \cup B' y ∈ / B ∪ B ′ ; both B B B and B ′ B' B ′ are x x x -blocks of size k k k without y y y , so both bipartitions lie in Q x , y 2 , k Q^{2,k}_{x,y} Q x , y 2 , k . If j < k j<k j < k , we take x ∈ B ∩ B ′ x \in B \cap B' x ∈ B ∩ B ′ and y ∈ B ∖ B ′ y \in B \setminus B' y ∈ B ∖ B ′ , and both bipartitions lie in Q x , y j , k Q^{j,k}_{x,y} Q x , y j , k . When j = 3 j=3 j = 3 the pair ( x , y ) (x,y) ( x , y ) can always be chosen with y ≠ s ( x ) y \ne s(x) y = s ( x ) : if ∣ B ∩ B ′ ∣ = 1 |B \cap B'|=1 ∣ B ∩ B ′ ∣ = 1 , there are two choices of y y y , and if ∣ B ∩ B ′ ∣ = 2 |B \cap B'|=2 ∣ B ∩ B ′ ∣ = 2 , there are two choices of x x x with the same y y y , and s s s is injective. The subfamily has 1, 5, 21, 49, 116 cliques for n = 4 , … , 8 n=4,\ldots,8 n = 4 , … , 8 ; for n ≤ 7 n \le7 n ≤ 7 these are the minimum.
The lower bound at n = 8 n=8 n = 8 . The edge clique cover number is at least the optimum of its linear relaxation, the fractional edge clique cover
min { ∑ C z C : ∑ C ∋ e z C ≥ 1 for every edge e , z ≥ 0 } , \min\left\{\sum_C z_C:\ \sum_{C\ni e} z_C \ge1\text{ for every edge }e,\ z \ge0\right\}, min { C ∑ z C : C ∋ e ∑ z C ≥ 1 for every edge e , z ≥ 0 } ,
over the maximal cliques C C C of G G G . Relabelling the leaves maps G G G to itself, so the average of an optimal solution over all relabellings is again optimal, and it gives every edge in a class of crossing pairs that relabelling maps to each other the same coverage. The optimum is therefore that of a linear program with one constraint per class: with N o N_o N o pairs in class o o o and c o ( C ) c_o(C) c o ( C ) of them inside C C C , it is min { ∑ v t v : ∑ v c o ( v ) t v ≥ N o for every o , t ≥ 0 } \min\{\sum_v t_v:\sum_v c_o(v)t_v \ge N_o\text{ for every }o,\ t \ge0\} min { ∑ v t v : ∑ v c o ( v ) t v ≥ N o for every o , t ≥ 0 } , over the distinct vectors v = ( c o ( C ) ) o v=(c_o(C))_o v = ( c o ( C ) ) o . The class of a crossing pair is given by its four quadrant sizes, up to exchanging the two bipartitions and complementing either. At n = 8 n=8 n = 8 there are 8 classes and 12,160,639 maximal cliques with 591 distinct vectors; the optimum is 784 / 9 ≈ 87.1 784/9 \approx87.1 784/9 ≈ 87.1 , with optimal primal and dual solutions checked in exact arithmetic, so every edge clique cover has at least 88 cliques. The same computation gives 5, 39 / 2 39/2 39/2 and 217 / 5 217/5 217/5 for n = 5 , 6 , 7 n=5,6,7 n = 5 , 6 , 7 .
Code and data availability
The enumerator for Theorem 5, the compact solver, and the scripts that regenerate the tables of § 3.2 are available at https://github.com/Leonardini/BalancedMinEvolutionPaper . The benchmark matrices are those distributed with the distance-indexed solver of Catanzaro et al. [13 ] .
Funding
LC and SB acknowledge funding from the MRC Centre for Global Infectious Disease Analysis (reference MR/X020258/1), funded by the UK Medical Research Council (MRC). This UK funded award is carried out in the frame of the Global Health EDCTP3 Joint Undertaking.
References
Each reference is marked by topic: ⚖ BME optimization and the BME polytope; ⋔ phylogenetics and tree metrics; ⬡ polyhedral combinatorics, optimization, information theory and numerical computation; ⚙ software. References are numbered in order of first citation.