arxiv: v2 [math.co] 14 Sep 2009

Similar documents
Quantizations of cluster algebras

A NEW COMBINATORIAL FORMULA FOR CLUSTER MONOMIALS OF EQUIORIENTED TYPE A QUIVERS

Lecture Notes Introduction to Cluster Algebra

Introduction to cluster algebras. Andrei Zelevinsky (Northeastern University) MSRI/Evans Lecture, UC Berkeley, October 1, 2012

Problem 1. Let f n (x, y), n Z, be the sequence of rational functions in two variables x and y given by the initial conditions.

Bases for Cluster Algebras from Surfaces

MATRIX ALGEBRA AND SYSTEMS OF EQUATIONS. + + x 1 x 2. x n 8 (4) 3 4 2

Quivers of Period 2. Mariya Sardarli Max Wimberley Heyi Zhu. November 26, 2014

2-FRIEZE PATTERNS AND THE CLUSTER STRUCTURE OF THE SPACE OF POLYGONS

arxiv: v1 [quant-ph] 11 Mar 2016

The geometry of cluster algebras

THE MIRROR SYMMETRY CONJECTURE FOR NETWORKS ON SURFACES

Combinatorics of Theta Bases of Cluster Algebras

q xk y n k. , provided k < n. (This does not hold for k n.) Give a combinatorial proof of this recurrence by means of a bijective transformation.

Definition 2.3. We define addition and multiplication of matrices as follows.

Cluster Variables and Perfect Matchings of Subgraphs of the dp 3 Lattice

ABSOLUTELY FLAT IDEMPOTENTS

Combinatorics for algebraic geometers

Tropicalizations of Positive Parts of Cluster Algebras The conjectures of Fock and Goncharov David Speyer

Edinburgh, December 2009

arxiv:math/ v1 [math.co] 13 Jul 2005

STABLE CLUSTER VARIABLES

Cluster algebras and applications

Higher Spin Alternating Sign Matrices

Central Groupoids, Central Digraphs, and Zero-One Matrices A Satisfying A 2 = J

Algebraic Methods in Combinatorics

A SURVEY OF CLUSTER ALGEBRAS

Linear Algebra. Matrices Operations. Consider, for example, a system of equations such as x + 2y z + 4w = 0, 3x 4y + 2z 6w = 0, x 3y 2z + w = 0.

Elementary Linear Algebra

Preliminaries and Complexity Theory

Linear Algebra: Lecture notes from Kolman and Hill 9th edition.

Quiver mutations. Tensor diagrams and cluster algebras

Fundamentals of Engineering Analysis (650163)

Skew-symmetric cluster algebras of finite mutation type

Course 311: Michaelmas Term 2005 Part III: Topics in Commutative Algebra

arxiv: v1 [math.co] 19 Aug 2016

5 Quiver Representations

Lecture Notes in Linear Algebra

Chapter 1: Systems of linear equations and matrices. Section 1.1: Introduction to systems of linear equations

ELEMENTARY LINEAR ALGEBRA

Lecture 2: Cluster complexes and their parametrizations

arxiv: v1 [math.co] 20 Dec 2016

A variety of flags. Jan E. Grabowski. Mathematical Institute and Keble College.

Semidefinite and Second Order Cone Programming Seminar Fall 2001 Lecture 5

GROUP THEORY PRIMER. New terms: tensor, rank k tensor, Young tableau, Young diagram, hook, hook length, factors over hooks rule

Weak Separation, Pure Domains and Cluster Distance

4 4 and perturbation theory

Fundamentals of Linear Algebra. Marcel B. Finan Arkansas Tech University c All Rights Reserved

arxiv: v4 [math.rt] 9 Jun 2017

Discrete Applied Mathematics

Linear Systems and Matrices

a 11 x 1 + a 12 x a 1n x n = b 1 a 21 x 1 + a 22 x a 2n x n = b 2.

DISCRIMINANTS, SYMMETRIZED GRAPH MONOMIALS, AND SUMS OF SQUARES

Chapter 7. Linear Algebra: Matrices, Vectors,

The 4-periodic spiral determinant

DOUBLE RIM HOOK CLUSTER ALGEBRAS

(Affine) generalized associahedra, root systems, and cluster algebras

COMPLEXITY OF SHORT RECTANGLES AND PERIODICITY

LECTURE 16: REPRESENTATIONS OF QUIVERS

7 Matrix Operations. 7.0 Matrix Multiplication + 3 = 3 = 4

arxiv: v1 [math.qa] 22 May 2015

Dimer models and cluster categories of Grassmannians

Algebraic Methods in Combinatorics

Classification of root systems

Intrinsic products and factorizations of matrices

Linear Algebra M1 - FIB. Contents: 5. Matrices, systems of linear equations and determinants 6. Vector space 7. Linear maps 8.

1 Matrices and Systems of Linear Equations

Letting be a field, e.g., of the real numbers, the complex numbers, the rational numbers, the rational functions W(s) of a complex variable s, etc.

Cluster algebras and derived categories

Math 210C. The representation ring

APPENDIX: MATHEMATICAL INDUCTION AND OTHER FORMS OF PROOF

Semidefinite Programming

Linear Algebra March 16, 2019

Topological properties

NOTES ABOUT SATURATED CHAINS IN THE DYCK PATH POSET. 1. Basic Definitions

Data Mining and Analysis: Fundamental Concepts and Algorithms

arxiv:math/ v1 [math.co] 15 Sep 1999

EE731 Lecture Notes: Matrix Computations for Signal Processing

The six vertex model is an example of a lattice model in statistical mechanics. The data are

The number of simple modules of a cellular algebra

COMBINATORIAL CURVE NEIGHBORHOODS FOR THE AFFINE FLAG MANIFOLD OF TYPE A 1 1

Compact hyperbolic Coxeter n-polytopes with n + 3 facets

Parametrizations of Canonical Bases and Totally Positive Matrices

Longest element of a finite Coxeter group

Operations On Networks Of Discrete And Generalized Conductors

arxiv: v2 [math.gt] 15 Nov 2017

POLYNOMIAL BEHAVIOUR OF KOSTKA NUMBERS

LINEAR SYSTEMS AND MATRICES

Linear Algebra: Lecture Notes. Dr Rachel Quinlan School of Mathematics, Statistics and Applied Mathematics NUI Galway

Chapter 9: Systems of Equations and Inequalities

Practical Algebra. A Step-by-step Approach. Brought to you by Softmath, producers of Algebrator Software

The Greedy Basis Equals the Theta Basis A Rank Two Haiku

chapter 12 MORE MATRIX ALGEBRA 12.1 Systems of Linear Equations GOALS

Linear Algebra. Preliminary Lecture Notes

Introduction to Vectors

A proof of the Square Paths Conjecture

Polynomiality of Linear Programming

Particles I, Tutorial notes Sessions I-III: Roots & Weights

LINEAR ALGEBRA WITH APPLICATIONS

Lecture Notes Introduction to Cluster Algebra

