We propose a novel approach to automating the synthesis of logic programs: Logic programs are synthesized as a by-product of the planning of a verification proof. The approach is a two-level one: At the object level, we prove program verification conjectures in a sorted, first-order theory. The conjectures are of the form \forall \overrightarrow{args.} prog(\overrightarrow {args}) \leftrightarrow spec(\overrightarrow{args}). At the meta-level, we plan the object-level verification with an unspecified program definition. The definition is represented with a (second-order) meta-level variable, which becomes instantiated in the course of the planning. This technique is an application of the Clam proof planning system. Clam is currently powerful enough to plan verification proofs for given programs. We show that, if Clam's use of middle-out reasoning is extended, it will also be able to synthesize programs.
CITATION STYLE
Kraan, I., Basin, D., & Bundy, A. (1993). Logic Program Synthesis via Proof Planning (pp. 1–14). https://doi.org/10.1007/978-1-4471-3560-9_1
Mendeley helps you to discover research relevant for your work.