Learning to Represent Programs with Property Signatures

02/13/2020
by   Augustus Odena, et al.
0

We introduce the notion of property signatures, a representation for programs and program specifications meant for consumption by machine learning algorithms. Given a function with input type τ_in and output type τ_out, a property is a function of type: (τ_in, τ_out) →Bool that (informally) describes some simple property of the function under consideration. For instance, if τ_in and τ_out are both lists of the same type, one property might ask `is the input list the same length as the output list?'. If we have a list of such properties, we can evaluate them all for our function to get a list of outputs that we will call the property signature. Crucially, we can `guess' the property signature for a function given only a set of input/output pairs meant to specify that function. We discuss several potential applications of property signatures and show experimentally that they can be used to improve over a baseline synthesizer so that it emits twice as many programs in less than one-tenth of the time.

READ FULL TEXT
research
07/12/2019

Augmenting Type Signatures for Program Synthesis

Effective program synthesis requires a way to minimise the number of can...
research
12/08/2020

Generalized iterated-sums signatures

We explore the algebraic properties of a generalized version of the iter...
research
02/02/2018

Zero-Cost Coercions for Program and Proof Reuse

We introduce the notion of identity coercions between non-indexed and in...
research
05/30/2019

Proof-of-forgery for hash-based signatures

In the present work, a peculiar property of hash-based signatures allowi...
research
11/20/2014

Recommending the Most Encompassing Opposing and Endorsing Arguments in Debates

Arguments are essential objects in DirectDemocracyP2P, where they can oc...
research
11/26/2021

Modular Information Flow through Ownership

Statically analyzing information flow, or how data influences other data...
research
03/18/2020

Signature restriction for polymorphic algebraic effects

It has been well known that naively combining polymorphic effects and po...

Please sign up or login with your details

Forgot password? Click here to reset