Algorithmic Tools for the Asymptotics of Diagonals

Similar documents
Diagonals: Combinatorics, Asymptotics and Computer Algebra

Algorithmic Tools for the Asymptotics of Linear Recurrences

Algorithmic Tools for the Asymptotics of Linear Recurrences

Symbolic-Numeric Tools for Multivariate Asymptotics

Linear Differential Equations as a Data-Structure

Diagonals and Walks. Alin Bostan 1 Louis Dumont 1 Bruno Salvy 2. November 4, Introduction Diagonals Walks. 1 INRIA, SpecFun.

1. Find the Taylor series expansion about 0 of the following functions:

Efficient Experimental Mathematics for Lattice Path Combinatorics

Fast Computation of the Nth Term of an Algebraic Series over a Finite Prime Field

Power series solutions for 2nd order linear ODE s (not necessarily with constant coefficients) a n z n. n=0

Lucas Congruences. A(n) = Pure Mathematics Seminar University of South Alabama. Armin Straub Oct 16, 2015 University of South Alabama.

On (Effective) Analytic Combinatorics

Closed Form Solutions

Multiple binomial sums

Math 2 Variable Manipulation Part 2 Powers & Roots PROPERTIES OF EXPONENTS:

1 Assignment 1: Nonlinear dynamics (due September

Philippe Flajolet and Symbolic Computation

LECTURE 5, FRIDAY

Series Solutions. 8.1 Taylor Polynomials

Congruent Numbers, Elliptic Curves, and Elliptic Functions

Solving Differential Equations Using Power Series

Solving Differential Equations Using Power Series

Closed Form Solutions

Review of Power Series

Solutions for Problem Set #5 due October 17, 2003 Dustin Cartwright and Dylan Thurston

Here are brief notes about topics covered in class on complex numbers, focusing on what is not covered in the textbook.

Linear differential and recurrence equations viewed as data-structures

Math Homework 2

Local Parametrization and Puiseux Expansion

Cookie Monster Meets the Fibonacci Numbers. Mmmmmm Theorems!

On the Complexity of Gröbner Basis Computation for Regular and Semi-Regular Systems

Singularity analysis via the iterated kernel method

On Recurrences for Ising Integrals

Cookie Monster Meets the Fibonacci Numbers. Mmmmmm Theorems!

3. Generating Functions

Computing Monodromy Groups Defined by Plane Algebraic Curves. Adrien Poteaux

Cookie Monster Meets the Fibonacci Numbers. Mmmmmm Theorems!

From Fibonacci Numbers to Central Limit Type Theorems

Series Solution of Linear Ordinary Differential Equations

Considering our result for the sum and product of analytic functions, this means that for (a 0, a 1,..., a N ) C N+1, the polynomial.

Math 185 Fall 2015, Sample Final Exam Solutions

On the singularities of non-linear ODEs

4. Complex Analysis, Rational and Meromorphic Asymptotics

Automatisches Beweisen von Identitäten

Crew of25 Men Start Monday On Showboat. Many Permanent Improvements To Be Made;Project Under WPA

Qualifying Exams I, 2014 Spring

Cookie Monster Meets the Fibonacci Numbers. Mmmmmm Theorems!

Section 1.1 Notes. Real Numbers

TEST CODE: MMA (Objective type) 2015 SYLLABUS

MAT1300 Final Review. Pieter Hofstra. December 4, 2009

On rational approximation of algebraic functions. Julius Borcea. Rikard Bøgvad & Boris Shapiro

are the q-versions of n, n! and . The falling factorial is (x) k = x(x 1)(x 2)... (x k + 1).

Complex Analysis Slide 9: Power Series

Congruences for algebraic sequences

Chapter 11 - Sequences and Series

7 Asymptotics for Meromorphic Functions

arxiv: v1 [cs.sc] 15 Oct 2015

Chapter 11. Taylor Series. Josef Leydold Mathematical Methods WS 2018/19 11 Taylor Series 1 / 27

GENERATING FUNCTIONS AND CENTRAL LIMIT THEOREMS

Introduction to Techniques for Counting

Polynomials over finite fields. Algorithms and Randomness

An example of generalization of the Bernoulli numbers and polynomials to any dimension

P.1. Real Numbers. Copyright 2011 Pearson, Inc.

A Sumudu based algorithm for solving differential equations

n(n 1) = (n + 1)n(n 1)/ ( 1) n(n 1)(n 2) = (n + 1)n(n 1)(n 2)/4

Combinatorial/probabilistic analysis of a class of search-tree functionals

Mathematics 222a Quiz 2 CODE 111 November 21, 2002

Department of Mathematics, University of California, Berkeley. GRADUATE PRELIMINARY EXAMINATION, Part A Spring Semester 2015

2x (x 2 + y 2 + 1) 2 2y. (x 2 + y 2 + 1) 4. 4xy. (1, 1)(x 1) + (1, 1)(y + 1) (1, 1)(x 1)(y + 1) 81 x y y + 7.

MATH 452. SAMPLE 3 SOLUTIONS May 3, (10 pts) Let f(x + iy) = u(x, y) + iv(x, y) be an analytic function. Show that u(x, y) is harmonic.

Math Assignment 11

Is Analysis Necessary?

2.1 Affine and Projective Coordinates

Math 259: Introduction to Analytic Number Theory Functions of finite order: product formula and logarithmic derivative

Math 259: Introduction to Analytic Number Theory Functions of finite order: product formula and logarithmic derivative

Problem 1A. Suppose that f is a continuous real function on [0, 1]. Prove that

Bon anniversaire Marc!

Lattice paths with catastrophes

Algebra 1 Correlation of the ALEKS course Algebra 1 to the Washington Algebra 1 Standards

PUTNAM TRAINING POLYNOMIALS. Exercises 1. Find a polynomial with integral coefficients whose zeros include

FINAL REVIEW Answers and hints Math 311 Fall 2017

Taylor Expansions with Finite Radius of Convergence Work of Robert Jentzsch, 1917

Contents. 2 Partial Derivatives. 2.1 Limits and Continuity. Calculus III (part 2): Partial Derivatives (by Evan Dummit, 2017, v. 2.

Series of Error Terms for Rational Approximations of Irrational Numbers

Local and global finite branching of solutions of ODEs in the complex plane

Diagonals of rational functions, pullbacked 2 F 1 hypergeometric functions and modular forms (unabrigded version)

On the Sequence A and Its Combinatorial Interpretations

Fourth Week: Lectures 10-12

Local properties of plane algebraic curves

Computing Limits of Real Multivariate Rational Functions

Power Series Solutions for Ordinary Differential Equations

5. Analytic Combinatorics

MA094 Part 2 - Beginning Algebra Summary

Part 2 - Beginning Algebra Summary

Range: y-values - output read y's from bottom to top (smallest to largest)

Networks: Lectures 9 & 10 Random graphs

Real Numbers. Real numbers are divided into two types, rational numbers and irrational numbers

Mahler measure as special values of L-functions

Lecture 32: Taylor Series and McLaurin series We saw last day that some functions are equal to a power series on part of their domain.

Last Update: March 1 2, 201 0

Transcription:

Algorithmic Tools for the Asymptotics of Diagonals Bruno Salvy Inria & ENS de Lyon Lattice walks at the Interface of Algebra, Analysis and Combinatorics September 19, 2017

Asymptotics & Univariate Generating Functions counts the number of objects of size n (a n ) 7! A(z) := X n 0 a n z n captures some structure (a n ) P-recursive A(z) D-finite p 0 (n)a n+k + + p k (n)a n =0 q 0 (z)a (`) (z)+ + q`(z)a(z) =0 1. Possible exponential growth (a n n, 6= 0) root of the characteristic polynomial of the leading coeff of the recurrence wrt n q 0 (1/ ) =0 2. Possible sub-exponential growth (a n c n (n), (n + 1) (n)! 1) a basis can be computed and then c approximated Qu.: How can we get,,c? and how fast? 1/25

Univariate Generating Functions D-FINITE Aim: asymptotics of the coefficients, automatically. DIAGONAL ALGEBRAIC RATIONAL Def diagonal: later. 2/25

I. A Quick Review of Analytic Combinatorics in One Variable Principle: Dominant singularity exponential behaviour local behaviour subexponential terms

Coefficients of Rational Functions F 1 =1= 1 2 i I 1 dz 1 z z 2 z 2 a n = 1 2 i Z f(z) z n+1 dz = = As n increases, the smallest singularities dominate. F n = n 1 1+2 + n 1 1+2 3/25

Conway s sequence 1,11,21,1211,111221, Generating function for lengths: f(z)=p(z)/q(z) with deg Q=72. Smallest singularity: δ(f) 0.7671198507 ρ=1/δ(f) 1.30357727 l n 2.04216 ρ n Fast univariate resolution: Sagraloff-Mehlhorn16 ρ Res(f,δ(f)) remainder exponentially small 4/25

Singularity Analysis Ex: Rational Functions A 3-Step Method: 1. Locate dominant singularities a. singularities; b. dominant ones 2. Compute local behaviour 3. Translate into asymptotics (1 z) log k 1 1 z 7! n 1 ( ) logk n, ( 62 N? ) 17z 3 9z 2 7z +8 1. Numerical resolution with sufficient precision + algebraic manipulations 2. Local expansion (easy). 3. Easy. Useful property [Pringsheim Borel] a n 0 for all n real positive dominant singularity. 5/25

Algebraic Generating Functions P (z, y(z)) = 0 1a. Location of possible singularities Implicit Function Theorem: @P P (z, y(z)) = (z, y(z)) = 0 @y Numerical resolution with sufficient precision + algebraic manipulations 1b. Analytic continuation finds the dominant ones: not so easy [FlSe NoteVII.36]. 2. Local behaviour (Puiseux): (1 z), ( 2 Q) 3. Translation: easy. 6/25

Differentially-Finite Generating Functions a n (z)y (n) (z)+ + a 0 (z)y(z) =0, a i polynomials 1a. Location of possible singularities. Cauchy-Lipshitz Theorem: 1b. Analytic continuation finds the dominant ones: only numerical in general. Sage code exists [Mezzarobba2016]. 2. Local behaviour at regular singular points: 3. Translation: easy. a n (z) =0 (1 z) log k 1, ( 2 Q,k 2 N) 1 z Numerical resolution with sufficient precision + algebraic manipulations 7/25

Example: Apéry s Sequences a n = nx k=0 2 2 n n + k X n, b n = a n k k k=1 1 n k 3 + X k=1 kx m=1 ( 1) m n 2m 3 k n m 2 n+k k n+m m 2 and c n = b n (3)a n have generating functions that satisfy vanishes at 0, = 17 12 p = 17 + 12 p 2 ' 0.03, 2 ' 34. z 2 (z 2 34z + 1)y 000 + +(z 5)y =0 In the neighborhood of, all solutions behave like analytic µ p z(1 + ( z)analytic). Mezzarobba s code gives µ a ' 4.55, µ b ' 5.46, µ c ' 0. Slightly more work gives µ c =0, then c n and eventually, a proof that (3) is irrational. n [Apéry1978] 8/25

II. Diagonals

If F (z) = G(z) H(z) its diagonal is Definition is a multivariate rational function with Taylor expansion F (z) = X i2n n c i z i, F (t) = X k2n c k,k,...,k t k. in this talk 1 k +1 2k k 2k k : : 1 1 x y =1+x + y +2xy + x2 + y 2 + +6x 2 y 2 + 1 2x (1 x y)(1 x) =1+y+1xy x2 +y 2 + +2x 2 y 2 + Apéry s a k : 1 1 t(1 + x)(1 + y)(1 + z)(1 + y + z + yz + xyz) =1+ +5xyzt + 9/25

Diagonals & Multiple Binomial Sums Ex. S n = X r 0 X n ( 1) n+r+s r s 0 n s n + s n + r 2n r s s r n Thm. Diagonals binomial sums with 1 free index. > BinomSums[sumtores](S,u): ( ) defined properly 1 1 t(1 + u 1 )(1 + u 2 )(1 u 1 u 3 )(1 u 2 u 3 ) has for diagonal the generating function of S n [Bostan-Lairez-S.17] 10/25

Multiple Binomial Sums over a field K Sequences constructed from - Kronecker s : n 7! n ; - geometric sequences n 7! C n, C 2 K; - the binomial sequence (n, k) 7! n k ; using algebra operations and - affine changes of indices (u n ) 7! (u (n) ); - indefinite summation (u n,k ) 7! mx k=0 u n,k!. 10 /25

Diagonals are Differentially Finite [Christol84,Lipshitz88] a n (z)y (n) (z)+ + a 0 (z)y(z) =0, Thm. If F has degree d in n variables, ΔF satisfies a LDE with order d n, coeffs of degree d O(n). + algo in ops. Õ(d 8n ) ad-finite i diag. alg. rat. Compares well with creative telescoping when both apply. asymptotics from that LDE Christol s conjecture: All differentially finite power series with integer coefficients and radius of convergence in (0, ) are diagonals. [Bostan-Lairez-S.13,Lairez16] 11/25

Asymptotics Thm. [Katz70,André00,Garoufalidis09] a 0 +a 1 z+ D-finite, a i in z, radius in (0, ), then its singular points are regular with rational exponents X a n n n log k 1 (n) f,,k. n (,,k)2 finite set in Q Q N Ex. The number a n of walks from the origin taking n steps {N,S,E,W,NW} and staying in the first quadrant behaves like C n n with 62 Q not D-finite. = 1+ [Bostan-Raschel-S.14] arccos(u), 8u3 8u 2 +6u 1=0, u > 0. 12/25

Bivariate Diagonals are Algebraic [Pólya21,Furstenberg67] D-finite diag. alg. = diag 2 [Bostan-Dumont-S.17] rat. Thm. F=A(x,y)/B(x,y), deg d in x and y, then ΔF cancels a polynomial of degree 4 d in y and t. x satisfies 1 x 2 y 3 3125 t 6 108 3 y 10 + 81 3125 t 6 108 2 y 8 + 50t 3 3125 t 6 108 2 y 7 + 6834375 t 6 236196 y 6 t 3 34375 t 6 3888 3125 t 6 108 y 5 + 7812500 t 12 + 270000 t 6 + 19683 y 4 54 t 3 6250 t 6 891 y 3 + 50 t 6 21875 t 6 2106 y 2 t 3 50 t 2 +9 2500 t 4 450 t 2 + 81 y t 6 3125 t 6 1458 =0 + quasi-optimal algorithm. the differential equation is often better. 13/25

III. Analytic Combinatorics in Several Variables, with Computer Algebra Here, we restrict to rational diagonals and simple cases

Starting Point: Cauchy s Formula If f = X i 1,...,i n 0 c i1,...,i z i 1 n 1 z i n n neighborhood of 0, then is convergent in the c i1,...,i n = 1 2 i n Z T f(z 1,...,z n ) dz 1 dz n z i 1+1 z i n+1 1 n for any sufficiently small torus T ( z j = re i j ) around 0. Asymptotics: deform the torus to pass where the integral concentrates asymptotically. 14/25

Coefficients of Diagonals F (z) = G(z) H(z) c k,...,k = 1 2 i n Z T G(z) H(z) dz 1 dz n (z 1 z n ) k+1 rank Critical points: minimize z 1 z n on V = {z H(z) =0} @H @H @z 1... @(z 1 z n ) @z 1... @z n @(z 1 z n ) @z n Minimal ones: on the boundary of the domain of convergence of F (z).! apple 1 i.e. z 1 @H @z 1 = = z n @H @z n A 3-step method 1a. locate the critical points (algebraic condition); 1b. find the minimal ones (semi-algebraic condition); 2. translate (easy in simple cases). 15/25

Ex.: Central Binomial Coefficients 2k k : 1 1 x y =1+x + y +2xy + x2 + y 2 + +6x 2 y 2 + (1). Critical points: 1 x y =0,x= y =) x = y =1/2. (2). Minimal ones. Easy. In general, this is the difficult step. (3). Analysis close to the minimal critical point: a k = 1 ZZ (2 i) 2 Z 4k+1 2 i 1 1 x y dx dy (xy) k+1 1 2 i exp(4(k + 1)(x 1/2) 2 ) dx 4k p k. Z dx (x(1 x)) k+1 residue saddle-point approx 16/25

Kronecker Representation for the Critical Points Algebraic part: ``compute the solutions of the system H(z) =0 z 1 @H @z 1 = = z n @H @z n If Under genericity assumptions, a probabilistic algorithm running in bit ops finds: History and Background: see Castro, Pardo, Hägele, and Morais (2001) [Giusti-Lecerf-S.01;Schost02;SafeySchost16] System reduced to a univariate polynomial. 17/25

Example (Lattice Path Model) The number of walks from the origin taking steps {NW,NE,SE,SW} and staying in the first quadrant is F, F (x, y, t) = (1 + x)(1 + y) 1 t(1 + x 2 + y 2 + x 2 y 2 ) Kronecker representation of the critical points: P (u) =4u 4 + 52u 3 4339u 2 + 9338u + 403920 Q x (u) = 336u 2 + 344u 105898 Q y (u) = 160u 2 + 2824u 48982 Q t (u) =4u 3 + 39u 2 4339u/2 + 4669/2 ie, they are given by: P (u) =0, x = Q x(u) P 0 (u), y = Q y(u) P 0 (u), t = Q t(u) P 0 (u) Which one of these 4 is minimal? 18/25

Testing Minimality Def. F(z 1,,z n ) is combinatorial if every coefficient is 0. Prop. [PemantleWilson] In the combinatorial case, one of the minimal critical points has positive real coordinates. Thus, we add the equation for a new variable and select the positive real point(s) z with no from a new Kronecker representation: P (v) =0 P 0 (v)z 1 Q 1 (v) =0 P 0 (v)z n Q n (v) =0 P 0 (v)t Q t (v) =0.. This is done numerically, with enough precision. 19/25

Example F = 1 H = 1 (1 x y)(20 x 40y) 1 Critical point equation x @H @x = y @H @y : x(2x + 41y 21) = y(41x + 80y 60) 4 critical points, 2 of which are real: (x 1,y 1 )=(0.2528, 9.9971), (x 2,y 2 )=(0.30998, 0.54823) Add H(tx, ty) =0and compute a Kronecker representation: P (u) =0, x = Q x(u) P 0 (u), y = Q y(u) P 0 (u), Solve numerically and keep the real positive sols: t = Q t(u) P 0 (u) (0.31, 0.55, 0.99), (0.31, 0.55, 1.71), (0.25, 9.99, 0.09), (0.25, 0.99, 0.99) (x 1,y 1 ) is not minimal, (x 2,y 2 ) is. 20/25

Algorithm and Complexity Thm. If F (z) is combinatorial, then under regularity conditions, the points contributing to dominant diagonal asymptotics can be determined in Õ(hd 5 D 4 ) bit operations. Each contribution has the form A k = T k k (1 n)/2 (2 ) (1 n)/2 (C + O(1/k)) T, C can be found to 2 apple precision in Õ(h(dD) 3 + Dapple) bit ops. explicit algebraic number This result covers the easiest cases. All conditions hold generically and can be checked within the same complexity, except combinatoriality. [Melczer-S.16] 21/25

Example: Apéry's sequence 1 1 t(1 + x)(1 + y)(1 + z)(1 + y + z + yz + xyz) =1+ +5xyzt + Kronecker representation of the critical points: x = 2u 1006 P 0 (u) P (u) =u 2 366u 17711 320 164u + 7108, y = z = P 0, t = (u) P 0 (u) There are two real critical points, and one is positive. After testing minimality, one has proven asymptotics 22/25

Example: Restricted Words in Factors F (x, y) = 1 x 3 y 6 + x 3 y 4 + x 2 y 4 + x 2 y 3 1 x y + x 2 y 3 x 3 y 3 x 4 y 4 x 3 y 6 + x 4 y 6 words over {0,1} without 10101101 or 1110101 23/25

Minimal Critical Points in the Noncombinatorial Case Then we use even more variables and equations: H(z) =0 z 1 @H @z 1 = = z n @H @z n H(u) =0 u 1 2 = t z 1 2,..., u n 2 = t z n 2 + critical point equations for the projection on the t axis And check that there is no solution with t in (0,1). Prop. Under regularity assumptions, this can be done in Õ(hd 4 2 3n D 9 ) bit operations. 24/25

Summary & Conclusion D-finite diag. alg. rat. Diagonals are a nice and important class of generating functions for which we now have many good algorithms. ACSV can be made effective (at least in simple cases). Requires nice semi-numerical Computer Algebra algorithms. Without computer algebra, these computations are difficult. Complexity issues become clearer. Work in progress: extend beyond some of the assumptions (see Melczer s thesis). The End