A Primal-Dual Perspective on Program Verification Algorithms

Takeshi Tsukada*, Hiroshi Unno, Oded Padon, Sharon Shoham

*Corresponding author for this work

Research output: Contribution to journalArticlepeer-review

Abstract

Many algorithms in verification and automated reasoning leverage some form of duality between proofs and refutations or counterexamples. In most cases, duality is only used as an intuition that helps in understanding the algorithms and is not formalized. In other cases, duality is used explicitly, but in a specially tailored way that does not generalize to other problems. In this paper we propose a unified primal-dual framework for designing verification algorithms that leverage duality. To that end, we generalize the concept of a Lagrangian that is commonly used in linear programming and optimization to capture the domains considered in verification problems, which are usually discrete, e.g., powersets of states, predicates, ranking functions, etc. A Lagrangian then induces a primal problem and a dual problem. We devise an abstract primal-dual procedure that simultaneously searches for a primal solution and a dual solution, where the two searches guide each other. We provide sufficient conditions that ensure that the procedure makes progress under certain monotonicity assumptions on the Lagrangian. We show that many existing algorithms in program analysis, verification, and automated reasoning can be derived from our algorithmic framework with a suitable choice of Lagrangian. The Lagrangian-based formulation sheds new light on various characteristics of these algorithms, such as the ingredients they use to ensure monotonicity and guarantee progress. We further use our framework to develop a new validity checking algorithm for fixpoint logic over quantified linear arithmetic. Our prototype achieves promising results and in some cases solves instances that are not solved by state-of-the-art techniques.

Original languageEnglish
Article number68
JournalProceedings of the ACM on Programming Languages
Volume9
DOIs
StatePublished - 7 Jan 2025

Funding

FundersFunder number
Azrieli Foundation
European Research Council
Japan Society for the Promotion of ScienceJP24H00699, JP20H04162, JP23K24820, JP23K24826, JP20H05703, JP19H04084
Israel Science Foundation2117/23
Horizon 2020759102-SVIS

    Keywords

    • Lagrangian
    • primal-dual method
    • verification

    Fingerprint

    Dive into the research topics of 'A Primal-Dual Perspective on Program Verification Algorithms'. Together they form a unique fingerprint.

    Cite this