{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2025,6,25]],"date-time":"2025-06-25T09:26:11Z","timestamp":1750843571265},"reference-count":54,"publisher":"Oxford University Press (OUP)","issue":"2","license":[{"start":{"date-parts":[[2022,2,4]],"date-time":"2022-02-04T00:00:00Z","timestamp":1643932800000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/academic.oup.com\/journals\/pages\/open_access\/funder_policies\/chorus\/standard_publication_model"}],"content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":[],"published-print":{"date-parts":[[2022,2,26]]},"abstract":"<jats:title>Abstract<\/jats:title>\n               <jats:p>We address the problem of checking the satisfiability of constrained Horn clauses (CHCs) defined on algebraic data types (ADTs), such as lists and trees. We propose a new technique for transforming CHCs defined on ADTs into CHCs where the arguments of the predicates have only basic types, such as integers and booleans. Thus, our technique avoids, during satisfiability checking, the explicit use of proof rules based on induction over the ADTs. The main extension over previous techniques for ADT removal is a new transformation rule, called differential replacement, which allows us to introduce auxiliary predicates, whose definitions correspond to lemmas that are used when making inductive proofs. We present an algorithm that performs the automatic removal of ADTs by applying the new rule, together with the traditional folding\/unfolding rules. We prove that, under suitable hypotheses, the set of the transformed clauses is satisfiable if and only if so is the set of the original clauses. By an experimental evaluation, we show that the use of the new rule significantly improves the effectiveness of ADT removal. We also show that our approach is competitive with respect to tools that extend CHC solvers with the use of inductive rules.<\/jats:p>","DOI":"10.1093\/logcom\/exab090","type":"journal-article","created":{"date-parts":[[2021,12,22]],"date-time":"2021-12-22T20:13:31Z","timestamp":1640204011000},"page":"402-442","source":"Crossref","is-referenced-by-count":6,"title":["Satisfiability of constrained Horn clauses on algebraic data types: A transformation-based approach"],"prefix":"10.1093","volume":"32","author":[{"given":"Emanuele","family":"De Angelis","sequence":"first","affiliation":[{"name":"IASI-CNR, Rome, 00185, Italy"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"given":"Fabio","family":"Fioravanti","sequence":"additional","affiliation":[{"name":"DEC, University of Chieti-Pescara, Pescara, 65127, Italy"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"given":"Alberto","family":"Pettorossi","sequence":"additional","affiliation":[{"name":"DICII, University of Rome Tor Vergata, Rome, 00133, Italy"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"given":"Maurizio","family":"Proietti","sequence":"additional","affiliation":[{"name":"IASI-CNR, Rome, 00185, Italy"}],"role":[{"role":"author","vocabulary":"crossref"}]}],"member":"286","published-online":{"date-parts":[[2022,2,4]]},"reference":[{"key":"2022022805591600600_ref1","doi-asserted-by":"crossref","first-page":"1","DOI":"10.1109\/FMCAD.2013.6679385","article-title":"Syntax-guided synthesis","volume-title":"2013 Formal Methods in Computer-Aided Design","author":"Alur","year":"2013"},{"key":"2022022805591600600_ref2","first-page":"493","article-title":"Logic programming","volume-title":"Formal Models and Semantics","author":"Apt","year":"1990"},{"key":"2022022805591600600_ref3","doi-asserted-by":"crossref","first-page":"171","DOI":"10.1007\/978-3-642-22110-1_14","article-title":"CVC4","volume-title":"Computer Aided Verification","author":"Barrett","year":"2011"},{"key":"2022022805591600600_ref4","doi-asserted-by":"crossref","first-page":"305","DOI":"10.1007\/978-3-319-10575-8_11","volume-title":"Satisfiability modulo theories. In Handbook of Model Checking","author":"Barrett","year":"2018"},{"key":"2022022805591600600_ref5","doi-asserted-by":"crossref","first-page":"24","DOI":"10.1007\/978-3-319-23534-9_2","article-title":"Horn clause solvers for program verification","volume-title":"Fields of Logic and Computation","author":"Bj\u00f8rner","year":"2015"},{"key":"2022022805591600600_ref6","doi-asserted-by":"crossref","first-page":"845","DOI":"10.1016\/B978-044450813-3\/50015-1","article-title":"The automation of proof by mathematical induction","volume-title":"Handbook of Automated Reasoning","author":"Bundy","year":"2001"},{"key":"2022022805591600600_ref7","doi-asserted-by":"crossref","first-page":"93","DOI":"10.1007\/978-3-642-36742-7_7","article-title":"The MathSAT5 SMT solver","volume-title":"Tools and Algorithms for the Construction and Analysis of Systems: 19th International Conference, TACAS 2013","author":"Cimatti","year":"2013"},{"key":"2022022805591600600_ref8","doi-asserted-by":"crossref","first-page":"392","DOI":"10.1007\/978-3-642-38574-2_27","article-title":"Automating inductive proofs using theory exploration","volume-title":"Automated Deduction\u2014CADE-24","author":"Claessen","year":"2013"},{"key":"2022022805591600600_ref9","doi-asserted-by":"crossref","first-page":"752","DOI":"10.1145\/876638.876643","article-title":"Counterexample-guided abstraction refinement for symbolic model checking","volume":"50","author":"Clarke","year":"2003","journal-title":"Journal of the ACM"},{"key":"2022022805591600600_ref10","doi-asserted-by":"crossref","first-page":"84","DOI":"10.1145\/512760.512770","article-title":"Automatic discovery of linear restraints among variables of a program","volume-title":"5th POPL \u201878","author":"Cousot","year":"1978"},{"key":"2022022805591600600_ref11","doi-asserted-by":"crossref","first-page":"568","DOI":"10.1007\/978-3-642-54862-8_47","article-title":"VeriMAP: A tool for verifying programs through transformations","volume-title":"Tools and Algorithms for the Construction and Analysis of Systems","author":"De Angelis","year":"2014"},{"key":"2022022805591600600_ref12","doi-asserted-by":"crossref","first-page":"147","DOI":"10.1007\/978-3-662-53413-7_8","article-title":"Relational verification through Horn clause transformation","volume-title":"Static Analysis","author":"De Angelis","year":"2016"},{"key":"2022022805591600600_ref13","doi-asserted-by":"crossref","first-page":"78","DOI":"10.1016\/j.scico.2016.11.002","article-title":"Semantics-based generation of verification conditions via program specialization","volume":"147","author":"De Angelis","year":"2017","journal-title":"Science of Computer Programming"},{"key":"2022022805591600600_ref14","doi-asserted-by":"crossref","first-page":"126","DOI":"10.1017\/S1471068417000497","article-title":"Predicate pairing for program verification","volume":"18","author":"De Angelis","year":"2018","journal-title":"Theory and Practice of Logic Programming"},{"key":"2022022805591600600_ref15","doi-asserted-by":"crossref","first-page":"452","DOI":"10.1017\/S1471068418000157","article-title":"Solving Horn clauses on inductive data types without induction","volume":"18","author":"De Angelis","year":"2018","journal-title":"Theory and Practice of Logic Programming"},{"key":"2022022805591600600_ref16","first-page":"4","article-title":"Lemma generation for Horn clause satisfiability: A preliminary study. 7th Int. Workshop on Verification and Program Transformation","volume-title":"EPTCS","author":"De Angelis","year":"2019"},{"key":"2022022805591600600_ref17","first-page":"48","article-title":"Proving properties of sorting programs: A case study in Horn clause verification. 6th HCVS and 3rd PERR","volume-title":"EPTCS","author":"De Angelis","year":"2019"},{"key":"2022022805591600600_ref18","doi-asserted-by":"crossref","first-page":"83","DOI":"10.1007\/978-3-030-51074-9_6","article-title":"Removing algebraic data types from constrained Horn clauses using difference predicates","volume-title":"Automated Reasoning: 10th International Joint Conference, IJCAR 2020","author":"De Angelis","year":"2020"},{"key":"2022022805591600600_ref19","doi-asserted-by":"crossref","first-page":"337","DOI":"10.1007\/978-3-540-78800-3_24","article-title":"Z3: An efficient SMT solver","volume-title":"Tools and Algorithms for the Construction and Analysis of Systems","author":"de Moura","year":"2008"},{"key":"2022022805591600600_ref20","doi-asserted-by":"crossref","first-page":"231","DOI":"10.1016\/S0743-1066(99)00030-8","article-title":"Conjunctive partial deduction: Foundations, control, algorithms, and experiments","volume":"41","author":"De Schreye","year":"1999","journal-title":"Journal of Logic Programming"},{"key":"2022022805591600600_ref21","doi-asserted-by":"crossref","first-page":"279","DOI":"10.1007\/978-3-540-45085-6_22","article-title":"IsaPlanner: A prototype proof planner in Isabelle","volume-title":"Automated Deduction\u2014CADE-19","author":"Dixon","year":"2003"},{"key":"2022022805591600600_ref22","volume-title":"A Mathematical Introduction to Logic","author":"Enderton","year":"1972"},{"key":"2022022805591600600_ref23","doi-asserted-by":"crossref","first-page":"101","DOI":"10.1016\/0304-3975(95)00148-4","article-title":"Transformations of CLP modules","volume":"166","author":"Etalle","year":"1996","journal-title":"Theoretical Computer Science"},{"key":"2022022805591600600_ref24","doi-asserted-by":"crossref","first-page":"292","DOI":"10.1007\/978-3-540-25951-0_10","article-title":"Transformation rules for locally stratified constraint logic programs","volume-title":"Program Development in Computational Logic","author":"Fioravanti","year":"2004"},{"key":"2022022805591600600_ref25","doi-asserted-by":"crossref","first-page":"175","DOI":"10.1017\/S1471068411000627","article-title":"Generalization strategies for the verification of infinite state systems","volume":"13","author":"Fioravanti","year":"2013","journal-title":"Theory and Practice of Logic Programming"},{"key":"2022022805591600600_ref26","doi-asserted-by":"crossref","first-page":"72","DOI":"10.1007\/3-540-63166-6_10","article-title":"Construction of abstract state graphs with PVS","volume-title":"Computer Aided Verification","author":"Graf","year":"1997"},{"key":"2022022805591600600_ref27","first-page":"405","article-title":"Synthesizing software verifiers from proof rules","volume-title":"33rd ACM SIGPLAN Conf. Programming Language Design and Implementation, PLDI \u201812","author":"Grebenshchikov","year":"2012"},{"key":"2022022805591600600_ref28","doi-asserted-by":"crossref","first-page":"157","DOI":"10.1007\/978-3-642-31612-8_13","article-title":"Generalized property directed reachability","volume-title":"Theory and Applications of Satisfiability Testing\u2014SAT 2012","author":"Hoder","year":"2012"},{"key":"2022022805591600600_ref29","doi-asserted-by":"crossref","first-page":"1","DOI":"10.23919\/FMCAD.2018.8603013","article-title":"The ELDARICA Horn solver","volume-title":"Formal Methods in Computer Aided Design, FMCAD 2018","author":"Hojjat","year":"2018"},{"key":"2022022805591600600_ref30","doi-asserted-by":"crossref","first-page":"79","DOI":"10.1007\/BF00244460","article-title":"Productive use of failure in inductive proof","volume":"16","author":"Ireland","year":"1996","journal-title":"Journal of Automated Reasoning"},{"key":"2022022805591600600_ref31","doi-asserted-by":"crossref","first-page":"503","DOI":"10.1016\/0743-1066(94)90033-7","article-title":"Constraint logic programming: A survey","volume":"19","author":"Jaffar","year":"1994","journal-title":"Journal of Logic Programming"},{"key":"2022022805591600600_ref32","doi-asserted-by":"crossref","first-page":"291","DOI":"10.1007\/978-3-642-14052-5_21","article-title":"Case-analysis for rippling and inductive proof","volume-title":"Interactive Theorem Proving","author":"Johansson","year":"2010"},{"key":"2022022805591600600_ref33","doi-asserted-by":"crossref","first-page":"261","DOI":"10.1007\/978-3-319-41528-4_14","article-title":"RAHFT: A tool for verifying Horn clauses using abstract interpretation and finite tree automata","volume-title":"Computer Aided Verification: 28th International Conference, CAV 2016","author":"Kafle","year":"2016"},{"key":"2022022805591600600_ref34","volume-title":"Computer-Aided Reasoning","author":"Kaufmann","year":"2000"},{"key":"2022022805591600600_ref35","doi-asserted-by":"crossref","first-page":"846","DOI":"10.1007\/978-3-642-39799-8_59","article-title":"Automatic abstraction in SMT-based unbounded software model checking","volume-title":"Computer Aided Verification","author":"Komuravelli","year":"2013"},{"key":"2022022805591600600_ref36","doi-asserted-by":"crossref","first-page":"451","DOI":"10.1145\/3453483.3454055","article-title":"Beyond the elementary representations of program invariants over algebraic data types","volume-title":"PLDI \u201821: 42nd ACM SIGPLAN International Conference on Programming Language Design and Implementation","author":"Kostyukov","year":"2021"},{"key":"2022022805591600600_ref37","doi-asserted-by":"crossref","first-page":"315","DOI":"10.1007\/978-3-642-27940-9_21","article-title":"Automating induction with an SMT solver","volume-title":"Verification, Model Checking, and Abstract Interpretation","author":"Leino","year":"2012"},{"key":"2022022805591600600_ref38","volume-title":"The OCaml System, Release 4.06: Documentation and User\u2019s Manual","author":"Leroy","year":"2017"},{"key":"2022022805591600600_ref39","doi-asserted-by":"crossref","first-page":"855","DOI":"10.1007\/978-3-540-45236-2_46","article-title":"ProB: A model checker for B","volume-title":"FME 2003: Formal Methods: International Symposium of Formal Methods Europe","author":"Leuschel","year":"2003"},{"key":"2022022805591600600_ref40","doi-asserted-by":"crossref","DOI":"10.1007\/978-3-642-83189-8","volume-title":"Foundations of Logic Programming","author":"Lloyd","year":"1987"},{"key":"2022022805591600600_ref41","doi-asserted-by":"crossref","DOI":"10.1007\/3-540-45949-9","volume-title":"Isabelle\/HOL","author":"Nipkow","year":"2002"},{"key":"2022022805591600600_ref42","first-page":"748","article-title":"A prototype verification system","volume-title":"CADE-11","author":"Owre","year":"1992"},{"key":"2022022805591600600_ref43","doi-asserted-by":"crossref","first-page":"569","DOI":"10.1007\/s00165-012-0233-8","article-title":"Constraint-based correctness proofs for logic program transformations","volume":"24","author":"Pettorossi","year":"2012","journal-title":"Formal Aspects of Computing"},{"key":"2022022805591600600_ref44","doi-asserted-by":"crossref","first-page":"281","DOI":"10.1007\/s10817-016-9368-2","article-title":"Reasoning about algebraic data types with abstractions","volume":"57","author":"Pham","year":"2016","journal-title":"Journal of Automated Reasoning"},{"key":"2022022805591600600_ref45","doi-asserted-by":"crossref","first-page":"595","DOI":"10.1016\/S0049-237X(08)71116-9","article-title":"Decidable theories","volume-title":"Handbook of Mathematical Logic","author":"Rabin","year":"1977"},{"key":"2022022805591600600_ref46","first-page":"80","article-title":"Induction for SMT solvers","volume-title":"Verification, Model Checking, and Abstract Interpretation","author":"Reynolds","year":"2015"},{"key":"2022022805591600600_ref47","doi-asserted-by":"crossref","first-page":"82","DOI":"10.1007\/978-3-642-12592-8_7","article-title":"On inductive and coinductive proofs via unfold\/fold transformations","volume-title":"Logic-Based Program Synthesis and Transformation","author":"Seki","year":"2010"},{"key":"2022022805591600600_ref48","doi-asserted-by":"crossref","first-page":"407","DOI":"10.1007\/978-3-642-28756-5_28","article-title":"Zeno: An automated prover for properties of recursive data structures","volume-title":"Tools and Algorithms for the Construction and Analysis of Systems","author":"Sonnex","year":"2012"},{"key":"2022022805591600600_ref49","first-page":"465","article-title":"An algorithm of generalization in positive supercompilation","volume-title":"Proceedings of the 1995 International Logic Programming Symposium (ILPS \u201895)","author":"S\u00f8rensen","year":"1995"},{"key":"2022022805591600600_ref50","doi-asserted-by":"crossref","first-page":"298","DOI":"10.1007\/978-3-642-23702-7_23","article-title":"Satisfiability modulo recursive programs","volume-title":"Static Analysis","author":"Suter","year":"2011"},{"key":"2022022805591600600_ref51","first-page":"127","article-title":"Unfold\/fold transformation of logic programs","volume-title":"Proceedings of the Second International Conference on Logic Programming, ICLP \u201984","author":"Tamaki","year":"1984"},{"key":"2022022805591600600_ref52","first-page":"86","article-title":"A generalized correctness proof of the unfold\/fold logic program transformation","volume-title":"Technical Report","author":"Tamaki","year":"1986"},{"key":"2022022805591600600_ref53","doi-asserted-by":"crossref","first-page":"571","DOI":"10.1007\/978-3-319-63390-9_30","article-title":"Automating induction for solving Horn clauses","volume-title":"Computer Aided Verification: 29th International Conference, CAV 2017","author":"Unno","year":"2017"},{"key":"2022022805591600600_ref54","doi-asserted-by":"crossref","first-page":"600","DOI":"10.1007\/978-3-030-30048-7_35","article-title":"Lemma synthesis for automating induction over algebraic data types","volume-title":"Principles and Practice of Constraint Programming: 25th International Conference, CP 2019","author":"Yang","year":"2019"}],"container-title":["Journal of Logic and Computation"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/academic.oup.com\/logcom\/article-pdf\/32\/2\/402\/42618008\/exab090.pdf","content-type":"application\/pdf","content-version":"vor","intended-application":"syndication"},{"URL":"https:\/\/academic.oup.com\/logcom\/article-pdf\/32\/2\/402\/42618008\/exab090.pdf","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2022,2,28]],"date-time":"2022-02-28T06:00:37Z","timestamp":1646028037000},"score":1,"resource":{"primary":{"URL":"https:\/\/academic.oup.com\/logcom\/article\/32\/2\/402\/6517731"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2022,2,4]]},"references-count":54,"journal-issue":{"issue":"2","published-online":{"date-parts":[[2022,2,4]]},"published-print":{"date-parts":[[2022,2,26]]}},"URL":"https:\/\/doi.org\/10.1093\/logcom\/exab090","relation":{},"ISSN":["0955-792X","1465-363X"],"issn-type":[{"value":"0955-792X","type":"print"},{"value":"1465-363X","type":"electronic"}],"subject":[],"published-other":{"date-parts":[[2022,3]]},"published":{"date-parts":[[2022,2,4]]}}}