Provenance-guided synthesis of datalog programs

M Raghothaman, J Mendelson, D Zhao… - Proceedings of the …, 2019 - dl.acm.org
Proceedings of the ACM on Programming Languages, 2019dl.acm.org
We propose a new approach to synthesize Datalog programs from input-output
specifications. Our approach leverages query provenance to scale the counterexample-
guided inductive synthesis (CEGIS) procedure for program synthesis. In each iteration of the
procedure, a SAT solver proposes a candidate Datalog program, and a Datalog solver
evaluates the proposed program to determine whether it meets the desired specification.
Failure to satisfy the specification results in additional constraints to the SAT solver. We …
We propose a new approach to synthesize Datalog programs from input-output specifications. Our approach leverages query provenance to scale the counterexample-guided inductive synthesis (CEGIS) procedure for program synthesis. In each iteration of the procedure, a SAT solver proposes a candidate Datalog program, and a Datalog solver evaluates the proposed program to determine whether it meets the desired specification. Failure to satisfy the specification results in additional constraints to the SAT solver. We propose efficient algorithms to learn these constraints based on “why” and “why not” provenance information obtained from the Datalog solver. We have implemented our approach in a tool called ProSynth and present experimental results that demonstrate significant improvements over the state-of-the-art, including in synthesizing invented predicates, reducing running times, and in decreasing variances in synthesis performance. On a suite of 40 synthesis tasks from three different domains, ProSynth is able to synthesize the desired program in 10 seconds on average per task—an order of magnitude faster than baseline approaches—and takes only under a second each for 28 of them.
ACM Digital Library
以上显示的是最相近的搜索结果。 查看全部搜索结果