Transcription:

Q-SYSTEM CLUSTER ALGEBRAS, PATHS AND TOTAL POSITIVITY arxiv:090.v [math.co] Sep 009 PHILIPPE DI FRANCESCO AND RINAT KEDEM Abstract. We review the solution of the A r Q-systems in terms of the partition function of paths on a weighted graph, and show that it is possible to modify the graphs and transfer matrices so as to provide an explicit connection to the theory of planar networks introduced in the context of totally positive matrices by Fomin and Zelevinsky. We also apply our method to give a simple solution for the rank affine cluster algebras studied by Caldero and Zelevinsky.. Introduction Discrete dynamical systems may take the form of recursion relations over a discrete time variable, describing the evolution of relevant physical quantities. Within this framework, of particular interest are the discrete integrable recursive systems, for which there exist sufficiently many conservation laws or integrals of motion, so that their solutions can be expressed in terms of some initial data. Interesting examples of such systems of non-linear integrable recursion relations arise from matrix models used to generate random surfaces, in the form of discrete Toda-type equations [,, 0]. More recently, a combinatorial study of intrinsic geometry in random surfaces has also yielded a variety of integrable recursion relations, also related to discrete spatial branching processes []. We claim that other fundamental examples are provided by the so-called Q-systems for Lie groups, introduced by Kirillov and Reshetikhin [8] as combinatorial tools for addressing the question of completeness of the Bethe Ansatz states in the diagonalization of the Heisenberg spin chain based on an arbitrary Lie algebra. We proved integrability for these systems in the case of A r in []. In the case of other Dynkin diagrams, evidence suggests integrability still holds. The Q-system with special (singular) initial conditions was originally introduced [8] as the recursion relation satisfied by the characters of special finite-dimensional modules of the Yangian Y (g), the so-called Kirillov-Reshetikhin modules. Remarkably, in the case g = A r, the same recursion relation also appears in other contexts, such as Toda flows in Poisson geometry [], preprojective algebras [] and canonical bases []. In [], we used methods from statistical mechanics to study the solutions of the Q-system associated with the Lie algebra A r, for fixed but arbitrary initial conditions. Our approach starts with the explicit construction of the conserved quantities of the system, which appear as coefficients in a linear recursion relation satisfied by Q-system solutions. These are finally used to reformulate the solutions in terms of partition functions for weighted paths on graphs, the weights being entirely expressed in terms of the initial data. Note that there is a choice of various sets of r variables which constitute an initial condition fixing the solutions of the Q-system recursion relation, a choice parametrized by Motzkin paths Date: September, 009.

PHILIPPE DI FRANCESCO AND RINAT KEDEM of length r. This set of initial variables determines the graphs and weights which solve the problem. This is the key point addressed in [], and is related to the formulation as a cluster algebra. Cluster algebras [9] are another form of discrete dynamical systems. They describe a specific type of evolution, called mutation, of a set of variables or cluster seed. Mutations are rational, subtraction-free expressions. This type of structure has proved to be very universal, and arises in many different mathematical contexts, such as total positivity [, 8], quiver categories [], Teichmüller space geometry [], Somos-type sequences [0], etc. Cluster algebras have the property that any cluster variable is expressible as a Laurent polynomial of the variables in any other cluster in the algebra. It is conjectured that these Laurent polynomials have nonnegative coefficients [9] (the positivity conjecture). This property has only been proved in a few context-specific cases so far. The Q-system solutions for A r are also known to be cluster variables in the cluster algebra introduced in [] (a result later generalized to all simple Lie algebras in []). In [], our interpretation of the solutions in terms of partition functions of paths on graphs with positive weights gave a proof of the positivity conjecture in this case. Moreover, we obtained explicit expressions, in the form of finite continued fractions, for these cluster variables. We review our results in the first part of this paper. Of particular interest to us is the connection of cluster algebras to total positivity. Fomin and Zelevinsky [] expressed a parametrization of totally positive matrices in terms of electrical networks, and established total positivity criteria based on relations between matrix minors, organized into a cluster algebra structure. In this paper we show the explicit connection of their construction to the Q-system solutions. In this paper, we review the methods and results of [] in a more compact and hopefully accessible form. We first apply this method to the case of rank affine cluster algebras, studied by Caldero and Zelevinsky []. These are the cluster algebras which arise from the Cartan matrices of affine Kac-Moody algebras. We obtain a simple explicit solution for the cluster variables in terms of initial data. We then proceed to describe the general solution of the A r Q-system using the same methods. In particular, we obtain an explicit formula for the fundamental cluster variables, which generalizes the earlier results of [] to higher rank. Finally, we make the explicit connection between the path interpretation of the solutions of the Q-system and a subclass of the totally positive matrices of [] and their associated electrical networks. More precisely, it turns out that the generating function for the family of cluster variables R,n (n N) of the A r Q-system is given by the resolvent of the transfer matrix T m associated with a graph Γ m for some seed variables associated with the Motzkin path m. We show that it is possible to locally modify the graph without changing the path generating function, so that we obtain a transfer matrix of smaller size r +, equal to the rank of the algebra. From there, there is a straightforward identification with the networks associated with totally positive matrices of special type, related to the Coxeter double Bruhat cells of []. The advantage of our approach is that we have explicit expressions for the cluster variables in terms of any mutated cluster seed parametrized by a Motzkin path m. The paper is organized as follows. In Section, we explain the basic tools from statistical mechanics which we use, the partition functions of hard particles on graphs and the equivalent partition functions of paths on weighted dual graphs.

Q-SYSTEMS, PATHS AND TOTAL POSITIVITY For illustration, in Section, we use this to give the explicit expression for the generating function of the cluster variables of rank cluster algebras corresponding to affine Dynkin diagrams, a problem extensively studied in [,, ]. In Section, we review our solution [] of the A r Q-system for the simplest choice of initial variables. This solution uses the partition functions of Section as well as the theorem of [, ] relating the partition function of non-intersecting paths to determinants of partition functions of paths. We also introduce a new notion in this section, the compactification of the graph, which gives a new transfer matrix which is associated with the same partition function. This is a key tool in making the connection with totally positive matrices. Section generalizes the results of Section, and we give expressions for the Q-system solutions in terms of any set of cluster variables in a fundamental domain. We also introduce the notion of strongly non-intersecting paths and a generalization of [, ]. This gives generating functions for the cluster variables in terms of the other seeds in the cluster algebra, and also provides a proof of the positivity conjecture [9]. This section is a quick review of the results of []. In Section, we extend the graph compactification procedure of Section to the other graphs, corresponding to mutated cluster variables, introduced in Section. This yields transfer matrices of size (r + ) (r + ), the resolvent of which is an alternative expression for the generating function for cluster variables. Finally, in Section, we use this to give the explicit relation to totally positive matrices [, ]. We thank M. Gekhtman, S. Fomin, A. Postnikov, N. Reshetikhin and A. Vainshtein for useful discussions. RK s research is funded in part by NSF grant DMS-080. RK thanks CEA/Saclay IPhT for their hospitality. PDF s research is partly supported by the European network grant ENIGMA and the ANR grants GIMP and GranMa. PDF thanks the department of Mathematics of the University of Illinois at Urbana-Champaign for hospitality and support, and the department of Mathematics of the University of California Berkeley for hospitality... Hard particles on G r.. Partition functions... Vertex-weighted graphs. Let G be a finite graph with N vertices labeled,,...,n, and non-oriented edges connecting the vertices. The adjacency matrix A G of the graph G is the N N matrix with entries A G i,j = if vertex i is connected by an edge to a vertex j. To each vertex i is associated a positive weight y i.... Configurations. A configuration C of m hard particles on G is a subset of {,...,N} containing m elements, such that A G i,j = 0 for all i,j C. This is called a hard particle configuration, because if we view the elements of C to be the vertices occupied by particles on the graph, the condition A G i,j = 0 for i,j C enforces the rule that two neighboring sites cannot be occupied at the same time. Each vertex can be occupied by at most one particle. We denote by C G m the set of all hard particle configurations on G with m particles.

