{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,10,2]],"date-time":"2026-10-02T07:57:21Z","timestamp":1790927841278,"version":"4.1.0"},"reference-count":91,"publisher":"Association for Computing Machinery (ACM)","issue":"POPL","license":[{"start":{"date-parts":[[2023,1,9]],"date-time":"2023-01-09T00:00:00Z","timestamp":1673222400000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/"}],"funder":[{"DOI":"10.13039\/100000185","name":"Defense Advanced Research Projects Agency","doi-asserted-by":"publisher","award":["FA8750-19-C-0004"],"award-info":[{"award-number":["FA8750-19-C-0004"]}],"id":[{"id":"10.13039\/100000185","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":[[2023,1,9]]},"abstract":"<jats:p>Given a set of candidate Datalog rules, the Datalog synthesis-as-rule-selection problem chooses a subset of these rules that satisfies a specification (such as an input-output example). Building off prior work using counterexample-guided inductive synthesis, we present a progression of three solver-based approaches for solving Datalog synthesis-as-rule-selection problems. Two of our approaches offer some advantages over existing approaches, and can be used more generally to solve arbitrary SMT formulas containing Datalog predicates; the third\u2014an encoding into standard, off-the-shelf answer set programming (ASP)\u2014leads to significant speedups (\u223c 9\u00d7 geomean) over the state of the art while synthesizing higher quality programs.<\/jats:p>\n                  <jats:p>Our progression of solutions explores the space of interactions between SAT\/SMT and Datalog, identifying ASP as a promising tool for working with and reasoning about Datalog. Along the way, we identify Datalog programs as monotonic SMT theories, which enjoy particularly efficient interactions in SMT; our plugins for popular SMT solvers make it easy to load an arbitrary Datalog program into the SMT solver as a custom monotonic theory. Finally, we evaluate our approaches using multiple underlying solvers to provide a more thorough and nuanced comparison against the current state of the art.<\/jats:p>","DOI":"10.1145\/3571200","type":"journal-article","created":{"date-parts":[[2023,1,11]],"date-time":"2023-01-11T16:58:14Z","timestamp":1673456294000},"page":"185-217","update-policy":"https:\/\/doi.org\/10.1145\/crossmark-policy","source":"Crossref","is-referenced-by-count":4,"title":["From SMT to ASP: Solver-Based Approaches to Solving Datalog Synthesis-as-Rule-Selection Problems"],"prefix":"10.1145","volume":"7","author":[{"ORCID":"https:\/\/orcid.org\/0000-0002-3677-701X","authenticated-orcid":false,"given":"Aaron","family":"Bembenek","sequence":"first","affiliation":[{"name":"Harvard University, USA"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0003-0014-7670","authenticated-orcid":false,"given":"Michael","family":"Greenberg","sequence":"additional","affiliation":[{"name":"Stevens Institute of Technology, USA"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-6734-5383","authenticated-orcid":false,"given":"Stephen","family":"Chong","sequence":"additional","affiliation":[{"name":"Harvard University, USA"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"320","published-online":{"date-parts":[[2023,1,11]]},"reference":[{"key":"e_1_2_1_1_1","doi-asserted-by":"publisher","DOI":"10.1145\/1251535.1251543"},{"key":"e_1_2_1_2_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-319-66158-2_44"},{"key":"e_1_2_1_3_1","doi-asserted-by":"publisher","DOI":"10.1145\/1755913.1755937"},{"key":"e_1_2_1_4_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-24206-9_16"},{"key":"e_1_2_1_5_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-40564-8_6"},{"key":"e_1_2_1_6_1","doi-asserted-by":"publisher","DOI":"10.1016\/B978-0-934613-40-8.50006-3"},{"key":"e_1_2_1_7_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-662-44923-3_3"},{"key":"e_1_2_1_8_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-030-25543-5_14"},{"key":"e_1_2_1_9_1","volume-title":"Proceedings of the 25th International Joint Conference on Artificial Intelligence. 915\u2013921","author":"Balai Evgenii","year":"2016","unstructured":"Evgenii Balai and Michael Gelfond . 2016 . On the Relationship Between P-log and LP^ MLN . In Proceedings of the 25th International Joint Conference on Artificial Intelligence. 915\u2013921 . Evgenii Balai and Michael Gelfond. 2016. On the Relationship Between P-log and LP^ MLN. In Proceedings of the 25th International Joint Conference on Artificial Intelligence. 915\u2013921."},{"key":"e_1_2_1_10_1","unstructured":"Clark Barrett Pascal Fontaine and Cesare Tinelli. 2016. The Satisfiability Modulo Theories Library (SMT-LIB). www.SMT-LIB.org \t\t\t\t  Clark Barrett Pascal Fontaine and Cesare Tinelli. 2016. The Satisfiability Modulo Theories Library (SMT-LIB). www.SMT-LIB.org"},{"key":"e_1_2_1_11_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-22110-1_14"},{"key":"e_1_2_1_12_1","volume-title":"Proceedings of the 29th Conference on Artificial Intelligence. 3702\u20133709","author":"Bayless Sam","unstructured":"Sam Bayless , Noah Bayless , Holger H. Hoos , and Alan J. Hu . 2015. SAT Modulo Monotonic Theories . In Proceedings of the 29th Conference on Artificial Intelligence. 3702\u20133709 . Sam Bayless, Noah Bayless, Holger H. Hoos, and Alan J. Hu. 2015. SAT Modulo Monotonic Theories. In Proceedings of the 29th Conference on Artificial Intelligence. 3702\u20133709."},{"key":"e_1_2_1_13_1","doi-asserted-by":"publisher","DOI":"10.1016\/j.artint.2019.103196"},{"key":"e_1_2_1_14_1","doi-asserted-by":"publisher","DOI":"10.1145\/3428209"},{"key":"e_1_2_1_15_1","doi-asserted-by":"publisher","DOI":"10.5281\/zenodo.7150677"},{"key":"e_1_2_1_16_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-319-23534-9_2"},{"key":"e_1_2_1_17_1","doi-asserted-by":"publisher","DOI":"10.1145\/1639949.1640108"},{"key":"e_1_2_1_18_1","doi-asserted-by":"publisher","DOI":"10.1145\/2043174.2043195"},{"key":"e_1_2_1_19_1","doi-asserted-by":"publisher","DOI":"10.1007\/3-540-44503-X_20"},{"key":"e_1_2_1_20_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-319-49130-1_15"},{"key":"e_1_2_1_21_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-1-4684-3384-5_11"},{"key":"e_1_2_1_22_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-31951-8_12"},{"key":"e_1_2_1_23_1","doi-asserted-by":"publisher","DOI":"10.1007\/s10994-021-06089-1"},{"key":"e_1_2_1_24_1","doi-asserted-by":"publisher","DOI":"10.1007\/s10994-020-05934-z"},{"key":"e_1_2_1_25_1","doi-asserted-by":"publisher","DOI":"10.1007\/11814771_51"},{"key":"e_1_2_1_26_1","doi-asserted-by":"publisher","DOI":"10.1016\/0004-3702(79)90008-0"},{"key":"e_1_2_1_27_1","doi-asserted-by":"publisher","DOI":"10.1016\/j.artint.2020.103438"},{"key":"e_1_2_1_28_1","first-page":"51","article-title":"Consistency of Clark\u2019s Completion and Existence of Stable Models","volume":"1","author":"Fages Francois","year":"1994","unstructured":"Francois Fages . 1994 . Consistency of Clark\u2019s Completion and Existence of Stable Models . Journal of Methods of Logic in Computer Science , 1 , 1 (1994), 51 \u2013 60 . Francois Fages. 1994. Consistency of Clark\u2019s Completion and Existence of Stable Models. Journal of Methods of Logic in Computer Science, 1, 1 (1994), 51\u201360.","journal-title":"Journal of Methods of Logic in Computer Science"},{"key":"e_1_2_1_29_1","volume-title":"Datalog Disassembly. In Proceedings of the 29th USENIX Security Symposium. 1075\u20131092","author":"Flores-Montoya Antonio","unstructured":"Antonio Flores-Montoya and Eric M. Schulte . 2020 . Datalog Disassembly. In Proceedings of the 29th USENIX Security Symposium. 1075\u20131092 . Antonio Flores-Montoya and Eric M. Schulte. 2020. Datalog Disassembly. In Proceedings of the 29th USENIX Security Symposium. 1075\u20131092."},{"key":"e_1_2_1_30_1","volume-title":"Herv\u00e9 Gallaire and Jack Minker (Eds.)","unstructured":"1978. Logic and Data Bases , Herv\u00e9 Gallaire and Jack Minker (Eds.) . Plenum Press . 1978. Logic and Data Bases, Herv\u00e9 Gallaire and Jack Minker (Eds.). Plenum Press."},{"key":"e_1_2_1_31_1","volume-title":"Proceedings of the 21st European Conference on Artificial Intelligence. 351\u2013356","author":"Gebser Martin","year":"2014","unstructured":"Martin Gebser , Tomi Janhunen , and Jussi Rintanen . 2014 . Answer Set Programming as SAT Modulo Acyclicity . In Proceedings of the 21st European Conference on Artificial Intelligence. 351\u2013356 . Martin Gebser, Tomi Janhunen, and Jussi Rintanen. 2014. Answer Set Programming as SAT Modulo Acyclicity. In Proceedings of the 21st European Conference on Artificial Intelligence. 351\u2013356."},{"key":"e_1_2_1_32_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-20895-9_39"},{"key":"e_1_2_1_33_1","volume-title":"Potassco: The Potsdam Answer Set Solving Collection. AI Commun..","author":"Gebser Martin","year":"2011","unstructured":"Martin Gebser , Benjamin Kaufmann , Roland Kaminski , Max Ostrowski , Torsten Schaub , and Marius Schneider . 2011 . Potassco: The Potsdam Answer Set Solving Collection. AI Commun.. Martin Gebser, Benjamin Kaufmann, Roland Kaminski, Max Ostrowski, Torsten Schaub, and Marius Schneider. 2011. Potassco: The Potsdam Answer Set Solving Collection. AI Commun.."},{"key":"e_1_2_1_34_1","doi-asserted-by":"publisher","DOI":"10.1016\/j.artint.2012.04.001"},{"key":"e_1_2_1_35_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-02846-5_22"},{"key":"e_1_2_1_36_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-540-72200-7_24"},{"key":"e_1_2_1_37_1","volume-title":"Proceedings of the 5th International Conference and Symposium on Logic Programming.","author":"Gelfond Michael","year":"1988","unstructured":"Michael Gelfond and Vladimir Lifschitz . 1988 . The Stable Model Semantics for Logic Programming . In Proceedings of the 5th International Conference and Symposium on Logic Programming. Michael Gelfond and Vladimir Lifschitz. 1988. The Stable Model Semantics for Logic Programming. In Proceedings of the 5th International Conference and Symposium on Logic Programming."},{"key":"e_1_2_1_38_1","doi-asserted-by":"publisher","DOI":"10.5555\/1597148.1597160"},{"key":"e_1_2_1_39_1","doi-asserted-by":"publisher","DOI":"10.1145\/2254064.2254112"},{"key":"e_1_2_1_40_1","doi-asserted-by":"publisher","DOI":"10.1109\/ICSE.2019.00120"},{"key":"e_1_2_1_41_1","doi-asserted-by":"publisher","DOI":"10.1145\/3276486"},{"key":"e_1_2_1_42_1","doi-asserted-by":"publisher","DOI":"10.1561\/1900000017"},{"key":"e_1_2_1_43_1","doi-asserted-by":"publisher","DOI":"10.1145\/1265530.1265535"},{"key":"e_1_2_1_44_1","volume-title":"Proceedings of the 18th USENIX Security Symposium. 78\u201385","author":"Guarnieri Salvatore","unstructured":"Salvatore Guarnieri and V. Benjamin Livshits . 2009. GATEKEEPER: Mostly Static Enforcement of Security and Reliability Policies for JavaScript Code . In Proceedings of the 18th USENIX Security Symposium. 78\u201385 . Salvatore Guarnieri and V. Benjamin Livshits. 2009. GATEKEEPER: Mostly Static Enforcement of Security and Reliability Policies for JavaScript Code. In Proceedings of the 18th USENIX Security Symposium. 78\u201385."},{"key":"e_1_2_1_45_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-319-21690-4_20"},{"key":"e_1_2_1_46_1","volume-title":"Type Safety in the Linux Kernel. Ph. D. Dissertation","author":"Hackett Brian","unstructured":"Brian Hackett . 2010. Type Safety in the Linux Kernel. Ph. D. Dissertation . Stanford University . Brian Hackett. 2010. Type Safety in the Linux Kernel. Ph. D. Dissertation. Stanford University."},{"key":"e_1_2_1_47_1","doi-asserted-by":"publisher","DOI":"10.14778\/1687553.1687588"},{"key":"e_1_2_1_48_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-31612-8_13"},{"key":"e_1_2_1_49_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-22110-1_36"},{"key":"e_1_2_1_50_1","doi-asserted-by":"publisher","DOI":"10.1145\/41625.41635"},{"key":"e_1_2_1_51_1","doi-asserted-by":"publisher","DOI":"10.1016\/0743-1066(94)90033-7"},{"key":"e_1_2_1_52_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-319-41540-6_23"},{"key":"e_1_2_1_53_1","first-page":"3","article-title":"Exploiting Answer Set Programming With External Sources for Meta-Interpretive Learning","volume":"18","author":"Kaminski Tobias","year":"2018","unstructured":"Tobias Kaminski , Thomas Eiter , and Katsumi Inoue . 2018 . Exploiting Answer Set Programming With External Sources for Meta-Interpretive Learning . Theory Pract. Log. Program. , 18 , 3 - 4 (2018), 571\u2013588. https:\/\/doi.org\/10.5555\/3006652.3006712 10.5555\/3006652.3006712 Tobias Kaminski, Thomas Eiter, and Katsumi Inoue. 2018. Exploiting Answer Set Programming With External Sources for Meta-Interpretive Learning. Theory Pract. Log. Program., 18, 3-4 (2018), 571\u2013588. https:\/\/doi.org\/10.5555\/3006652.3006712","journal-title":"Theory Pract. Log. Program."},{"key":"e_1_2_1_54_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-319-41528-4_8"},{"key":"e_1_2_1_55_1","doi-asserted-by":"publisher","DOI":"10.1609\/aaai.v34i03.5678"},{"key":"e_1_2_1_56_1","doi-asserted-by":"publisher","DOI":"10.1017\/S1471068415000198"},{"key":"e_1_2_1_57_1","unstructured":"Mark Law Alessandra Russo and Krysia Broda. 2020. The ILASP System for Inductive Learning of Answer Set Programs. ALP Newsletter. \t\t\t\t  Mark Law Alessandra Russo and Krysia Broda. 2020. The ILASP System for Inductive Learning of Answer Set Programs. ALP Newsletter."},{"key":"e_1_2_1_58_1","volume-title":"Proceedings of the 30th International Joint Conference on Artificial Intelligence. 1936\u20131943","author":"Law Mark","year":"2021","unstructured":"Mark Law , Alessandra Russo , Krysia Broda , and Elisa Bertino . 2021 . Scalable Non-observational Predicate Learning in ASP . In Proceedings of the 30th International Joint Conference on Artificial Intelligence. 1936\u20131943 . Mark Law, Alessandra Russo, Krysia Broda, and Elisa Bertino. 2021. Scalable Non-observational Predicate Learning in ASP. In Proceedings of the 30th International Joint Conference on Artificial Intelligence. 1936\u20131943."},{"key":"e_1_2_1_59_1","doi-asserted-by":"publisher","DOI":"10.1017\/S1471068417000400"},{"key":"e_1_2_1_60_1","doi-asserted-by":"publisher","DOI":"10.1007\/s00778-018-0518-5"},{"key":"e_1_2_1_61_1","doi-asserted-by":"publisher","DOI":"10.1007\/3-540-36388-2_6"},{"key":"e_1_2_1_62_1","doi-asserted-by":"publisher","DOI":"10.1016\/j.artint.2004.04.004"},{"key":"e_1_2_1_63_1","volume-title":"Proceedings of the 14th USENIX Security Symposium. 271\u2013286","author":"Benjamin Livshits V.","unstructured":"V. Benjamin Livshits and Monica S. Lam . 2005. Finding Security Vulnerabilities in Java Applications with Static Analysis . In Proceedings of the 14th USENIX Security Symposium. 271\u2013286 . V. Benjamin Livshits and Monica S. Lam. 2005. Finding Security Vulnerabilities in Java Applications with Static Analysis. In Proceedings of the 14th USENIX Security Symposium. 271\u2013286."},{"key":"e_1_2_1_64_1","doi-asserted-by":"publisher","DOI":"10.1145\/1142473.1142485"},{"key":"e_1_2_1_65_1","doi-asserted-by":"publisher","DOI":"10.1007\/BF00993503"},{"key":"e_1_2_1_66_1","volume-title":"Truth Maintenance. In Proceedings of the 8th National Conference on Artificial Intelligence. 1109\u20131116","author":"McAllester David A","year":"1990","unstructured":"David A McAllester . 1990 . Truth Maintenance. In Proceedings of the 8th National Conference on Artificial Intelligence. 1109\u20131116 . David A McAllester. 1990. Truth Maintenance. In Proceedings of the 8th National Conference on Artificial Intelligence. 1109\u20131116."},{"key":"e_1_2_1_67_1","doi-asserted-by":"publisher","DOI":"10.1007\/s10472-009-9116-y"},{"key":"e_1_2_1_68_1","doi-asserted-by":"publisher","DOI":"10.1609\/aaai.v35i7.16799"},{"key":"e_1_2_1_69_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-540-78800-3_24"},{"key":"e_1_2_1_70_1","doi-asserted-by":"publisher","DOI":"10.1007\/BF03037089"},{"key":"e_1_2_1_71_1","doi-asserted-by":"publisher","DOI":"10.1145\/1217856.1217859"},{"key":"e_1_2_1_72_1","first-page":"21","article-title":"A note on the Expressive Power of","volume":"26","author":"Papadimitriou C. H.","year":"1985","unstructured":"C. H. Papadimitriou . 1985 . A note on the Expressive Power of Prolog. Bull. EATCS , 26 (1985), 21 \u2013 22 . C. H. Papadimitriou. 1985. A note on the Expressive Power of Prolog. Bull. EATCS, 26 (1985), 21\u201322.","journal-title":"Prolog. Bull. EATCS"},{"key":"e_1_2_1_73_1","doi-asserted-by":"publisher","DOI":"10.1016\/b978-0-934613-40-8.50009-9"},{"key":"e_1_2_1_74_1","doi-asserted-by":"publisher","DOI":"10.1145\/3371130"},{"key":"e_1_2_1_75_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-1-4615-2207-2_8"},{"key":"e_1_2_1_76_1","volume-title":"Differential Datalog. In Proceedings of the 3rd International Workshop on the Resurgence of Datalog in Academia and Industry. 56\u201367","author":"Ryzhyk Leonid","year":"2019","unstructured":"Leonid Ryzhyk and Mihai Budiu . 2019 . Differential Datalog. In Proceedings of the 3rd International Workshop on the Resurgence of Datalog in Academia and Industry. 56\u201367 . Leonid Ryzhyk and Mihai Budiu. 2019. Differential Datalog. In Proceedings of the 3rd International Workshop on the Resurgence of Datalog in Academia and Industry. 56\u201367."},{"key":"e_1_2_1_77_1","doi-asserted-by":"publisher","DOI":"10.1145\/2892208.2892226"},{"key":"e_1_2_1_78_1","doi-asserted-by":"publisher","DOI":"10.1007\/s10994-018-5708-2"},{"key":"e_1_2_1_79_1","doi-asserted-by":"publisher","DOI":"10.3233\/SAT190034"},{"key":"e_1_2_1_80_1","doi-asserted-by":"publisher","DOI":"10.1145\/3236024.3236034"},{"key":"e_1_2_1_81_1","doi-asserted-by":"publisher","DOI":"10.24963\/ijcai.2019\/847"},{"key":"e_1_2_1_82_1","doi-asserted-by":"publisher","DOI":"10.1145\/1168857.1168907"},{"key":"e_1_2_1_83_1","doi-asserted-by":"publisher","DOI":"10.1145\/3453483.3454098"},{"key":"e_1_2_1_84_1","doi-asserted-by":"publisher","DOI":"10.1145\/3243734.3243780"},{"key":"e_1_2_1_85_1","doi-asserted-by":"publisher","DOI":"10.1016\/0743-1066(89)90032-0"},{"key":"e_1_2_1_86_1","doi-asserted-by":"publisher","DOI":"10.1145\/116825.116838"},{"key":"e_1_2_1_87_1","doi-asserted-by":"publisher","DOI":"10.1145\/800070.802186"},{"key":"e_1_2_1_88_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-319-61660-5_17"},{"key":"e_1_2_1_89_1","doi-asserted-by":"publisher","DOI":"10.1145\/996841.996859"},{"key":"e_1_2_1_90_1","doi-asserted-by":"publisher","DOI":"10.1109\/ICDE.1997.581742"},{"key":"e_1_2_1_91_1","doi-asserted-by":"publisher","DOI":"10.1145\/3379446"}],"container-title":["Proceedings of the ACM on Programming Languages"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3571200","content-type":"unspecified","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/3571200","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,6,17]],"date-time":"2025-06-17T14:08:21Z","timestamp":1750169301000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3571200"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2023,1,9]]},"references-count":91,"journal-issue":{"issue":"POPL","published-print":{"date-parts":[[2023,1,9]]}},"alternative-id":["10.1145\/3571200"],"URL":"https:\/\/doi.org\/10.1145\/3571200","relation":{},"ISSN":["2475-1421"],"issn-type":[{"value":"2475-1421","type":"electronic"}],"subject":[],"published":{"date-parts":[[2023,1,9]]},"assertion":[{"value":"2023-01-11","order":2,"name":"published","label":"Published","group":{"name":"publication_history","label":"Publication History"}}]}}