Creative Telescoping

67
Creative Telescoping Zeilberger’s Algorithm By Dylan Heeg Christopher Jordan Deanne Pieper Brent Serum

description

Creative Telescoping. Zeilberger’s Algorithm By Dylan Heeg Christopher Jordan Deanne Pieper Brent Serum. Introduction and Overview. Computerized Proofs and Combinatorial Identities By Deanne Pieper. - PowerPoint PPT Presentation

Transcript of Creative Telescoping

Page 1: Creative Telescoping

Creative TelescopingZeilberger’s Algorithm

ByDylan Heeg

Christopher JordanDeanne PieperBrent Serum

Page 2: Creative Telescoping

Introduction and OverviewComputerized Proofs

and Combinatorial Identities

ByDeanne Pieper

Page 3: Creative Telescoping

Some proofs are essentially computations. In particular, proofs of combinatorial identities are mostly computational. With computers, it has been possible to devise algorithms to do these computations and prove combinatorial identities.

Page 4: Creative Telescoping

What is a Combinatorial Identity?

Some examples of combinatorial identity are:

k

kn

nn

kn

kn

2

2

2

Or,

Page 5: Creative Telescoping

What is a Proper Hypergeometric Function?

kV

iiii

U

iiii

xwkvnu

ckbnaknPknF *

)!(

)!(),(),(

1

1

Where 1.) P(n,k) ~ Polynomial

2.) ai’s, bi’s, ui’s, vi’s, ci’s, wi’s are in z

3.) 0 u, v <

4.) x is indeterminate (i.e. a variable)

Page 6: Creative Telescoping

Proper Hypergeometric Function Example

)!13()!3(

131),(

kn

knkn

knF

Page 7: Creative Telescoping

Sister Celine’s Algorithm is used in solving definite hypergeometric summations.

While Gosper’s Algorithm solves indefinite hypergeometric summations.

Page 8: Creative Telescoping

A Review of Sister Celine’s Algorithm

Page 9: Creative Telescoping

Celine’s Theorem(The Fundamental Theorem)Suppose F(n,k) is proper hypergeometric. Then, F(n,k) satisfies a k-free recurrence relation of the form

for some I, J that are positive integers

I

i

J

jji ikjnfna

0 0, 0),()(

Page 10: Creative Telescoping

Moreover, there will be a particular pair (I*, J*) that will work with

1*)deg(1*

*

ss

ss

ss

ss

uaJPI

vbJ

Page 11: Creative Telescoping

I

i

J

jji ikjnfna

0 0, 0),()(

Holds that every point (n,k) where F(n,k) 0

and all the values of F that occur in it are well defined

Page 12: Creative Telescoping

A Review of Gosper’s Algorithm

Page 13: Creative Telescoping

Gosper’s Algorithm

Input:

Output: (if possible)

Steps: i) compute r(n) ii) Perform Gosper Factorization

}{ nt

nZ

)()1(

)()()(

ncnc

nbnanr

Page 14: Creative Telescoping

Gosper’s Algorithm

iii) Solve Gosper’s Polynomial Recurrence

iv) Return

v) Set

)()()1()1()( ncnxnbnxna

nn tnc

nxnbZ)(

)()1(

0ZZS nn

Page 15: Creative Telescoping

Zeilberger’s Creative Telescoping Algorithm

Page 16: Creative Telescoping

Zeilberger’s TheoremLet’s take a look at the theorem that this algorithm is based on.

Let F(n,k) be a proper hypergeometric term. Then F satisfies a nontrivial recurrence of the form

in which is a rational function of n and k.

J

jj knGknGkjnFna

0

),()1,(),()(

),(),(

knFknG

Page 17: Creative Telescoping

Zeilberger’s AlgorithmZeilberger’s Algorithm is a hybrid of Celine’s and Gosper’s Algorithms. They both play roles in the completion of the Creative Telescoping proof and example we will get to shortly….

Page 18: Creative Telescoping

A General Description….

The problem?

Strategy: find a Zeilberger Recurrence

n

knFnF ),(:

J

jj knGknGkjnFna

0

),()1,(),()(

Page 19: Creative Telescoping

Usual Assumptions

i) F(n,k) Proper Hypergeometric

