Constructing minimal telescopers for rational functions in three discrete variables
Shaoshi Chen, Qing-Hu Hou, Hui Huang, George Labahn, Rong-Hua Wang

TL;DR
This paper introduces a novel, efficient algorithm for constructing minimal telescopers for rational functions in three discrete variables, advancing beyond previous bivariate methods and avoiding costly certificate computations.
Contribution
It presents the first discrete reduction-based algorithm for three-variable rational functions with guaranteed termination and improved efficiency.
Findings
Algorithm successfully constructs minimal telescopers in three variables
Avoids costly certificate computations
Demonstrates efficiency through computational experiments
Abstract
We present a new algorithm for constructing minimal telescopers for rational functions in three discrete variables. This is the first discrete reduction-based algorithm that goes beyond the bivariate case. The termination of the algorithm is guaranteed by a known existence criterion of telescopers. Our approach has the important feature that it avoids the potentially costly computation of certificates. Computational experiments are also provided so as to illustrate the efficiency of our approach.
| RCT1 | RCT2 | RCTLM1 | RCTLM2 | order | |
|---|---|---|---|---|---|
| (1, 1, 1, 1) | 0.196 | 0.098 | 0.220 | 0.110 | 1 |
| (1, 1, 1, 5) | 7.319 | 0.123 | 9.483 | 0.123 | 1 |
| (1, 1, 1, 9) | 105.548 | 0.121 | 104.514 | 0.125 | 1 |
| (1, 1, 1, 13) | 2586.295 | 0.136 | 3078.043 | 0.126 | 1 |
| (1, 1, 1, 3) | 0.574 | 0.097 | 0.712 | 0.104 | 1 |
| (1, 2, 1, 3) | 17.812 | 0.256 | 17.299 | 0.263 | 1 |
| (1, 3, 1, 3) | 266.206 | 1.999 | 220.209 | 1.997 | 1 |
| (1, 4, 1, 3) | 2838.827 | 37.358 | 3039.199 | 30.547 | 1 |
| (1, 5, 1, 3) | 19403.916 | 1074.295 | 18309.000 | 1119.393 | 1 |
| (2, 3, 1, 3) | 31678.706 | 2.540 | 15825.876 | 2.224 | 3 |
| (3, 3, 1, 3) | 44243.254 | 5.378 | 16869.097 | 4.295 | 3 |
| (3, 2, 1, 3) | 710.810 | 0.492 | 670.501 | 0.487 | 3 |
| (3, 2, 2, 3) | 1314.809 | 0.701 | 941.009 | 0.756 | 6 |
| (3, 2, 4, 3) | 1558.440 | 1.525 | 1121.624 | 1.550 | 12 |
| (3, 2, 8, 3) | 1878.424 | 4.215 | 986.017 | 4.245 | 24 |
| (3, 2, 16, 3) | 2800.050 | 21.136 | 1317.603 | 38.504 | 48 |
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Constructing Minimal Telescopers for Rational Functions
in Three Discrete Variables
Shaoshi Chen1, Qing-Hu Hou2, Hui Huang3111Corresponding author., George Labahn4, Rong-Hua Wang5
(1 KLMM, Academy of Mathematics and Systems Science, Chinese Academy of Sciences,
Beijing, 100190, China
2 Center for Applied Mathematics, Tianjin University, Tianjin, 300072, China
3 School of Mathematical Sciences, Dalian University of Technology, Dalian, Liaoning, 116024, China
4 Cheriton School of Computer Science, University of Waterloo, Waterloo, ON, N2L 3G1, Canada
5 School of Mathematical Sciences, Tiangong University, Tianjin, 300387, China
[email protected], qh[email protected], [email protected]
[email protected], [email protected] )
Abstract
We present a new algorithm for constructing minimal telescopers for rational functions in three discrete variables. This is the first discrete reduction-based algorithm that goes beyond the bivariate case. The termination of the algorithm is guaranteed by a known existence criterion of telescopers. Our approach has the important feature that it avoids the potentially costly computation of certificates. Computational experiments are also provided so as to illustrate the efficiency of our approach.
Keywords: Creative telescoping; Abramov reduction; Symbolic summation
Mathematics Subject Classification 2010: 33F10, 68W30
Dedicated to Professor Ziming Li on the occasion of his 60th birthday.
1 Introduction
Creative telescoping [49, 50] is a powerful tool used to find closed form solutions for definite sums and definite integrals. The method constructs a recurrence (resp. differential) equation satisfied by the definite sum (resp. integral) with closed form solutions over a specified domain resulting in formulas for the sum or integral. Methods for finding such closed form solutions are available for many special functions, with examples given in [2, 44, 4, 9, 12, 30, 19, 33, 6]. Even when no closed form exists the method of creative telescoping often remains useful. For example the resulting recurrence or differential equation enables one to determine asymptotic expansions and derive other interesting facts about the original sum or integral.
In the case of summation, specialized to the trivariate case, in order to compute a sum of the form
[TABLE]
the main task of creative telescoping consists in finding , rational functions (or polynomials) in , not all zero, and two functions in the same class of functions as such that
[TABLE]
where , and denote shift operators in , and , respectively. The number may or may not be part of the input. If and are as above, then is called a telescoper for and is a certificate for .
The utility of creative telescoping is best demonstrated by examples. Suppose we want to find a closed form of the following multiple sum
[TABLE]
To this end, the method first constructs a telescoper for and a corresponding certificate
[TABLE]
such that
[TABLE]
Summing on both sides over from zero to , and applying the idea of telescoping to for and to for , respectively, yield
[TABLE]
Employing the notation , along with a range match-up, one obtains
[TABLE]
where the right-hand side merely involves single sums and thus the problem is now reduced to finding closed forms of these sums. Applying the method of creative telescoping (specialized to the bivariate case) again, one finds that the first single sum is equal to , while the second sum admits a first-order linear recurrence equation, which yields the closed form . A direct calculation confirms that the right-hand side of (1.2) collapses to zero after expansion, that is, . Together with the initial value , one then concludes that .
Over the past two decades, a number of generalizations and refinements of creative telescoping have been developed. At the present time the reduction-based approach has gained high support as it is both efficient in practice and has the important feature of being able to find a telescoper for a given function without necessarily computing a corresponding certificate. This is desirable in a typical situation where only the telescoper is of interest and its size is much smaller than the size of the certificate. Even when a certificate is needed, the approach also allows one to express it as an unnormalized sum so that the summands are concatenated symbolically without actually calculating the sum. Such an expression can be more easily specialized at end points of the summation range than the expanded certificate, and thus turns out to be useful in many applications.
The reduction-based approach was first developed in the differential case for bivariate rational functions [14], and later generalized to rational functions in several variables [17], to hyperexponential functions [15], to algebraic functions [25] and to D-finite functions [22, 34, 16]. In the shift case a reduction-based approach was developed for hypergeometric terms [24, 36] and to multiple binomial sums [18] (a subclass of the sums of hypergeometric terms).
In the case of discrete functions having more than two variables no complete reduction-based creative telescoping algorithm has been known so far. Having such an algorithm would allow us to tackle many multiple summations from applications more efficiently. However, it is quite challenging to develop an algorithm once for all. As a first step, in the present paper we address the most fundamental case, namely when in (1.1) are all rational functions in . This is also a natural follow up to the recent work [23, 21, 20] on the existence problem of telescopers for rational functions in three variables.
The basic idea of the general reduction-based approach, formulated for the shift trivariate rational case, is as follows. Let be a field of characteristic zero. Assume that there is a -linear map with the property that for all , there exist such that , that is, is summable with respect to , and is minimal in certain sense. In other words, indicates the “minimum” adjustments needed for to become summable with respect to , which apparently excludes the most trivial case of . Such a map is called a reduction with considered as a remainder of with respect to the reduction . Then in order to find a telescoper for , we can iteratively compute until we find a nontrivial linear dependence over . Once we have such a dependence, say
[TABLE]
for not all zero, then by linearity, , that is, for some . This yields a telescoper for .
To guarantee the termination of the above process, one possible way is to show that, for every summable function , we have . If this is the case and is a telescoper for , then is summable by the definition. So , and again by the linearity, are linearly dependent over . This means that we will not miss any telescoper and that the method will terminate provided that a telescoper is known to exist. This approach was taken in [24]. It requires us to know exactly under what kind of conditions a telescoper exists, so-called the existence problem of telescopers, and, when these conditions are fulfilled, then it is guaranteed to find one of minimal order . Such existence problems have been well studied in the case of bivariate hypergeometric terms [5] and more recently in the trivariate rational case [23, 21, 20].
A second, alternate way to ensure termination, used for example in [14, 15], is to show that, for a given function , the remainders form a finite-dimensional -vector space. Then, as soon as exceeds this finite dimension, one can be sure that a telescoper of order at most will be found. This also implies that every bound for the dimension gives rise to an upper bound for the minimal order of telescopers. This approach provides an independent proof for the existence of a telescoper. However, since such an upper order bound is only of theoretical interest and will not affect the practical efficiency of the algorithms, in this paper we will confine ourselves with the first approach for termination and leave the second approach for future research.
Our starting point is thus to find a suitable reduction for trivariate rational functions. In particular we present a reduction which satisfies the following properties: (i) whenever is summable and (ii) is minimal in certain sense. One issue with this reduction, similar to that encountered in the bivariate hypergeometric case [24], is the difficulty that is not a -linear map in general. To overcome this we follow the ideas of [24]. Namely, we introduce the idea of congruences modulo summable rational functions and show that becomes -linear when it is viewed as a residue class. Using the existence criterion of telescopers established in [23], we are then able to design a creative telescoping algorithm from as described in the previous paragraphs.
The remainder of the paper proceeds as follows. The next section gives some preliminary materials needed for this paper, particularly a review of a reduction method due to Abramov. In Section 3 we extend Abramov’s reduction method to the bivariate case by incorporating a primary reduction. In Section 4 we show that the reduction remainders introduced in the previous section are well-behaved with respect to taking linear combinations, followed in Section 5 by a new algorithm for constructing telescopers for trivariate rational functions based on the bivariate extension of Abramov’s reduction method. In Section 6 we provide some experimental tests of our new algorithm. The paper ends with some topics for future research.
2 Preliminaries
Throughout the paper we let denote a field of characteristic zero, with and being the field of rational functions in over . Choosing the pure lexicographic order , we say that a polynomial in is monic if its highest term with respect to has coefficient one. For a nonzero polynomial , its degree and leading coefficient with respect to the variable are denoted by and , respectively. We will follow the convention that .
We let and be the automorphisms over , which, for any , are defined by
[TABLE]
Let be the free abelian multiplicative group generated by . The application of an element in to a rational function is defined as
[TABLE]
For any , we say that a polynomial is -free if for all nonzero . A rational function is called -summable if for some . The -summability problem is then to decide whether a given rational function in is -summable or not. Rather than merely giving a negative answer in case the function is not -summable, one could instead seek solutions for a more general problem, namely the -decomposition problem, with the intent to make the nonsummable part as small as possible. Precisely speaking, the -decomposition problem, for a given rational function , asks for an additive decomposition of the form , where and is minimal in certain sense such that would be -summable if and only if . It is readily seen that any solution to the decomposition problem tackles the corresponding summability problem as well.
In the case where , the decomposition problem was first solved by Abramov in [1] with refined algorithms in [3, 43, 10, 31, 45]. All these algorithms can be viewed as discrete analogues of the Ostrogradsky-Hermite reduction for rational integration (and beyond). We refer to any of these algorithms restricted to the rational case as the Abramov reduction.
Theorem 2.1** (Abramov reduction).**
Let be a rational function in . Then the Abramov reduction finds and with and being -free such that
[TABLE]
Moreover, if admits such a decomposition then
- •
* is -summable if and only if ;*
- •
* has the lowest possible degree in when . That is, if there exist a second and such that , then .*
In view of the above theorem, we introduce the following definition.
Definition 2.2**.**
A rational function with and is called a -remainder if and is -free.
It is evident from Theorem 2.1 that any nonzero -remainder is not -summable.
Generalizing to the bivariate case, we consider the -summability problem of deciding whether a given rational function can be written in the form for . If such a form exists, we say that is -summable, abbreviated as summable in certain instances. The -decomposition problem is then to decompose a given rational function into the form
[TABLE]
where and is minimal in certain sense. Moreover, is -summable if and only if .
Recall [7] that an irreducible polynomial is called -integer linear over the field if it can be written in the form for a polynomial and integers . One may assume without loss of generality that and are coprime. A polynomial in is called -integer linear over if all its irreducible factors are -integer linear over while a rational function in is called -integer linear over if its numerator and denominator are both -integer linear over . For simplicity, we just say a rational function is -integer linear over of -type if it is equal to for some and are coprime integers with . Algorithms for determining integer linearity can be found in [7, 41, 32].
In the context of creative telescoping, we will also need to consider the variable and the automorphism , which for every maps to . Two polynomials are called -shift equivalent, denoted by , if there exist three integers such that . We generalize this notion to the domain by saying that two polynomials are -shift equivalent if for integers . When then is also called -shift equivalent to , denoted by . Clearly, both and are equivalence relations.
Let be the ring of linear recurrence operators in over . Here commute with each other, and for any and . The application of an operator in to a rational function is then defined as
[TABLE]
Definition 2.3**.**
Let be a rational function in . A nonzero linear recurrence operator is called a telescoper for if is -summable, or equivalently, if there exist rational functions such that
[TABLE]
where denotes the identity map of . We call a corresponding certificate for . The order of a telescoper is defined to be its degree in . A telescoper of minimal order for is called a minimal telescoper for .
3 Bivariate extension of the Abramov reduction
In this section, we demonstrate how to solve the bivariate decomposition problem (and thus also the bivariate summability problem) using the Abramov reduction. To this end, let us first recall some key results on the bivariate summability from [35].
Based on a theoretical criterion given in [26, Theorem 3.7], Hou and Wang [35] developed an algorithm for solving the -summability problem. The proof found in [35, Lemma 3.1] contains a reduction algorithm with inputs and outputs specified as follows.
Primary reduction. Given a rational function , compute rational functions such that
[TABLE]
and is of the form
[TABLE]
with , and satisfying that
- •
,
- •
is a monic irreducible factor of the denominator of and of positive degree in ,
- •
whenever for .
Let be a rational function in and assume that applying the primary reduction to yields (3.1). Deciding if is -summable then amounts to checking the summability of . By [35, Lemma 3.2], this is equivalent to checking the summability of each simple fraction . Thus the bivariate summability problem for a general rational function is reduced to determining the summability of several simple fractions, which in turn can be addressed by the following.
Theorem 3.1** ([35, Theorem 3.3]).**
Let , where , , with irreducible and . Then is -summable if and only if
- (i)
* is -integer linear over of -type,*
- (ii)
there exists with so that
[TABLE]
Since is irreducible, the first condition is easily recognized by comparing coefficients once is known. In [35, §4], the second condition is checked by finding a polynomial solution of a system of linear recurrence equations in one variable based on a universal denominator derived from the -fold Gosper representation. Such a polynomial solution gives rise to a desired for (3.3).
In the rest of this section, we show how to detect the second condition via the Abramov reduction, without solving any auxiliary recurrence equations. As a result, we obtain an additive decomposition of the given rational function in , from which one can not only read off the -summability, but also gather useful descriptions on the possible “minimal” nonsummable part. This lays the foundation of our new algorithm in Section 5.
Let be a ring (resp. field) and be an automorphism of . The pair is called a difference ring (resp. field). An element is called a constant of with respect to if . The set of all such constants forms a subring (resp. subfield) of , called the constant subring (resp. subfield) of with respect to . Let and be two difference rings. A homomorphism (resp. isomorphism) is called a difference homomorphism (resp. isomorphism) from to if , that is, the left diagram in Figure 1 commutes. Two difference rings are then said to be isomorphic if there exists a difference isomorphism between them.
Let be two integers with nonzero. We define an -homomorphism by
[TABLE]
It is readily seen that is an -isomorphism with inverse given by
[TABLE]
We call the map for -shift reduction.
Proposition 3.2**.**
Let with and . Then is a difference isomorphism from to .
Proof.
Since is an -isomorphism, it remains to show that , namely the right diagram in Figure 1 commutes. This is confirmed by the observation that
[TABLE]
and
[TABLE]
for any .
Corollary 3.3**.**
Let and assume the conditions of Proposition 3.2. Then is -summable if and only if is -summable.
Proof.
By Proposition 3.2, is a difference isomorphism from to . It follows that
[TABLE]
for any . The assertion follows.
The problem of deciding whether a rational function satisfies the equation (3.3), that is, the -summability problem for , is then equivalent to the -summability problem for . In fact, there is also a natural one-to-one correspondence between additive decompositions of with respect to and additive decompositions of with respect to . Together with Definition 2.2, this motivates us to introduce the notions of remainder fractions and remainders, in order to characterize nonsummable rational functions concretely.
Definition 3.4**.**
A fraction with , and is called a remainder fraction if
- •
;
- •
* is monic, irreducible and of positive degree in ;*
- •
* is a -remainder in case is -integer linear over of -type.*
Definition 3.5**.**
Let be a rational function in . Then is called a -remainder of if is -summable and can be written as
[TABLE]
where , , with each being a remainder fraction, being a factor of the denominator of , and whenever and . For brevity, we just say that is a -remainder if is clear from the context. We refer to (3.4), along with the attached conditions, as the remainder form of .
The uniqueness of partial fraction decompositions (in this case with respect to ) implies that the remainder form of a given -remainder is unique up to reordering and multiplication by units of . Evidently, every single remainder fraction, or part of summands in (3.4), is a -remainder. Remainders not only help us to recognize summability, but also describe the “minimum” gap between a given rational function and summable rational functions, as shown in the next two propositions.
Proposition 3.6**.**
Let be a nonzero -remainder with the form (3.4). Then each nonzero for and , as well as itself, is not -summable.
Proof.
Since is a -remainder, each is a remainder fraction. For a particular nonzero , namely , we claim that it is not -summable. If is not -integer linear over , then the claim follows by Theorem 3.1. Otherwise, assume that is -integer linear over of -type. Since is a remainder fraction, Definition 3.4 reads that is a -remainder and thus is not -summable. By Corollary 3.3, is not -summable. The claim is then again assured by Theorem 3.1.
In either case, we have that is not -summable. Since is nonzero, at least one of the is nonzero. By [35, Lemma 3.2], is therefore not -summable.
Proposition 3.7**.**
Let be a nonzero -remainder with the form (3.4), in which and are further assumed to be coprime. Assume that there exists another such that is -summable. Write in the form
[TABLE]
where , , and with and being monic irreducible factor of the denominator of and of positive degree in . For each , define
[TABLE]
Then is nonempty for any . Moreover, , for all , for each and , and the degree in of the denominator of is no more than that of .
Proof.
Since is -summable, all the rational function are -summable by [35, Lemma 3.2], and then so are the
[TABLE]
Since is a nonzero -remainder, we conclude from Proposition 3.6 that each nonzero is not -summable. Notice that for each , there is at least one integer with such that . It then follows from the summability of (3.5) that every is nonempty, namely every is -shift equivalent to some for , and that for any . Notice that the are pairwise -shift inequivalent. Thus the are pairwise disjoint, which implies that . Accordingly, the degree in of the denominator of is no more than that of .
It remains to show the inequality for the degree of each . For each and , by Theorem 3.1, the summability of (3.5) either yields
[TABLE]
if is -integer linear over of -type or otherwise yields
[TABLE]
The assertion is evident in the latter case. For the former case, because is a remainder fraction, the assertion follows by the minimality of (and thus ) from Theorem 2.1.
With everything in place, we now present a bivariate extension of the Abramov reduction, which addresses the -decomposition problem.
Bivariate Abramov reduction. Given a rational function , compute three rational functions such that is a -remainder of and
[TABLE]
Apply the primary reduction to to find , , and such that (3.1) holds. 2. 2.
For do
forIf is -integer linear over of -type then
- 2.1
Compute with being the map for -shift reduction;
- 2.2
For do
- 2.2.1
Apply the Abramov reduction to with respect to to get such that
[TABLE]
- 2.2.2
Apply to both sides of the previous equation to get
[TABLE]
where and .
- 2.2.3
Update and to be the numerator and denominator of , respectively.
- 2.3
Update
[TABLE] 3. 3.
Update , and return .
Theorem 3.8**.**
Let be a rational function in . Then the bivariate Abramov reduction computes two rational functions and a -remainder such that (3.6) holds. Moreover, is -summable if and only if .
Proof.
Applying the primary reduction to yields (3.1). For any nonzero obtained in step 1, if is not -integer linear over then we know from Theorem 3.1 that is not -summable and is thus already a remainder fraction. Otherwise, there exist coprime integers with so that for some . By Theorem 2.1 and Definition 3.4, for each , steps 2.2.1-2.2.2 correctly find and such that (3.7) holds and is a remainder fraction. After step 2.2, plugging all (3.7) into (3.1) then gives (with a slight abuse of notation):
[TABLE]
where the index runs through all -integer linear ’s and is a -remainder by Definition 3.5. The assertions then follow from Proposition 3.6 and the observation that
[TABLE]
for any .
Example 3.9**.**
Consider the rational function admitting the partial fraction decomposition with
[TABLE]
Note that are -shift inequivalent to each other. Hence remains unchanged after applying the primary reduction. Since is not -integer linear, we leave untouched and proceed to deal with . Notice that is -integer linear of -type. Then applying the Abramov reduction to with being the map for -shift reduction yields
[TABLE]
which, when applied by , leads to
[TABLE]
Using (3.9), we decompose as
[TABLE]
One sees that is a -remainder of , and thus is not -summable by Theorem 3.8. Along the same lines as above, we have
[TABLE]
implying that is -summable. Combining everything together, is finally decomposed as
[TABLE]
with and . Thus is not -summable by Theorem 3.8. We will use as a running example in this paper.
4 Linearity of remainders
As mentioned in the introduction, we expect our reduction algorithm to induce a linear map, that is, the sum of two remainders was expected to also be a remainder. Unfortunately, this is not always the case in our setting, because some requirements in Definition 3.5 may be broken by the addition among -remainders, as seen in the following examples. This prevents us from applying the bivariate Abramov reduction developed in the previous section to construct a telescoper in a direct way as was done in the differential case. However, observe that a rational function in may have more than one -remainder and any two of them differ by a -summable rational function. This suggests a possible way to circumvent the above difficulty. That is, choosing proper members from the residue class modulo summable rational functions of the given -remainders so as to make the linearity become true. The goal of this section is to show that this direction always works and it can be accomplished algorithmically. We note that a similar idea was used in the bivariate hypergeometric case [24, §5].
Example 4.1**.**
Let and with being given in Example 3.9. Then and are both -remainders since both denominators and are not -integer linear. However their sum is not a -remainder since is -shift equivalent to , namely . Nevertheless, we can find another -remainder of such that has this property. For example, let
[TABLE]
and then
[TABLE]
is a -remainder by definition. Alternatively, one can compute a -remainder of , say
[TABLE]
so that
[TABLE]
is a -remainder.
Example 4.2**.**
Let
[TABLE]
Then both and are -remainders, but again their sum is not since is -shift equivalent to . As in Example 4.1, we find a -remainder
[TABLE]
such that is -summable. However, the sum is still not a -remainder since \phi_{2,3}\big{(}(\frac{1}{3}x(2y+3z)+\frac{2}{3}x^{2}+1)/(x+y)+a/b\big{)} is not a -remainder, where denotes the map for -shift reduction. Notice that
[TABLE]
so (3.9) enables us to find a new -remainder
[TABLE]
such that is -summable and
[TABLE]
is a -remainder. Another possible choice is to find a -remainder of such that is a -remainder.
In order to achieve the linearity of -remainders, we need to develop two lemmas. The first one mimics the idea of Lemma 5.5 in [24] in the bivariate setting.
Lemma 4.3**.**
Let and . Let be two integers. Then one finds such that
[TABLE]
Moreover, assume that is not -integer linear over . If is a remainder fraction, then so is .
Proof.
A direct calculation shows that
[TABLE]
for any , and . By iteratively applying the above formulas, one readily computes such that (4.1) holds.
Moreover, if is not -integer linear over , then neither is . Since is a remainder fraction, by Definition 3.4, and is monic, irreducible and of positive degree in . Shifting polynomials in with respect to or preserves these properties. It follows from definition that is a remainder fraction.
The next lemma is an immediate result of Theorem 5.6 in [24].
Lemma 4.4**.**
Let with and let denote the map for -shift reduction. Let and be such that both and are -remainders. Then one finds , and with being a -remainder such that
[TABLE]
and is a -remainder for all .
Proof.
By [24, Theorem 5.6] and [36, Proposition 3.2], there exist , and with being a -remainder such that
[TABLE]
and is a -remainder for all . Notice that is an -isomorphism and with . So . Letting , and concludes the lemma.
We are now ready to give an algorithm that provides a feasible way to obtain the linearity.
Remainder linearization. Given two -remainders , compute and a -remainder such that
[TABLE]
and is a -remainder for all .
Write and in the remainder forms
[TABLE] 2. 2.
Set .
For do
forIf there exists such that for some , then
- 2.1
For do
- 2.1.1
Apply Lemma 4.3 to to find such that
[TABLE]
- 2.1.2
If is -integer linear over of -type then
Apply Lemma 4.4 to to find , and with being a -remainder such that
[TABLE]
and is a -remainder for all ; update to be , respectively, and update by (3.8).
Else update to be , respectively.
- 2.2
Update to be , and update , . 3. 3.
Set , and return .
Theorem 4.5**.**
Let and be two -remainders. Then the remainder linearization correctly finds two rational functions and a -remainder such that (4.2) holds and is a -remainder for all .
Proof.
Since both and are -remainders, they admit the remainder forms (4.3). For any from , if there exists some from such that for some , then for each integer with , one sees from Lemma 4.3 that step 2.1.1 correctly finds the such that (4.4) holds. Moreover, is a remainder fraction if is not -integer linear over . When is -integer linear over of -type, Lemma 4.4 assures that (4.5) holds and is a remainder fraction. Note that are pairwise -shift inequivalent since is a -remainder. Also note that each can only be replaced by some which is -shift equivalent to every time the algorithm passes through step 2.2. Thus the updated after step 2 remain to be -shift inequivalent to each other. It then follows from Definition 3.5 that in step 3 (with a slight abuse of notations) is a -remainder. Substituting all equations (4.4)-(4.5) into (4.3), together with (3.9), immediately yields (4.2).
Let . Then it remains to prove that is a -remainder. Notice that for any two remainder fractions: from and from with , it is readily seen from definition that their any linear combination over is again a remainder fraction. Thus it amounts to showing that is a remainder fraction in the case when . We know from step 2 that in this case , and is a -remainder if is -integer linear over of -type. Therefore, the theorem is concluded by definition.
5 Telescoping via reduction
Recall that a telescoper , for a given rational function , is a nonzero operator in such that is -summable. For discrete trivariate rational functions, telescopers do not always exist. Recently, a criterion for determining the existence of telescopers in this case was presented in the work [23]. In order to adapt it into our setting, we will consider primitive parts of polynomials in . Let be of the form for and with . Then the content of with respect to is defined as , and the corresponding primitive part . For example, by letting , we have and . Evidently, is a polynomial in whose coefficients with respect to have no nonconstant common divisors in .
We summarize the existence criterion for telescopers from [23] in the following theorem.
Theorem 5.1** (Existence criterion).**
Let be a rational function in . Assume that applying the bivariate Abramov reduction to yields (3.6), where and is a -remainder with the remainder form (3.4). Then has a telescoper if and only if for each and ,
- (i)
there exists a positive integer such that for some integers ,
- (ii)
and is -integer linear over , in particular, if is not -integer linear over .
Algorithms for checking the conditions (i)-(ii) were also described in the same paper [23]. With termination guaranteed by the above criterion, we now use the bivariate Abramov reduction to develop a creative telescoping algorithm in the spirit of the general reduction-based approach.
Algorithm ReductionCT. Given a rational function , compute a minimal telescoper for and a corresponding certificate when telescopers exist.
Apply the bivariate Abramov reduction to to find and a -remainder such that
[TABLE] 2. 2.
If then set , and return. 3. 3.
If conditions (i)-(ii) in Theorem 5.1 are not satisfied, then return “No telescopers exist”. 4. 4.
Set , where is an indeterminate.
For do
- 4.1
Apply the remainder linearization to with respect to to find and a -remainder such that
[TABLE]
and that is a -remainder, where is an indeterminate.
- 4.2
Update and update , so that
[TABLE]
- 4.3
If there exist nontrivial such that , then set and , and return.
Theorem 5.2**.**
Let be a rational function in . Then the algorithm ReductionCT terminates and returns a minimal telescoper for when such a telescoper exists.
Proof.
By Theorems 3.8 and 5.1, steps 2-3 are correct. Because is a -remainder, so is its shift . By Theorem 4.5, step 4.1 correctly finds and a -remainder such that (5.2) holds for and is a -remainder for all . Applying to both sides of (5.1), together with step 4.1, one sees that step 4.2 gives (5.3) for . The correctness of step 4.2 for each iteration of the loop in step 4 then follows by induction on .
If does not have a telescoper then the algorithm halts after step 3. Otherwise, telescopers for exist by Theorem 5.1. Let be a telescoper for of minimal order. Then and by (5.3), applying to gives
[TABLE]
Notice that is a -remainder by step 4.1. It follows from Theorem 3.8 that is -summable, namely is a telescoper for , if and only if . This implies that the linear system over with unknowns obtained by equating to zero has a nontrivial solution, which yields a telescoper of minimal order. The algorithm thus terminates.
In what follows, we describe an alternative way, in addition to the above algorithm, for creative telescoping in our trivariate rational setting. As such, we need the notion of least common left multiples. Recall that an operator is a common left multiple of operators if there exist operators such that . Amongst all such common left multiples, the monic one of lowest possible degree with respect to is called the least common left multiple. Many efficient algorithms for computing the least common left multiple of operators are available; see [8] and the references therein.
The following lemma is an immediate extension of [40, Theorem 2] to the trivariate case, and thus we omit the proof.
Lemma 5.3**.**
Let with and let be the respective minimal telescopers for . Then the least common left multiple of the is a telescoper for . Moreover, if any telescoper for is also a telescoper for each with , then is a minimal telescoper for .
The following proposition shows that the least common multiple gives a minimal telescoper for the given sum provided that the denominators of distinct summands are comprised of distinct -shift equivalence classes.
Proposition 5.4**.**
Let be a rational function of the form
[TABLE]
where with satisfying the conditions
- (i)
;
- (ii)
any monic irreducible factor of of positive degree in is -shift inequivalent to all factors of whenever and .
Let be the respective minimal telescopers for . Then the least common left multiple of the is a minimal telescoper for . Moreover, for each , let be a corresponding certificate for and let be the cofactor of so that . Then
[TABLE]
is a corresponding certificate for .
Proof.
Let be a telescoper for . In order to show the first assertion, by Lemma 5.3, it suffices to verify that is also a telescoper for each with . Notice that the application of a nonzero operator from does not change the -shift equivalence classes, with representatives being monic irreducible polynomials of positive degrees in , that appear in a given polynomial in . Hence condition (ii) remains valid when and are replaced by and , respectively. It then follows that any two monic irreducible factors of positive degrees in from distinct are -shift inequivalent to each other. By the definition of telescopers, is -summable, and then so is each according to [35, Lemma 3.2]. This implies that is indeed a telescoper for each . The second assertion follows by observing that and both commute with operators from .
The above proposition suggests a natural approach to construct a minimal telescoper for a given rational function. More precisely, let and assume that applying the bivariate Abramov reduction to yields (3.6) with admitting the remainder form (3.4). The approach proceeds by separately taking each in (3.4) as the basic case and computes its own minimal telescoper using the algorithm ReductionCT, and then returns the least common left multiple of all as the output. By Proposition 5.4, such an gives a minimal telescoper for (and thus for ). We refer to this approach as the LCLM version of our algorithm ReductionCT.
5.1 Examples
Example 5.5**.**
Consider the rational function given in Example 3.9. Note that is a remainder fraction and satisfies conditions (i)-(ii) in Theorem 5.1. So telescopers for exist. Applying the algorithm ReductionCT to , we obtain in step 4 that
[TABLE]
where
[TABLE]
and are not displayed here to keep things neat. By finding an -linear dependency among , we see that
[TABLE]
is a minimal telescoper for .
Example 5.6**.**
Consider the rational function given in Example 3.9, which can be decomposed as
[TABLE]
Note that is a remainder fraction and satisfies conditions (i)-(ii) in Theorem 5.1. Thus telescopers for exist. Applying the algorithm ReductionCT to , we obtain in step 4 that
[TABLE]
where are again not displayed due to the large sizes, and
[TABLE]
Then one finds an -linear dependency among which yields a minimal telescoper
[TABLE]
The following illustrates the result of Proposition 5.4.
Example 5.7**.**
Consider the same rational function as in Example 3.9. Then we know that is -summable. Thus is a minimal telescoper for . Let be the operators computed in Examples 5.5-5.6. It then follows that the least common left multiple of , given by
[TABLE]
is a telescoper for . On the other hand, by directly applying the algorithm ReductionCT to , one sees that is in fact a minimal telescoper for .
5.2 Efficiency considerations
The efficiency of Algorithm ReductionCT can be enhanced by incorporating two modifications in the algorithm.
Simplification of step 4.1
For each iteration of the loop in step 4, rather than using the overall -remainder in step 4.1, we can apply the remainder linearization to the shift value with respect to the initial -remainder only. This is sufficient as, for any -remainder of with , if is a -remainder then so is , provided that the algorithm proceeds in the described iterative fashion.
The intuition for this simplification is as follows. Notice that if the algorithm continues after passing through step 3 then . Since distinct -shift equivalence classes can be tackled separately, we restrict ourselves to the case where the denominator of is of the form
[TABLE]
with being monic, irreducible and of positive degree in , being distinct positive integers such that are -shift inequivalent to each other. For simplicity, we call the -shift exponent sequence of in . By Theorem 5.1, there exists a positive integer such that and so we let be the smallest one with such a property. Then there are only many -shift equivalence classes produced by shifting with respect to , with as respective representatives. Without loss of generality, we further assume that . For , let be the output of the remainder linearization when applied to with respect to . By induction on , one sees that the -shift exponent sequence of in is given by
[TABLE]
whose entries form an -subset of . It thus follows from Definition 3.5 that is also a -remainder.
Simplification of step 4.3
Our second modification is in step 4.3, where we first derive from the individual equation for each remainder fraction appearing in the remainder form of , and then build a linear system over from the coefficients of the numerator of the equation with respect to and , instead of and , in the case where is -integer linear of -type. Notice that at the stage of step 4.3. Let be all monic irreducible polynomials of positive degrees in that appear in the denominator of , with multiplicities , respectively. For , and , let and be such that is a remainder fraction appearing in the remainder form of . By coprimeness among the , one gets that
[TABLE]
If is -integer linear of -type, then is a -remainder with being the map for -shift reduction. By letting , one sees from definition that and . It follows that every can be viewed as a polynomial in with coefficients all having degrees in less than . In this case, rather than naively considering the coefficients with respect to and , we instead force all the coefficients with respect to and of the numerator of to zero. This way ensures that the resulting linear system over typically has smaller size than the naive one.
6 Implementation and timings
We have implemented our new algorithm ReductionCT in the computer algebra system Maple 2018. Our implementation includes the two enhancements to step 4 discussed in the previous subsection. In order to get an idea about the efficiency of our algorithm, we applied our implementation to certain examples and tabulated their runtime in this section. All timings were measured in seconds on a Linux computer with 128GB RAM and fifteen 1.2GHz Dual core processors. The computations for the experiments did not use any parallelism.
We considered trivariate rational functions of the form
[TABLE]
where
- •
of total degree and max-norm , in other words, the maximal absolute value of the coefficients of with respect to are no more than 5;
- •
with and for two nonzero integers and two integer polynomials , , both of which have total degree and max-norm no more than 5.
For a selection of random rational functions of this type for different choices of , Table 1 collects the timings of four variants of the algorithm ReductionCT from Section 5. For the column RCT1, we computed both the telescoper and the certificate, and for the column RCT2 only the telescoper is computed. The difference between these two variants mainly lies in the time used to bring the certificate to a common denominator. When it is acceptable to keep the certificate as an unnormalized linear combination of rational functions, the timings are virtually the same as for RCT2. For columns RCTLM1 and RCTLM2, we perform the same functionality as RCT1 and RCT2 but using the LCLM version of the algorithm ReductionCT. Note that the computation of the least common left multiples therein was accomplished by the built-in Maple command OreTools[LCM][’left’]. We remark that the performance of the LCLM version of the algorithm ReductionCT deteriorates for larger examples, especially when there are many shift equivalence classes in the denominator of the input rational function or the order of a minimal telescoper is relatively high.
We have also compared our procedures with the two Mathematica packages: HolonomicFunctions by Koutschan [39] and MultiSum222We thank the anonymous referee for bringing this package to our attention. by Wegschaider (substantially improved by Riese) [47, 42]. The HolonomicFunctions, to our best knowledge, is the most comprehensive implementation in terms of creative telescoping for holonomic functions (cf. [37, §2.2]) in more than two variables. There are two commands available in the package for our purpose. One is called CreativeTelescoping, which implements Chyzak’s algorithm [28] for single sums and can be applied iteratively to compute telescopers for trivariate rational functions. The other is called FindCreativeTelescoping, which is based on Koutschan’s heuristic approach [38] and constructs the telescoper directly by guessing the denominators of the certificate, as well as their numerator degrees, and solving a linear system. The MultiSum extends the multivariate version of “Sister Celine’s technique” developed by Wilf and Zeilberger [48]. The available command in the package is called FindRecurrence, which finds a telescoper and a corresponding certificate for a given summand only if the structure set, which is usually not known in advance, is chosen in a clever way. The idea employed in the package is to use random parameter substitutions to quickly rule out useless structure sets, which however requires a priori bounds for the shifts involved (see [42] for further details). We remark that333We thank the anonymous referee for pointing this out. it would be interesting to see in the future if our fully automatic method could provide these extra bounds also automatically, and then the combination of the two methods might yield even a new fully automatic (and efficient) method.
Experiments suggest a better performance of our algorithm. For example, for the rational function
[TABLE]
which was constructed using (6.1) with parameter , our algorithm found a minimal telescoper for along with its corresponding certificate in about 3 minutes; while the command FindRecurrence, along with a priori bounds for the shifts in , respectively, accomplished the same job using about 7 minutes, the command CreativeTelescoping took about 4 hours, and the command FindCreativeTelescoping did not finish in reasonable time, which happens because the guessed denominators are wrong/insufficient, and therefore the command finds nothing and runs forever. The same phenomenon was observed for larger examples.
7 Conclusion and future work
In this paper, we presented a new creative telescoping algorithm for the class of trivariate rational functions. The procedure is based on a bivariate extension of Abramov’s reduction method initiated in [1]. Our algorithm finds a minimal telescoper for a given trivariate rational function without also needing to compute an associated certificate. A Maple implementation indicates the efficiency of our algorithm. As a next step, we are going to investigate the theoretical complexity of our algorithm to see if it matches with the practical performance, something briefly alluded to in the introduction.
We are interested in the more general and important problem of computing hypergeometric multiple summations or proving identities which involve such summations. A function is called a multivariate hypergeometric term if the quotients
[TABLE]
are all rational functions in . The problem of hypergeometric multiple summations tends to appear more often than the rational case, particularly in combinatorics [11, 18], and it is also more challenging.
Since a large percent of hypergeometric terms falls into the class of holonomic functions, the problem of hypergeometric multiple summations can also be considered in a more general framework of multivariate holonomic functions. In this context, several creative telescoping approaches have already been developed in [49, 46, 29, 28, 38, 13]. The algorithms in the first three papers are based on elimination and suffer from the disadvantage of inefficiency in practice. The algorithm in [28], also known as Chyzak’s algorithm, deals with single sums (and single integrals) and can only be used to solve multiple ones in an iterative manner. A fast but heuristic approach was given in [38] in order to eliminate the bottleneck in Chyzak’s algorithm of solving a coupled first-order system. This approach generalizes to multiple sums (and multiple integrals). We refer to [37] for a detailed and excellent exposition of these approaches. The work in [13] describes even a general framework that unities the difference ring and the holonomic approach. We remark that all these approaches find the telescoper and the certificate simultaneously, with the exception of Takayama’s algorithm in [46] where natural boundaries have to be assured a priori. Note also that holonomicity is a sufficient but not necessary condition for the applicability of creative telescoping applied to hypergeometric terms (cf. [5, 23]).
Restricted to the hypergeometric setting, partial solutions for the problem of multiple summations were proposed in [27] and [18]. In the former paper, the authors presented a heuristic method to find telescopers for trivariate hypergeometric terms, through which they also managed to prove certain famous hypergeometric double summation identities. In the latter paper, the authors mainly focused on a subclass of hypergeometric summations – multiple binomial sums. They first showed that the generating function of a given multiple binomial sum is always the diagonal of a rational function and vice versa. They then constructed a differential equation for the diagonal by a reduction-based telescoping approach. Finally the differential equation is translated back into a recurrence relation satisfied by the given binomial sum. In the future, we hope to explore this topic further and aim at developing a complete reduction-based telescoping algorithm for hypergeometric terms in three or more variables.
Acknowledgments
We would like to express our gratitude to Christoph Koutschan for useful instructions and insightful remarks on his package. We also would like to thank the anonymous referee for many helpful and constructive suggestions. Most of the work presented in this paper was carried out while H. Huang was a postdoctoral fellow at the University of Waterloo. S. Chen was partially supported by the NSFC grants (No. 11871067, 12288201) and the Fund of the Youth Innovation Promotion Association, CAS (2018001). Q.-H. Hou was supported by the NSFC grant (No. 11921001). H. Huang and G. Labahn were supported by the Natural Sciences and Engineering Research Council (NSERC) Canada (No. NSERC RGPIN-2020-04276). H. Huang was also supported by the NSFC grant (No. 12101105) and the Fundamental Research Funds for the Central Universities (No. DUT20RC(3)073). R.-H. Wang was supported by the NSFC grants (No. 12101449, 11871067) and the Natural Science Foundation of Tianjin, China (No. 19JCQNJC14500).
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[1] Sergei A. Abramov. The rational component of the solution of a first-order linear recurrence relation with a rational right side. USSR Comput. Math. Math. Phys. , 15(4):216–221, 1975.
- 2[2] Sergei A. Abramov. Rational solutions of linear differential and difference equations with polynomial coefficients. USSR Comput. Math. Math. Phys. , 29(6):7–12, 1989. Transl. from Žh. Vyčisl. Mat. i Mat. Fiz. 29, pp. 1611-1620, 1989.
- 3[3] Sergei A. Abramov. Indefinite sums of rational functions. In Proceedings of ISSAC’95 , pages 303–308. ACM, New York, 1995.
- 4[4] Sergei A. Abramov. Rational solutions of linear difference and q 𝑞 q -difference equations with polynomial coefficients. In Proceedings of ISSAC’95 , pages 285–289. ACM, New York, 1995.
- 5[5] Sergei A. Abramov. When does Zeilberger’s algorithm succeed? Adv. in Appl. Math. , 30(3):424–441, 2003.
- 6[6] Sergei A. Abramov, Manuel Bronstein, Marko Petkovšek, and Carsten Schneider. On rational and hypergeometric solutions of linear ordinary difference equations in Π Σ ∗ Π superscript Σ ∗ \Pi\Sigma^{\ast} -field extensions. J. Symbolic Comput. , 107:23–66, 2021.
- 7[7] Sergei A. Abramov and Ha Q. Le. A criterion for the applicability of Zeilberger’s algorithm to rational functions. Discrete Math. , 259(1-3):1–17, 2002.
- 8[8] Sergei A. Abramov, Ha Q. Le, and Ziming Li. Univariate Ore polynomial rings in computer algebra. J. Math. Sci. , 131(5):5885–5903, 2005.
