Giter VIP home page Giter VIP logo

tlsynth's Introduction

Exercises in Program Synthesis

This code implements the transformation learning described in Section 3.2 of the paper by Zhu, He, and Chaudhuri, "Auto-Join: Joining Tables by Leveraging Transformations" that appears in the Proceedings of the VLDB Endowment.

I make no claims of completeness of this implementation, it was basically a small enough problem to demonstrate various approaches to program synthesis on a real problem. It is unclear what approach the original authors used since they did not release their source code.

I acknowledge my colleague, Fatemeh Nargesian, who pointed the paper out to me.

This repository contains three approaches to solve the underlying program synthesis problem.

  • tl.py, uses a brute-force CSP-style approach.
  • tlsolv.py (and the code in solver.py) which implements a "deductive" program synthesis approach
  • cvcsolver.py, a prototype that uses a SMT solver (cvc5) to implement a solver, though it is slower than tlsolv.py and does not yet produce all possible solutions.

Examples

To run tl.py or tlsolv.py, run:

python3 ./tl.py tests/pres1.csv tests/pres2.csv
...
FUNCTION Concat(SplitSplitSubstr(ROW, 0, ' ', 1, '(', 0, 0, -1, Case.UNCHANGED), Concat(Constant(' '), SplitSubstr(ROW, 0, ',', 0, 0, -1, Case.UNCHANGED)))
...

For the other example, run:

python3 ./tlsolv.py tests/school1.csv tests/school2.csv --sc 1

tlsynth's People

Stargazers

Shuyang Liu avatar Woody avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.