Lindström–Gessel–Viennot lemma explained

In mathematics, the Lindström–Gessel–Viennot lemma provides a way to count the number of tuples of non-intersecting lattice paths, or, more generally, paths on a directed graph. It was proved by Gessel–Viennot in 1985, based on previous work of Lindström published in 1973.

Statement

Let G be a locally finite directed acyclic graph. This means that each vertex has finite degree, and that G contains no directed cycles. Consider base vertices

A=\{a1,\ldots,an\}

and destination vertices

B=\{b1,\ldots,bn\}

, and also assign a weight

\omegae

to each directed edge e. These edge weights are assumed to belong to some commutative ring. For each directed path P between two vertices, let

\omega(P)

be the product of the weights of the edges of the path. For any two vertices a and b, write e(a,b) for the sum

e(a,b)=\sumP:\omega(P)

over all paths from a to b. This is well-defined if between any two points there are only finitely many paths; but even in the general case, this can be well-defined under some circumstances (such as all edge weights being pairwise distinct formal indeterminates, and

e(a,b)

being regarded as a formal power series). If one assigns the weight 1 to each edge, then e(a,b) counts the number of paths from a to b.

With this setup, write

M=\begin{pmatrix}e(a1,b1)&e(a1,b2)&&e(a1,bn)\e(a2,b1)&e(a2,b2)&&e(a2,bn)\\vdots&\vdots&\ddots&\vdots\e(an,b1)&e(an,b2)&&e(an,bn)\end{pmatrix}

.

An n-tuple of non-intersecting paths from A to B means an n-tuple (P1, ..., Pn) of paths in G with the following properties:

\sigma

of

\left\{1,2,...,n\right\}

such that, for every i, the path Pi is a path from

ai

to

b\sigma(i)

.

ij

, the paths Pi and Pj have no two vertices in common (not even endpoints).

Given such an n-tuple (P1, ..., Pn), we denote by

\sigma(P)

the permutation of

\sigma

from the first condition.

The Lindström–Gessel–Viennot lemma then states that the determinant of M is the signed sum over all n-tuples P = (P1, ..., Pn) of non-intersecting paths from A to B:

\det(M)=

\sum
(P1,\ldots,Pn)\colonA\toB

sign(\sigma(P))

n
\prod
i=1

\omega(Pi).

That is, the determinant of M counts the weights of all n-tuples of non-intersecting paths starting at A and ending at B, each affected with the sign of the corresponding permutation of

(1,2,\ldots,n)

, given by

Pi

taking

ai

to

b\sigma(i)

.

In particular, if the only permutation possible is the identity (i.e., every n-tuple of non-intersecting paths from A to B takes ai to bi for each i) and we take the weights to be 1, then det(M) is exactly the number of non-intersecting n-tuples of paths starting at A and ending at B.

Proof

To prove the Lindström–Gessel–Viennot lemma, we first introduce some notation.

An n-path from an n-tuple

(a1,a2,\ldots,an)

of vertices of G to an n-tuple

(b1,b2,\ldots,bn)

of vertices of G will mean an n-tuple

(P1,P2,\ldots,Pn)

of paths in G, with each

Pi

leading from

ai

to

bi

. This n-path will be called non-intersecting just in case the paths Pi and Pj have no two vertices in common (including endpoints) whenever

ij

. Otherwise, it will be called entangled.

Given an n-path

P=(P1,P2,\ldots,Pn)

, the weight

\omega(P)

of this n-path is defined as the product

\omega(P1)\omega(P2)\omega(Pn)

.

A twisted n-path from an n-tuple

(a1,a2,\ldots,an)

of vertices of G to an n-tuple

(b1,b2,\ldots,bn)

of vertices of G will mean an n-path from

(a1,a2,\ldots,an)

to

\left(b\sigma(1),b\sigma(2),\ldots,b\sigma(n)\right)

for some permutation

\sigma

in the symmetric group

Sn

. This permutation

\sigma

will be called the twist of this twisted n-path, and denoted by

\sigma(P)

(where P is the n-path). This, of course, generalises the notation

\sigma(P)

introduced before.

Recalling the definition of M, we can expand det M as a signed sum of permutations; thus we obtain

\begin{array}{rcl} \detM&=

&\sum
\sigma\inSn
n
sign(\sigma)\prod
i=1

e(ai,b\sigma(i))\\ &=

&\sum
\sigma\inSn
n
sign(\sigma)\prod
i=1
\sum
Pi:ai\tob\sigma(i)

\omega(Pi)\\ &=

&\sum
\sigma\inSn

