Programming by predicates: a formal model for interactive synthesis

Hila Peleg, Shachar Itzhaky, Sharon Shoham, Eran Yahav

Research output: Contribution to journalArticlepeer-review

Abstract

Program synthesis is the problem of computing from a specification a program that implements it. New and popular variations on the synthesis problem accept specifications in formats that are easier for the human synthesis user to provide: input–output example pairs, type information, and partial logical specifications. These are all partial specification formats, encoding only a fraction of the expected behavior of the program, leaving many matching programs. This transition into partial specification also changes the mode of work for the user, who now provides additional specifications until they are happy with the synthesis result. Therefore, synthesis becomes an iterative, interactive process. We present a formal model for interactive synthesis, parameterized by an abstract domain of predicates on programs. The abstract domain is used to describe both the iterative refinement of the specifications and reduction of the candidate program space. We motivate the need for a general feedback model via predicates by showing that examples, the most frequent specification tool, are an insufficient tool to differentiate between programs, even when used as a full specification. We use the formal model to describe the behavior of several real-world synthesizers. Additionally, we present two conditions for termination of a synthesis session, one hinging only on the properties of the available partial specifications, and the other also on the behavior of the user. Finally, we show conditions for realizability of the user’s intent, and show the limitations of backtracking when it is apparent a session will fail.

Original languageEnglish
Pages (from-to)165-193
Number of pages29
JournalActa Informatica
Volume57
Issue number1-2
DOIs
StatePublished - 1 Apr 2020

Fingerprint

Dive into the research topics of 'Programming by predicates: a formal model for interactive synthesis'. Together they form a unique fingerprint.

Cite this