[Paper Review] Inductive Predicate Synthesis Modulo Programs
This paper introduces Inductive Predicate Synthesis Modulo Programs (IPS-MP), a novel framework that enables efficient synthesis of inductive predicates—pure, loop-free Boolean functions—within program specifications. By reducing IPS-MP to constrained Horn clause (CHC) satisfiability, the approach leverages off-the-shelf CHC solvers for scalable verification, achieving polynomial-time decidability in the Boolean case and demonstrating practical effectiveness in smart contract verification via integration with SeaHorn.
A growing trend in program analysis is to encode verification conditions within the language of the input program. This simplifies the design of analysis tools by utilizing off-the-shelf verifiers, but makes communication with the underlying solver more challenging. Essentially, the analyzer operates at the level of input programs, whereas the solver operates at the level of problem encodings. To bridge this gap, the verifier must pass along proof-rules from the analyzer to the solver. For example, an analyzer for concurrent programs built on an inductive program verifier might need to declare Owicki-Gries style proof-rules for the underlying solver. Each such proof-rule further specifies how a program should be verified, meaning that the problem of passing proof-rules is a form of invariant synthesis. Similarly, many program analysis tasks reduce to the synthesis of pure, loop-free Boolean functions (i.e., predicates), relative to a program. From this observation, we propose Inductive Predicate Synthesis Modulo Programs (IPS-MP) which extends high-level languages with minimal synthesis features to guide analysis. In IPS-MP, unknown predicates appear under assume and assert statements, acting as specifications modulo the program semantics. Existing synthesis solvers are inefficient at IPS-MP as they target more general problems. In this paper, we show that IPS-MP admits an efficient solution in the Boolean case, despite being generally undecidable. Moreover, we show that IPS-MP reduces to the satisfiability of constrained Horn clauses, which is less general than existing synthesis problems, yet expressive enough to encode verification tasks. We provide reductions from challenging verification tasks -- such as parameterized model checking -- to IPS-MP. We realize these reductions with an efficient IPS-MP-solver based on SeaHorn, and describe a application to smart-contract verification.
Motivation & Objective
- To address the challenge of communicating declarative proof-rules from program analysis tools to off-the-shelf verifiers like SeaHorn.
- To formalize a new synthesis problem—Inductive Predicate Synthesis Modulo Programs (IPS-MP)—that captures common verification tasks such as invariant synthesis and compositional verification.
- To show that IPS-MP is efficiently decidable in the Boolean case, despite being generally undecidable.
- To demonstrate the practicality of IPS-MP through integration with SeaHorn and evaluation on real-world verification tasks, including smart contract verification.
Proposed method
- Formalize IPS-MP as a synthesis problem where unknown predicates appear under assume and assert statements, acting as specifications modulo program semantics.
- Reduce IPS-MP to the satisfiability of constrained Horn clauses (CHCs), enabling use of existing, efficient CHC solvers.
- Leverage the structure of Boolean programs to show that IPS-MP is decidable in polynomial time with respect to the number of states.
- Implement an IPS-MP solver within the SeaHorn verification framework, reusing its existing CHC-solving pipeline.
- Provide reductions from complex verification tasks—such as parameterized model checking and compositional invariant synthesis—to IPS-MP.
- Evaluate the solver on benchmarks including smart contract verification, comparing performance against general-purpose synthesis tools like HornSpec and CVC4.
Experimental results
Research questions
- RQ1Can inductive predicate synthesis be formalized as a problem that enables efficient communication of proof-rules between analysis tools and verifiers?
- RQ2Is IPS-MP decidable in the Boolean case, and if so, what is its computational complexity?
- RQ3Can IPS-MP be reduced to CHC satisfiability while preserving expressiveness for practical verification tasks?
- RQ4How does an IPS-MP solver based on off-the-shelf CHC solvers compare in performance to general-purpose synthesis tools like HornSpec and CVC4?
- RQ5Can IPS-MP be effectively applied to real-world verification problems such as parameterized systems and smart contract verification?
Key findings
- IPS-MP is efficiently decidable in the Boolean case, with a polynomial-time complexity in the number of states, despite being generally undecidable.
- The reduction of IPS-MP to CHC satisfiability enables the use of high-performance CHC solvers, resulting in superior performance compared to general-purpose synthesis tools like HornSpec and CVC4.
- The IPS-MP solver integrated into SeaHorn successfully verifies smart contracts by automatically synthesizing compositional invariants, eliminating the need for manual specification.
- CVC4 times out on all benchmarks, likely due to the lack of grammar support in IPS-MP, which challenges its enumerative search strategy.
- HornSpec is unsuitable for IPS-MP due to its reliance on regular tree grammars and constraints over algebraic data types, which are less efficient than Boolean or linear arithmetic constraints.
- The framework enables end-to-end automation of invariant synthesis in modular verification, as demonstrated in the SmartACE use case for Solidity smart contracts.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.