sign(\sigma) \sum\{\omega(P):P~an~n-pathfrom~\left(a1,a2,\ldots,an\right)~to~\left(b\sigma(1),b\sigma(2),\ldots,b\sigma(n)\right)\}\\ &=&\sum\{sign(\sigma(P))\omega(P):P~atwisted~n-pathfrom~\left(a1,a2,\ldots,an\right)~to~\left(b1,b2,...,bn\right)\}\\ &=&\sum\{sign(\sigma(P))\omega(P):P~anon-intersectingtwisted~n-pathfrom~\left(a1,a2,\ldots,an\right)~to~\left(b1,b2,...,bn\right)\}\\ &&+\sum\{sign(\sigma(P))\omega(P):P~anentangledtwisted~n-pathfrom~\left(a1,a2,\ldots,an\right)~to~\left(b1,b2,...,bn\right)\}\\ &=

&\sum
(P1,\ldots,Pn)\colonA\toB

sign(\sigma(P))\omega(P)\\ &&+\underbrace{ \sum\{sign(\sigma(P))\omega(P):P~anentangledtwisted~n-pathfrom~\left(a1,a2,\ldots,an\right)~to~\left(b1,b2,...,bn\right)\}}=0?\\ \end{array}

It remains to show that the sum of

sign(\sigma(P))\omega(P)

over all entangled twisted n-paths vanishes. Let

l{E}

denote the set of entangled twisted n-paths. To establish this, we shall construct an involution

f:l{E}\longrightarrowl{E}

with the properties

\omega(f(P))=\omega(P)

and

sign(\sigma(f(P)))=-sign(\sigma(P))

for all

P\inl{E}

. Given such an involution, the rest-term

\sum\{sign(\sigma(P))\omega(P):P~anentangledtwisted~n-pathfrom~\left(a1,a2,\ldots,an\right)~to~\left(b1,b2,...,bn\right)\} = \sumP

} \mathrm(\sigma(P))\omega(P)

in the above sum reduces to 0, since its addends cancel each other out (namely, the addend corresponding to each

P\inl{E}

cancels the addend corresponding to

f(P)

).

Construction of the involution: The idea behind the definition of the involution

f

is to take choose two intersecting paths within an entangled path, and switch their tails after their point of intersection. There are in general several pairs of intersecting paths, which can also intersect several times; hence, a careful choice needs to be made. Let

P=\left(P1,P2,...,Pn\right)

be any entangled twisted n-path. Then

f(P)

is defined as follows. We call a vertex crowded if it belongs to at least two of the paths

P1,P2,...,Pn

. The fact that the graph is acyclic implies that this is equivalent to "appearing at least twice in all the paths".[1] Since P is entangled, there is at least one crowded vertex. We pick the smallest

i\in\{1,2,\ldots,n\}

such that

Pi

contains a crowded vertex. Then, we pick the first crowded vertex v on

Pi

("first" in sense of "encountered first when travelling along

Pi

"), and we pick the largest j such that v belongs to

Pj

. The crowdedness of v implies j > i. Write the two paths

Pi

and

Pj

as

\begin{array}{rcl} Pi&\equiv&ai=u0\tou1\tou2\ldotsu\alpha-1\to\overbrace{ u\alpha\tou\alpha+1\ldots\tour=b\sigma(i)}tail~i\\ Pj&\equiv&aj=v0\tov1\tov2\ldotsv\beta-1\to\underbrace{ v\beta\tov\beta+1\ldots\tovs=b\sigma(j)}tail~j\\ \end{array}

where

\sigma=\sigma(P)

, and where

\alpha

and

\beta

are chosen such that v is the

\alpha

-th vertex along

Pi

and the

\beta

-th vertex along

Pj

(that is,

v=u\alpha=v\beta

). We set

\alphaP=\alpha

and

\betaP=\beta

and

iP=i

and

jP=j

. Now define the twisted n-path

f(P)

to coincide with

P

except for components

i

and

j

, which are replaced by

\begin{array}{rcl} P'i&\equiv&ai=u0\tou1\tou2\ldotsu\alpha-1\to\overbrace{

v
\betaP

\to

v
\betaP+1

\ldots\tovs=b\sigma(j)}tail~j\\ P'j&\equiv&aj=v0\tov1\tov2\ldotsv\beta-1\to\underbrace{

u
\alphaP

\to

u
\alphaP+1

\ldots\tour=b\sigma(i)}tail~i\\ \end{array}

It is immediately clear that

f(P)

is an entangled twisted n-path. Going through the steps of the construction, it is easy to see that

if(P)=iP

,

jf(P)=jP

and furthermore that

\alphaf(P)=\alphaP

and

\betaf(P)=\betaP

, so that applying

f

again to

f(P)

involves swapping back the tails of

f(P)i,f(P)j

and leaving the other components intact. Hence

f(f(P))=P

. Thus

f

is an involution. It remains to demonstrate the desired antisymmetry properties:

