<?xml-model href='http://www.tei-c.org/release/xml/tei/custom/schema/relaxng/tei_all.rng' schematypens='http://relaxng.org/ns/structure/1.0'?><TEI xmlns="http://www.tei-c.org/ns/1.0">
	<teiHeader>
		<fileDesc>
			<titleStmt><title level='a'>Computing discrete residues of rational functions</title></titleStmt>
			<publicationStmt>
				<publisher>ACM</publisher>
				<date>07/16/2024</date>
			</publicationStmt>
			<sourceDesc>
				<bibl> 
					<idno type="par_id">10523740</idno>
					<idno type="doi">10.1145/3666000.3669676</idno>
					
					<author>Carlos E Arreche</author><author>Hari Sitaula</author>
				</bibl>
			</sourceDesc>
		</fileDesc>
		<profileDesc>
			<abstract><ab><![CDATA[In 2012 Chen and Singer introduced the notion of discrete residues for rational functions as a complete obstruction to rational summability. More explicitly, for a given rational function f(x), there exists a rational function g(x) such that f(x) = g(x+1) - g(x) if and only if every discrete residue of f(x) is zero. Discrete residues have many important further applications beyond summability: to creative telescoping problems, thence to the determination of (differential-)algebraic relations among hypergeometric sequences, and subsequently to the computation of (differential) Galois groups of difference equations. However, the discrete residues of a rational function are defined in terms of its complete partial fraction decomposition, which makes their direct computation impractical due to the high complexity of completely factoring arbitrary denominator polynomials into linear factors. We develop a factorization-free algorithm to compute discrete residues of rational functions, relying only on gcd computations and linear algebra.]]></ab></abstract>
		</profileDesc>
	</teiHeader>
	<text><body xmlns="http://www.tei-c.org/ns/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink">
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="1">INTRODUCTION</head><p>Let K be a field of characteristic zero, and consider the field K(&#119909;) of rational functions in an indeterminate &#119909; with coefficients in K. First formulated in <ref type="bibr">[Abr71]</ref>, the rational summation problem asks, for a given &#119891; (&#119909;) &#8712; K(&#119909;), to construct &#119892;(&#119909;), &#8462;(&#119909;) &#8712; K(&#119909;) such that &#119891; (&#119909;) = &#119892;(&#119909; + 1) -&#119892;(&#119909;) + &#8462;(&#119909;)</p><p>(1.1) and the degree of the denominator of &#8462;(&#119909;) is as small as possible. Such an &#8462;(&#119909;) is called a reduced form of &#119891; (&#119909;). The rational summation problem has a long and illustrious history [Abr71, Abr75, Moe77, Kar81, Pau95, Pir95, PS95, MS95, Abr95, Pol08]. It is clear that the problem admits a solution (by the well-ordering principle), and that such a solution is not unique, because for any solution (&#119892;(&#119909;), &#8462;(&#119909;)) we obtain another solution (&#119892;(&#119909;) -&#8462;(&#119909;), &#8462;(&#119909; +1)) since the degree of the denominator of &#8462;(&#119909; + 1) is the same as that of &#8462;(&#119909;).</p><p>In comparing the approaches in op. cit., one can then ask for the denominator of &#119892;(&#119909;) to be also as small as possible, and/or to compute some (any) solution (&#119892;(&#119909;), &#8462;(&#119909;)) to (1.1) as efficiently as possible.</p><p>We refer to the introduction of <ref type="bibr">[PS95]</ref> for a concise summary and comparison between most of these different approaches.</p><p>Every algorithm for solving the rational summation problem also addresses, as a byproduct, the rational summability problem of deciding, for a given &#119891; (&#119909;) &#8712; K(&#119909;), whether (just yes/no) there exists &#119892;(&#119909;) &#8712; K(&#119909;) such that &#119891; (&#119909;) = &#119892;(&#119909; + 1) -&#119892;(&#119909;), in which case we say &#119891; (&#119909;) is rationally summable. There are various algorithms for addressing this simpler question, designed to forego the usually expensive and often irrelevant computation of the certificate &#119892;(&#119909;), which are presented and discussed for example in [Mat00, GGSZ03, BCCL10, CS12, CHKL15, HW15, GHLZ22] and the references therein.</p><p>We center our attention on the approach to rational summability proposed in <ref type="bibr">[CS12]</ref>. The discrete residues of &#119891; (&#119909;) &#8712; K(&#119909;) are constants defined in terms of the complete partial fraction decomposition of &#119891; (&#119909;), and have the obstruction-theoretic property that they are all zero if and only if &#119891; (&#119909;) is rationally summable. Computing these discrete residues directly from their definition is impractical due to the high computational cost, or possible infeasibility, of factoring the denominator of &#119891; (&#119909;) into linear factors. We propose here algorithms for computing these discrete residues relying only on gcd computations and solving systems of linear equations in K. To be clear, the discrete residue data of an arbitrary &#119891; (&#119909;) are in general algebraic over K. We submit that it would be perverse to avoid expensive factorizations throughout the algorithm, only to demand them at the very end! Inspired by [BS93, Thm. 1] our output consists of pairs of polynomials with coefficients in K: one whose roots are the places where &#119891; (&#119909;) has non-zero discrete residues, the other whose evaluation at each such root gives the corresponding discrete residue (see &#167;3 for a more detailed description). Of course, any user who wishes to actually see the discrete residue data of &#119891; may use the K-polynomials produced by our algorithms to compute them explicitly to their heart's content and at their own risk.</p><p>Let us now describe our general strategy for computing discrete residues (cf. Algorithm 4). We apply iteratively Hermite reduction to &#119891; (&#119909;) in order to reduce to the special case where the denominator of &#119891; (&#119909;) is squarefree. Then we compute a reduced form f (&#119909;) of &#119891; (&#119909;) whose denominator is both squarefree and shift-free, so that the discrete residues of &#119891; (&#119909;) are the classical first-order residues of f (&#119909;). The factorization-free computation of the latter is finally achieved by <ref type="bibr">[Tra76,</ref><ref type="bibr">Lem. 5.1]</ref>.</p><p>Our proposed algorithms to compute discrete residues are obtained by combining in novel ways many old ingredients. Indeed, Hermite reduction is very old <ref type="bibr">[Ost45,</ref><ref type="bibr">Her72]</ref>, and its iteration in Algorithm 1 is already suggested in <ref type="bibr">[Hor71,</ref><ref type="bibr">&#167;5]</ref> for computing iterated integrals of rational functions. And yet, we have not seen this approach being more widely used in the literature, and it seems to us a good trick to have to hand. Indeed, we wonder whether it could provide a reasonable alternative, at least in some cases and for some purposes, to the algorithm in <ref type="bibr">[BS93]</ref> for symbolically computing complete partial fraction decompositions over the field of definition. Having thus reduced via Algorithm 1 to the case where &#119891; (&#119909;) has squarefree denominator, many of the varied earlier approaches to the summation and summability problems seem to accidentally collide into essentially the same procedure when restricted to this simpler situation. In this sense, our own reduction procedure described in &#167;5 strikes us as eerily similar to the one presented in [GGSZ03, &#167;5] over 20 years ago -that ours may look simpler is a direct consequence of its being restricted to a simpler class of inputs. The simplicity of our approach allows us to exercise a great deal of control over the form of the outputs, in ways that are particularly useful for developing some extensions of our basic procedures, elaborated in &#167;7. It is not obvious to us (but it would be interesting to see) how the same goals might be better accomplished differently, say by combining the reduction of <ref type="bibr">[GGSZ03]</ref> with the symbolic complete partial fraction decomposition algorithm of <ref type="bibr">[BS93]</ref>.</p><p>Our interest in computing discrete residues is motivated by the following variant of the summability problem, which often arises as a subproblem in algorithms for computing (differential) Galois groups associated with (shift) difference equations <ref type="bibr">[vdPS97,</ref><ref type="bibr">Hen98,</ref><ref type="bibr">HS08,</ref><ref type="bibr">Arr17]</ref>. Given several &#119891; 1 (&#119909;), . . . , &#119891; &#119899; (&#119909;) &#8712; K(&#119909;), compute (or decide non-existence) of 0 &#8800; v = (&#119907; 1 , . . . , &#119907; &#119899; ) &#8712; K &#119899; such that</p><p>for some &#119892; v (&#119909;) &#8712; K(&#119909;). Even if one wishes to compute the certificate &#119892; v (&#119909;) explicitly, it seems wasteful to perform a rational summation algorithm &#119899; times for each &#119891; &#119894; (&#119909;) separately to produce (&#119892; &#119894; (&#119909;), &#8462; &#119894; (&#119909;)) as in (1.1) as an intermediate step, because there is no guarantee that &#8462; v (&#119909;) = &#119894; &#119907; &#119894; &#8462; &#119894; (&#119909;) has smallest possible denominator, so one may need to perform the algorithm an (&#119899; + 1) st time to &#8462; v (&#119909;) in order to decide summability (this last step may be avoidable by making a more careful sequence of interrelated reduction choices; see e.g. <ref type="bibr">[CHKL15,</ref><ref type="bibr">&#167;5]</ref>). These inefficiencies are exacerbated in the more general context of creative telescoping problems [Zei90, Zei91, WZ92], where the unknown &#119907; &#119894; &#8712; K are replaced with unknown linear differential operators L &#119894; &#8712; K &#119889; &#119889;&#119909; (cf. [HS08, Prop. 3.1]). We refer to <ref type="bibr">[Che19]</ref> for a succinct and illuminating discussion of the history and computational aspects of creative telescoping problems, and in particular how the "fourth generation" reduction-based approaches bypass the computation of certificates, as our motivating problem (1.2) illustrates.</p><p>Our approach based on discrete residues makes it very straightforward how to accommodate several &#119891; &#119894; (&#119909;) simultaneously as in (1.2), which adaptation is less obvious (to us) how to carry out efficiently using other reduction methods. On the other hand, we share in the reader's disappointment that we offer hardly any theoretical or experimental evidence supporting the efficiency of our approach in contrast with other possible alternatives. In fact, we expect that our approach will not be universally more efficient than some future adaptation of <ref type="bibr">[GGSZ03,</ref><ref type="bibr">&#167;5]</ref> or [CHKL15, &#167;5] (for example) to the situation of (1.2), but rather that it can be a useful complement to them. We also expect that the conceptual simplicity of our approach will be useful in developing analogues to other related (but more technically challenging) contexts beyond the shift case, such as &#119902;-difference equations, Mahler difference equations, and elliptic difference equations, for which the corresponding notions of discrete residues have also been developed respectively in <ref type="bibr">[CS12]</ref>, <ref type="bibr">[AZ22,</ref><ref type="bibr">AZ23]</ref>, and <ref type="bibr">[HS21]</ref>.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2">PRELIMINARIES 2.1 Basic notation and conventions</head><p>We denote by N the set of strictly positive integers, and by K a computable field of characteristic zero in which it is feasible to compute integer solutions to arbitrary polynomial equations with coefficients in K. Such a field is termed canonical in <ref type="bibr">[Abr71]</ref>. We denote by K a fixed algebraic closure of K. We do not assume K is algebraically closed, and we will only refer to K in proofs or for defining theoretical notions, never for computations.</p><p>We work in the field K(&#119909;) of rational functions in a formal (transcendental) indeterminate &#119909;. For &#119891; (&#119909;) &#8712; K(&#119909;), we define &#120590; : &#119891; (&#119909;) &#8614; &#8594; &#119891; (&#119909; + 1); and &#916; : &#119891; (&#119909;) &#8614; &#8594; &#119891; (&#119909; + 1) -&#119891; (&#119909;).</p><p>Note that &#120590; is a K-linear field automorphism of K(&#119909;) and &#916; = &#120590;id is only a K-linear map with ker(&#916;) = K. We often suppress the functional notation and write &#119891; instead of &#119891; (&#119909;), &#120590; (&#119891; ) instead of &#119891; (&#119909; + 1), etc., when no confusion is likely to arise.</p><p>A proper rational function is either 0 or else has numerator of strictly smaller degree than that of the denominator. We assume implicitly throughout that rational functions are normalized to have monic denominator. Even when our rational functions are obtained as (intermediate) outputs of some procedures, we will take care to arrange things so that this normalization always holds. In particular, we also assume that the outputs of gcd and lcm procedures are also always normalized to be monic. An unadorned gcd or lcm or deg means that it is with respect to &#119909;. On the few occasions where we need a gcd with respect to a different variable &#119911;, we will write gcd &#119911; . We write &#119889; &#119889;&#119909; (resp., &#119889; &#119889;&#119911; ) for the usual derivation operator with respect to &#119909; (resp., with respect to &#119911;).</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.2">Partial fraction decompositions</head><p>, with deg(&#119887;) &#8805; 1 and gcd(&#119886;, &#119887;) = 1. Suppose further that &#119887; is squarefree, and that we are given a set &#119887; 1 , . . . , &#119887; &#119899; &#8712; K[&#119909;] of monic non-constant polynomials such that &#119899; &#119894;=1 &#119887; &#119894; = &#119887;. Then necessarily gcd(&#119887; &#119894; , &#119887; &#119895; ) = 1 whenever &#119894; &#8800; &#119895;, and there exist unique non-zero polynomials</p><p>. In this situation, we denote ParFrac(&#119891; ; &#119887; 1 , . . . , &#119887; &#119899; ) := (&#119886; 1 , . . . , &#119886; &#119899; ).</p><p>(2.1)</p><p>We emphasize that the computation of partial fraction decompositions (2.1) can be done very efficiently <ref type="bibr">[KT77]</ref>, provided that the denominator &#119887; of &#119891; has already been factored into pairwise relatively prime factors &#119887; &#119894; , which need not be irreducible in K[&#119909;]. One can similarly carry out such partial fraction decompositions more generally for pre-factored denominators &#119887; that are not necessarily squarefree. But here we only need to compute partial fraction decompositions for pre-factored squarefree denominators, in which case the notation (2.1) is conveniently light.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.3">Summability and dispersion</head><p>We say</p><p>For a reduced rational function &#119891; = &#119886; &#119887; &#8712; K(&#119909;) with gcd(&#119886;, &#119887;) = 1 and &#119887; &#8713; K, the polar dispersion pdisp(&#119891; ) := disp(&#119887;).</p><p>We denote by K/Z the set of orbits for the action of the additive group Z on K. For &#120572; &#8712; K, we denote</p><p>the unique orbit in K/Z containing &#120572;. We will often simply write &#120596; &#8712; K/Z whenever there is no need to reference a specific &#120572; &#8712; &#120596;. (3.2)</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3">DISCRETE RESIDUES AND SUMMABILITY</head><p>The relevance of discrete residues to the study of rational summability is captured by the following result. Discrete residues are also intimately related to the computation of reduced forms for &#119891; , in the sense that, as discussed in [CS12, &#167;2.4], every reduced form &#8462; of &#119891; as in (1.1) has the form</p><p>for some arbitrary choice of representatives &#120572; &#120596; &#8712; &#120596;. Conversely, for any &#8462; of the form (3.3), Proposition 3.2 immediately yields that &#119891;&#8462; is rationally summable. An equivalent characterization for &#8462; &#8712; K(&#119909;) to be a reduced form is for it to have polar dispersion 0 (see <ref type="bibr">[Abr75,</ref><ref type="bibr">Props. 4 &amp; 6]</ref>). By (3.3), knowing the dres(&#119891; , &#120596;, &#119896;) is thus "the same" as knowing some/all reduced forms &#8462; of &#119891; . But discrete residues still serve as a very useful organizing principle and technical tool, for both theoretical and practical computations. For a given &#119891; &#8712; K(&#119909;), our goal is to compute polynomials &#119861; &#119896; (&#119909;), &#119863; &#119896; (&#119909;) &#8712; K[&#119909;] for each &#119896; &#8712; N such that (&#119861; &#119896; , &#119863; &#119896; ) = (1, 0) if and only if dres(&#119891; , &#120596;, &#119896;) = 0 for every &#120596; &#8712; K (which holds for all but finitely many &#119896; &#8712; N) and, for the remaining &#119896; &#8712; N, we have 0 &#8804; deg(&#119863; &#119896; ) &lt; deg(&#119861; &#119896; ) and &#119861; &#119896; is squarefree with disp(&#119861; &#119896; ) = 0. These polynomials will have the property that the set of roots &#120572; &#8712; K of &#119861; &#119896; is a complete and irredundant set of representatives for all the orbits &#120596; &#8712; K/Z such that dres(&#119891; , &#120596;, &#119896;) &#8800; 0, and for each such root &#120572; &#8712; K such that &#119861; &#119896; (&#120572;) = 0, we have dres(&#119891; , &#120596; (&#120572;), &#119896;) = &#119863; &#119896; (&#120572;).</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4">ITERATED HERMITE REDUCTION</head><p>It is immediate that the polynomial part of &#119891; &#8712; K(&#119909;) in (3.1) is irrelevant, both for the study of summability as well as for the computation of discrete residues. So in this section we restrict our attention to proper rational functions &#119891; &#8712; K(&#119909;).</p><p>Our first task is to reduce to the case where &#119891; has squarefree denominator. In this section we describe how to compute &#119891; &#119896; &#8712; K(&#119909;) for &#119896; &#8712; N such that, relative to the theoretical partial fraction decomposition (3.1) of &#119891; , we have Output: A list (&#119891; 1 , . . . , &#119891; &#119898; ) of &#119891; &#119896; &#8712; K(&#119909;) satisfying (4.1), such that &#119888; &#119896; (&#120572;) = 0 for every &#119896; &gt; &#119898; and every &#120572; &#8712; K, with &#119891; &#119898; &#8800; 0.</p><p>Initialize loop: &#119898; &#8592; 0; &#119892; &#8592; &#119891; ; while &#119892; &#8800; 0 do (&#119892;, f &#119898;+1 ) &#8592; HermiteReduction(&#119892;); &#119898; &#8592; &#119898; + 1; end while; &#119891; &#119896; &#8592; (-1) &#119896; -1 (&#119896; -1)! f &#119896; ; return (&#119891; 1 , . . . , &#119891; &#119898; ).</p><p>Defining inductively &#119892; 0 := &#119891; and</p><p>for &#119896; &#8712; N as in Algorithm 1, we obtain by construction that all &#119892; &#119896; , f &#119896; &#8712; K(&#119909;) and every f &#119896; has squarefree denominator. Moreover,</p><p>and therefore the algorithm terminates with &#119892; &#119898; = 0. Moreover, it follows from (4.4) that</p><p>Therefore the elements (-1) &#119896; -1 (&#119896; -1)! f &#119896; are squarefree and satisfy (4.3), so they agree with the &#119891; &#119896; &#8712; K(&#119909;) satisfying (4.1). &#9633; Remark 4.3. As we mentioned in the introduction, we do not expect Algorithm 1 to be surprising to the experts. What is surprising to us is that this trick is not used more widely since being originally suggested in <ref type="bibr">[Hor71,</ref><ref type="bibr">&#167;5]</ref>. We expect the theoretical cost of computing HermiteList(&#119891; ) iteratively as in Algorithm 1 is essentially the same as that of computing HermiteReduction(&#119891; ) only once. This might seem counterintuitive, since the former is defined by applying the latter as many times as the highest order &#119898; of any pole of &#119891; . But the size of the successive inputs in the loop decreases so quickly that the cost of the first step essentially dominates the added cost of the remaining steps put together. This conclusion is already drawn in [Hor71, &#167;5] regarding the computational cost of computing iterated integrals of rational functions.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5">SIMPLE REDUCTION</head><p>The results of the previous section allow us to further restrict our attention to proper rational functions &#119891; &#8712; K(&#119909;) with simple poles, which we write uniquely as &#119891; = &#119886; &#119887; with &#119886;, &#119887; &#8712; K[&#119909;] such that &#119887; is monic and squarefree, and either &#119886; = 0 or else 0 &#8804; deg(&#119886;) &lt; deg(&#119887;).</p><p>Our next task is to compute a reduced form f &#8712; K(&#119909;) such that &#119891; -f is rationally summable and f has squarefree denominator as well as polar dispersion 0, which we accomplish in Algorithm 3. As we mentioned already in the introduction, many algorithms have been developed beginning with <ref type="bibr">[Abr71]</ref> that can compute such a reduced form, even without assuming &#119891; has only simple poles.</p><p>Algorithm 3 requires the computation of the following set of integers, originally defined in <ref type="bibr">[Abr71]</ref>.</p><p>The following Algorithm 2 for computing ShiftSet(&#119887;) is based on the observation already made in [Abr71, p. 326], but with minor modifications to optimize the computations.</p><p>Algorithm 2 ShiftSet procedure</p><p>Proof. As pointed out in [Abr71, p. 326], ShiftSet(&#119887;) is the set of positive integer roots of the resultant &#119877;(&#119911;) &#8712; K[&#119911;] defined in Algorithm 2, which is the same as the set of positive integer roots of the square-free part &#119877;(&#119911;)/gcd &#119911; &#119877;(&#119911;), &#119889;&#119877; &#119889;&#119911; (&#119911;) . It is clear that &#119877;(0) = 0, and since we do not care for this root, we are now looking for positive integer roots of the polynomial R(&#119911;) defined in Algorithm 2. It follows from the definition of &#119877;(&#119911;) that &#119877;(&#8467;) = 0 if and only if &#119877;(-&#8467;) = 0 for every &#8467; &#8712; K (not just for &#8467; &#8712; Z), and we see that this property is inherited by R(&#119911;). Since &#119911; &#8740; R(&#119911;), the even polynomial R(&#119911;) = &#119879; (&#119911; 2 ) for a unique &#119879; (&#119911;) &#8712; K[&#119911;], whose degree is evidently half of that of R(&#119911;). &#9633;</p><p>Remark 5.3. The role of the assumption that K be canonical (cf. &#167;2.1) is made only so that one can compute ShiftSet(&#119887;). We note that in [GGSZ03, &#167;6] a much more efficient (and general) algorithm than Algorithm 2 is described, which works for &#119887; &#8712; Z[&#119909;]. We remark that in order to compute ShiftSet(&#119887;) in general, it is sufficient to be able to compute a basis {&#119908; 1 , . . . , &#119908; &#119904; } of the Q-vector subspace of K spanned by the coefficients of the auxiliary polynomial &#119879; (&#119911;) &#8712; K[&#119909;] defined in Algorithm 2. Indeed, we could then write &#119879; (&#119911;) = &#119904; &#119895;=1 &#119908; &#119895; &#119879; &#119895; (&#119911;) with each &#119879; &#119895; (&#119911;) &#8712; Q[&#119911;] and simply compute the set of (square) integer roots of T (&#119911;) = gcd(&#119879; 1 , . . . ,&#119879; &#119904; ), which is the same as the set of (square) integer roots of &#119879; (&#119911;).</p><p>The previous Algorithm 2 to compute ShiftSet is called by the following Algorithm 3 to compute reduced forms of rational functions with squarefree denominators.</p><p>Proposition 5.4. Algorithm 3 is correct.</p><p>Proof. As in Algorithm 3, let &#119887; denote the denominator of &#119891; and let &#119878; = ShiftSet(&#119887;). Then indeed if &#119878; = &#8709;, pdisp(&#119891; ) = 0, so &#119891; is already reduced and there is nothing to do. Assume from Algorithm 3 SimpleReduction procedure Input: A proper rational function &#119891; &#8712; K(&#119909;) with squarefree denominator. Output: A proper rational function f &#8712; K(&#119909;) with squarefree denominator, such that &#119891; -f is rationally summable and either f = 0 or pdisp( f ) = 0.</p><p>end if; return f . now on that &#119878; &#8800; &#8709;, and let us consider roots of polynomials in K.</p><p>For each &#8467; &#8712; &#119878;, the roots of &#119892; &#8467; := gcd(&#119887;, &#120590; -&#8467; (&#119887;)) are those roots &#120572; of &#119887; such that &#120572;&#8467; is also a root of &#119887;. Therefore the roots of &#119866; = lcm(&#119892; &#8467; : &#8467; &#8712; &#119878;) are those roots &#120572; of &#119887; such that &#120572;&#8467; is also a root of &#119887; for some &#8467; &#8712; N (because all possible such &#8467; belong to &#119878;, by the definition of &#119878;). It follows that the roots of &#119887; 0 := &#119887;/&#119866; are those roots &#120572; of &#119887; such that &#120572;&#8467; is not a root of &#119887; for any &#8467; &#8712; N.</p><p>In particular, disp(&#119887; 0 ) = 0. We call &#119887; 0 the divisor of initial roots. Now the roots of &#119887; &#8467; := gcd(&#120590; -&#8467; (&#119887; 0 ), &#119887;) are those roots &#120572; of &#119887; such that &#120572;&#8467; is a root of &#119887; 0 , i.e., the roots of &#119887; which are precisely &#8467; shifts away from the initial root in their respective Z-orbits. It may happen that &#119887; &#8467; = 1 for some &#8467; &#8712; &#119878;, because even though each &#8467; &#8712; &#119878; is the difference between two roots of &#119887;, it might be that no such pair of roots of &#119887; involves any initial roots of &#119887; 0 . Writing</p><p>(5.1) Therefore we may uniquely decompose &#119891; into partial fractions as in (2.1) with respect to the factorization (5.1) as called by Algorithm 3,</p><p>. Now this f is a sum of proper rational functions with squarefree denominators, whence f also is proper with squarefree denominator. Since &#120590; &#8467; (&#119887; &#8467; ) = gcd(&#119887; 0 , &#120590; &#8467; (&#119887;)) is a factor of &#119887; 0 for each &#8467; &#8712; &#119873; and disp(&#119887; 0 ) = 0, we conclude that pdisp( f ) = 0. Finally, for each &#8467; &#8712; &#119873; -{0} we see that</p><p>whence &#119891; -f is a sum of rationally summable elements, and is therefore itself rationally summable. &#9633; Remark 5.5. As we stated in the introduction, Algorithm 3 strikes us as being conceptually similar to the one already developed in [GGSZ03, &#167;5], but its description is made simpler by our restriction to rational functions with simple poles only. Having a procedure that is easier for humans to read is not necessarily a computational virtue. But it is so in this case, because the relative simplicity of Algorithm 3 makes it also nimble and adaptable, enabling us in &#167;7 to easily modify it to pursue other related applications beyond plain rational summability.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="6">COMPUTATION OF DISCRETE RESIDUES</head><p>Now we wish to put together the algorithms presented in the earlier sections to compute symbolically all the discrete residues of an arbitrary proper &#119891; &#8712; K(&#119909;), in the sense described in &#167;3. In order to do this, we first recall the following result describing the sense in which we compute classical residues symbolically by means of an auxiliary polynomial, and its short proof which explains how to actually compute this polynomial in practice. Proof. Since the set of poles of &#119891; (all simple poles) is the set of roots of &#119887;, we know the classical first-order residue &#119888; 1 (&#120572;) of &#119891; at each &#120572; &#8712; K such that &#119887; (&#120572;) = 0 satisfies 0 &#8800; &#119888; 1 (&#120572;) = &#119886;(&#120572;)/ &#119889;&#119887; &#119889;&#119909; (&#120572;). Using the extended Euclidean algorithm we find the unique 0 &#8800; &#119903; in K[&#119909;] such that deg(&#119903; ) &lt; deg(&#119887;) and &#119903; &#8226; &#119889; &#119889;&#119909; (&#119887;) &#8801; &#119886; (mod &#119887;). &#9633; For &#119891; &#8712; K(&#119909;) satisfying the hypotheses of Lemma 6.1, we denote</p><p>where &#119887;, &#119903; &#8712; K[&#119909;] are also as in the notation of Lemma 6.1. We also define FirstResidues(0) := (1, 0), for convenience. With this, we can now describe the following simple Algorithm 4 to compute a symbolic representation of the discrete residues of &#119891; .</p><p>Theorem 6.2. Algorithm 4 is correct.</p><p>Proof. It follows from the correctness of Algorithm 1 proved in Lemma 4.2 that &#119891; has no poles of order greater than &#119898;, whence by Definition 3.1 every non-zero discrete residue of &#119891; has order at most &#119898;. Consider now f &#119896; := SimpleReduction(&#119891; &#119896; ), which by the correctness of Algorithm 3 is such that &#119891; &#119896; -f &#119896; is summable. We prove the correctness of Algorithm 4 for each &#119896; = 1, . . . , &#119898; depending on whether f &#119896; = 0 or not.</p><p>In case f &#119896; = 0, Algorithm 4 produces (&#119861; &#119896; , &#119863; &#119896; ) = (1, 0). In this case we also know that &#119891; &#119896; is summable, and therefore by (4.2)</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="7">EXTENSIONS AND APPLICATIONS</head><p>In this section we collect some modifications to the procedures described in the previous sections to produce outputs that allow for more immediate comparison of discrete residues across several rational functions and across different orders.</p><p>We begin with the parameterized summability problem (1.2) described in the introduction. Let f = (&#119891; 1 , . . . , &#119891; &#119899; ) &#8712; K(&#119909;) &#119899; be given, and suppose we wish to compute a K-basis for</p><p>f&#10217; is summable , (7.1) where &#10216;&#8226;, &#8226;&#10217; denotes the usual inner product. By Proposition 3.2, v = (&#119907; 1 , . . . , &#119907; &#119899; ) &#8712; &#119881; (f) &#8656;&#8658; &#119899; &#8721;&#65025; &#119894;=1 &#119907; &#119894; &#8226; dres(&#119891; &#119894; , &#120596;, &#119896;) = 0 (7.2) for every &#120596; &#8712; K/Z and every &#119896; &#8712; N. If only we knew how to write down this linear system explicitly, we would be able to solve for the unknown v. We can apply Algorithm 4 to each &#119891; &#119894; , and obtain DiscreteResidues(&#119891; &#119894; ) = (&#119861; &#119894;,1 , &#119863; &#119894;,1 ), . . . , (&#119861; &#119894;,&#119898; &#119894; , &#119863; &#119894;,&#119898; &#119894; )).</p><p>But it may happen that many different &#120572; &#119894;,&#119896; &#8712; K all belong to the same orbit &#120596; &#8712; K/Z and satisfy &#119861; &#119894;,&#119896; (&#120572; &#119894;,&#119896; ) = 0, which leads to very undesirable bookkeping problems.</p><p>To address this kind of problem, we introduce in Algorithm 5 a generalization of Algorithm 3 that computes reduced forms for several &#119891; 1 , . . . , &#119891; &#119899; compatibly, so that whenever &#119891; &#119894; and &#119891; &#119895; have nonzero residue of order a given &#119896; at a given orbit &#120596; if and only if &#119861; &#119894;,&#119896; and &#119861; &#119895;,&#119896; have a common root &#120572; &#8712; K such that &#120596; = &#120596; (&#120572;). For this purpose, we may assume as in &#167;5 that the &#119891; &#119894; are proper and, thanks to Algorithm 1, that they all have squarefree denominators.</p><p>Corollary 7.1. Algorithm 5 is correct.</p><p>Proof. The proof is very similar to that of Proposition 5.4, so we only sketch the main points. The key difference is that now &#119887; 0 has been defined so that for each root &#120572; of &#119887; 0 and each root &#120572; &#119894; of &#119887; &#119894; belonging to &#120596; (&#120572;) we have that &#120572; &#119894; -&#120572; &#8712; Z &#8805;0 . The roots of &#119887; &#119894;,&#8467; are precisely those roots of &#119887; &#119894; which are &#8467; steps away from the unique root of &#119887; 0 that belongs to the same orbit. By construction, the denominator of each f &#119894; is a factor of &#119887; 0 , which has disp(&#119887; 0 ) = 0 as before. &#9633; Remark 7.2. Algorithm 5 also allows us to fix the deficiency discussed in Remark 6.3. For a non-zero proper &#119891; &#8712; K(&#119909;), let us define (&#119891; 1 , . . . , &#119891; &#119898; ) := HermiteList(&#119891; ) as in Algorithm 4. If we now set ( f1 , . . . , f &#119898; ) := SimpleReduction + (&#119891; 1 , . . . , &#119891; &#119898; ), instead of f &#119896; := SimpleReduction(&#119891; &#119896; ) separately for &#119896; = 1, . . . , &#119898;, we will no longer have the problem of the &#119861; &#119896; being incompatible.</p><p>More generally, we can combine Algorithm 5 with the modification proposed in the above Remark 7.2 to compute symbolic representations of the discrete residues dres(&#119891; &#119894; , &#120596;, &#119896;) of several &#119891; 1 , . . . , &#119891; &#119899; &#8712; K(&#119909;), which are compatible simultaneously across the different &#119891; &#119894; as well as across the different &#119896; &#8712; N. This will be done in Algorithm 6, after explaining the following small necessary modification to the FirstResidues procedure defined in (6.1). For an &#119899;-tuple of proper rational functions f = (&#119891; 1 , . . . , &#119891; &#119899; ) with squarefree denominators, suppose FirstResidues(&#119891; &#119894; ) =: (&#119887; &#119894; , &#119903; &#119894; ) as in (6.1), and let &#119887; := lcm(&#119887; 1 , . . . , &#119887; &#119899; ). Letting &#119886; &#119894; := numer(&#119891; &#119894; ) and &#119889; &#119894; := &#119887; &#119887; &#119894; , we see that gcd(&#119887; &#119894; , &#119889; &#119894; ) = 1 because &#119887; is squarefree, and diagonal systems</p><p>where &#119903; 1 , . . . , &#119903; &#119899; &#8712; K(&#119909;) &#215; (8.1)</p><p>As shown in [vdPS97, &#167;2.2], the difference Galois group of (8.1) is</p><p>where &#119864; &#8838; Z &#119899; is the subgroup of e = (&#119890; 1 , . . . , &#119890; &#119899; ) such that</p><p>&#119901; e (8.2) for some &#119901; e &#8712; K(&#119909;) &#215; . Now suppose (8.2) holds, and let us write &#119891; &#119894; := &#119889; &#119889;&#119909; (&#119903; &#119894; )/&#119903; &#119894; for each &#119894; = 1, . . . , &#119899; and &#119892; e := &#119889; &#119889;&#119909; (&#119901; e )/&#119901; e , so that we have &#119890; 1 &#119891; 1 + &#8226; &#8226; &#8226; + &#119890; &#119899; &#119891; &#119899; = &#120590; (&#119892; e ) -&#119892; e . (8.3) At first glance, this looks like a version of problem (1.2), but it is even more special because the &#119891; &#119894; have only first-order residues, all in Z. So we can compute the Q-vector space &#119881; of solutions to (8.3) using SimpleReduction + (&#119891; 1 , . . . , &#119891; &#119899; ), just as in Proposition 7.4, as a preliminary step. Then we can compute a Z-basis e 1 , . . . , e &#119904; of the free abelian group &#7868; := &#119881; &#8745; Z &#119899; . Since each &#119892; e &#119895; has only simple poles with integer residues, one can compute explicitly &#119901; e &#119895; &#8712; K(&#119909;) such that &#119889; &#119889;&#119909; &#119901; &#119895; = &#119892; e &#119895; &#119901; e &#119895; , and thence constants &#120574; &#119895; &#8712; K &#215; such that r e &#119895; = &#120574; &#119895; . This reduces computation of &#119864; from the defining multiplicative condition (8.2) in K(&#119909;) &#215; modulo the subgroup {&#120590;</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="9">EXAMPLE</head><p>Let us conclude by illustrating some of our procedures on the following example considered in both <ref type="bibr">[PS95,</ref><ref type="bibr">MS95]</ref>. In order to make the computations easier for the human reader to follow, we have allowed ourselves to write down explicitly in this small example the irreducible factorizations of denominators. We emphasize and insist upon the fact that none of our procedures performs any such factorization.</p><p>Consider the rational function</p><p>We first compute HermiteList(&#119891; ) = (&#119891; 1 , &#119891; 2 , &#119891; 3 ) with &#119891; 1 = 787&#119909; 5 + 4803&#119909; 4 + 9659&#119909; 3 + 9721&#119909; 2 + 9502&#119909; + 5008 18000(&#119909; 2 + 1) (&#119909; + 3) (&#119909; 2 + 4&#119909; + 5) (&#119909; + 2)&#119909; ;</p><p>&#119891; 2 = -787&#119909; 3 + 3372&#119909; 2 + 4696&#119909; + 1030 18000(&#119909; 2 + 4&#119909; + 5)&#119909; (&#119909; + 2)</p><p>; and &#119891; 3 := -7&#119909; -1 300(&#119909; + 2)&#119909; ; using Algorithm 1. We apply the remaining procedures to &#119891; 1 onlythe remaining &#119891; 2 and &#119891; 3 are similar, and easier. Denoting &#119887; := (&#119909; 2 + 1) (&#119909; + 3) (&#119909; 2 + 4&#119909; + 5) (&#119909; + 2)&#119909; the monic denominator of &#119891; 1 , we compute with Algorithm 2 (or see by inspection) that ShiftSet(&#119887;) = {1, 2, 3}. The factorization &#119887; = &#119887; 0 &#119887; 1 &#119887; 2 &#119887; 3 computed within Algorithm 3 is given by &#119887; 0 = (&#119909; + 3) (&#119909; 2 + 4&#119909; + 5); &#119887; 1 = gcd(&#120590; -1 (&#119887; 0 ), &#119887;) = &#119909; + 2;</p><p>&#119887; 2 = gcd(&#120590; -2 (&#119887; 0 ), &#119887;) = &#119909; 2 + 1; &#119887; 3 = gcd(&#120590; -3 (&#119887; 0 ), &#119887;) = &#119909; . Let us compare this output (&#119861; 1 , &#119863; 1 ) with the discrete residues dres(&#119891; , &#120596;, 1) of &#119891; according to the Definition 3.1 in terms of classical residues. We see from the factorization of the denominator of &#119891; in (9.1) that its set of poles is -3, -2, 0,</p><p>and that each of these poles belongs to one of the three orbits</p><p>Therefore, &#119891; has no discrete residues outside of these orbits, and we verify that the set of roots {-3, &#8730; -1 -2, -&#8730; -1 -2} of the polynomial &#119861; 1 correctly contains precisely one representative from each of these orbits (subject to our verification below that the firstorder discrete residues of &#119891; at these orbits are actually non-zero!). We can compute directly in this small example that the classical first-order residues of &#119891; at the poles in &#120596; (0) are given by </p></div></body>
		</text>
</TEI>
