Deciding Polynomial Termination Complexity for VASS Programs

We show that for every fixed degree k ≥ 3, the problem whether the termination/counter complexity of a given demonic VASS is O(n), Ω(n), and Θ(n) is coNP-complete, NP-complete, and DP-complete, respectively. We also classify the complexity of these problems for k ≤ 2. This shows that the polynomial-time algorithm designed for strongly connected demonic VASS in previous works cannot be extended to the general case. Then, we prove that the same problems for VASS games are PSPACE-complete. Again, we classify the complexity also for k ≤ 2. Tractable subclasses of demonic VASS and VASS games are obtained by bounding certain structural parameters, which opens the way to applications in program analysis despite the presented lower complexity bounds. 2012 ACM Subject Classification Theory of computation → Models of computation

[1]  Jérôme Leroux Polynomial Vector Addition Systems With States , 2018, ICALP.

[2]  Albert R. Meyer,et al.  The Complexity of the Finite Containment Problem for Petri Nets , 1981, JACM.

[3]  Slawomir Lasota,et al.  The Reachability Problem for Petri Nets Is Not Elementary , 2018, J. ACM.

[4]  Elvira Albert,et al.  Termination and Cost Analysis with COSTA and its User Interfaces , 2009, Electron. Notes Theor. Comput. Sci..

[5]  Zhong Shao,et al.  Automated Resource Analysis with Coq Proof Objects , 2017, CAV.

[6]  Jérôme Leroux,et al.  Efficient Analysis of VASS Termination Complexity , 2020, LICS.

[7]  Manfred Broy,et al.  On the Algebraic Specification of Nondeterministic Programming Languages , 1981, CAAP.

[8]  Krishnendu Chatterjee,et al.  Efficient Algorithms for Asymptotic Bounds on Termination Time in VASS , 2018, LICS.

[9]  Martin Hofmann,et al.  Multivariate amortized resource analysis , 2012, TOPL.

[10]  Jürgen Giesl,et al.  Analyzing Program Termination and Complexity Automatically with AProVE , 2016, Journal of Automated Reasoning.

[11]  Florian Zuleger The Polynomial Complexity of Vector Addition Systems with States , 2020, FoSSaCS.

[12]  Sumit Gulwani,et al.  SPEED: precise and efficient static estimation of program computational complexity , 2009, POPL '09.

[13]  Helmut Veith,et al.  Complexity and Resource Bound Analysis of Imperative Programs Using Difference Constraints , 2017, Journal of Automated Reasoning.

[14]  Krishnendu Chatterjee,et al.  Deciding Fast Termination for Probabilistic VASS with Nondeterminism , 2019, ATVA.

[15]  Paul Feautrier,et al.  Multi-dimensional Rankings, Program Termination, and Complexity Bounds of Flowchart Programs , 2010, SAS.

[16]  Helmut Veith,et al.  A simple and scalable static analysis for bound analysis and amortized complexity analysis , 2014, Software Engineering.

[17]  Reiner Hähnle,et al.  Resource Analysis of Complex Programs with Cost Equations , 2014, APLAS.