{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,10,8]],"date-time":"2026-10-08T11:35:22Z","timestamp":1791459322306,"version":"4.3.4"},"reference-count":44,"publisher":"Association for Computing Machinery (ACM)","issue":"POPL","license":[{"start":{"date-parts":[[2019,12,20]],"date-time":"2019-12-20T00:00:00Z","timestamp":1576800000000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/"}],"funder":[{"DOI":"10.13039\/501100000923","name":"Australian Research Council","doi-asserted-by":"publisher","award":["ARC DP180104030"],"award-info":[{"award-number":["ARC DP180104030"]}],"id":[{"id":"10.13039\/501100000923","id-type":"DOI","asserted-by":"publisher"}]},{"DOI":"10.13039\/100005801","name":"Facebook","doi-asserted-by":"publisher","id":[{"id":"10.13039\/100005801","id-type":"DOI","asserted-by":"publisher"}]},{"DOI":"10.13039\/100000001","name":"National Science Foundation","doi-asserted-by":"publisher","award":["1737858, 1836936"],"award-info":[{"award-number":["1737858, 1836936"]}],"id":[{"id":"10.13039\/100000001","id-type":"DOI","asserted-by":"publisher"}]}],"content-domain":{"domain":["dl.acm.org"],"crossmark-restriction":true},"short-container-title":["Proc. ACM Program. Lang."],"published-print":{"date-parts":[[2020,1]]},"abstract":"<jats:p>\n            We propose a new approach to synthesize Datalog programs from input-output specifications. Our approach leverages query provenance to scale the counterexample-guided inductive synthesis (CEGIS) procedure for program synthesis. In each iteration of the procedure, a SAT solver proposes a candidate Datalog program, and a Datalog solver evaluates the proposed program to determine whether it meets the desired specification. Failure to satisfy the specification results in additional constraints to the SAT solver. We propose efficient algorithms to learn these constraints based on \u201c\n            <jats:italic>why<\/jats:italic>\n            \u201d and \u201c\n            <jats:italic>why not<\/jats:italic>\n            \u201d provenance information obtained from the Datalog solver. We have implemented our approach in a tool called ProSynth and present experimental results that demonstrate significant improvements over the state-of-the-art, including in synthesizing invented predicates, reducing running times, and in decreasing variances in synthesis performance. On a suite of 40 synthesis tasks from three different domains, ProSynth is able to synthesize the desired program in 10 seconds on average per task\u2014an order of magnitude faster than baseline approaches\u2014and takes only under a second each for 28 of them.\n          <\/jats:p>","DOI":"10.1145\/3371130","type":"journal-article","created":{"date-parts":[[2019,12,20]],"date-time":"2019-12-20T19:45:25Z","timestamp":1576871125000},"page":"1-27","update-policy":"https:\/\/doi.org\/10.1145\/crossmark-policy","source":"Crossref","is-referenced-by-count":31,"title":["Provenance-guided synthesis of Datalog programs"],"prefix":"10.1145","volume":"4","author":[{"given":"Mukund","family":"Raghothaman","sequence":"first","affiliation":[{"name":"University of Southern California, USA"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Jonathan","family":"Mendelson","sequence":"additional","affiliation":[{"name":"University of Pennsylvania, USA"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"David","family":"Zhao","sequence":"additional","affiliation":[{"name":"University of Sydney, Australia"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Mayur","family":"Naik","sequence":"additional","affiliation":[{"name":"University of Pennsylvania, USA"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Bernhard","family":"Scholz","sequence":"additional","affiliation":[{"name":"University of Sydney, Australia"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"320","published-online":{"date-parts":[[2019,12,20]]},"reference":[{"key":"e_1_2_2_1_1","volume-title":"Foundations of Databases: The Logical Level","author":"Abiteboul Serge","unstructured":"Serge Abiteboul , Richard Hull , and Victor Vianu . 1994. Foundations of Databases: The Logical Level ( 1 st ed.). Pearson . Serge Abiteboul, Richard Hull, and Victor Vianu. 1994. Foundations of Databases: The Logical Level (1st ed.). Pearson.","edition":"1"},{"key":"e_1_2_2_2_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-319-66158-2_44"},{"key":"e_1_2_2_3_1","doi-asserted-by":"publisher","DOI":"10.1109\/FMCAD.2013.6679385"},{"key":"e_1_2_2_5_1","doi-asserted-by":"publisher","DOI":"10.1145\/2723372.2742796"},{"key":"e_1_2_2_6_1","doi-asserted-by":"publisher","DOI":"10.1007\/3-540-44503-X_20"},{"key":"e_1_2_2_7_1","volume-title":"Proceedings of the 1974 ACM SIGFIDET Workshop on Data Description, Access and Control (SIGFIDET 1974)","author":"Chamberlin Donald","year":"1974","unstructured":"Donald Chamberlin and Raymond Boyce . 1974 . SEQUEL: A Structured English Query Language . In Proceedings of the 1974 ACM SIGFIDET Workshop on Data Description, Access and Control (SIGFIDET 1974) . ACM, 249\u2013264. Donald Chamberlin and Raymond Boyce. 1974. SEQUEL: A Structured English Query Language. In Proceedings of the 1974 ACM SIGFIDET Workshop on Data Description, Access and Control (SIGFIDET 1974) . ACM, 249\u2013264."},{"key":"e_1_2_2_8_1","doi-asserted-by":"publisher","DOI":"10.1561\/1900000006"},{"key":"e_1_2_2_9_1","doi-asserted-by":"publisher","DOI":"10.5555\/1182635.1164136"},{"key":"e_1_2_2_10_1","volume-title":"Inductive Logic Programming","author":"Cropper Andrew","unstructured":"Andrew Cropper and Stephen Muggleton . 2015. Logical Minimisation of Meta-Rules Within Meta-Interpretive Learning . In Inductive Logic Programming . Springer , 62\u201375. Andrew Cropper and Stephen Muggleton. 2015. Logical Minimisation of Meta-Rules Within Meta-Interpretive Learning. In Inductive Logic Programming . Springer, 62\u201375."},{"key":"e_1_2_2_11_1","volume-title":"Artificial Intelligence and Security in Computing Systems","author":"Czerniak Jacek","unstructured":"Jacek Czerniak and Hubert Zarzycki . 2003. Application of Rough Sets in the Presumptive Diagnosis of Urinary System Diseases . In Artificial Intelligence and Security in Computing Systems . Springer , 41\u201351. Jacek Czerniak and Hubert Zarzycki. 2003. Application of Rough Sets in the Presumptive Diagnosis of Urinary System Diseases. In Artificial Intelligence and Security in Computing Systems. Springer, 41\u201351."},{"key":"e_1_2_2_12_1","volume-title":"Tools and Algorithms for the Construction and Analysis of Systems (TACAS 2008)","author":"de Moura Leonardo","unstructured":"Leonardo de Moura and Nikolaj Bj\u00f8rner . 2008. Z3: An Efficient SMT Solver . In Tools and Algorithms for the Construction and Analysis of Systems (TACAS 2008) . Springer , 337\u2013340. Leonardo de Moura and Nikolaj Bj\u00f8rner. 2008. Z3: An Efficient SMT Solver. In Tools and Algorithms for the Construction and Analysis of Systems (TACAS 2008) . Springer, 337\u2013340."},{"key":"e_1_2_2_13_1","doi-asserted-by":"publisher","DOI":"10.14778\/2824032.2824039"},{"key":"e_1_2_2_14_1","doi-asserted-by":"publisher","DOI":"10.5441\/002\/icdt.2014.22"},{"key":"e_1_2_2_15_1","doi-asserted-by":"publisher","DOI":"10.1145\/3062341.3062351"},{"key":"e_1_2_2_16_1","doi-asserted-by":"publisher","DOI":"10.1016\/S0743-1066(99)00028-X"},{"key":"e_1_2_2_17_1","doi-asserted-by":"publisher","DOI":"10.5555\/1325851.1325929"},{"key":"e_1_2_2_18_1","doi-asserted-by":"publisher","DOI":"10.1145\/1265530.1265535"},{"key":"e_1_2_2_19_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-319-41540-6_23"},{"key":"e_1_2_2_20_1","doi-asserted-by":"publisher","DOI":"10.1145\/1807167.1807269"},{"key":"e_1_2_2_21_1","volume-title":"Inductive Programming: A Survey of Program Synthesis Techniques. In Approaches and Applications of Inductive Programming","author":"Kitzelmann Emanuel","year":"2010","unstructured":"Emanuel Kitzelmann . 2010 . Inductive Programming: A Survey of Program Synthesis Techniques. In Approaches and Applications of Inductive Programming . Springer , 50\u201373. Emanuel Kitzelmann. 2010. Inductive Programming: A Survey of Program Synthesis Techniques. In Approaches and Applications of Inductive Programming . Springer, 50\u201373."},{"key":"e_1_2_2_22_1","volume-title":"Datalog in Academia and Industry","author":"K\u00f6hler Sven","unstructured":"Sven K\u00f6hler , Bertram Lud\u00e4scher , and Yannis Smaragdakis . 2012. Declarative Datalog Debugging for Mere Mortals . In Datalog in Academia and Industry . Springer , 111\u2013122. Sven K\u00f6hler, Bertram Lud\u00e4scher, and Yannis Smaragdakis. 2012. Declarative Datalog Debugging for Mere Mortals. In Datalog in Academia and Industry . Springer, 111\u2013122."},{"key":"e_1_2_2_23_1","doi-asserted-by":"publisher","DOI":"10.1007\/s00778-018-0518-5"},{"key":"e_1_2_2_24_1","doi-asserted-by":"publisher","DOI":"10.1145\/566172.566174"},{"key":"e_1_2_2_25_1","doi-asserted-by":"publisher","DOI":"10.1007\/BF03037227"},{"key":"e_1_2_2_26_1","first-page":"11","article-title":"Scientific Knowledge Discovery Using Inductive Logic","volume":"42","author":"Muggleton Stephen","year":"1999","unstructured":"Stephen Muggleton . 1999 . Scientific Knowledge Discovery Using Inductive Logic Programming. Commun. ACM 42 , 11 (Nov. 1999), 42\u201346. Stephen Muggleton. 1999. Scientific Knowledge Discovery Using Inductive Logic Programming. Commun. ACM 42, 11 (Nov. 1999), 42\u201346.","journal-title":"Programming. Commun. ACM"},{"key":"e_1_2_2_27_1","doi-asserted-by":"publisher","DOI":"10.1007\/s10994-014-5471-y"},{"key":"e_1_2_2_28_1","volume-title":"Abstract DPLL and Abstract DPLL Modulo Theories. In International Conference on Logic for Programming Artificial Intelligence and Reasoning . Springer, 36\u201350","author":"Nieuwenhuis Robert","year":"2005","unstructured":"Robert Nieuwenhuis , Albert Oliveras , and Cesare Tinelli . 2005 . Abstract DPLL and Abstract DPLL Modulo Theories. In International Conference on Logic for Programming Artificial Intelligence and Reasoning . Springer, 36\u201350 . Robert Nieuwenhuis, Albert Oliveras, and Cesare Tinelli. 2005. Abstract DPLL and Abstract DPLL Modulo Theories. In International Conference on Logic for Programming Artificial Intelligence and Reasoning . Springer, 36\u201350."},{"key":"e_1_2_2_29_1","doi-asserted-by":"publisher","DOI":"10.1007\/BF03037228"},{"key":"e_1_2_2_30_1","volume-title":"Logical and Relational Learning","author":"Raedt Luc De","unstructured":"Luc De Raedt . 2008. Logical and Relational Learning . Springer . Luc De Raedt. 2008. Logical and Relational Learning. Springer."},{"key":"e_1_2_2_31_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-540-78652-8_1"},{"key":"e_1_2_2_32_1","doi-asserted-by":"publisher","DOI":"10.1109\/ICDE.2008.4497511"},{"key":"e_1_2_2_33_1","doi-asserted-by":"publisher","DOI":"10.1145\/3236024.3236034"},{"key":"e_1_2_2_34_1","doi-asserted-by":"publisher","DOI":"10.24963\/ijcai.2019\/847"},{"key":"e_1_2_2_35_1","doi-asserted-by":"publisher","DOI":"10.1145\/1926385.1926390"},{"key":"e_1_2_2_36_1","doi-asserted-by":"publisher","DOI":"10.1145\/1168857.1168907"},{"key":"e_1_2_2_37_1","doi-asserted-by":"publisher","DOI":"10.1145\/3062341.3062365"},{"key":"e_1_2_2_38_1","doi-asserted-by":"publisher","DOI":"10.1145\/3276527"},{"key":"e_1_2_2_39_1","doi-asserted-by":"publisher","DOI":"10.1145\/996841.996859"},{"key":"e_1_2_2_40_1","volume-title":"Proceedings of the 25th USENIX Security Symposium. USENIX Association, 363\u2013378","author":"Yun Insu","year":"2016","unstructured":"Insu Yun , Changwoo Min , Xujie Si , Yeongjin Jang , Taesoo Kim , and Mayur Naik . 2016 . APISan: Sanitizing API Usages Through Semantic Cross-Checking . In Proceedings of the 25th USENIX Security Symposium. USENIX Association, 363\u2013378 . https:\/\/www.usenix.org\/conference\/usenixsecurity16\/technical-sessions\/presentation\/yun Insu Yun, Changwoo Min, Xujie Si, Yeongjin Jang, Taesoo Kim, and Mayur Naik. 2016. APISan: Sanitizing API Usages Through Semantic Cross-Checking. In Proceedings of the 25th USENIX Security Symposium. USENIX Association, 363\u2013378. https:\/\/www.usenix.org\/conference\/usenixsecurity16\/technical-sessions\/presentation\/yun"},{"key":"e_1_2_2_41_1","doi-asserted-by":"publisher","DOI":"10.1007\/3-540-48166-4_16"},{"key":"e_1_2_2_42_1","doi-asserted-by":"publisher","DOI":"10.14778\/2735508.2735510"},{"key":"e_1_2_2_43_1","doi-asserted-by":"publisher","DOI":"10.1145\/2594291.2594327"},{"key":"e_1_2_2_44_1","volume-title":"Provenance for Large-scale Datalog. arXiv","author":"Zhao David","year":"1907","unstructured":"David Zhao , Pavle Suboti\u0107 , and Bernhard Scholz . 2019. Provenance for Large-scale Datalog. arXiv : 1907 .05045 In submission. David Zhao, Pavle Suboti\u0107, and Bernhard Scholz. 2019. Provenance for Large-scale Datalog. arXiv: 1907.05045 In submission."},{"key":"e_1_2_2_45_1","volume-title":"Proceedings of the National Computer Conference and Exposition (AFIPS","author":"Zloof Mosh\u00e9","year":"1975","unstructured":"Mosh\u00e9 Zloof . 1975 . Query by Example . In Proceedings of the National Computer Conference and Exposition (AFIPS 1975). ACM, 431\u2013438. Mosh\u00e9 Zloof. 1975. Query by Example. In Proceedings of the National Computer Conference and Exposition (AFIPS 1975). ACM, 431\u2013438."}],"container-title":["Proceedings of the ACM on Programming Languages"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3371130","content-type":"unspecified","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/3371130","content-type":"application\/pdf","content-version":"vor","intended-application":"syndication"},{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/3371130","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,6,18]],"date-time":"2025-06-18T19:05:43Z","timestamp":1750273543000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3371130"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2019,12,20]]},"references-count":44,"journal-issue":{"issue":"POPL","published-print":{"date-parts":[[2020,1]]}},"alternative-id":["10.1145\/3371130"],"URL":"https:\/\/doi.org\/10.1145\/3371130","relation":{},"ISSN":["2475-1421"],"issn-type":[{"value":"2475-1421","type":"electronic"}],"subject":[],"published":{"date-parts":[[2019,12,20]]},"assertion":[{"value":"2019-12-20","order":2,"name":"published","label":"Published","group":{"name":"publication_history","label":"Publication History"}}]}}