Sciduction: combining induction, deduction, and structure for verification and synthesis

Sanjit A. Seshia

Introduction

Formal verification—the mathematical proof of system correctness—is a cornerstone of reliable engineering. Traditionally, this process relies on deduction: constructing a formal model of a system ($S$) and its environment ($E$), and then using a model checker or theorem prover to verify if a property ($\Phi$) holds.

Figure 1: The traditional formal verification process involving system composition and property verification.

However, this idealized deductive approach faces significant real-world hurdles:

  1. Environment Modeling Complexity: Modern hardware, such as CPUs with complex caches and pipelines, is often too intricate for manual formal modeling.
  2. Incomplete Specifications: In domains like malware analysis, formal specifications are absent; the obfuscated code is the only source of truth.
  3. Computational Intractability: Many synthesis and verification problems, particularly for non-linear hybrid systems, are mathematically undecidable or NP-hard.

To address these, Sanjit A. Seshia proposes Sciduction (Structure-constrained Induction and Deduction), a hybrid framework that mimics human problem-solving by alternating between pattern recognition (induction) and rule-based reasoning (deduction).

The Sciductive Framework

The core of Sciduction is defined by the triple $\langle \mathcal{H}, \mathcal{I}, \mathcal{D} \rangle$:

  • Structure Hypothesis ($\mathcal{H}$): This represents the "inductive bias." It constrains the search space by assuming a specific mathematical form for the solution (e.g., a specific library of components).
  • Inductive Inference Engine ($\mathcal{I}$): An active learning component that generates hypotheses and queries an oracle for validation.
  • Deductive Engine ($\mathcal{D}$): A lightweight logic procedure (e.g., an SMT solver) that serves as the oracle, providing labels or counterexamples to guide the learner.

A key theoretical contribution is Conditional Soundness: if the structure hypothesis $\mathcal{H}$ is valid, the sciductive process is guaranteed to produce a correct result.

Application Domains and Evaluation

The framework was evaluated across three challenging domains using specific benchmarks:

  • Timing Analysis (GAMETIME): Predicting execution time for a modular exponentiation function on a simulated StrongARM-1100 processor.
  • Program Deobfuscation: Recovering functionality from malicious-style C code fragments heavily laden with junk code.
  • Controller Synthesis: Designing switching logic for a 3-gear automatic transmission with non-linear dynamics.

Key Insights and Results

Sciduction leverages deduction not to solve the entire problem, but to "teach" the inductive learner. By assuming a solution structure, the framework makes complex problems tractable.

Figure 2: The synthesis problem: generating a system S that satisfies property Φ within environment E.

Experimental Highlights

  • GAMETIME: For a benchmark with 256 possible paths, the tool achieved perfect execution time prediction by measuring only 9 basis paths. It successfully identified the worst-case execution time (WCET) and the specific input causing it.
  • Deobfuscation: The system re-synthesized clean, functional code from obfuscated fragments in under 0.5 seconds, effectively filtering out syntactic noise.
  • Controller Synthesis: The framework synthesized safety-critical guards for an automatic transmission, ensuring speed limits were maintained while optimizing fuel efficiency.

Limitations and Future Outlook

The primary limitation of Sciduction is its dependence on the Structure Hypothesis. If $\mathcal{H}$ is incorrectly specified, the system may fail to find a valid solution. Currently, there is no general method for automatically verifying the validity of $\mathcal{H}$.

Future research directions include scaling Sciduction to large-scale codebases, applying it to Linear Temporal Logic (LTL) synthesis, and improving hardware-software interface verification where environment modeling remains a bottleneck.

Summary updated

BibTeX
@inproceedings{seshia2012sciduction,
  author = {Sanjit A. Seshia},
  title = {{Sciduction: combining induction, deduction, and structure for verification and synthesis}},
  booktitle = {DAC},
  year = {2012},
  doi = {10.1145/2228360.2228425},
}
Figure