Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Synthesis with underspecified functions #21

Open
2 tasks
Calvin-L opened this issue Jan 26, 2018 · 0 comments
Open
2 tasks

Synthesis with underspecified functions #21

Calvin-L opened this issue Jan 26, 2018 · 0 comments

Comments

@Calvin-L
Copy link
Collaborator

Sometimes it is useful to write "lenient" specifications, for instance:

return (any [c | c <- connections, c.writeable])

Cozy currently requires all specifications to be fully precise, in the sense that there is only one correct return value. This restricts how efficient its solutions can be when there are multiple possible correct answers and one answer is easier to compute than another.

One possible design that I endorse:

  • a function to_relational_form that converts any expression into a relation that describes its set of legal outputs
  • synthesis in core.py should be updated to use to_relational_form when checking correctness
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant