scieee AI-readable full text Open interactive document viewer

Local equations for equivariant evolutionary models

Casanellas Rius, Marta,Fernández Sánchez, Jesús,Michalek, Mateusz

Abstract

Phylogenetic varieties related to equivariant substitution models have been studied largely in the last years. One of the main objectives has been finding a set of generators of the ideal of these varieties, but this has not yet been achieved in some cases (for example, for the general Markov model this involves the open “salmon conjecture”, see [2]) and it is not clear how to use all generators in practice. Motivated by applications in biology, we tackle the problem from another point of view. The elements of the ideal that could be useful for applications in phylogenetics only need to describe the variety around certain points of no evolution (see [13]). We produce a collection of explicit equations that describe the variety on a Zariski open neighborhood of these points (see Theorem 5.4). Namely, for any tree T on any number of leaves (and any degrees at the interior nodes) and for any equivariant model on any set of states ¿, we compute the codimension of the corresponding phylogenetic variety. We prove that this variety is smooth at general points of no evolution and, if a mild technical condition is satisfied (“d-claw tree hypothesis”), we provide an algorithm to produce a complete intersection that describes the variety around these points.

Full text

Local equations for equivariant evolutionary models May 5, 2017 Abstract Phylogenetic varieties related to equivariant substitution models have been studied largely in the last years. One of the main objectives has been finding a set of generators of the ideal of these varieties, but this has not yet been achieved in some cases (for example, for the general Markov model this involves the open “salmon conjecture”, see [2]) and it is not clear how to use all generators in practice. Motivated by applications in biology, we tackle the problem from another point of view. The elements of the ideal that could be useful for applications in phylogenetics only need to describe the variety around certain points of no evolution (see [13]). We produce a collection of explicit equations that describe the variety on a Zariski open neighborhood of these points (see Theorem 5.4). Namely, for any tree Ton any number of leaves (and any degrees at the interior nodes) and for any equivariant model on any set of states κ, we compute the codimension of the corresponding phylogenetic variety. We prove that this variety is smooth at general points of no evolution and, if a mild technical condition is satisfied (“d-claw tree hypothesis”), we provide an algorithm to produce a complete intersection that describes the variety around these points. AMS 2000 subject classification: 92D15; 14H10; 60J20 1 Introduction In the recent years there has been a huge amount of work done on phylogenetic varieties – we advise the reader to consult e.g. [4, 7, 12, 28, 40, 45] and references therein. These algebraic varieties contain the set of joint distributions at the leaves of a tree evolving under a Markov model of molecular evolution. From the biological point of view, these varieties are interesting because they provide new tools of non-parametric inference of phylogenetic trees. At present, the algebraic/geometric framework of phylogenetic varieties has allowed proving the identifiability of parameters of certain evolutionary models widely used by biologists [8, 3], proposing new methods of model selection [35], and producing new phylogenetic reconstruction methods [29, 21, 15]. From the mathematical point of view, there has been a great effort in finding a whole description of the ideal of these phylogenetic varieties [6, 45, 25, 24]. Still, for some models, many questions remain open for trees on an arbitrary number of leaves n. Indeed, if one is interested in using these algebraic tools with real data, one would need a small set of generators of the ideal (rather than a description of the whole ideal); it would also be desirable to know the degree at which the ideal is generated [26, 41, 45]; and as the codimension of the variety is exponential in n, it is necessary to distinguish between generators that only account for the underlying evolutionary model, those that account for the tree topology, and those that could be useful for inferring the numerical parameters (see [7] for a good introduction to this topic). For instance, the authors of [45] and [7] raised the question whether knowing a complete intersection containing the phylogenetic variety and of the same dimension would be enough. Eminently, 1 for biological applications it is only relevant to know the description of the variety around the points that make sense biologically speaking. If these points are smooth, then a complete intersection can define the variety on a neighborhood of these points. This is the approach that was considered in [13, 33, 42] for the particular model of Kimura 3-parameter and is the same goal that we pursued in [18] for abelian group-based models. In the present paper we address this problem for the more general class of G-equivariant models, which contains more general algebraic models of interest to biologists (for example the strand-symmetric and the general Markov models). We give an explicit algorithm to construct a complete intersection that describes the variety on a dense open subset around a generic point of no evolution. Points of no evolution represent molecular sequences that remain invariant from the common ancestor to the leaves of the tree. Points in the phylogenetic variety that arise from biologically meaningful parameters are supposed to be near these points of no evolution (otherwise phylogenetic inference could not be made), and therefore it is important to study the variety around these points. Also, as we describe the variety in a dense open subset containing these points, we cover most (actually, all but possibly a subset of smaller dimension) of the biologically meaningful points of the variety. Also, in the same papers mentioned above, it is argued that a complete intersection can contain points in other irreducible components that can mislead the results in practice. However, the complete intersection we give contains a regular sequence of the edge invariants, which are known to be phylogenetic invariants [14]. Therefore, the other irreducible components of the complete intersection do not contain other phylogenetic varieties. We prove first that these points are non-singular and therefore the variety can be described locally at these points by the smallest possible number of equations, the codimension of the variety. A system of generators of the local complete intersection can be explicitly computed. The degree of these generators is low and depends on a local description of claw trees related to the interior nodes of the tree and of the multiplicities of the permutation representation of the group G⊂Sκ. For example, for the biologically interesting models mentioned above, the complete intersection we provide has generators of degree at most 13. One should contrast this to the generators of the complete intersection given in [44] for the Kimura 3-parameter model, which had exponential degree in the number of leaves. Our approach is also useful in case one wants to use differential geometry for this variety (for example to compute the distance of a point to this variety, [27]). The description of the ideal of phylogenetic invariants for G-equivariant models was provided by Draisma and Kuttler [25]. There are two ways to obtain the whole ideal of phylogenetic invariants for a given tree, assuming the ideals for star trees are known. The first description relies on the ideals of star trees associated to inner vertices of a given tree - so-called flattenings. The second description is inductive, where we regard a big tree as a join of two smaller trees. Our approach is based on the second method. We start by inducing phylogenetic invariants from smaller trees. The induced phylogenetic invariants are of course not enough to provide a description for the larger tree. We complement them by so-called thin flattenings [14]. They are very explicit, however still numerous. It turns out that the choice of leaves in smaller trees distinguishes specific thin flattenings. Combining those with induced invariants yields our main result: under a minor assumption on claw trees (see 5.2) which is satisfied by the tripod on the most popular equivariant models (Jukes-Cantor, Kimura 3ST, strand symmetric) and also by the general Markov model, we provide an explicit local description of the variety associated to a model and a tree (see Theorem 5.4). Moreover, both in the starting point and in the induction process, the choices we make are almost canonical so that the complete intersection we produce is a natural one and could be reasonably used in practice. The methods used in this paper rely on basic algebraic geometry and group representation theory. It is important to note that the results of the paper hold for any G-equivariant model, G⊂Sκ, for any κ, and therefore representation theory has been the necessary tool to deal with all these models at the same time. On the other hand, our results also hold for trees with any 2 number of leaves and any degrees at the interior nodes. The approach adopted to prove the main result 5.4 also produces a computationally effective list of elements in the ideal of the phylogenetic variety. Indeed, the list of equations provided in Theorem 5.4 for a tree Twith nleaves is constructed from equations describing locally the phylogenetic varieties of claw trees of the interior nodes of Tand from certain minors of the thin flattenings mentioned above. The number of equations from the thin flattenings grows exponentially with n, but the number of equations corresponding to claw trees does not (it grows exponentially with the maximum degree of an interior node of T, see Remarks 4.9 and 5.6). However, evaluating the minors of the thin flattenings is not the optimal way of evaluating the rank of a matrix and these equations could therefore be substituted by a numerical method such as the singular value decomposition (see [29]). The remaining equations form a set that can be useful in practice, for example for the estimation of the parameters that maximize the likelihood via Lagrange multipliers (see the tools used in [23] and [22]). The structure of the paper is as follows. In the following section 2, we recall the background on linear representation theory of finite groups that is needed in the sequel. In section 3, we recall the definition of equivariant models and of phylogenetic varieties. In this section we prove as well two key results that shall allow us to provide a complete intersection as desired: first we compute the dimension of the phylogenetic varieties for any equivariant model MG,G⊂Sκ, and any tree T, and then we prove that these varieties are smooth at generic points of no evolution. Then in section 4 we describe the set of equations that shall be used to prove our main result. The setup for this description is conceived towards the induction steps that are needed in the proof of the main result. In section 5 we describe the induction step and the “claw tree hypotheses” needed to prove our main result, Theorem 5.4 in the largest generality. The proof of this theorem is constructive and provides an algorithm for obtaining the desired complete intersection assuming the claw tree hypotheses is satisfied. In section 6 we prove that this claw tree hypothesis holds for trivalent trees on the general Markov model, the strand symmetric model, and the Jukes-Cantor model (the Kimura 3-parameter case was already considered in [13]). For these models we also specify complete intersections (following the algorithm provided in section 5) that describe the variety for quartet trees around generic points of no evolution. Acknowledgements M.Casanellas and J.Fern´andez-S´anchez were partially supported by Spanish government MTM2012- 38122-C03-01/FEDER and Generalitat de Catalunya 2014 SGR-634. M.Micha lek was supported by National Science Center grant SONATA UMO-2012/05/D/ST1 /01063. Part of the work was conducted while Micha lek was visiting Freie Universit¨at, Berlin and UC Berkeley (PRIME DAAD program 2015-2016) and CRM Barcelona (EPDI program 2013). 2 Background on representation theory In this section we recall the basic concepts of representation theory that will be needed in the sequel. The reader is referred to [43] or [32] for details and proofs. Throughout the paper we work over the field of complex numbers C. Let Gbe a finite group. A representation of Gis a group homomorphism ρ:G→GL(V), where Vis a C-vector space of finite dimension. We will refer to Vas the representation itself (or also as a G-module) if the map ρcan be understood from the context, and for g∈Gand u∈V we shall denote by gu the vector ρ(g)(u). A G-equivariant map is a linear map f:V−→ V0 between two representations of Gthat satisfies f◦ρ(g) = ρV0(g)◦ffor all g∈G. The set of 3 all G-equivariant maps between Vand V0is denoted as Hom G(V, V 0). Two G-modules Vand V0 are said to be isomorphic (denoted as V∼ =GV0) if there is a G-equivariant isomorphism of vector spaces f:V→V0. A representation Vis irreducible if it does not contain any proper G-invariant subspace. Otherwise, Vis said to be reducible. We will denote by VGthe subspace of vectors of Vthat are G-invariant under the action of G, that is, gu =ufor all g∈G. Lemma 2.1 (Schur) Let V, V 0be two irreducible representations of G. If f:V→V0is G- equivariant, then either f= 0 or fis an isomorphism, in which case Hom G(V, V 0)∼ =C. Notation 2.2 Let ρk:G→GL(Nk), k= 1, . . . , t be the irreducible representations of G(up to isomorphism). We write χkfor the character corresponding to Nk:χk(σ) = trace(ρk(σ)). We adopt the convention that (ρ1, N1) refers to the identity (or trivial) representation. Theorem 2.3 (Maschke) If ρ:G→GL(V)is a representation of G, then there exists a unique decomposition V=⊕t k=1V[χk], where each V[χk]is isomorphic to ⊕mk(V)Nkfor some multiplicity mk(V)≥0. We call V[χk]the isotypic component of Vassociated to Nk. Notice that VGis equal to the isotypic component of Vassociated to the trivial representation of G:VG=V[χ1]. Permutation representation. From now on we focus on the following setting. Given a finite set Σ of cardinality κ, we define W=hΣiCas the C-vector space generated by the elements of Σ. In this way, the elements of Σ play the role of the standard basis of W, so that an element X∈Σ and the corresponding vector of the standard basis shall be denoted in the same way. Motivated by biology, in our examples we consider Σ = {A,C,G,T}but our work holds for any finite set. We denote 1:= PX∈ΣX. By abuse of notation, 1will be sometimes taken as the column-vector with all its κcoordinates equal to one. Henceforth, Gshall be a permutation group of Σ, that is, Gis a subgroup of Sκ. The restriction to Gof the permutation representation W, given by the permutation of the elements in Σ, induces a representation ρ(s) of Gon any tensor power ⊗sW by extending linearly the action σ(Xi1⊗. . . ⊗Xis) := σXi1⊗...⊗σXisfor σ∈G, Xij∈Σ. In this paper, we will only deal with such representations ρ(s) : G−→ GL(⊗sW) together with the irreducible representations N1, . . . , Ntof G. According to Masckhe’s theorem, any tensor power ⊗sWwill decompose into a direct sum of modules (⊗sW)[χk] (the isotypic components) each of them being a number of copies of one of the irreducible modules Nk. This number is the multiplicity of Nkin ⊗sWand will be denoted by mk(s). In the particular case G=Sk, explicit formulas for mk(s) can be provided in terms of Kronecker coefficients. We write m(s) = (m1(s), . . . , mt(s)) for the vector of multiplicities of ⊗sW. As the case s= 1 will play a special role, we simplify notation and write m= (m1, . . . , mt) for the vector of multiplicities of W. We consider the usual non-degenerate symmetric bilinear form in Wthat makes Σ into an orthonormal basis, and denote it by v·wfor any v, w ∈W. This inner product will be used to identify Wwith W∗by sending a vector vto the linear form v∗∈W∗that maps uto v·u. The inner product in Winduces an inner product in ⊗sWdefined as X1⊗. . . ⊗Xn·Y1⊗...⊗Yn:= s Y k=1 Xk·Yk, for Xi,Yj∈Σ and extending it sesquilinearly. 4 Dual representation. If ρ:G−→ GL(V) is a representation of Gwith character χ, then its dual V∗is also a representation via the homomorphism ρ∗:G−→ GL(V∗) that maps gto tρ(g−1), and V∗has character χ∗(the conjugate of χ). The choice of an inner product on a finite-dimension vector space Vprovides an isomorphism V∼ =V∗. Nevertheless, if Vis a representation of a group G, then it may happen that it is not G-isomorphic to V∗. This will force us to distinguish between the space and its dual in the sequel. However, the permutation representations V=⊗sW(with the inner product introduced above) satisfy V∼ =GV∗because they have real characters. Thus, the reader may freely ignore all the dual signs in our article. We decided to keep them, as most of the arguments we provide hold without the assumption V∼ =GV∗on a representation theoretic level. There is also a natural G-isomorphism V⊗V0∼ =GHom (V∗, V 0) which at the level of G-invariant vectors translates to (V⊗V0)G∼ =GHom G(V∗, V 0). 3 Equivariant evolutionary models and phylogenetic varieties A tree is a connected finite graph without cycles, consisting of vertices and edges. Given a tree T, we write V(T) and E(T) for the set of vertices and edges of T. The degree of a vertex is the number of edges incident to it. The set V(T) splits into the set of leaves L(T) (vertices of degree one) and the set of interior vertices Int(T) : V(T) = L(T)∪Int(T). One says that a tree is trivalent if each vertex in Int(T) has degree 3. A tree topology is the topological class of a tree where every leaf has been labeled. Given a subset Aof L(T), the subtree induced by Ais just the smallest tree composed of the edges and vertices of Tin any path connecting two leaves in A. A tree Tis rooted if a specific node ris labeled as the root. In order to model the substitution of the states in a set Σ of size κaccording to a Markov process on a rooted tree T, one has to specify a distribution πat the root of the tree and a collection of substitution matrices A= (Ae)e∈E(T)[19, 16]. The root of Tinduces an orientation on every edge eof the tree, and the entries of Aestand for the conditional probabilities of state substitution from the parent node pa(e) to the child node ch(e). The set of possible root distributions and substitution matrices for a tree Tis called the set of parameters. In the applications to biology, one has to restrict the set of parameters to stochastic vectors and matrices, but this restriction is unnecessary for the core of this paper. Below we describe equivariant models of evolution, which include some of the most well-known models. As above, let Σ be a finite set of cardinality κ,Wbe the C-vector space hΣiC, and G≤Sκbe a permutation group of Σ. In this section we use the distinguished basis Σ of Wto identify the set of κ×κmatrices with complex entries with Hom (W, W ). Definition 3.1 (cf. [25]) A rooted tree Tevolves under the equivariant model MGif a G-invariant vector πis associated to the root of Tand substitution matrices Aein Hom G(W, W) are associated to each edge eof T. For the equivariant model MG, the set of parameters is Par G(T) = WG×Y e∈E(T) Hom G(W, W). If one wants to talk about stochastic parameters,sPar G(T) one has to restrict the root distribution to sWG:= WG∩ {π∈W|π·1= 1}, and the substitution matrices to sHom G(W, W ) := Hom G(W, W)∩ {A|A·1=1}(and then require that all entries are real, nonnegative, but this is not relevant for our purposes). As a special case, if the group Gis trivial, G={1}, we will denote by Par (T) and sPar (T) the corresponding spaces of parameters. Identifying L(T) with 5 {1,2, . . . , n}and assuming that states at child nodes are independent given the state at their parent node (Markov assumption), the parametrization map that assigns the distribution of Σ×n ... ×Σ at the leaves of Tto each set of parameters is ΨT: Par (T)−→ ⊗nW(1) defined by ΨT(π, A) = X Xi∈Σ pX1...XnX1⊗ · · · ⊗ Xn, where pX1...Xn=X (Xv)v∈Int(T), πXrY e∈E(T) Ae Xpa(e),Xch(e),(2) and: the sum is over all possible states Xv∈Σ at the interior vertices v,pa(e) (respectively ch(e)) is the parent (respectively, child) node of e,Xch(e)=Xiif ch(e) is the leaf i, and (πX)X∈Σare the coordinates of the distribution πat the root node r. When we restrict this map to the set of parameters Par G(T), we denote it as ΨG T.In this case the image lies in (⊗nW)G. When the parametrization (1) is restricted to the set of stochastic parameters, we obtain φT:sPar (T)−→ H∩ ⊗nW, where H⊂ ⊗nWis the hyperplane defined as H=(p∈ ⊗nW|X Xi∈Σ pX1...Xn= 1). The analogous restrictions to sPar G(T) are denoted as φG T. The word “stochastic” here has a broader meaning than usually, because for our aim we only need entries summing to one and not necessarily nonnegative entries. The phylogenetic variety associated to a tree Tevolving under MGis the (affine) algebraic variety CVG(T) := {ΨG T(π, A)|(π, A)∈Par G(T)} ⊂ (⊗nW)G. where Srepresents the Zariski closure of a set S. Similarly, the stochastic phylogenetic variety associated to a tree Tis the smallest algebraic variety VG(T) containing the set Im φG T=φG T(π, A) : (π, A)∈sPar G(T). One has VG(T) = CVG(T)∩H(see, for example, [16]). In particular, the equations defining VG(T) are the same equations defining CVG(T) plus the equation defining H. Notice that in the definition of the phylogenetic variety we have not specified the root of the tree. It is well known that different root placements give rise to the same phylogenetic variety. Indeed, it is clear that a matrix Mbelongs to Hom G(W, W) if and only if so does its transpose Mt. Now, it can be seen that if we move the root from one node to a neighboring node and we replace the matrices Aeof the edges with inverted orientation with their transpose, the image of the new parameters will remain the same. Moreover, we may assume that π=1when parameterizing CVG(T) since choosing an edge e0attached to the root and changing Ae0by diag(π)Ae0gives rise to the same image point. Hence CVG(T) does not depend on the root. As Halso does not depend on the root, neither does VG(T). In case we take all matrices Aeequal to the identity, the image by ΨG Trepresents no evolution at all. 6 Definition 3.2 Given an equivariant model MG, a point πnin ⊗nWis a point of no evolution if πn=PX∈ΣπXX⊗. . . ⊗Xand πnis invariant under G. If πn=PX∈ΣπXX⊗. . . ⊗Xis a point of no evolution, then it belongs to CVG(T) for any tree T on nleaves because πn= ΨG T(π, I) where π=PX∈ΣπXX∈WGand Icorresponds to the identity matrix at each edge: I= (Id)e∈E(T). Remark 3.3 For biological applications, we are interested in real/stochastic points in Im φG T⊂ ⊗nWthat are close to points of no evolution (in the complex euclidean distance). Indeed, the parameters close to (π, I) are precisely those that are interesting biologically speaking because they account for probabilities of no mutation greater than probabilities of mutation (that is, diagonal entries greater than off-diagonal entries in transition matrices). Since φG Tis continuous, the preimage V= (φG T)−1(U) of an open neighborhood U⊂Im φG Tof a point of no evolution is an open set containing necessarily those biologically meaningful parameters. Moreover, it is clear that φG T(V) = U. The main goal of this paper is to provide a local description of the phylogenetic varieties around the points of no evolution. Example 3.4 The definition of equivariant model includes important evolutionary models used in phylogenetics for κ= 4 like 1. Jukes-Cantor [34], for G=S4or G=A4(the alternating group); 2. Kimura 2-parameter [36], for G=h(ACGT),(AG)i; 3. Kimura 3-parameter [37], for G=h(AC)(GT),(AG)(CT)i; 4. strand-symmetric [17], for G=h(AT)(CG)i; 5. general Markov (briefly GMM) [10], for G={1}. We say that MGis a submodel of MHif H≤G. With this terminology, all the models above are submodels of the general Markov model and we have inclusions from top to bottom on the sets of corresponding parameters (and algebraic varieties). 3.1 Dimension of phylogenetic varieties for equivariant models In this subsection we compute the dimension of the phylogenetic variety associated to any G- equivariant model on any tree T,G≤Sκ. This dimension was already known in the particular cases of the Jukes-Cantor, Kimura 2 and 3 parameters and general Markov model. The result yields the codimension of these varieties and hence it is the first step towards providing a complete intersection containing them. Theorem 3.5 For any group G≤Sκand any tree Twithout nodes of degree 2, the dimension of VG(T)is |E(T)|(m1(2)−m1) +m1−1and the dimension of CVG(T)is |E(T)|(m1(2) −m1)+m1. Proof. The dimension of VG(T) is upper bounded by the dimension of sPar G(T), which we compute in the following. Each transition matrix Mis an element of Hom G(W, W)∼ =(W∗⊗W)G, so, as in our case W∼ =W∗, the number of parameters is m1(2). However, because of the stochastic assumption, the sum of the rows of each matrix Mis fixed to one. Notice that (W∗⊗W)Gsurjects onto WGby the map M7→ M1. Hence, there are m1independent restrictions on the parameters 7 of M. This makes |E(T)|(m1(2) −m1) free parameters for the choice of the transition matrices. On the other hand, the distribution of the root is given by a vector π∈WG. The stochastic condition implies that the sum of the coordinates is equal to one. This makes m1−1 free parameters for the choice of the root distribution. Summing up, we have that dim VG(T) is less or equal than |E(T)|(m1(2) −m1)+(m1−1). In order to prove the other inequality we use Chang’s result ([19]) and its generalization ([4]) on the “generic identifiability of parameters“ of the general Markov model M1on trees without nodes of degree 2. This result says that the fiber of φT(P) is finite for parameters P= (π, (Ae)e) that satisfy: (1) no entry of πis zero; (2) all Aeare non-singular; and (3) det Ae6=±1 for all e. These generic conditions (1)-(3) are also generic for the parameters of any equivariant model MG. That is, if Σ = {X1, . . . , Xκ}, for any group G≤Sκwe have (i) sWGis not included in {π∈W|πX1·. . . ·πXκ= 0}(indeed, 1 κ1∈sWGfor example), (ii) sHom G(W, W) is not contained in the set of singular matrices (indeed, Id ∈sHom G(W, W )), and (iii) sHom G(W, W) does not only contain matrices with determinant 1 or −1 (for example, the matrix with all entries equal to 1/κ belongs to sHom G(W, W)). This means that for generic parameters P ∈ sPar G(T), if we set p=φG T(P), the preimage (φT)−1(p) is finite. As the preimage (φT)−1(p) contains (φG T)−1(p), this implies that the generic fiber of φG Tis finite. Therefore, the dimension of VG(T) is lower bounded by the dimension of the domain of φG T, which has been computed above. The claim for CVG(T) follows because it is the closure of the cone over VG(T).  This result implies the “generic local identifiability” of the stochastic parameters for trees evolving under equivariant models (see [9, Definition 1] for example). Corollary 3.6 The stochastic parameters of a tree Tevolving under an equivariant model MG, G≤Sκ, are generically locally identifiable if Thas no nodes of degree 2. Remark 3.7 It can be checked easily that for the evolutionary models listed in Example 3.4, the dimension for a trivalent tree on nleaves (and hence with 2n−3 edges) Tis 1. dimCVG(T) = 2n−3 for the Jukes-Cantor model; 2. dimCVG(T) = 4n−6 for the Kimura 2-parameter model; 3. dimCVG(T) = 6n−9 for the Kimura 3-parameter model; 4. dimCVG(T) = 12n−17 for the strand symmetric model; 5. dimCVG(T) = 24n−33 for the general Markov model. If Thas nleaves, we will write codim (T) for the codimension of CVG(T) in (⊗nW)G(equal to the codimension of VG(T) in H), that is, codim (T) := dim(⊗nW)G−dim CVG(T). The dimension of (⊗nW)Gis m1(n), which has been computed in [16, Prop. 20] for the models listed in Example 3.4. 8 3.2 Smoothness at points of no evolution Let Tnbe the n-claw tree, that is, the tree with one inner vertex and nleaves. In what follows we prove that the variety corresponding to Tnis smooth at generic points of no evolution. In particular, it can be locally defined by a complete intersection. Given a permutation subgroup Gof Sκ, we denote by GL(κ)Gthe group of G-equivariant κ×κ invertible matrices. Clearly, GL(κ)Gacts on Hom G(W, W) by (A, M)→AM. Theorem 3.8 The variety CVG(Tn)is the Zariski closure of the orbit of ΨG T(1,I)under the group action of (GL(κ)G)n. Proof. The conditions 1. det Ae6= 0 for all e∈E(T), and 2. all coordinates πare different from 0 define open sets in Par G(T). As Id ∈GL(κ)Gand 1∈WG, the intersection of these open sets is non-empty and a generic point (π, A)∈Par G(T) satisfies both conditions. Let us fix one edge e0. Notice that diag(π)Ae0is invertible (as the coordinates of πare nonzero) and is G-invariant (as π∈VG). This means diag(π)Ae0∈GL(κ)G. Notice that ΨG T(π, A)=ΨG T(1,˜ A), where ˜ Ae=Ae for e6=e0and ˜ Ae0=diag(π)Ae0. However, ΨG T(1,˜ A) = X Xi∈ΣX X∈Σ n Y j=1 ˜ Aej X,XjX1⊗ · · · ⊗ Xn= X X∈Σ (˜ Ae1X)⊗ · · · ⊗ (˜ AenX) = ( ˜ A)(X X∈Σ X⊗ · · · ⊗ X) = ( ˜ A)·ΨG T(1,I).  Corollary 3.9 If PX∈ΣπXX⊗. . .⊗Xsatisfies πX6= 0 for all X, then it is nonsingular. In particular, a generic point of no evolution of CVG(Tn)and VG(Tn)is nonsingular. Proof. For CVG(Tn) the statement follows directly from Theorem 3.8. Let us also notice that CVG(Tn) is a cone, hence a point of VG(Tn) is smooth if and only if it is smooth as a point of CVG(Tn).  Remark 3.10 When Gacts on the basis of Vtransitively and freely then GL(V)Gis a torus. This is the case of so-called group-based models and, as follows from Theorem 3.8 the variety VG(Tn) is toric [45], but not necessarily normal [24]. 4 Equations for the complete intersection We start this section with a non-canonical description of the isotypic components. We need to deal with it because we want to produce explicit equations for the equivariant evolutionary models and therefore we need to make some choices. 9 4.4 Equations from CVG(TA)and CVG(TB) The following result is essentially well-known (see Lemma 1 of [31], or [5]). However, we prove it in our setting. Lemma 4.11 Let Tbe a tree and let Lbe one of its leaves. Let T0be the subtree of Tthat has the same vertices, apart from L(Fig. 2). The following contraction map fL:⊗nW=Nl∈L(T)Wl→Nl∈L(T0)Wl ⊗l∈L(T)vl7→ 1·vL⊗l∈L(T0)vl satisfies fL(Im ΨG T) = Im ΨG T0and, as a consequence, fL(CVG(T)) = CVG(T0). In stochastic terms, this map is called the marginalization over the random variable at L. Proof. The map fLis induced by the multilinear map Ql∈L(T)Wl→Nl∈L(T0)Wl (vl)l∈L(T)7→ 1·vL⊗l∈L(T0)vl and therefore fLis well defined (by the universal property of tensor products). Without loss of generality, we can assume that the interior node madjacent to Lin Thas degree ≥3 (indeed, if it had degree two, then CVG(T) would be isomorphic to the variety associated to the tree with this vertex removed and two adjacent edges joined into a single edge). We call v1, . . . , vt(t≥3) the vertices adjacent to mand we set v1=L. We root the tree Tat vtand call e(m, i) the edges from mto vi,i= 1 . . . , t −1 (see figure 2). Let P=π, (Ae)e∈E(T)be a point in Par G(T) (rooted at vt). For the edge e(m, 2) from mto v2, we consider a new matrix Be(m,2) := DAe(m,2) where Dis the diagonal matrix diag(Ae(m,L)1) formed by the entries of Ae(m,L)1. Since Ae(m,2) is G-equivariant, the vector Ae(m,2)1is G- invariant, and Dis G-equivariant again. It follows from this that the new matrix Be(m,2) is G-equivariant. For all other edges of T0, take Be=Ae. It is not difficult to check that fLΨG T(P)= ΨG T0π, (Be)e∈E(T0). Therefore fL(Im ΨG T)⊂Im ΨG T0. The other inclusion fL(Im ΨG T)⊇Im ΨG T0follows easily by adding the identity matrix at the edge e(m, 1). The equality of the parametrized part of the varieties implies equality in the closures, hence fL(CVG(T)) = CVG(T0).  By successive applications of Lemma 4.11 to all leaves in A\{α} ⊂ L(T) (that is, marginalizing over all leaves in A\ {α}) we obtain a map fA\{α}:O l∈L(T) Wl−→ O l∈L(TB) Wl that sends the variety CVG(T) to CVG(TB). In order to induce equations from TA,TBto T, below we translate this map in terms of the corresponding affine coordinate rings. We do not explicitly write indeterminates nor coordinates because the above map fA\{α}is basis independent. This fact will play an important role in the proof of the main result in the next section. 16 Figure 2: . Illustration of the proof of Lemma 4.11. The tree T0is obtained by taking the leaf v1=Loff the tree T. The map fA\{α}above is dual to the map O l∈L(TB) W∗ l→O l∈L(T) W∗ l that maps tto 1a−1⊗tif the leaf LBof TBis identified with the leaf αof T, so f∗ A\{α}is the map corresponding to fA\{α}in terms of coordinates. Moreover, both maps restrict to G-invariant vectors. Summing up we have: Corollary 4.12 Any equation vanishing on CVG(TB)extends to an equation vanishing on CVG(T) via the map: f∗ A\α:Nl∈L(TB)W∗ lG −→ Nl∈L(T)W∗ lG t7→ 1a−1⊗t where the leaf LBof TBis identified with the leaf αof T. Similarly, for any subsets R(S⊂L(T) of leaves of Twe have f∗ Sis the map f∗ S:Nl∈S\RW∗ l−→ Nl∈RW∗ l ⊗l∈S\Rvl7→ ⊗l∈Rwl, where wl=vlif l∈S\Rand wl=1if l∈S. We illustrate Corollary 4.12 with an example. Example 4.13 Let Tbe the quartet tree that has an interior edge splitting leaves 1 and 2 from leaves 3,4 (see fig. 3) and let T0be the claw tree with leaves 1,2,3. If g(pAAA, . . . , pTTT)=0 is an equation vanishing on CV (T0) (written here in standard coordinates), then Corollary 4.12 guarantees that g X X∈Σ pAAAX, . . . , X X∈Σ pTTTX!= 0 is an equation vanishing on CV (T) (again in the standard coordinates). 17 Remark 4.14 It is convenient to write the equations of TBin the basis related to a bipartition LB|B. In this way, the extension of a coordinate as defined in Corollary 4.12 gives rise to a coordinate that is already in the basis BA|Bof (⊗Wn)G(indeed, as 1is G-invariant, the operator (4.3) does not affect it and it is easy to check that the extended basis are elements of BA|B). 5 The main result Given a phylogenetic tree under an equivariant model MG, the goal of this section is to construct a complete intersection for CVG(T) on a neighborhood of a point of no evolution. This will be done by using induction on the number of leaves of the tree. Let Tbe a tree with at least one interior edge and leaves L(T) = {l1, . . . , ln}. Reordering the set of leaves (if needed) we can assume that each leaf in the set {ln−l, . . . , ln}(for a certain l≥1) is joined by a single edge to a common interior node νof degree l+ 2 (which has as adjacent edges the l+ 1 external edges leading to ln−l, . . . , lnand another edge –which is an interior edge if Tis not a claw tree). We take the edge split A|Bgiven by A={l1, . . . , ln−l−1},B={ln−l, . . . , ln}. Write efor the interior edge of Tassociated with this split. Keeping the notation already used throughout the paper, TAhas leaves A∪{LA},TBhas leaves B∪{LB}(where LA,LBare defined as in figure 1). Note that TBis a claw tree. The variety associated to TAis the closure of the image of the polynomial map ΨTA: ParG(TA)→ ⊗n−lWG. and the variety CVG(TB)⊂ ⊗l+2WGis the closure of the image of ΨTB: ParG(TB)→ ⊗l+2WG. Lemma 5.1 Given a leaf Lin T, the image of a point of no evolution πn∈ ⊗nWunder the map fLis a point of no evolution in ⊗n−1W. Proof. If πn=PX∈ΣπXX⊗. . . ⊗X, then its image under the map fLis fL(πn) = X X∈Σ πX(1·X)X⊗. . . c XL. . . ⊗X=X X∈Σ πXX⊗n−1 . . . ⊗X, where c XLmeans the L-th element XL=Xhas been removed from the tensor product. As πnwas invariant by the action of G, so is fL(πn) and therefore it is a point of no evolution in ⊗n−1W. By successively applying the lemma above and lemma 4.11 we obtain points of no evolution in CVG(TA) and in CVG(TB) from a point of no evolution πnin CVG(T). Note that every point of no evolution, say p, in CVG(TA) or CVG(TB) is the image of a point of no evolution in CVG(T). Indeed, parises by taking a G-invariant vector πand the identity matrix at each edge of TAor TB, respectively (see Definition 3.2). Then, by taking the same vector π, we have that πn=ψG T(π, I) is a point of no evolution in CVG(T) whose image is p. This shall allow us to apply an induction argument. Let Tdbe the claw tree with dleaves (d-claw tree) evolving under MGand L(Td) = {x0, . . . , xd−1}, and let eqTd:= {h1, h2, . . . , hcodim (CVG(Td))}be a set of equations of a complete intersection that defines CVG(Td)⊂(⊗dW)Gon an open subset containing general points of no evolution. As we already proved, general points of no evolution are smooth by Theorem 3.8. In particular, the variety is locally a complete intersection, which guaranties the existence of eqTd. Before proceeding with induction, we need the following assumption about the equivariant model MGon the claw tree with dleaves, which shall be checked for every particular equivariant model and every dequal 18 to a degree of one of the interior nodes of T. For the GMM, the strand symmetric model, and the Jukes-Cantor model, we prove in section 6 that this assumption holds for the tripod (and hence our result is valid for trivalent trees evolving on these models). A local complete intersection for the Kimura 3-parameter model for trivalent trees was already given in [13]. d-claw tree hypothesis 5.2 We write equations eqTdin the coordinates with respecto to a basis of type Bx0|{x1,...,xd−1}following subsection 4.3. The Jacobian of these new equations eqB, which we denote as Jx0|x1,·,xd−1(Td), has rank equal to codim (CVG(Td)) at any general point of no evolution. We denote by J∗ x0|x1,·,xd−1(Td) the matrix obtained from Jx0|x1,·,xd−1(Td) by removing the columns corresponding to S(uk x0,i ⊗uk x1,·,xd−1,j) for k= 1, . . . , t and i, j = 1, . . . , mk. We say that the equivariant model MGsatisfies the d-claw tree hypothesis if rank J∗ x0|x1,·,xl−d(Td) = codim (CVG(Td)),(5) whenever this matrix is evaluated at a generic point of no evolution. Induction hypothesis. We will use the following induction hypothesis: (∗) We have obtained a set of equations eqTA={g1, g2, . . . , gcodim (CVG(TA))}that defines the variety CVG(TA)⊂(⊗n−lW)Gscheme theoretically on an open subset containing general points of no evolution. By Corollary 4.12, the map τ7→ τ⊗1linduces new equations for CVG(T) from eqTA. These equations shall be written in the coordinates qk i,j corresponding to the basis BA|Blinked to the edge split A|Band shall be called eqA={fA 1, . . . , fA codim (CVG(TA))} ⊂ C[qk i,j]. As above, by Corollary 4.12, the map τ7→ 1n−l−2⊗τinduces new equations eqB={fB 1, . . . , fB codim (CVG(TB)} ⊂ C[qk i,j] for CVG(T) from the set of equations eqTBof the underlying model assumption. Besides, we still need to consider the set of polynomials coming from the edge split. Edge invariants. As in subsection 4.2, for each k= 1, . . ., t, write Mkfor the mk(n−l−1) × mk(l+ 1)-matrix with rows indexed by the uk∗ A,i,i= 1, . . . , mk(n−l−1), columns indexed by uk B,j , j= 1, . . . , mk(l+ 1), and whose (i, j)-entry is the coordinate qk i,j. For each of these matrices, take the set of all the (mk+ 1) ×(mk+ 1)-minors containing the sub matrix M0 kdefined in Section 4.3, with rows and columns indexed by {uk∗ A,i}i=1,...,mkand {uk B,j }j=1,...,mk, respectively. We obtain NA|Bpolynomials in C[qk i,j] of the form (4). Lemma 5.3 We have codim (CVG(TA)) + codim (CVG(TB) + NA|B= codim (CVG(T)). Proof. We assume that Thas no vertices of degree 2, as such nodes can be removed. By Theorem 3.5 and Remark 4.9, we have codim (CVG(TA)) + codim (CVG(TB) + NA|B= (m1(l+ 2) −(|E(T)| − (n−l−1))(m1(2) −m1)−m1) + (m1(n)−m1(n−l)−m1(l+ 2) + m1(2)) + + (m1(n−l)−(n−l)(m1(2) −m1)−m1). 19 The sum above equals m1(n)− |E(T)|(m1(2) −m1)−m1= codim (CVG(T)).  Theorem 5.4 Let Tbe a phylogenetic tree on nleaves, n≥3; let Dbe the set of degrees of its interior nodes, and assume that d≥3for any d∈D. Let MGbe an equivariant model that satisfies the d-claw tree hypothesis for any d∈D. The set of equations eqT:= eqA∪eqB∪eqA|B defines the variety CVG(T)scheme theoretically on an open subset that contains general points of no evolution. Proof. We proceed by induction on the number of leaves. The first step is n= 3, which is covered by the d-claw tree assumption for d= 3. We assume thus n > 3 and that Thas at least one interior edge which splits the leaves L(T) = {l1, . . . , ln}into two sets A={l1, . . . , ln−l−1}and B={ln−l, . . . , ln}(reordering leaves if necessary). Consider the trees TAand TBas defined in the beginning of this section. Note that we are able to use the induction hypothesis stated above because the set of degrees for the interior nodes of the tree TAis included in D. By Lemma 5.3, we know that |eqA|+|eqB|+|eqA|B|= codim (CVG(T)), that is, the number of equations equals the codimension of the variety. We already know that eqT are equations satisfied by all points in CVG(T). Let V0be the variety defined by eqT. Now, consider the Jacobian matrix JA|B(T) obtained by taking the partial derivatives of the polynomials in eqA|Bwith respect to the coordinates qk i,j of (⊗nW)G. We claim that the rank of this matrix at a generic point of no evolution πnis maximal. From this, we will deduce that V0is non-singular in a neighborhood Uof πn. Since V0and CVG(T) have the same dimension, it follows that both varieties are equal in U. By reordering the columns of the Jacobian matrix if necessary, we may assume that columns are indexed as follows: – the first m1(n−l)−m1(2) columns are indexed by qk i,j with i=mk+ 1, . . . , mk(n−l−1), j= 1, . . . , mk,k= 1, . . . , t; – then, m1(2) columns indexed by qk i,j with i= 1, . . . , mk,j= 1, . . . , mk,k= 1, . . . , t; – then, m1(l+2)−m1(2) columns indexed by qk i,j with i= 1, . . . , mk,j=mk+1, . . . , mk(l+1), k= 1, . . . , t; – the remaining columns correspond to i=mk+1, . . . , mk(n−l−1), j=mk+1, . . . , mk(l+1), k= 1, . . . , t. Notice that the equations in eqAonly have coordinates in the first m1(n−l) columns and eqBonly in the middle m1(l+ 2) columns. The size of the overlap of the blocks JA|LA(TA) and JLB|B(TB) is m1(2). With this ordering, the Jacobian matrix has the form JA|B(T) =             JA|LA(TA) 0 0 ∗JLB|B(TB) 0 ∂ ∂ qk i,j Ek i,j             20 where: 1. The first block JA|LA(TA) has codim (CVTA) rows, and m1(n−l) columns indexed by the coordinates in (⊗n−lW)Gextended to (⊗nW)G. 2. The second block JLB|B(TB) has codim (CVTB) rows, and m1(l+ 2) columns indexed by the coordinates in (⊗l+2W)Gextended to (⊗nW)G. Notice that the first two blocks share the columns indexed by the coordinates {qk i,j}1≤i,j≤mk. 3. The third block ∂ ∂ qk i,j Ek i,jhas Nn−l−1|l+1 rows, indexed by the equations of eqA|B, and m1(n) columns, indexed by all the coordinates above: {qk i,j}1≤i≤mk(l+1),1≤j≤mk(n−l−1),1≤k≤t. From now on, these coordinates refer to a generic point of no evolution πn. We proceed by induction on the number of leaves and the induction hypothesis applied is the one explained above the statement of the theorem. By the induction hypothesis we know that the rank of JA|LA(TA) is equal to codim (CVTA). By the d-claw tree hypothesis (5), we know that JLB|B(TB) =   ∗ ∗ ∗ ∗ J∗ LB|B(TB) ∗ ∗   and the rank of J∗ LB|B(TB) is equal to codim (CVTB). This assures that the first codim (CVTB) + codim (CVTA) rows in the matrix are linearly independent. For the third block and by virtue of Lemma 4.10, we have h∂ ∂ qk i,j Ek i,ji= ∗. . . . . . ∗ ∗ ∗ ∗. . . . . . ∗Diag(∆k(πn))   where Diag(∆k(πn)) is the diagonal matrix with entries {∆k(πn)}kand columns indexed by the coordinates qk i,j for i, j ≥mk+ 1. By Lemma 5.5 below, these entries are nonzero. We conclude that the rank of JA|B(T) is maximal and equal to codim (CVT).  Lemma 5.5 Let πnbe a generic point of no evolution. Then, ∆k(πn)6= 0 for every k= 1, . . . , t. Proof. The matrix M0 kfor any tensor in p∈(⊗nW)Grepresents a tensor in Fk∗(Wα)⊗ Fk(Wβ) obtained as follows: 1. first contract pwith fL(T)\{α,β}to obtain a tensor p0in (Wα⊗Wβ)G, 2. project p0according to the decomposition (Wα⊗Wβ)G∼ =LkFk∗(Wα)⊗ Fk(Wβ). The determinant of M0 kis nonzero if and only if the associated map Fk(W∗ α)→ Fk(Wβ) has maximal rank, i.e. is an isomorphism. However, this is the case for all kif and only if p0defines a G-isomorphism W∗ α→Wβ. By lemma 5.1, the marginalization of πn=PX∈ΣπXX⊗. . . ⊗Xover all leaves different from α and βprovides a tensor p0=PX∈ΣπXX⊗X. This tensor corresponds to the map from W∗ αto Wβ whose matrix in basis {Xi}is diagonal with entries πXi. Therefore, if the coordinates πXof πn are all non-zero, this is an isomorphism and therefore the matrices M0 khave non-zero determinant for all k. This proves the claim.  21 Remark 5.6 The list of equations for a phylogenetic tree as in Theorem 5.4 is obtained from edge invariants and from local equations for d-claw trees, d∈D. As pointed out in 4.9, the number of edge invariants is exponential in n(at least for the usual models) and can be substituted by a direct evaluation of the rank of the thin flattening. It is worth noticing that the other subset of equations, the ones coming from d-claw trees, are at most exponential in dand therefore this subset can reasonably be used in practice. 6 Explicit equations for usual models The aim of this section is to provide explicit examples of complete intersections of the particular models listed in Example 3.4. For the Kimura 3-parameter, this was already done in [13]; here we deal with GMM, strand symmetric and Jukes-Cantor models (the only remaining case would be the Kimura 2-parameter model, for which the tripod assumption could be checked using computational algebra software). As mentioned in Example 4.5, for these models we can use the Fourier basis to span the isotypic components of W. In this cases, we can identify Σ with the group (Z2×Z2,+) via A7→ (0,0); C7→ (1,0); G7→ (0,1); T7→ (1,1).(6) We denote by χA,χC,χG,χTthe characters associated to this group (Z2×Z2,+) (see table 2). These characters are useful to describe the coordinates of a point of no evolution. A C G T χA1 1 1 1 χC1 1 -1 -1 χG1 -1 1 -1 χT1 -1 -1 1 Table 2: Description of characters χA,χC,χG,χTfor the group (Z2×Z2,+). Lemma 6.1 If πnis a point of no evolution, then πn=PY1,...,YnqY1,...,YnY1. . . Yn, where qY1,...,Yn=1 4n(πA+χC(Y)πC+χG(Y)πG+χT(Y)πT), Y:= Y1+. . . +Ynwith the addition given by the identification (6). Proof. From the definition of the Fourier basis in 4.1.1 and using Table 2, we have X= 1 4PY∈ΣχX(Y)Y, for any X∈Σ. Now, using that characters of 1-dimensional representations are multiplicative, if πnis a point of no evolution we have πn=X X πXX⊗. . . ⊗X= =X X πX 4nX Y1 χX(Y1)Y1⊗. . . ⊗X Yn χX(Yn)Yn= =X X πX 4nX Y1,Y2,...,Yn χX(Y1)χX(Y2). . . χX(Yn)Y1Y2... Yn= =X X πX 4nX Y1,Y2,...,Yn χX(Y1+Y2+. . . +Yn)Y1Y2. . . Yn= 22 = Figure 3: . The quartet tree illustrationg sections 6.1 and 6.3 =X Y1,Y2,...,Yn 1 4nX X πXχX(Y)!Y1Y2... Yn. From this, the claim follows.  6.1 Equations for trees evolving under the Jukes-Cantor model Take the Jukes-Cantor model, this is, G=S4. There are five irreducible representations of the group G:N1, . . . , N5(see [32] §2.3). For each i= 1, . . . , 5, the representation Nihas the character χishown in Table 1. As in Example 4.5.5, we have u1 1=A,u4 1=Cand F1(W) = hAiand F4(W) = hCi. By letting the group Gact, it follows that W=W[χ1]⊕W[χ4], with W[χ1] = hAi and W[χ4] = hC,G,Ti. We take the tree Twith 4 leaves 12|34 and take the bipartition A={1,2}and B={3,4}. We proceed to obtain a basis for the ambient space (⊗4W)Gof the variety VT. Choose α= 2 and β= 3 as in figure 3. Following the algorithm described, and noting that χ2= 2χ1+χ3+ 3χ4+χ5, we obtain the following basis u1 A,1=AA u1 B,1=AA u1 A,2=CC +GG +TT u1 B,2=CC +GG +TT u3 A,1=CC −GG u3 B,1=CC −GG u4 A,1=AC u4 B,1=CA u4 A,2=CA u4 B,2=AC u4 A,3=GT +TG u4 B,3=GT +GT u5 A,1=GT −TG u5 B,1=GT −TG Now, for each of the irreducible representations of S4, we can choose a subgroup Hkso that {huk A,i |h∈Hk}is a basis of the representation spanned by the S4-orbit of uk A,i. Namely, H1={e}n1= 1; H3={e, (AC)}n3= 2; H4={e, (CGT),(CTG)}n4= 3; H5={e, (CGT),(CTG)}n5= 3. A basis for (WA⊗WB)Gis inferred from LkFk(WA)⊗Fk(WB) by taking the image of the operator Sspecified in Remark 4.3 applied to the tensors uk A,i ⊗uk B,j : S(uk A,i ⊗uk B,j ) := nk |G|X g∈G (g·uk A,i)⊗(g·uk Bj), 23 that is, S(u1 A,1⊗u1 B,1) = AAAA, S(u1 A,1⊗u1 B,2) = 1 3AA ⊗(CC +GG +TT), S(u1 A,2⊗u1 B,1) = 1 3(CC +GG +TT)⊗AA, S(u1 A,2⊗u1 B,2) = 1 3(CC +GG +TT)⊗(CC +GG +TT), S(u3 A,1⊗u3 B,1) = 2 3(CC −GG)⊗(CC −GG) + (GG −TT)⊗(GG −TT)+(TT −CC)⊗(TT −CC) S(u4 A,1⊗u4 B,1) = ACCA +AGGA +ATTA, S(u4 A,1⊗u4 B,2) = ACAC +AGAG +ATAT, S(u4 A,1⊗u4 B,3) = AC ⊗(GT +TG) + AG ⊗(CT +TC) + AT ⊗(CG +GC), S(u4 A,2⊗u4 B,1) = CACA +GAGA +TATA, S(u4 A,2⊗u4 B,2) = CAAC +GAAG +TAAT, S(u4 A,2⊗u4 B,3) = CA ⊗(GT +TG) + GA ⊗(CT +TC) + TA ⊗(CG +GC), S(u4 A,4⊗u4 B,1)=(GT +TG)⊗CA + (CT +TC)⊗GA + (CG +GC)⊗TA, S(u4 A,3⊗u4 B,2)=(GT +TG)⊗AC + (CT +TC)⊗AG + (CG +GC)⊗AT, S(u4 A,3⊗u4 B,3)=(GT +TG)⊗(GT +TG) + (CT +TC)⊗(CT +TC)+(CG +GC)⊗(CG +GC), S(u5 A,1⊗u5 B,1)=(GT −TG)⊗(GT −TG) + (CT −TC)⊗(CT −TC)+(CG −GC)⊗(CG −GC). As above, denote by qk i,j the coordinates corresponding to this basis S(uk A,i ⊗uk B,j ). We proceed to obtain a complete intersection for the tree Twith 4 leaves 12|34. Take the bipartition A={1,2} and B={3,4}. First of all, we proceed to obtain the edge invariants following the section 4.2. If π4is a no evolution point, write π4=Pk,i,j qk ij S(uk A,i ⊗uk B,j ). Each irreducible representation Nkof S4 gives rise to a mk(2) ×mk(2)-matrix Mk: M1=q1 11 q1 12 q1 21 q1 22 , M3=q3 11 , M4= q4 11 q4 12 q4 13 q4 21 q4 22 q4 23 q4 31 q4 32 q4 33  , M5=q5 11  where the rows of each Mkare indexed by the {uk A,i}and the columns are indexed by the {uk B,j }. Notice that there is no M2as there is no isotypic component corresponding to N2in ⊗4W. Moreover, from Lemma 5.5, we know that ∆1(π4) = q1 11 6= 0 and ∆4(π4) = q4 11 6= 0. The resulting edge invariants arise as rank restrictions for these matrices: χ1:q1 2,2q1 1,1−q1 1,2q1 2,1= 0 χ4:q4 2,2q4 1,1−q4 1,2q4 2,1= 0 χ3:q3 1,1= 0 q4 2,3q4 1,1−q4 1,3q4 2,1= 0 χ5:q5 1,1= 0 q4 3,2q4 1,1−q4 1,2q4 3,1= 0 q4 3,3q4 1,1−q4 1,3q4 3,1= 0 We also need to consider the equations obtained from the tripods associated to the bipartition: TAwith leaves {1, α, LA}, and TBwith leaves {LB, β, 4}(see figure 3). Now, it can be seen that a complete intersection for the tripod T3with leaves x, y, z is given by Q4 1,1Q4 1,2Q1 1,2−Q1 1,1(Q4 1,3)2= 0 24 where these Qk ij are the coordinates corresponding to the basis linked to the edge split x|yz: S(u1 x,1⊗u1 yz,1) = AAA, S(u1 x,1⊗u1 yz,2) = ACC +AGG +ATT, S(u4 x,1⊗u4 yz,1) = CAC +GAG +TAT, S(u4 x,1⊗u4 yz,2) = CCA +GGA +TTA, S(u4 x,1⊗u4 yz,3) = CGT +CTG +GCT +GTC +TCG +TGC. From VTA, we take x=LA, y = 1, z = 2 to obtain the extended equation in the original coordinates qk ij: q4 1,1q4 2,1q1 1,2−q1 1,1(q4 3,1)2= 0. Analogously, from VTB, we take x=LB, y = 3, z = 4 to obtain the extended equation: q4 1,1q4 1,2q1 1,2−q1 1,1(q4 1,3)2= 0. These 9 equations define a local complete intersection around generic points of no evolution for the variety CVG(T) in (⊗4W)G. 6.2 Equations for the tripod evolving under the general Markov model The aim of this subsection is to explicitly provide as many equations as the codimension of the variety Xfor the tripod for GMM that cut out Xin a neighborhood of no evolution points. As the salmon conjecture is well-studied and answered on the set theoretic level [38, 11, 30, 46], many of the equations of Xare known. However, it turns out that the simplest equations, going back to Strassen, are enough to obtain a description of the local complete intersection. As we will see, not only are they enough - also their choice is astonishingly natural. Recall that when Σ has κelements, Xis the κ-th secant variety of the Segre product P(A)× P(B)×P(C), i.e. the closure of the locus of rank κtensors in the space P(A⊗B⊗C), where dim A= dim B= dim C=κ. For the sake of completeness, let us recall Landsberg-Ottaviani’s interpretation of Strassen’s equations [39]. Each tensor τ∈A⊗B⊗Cis naturally identified with a map τ:A∗→B⊗C. Let us tensor this map with the identity on Cobtaining a map A∗⊗C→B⊗C⊗C. Using the natural map C⊗C→C∧C, we obtain f(τ) : A∗⊗C→B⊗(C∧C). When τhas rank one, i.e. τ=a⊗b⊗c, then the rank of f(τ) (as a matrix) is at most κ−1 because the image of f(τ) is the subspace b⊗(c∧C). Hence, if τis of rank κ, then f(τ) has rank at most κ(κ−1). Using the matrix representation of f(τ), all κ(κ−1) + 1 minors provide equations of the κ-th secant variety. With respect to a certain basis X1, . . . , Xκof W, if τ=PaijkXi⊗Xj⊗Xk, then the entry of the column X∗ i⊗Xjand row Xs⊗(Xr∧Xt) equals (we assume r < t): •0, if rand tare different from j; • −aist, if r=j; •aisr, if t=j; because f(τ)(X∗ i⊗Xj) = Pp,q aipqXp⊗(Xq∧Xj). A display of this matrix is shown in Table 3. 25 References [1] H. Abo and M. C. Brambilla. On the dimensions of secant varieties of Segre-Veronese varieties. Ann. Mat. Pura Appl. (4), 192(1):61–92, 2013. [2] E. S. Allman. Open problem: Determine the ideal defining sec4(P3×P3×P3). http: //www.dms.uaf.edu/~eallman/. [3] E. S. Allman, C. Ane, and J. A. Rhodes. Identifiability of a Markovian model of molecular evolution with gamma-distributed rates. Advances in Applied Probability, 40, 2008. [4] E. S. Allman and J. A. Rhodes. Phylogenetic invariants of the general Markov model of sequence mutation. Math. Biosci., 186:113–144, 2003. [5] E. S. Allman and J. A. Rhodes. Quartets and parameter recovery for the general Markov model of sequence mutation. Applied Mathematics Research Express, 2004:107–132, 2004. [6] E. S. Allman and J. A. Rhodes. Phylogenetic ideals and varieties for the general Markov model. Adv. Appl. Math., to appear, 2007. [7] E. S Allman and J. A Rhodes. Phylogenetic invariants. In O Gascuel and M A Steel, editors, Reconstructing Evolution. Oxford University Press, 2007. [8] E. S. Allman and J. A. Rhodes. The identifiability of tree topology for phylogenetic models, including covarion and mixture models. J. Comput. Biol., 13:1101–1113, 2006. [9] E. S. Allman and J. A. Rhodes. Identifying evolutionary trees and substitution parameters for the general markov model with invariable sites. Math Biosci, 211(1):18–33, Jan 2008. [10] D. Barry and J. A. Hartigan. Asynchronous distance between homologous DNA sequences. Biometrics, 43:261–276, 1987. [11] D. J. Bates and L. Oeding. Toward a salmon conjecture. Exp. Math., 20(3):358–370, 2011. [12] W. Buczy´nska and J. A. Wi´sniewski. On geometry of binary symmetric models of phylogenetic trees. J. Eur. Math. Soc. (JEMS), 9(3):609–635, 2007. [13] M. Casanellas and J. Fernandez-Sanchez. Geometry of the Kimura 3-parameter model. Advances in Applied Mathematics, 41(3):265–292, 2008. [14] M. Casanellas and J. Fern´andez-S´anchez. Relevant phylogenetic invariants of evolutionary models. J. Math. Pure. Appl., 96:207–229, 2010. [15] M. Casanellas and J. Fern´andez-S´anchez. Invariant versus classical quartet inference when evolution is heterogeneous across sites and lineages. Systematic Biology, 65(2): 280–291, 2016. [16] M. Casanellas, J. Fern´andez-S´anchez, and A. Kedzierska. The space of phylogenetic mixtures for equivariant models. Algorithms for Molecular Biology, 7(33), 2012. [17] M. Casanellas and S. Sullivant. The strand symmetric model. In Algebraic statistics for computational biology, pages 305–321. Cambridge Univ. Press, New York, 2005. [18] M. Casanellas, J. Fernandez-Sanchez, and M. Michalek. Low degree equations for phylogenetic group-based models. Collectanea Mathematica, 66(2):203–225, 2015. [19] J. T. Chang. Full reconstruction of Markov models on evolutionary trees: identifiability and consistency. Math. Biosci., 137(1):51–73, 1996. 32 [20] L. Chiantini and C. Ciliberto. On the dimension of secant varieties. J. Eur. Math. Soc. (JEMS), 12(5):1267–1291, 2010. [21] J. Chifman and L. Kubatko. Quartet Inference from SNP Data Under the Coalescent Model. Bioinformatics, 30 (23): 3317-3324, 2014. [22] B. Chor, M. D. Hendy, B. R. Holland, and D. Penny. Multiple maxima of likelihood in phylogenetic trees: An analytic approach. Molecular Biology and Evolution, 17(10):1529– 1541, 2000. [23] B. Chor, M. D. Hendy, and S. Snir. Maximum likelihood jukes-cantor triplets: Analytic solutions. Molecular Biology and Evolution, 23(3):626–632, 2006. [24] M. Donten-Bury and M. Micha lek. Phylogenetic invariants for group-based models. J. Algebr. Stat., 3(1):44–63, 2012. [25] J. Draisma and J. Kuttler. On the ideals of equivariant tree models. Math. Ann., 344:619–644, 2008. [26] J. Draisma and R. H. Eggermont. Finiteness results for Abelian tree models. J. Eur. Math. Soc. (JEMS), 17(4):711–738, 2015. [27] J. Draisma, E. Horobet, G. Ottaviani, B. Sturmfels, and R. Thomas. The euclidean distance degree of an algebraic variety. Foundations of Computational Mathematics, pages 1–51, 2015. [28] N. Eriksson, K. Ranestad, B. Sturmfels, and S. Sullivant. Phylogenetic algebraic geometry. In ”Projective Varieties with Unexpected Properties” (Eds: C. Ciliberto, A. Geramita, B. Harbourne, R-M. Roig and K. Ranestad), De Gruyter, Berlin, 2005. [29] N. Eriksson. Tree construction using singular value decomposition. In Algebraic statistics for computational biology, pages 347–358. Cambridge Univ. Press, New York, 2005. [30] S. Friedland and E. Gross. A proof of the set-theoretic version of the salmon conjecture. J. Algebra, 356:374–379, 2012. [31] Y.-X. Fu and W.-H. Li. Construction of linear invariants in phylogenetic inference. Mathematical Biosciences, 109(2):201 – 228, 1992. [32] W. Fulton and J. Harris. Representation Theory. Graduate Text in Mathematics. Springer- Verlag, 1991. [33] T. R. Hagedorn. Determining the number and structure of phylogenetic invariants. Adv. Appl. Math., 24(1):1–21, 2000. [34] T.H. Jukes and C.R. Cantor. Evolution of protein molecules. In Mammalian Protein Metabolism, pages 21–132, 1969. [35] A. M. Kedzierska, M. Drton, R. Guigo, and M. Casanellas. SPIn: Model Selection for Phylogenetic Mixtures via Linear Invariants. Mol. Biol. Evol., 29(3):929–937, 2012. [36] M. Kimura. A simple method for estimating evolutionary rates of base substitution through comparative studies of nucleotide sequences. J. Mol. Evol., 16:111–120, 1980. [37] M. Kimura. Estimation of evolutionary distances between homologous nucleotide sequences. Proc. Natl. Acad. Sci., 78:1454–1458, 1981. 33 [38] J. M. Landsberg and L. Manivel. On the ideals of secant varieties of Segre varieties. Found. Comput. Math., 4(4):397–422, 2004. [39] J. M. Landsberg and Giorgio Ottaviani. New lower bounds for the border rank of matrix multiplication. Theory Comput., 11:285–298, 2015. [40] M. Micha lek. Geometry of phylogenetic group-based models. J. Algebra, 339:339–356, 2011. [41] M. Micha lek. Constructive degree bounds for group-based models. J. Combin. Theory Ser. A, 120(7):1672–1694, 2013. [42] M. Micha lek. Toric geometry of the 3-Kimura model for any tree. Adv. Geom., 14(1):11–30, 2014. [43] J.P. Serre. Linear Representations of Finite Groups, volume 42 of Graduate Text in Mathematics. Springer New York, 1977. [44] M. A. Steel, L. Szekely, P. L. Erdos, and P. Waddell. A complete family of phylogenetic invariants for any number of taxa under Kimura’s 3ST model. N.Z. J. Bot., 31:289–296, 1993. [45] B. Sturmfels and S. Sullivant. Toric ideals of phylogenetic invariants. J. Comput. Biol., 12:204–228, 2005. [46] B. Sturmfels. Open problems in algebraic statistics. In Emerging applications of algebraic geometry, volume 149 of IMA Vol. Math. Appl., pages 351–363. Springer, New York, 2009. 34