PHILIPPE DI FRANCESCO AND RINAT KEDEM G r... r r r+ r Figure. The graph G r, with r + vertices labeled i =,,..., r +. G r 0... r r r+ r+ r r Figure. The graph G r, dual to G r, with total of r + vertices.... Partition function. The weight of a configuration C is the product of all the weights associated with the elements of C. That is, w C = i C y i. The partition function Zm G for m hard particles on G is the sum over all configurations CG m of the corresponding weights: (.) Zm G (y) = w C. C C G m... The graph G r. A basic example is the graph G = G r of Figure. It has r + vertices and r edges, with the (symmetric) adjacency matrix defined by A, = A r,r+ = A i,i+ = A i,i+ = A i+,i+ =, i {,...,r }. When r = 0, G 0 is reduced to a single vertex labeled, while for r =, G is a chain of three vertices,, with the two edges (,) and (,). Example.. The non-vanishing partition functions Z Gr m for Hard Particles on G r, r = 0, are (.) Z G 0 0 =, Z G 0 = y, Z G 0 =, Z G = y + y + y, Z G = y y... Recursion relations for the partition function. The transfer matrices Zm Gr satisfy recursion relations in the index r. They are obtained by considering the possible occupancies of the vertices r + and r: (.) Zm Gr = ZG r m + y r+ Z G r m + y rz G r, (r,m 0) For example, Z0 Gr = is the partition function of the empty configuration and Z Gr r i=0 y i+ for the maximally occupied configuration. m r+ =

Q-SYSTEMS, PATHS AND TOTAL POSITIVITY 0 r r r+ r+... G r r r Figure. The graph G r with oriented edges drawn in... Transfer matrix on the dual graph. Associated to the graph G r, there is a dual graph G r, as in Figure. It is dual in the sense that G r is the medial graph of G r : each edge of G r corresponds to a vertex of G r, and any two edges of G r share a vertex iff the corresponding vertices of G r are adjacent. We fix the labeling so that the correspondence is between edges of G r and vertices of G r is: () Edge (k,k ) of G r corresponds to the vertex k of G r, where k =,,...,r; () Edge (k,k + ) of G r corresponds to the vertex k of G r, where k =,,...,r; () Edge (0,) of G r corresponds to the vertex of G r ; () Edge (r +,r + ) of G r corresponds to the vertex r + of G r.... Transfer matrix on G r. We choose an ordering of the r + vertices of G r to be 0 < < < < < <... < r < r < r + < r +, and consider this to be an index set. We construct the (r + ) (r + ) transfer matrix T r (ty) with these indices. Its entries are 0 except for: (T r ) k,k =, (T r ) k,k = ty k, (k =,,...,r); (T r ) k+,k =, (T r ) k,k+ = ty k, (k =,,...,r); (T r ),0 = (T r ) r+,r+ =, (T r ) 0, = ty, (T r ) r+,r+ = ty r+. In matrix form, 0 ty 0 0 0 0 0 0 0 0 ty 0 0 0 0 0 0 0 0 ty ty 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 (.) T r (ty) =...... 0 0 0 0 0 0 ty r ty r 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ty r+ 0 0 0 0 0 0 0 0 This matrix is a weighted adjacency matrix for the graph with doubly-oriented edges associated with G r. Each edge of Gr corresponds to two oriented edges pointing in opposite directions, with the weights in the transfer matrix corresponding to those oriented edges. The element of the transfer matrix indexed by i,j is the weight corresponding to the edge j i.

PHILIPPE DI FRANCESCO AND RINAT KEDEM Lemma.. The generating function for hard particle partition functions on G r with a weights ty i per particle at vertex i is (.) Z Gr (ty) := with T r as in Equation (.). r+ m=0 t m Z Gr m = det(i T r ( ty)) Proof. Expanding the determinant D r (t) = det(i T r ( ty)) along the last column, one obtains the recursion relation: (.) D r (t) = D r (t) + ty r+ D r (t) + ty r D r (t), (r ). Let D r,m denote the coefficient of t m in D r (t). It satisfies the same recursion relation as Equation (.) for Zm Gr, with D 0 (t) = + ty and D (t) = + t(y + y + y ) + t y y, in agreement with the initial values of Z Gr (ty), r = 0, in Equation (.). Thus, D r,m = Zm Gr for all r,m. Example.. For the case r =, G is a chain of vertices,,. The dual G is a chain of three edges connecting four vertices 0,,,, and the transfer matrix is: 0 ty 0 0 (.) T(ty) = 0 ty 0 0 0 ty 0 0 0 One checks that det(i T( ty)) = +t(y +y +y )+t y y, in agreement with the partition functions Z G i of Equation (.)... Hard particles and paths. Let G be a graph with oriented edges. For example, the graph G r of the previous section can be made into an oriented graph, by taking each edge to be a doubly-oriented edge. Then each oriented edge from i to j receives a weight w(i,j), which is the corresponding entry of the transfer matrix T(ty) of Equation (.). This may be interpreted as the transfer matrix for paths on G r as follows.... The partition function of paths. A path of length n on an oriented graph G is a sequence of vertices of G, P = (v 0,v,...,v n ), such that there exists an arrow from v i to v i+ for each i. Let P G a,b (n) be the set of all distinct paths of length n, starting at vertex a and ending at vertex b on the graph G. A path on a graph with weighted edges has a total weight which is the product of the weights w(v i,v i+ ) associated with the edges traversed in the path. The partition function Z G a,b (n) for PG a,b (n) is (.8) Z G a,b (n) = n P P G a,b (n) i=0 w(v i,v i+ ) Assuming G is finite, and labeling its vertices i =,,...,N, let us introduce the N N transfer matrix T with entries T i,j = w(j,i), we have the following simple expression for Z G a,b (n): (.9) Z G a,b (n) = (T n ) b,a

