Ramsey Quantifiers in Linear Arithmetics

被引:1
|
作者
Bergstraesser, Pascal [1 ]
Ganardi, Moses [2 ]
Lin, Anthony W. [1 ,2 ]
Zetzsche, Georg [2 ]
机构
[1] Univ Kaiserslautern Landau, Kaiserslautern, Germany
[2] MPI SWS, Kaiserslautern, Germany
来源
PROCEEDINGS OF THE ACM ON PROGRAMMING LANGUAGES-PACMPL | 2024年 / 8卷 / POPL期
基金
欧洲研究理事会;
关键词
Ramsey Quantifiers; Satisfiability Modulo Theories; Linear Integer Arithmetic; Linear Real Arithmetic; Monadic Decomposability; Liveness; Termination; Infinite Chains; Infinite Cliques; PUSHDOWN TIMED AUTOMATA; REACHABILITY ANALYSIS; MODEL CHECKING;
D O I
10.1145/3632843
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
We study Satisfiability Modulo Theories (SMT) enriched with the so-called Ramsey quantifiers, which assert the existence of cliques (complete graphs) in the graph induced by some formulas. The extended framework is known to have applications in proving program termination (in particular, whether a transitive binary predicate is well-founded), and monadic decomposability of SMT formulas. Our main result is a new algorithm for eliminating Ramsey quantifiers from three common SMT theories: Linear Integer Arithmetic (LIA), Linear Real Arithmetic (LRA), and Linear Integer Real Arithmetic (LIRA). In particular, if we work only with existentially quantified formulas, then our algorithm runs in polynomial time and produces a formula of linear size. One immediate consequence is that checking well-foundedness of a given formula in the aforementioned theory defining a transitive predicate can be straightforwardly handled by highly optimized SMT-solvers. We show also how this provides a uniform semi-algorithm for verifying termination and liveness with completeness guarantee (in fact, with an optimal computational complexity) for several well-known classes of infinite-state systems, which include succinct timed systems, one-counter systems, and monotonic counter systems. Another immediate consequence is a solution to an open problem on checking monadic decomposability of a given relation in quantifier-free fragments of LRA and LIRA, which is an important problem in automated reasoning and constraint databases. Our result immediately implies decidability of this problem with an optimal complexity (coNP-complete) and enables exploitation of SMT-solvers. It also provides a termination guarantee for the generic monadic decomposition algorithm of Veanes et al. for LIA, LRA, and LIRA. We report encouraging experimental results on a prototype implementation of our algorithms on micro-benchmarks.
引用
收藏
页码:1 / 32
页数:32
相关论文
共 50 条
  • [41] Termination Analysis of linear Loop Programs
    Yu, Wei
    Zhao, Xiaoyan
    ICICTA: 2009 SECOND INTERNATIONAL CONFERENCE ON INTELLIGENT COMPUTATION TECHNOLOGY AND AUTOMATION, VOL IV, PROCEEDINGS, 2009, : 677 - +
  • [42] Termination proofs for linear simple loops
    Hong Yi Chen
    Shaked Flur
    Supratik Mukhopadhyay
    International Journal on Software Tools for Technology Transfer, 2015, 17 : 47 - 57
  • [43] Equality detection for linear arithmetic constraints
    Li Li
    Kai-duo He
    Ming Gu
    Xiao-yu Song
    Journal of Zhejiang University-SCIENCE A, 2009, 10 : 1784 - 1789
  • [44] Linear Gradient Quality of ATRP Copolymers
    Van Steenberge, Paul H. M.
    D'hooge, Dagmar R.
    Wang, Yu
    Zhong, Mingjiang
    Reyniers, Marie-Francoise
    Konkolewicz, Dominik
    Matyjaszewski, Krzysztof
    Marin, Guy B.
    MACROMOLECULES, 2012, 45 (21) : 8519 - 8531
  • [45] A general approach to heteroscedastic linear regression
    David S. Leslie
    Robert Kohn
    David J. Nott
    Statistics and Computing, 2007, 17 : 131 - 146
  • [46] Analysis of Linear Hybrid Systems in CLP
    Banda, Gourinath
    Gallagher, John P.
    LOGIC-BASED PROGRAM SYNTHESIS AND TRANSFORMATION, 2009, 5438 : 55 - 70
  • [47] Equality detection for linear arithmetic constraints
    Li, Li
    He, Kai-duo
    Gu, Ming
    Song, Xiao-yu
    JOURNAL OF ZHEJIANG UNIVERSITY-SCIENCE A, 2009, 10 (12): : 1784 - 1789
  • [48] Termination of linear programs with nonlinear constraints
    Xia, Bican
    Zhang, Zhihai
    JOURNAL OF SYMBOLIC COMPUTATION, 2010, 45 (11) : 1234 - 1249
  • [49] LINEAR DEPENDENT TYPES AND RELATIVE COMPLETENESS
    Dal Lago, Ugo
    Gaboardi, Marco
    LOGICAL METHODS IN COMPUTER SCIENCE, 2012, 8 (04)
  • [50] Finite Bisimulations for Switched Linear Systems
    Gol, Ebru Aydin
    Ding, Xuchu
    Lazar, Mircea
    Belta, Calin
    IEEE TRANSACTIONS ON AUTOMATIC CONTROL, 2014, 59 (12) : 3122 - 3134