Breaking the Mold: Nonlinear Ranking Function Synthesis Without Templates
Preprint
Abstract
This paper studies the problem of synthesizing (lexicographic) polynomial ranking functions for loops that can be described in polynomial arithmetic over integers and reals. While the analogous ranking function synthesis problem for linear arithmetic is decidable, even checking whether a given function ranks an integer loop is undecidable in the nonlinear setting. We side-step the decidability barrier by working within the theory of linear integer/real rings (LIRR) rather than the standard model of arithmetic. We develop a termination analysis that is guaranteed to succeed if a loop (expressed as a formula) admits a (lexicographic) polynomial ranking function. In contrast to template-based ranking function synthesis in real arithmetic, our completeness result holds for lexicographic ranking functions of unbounded dimension and degree, and effectively subsumes linear lexicographic ranking function synthesis for linear integer loops.Keywords
All Related Versions
- Version 1, 2024-09-26, ArXiv
- Published version: , 431.
This publication has 21 references indexed in Scilit:
- Ultimate Automizer and the CommuHash Normal Form2023
- Termination of Single-Path Polynomial Loop Programs2016
- Termination Analysis of Probabilistic Programs Through Positivstellensatz’s2016
- Refinement of Trace Abstraction2009
- Discovering Non-linear Ranking Functions by Solving Semi-algebraic SystemsLecture Notes in Computer Science, 2007
- The Polyranking Principle2005
- Linear Ranking with Reachability2005
- Proving Program Invariance and Termination by Parametric Abstraction, Lagrangian Relaxation and Semidefinite Programming2005
- A Complete Method for the Synthesis of Linear Ranking Functions2004
- Termination of Linear Programs2004