ii) Rational in (n,k)),(),(

knFknG

Page 20: Creative Telescoping

The basic mechanicsLet

We’ll be applying Gosper’s algorithm to these tk’s.

),(...),(),()(:0

0

kJnFknFkjnFn aaat j

J

jjk

J

jj

J

jj

k

k

kjnFna

kjnFna

tt

0

01

),()(

)1,()(

Page 21: Creative Telescoping

Linear Recurrence Relations

A homogenous linear recurrence equation with constant coefficients is one of the form:

We use its Characteristic(auxillary) equation to solve it.

\

0...110

mmm ababa

0)(...)1()( 10 mnXanXanXa m

Page 22: Creative Telescoping

This equation will produce (possibly repeated or even complex) roots:

We now have two possible cases to consider.

mbbb ,...,, 21

Page 23: Creative Telescoping

Case 1In this case the general solution to the problem is then given by linear combinations of the form:

Where the C’s are arbitrary constants determined in practice by initial conditions of the terms X(0),…,X(m-1).

nmm

nn bCbCbCnX ...)( 2211

Page 24: Creative Telescoping

Case 2A root b of multiplicity k will contribute the k terms

to the general solution.

nknn bnnbb 1,...,,

Page 25: Creative Telescoping

The mechanics of Zeilberger’s Algorithm

Page 26: Creative Telescoping

General ObservationsProblem: to sum in closed form something of the form

Strategy: Find a Zeilberger recurrence. This is of the form:

k

knFnf ),(:)(

J

jj knGknGkjnFna

0

),()1,(),()(

Page 27: Creative Telescoping

General ObservationsOur unknowns in this recurrence are aj(n), J, and G(n,k).

We assume the following F(n,k) is proper hypergeometric is rational in n, k

),(),(

knFknG

Page 28: Creative Telescoping

MechanicsDefine

This means

J

jjk kjnFnat

0

),()(:

),(...),1(),( 10 kJnFaknFaknFat Jk

Page 29: Creative Telescoping

MechanicsNow define

If we multiply both the top and bottom by

J

jj

J

jj

k

k

kjnFna

kjnFna

ttkr

0

01

),()(

)1,()()(

),()1,(

knFknF

Page 30: Creative Telescoping

MechanicsWe get the equation

Which is equal to r(k)

),()1,(*

),(/),()(

)1,(/)1,()(

0

0

knFknF

knFkjnFna

knFkjnFna

J

jj

J

jj

Page 31: Creative Telescoping

MechanicsNote that is a rational function

If we write we know

that r1(n,k), r2(n,k) are polynomials

),()1,(

knFknF

),(),(

),()1,(

2

1

knrknr

knFknF

Page 32: Creative Telescoping

MechanicsSimilarly, we know that s1(n,k), s2(n,k) are polynomials when they are defined

),(),(

),1(),(

2

1

knskns

knFknF

Page 33: Creative Telescoping

MechanicsAlso note that we can rewriteas

Which is

),(),(

knFkjnF

),(),1(*...*

),2(),1(*

),1(),(

knFknF

kjnFkjnF

kjnFkjnF

1

0 ),1(),1(j

i kijnFkjnF

Page 34: Creative Telescoping

MechanicsUsing our s1 and s2 functions this can be written as

Which condenses to

),1(),1(*...*

),1(),1(*

),(),(

2

1

2

1

2

1

knskns

kjnskjns

kjnskjns

1

0 2

1

),(),(j

i kijnskijns

Page 35: Creative Telescoping

MechanicsNow our original can be written as

which is

k

k

tt 1

),(),(*

),(),()(

)1,()1,()(

2

1

0

1

0 2

1

0

1

0 2

1

knrknr

kijnskijnsna

kijnskijnsna

J

j

j

ij

J

j

j

ij

),(),(*

),(),()(

)1,()1,()(

2

1

0

1

0

0

1

0

knrknr

knFkjnFna

knFkjnFna

J

j

j

ij

J

j

j

ij

Page 36: Creative Telescoping

MechanicsNext we clear denominators. The LCD of this fraction is

Clearing denominators we get

1

0

1

022 ),()1,(

j

i

j

i

kijnskijns

J

i

J

iJ

j

j

i

J

ij

J

j

j

i

J

jij

kijnsknr

kijnsknr

kijnskijnsna

kijnskijnsna

022

021

0

1

0 021

0

1

021

)1,(),(

),(),(*

),(),()(

)1,()1,()(

Page 37: Creative Telescoping

MechanicsNow, we do some renaming of the parts of this fraction

The left hand side we call The top of the right is r(k) and the bottom of the right is s(k).

J

i

J

iJ

j

j

i

J

ij

J

j

j

i

J

jij

kijnsknr

kijnsknr

kijnskijnsna

kijnskijnsna

022

021

0

1

0 021

0

1

021

)1,(),(

),(),(*

),(),()(

)1,()1,()(

)()1(

0

0

kPkP

Page 38: Creative Telescoping

MechanicsSo now we have a simple expression fork

k

tt 1

)()1(*

)()(

0

01

kPkP

kskr

tt

k

k

Page 39: Creative Telescoping

Relation to Gosper’s Algorithm

If we treat as the r(n) from Gosper’s

algorithm we perform the Gosper factorization and obtain

Where for j=0,1,2,…

)()(

kskr

)()1(*

)()(

)()(

1

1

3

2

kPkP

kPkP

kskr

1))(),(gcd( 23 jkPkP

Page 40: Creative Telescoping

Relation to Gosper’s Algorithm

Substituting this into our previous equation for gives

k

k

tt 1

)()(*

)()()1()1(

3

2

10

101

kPkP

kPkPkPkP

tt

k

k

Page 41: Creative Telescoping

Relation to Gosper’s Algorithm

If we define

Then we get

This is a Gosper factorization of

)1()1(:)1( 10 kPkPkP)()(:)( 10 kPkPkP

)()1(*

)()(

3

21

kPkP

kPkP

tt

k

k

k

k

tt 1

Page 42: Creative Telescoping

Relation to Gosper’s Algorithm

We can now try to solve Gosper’s polynomial recurrence

for b(k).If there exists a polynomial solution for b(k) then can be summed

)()()1()1()( 32 kPkbkPkbkP

1n

kkt

Page 43: Creative Telescoping

Relation to Gosper’s Algorithm

The process of finding b(k) allows us to find the aj ’s. b(k) is never actually used in finding the hypergeometic sum.The b(k) can be used to find G(n,k) although the G(n,k) is also not used.

Page 44: Creative Telescoping

Finding G(n,k)First, define

This means

(compare with tk = Zk+1 - Zk from Gosper’s algorithm)

J

jjk knGknGjknFnat

0

),()1,(),()(:

),()1,(: knGknGtk

Page 45: Creative Telescoping

Finding G(n,k)Now let

Since G(n,k) has compact support over k this will just be

1

03

0 )()()1(m

kmmkm Zt

mPmbmPZZtS

mm tmP

mbmPS)(

)()1(3

Page 46: Creative Telescoping

Finding G(n,k)We can also write

Since G(n,m) has compact support over k, everything cancels out except for G(n,m). Thus

)1,(),(...)0,()1,()1,()0,(...

),()1,(11

mnGmnGnGnGnGnG

knGknGtSm

k

m

kkm

),( mnGSm

Page 47: Creative Telescoping

Finding G(n,k)So we can change the variable m back to k and combine our two formulas for Sm to get

ktkPkbkPknG

)()()1(),( 3

Page 48: Creative Telescoping

Finding J and f(n)In order to fully solve sums of the form

We need to know the unknowns. We will now go through the process of finding J and f(n). The aj(n)’s are found when solving for b(n).

J

jj knGknGkjnFna

0

),()1,(),()(

Page 49: Creative Telescoping

Finding UnknownsFirst, we must assume that has compact support in k for each n Thus if we sum our original equation over all k. We get

),( knG

J

jj jnfna

0

0)()(

Page 50: Creative Telescoping

Finding UnknownsNext, we must examine several possible cases for J. Case 1: J = 1 This means that Solving for f gives:

So

0)1()()()( 10 nfnanfna

)()(

)()1(

1

0

nana

nfnf

1

010 ))(/)(()0()(

n

j

jajafnf

Page 51: Creative Telescoping

Finding UnknownsCase 2: J > 1 but are constant.This means we have

Which can be solved.

Ji na 0)}({

)(...)1()()( 10 Jnfanfanfanf J

Page 52: Creative Telescoping

Finding UnknownsCase 3: J > 1 and are polynomials. Alternatively we can say that f(n) can be expressed as a finite linear combination of hypergeometric terms. When that is the case, we can use something called Petkovšek’s algorithm f(n).

Ji na 0)}({

Page 53: Creative Telescoping

Finding UnknownsWe can pick a J that is bigger than needed and find the correct answer. However the smaller J is the less work required to solve the problem. There are algorithms that give an upper bound on J but we do not explore them here.

Page 54: Creative Telescoping

IV. A Hand Example Implementing the Creative Telescoping Algorithm

2

),(

kn

knF

2

0

)(

K

k kn

nf

Using Creative Telescoping

Take:

Page 55: Creative Telescoping

),()1,(),()(0

knGknGkjnFnaJ

jj

Creative Telescoping Recurrence

),()1,()(2

0

knGknGk

jnna

J

jj

Then

2

0

)(

kjn

natJ

jjk

Page 56: Creative Telescoping

Next we guess J=1 and apply Gosper Theory

2

1

2

0

1

kn

akn

atk

2

1

2

01 11

1

kn

ak

natk

2

1

2

0

2

1

2

01

1

11

1

kn

akn

a

kn

ak

na

tt

k

k

Page 57: Creative Telescoping

2

1

2

0

2

1

2

01

)!1(!)!1(

)!(!!

)!()!1()!1(

)!1()!1(!

knkna

knkna

knkna

knkna

tt

k

k

2)!1()!1( knkLcd

21

20

21

201

)1()!1()1)(1(!)1()!1()1)((!

knaknknaknnaknknna

tt

k

k

Page 58: Creative Telescoping

22

12

0

221

201

)1()1()1()1()1()(

knaknaknnakna

tt

k

k

21

200 )1()()1( naknakP

21

200 )1()1()( naknakP

2)1()( knkr

2)1()( kks

Page 59: Creative Telescoping

)()(

)()1(

)()1(

0

0

kskr

kPkP

ktkt

Gosper Factorize

2

2

)1()1(

)()(

k

knkskr

11

)1()1(

2

2

k

kn1)(1 kP

22 )1()( knkP

23 )1()( kkP

Page 60: Creative Telescoping

Gosper Side Condition

1))(),(( 32 hkPkPGcd For h

,...}2,1,0{

Set )()()( 10 kPkPkP

1)1()1()( 21

200 naknakP

This gives the final Gosper Factorization:

2

2

21

20

21

20

)1()1(

)1()1()1()(

kkn

naknanakna

)()(

)()1(

)()1(

3

2

0

0

kPkP

kPkP

ktkt

Page 61: Creative Telescoping

Gosper Recurrence

Using the fact that if the Gosper Factorization of

)()1(

)()(

)()1(

kCkC

kBkA

ktkt

Then the Gosper Recurrence is:

)()()1()1()( ncnxnBnxnA

We get a Gosper Recurrence of:

)()()1()1()( 32 kPkbkPkbkP

Page 62: Creative Telescoping

Using the Method of Undetermined Coefficients for

kkb )(We get:

)1(3 n2

)12(20 na

11 na

Plug these values into the original Zeilberger’s Recurrence

Page 63: Creative Telescoping

The original recurrence

),()1,()(2

0

knGknGk

jnna

J

jj

),()1,(1

)()(2

1

2

0 knGknGk

nna

kn

na

),()1,(1

)1()12(222

knGknGk

nn

kn

n

Now sum both sides over k

Page 64: Creative Telescoping

0)1()1()()12(2 nfnnfn

)()12(2)1()1( nfnnfn

)1()()12(2)1(

n

nfnnf

We Know

6)1(3)2(2)0(2)1(

ffff

1)0( f

1)0( f

Page 65: Creative Telescoping

1

0 1

0

)()()0()(

n

j jajafnf

nn

jjn

j

21

)12(21

0

nn

nf2

)(

Page 66: Creative Telescoping

BibliographyPetkovsek, Marko, Herbert Wilf, Doron Zeilberger. A=B. Massachusetts: Addison Wesley, Reading, 1968.

Page 67: Creative Telescoping

We would like to thank everyone for coming and to Dr. D for everything he has done to help!