Q-SYSTEMS, PATHS AND TOTAL POSITIVITY The matrix T(ty) of (.) is then the transfer matrix for paths on G r with weights for edges pointing away from the vertex 0, and ty i for the i-th edge pointing to the origin. The partition function for weighted paths of arbitrary length on G r from the vertex 0 to itself is G (.0) Z e r (ty) = n 0(T(ty) ( (I n ) ) ) 0,0 = T(ty) 0,0 Lemma.. The partition function of paths of arbitrary length from 0 to 0 on the graph G r is equal to (.) Z e G r (ty) = ZGr (0, ty,..., ty r+ ) Z Gr ( ty, ty,..., ty r+ ) Proof. By definition, (.0) is the ratio of the (0,0)-minor of the matrix I T(ty) to its determinant. Using Equation (.) and the explicit form (.), this immediately yields the relation. This relation between hard-particle partition functions and path partition functions may be interpreted as a boson-fermion correspondence, and is a particular case of Viennot s theory of heaps of pieces [, 9].... The path partition function as a continued fraction. A direct way to compute ZG e r (ty) in Equation (.0) is by using Gaussian elimination on I T(ty) to bring it to lower-triangular form. The resulting pivot in the first row is / ( (I T(ty)) ). If we do this systematically, 0,0 by left-multiplication by upper-triangular elementary matrices, the result is Lemma.. (.) Z e G r (ty) = t y y t y ty t ty t y... y ty r t r ty r+.... Non-Intersecting paths: the LGV formula. We may represent paths of length n from vertex 0 to itself on G r as paths on the lattice Z 0 (see Figure for an illustration). Such paths start at (0,0) and end at (n,0), and have the following possible steps: () To the northeast, (j,k) (j +,k + ), corresponding to the jth step in the path going from vertex k to vertex k + ; () To the southeast, (j,k) (j +,k ), corresponding to the jth step in the path going from vertex k to vertex k ; () To the east, (j,k) (j+,k), corresponding to the steps k k k if k {,,...,r}. Paths from the origin to the origin have an even number of steps, by parity. We will need to consider the partition function of families of α non-intersecting paths on G r, Z e G r s,e. Here, the fixed starting points are parametrized by s = (s,...,s α ) and the endpoints by e = (e,..,.e α ).

8 PHILIPPE DI FRANCESCO AND RINAT KEDEM G 0 0 y y y y y y y y Figure. A path on G with steps. The weights y i are associated to the descending steps (, ) and to the second half of the horizontal steps (, 0) + (, 0) of the path, i being the label of the corresponding edge of G (see on left). Here, the path receives the weight y y y y y y y. By non-intersecting paths, we mean paths that do not share any vertex. We have the celebrated Lindström-Gessel-Viennot formula[, ] G (.) Z e r s,e = det Z G e r s i,j α i,e j The determinant has the effect of subtracting the contributions from paths that do intersect. This formula can be proved by expanding the determinant as: α G (.) sgn(σ) Z e r s σ(i),e i σ S α i= One then considers the involution ϕ on families of paths, defined by interchanging the beginnings of the two first paths that share a vertex until the vertex, or by the identity if no two paths in the family intersect. It is clear that when ϕ does not act as the identity it relates two path configurations with opposite weights in the expansion of the determinant, as the two starting points are switched by ϕ, hence these cancel out of the expansion (.). We are thus left only with non-intersecting families, all corresponding to σ = Id, hence all with positive weights.. Application to rank cluster algebras of affine type.. Rank two cluster algebras. In this section, we use the partition functions introduced in the previous section to the problem of computing the cluster variables of rank two cluster algebras of affine type. This allows us to give explicit, manifestly positive formulas for the variables, proving the positivity of the variables in these cases.... The recursion relations. The rank cluster algebras of affine type [9, ] may be reduced to the following recursion relations for n Z: x n ( + x b n ) if n is odd (.) x n+ = x n ( + x c n ) if n is even

Q-SYSTEMS, PATHS AND TOTAL POSITIVITY 9 where b,c are two positive integers with bc =, hence (b,c) = (,),(,) or (,). The aim is to find an expression for x n, n Z in terms of some initial data, e.g. (x ( 0,x ). ) b The connection to rank affine Lie algebras is via the Cartan matrix. c The cases (,) and (,) are almost equivalent: If x n (x 0,x ) is a solution of the (b,c) equation, then x n (x,x 0 ) is the solution of the (c,b) equation. We may thus restrict ourselves to the (,) case. However, the symmetry x n x n changes the parity of n. Therefore we need to also consider the dependence of x n in the odd initial data (x,x ). It turns out that the recursion relations (.) are all integrable evolutions. This allows us to compute the generating function for x n, n 0. The result is a manifestly positive (finite) continued fraction. In the light of the results of the previous section, this allows to reinterpret x n as the partition function for weighted paths on certain graphs. This path formulation gives yet another direct combinatorial interpretation for the expression of x n as a positive Laurent polynomial of the initial data, to be compared with the approach of [, ] using quiver representations and that of [] using matchings of different kinds of graphs... The (,) case: solution and path interpretation. Consider the recursion relation (.) x n+ x n = x n + with x 0 = (x 0,x ) = (x,y). This is the A case of the renormalized Q-system considered in []. Due to the symmetry n n of the equation, the solution satisfies x n (x 0,x ) = x n (x,x 0 ) so we may restrict our attention to computing x n, for n 0.... Constants of the motion. Equation (.) is integrable. To see this, we rewrite (.) as ϕ n := x n x n x n x n+ =. Then 0 = ϕ n ϕ n+ = x n + x n+ x n x n + x n+ x n+. We conclude that there exists a constant c, independent of n, such that x n + x n+ = cx n for all n. Using Equation (.), (.) c = x n + x n+ = x n+ + + x n = x + + x 0 x n x n x n x n+ x n+ x 0 x 0 x x We interpret c as an integral of the motion of Equation (.). Equation (.) is a two-term recursion relation in n. Note that c coincides with the partition function Z G = y + y + y for one hard particle on the graph G, with weights (.) y = x x 0, y = x 0 x, y = x 0 x.

