Introduction
In the domain of program synthesis, the search space for a program satisfying a specific requirement is often vast or infinite. A critical challenge is determining when a particular branch of this search space is "unrealizable"—meaning no program within that subset can ever satisfy the goal. Proving unrealizability allows synthesis tools to prune unproductive branches, significantly accelerating the search. However, existing unrealizability solvers often function as "black boxes," providing no interpretable proof or reusable insights. This paper introduces Wuldo, the first tool to automate Unrealizability Logic (UL), a Hoare-style framework that enables formal verification across infinite sets of programs through human-readable, reusable proofs.
Methodology: The Wuldo Framework
The authors propose W-UL, a weakest-precondition variant of Unrealizability Logic optimized for automation. Wuldo decouples the logical structure of a proof from the discovery of inductive facts, transforming a complex search problem into a structured constraint-satisfaction task.
Syntax-Directed Proof Skeletons
For a given program grammar, the sequence of logical rule applications is largely fixed by the grammar's structure. Wuldo leverages this by automatically generating a "proof skeleton"—a tree structure where logical predicates are initially left as parametric placeholders.
Parametric Verification Conditions (PVCs) and SyGuS
From the proof skeleton, Wuldo extracts Parametric Verification Conditions (PVCs). These constraints define the requirements that the placeholders must satisfy to constitute a valid proof. To resolve these placeholders, Wuldo employs Syntax-Guided Synthesis (SyGuS), tasking an underlying solver to find "nonterminal summaries"—formulas that satisfy the PVCs. A key innovation is a revised Rule of Adaptation, which bridges general summaries of grammar nonterminals with the specific context of a proof.
Evaluation and Results
Wuldo was evaluated against a suite of 132 benchmarks from three sources: Nope (Linear Integer Arithmetic problems), Messy (bitvector arithmetic), and S-UL (limit-point benchmarks requiring reasoning about infinite inputs and outputs).
Performance and Coverage
Wuldo demonstrated superior performance, successfully discharging verification conditions for 29 out of 33 core benchmarks. In comparison to Messy, the only other tool capable of handling complex expressions, Wuldo solved 18 more problems and operated 1.79x faster.
The Advantage of Proof Reuse
A significant benefit of the UL framework is the ability to reuse nonterminal summaries. Once a summary is synthesized (e.g., "this set of programs only outputs even numbers"), it can be applied to subsequent queries. In testing, this reuse capability made Wuldo 1.96x faster than starting from scratch.
Reasoning About Infinity
Wuldo successfully handled "limit-point" benchmarks, which involve reasoning about an infinite number of programs operating on infinite inputs. This capability represents a significant advancement over prior automated tools, which typically struggle with such hyperproperties.
Conclusion and Future Work
Wuldo represents a major step forward in automating unrealizability proofs by providing an interpretable and efficient alternative to black-box solvers. While currently limited by the capabilities of underlying SMT solvers—particularly regarding Linear Integer Arithmetic with infinite arrays—future iterations may incorporate specialized algorithms like ICE learning. Additionally, the authors plan to extend the logic to support nondeterministic language features.
Summary updated