82 research outputs found

    Presburger arithmetic, rational generating functions, and quasi-polynomials

    Full text link
    Presburger arithmetic is the first-order theory of the natural numbers with addition (but no multiplication). We characterize sets that can be defined by a Presburger formula as exactly the sets whose characteristic functions can be represented by rational generating functions; a geometric characterization of such sets is also given. In addition, if p=(p_1,...,p_n) are a subset of the free variables in a Presburger formula, we can define a counting function g(p) to be the number of solutions to the formula, for a given p. We show that every counting function obtained in this way may be represented as, equivalently, either a piecewise quasi-polynomial or a rational generating function. Finally, we translate known computational complexity results into this setting and discuss open directions.Comment: revised, including significant additions explaining computational complexity results. To appear in Journal of Symbolic Logic. Extended abstract in ICALP 2013. 17 page

    Complexity of short Presburger arithmetic

    Full text link
    We study complexity of short sentences in Presburger arithmetic (Short-PA). Here by "short" we mean sentences with a bounded number of variables, quantifiers, inequalities and Boolean operations; the input consists only of the integers involved in the inequalities. We prove that assuming Kannan's partition can be found in polynomial time, the satisfiability of Short-PA sentences can be decided in polynomial time. Furthermore, under the same assumption, we show that the numbers of satisfying assignments of short Presburger sentences can also be computed in polynomial time

    Automatic Equivalence Structures of Polynomial Growth

    Get PDF
    In this paper we study the class EqP of automatic equivalence structures of the form ?=(D, E) where the domain D is a regular language of polynomial growth and E is an equivalence relation on D. Our goal is to investigate the following two foundational problems (in the theory of automatic structures) aimed for the class EqP. The first is to find algebraic characterizations of structures from EqP, and the second is to investigate the isomorphism problem for the class EqP. We provide full solutions to these two problems. First, we produce a characterization of structures from EqP through multivariate polynomials. Second, we present two contrasting results. On the one hand, we prove that the isomorphism problem for structures from the class EqP is undecidable. On the other hand, we prove that the isomorphism problem is decidable for structures from EqP with domains of quadratic growth

    Symbolic and analytic techniques for resource analysis of Java bytecode

    Get PDF
    Recent work in resource analysis has translated the idea of amortised resource analysis to imperative languages using a program logic that allows mixing of assertions about heap shapes, in the tradition of separation logic, and assertions about consumable resources. Separately, polyhedral methods have been used to calculate bounds on numbers of iterations in loop-based programs. We are attempting to combine these ideas to deal with Java programs involving both data structures and loops, focusing on the bytecode level rather than on source code

    Parametric Presburger Arithmetic: Complexity of Counting and Quantifier Elimination

    Full text link
    We consider an expansion of Presburger arithmetic which allows multiplication by kk parameters t1,,tkt_1,\ldots,t_k. A formula in this language defines a parametric set StZdS_\mathbf{t} \subseteq \mathbb{Z}^{d} as t\mathbf{t} varies in Zk\mathbb{Z}^k, and we examine the counting function St|S_\mathbf{t}| as a function of t\mathbf{t}. For a single parameter, it is known that St|S_t| can be expressed as an eventual quasi-polynomial (there is a period mm such that, for sufficiently large tt, the function is polynomial on each of the residue classes mod mm). We show that such a nice expression is impossible with 2 or more parameters. Indeed (assuming \textbf{P} \neq \textbf{NP}) we construct a parametric set St1,t2S_{t_1,t_2} such that St1,t2|S_{t_1, t_2}| is not even polynomial-time computable on input (t1,t2)(t_1,t_2). In contrast, for parametric sets StZdS_\mathbf{t} \subseteq \mathbb{Z}^d with arbitrarily many parameters, defined in a similar language without the ordering relation, we show that St|S_\mathbf{t}| is always polynomial-time computable in the size of t\mathbf{t}, and in fact can be represented using the gcd and similar functions.Comment: 14 pages, 1 figur

    Parametric Presburger arithmetic: complexity of counting and quantifier elimination

    Full text link
    We consider an expansion of Presburger arithmetic which allows multiplication by k parameters t1,…,tk. A formula in this language defines a parametric set St⊆Zd as t varies in Zk, and we examine the counting function |St| as a function of t. For a single parameter, it is known that |St| can be expressed as an eventual quasi‐polynomial (there is a period m such that, for sufficiently large t, the function is polynomial on each of the residue classes mod m). We show that such a nice expression is impossible with 2 or more parameters. Indeed (assuming P≠NP) we construct a parametric set St1,t2 such that |St1,t2| is not even polynomial‐time computable on input (t1,t2). In contrast, for parametric sets St⊆Zd with arbitrarily many parameters, defined in a similar language without the ordering relation, we show that |St| is always polynomial‐time computable in the size of t, and in fact can be represented using the gcd and similar functions.Peer Reviewedhttps://deepblue.lib.umich.edu/bitstream/2027.42/151911/1/malq201800068_am.pdfhttps://deepblue.lib.umich.edu/bitstream/2027.42/151911/2/malq201800068.pd

    Parametric Presburger arithmetic: logic, combinatorics, and quasi-polynomial behavior

    Get PDF
    Parametric Presburger arithmetic: logic, combinatorics, and quasi-polynomial behavior, Discrete Analysis 2017:4, 34 pp. Let TT be a triangle with vertices (0,0)(0,0), (0,1/3)(0,1/3), and (1,0)(1,0), and let tt be a positive integer. Then it is not hard to check that there are three quadratics q1,q2q_1,q_2 and q3q_3 such that the number of integer points in tTtT is qi(t)q_i(t) if tit\equiv i mod 3. In a situation like this, we say that the number of integer points is _quasipolynomial_ with period 3. In 1962, Ehrhart proved that if PP is a polytope in Zd\mathbb Z^d defined by a finite set of linear inequalities of the form ai.xbia_i.x\leq b_i, where each of the aia_i belong to Zd\mathbb Z^d and bb belongs to Z\mathbb Z, then the number of lattice points in tPtP is quasipolynomial with period mm, where mm is the smallest integer such that the vertices of mPmP are all lattice points. Since then, the same conclusion has been established for other families of sets StZdS_t\subset \mathbb Z^d by Chen, Li and Sam, by Calegari and Walker, and by Roune and Woods. After these results, it was tempting to wonder whether _all_ families of sets, provided that they are sufficiently nice in some appropriate sense, exhibit this quasipolynomial behaviour. The constraints would have to be reasonably strong -- for example, the number of lattice points inside the unit sphere of radius tt is certainly not quasipolynomial (and indeed, estimating it is a famous problem) -- but one could still hope for a general theorem that would encompass the known results and give a number of further ones. It turns out that the right behaviour to look for in general is that the size of StS_t should be _eventually_ quasipolynomial -- that is, it should agree with a quasipolynomial for sufficiently large tt. Woods conjectured that eventual quasipolynomial behaviour should occur whenever the family is definable in _parametric Presburger arithmetic_. Roughly what this means (for a more precise definition, see the paper) is that the family StS_t of subsets of Zd\mathbb Z^d can be defined using addition, inequalities, integer constants, Boolean operations, multiplication by tt, and quantification over Z\mathbb Z. The polytopes discussed earlier are examples. For a somewhat different kind of example, let StS_t be the set of positive integers nn such that there do not exist non-negative integers a,b,ca,b,c with n=at+b(t+1)+c(t+2)n=at+b(t+1)+c(t+2). This example involves quantification over Z\mathbb Z, but again the number of points in StS_t turns out to be quasipolynomial: in fact, it is t2/4\lfloor t^2/4 \rfloor (the paper also discusses a quasipolynomial formula for the maximum element of StS_t). Note that it is crucial in this definition that multiplication, except by the parameter tt, should not be allowed, since otherwise we would have the full power of Peano arithmetic, which is undecidable. The main result of this paper is a proof of this very appealing conjecture. The proof uses a series of reductions that make the family simpler and simpler until the result can be shown using previously developed methods. One of the reductions uses the well-known technique of quantifier elimination. However, this cannot be applied straightforwardly, owing to the multiplication-by-tt operation, which is not part of standard Presburger arithmetic (hence the word "parametric"). The paper also discusses the power of parametric Presburger arithmetic, which, considering the necessary restrictions, is greater than one might expect. Thus, it proves eventual quasipolynomial behaviour for an extremely wide class of families and is probably the most general result one could hope for along these lines. [Image created by Georgios Barmparis, Georgios Kopidakis and Ioannis Remediakis](http://www.mdpi.com/1996-1944/9/4/301/htm)</sup
    corecore