{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,8,17]],"date-time":"2026-08-17T20:46:37Z","timestamp":1786999597170,"version":"build-2736575974"},"reference-count":43,"publisher":"Cambridge University Press (CUP)","issue":"4","license":[{"start":{"date-parts":[[2022,7,4]],"date-time":"2022-07-04T00:00:00Z","timestamp":1656892800000},"content-version":"unspecified","delay-in-days":3,"URL":"http:\/\/creativecommons.org\/licenses\/by\/4.0\/"}],"content-domain":{"domain":["cambridge.org"],"crossmark-restriction":true},"short-container-title":["Theory and Practice of Logic Programming"],"published-print":{"date-parts":[[2022,7]]},"abstract":"<jats:title>Abstract<\/jats:title>\n                  <jats:p>Logic programming is a flexible programming paradigm due to the use of predicates without a fixed data flow. To extend logic languages with the compact notation of functional programming, there are various proposals to map evaluable functions into predicates in order to stay in the logic programming framework. Since amalgamated functional logic languages offer flexible as well as efficient evaluation strategies, we propose an opposite approach in this paper. By mapping logic programs into functional logic programs with a transformation based on inferring functional dependencies, we develop a fully automatic transformation which keeps the flexibility of logic programming but can improve computations by reducing infinite search spaces to finite ones.<\/jats:p>","DOI":"10.1017\/s1471068422000187","type":"journal-article","created":{"date-parts":[[2022,7,4]],"date-time":"2022-07-04T05:26:35Z","timestamp":1656912395000},"page":"538-554","update-policy":"https:\/\/doi.org\/10.1017\/policypage","source":"Crossref","is-referenced-by-count":8,"title":["From Logic to Functional Logic Programs"],"prefix":"10.1017","volume":"22","author":[{"ORCID":"https:\/\/orcid.org\/0000-0002-4953-8202","authenticated-orcid":false,"given":"MICHAEL","family":"HANUS","sequence":"first","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"56","published-online":{"date-parts":[[2022,7,4]]},"reference":[{"key":"S1471068422000187_ref26","doi-asserted-by":"crossref","unstructured":"Launchbury, J. 1993. A natural semantics for lazy evaluation. In Proceedings of 20th ACM Symposium on Principles of Programming Languages (POPL\u201993). ACM Press, 144\u2013154.","DOI":"10.1145\/158511.158618"},{"key":"S1471068422000187_ref23","unstructured":"Huet, G. and L\u00e9vy, J.-J. 1991. Computations in orthogonal rewriting systems. In Computational Logic: Essays in Honor of Alan Robinson, J.-L. Lassez and G. Plotkin, Eds. MIT Press, 395\u2013443."},{"key":"S1471068422000187_ref29","doi-asserted-by":"crossref","unstructured":"L\u00f3pez-Fraguas, F. and S\u00e1nchez-Hern\u00e1ndez, J. 1999. TOY: A multiparadigm declarative system. In Proceedings of RTA\u201999. LNCS, vol. 1631. Springer, 244\u2013247.","DOI":"10.1007\/3-540-48685-2_19"},{"key":"S1471068422000187_ref43","unstructured":"Warren, D. 1983. An abstract Prolog instruction set. Technical note 309, SRI International, Stanford."},{"key":"S1471068422000187_ref8","doi-asserted-by":"publisher","DOI":"10.1017\/S1471068416000168"},{"key":"S1471068422000187_ref33","volume-title":"Haskell 98 Language and Libraries\u2014The Revised Report","author":"Peyton Jones","year":"2003"},{"key":"S1471068422000187_ref4","doi-asserted-by":"publisher","DOI":"10.1145\/347476.347484"},{"key":"S1471068422000187_ref12","doi-asserted-by":"publisher","DOI":"10.1016\/j.entcs.2008.06.037"},{"key":"S1471068422000187_ref31","doi-asserted-by":"publisher","DOI":"10.1016\/0743-1066(86)90016-6"},{"key":"S1471068422000187_ref28","doi-asserted-by":"crossref","unstructured":"Loogen, R. , L\u00f3pez Fraguas, F. and Rodrguez Artalejo, M. 1993. A demand driven computation strategy for lazy narrowing. In Proceedings of the 5th International Symposium on Programming Language Implementation and Logic Programming. LNCS, vol. 714. Springer, 184\u2013200.","DOI":"10.1007\/3-540-57186-8_79"},{"key":"S1471068422000187_ref9","doi-asserted-by":"publisher","DOI":"10.1017\/CBO9781139172752"},{"key":"S1471068422000187_ref24","unstructured":"Hughes, J. 1990. Why functional programming matters. In Research Topics in Functional Programming, D. Turner, Ed. Addison Wesley, 17\u201342."},{"key":"S1471068422000187_ref35","doi-asserted-by":"crossref","unstructured":"Schrijvers, T. , Santos Costa, V. , Wielemaker, J. and Demoen, B. 2008. Towards Typed Prolog. In 24th International Conference on Logic Programming (ICLP 2008). Springer. LNCS, vol. 5366, 693\u2013697.","DOI":"10.1007\/978-3-540-89982-2_59"},{"key":"S1471068422000187_ref15","doi-asserted-by":"crossref","unstructured":"Bry, F. and Schaffert, S. 2002. Towards a declarative query and transformation language for XML and semistructured data: Simulation unification. In Proceedings of the International Conference on Logic Programming (ICLP\u201902). LNCS, vol. 2401. Springer, 255\u2013270.","DOI":"10.1007\/3-540-45619-8_18"},{"key":"S1471068422000187_ref30","doi-asserted-by":"crossref","unstructured":"Naish, L. 1991. Adding equations to NU-Prolog. In Proceedings of the 3rd International Symposium on Programming Language Implementation and Logic Programming. LNCS, vol. 528. Springer, 15\u201326.","DOI":"10.1007\/3-540-54444-5_84"},{"key":"S1471068422000187_ref40","unstructured":"Van Roy, P. and Despain, A. 1990. The benefits of global dataflow analysis for an optimizing prolog compiler. In Proceedings of the 1990 North American Conference on Logic Programming. MIT Press, 501\u2013515."},{"key":"S1471068422000187_ref37","doi-asserted-by":"publisher","DOI":"10.1016\/S0743-1066(96)00068-4"},{"key":"S1471068422000187_ref27","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-83189-8"},{"key":"S1471068422000187_ref14","doi-asserted-by":"publisher","DOI":"10.1016\/0743-1066(89)90033-2"},{"key":"S1471068422000187_ref17","doi-asserted-by":"publisher","DOI":"10.1016\/S0743-1066(98)10029-8"},{"key":"S1471068422000187_ref1","doi-asserted-by":"publisher","DOI":"10.7551\/mitpress\/7160.001.0001"},{"key":"S1471068422000187_ref21","unstructured":"Hanus, M. (ed.) 2016. Curry: An integrated functional logic language (vers. 0.9.0). URL: http:\/\/www.curry-lang.org."},{"key":"S1471068422000187_ref25","doi-asserted-by":"crossref","unstructured":"Jim\u00e9nez-Martin, J. , Marino-Carballo, J. and Moreno-Navarro, J. 1992. Efficient compilation of lazy narrowing into Prolog. In Proceedings of International Workshop on Logic Program Synthesis and Transformation (LOPSTR\u201992). Springer Workshops in Computing Series, 253\u2013270.","DOI":"10.1007\/978-1-4471-3560-9_18"},{"key":"S1471068422000187_ref2","doi-asserted-by":"crossref","unstructured":"Antoy, S. 1992. Definitional trees. In Proceedings of of the 3rd International Conference on Algebraic and Logic Programming. LNCS, vol. 632. Springer, 143\u2013157.","DOI":"10.1007\/BFb0013825"},{"key":"S1471068422000187_ref20","doi-asserted-by":"crossref","unstructured":"Hanus, M. 2013. Functional logic programming: From theory to Curry. In Programming Logics - Essays in Memory of Harald Ganzinger. LNCS, vol. 7797. Springer, 123\u2013168.","DOI":"10.1007\/978-3-642-37651-1_6"},{"key":"S1471068422000187_ref36","doi-asserted-by":"publisher","DOI":"10.1145\/321850.321859"},{"key":"S1471068422000187_ref18","first-page":"161","article-title":"Analysis of residuating logic programs","volume":"3","author":"Hanus","year":"1995","journal-title":"Journal of Logic Programming 24"},{"key":"S1471068422000187_ref10","doi-asserted-by":"crossref","unstructured":"Barbosa, J. , Florido, M. and Santos Costa, V. 2021. Data type inference for logic programming. In Proceedings of the 31st International Symposium on Logic-based Program Synthesis and Transformation (LOPSTR 2021). LNCS, vol. 13290. Springer, 16\u201337.","DOI":"10.1007\/978-3-030-98869-2_2"},{"key":"S1471068422000187_ref16","doi-asserted-by":"crossref","unstructured":"Casas, A. , Cabeza, D. and Hermenegildo, M. 2006. A syntactic approach to combining functional notation, lazy evaluation, and higher-order in LP systems. In Proceedings of the 8th International Symposium on Functional and Logic Programming (FLOPS 2006), LNCS, vol. 3945. Springer, 146\u2013162.","DOI":"10.1007\/11737414_11"},{"key":"S1471068422000187_ref11","unstructured":"Barbuti, R. , Bellia, M. , Levi, G. and Martelli, M. 1984. On the integration of logic programming and functional programming. In Proceedings of IEEE International Symposium on Logic Programming. Atlantic City, 160\u2013166."},{"key":"S1471068422000187_ref32","doi-asserted-by":"crossref","unstructured":"Partain, W. 1993. The nofib benchmark suite of Haskell programs. In Proceedings of the 1992 Glasgow Workshop on Functional Programming. Springer, 195\u2013202.","DOI":"10.1007\/978-1-4471-3215-8_17"},{"key":"S1471068422000187_ref42","doi-asserted-by":"crossref","unstructured":"Wadler, P. and Blott, S. 1989. How to make ad-hoc polymorphism less ad hoc. In Proceedings of POPL\u201989, 60\u201376.","DOI":"10.1145\/75277.75283"},{"key":"S1471068422000187_ref5","doi-asserted-by":"crossref","unstructured":"Antoy, S. and Hanus, M. 2000. Compiling multi-paradigm declarative programs into Prolog. In Proceedings of International Workshop on Frontiers of Combining Systems (FroCoS\u20192000). LNCS, vol. 1794. Springer, 171\u2013185.","DOI":"10.1007\/10720084_12"},{"key":"S1471068422000187_ref34","unstructured":"Reddy, U. 1985. Narrowing as the operational semantics of functional languages. In Proceedings of IEEE International Symposium on Logic Programming, Boston, 138\u2013151."},{"key":"S1471068422000187_ref41","doi-asserted-by":"publisher","DOI":"10.1145\/262009.262011"},{"key":"S1471068422000187_ref38","volume-title":"The Art of Prolog","author":"Sterling","year":"1994"},{"key":"S1471068422000187_ref39","volume-title":"Cambridge Tracts in Theoretical Computer Science","volume":"55","year":"2003"},{"key":"S1471068422000187_ref7","doi-asserted-by":"publisher","DOI":"10.1145\/1721654.1721675"},{"key":"S1471068422000187_ref13","doi-asserted-by":"crossref","unstructured":"Bra\u00dfel, B. , Hanus, M. , Peem\u00f6ller, B. and Reck, F. 2011. KiCS2: A new compiler from Curry to Haskell. In Proceedings of the 20th International Workshop on Functional and (Constraint) Logic Programming (WFLP 2011). LNCS, vol. 6816. Springer, 1\u201318.","DOI":"10.1007\/978-3-642-22531-4_1"},{"key":"S1471068422000187_ref19","unstructured":"Hanus, M. 2011. Declarative processing of semistructured web data. In Technical Communications of the 27th International Conference on Logic Programming, vol. 11. Leibniz International Proceedings in Informatics (LIPIcs), 198\u2013208."},{"key":"S1471068422000187_ref3","doi-asserted-by":"crossref","unstructured":"Antoy, S. 1997. Optimal non-deterministic functional logic computations. In Proceedings of International Conference on Algebraic and Logic Programming (ALP\u201997). LNCS, vol. 1298. Springer, 16\u201330.","DOI":"10.1007\/BFb0027000"},{"key":"S1471068422000187_ref6","doi-asserted-by":"crossref","unstructured":"Antoy, S. and Hanus, M. 2009. Set functions for functional logic programming. In Proceedings of the 11th ACM SIGPLAN International Conference on Principles and Practice of Declarative Programming (PPDP\u201909). ACM Press, 73\u201382.","DOI":"10.1145\/1599410.1599420"},{"key":"S1471068422000187_ref22","doi-asserted-by":"publisher","DOI":"10.1017\/S1471068411000457"}],"container-title":["Theory and Practice of Logic Programming"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/www.cambridge.org\/core\/services\/aop-cambridge-core\/content\/view\/S1471068422000187","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2023,4,2]],"date-time":"2023-04-02T19:40:24Z","timestamp":1680464424000},"score":1,"resource":{"primary":{"URL":"https:\/\/www.cambridge.org\/core\/product\/identifier\/S1471068422000187\/type\/journal_article"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2022,7]]},"references-count":43,"journal-issue":{"issue":"4","published-print":{"date-parts":[[2022,7]]}},"alternative-id":["S1471068422000187"],"URL":"https:\/\/doi.org\/10.1017\/s1471068422000187","relation":{},"ISSN":["1471-0684","1475-3081"],"issn-type":[{"value":"1471-0684","type":"print"},{"value":"1475-3081","type":"electronic"}],"subject":[],"published":{"date-parts":[[2022,7]]},"assertion":[{"value":"\u00a9 The Author(s), 2022. Published by Cambridge University Press","name":"copyright","label":"Copyright","group":{"name":"copyright_and_licensing","label":"Copyright and Licensing"}},{"value":"This is an Open Access article, distributed under the terms of the Creative Commons Attribution licence (http:\/\/creativecommons.org\/licenses\/by\/4.0\/), which permits unrestricted re-use, distribution and reproduction, provided the original article is properly cited.","name":"license","label":"License","group":{"name":"copyright_and_licensing","label":"Copyright and Licensing"}},{"value":"This content has been made available to all.","name":"free","label":"Free to read"}]}}