From the construction one can see that

\sigma(f(P))

coincides with

\sigma=\sigma(P)

except that it swaps

\sigma(i)

and

\sigma(j)

, thus yielding

sign(\sigma(f(P)))=-sign(\sigma(P))

. To show that

\omega(f(P))=\omega(P)

we first compute, appealing to the tail-swap

\begin{array}{rcl} \omega(P'i)\omega(P'j) &=

\alpha-1
&\left(\prod
t=0

\omega(ut,ut+1)

s-1
\prod
t=\beta

\omega(vt,vt+1)\right)

\beta-1
\left(\prod
t=0

\omega(vt,vt+1)

r-1
\prod
t=\alpha

\omega(ut,ut+1)\right)\\ &=

r-1
&\prod
t=0

\omega(ut,ut+1

s-1
)\prod
t=0

\omega(vt,vt+1)\\ &=&\omega(Pi)\omega(Pj).\\ \end{array}

Hence

n
\omega(f(P))=\prod
k=1

\omega(f(P)k

n
)=\prod
k=1,~ki,j

\omega(Pk)\omega(P'i)\omega(P'j

n
)=\prod
k=1,~ki,j

\omega(Pk)\omega(Pi)\omega(Pj

n
)=\prod
k=1

\omega(Pk)=\omega(P)

.

Thus we have found an involution with the desired properties and completed the proof of the Lindström–Gessel–Viennot lemma.

Remark. Arguments similar to the one above appear in several sources, with variations regarding the choice of which tails to switch. A version with j smallest (unequal to i) rather than largest appears in the Gessel-Viennot 1989 reference (proof of Theorem 1).

Applications

Schur polynomials

The Lindström–Gessel–Viennot lemma can be used to prove the equivalence of the following two different definitions of Schur polynomials. Given a partition

λ=λ1++λr

of n, the Schur polynomial

sλ(x1,\ldots,xn)

can be defined as:

sλ(x1,\ldots,xn)=\sumTw(T),

where the sum is over all semistandard Young tableaux T of shape λ, and the weight of a tableau T is defined as the monomial obtained by taking the product of the xi indexed by the entries i of T. For instance, the weight of the tableauis

x1x3

3
x
4

x5x6x7

.

sλ(x1,\ldots,xn)=\det\left(

(h
λi+j-i
r x r
)
i,j

\right),

where hi are the complete homogeneous symmetric polynomials (with hi understood to be 0 if i is negative). For instance, for the partition (3,2,2,1), the corresponding determinant is

s(3,2,2,1)=\begin{vmatrix}h3&h4&h5&h6\h1&h2&h3&h4\ 1&h1&h2&h3\ 0&0&1&h1\end{vmatrix}.

To prove the equivalence, given any partition λ as above, one considers the r starting points

ai=(r+1-i,1)

and the r ending points

bi=(λi+r+1-i,n)

, as points in the lattice

Z2

, which acquires the structure of a directed graph by asserting that the only allowed directions are going one to the right or one up; the weight associated to any horizontal edge at height i is xi, and the weight associated to a vertical edge is 1. With this definition, r-tuples of paths from A to B are exactly semistandard Young tableaux of shape λ, and the weight of such an r-tuple is the corresponding summand in the first definition of the Schur polynomials. For instance, with the tableau,one gets the corresponding 4-tuple

On the other hand, the matrix M is exactly the matrix written above for D. This shows the required equivalence. (See also §4.5 in Sagan's book, or the First Proof of Theorem 7.16.1 in Stanley's EC2, or §3.3 in Fulmek's arXiv preprint, or §9.13 in Martin's lecture notes, for slight variations on this argument.)

The Cauchy–Binet formula

One can also use the Lindström–Gessel–Viennot lemma to prove the Cauchy–Binet formula, and in particular the multiplicativity of the determinant.

Generalizations

Talaska's formula

The acyclicity of G is an essential assumption in the Lindström–Gessel–Viennot lemma; it guarantees (in reasonable situations) that the sums

e(a,b)

are well-defined, and it advects into the proof (if G is not acyclic, then f might transform a self-intersection of a path into an intersection of two distinct paths, which breaks the argument that f is an involution). Nevertheless, Kelli Talaska's 2012 paper establishes a formula generalizing the lemma to arbitrary digraphs. The sums

e(a,b)

are replaced by formal power series, and the sum over nonintersecting path tuples now becomes a sum over collections of nonintersecting and non-self-intersecting paths and cycles, divided by a sum over collections of nonintersecting cycles. The reader is referred to Talaska's paper for details.

See also

Notes and References

  1. If the graph was not acyclic, the "crowdedness" might change after applying

    f

    ; this proof would not work, and the lemma would actually become totally false.