0 PHILIPPE DI FRANCESCO AND RINAT KEDEM Note also that the only other non-vanishing hard particle partition functions on G are Z G 0 = and Z G = y y =.... Generating function for x n. Let X(t) = n=0 tn x n be the generating function for the variables x n with n 0. Using x n+ cx n + x n = 0, we have (.) X(t) = x 0 (cx 0 x )t ct + t = t x 0 y, y t ty with y i as in (.). This gives x n as a manifestly positive Laurent polynomial of (x 0,x ). In fact, (.) X(t) = ( )( ) p + q q + l t p+q+l x +l p q 0 x p q l, q l p,q,l 0 from which x n is obtained by extracting the coefficient of t n. This agrees with the result of []. It follows that the dependence of the variables x n on any other pair (x k,x k+ ) is also as a positive Laurent polynomial. This is clear from the translational invariance of the system: x n (x k,x k+ ) = x n k (x 0,x ). x0 x k,x x k+... Relation to the partition function of paths. Upon comparing the continued fraction expression (.) and Equation (.), we see that there is a path interpretation to the variables x n as follows. The denominator of the fraction X(t) is equal to the partition function Z G ( ty) for hard particles on the graph G introduced in Section, with the weights ty i per particle at vertex i. Therefore, (.) X(t) = x 0 Z G (0, ty, ty ) Z G ( ty, ty, ty ), so x 0 X(t) is equal the partition function for paths on the graph G of Example., beginning and ending at the vertex 0. The weights are as follows: The weight is equal to for any step away from vertex 0, and and is equal to ty i per step from vertex i to i... The (,) case: Solution and relation to paths. We now consider the system: x n = + x n x n (.8) x n+ = + x n, x n n Z. We determine the dependence of the variables x n on two different types of initial conditions: (.9) case 0 : (x 0,x ) case : (x,x ). We can eliminate the odd variables and get an equation for the even variables. Let u n = x n. Using x n = u n u n, the even variables satisfy the recursion relation (.0) u n+ = u n + u n u n u n.

or, equivalently, u n (u n+ u n u n ) = u n+ + u n. Q-SYSTEMS, PATHS AND TOTAL POSITIVITY... Conserved quantities. The variable w n = u n+ u n u n satisfies (.) w n = u n+ + u n u n Moreover, = u n + u n + (u n u n )u n u n (u n u ) = u n + u n u n u n (.) w n+ w n = u n+ + u n u n+ u n u n+ + u n u n = u n u n+u n u n + u n+ + u n u n (u n u n+ ) We conclude that w n is a conserved quantity, that is, it is independent of n. Using (.), there exists a constant c such that u n+ + u n = cu n. We may compute this constant explicitly in terms of the initial conditions in cases 0 and of (.9), using u 0 = x 0, u = x and x 0 x = + x : case 0 : c (0) = u + u 0 u u 0 = x 0 + x x = x 0 + ( + x ) x 0 x case : c () = x + ( + x ) x x... Generating function. The linear recursion relation u n+ cu n + u n = 0 implies the following formulas for the generating functions (.) (.) U (0) (t) := n 0 U () (t) := n 0 u n t n = u 0 t(c (0) u 0 u ) c (0) t + t = u n+ t n = u t(c () u u ) c () t + t = ty (0) where the parameters are expressed in terms of the initial data as: (.) x 0 t y (0) ty (0) x ty () t y () ty () y (0) = + x x, y (0) = x 0 + ( + x ) 0 x 0 x, y (0) = x 0 + + x x 0 x y () = x + + x x x, y () = x + ( + x ) x x, y () = + x x Note that both sets satisfy the same relation y (i) y(i) = + y (i) where i = 0,, as they are a related via the substitution x x 0, which maps (y (),y(),y() ) (y(0),y(0),y(0) ). Upon expanding the right hand sides of (.) and (.) in power series of t, we get all the u n s as explicit positive Laurent polynomials of either initial data (x 0,x ) and (x,x ). Using ( )( ) (.) = t p+q+l a p p + q q + l ta t a aq al p l ta p,q,l 0 = 0

