Skip to main content
QUICK REVIEW

[Paper Review] What's hard about Boolean Functional Synthesis

S. Akshay, Supratik Chakraborty|arXiv (Cornell University)|Apr 16, 2018
Formal Methods in VerificationComputer Science32 references5 citations
TL;DR

This paper presents a two-phase algorithm for Boolean functional synthesis that first efficiently generates polynomial-sized Skolem functions using SAT solvers, achieving success on 97% of disjunctive decomposition benchmarks and 72% of arithmetic benchmarks. When Phase 1 fails, a CEGAR-based second phase constructs correct but potentially exponential-sized functions, with theoretical guarantees showing that such hardness is unavoidable under standard complexity assumptions.

ABSTRACT

Given a relational specification between Boolean inputs and outputs, the goal of Boolean functional synthesis is to synthesize each output as a function of the inputs such that the specification is met. In this paper, we first show that unless some hard conjectures in complexity theory are falsified, Boolean functional synthesis must necessarily generate exponential-sized Skolem functions, thereby requiring exponential time, in the worst-case. Given this inherent hardness, what does one do to solve the problem? We present a two-phase algorithm for Boolean functional synthesis, where the first phase is efficient both in terms of time and sizes of synthesized functions, and solves an overwhelming majority of benchmarks. To explain this surprisingly good performance, we provide a sufficient condition under which the first phase must produce exact correct answers. When this condition fails, the second phase builds upon the result of the first phase, possibly requiring exponential time and generating exponential-sized functions in the worst-case. Detailed experimental evaluation shows our algorithm to perform better than state-of-the-art techniques for a majority of benchmarks.

Motivation & Objective

  • To understand the inherent theoretical hardness of Boolean functional synthesis under standard complexity assumptions.
  • To develop a practical algorithm that efficiently solves a large fraction of real-world benchmarks despite worst-case intractability.
  • To identify sufficient structural conditions under which the first phase of the algorithm guarantees correctness.
  • To evaluate the performance of the proposed algorithm against state-of-the-art tools on diverse benchmark suites.

Proposed method

  • Phase 1 uses polynomially many calls to an NP oracle (SAT solver) to generate candidate Skolem functions of polynomial size.
  • The algorithm checks correctness of Phase 1 outputs using an approximate model counter to estimate the goodness ratio (fraction of counterexamples).
  • Phase 1 succeeds when the input structure satisfies a sufficient condition related to ROBDD-like representations, ensuring correctness.
  • When Phase 1 fails, Phase 2 employs a CEGAR-based approach to iteratively refine candidate functions using SAT solving and counterexample analysis.
  • The second phase builds correct Skolem functions from Phase 1 candidates, potentially resulting in exponential-sized outputs in the worst case.
  • Theoretical analysis shows that super-polynomial or exponential-sized Skolem functions are unavoidable unless major complexity-theoretic conjectures are false.

Experimental results

Research questions

  • RQ1Under what complexity-theoretic assumptions is Boolean functional synthesis provably hard, requiring super-polynomial time or space?
  • RQ2Can a two-phase algorithm be designed such that the first phase is efficient and solves a large fraction of practical benchmarks?
  • RQ3What structural properties of the input specification guarantee correctness of the first-phase candidate Skolem functions?
  • RQ4How does the performance of the proposed algorithm compare to state-of-the-art tools across diverse benchmark categories?
  • RQ5To what extent can approximate model counting be used to efficiently validate the quality of candidate Skolem functions in Phase 1?

Key findings

  • Phase 1 successfully solved 35 out of 48 arithmetic benchmarks (72.9%), 66 out of 68 disjunctive decomposition benchmarks (97.1%), and all 5 factorization benchmarks.
  • For 13 benchmarks where Phase 2 was initiated, the goodness ratio was below 0.002, indicating high-quality candidates at the start of Phase 2.
  • Phase 2 completed for 13 benchmarks with low goodness ratios, but failed on 27 QBFEval benchmarks with goodness ratios >0.9, indicating persistent counterexamples.
  • bfss solved 231 benchmarks that Cadet could not, 94 that parSyn could not, 231 that RSynth could not, and 92 that AbsSynthe-Skolem could not.
  • On disjunctive decomposition and factorization benchmarks, bfss outperformed Cadet, parSyn, and AbsSynthe-Skolem in both time and number of solved instances.
  • Theoretical results show that unless P = NP, or the Polynomial Hierarchy collapses, or the non-uniform exponential time hypothesis fails, Boolean functional synthesis must require super-polynomial time or generate super-polynomial-sized Skolem functions.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.