PHILIPPE DI FRANCESCO AND RINAT KEDEM G (,) 0 t a t t a t a Figure. The graph G (,) and the four corresponding path steps. we obtain the expressions, valid for all n 0: case 0 : x n (x 0,x ) = x +(q+l) n (r+s) 0 x m q l (.) (.8) case : x n+ (x,x ) = q,l,r,s,m 0 q,l,r,s,m 0 ( )( )( ) n q l q + l n + r + s q l q r,r l s,s m x +n (q+l+r+s) x q+l+m n ( )( )( ) n q l q + l r + s + l q r,r,s l m where we have used the multinomial coefficients ( ) { n! n := m! m k!(n P m i )!, i m i n; m,m,...,m k 0 otherwise. The expressions for the odd variables follow from x n+ = x n x n+. The positivity of these latter expressions is easily checked: Note that the product x n x n+ in both Equations (.) and (.8) has a constant term as a Laurent polynomial of (x 0,x ) and (x,x ) respectively, hence x n x n+ is a positive Laurent polynomial.... Path interpretation. The continued fraction expressions (.) and (.) allow for a path interpretation of x n as follows. Consider the graph G (,) on the left hand side of Figure, with two vertices labelled 0, connected by an edge, and connected to themselves via a loop. We assign weights to the oriented edges as follows: w(0 0) = ta, w(0 ) = t, w( ) = ta, w( 0) = ta. We can also associate a path in Z 0 to a path on G (,) composed of the steps shown in Figure. ( ) a a The corresponding path transfer matrix is: T = t. Using Gaussian elimination on a I T as in the previous example, we find that the partition function of paths from the vertex

Q-SYSTEMS, PATHS AND TOTAL POSITIVITY 0 to itself is: ( (.9) (I T) ) =. 0,0 ta t a ta Hence, x n is (up to a factor of x 0 in case 0 and x in case ) the partition function for paths of n steps on G (,), from and to the vertex 0, with weights (a,a,a ) = (y,y,y ) in case (i) and (a,a,a ) = (z,z,z ) in case (ii), where the weights are as in (.).... The graph G, as a compactification of the graph G. We will see later that, quite generally, it is possible to compactify the graphs G r. The result for r = is precisely the graph G,. Thus, The case (b,c) = (,) of the previous section may also be interpreted in terms of paths on the graph G (,), but with different weights: w(0 0) = ty, w(0 ) =, w( ) = ty, w( 0) = ty. where y i are as in equation (.). To see this, note that the continued fraction (.) may be rewritten as: ( ( ( )) ) x 0 tx ty ty (.0) X(t) = y t = x 0 + y t ty ty = x 0 + tx I ty ty ty Thus, for n 0, the solution x n+ of the (,) case is up to a factor x the partition function for paths on G (,), from and to the origin vertex 0, and with a total of n steps of the form 0 0, or 0, with respective weights y,y,y.. Application to the A r Q-system In [, ], we showed that the recursion relations (Q-systems) satisfied by the characters of the Kirillov-Reshetikhin modules of the quantum affine algebras associated with any simple Lie algebra can be described in terms of mutations of a cluster algebra. Solutions to the cluster algebra recursion relations are more general, in that the initial conditions are not specialized, as they are in the original Q-system satisfied by characters of Kirillov-Reshetikhin modules [8]. A particularly simple example of this is the case when the Lie algebra is of type A. Characters of A n KR-modules, which are just Schur functions corresponding to rectangular Young diagrams, are given by the cluster variables upon specialization of the boundary conditions. In [], we gave the general solution for the cluster variables without specialization of initial conditions. For these variables, we proved the positivity conjecture of Fomin and Zelevinsky by mapping the problem to a partition function of weighted paths on a graph. Let us review the results obtained in []... Definition. The A r Q-system is the following system of recursion relations for a sequence R α,n, α I r = {,,...,r} and n Z: (.) R α,n+ R α,n = R α,n + R α+,nr α,n, with boundary conditions R 0,n = R r+,n = for all n Z. We note that the case r = of A coincides with the case (,) treated in Section.. 0,0

PHILIPPE DI FRANCESCO AND RINAT KEDEM Remark.. The original Q-system, which is the one satisfied by the characters of KRmodules, differs from the system (.) not only in that it is specialized to the initial conditions R α,0 = ± for all α I r, but also by a minus sign in the second term on the right. In this discussion, we choose to renormalize the variables for simplicity. It is also possible (see the appendix of []) to consider the recursion relation with nontrivial coefficients. In that case both (.) and the original Q-system result from a specialization of the coefficients. We wish to study the solutions of Equation (.) for any given initial data. Our standard initial data for the Q-system are the variables x 0 = (R α,0,r α, ) α Ir. We may then view Equation (.) as a three-term recursion relation in n, which requires two successive values of n (for each α) as initial data. Our first goal is to express all {R α,n } α,n in terms of the initial data x 0.... Symmetries of the system. We may use Equation (.) to get both n and n values in terms of x 0. These are related via the manifest symmetry of the Q-system under n n, which implies R α, n ( (Rα,0,R α, ) α Ir ) = Rα,n ( (Rα,,R α,0 ) α Ir ). In addition, Equation (.) is translationally invariant under n n+k: R α,n+k ( (Rα,k+,R α,k ) α Ir ) = R α,n ( (Rα,,R α,0 ) α Ir ) for all n,k Z... Conserved quantities of Q-systems as Hard Particle partition functions. The Q-system turns out to be a discrete integrable system, in that it is possible to find a sufficient number of integrals of the motion, as in the r = case. First, equation (.) may be used to express R α,n (α ) as polynomials in {R,n }: (.) R α,n = det i,j α (R,n+i+j α ) This is proved by use of the Desnanot-Jacobi identity for the minors of the (α + ) (α + ) matrix M with entries M i,j = R,n+i+j α, i,j I α+. The boundary condition R r+,n = (for all n) together with (.) implies the equation of motion which determines R,n : det (R,n+i+j r ) =. i,j r+ From Equation (.), it is clear that R r+,n = 0 for all n. Hence there exists a linear recursion relation of the form (.) r+ ( ) m c r+ m R,n+m = 0, m=0 with c 0 = c r+ =. The fact that c r+ m do not depend on n follows from the fact that each row in the matrix in the determinant for R r+,n is just a shift in n of any other row. The constants c p, p =,,...,r are the r integrals of motion of the A r Q-system. They can be expressed explicitly in terms of the R,n s as follows: (.) c p = det i r+ j r+, j r+ p R,n+i+j independently of n. These quantities are similar to those found in [] for the so-called Coxeter- Toda integrable systems.

Q-SYSTEMS, PATHS AND TOTAL POSITIVITY Figure. The six pairs of non-intersecting paths on G of 8 and steps, starting respectively at (0, 0) and (, 0) and ending at (, 0) and (8, 0). By using simple determinant identities, we show in Theorem. of [] that c p satisfy recursion relations which allow us to identify them as the partition functions Zp Gr of p Hard Particles on the graph G r of Figure, where the weights given by: (.) y α,k = R α,kr α,k+ R α,k R α,k+, α r +, y α,k = R α,kr α+,k+ R α,k R α,k+, α r. This is true for any k: The functions Zp Gr are independent of the choice of k. Thus, unless otherwise stated, y α will stand for y α,0 below... Q-system solutions and paths. The linear recursion relation (.) allows to compute the generating function R (r) (t) = n=0 tn R,n explicitly. Indeed, R (r) (t)z Gr ( ty) is a polynomial of degree r, and it is easy to see that R (r) (t)z Gr ( ty) = R,0 Z Gr (0, ty,..., ty r+ ). Using (.), we may interpret R (r) G (t)/r,0 as the generating function Z e r 0,0 (ty) for paths on G r with the weights (.), say for k = 0. In other words, R,n /R,0 is the partition function for weighted paths of n steps on G r starting and ending at the origin (or starting at (0,0) and ending at (n,0) in the two-dimensional representation). Comparing the determinant formula for R α,n (.) and the LGV formula (.) for families of α non-intersecting paths, we have [] Lemma.. The quantity R α,n /(R,0 ) α is the partition function ZG e r s,e for α non-intersecting weighted paths on G r with starting and ending points s i = (i,0), e i = (n + α i,0), i =,,...,α. Proof. It is clear that ZG e r s i,e j is the partition function for paths from (i,0) to (n+α j,0), which is equal to that from (0,0) to ((n + α + i j),0) by translational invariance. This allows to identify the two determinants (.) and (.), up to an overall factor of (R,0 ) α, and the result follows. As an illustration, we have represented in Figure the six pairs of non-intersecting paths contributing to R,, solution of the A Q-system. Thus, we have proved

PHILIPPE DI FRANCESCO AND RINAT KEDEM t y t y t y t y t y r r+ G r... t y t y t y r r+ r Figure. The graph G r, with r+ vertices. We have indicated the weights attached to each oriented edge. Theorem.. The variables R α,n which satisfy (.), when expressed in terms of the variables x 0, are equal to (R,0 ) α times partition functions for paths on the graph G r, involving only the weights y α of (.). These weights are explicit Laurent monomials of the initial data x 0 = (R α,0,r α, ) α Ir. This gives an explicit expression for R α,n as Laurent polynomials of the initial data, with non-negative integer coefficients... An alternative path formulation. In the same spirit as Remark.., one can show (see below) that the solution R,n of the A r Q-system may also be interpreted in terms of paths on a new ( compactified ) graph G r of figure. This is a graph with r + vertices, labelled,,...,r +, connected via oriented edges i i +, i + i i =,,...,r and loops i i, i =,,...,r +. To each edge is attached a weight as follows: (.) wt(i i + ) =, wt(i + i) = ty i, wt(i i) = ty i. The corresponding transfer matrix encoding these weights is an (r + ) (r + )-matrix of the form ty ty 0 0 ty ty 0. 0 ty ty 0.. (.) T................ =.................. 0 ty r ty r 0. 0 ty r ty r 0 0 ty r+ Then we have (.8) R (r) (t) R,0 = + t ty t y ty t ty t y y y... y ty r t r ty r+ = + t R, R,0 ( (I T ) ),

Q-SYSTEMS, PATHS AND TOTAL POSITIVITY This is readily proved by Gaussian elimination. Comparing this expression to the results of the previous section, we conclude that Lemma.. For n 0, R,n+ /R, is the partition function for paths on the weighted graph G r, with a total of n steps along the edges of type i i or i+ i in G r, starting and ending at vertex. The weights are given in Equation (.) with y i as in (.) with k = 0. In Section we will relate this result to the total positivity conjecture of Fomin and Zelevinsky and networks. We may actually write an explicit expression for R,n by simply expanding the continued fraction (.8) as: (.9) ( r ( ) R (r) (t) = R,0 + ty (ty l+ ) p l+ (ty l+ ) p pl + p l+ l+ + p l+ ) p,p,...,p r+ 0 p 0 =p r+ =0 l=0 p l,p l+ Substituting the values (.) for the weights y α y α,0, and extracting the coefficient of t n+, we get for all n 0: r (R i,0 ) p i++p i+ p i p i r ( ) pl + p l+ + p l+ R,n+ = R, (R i, ) p i++p i p i p i p l,p l+ p,p,...,p r+ 0 p 0 =p r+ =0, Σp i =n i= as explicit positive Laurent polynomials of the initial data. This gives a rank-r generalization of the formula given in [] for r =.. Cluster Algebra formulation: mutations and paths for the A r Q-system In this section, we show that the solutions {R α,n α I r,n Z} of the Q-system are positive Laurent polynomials when expressed as functions of an arbitrary set initial conditions. This generalizes our result for the initial condition x 0 in the previous section. The recursion relation (.) has a solution once a certain set of initial conditions is specified, but this set need not necessarily be the set x 0. We will explain below that the most general possible choice of initial conditions is specified by a Motzkin path of length r. The solutions of (.) can be viewed as cluster variables in the A r Q-system cluster algebra defined in []. Hence, our proof provides a general confirmation of the conjecture of [9] for this particular cluster algebra: When the cluster variables are expressed as functions of the variables in any other cluster (i.e. an arbitrary set of initial conditions), they are Laurent polynomials with non-negative coefficients. The results of this sections were explained in detailed in [], and this section should serve as a summary of the proofs contained therein... The Q-system as Cluster Algebra. In [], it was shown that the A r Q-system solutions {R α,n } may be viewed as a subset of the cluster variables of the A n Q-system cluster algebra. In this language, each cluster is a vector with r variables, and the subset of clusters relevant to the Q-system are those which have entries made up entirely of solutions to the l=0

8 PHILIPPE DI FRANCESCO AND RINAT KEDEM Q-system. These clusters are all related by cluster mutations which are one of the relations (.). Because of the form of Equation (.), it is easy to see that when considering the clusters corresponding to the Q-system, it is sufficient to consider clusters which are are characterized by a set of r integers (m,...,m r ), subject to the condition that m α m α+. This defines what is known as a Motzkin path. Definition.. The cluster x m corresponding to this set of integers m = (m,...,m r ) is the vector of r variables {R α,mα,r α,mα+} α Ir, ordered so that all variables with an even second index appear first. For example, x 0 corresponds to the Motzkin path m = (0,0,...,0), and x 0 = (R,0,...,R r,0,r,,...,r r, ). For any m, x m is obtained from the fundamental initial seed x 0 by mutations of the cluster algebra. This is just saying that one gets x m by repeated selected applications of the recursion relation (.) to x 0. Each mutation changes only one of the cluster variables. That is, for some α and n, R α,n R α,n+ = R α,n+ +R α+,n+r α,n+ R α,n R α,n = R α,n +R α+,n R α,n R α,n (forward mutation at α); (backward mutation at α). Alternatively, the mutation changes the Motzkin path which characterizes x m, by changing m m ± ǫ α, with the plus (minus) sign for a forward (backward) mutation. Here, ǫ α is the vector which is zero except for the entry α, which is equal to. The Laurent property of cluster algebras ensures that every cluster variable is a Laurent polynomial of the cluster variables of any other cluster in the algebra. The positivity property, proved only in particular cases so far, is that these Laurent polynomials have non-negative integer coefficients. The property was proved in the present case in []. It may be stated as follows: Theorem. ([]). Each R α,n, when expressed as a function of the seed x m for any Motzkin path m, is a Laurent polynomial of {R α,mα,r α,mα+ α I r }, with non-negative integer coefficients. We outline the proof below. For clarity let us introduce the following notation. Let F be some cluster variable. Then F can be expressed as a function of x m for any m. The functional form is then denoted by F = F m (x m ). Since F can also be expressed as a function of any other cluster, we can write F m (x m ) = F m (x m ) for any two Motzkin paths m,m. In particular, in the notation of the previous section, we have R (r) (t) = R (r) m 0 (t;x 0 )... Target graphs and weights. Due to the reflection and translation symmetries of the Q- system, we can restrict our attention to seeds associated with Motzkin paths in a fundamental domain M r = {m min α (m α ) = 0}. There are r elements in M r. To each Motzkin path m M r, we associate a pair (Γ m, {y e (m)}), consisting of a rooted graph Γ m with oriented edges, and edge weights y e (m) along the edges e.

Q-SYSTEMS, PATHS AND TOTAL POSITIVITY 9 α 9 8 0 m 9 8 0 9 9 8 8 9, 9, 9 0 8, 8, 0 (a) (b) (c) Figure 8. The Motzkin path m = (,,,,,, 0, 0, ) for r = 9 (a) is decomposed into p = descending segments ()()()()(8)(9) (circled, red edges). The corresponding graph pieces Γ mi are indicated in (b). They are to be glued horizontally for flat transitions (green edges) and vertically for ascending ones (blue edges). The resulting graph Γ m is represented (c) with its vertex (black) and edge (red) labels.... Construction of the graph Γ m. The graph Γ m is constructed via the following sequence of steps (see Figure 8 for an illustration): () Decompose the Motzkin path m into maximal descending segments m i of length k i (i =,...,p). These are segments of the form m i = (m αi,m αi +,...,m αi+ ) with α i+ = α i + k i, where m αi +j = m αi j. Here, α = and α p+ = r. () The separation between two consecutive descending segments of the Motzkin path, m i and m i+ is either flat i.e. m αi+ = m αi+ or ascending i.e m αi+ = m αi+ +. () To each descending segment m i, associate a graph Γ mi, which is the graph G ki with additional, down-pointing edges a b for all a,b such that k i + a > b +. There are a total of k i (k i )/ extra oriented edges. () We glue the graphs Γ mi and Γ mi+ into a graph Γ mi Γ mi+ defined as follows (see Fig.8 for an illustration): (a) If the separation between m i and m i+ is flat, we identify vertex 0 of Γ mi+ with vertex k i + of Γ mi, and vertex of Γ mi+ with vertex k i + of Γ mi, while the connecting edges are identified. (b) If the separation is ascending, we reverse the role of vertices 0 and in the procedure above.

0 PHILIPPE DI FRANCESCO AND RINAT KEDEM The result of this procedure is the graph Γ m = Γ m Γ m Γ mp. Its root is the vertex 0 of Γ m. We label the vertices of the graph Γ m by the integers i with i {0,..., } and i with i {,..., }. We do this by labeling the vertices of Γ m from bottom to top, by shifting the labels of the subgraphs Γ mi so that no label is skipped nor repeated. The edges e pointing towards the root of Γ m are of two types: (i) The skeleton edges belonging to some G ki in the above construction; (ii) The extra, down-pointing edges added in the gluing procedure.... The weights on the graph Γ m. We label the r + skeleton edges of type (i) by α =,,...,r + from bottom to top (see the example in Figure 8), and the weights are denoted by y α (m). Weights assigned to edges pointing away from the root are all set to. Alternatively, we may label the down pointing skeleton edges by the pairs of vertices i + i or i i which they connect. The extra edges of type (ii) are also labeled by the pairs a b of vertices which they connect. All edge weights may be labeled by the label of the edge. The weights of the edges of type (ii) can be expressed in terms of the skeleton weights: b i<a (.) y a,b (m) = y i+,i(m) b<i<a y i,i(m) so that they obey the following intertwining condition (.) y a,b (m)y a,b (m) = y a,b (m)y a,b(m), (a > a > b > b ). For example, the extra weights of the example of Figure 8 read respectively: y, = y y /y, y 9, = y y /y, y 8, = y y 0 /y, and y 9, = y 9, y 8, /y = y y y 0 /(y y ). Finally, for a given Motzkin path m M r, we define the skeleton weights y α (m), α =,,...,r + to be: (.) (.) where λ α,mα y α (m) =, α =,,...,r + λ α,mα y α (m) = µ ( α+,m α+ δ mα,m µ α+ + + λ ) α+,m α+ δ mα,m α,mα λ α+ + α+,mα ( δ mα,m α+ + λ ) α,m α δ mα,m λ α+, α =,,...,r α,mα (.) λ α,n = R α,n+ R α,n, µ α,n = R α,n R α,n. Note that with these definitions the expressions (.)-(.) involve only variables of the seed x m. To each Motzkin path m M r, we may finally associate a transfer matrix T m T m (ty(m)), with entries (T m ) b,a = weight of the oriented edge a b on Γ m. Then the series in t (.) Z m (t;x m ) := ((I T m ) ) 0,0 = n t n Z Γm 0,0 (n)

Q-SYSTEMS, PATHS AND TOTAL POSITIVITY is the generating function for weighted paths on Γ m, with the coefficient of t n being the partition function of walks from vertex 0 to itself on Γ m which have n down-pointing steps. When m = m 0 = 0, this coincides with (.0)... Mutations, paths and continued fraction rearrangements. Our purpose is to write an explicit expression for the functional dependence of the variables R α,n on the seed variable x m, that is, find (R α,n ) m (x m ) for each α,n and a Motzkin path m. To do this, we will describe how the generating function R (r) (t) = R m (r) (t;x m ) is related to the generating function R (r) m (t;x m ), where m and m are related by a mutation. Then we start from the known function R m (r) 0 (t;x m0 ), and apply mutations to obtain all other functions R m (r) with m in the fundamental domain M r. One can cover the entire fundamental domain M r starting from m 0 = 0 by using only forward mutations m m = m+ǫ α of either type (i) (...,a,a,a+,...) (...,a,a+,a+,...) and (ii) (...,a,a,a,...) (...,a,a +,a,...), with the obvious truncations when α = or r. (See Remark 8. in [].) Suppose m and m are related by such a mutation. We compute the two generating functions of the type (.), Z m (t;x m ) and Z m (t;x m ). In fact, the two matrices, T m and T m differ only locally, so that in computing the two generating functions by row reduction, we find that the calculation differs only in a finite number of steps. Note that generating functions take the form of finite continued fractions with manifestly positive series expansions of t. We note two simple rearrangement lemmas which can be used to relate finite continued fractions: (.) (R ) a b = + a a b, (R ) a + b c = a, (where a = a + b, b = bc b a+b, c = ac a+b ). c One checks this by explicit calculation. Let α >. Then, using (R ) we can show that Z m (t;x m ) = Z m (t;x m ) if and only if the weights y i y i (m) and y i y i(m ) are related via: y α + y α, β = α (.8) (.9) (i) m α = m α < m α+ : y β = y α y α+ /(y α + y α ), (ii) m α = m α = m α+ : y β = β = α y α y α+ /(y α + y α ), β = α + y β otherwise. y α + y α, β = α ; y α y α+ /(y α + y α ), β = α; y α y α+ /(y α + y α ), β = α + ; y α+ y α /(y α + y α ), β = α + ; y β otherwise. One checks directly that the expressions (.)-(.) indeed satisfy the above relations. The boundary case, where α =, is treated analogously, but first requires a rerooting of the graph to its vertex, which is implemented by the application of (R ): Indeed, we simply write Z m (t;x m ) = ( (I T m ) ) 0,0 = + ty (m)z m(t;x m ) with Z m(t;x m ) = ( (I T m ) ),.

PHILIPPE DI FRANCESCO AND RINAT KEDEM G 0 0 0,, 0 0,, 0,,, H 0 0 0 Figure 9. The Motzkin paths m of the fundamental domain M and the associated graphs Γ m, with their vertex and edge labels. We have also indicated the mutations by arrows. We then rearrange Z m(t;x m ) using (R ) again, and find that Z m(t;x m ) = Z m (t;x m ) if and only if the weights are related via the above equations. The net result is the following. Given a compound mutation µ m which maps the fundamental Motzkin path m 0 to m = (m α ) α Ir, then there are exactly m rerootings as described above. This corresponds to rewriting the generating function (.0) m R m (r) (t;x m ) = t i R,i + t m R,m Z m (t;x m ) i=0 with Z m (t;x m ) as in Equation (.). This leads to the following main result: Theorem.. For each n 0, the function (R,n+m ) m (x m ) = R,m Z Γm 0,0 (n). Thus it is proportional to the generating function for weighted paths on the graph Γ m with positive weights, so it is a manifestly positive Laurent polynomial of the initial data x m.

Q-SYSTEMS, PATHS AND TOTAL POSITIVITY target up steps down steps path Figure 0. The two-dimensional representation of a typical path on the graph Γ m, m the strictly descending Motzkin path (,, 0) of the case A. Descents of h = are vertical (time displacement by h = 0), while descents of h = go back one step in time (time displacement by h = ). With these choices, the total time distance between start and end is twice the number of descents ( = 8 here). We have represented in Figure 9 the graphs Γ m for the Motzkin paths m of the fundamental domain M r for r =... Q-system solutions as strongly non-intersecting paths. To treat the case of R α,n with α, given a Motzkin path m M r, we need a path interpretation for the determinant formula for R α,n+m : (.) R α,n+m (R,m ) α = det(r,n+m +i+j α ) i,j α R,n+m ( = det Z Γm 0,0 ) i,j α (n + i + j α ). Here, we have used the result of the previous section to rewrite the formula in terms of the partition function for paths on Γ m, from and to the root, and with n + i + j α down steps. As in the standard LGV formula, we interpret this determinant as a certain partition function for paths on Γ m starting from the root at times 0,,,...,α and ending at the origin at times n,n +,...,n + α.... Paths on Γ m represented as paths on a square lattice. We draw paths, with allowed steps dictated by the graph Γ m, on a square-lattice in two dimensions. Paths start and end at y-coordinate 0. Moreover, if a path has n down steps (steps towards the vertex 0), then its