{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,1,5]],"date-time":"2026-01-05T22:24:49Z","timestamp":1767651889613,"version":"3.41.0"},"reference-count":38,"publisher":"Association for Computing Machinery (ACM)","issue":"OOPSLA","license":[{"start":{"date-parts":[[2021,10,15]],"date-time":"2021-10-15T00:00:00Z","timestamp":1634256000000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/"}],"funder":[{"name":"UK Department for Business, Energy and Industrial Strategy"},{"DOI":"10.13039\/501100000781","name":"European Research Council","doi-asserted-by":"publisher","award":["682315"],"award-info":[{"award-number":["682315"]}],"id":[{"id":"10.13039\/501100000781","id-type":"DOI","asserted-by":"publisher"}]},{"DOI":"10.13039\/501100000288","name":"Royal Society","doi-asserted-by":"publisher","id":[{"id":"10.13039\/501100000288","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":[[2021,10,20]]},"abstract":"<jats:p>Programming or scripting languages used in real-world systems are seldom designed with a formal semantics in mind from the outset. Therefore, developing well-founded analysis tools for these systems requires reverse-engineering a formal semantics as a first step. This can take months or years of effort.<\/jats:p>\n          <jats:p>Can we (at least partially) automate this process? Though desirable, automatically reverse-engineering semantics rules from an implementation is very challenging, as found by Krishnamurthi, Lerner and Elberty. In this paper, we highlight that scaling methods with the size of the language is very difficult due to state space explosion, so we propose to learn semantics incrementally. We give a formalisation of Krishnamurthi et al.'s desugaring learning framework in order to clarify the assumptions necessary for an incremental learning algorithm to be feasible.<\/jats:p>\n          <jats:p>We show that this reformulation allows us to extend the search space and express rules that Krishnamurthi et al. described as challenging, while still retaining feasibility. We evaluate enumerative synthesis as a baseline algorithm, and demonstrate that, with our reformulation of the problem, it is possible to learn correct desugaring rules for the example source and core languages proposed by Krishnamurthi et al., in most cases identical to the intended rules. In addition, with user guidance, our system was able to synthesize rules for desugaring list comprehensions and try\/catch\/finally constructs.<\/jats:p>","DOI":"10.1145\/3485499","type":"journal-article","created":{"date-parts":[[2021,10,15]],"date-time":"2021-10-15T19:18:28Z","timestamp":1634325508000},"page":"1-29","update-policy":"https:\/\/doi.org\/10.1145\/crossmark-policy","source":"Crossref","is-referenced-by-count":2,"title":["One down, 699 to go: or, synthesising compositional desugarings"],"prefix":"10.1145","volume":"5","author":[{"given":"S\u00e1ndor","family":"Bartha","sequence":"first","affiliation":[{"name":"University of Edinburgh, UK"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-1307-9286","authenticated-orcid":false,"given":"James","family":"Cheney","sequence":"additional","affiliation":[{"name":"University of Edinburgh, UK \/ Alan Turing Institute, UK"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"ORCID":"https:\/\/orcid.org\/0000-0001-5573-8465","authenticated-orcid":false,"given":"Vaishak","family":"Belle","sequence":"additional","affiliation":[{"name":"University of Edinburgh, UK \/ Alan Turing Institute, UK"}],"role":[{"role":"author","vocabulary":"crossref"}]}],"member":"320","published-online":{"date-parts":[[2021,10,15]]},"reference":[{"key":"e_1_2_2_1_1","doi-asserted-by":"publisher","DOI":"10.1145\/3355089.3356549"},{"key":"e_1_2_2_2_1","doi-asserted-by":"publisher","DOI":"10.1109\/FMCAD.2013.6679385"},{"volume-title":"Tools and Algorithms for the Construction and Analysis of Systems","author":"Alur Rajeev","key":"e_1_2_2_3_1","unstructured":"Rajeev Alur , Arjun Radhakrishna , and Abhishek Udupa . 2017. Scaling Enumerative Program Synthesis via Divide and Conquer . In Tools and Algorithms for the Construction and Analysis of Systems , Axel Legay and Tiziana Margaria (Eds.). Springer Berlin Heidelberg , Berlin, Heidelberg . 319\u2013336. isbn:978-3-662-54577-5 Rajeev Alur, Arjun Radhakrishna, and Abhishek Udupa. 2017. Scaling Enumerative Program Synthesis via Divide and Conquer. In Tools and Algorithms for the Construction and Analysis of Systems, Axel Legay and Tiziana Margaria (Eds.). Springer Berlin Heidelberg, Berlin, Heidelberg. 319\u2013336. isbn:978-3-662-54577-5"},{"key":"e_1_2_2_4_1","doi-asserted-by":"publisher","DOI":"10.1145\/2983990.2984004"},{"key":"e_1_2_2_5_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-030-49210-6_2"},{"key":"e_1_2_2_6_1","doi-asserted-by":"crossref","unstructured":"S\u00e1ndor Bartha James Cheney and Vaishak Belle. 2021. One Down 699 to Go: or synthesising compositional desugarings (extended version). arxiv:2109.06114.  S\u00e1ndor Bartha James Cheney and Vaishak Belle. 2021. One Down 699 to Go: or synthesising compositional desugarings (extended version). arxiv:2109.06114.","DOI":"10.1145\/3485499"},{"key":"e_1_2_2_7_1","unstructured":"H. Comon M. Dauchet R. Gilleron C. L\u00f6ding F. Jacquemard D. Lugiez S. Tison and M. Tommasi. 2007. Tree Automata Techniques and Applications. Available on:. http:\/\/www.grappa.univ-lille3.fr\/tata release October 12th 2007.  H. Comon M. Dauchet R. Gilleron C. L\u00f6ding F. Jacquemard D. Lugiez S. Tison and M. Tommasi. 2007. Tree Automata Techniques and Applications. Available on:. http:\/\/www.grappa.univ-lille3.fr\/tata release October 12th 2007."},{"key":"e_1_2_2_8_1","doi-asserted-by":"publisher","DOI":"10.1145\/2430532.2364515"},{"key":"e_1_2_2_9_1","volume-title":"Matthew Flatt, and Shriram Krishnamurthi.","author":"Felleisen Matthias","year":"2001","unstructured":"Matthias Felleisen , Robert Bruce Findler , Matthew Flatt, and Shriram Krishnamurthi. 2001 . How to Design Programs. MIT Press . Matthias Felleisen, Robert Bruce Findler, Matthew Flatt, and Shriram Krishnamurthi. 2001. How to Design Programs. MIT Press."},{"volume-title":"An Executable Formal Semantics of PHP","author":"Filaretti Daniele","key":"e_1_2_2_10_1","unstructured":"Daniele Filaretti and Sergio Maffeis . 2014. An Executable Formal Semantics of PHP . In ECOOP, Richard Jones (Ed.). Springer , Berlin, Heidelberg . 567\u2013592. isbn:978-3-662-44202-9 Daniele Filaretti and Sergio Maffeis. 2014. An Executable Formal Semantics of PHP. In ECOOP, Richard Jones (Ed.). Springer, Berlin, Heidelberg. 567\u2013592. isbn:978-3-662-44202-9"},{"key":"e_1_2_2_11_1","doi-asserted-by":"publisher","DOI":"10.1145\/2914770.2837629"},{"key":"e_1_2_2_12_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-14107-2_7"},{"key":"e_1_2_2_13_1","doi-asserted-by":"publisher","DOI":"10.1561\/2500000010"},{"volume-title":"Tools and Algorithms for the Construction and Analysis of Systems","author":"Inala Jeevana Priya","key":"e_1_2_2_14_1","unstructured":"Jeevana Priya Inala , Nadia Polikarpova , Xiaokang Qiu , Benjamin S. Lerner , and Armando Solar-Lezama . 2017. Synthesis of Recursive ADT Transformations from Reusable Templates . In Tools and Algorithms for the Construction and Analysis of Systems , Axel Legay and Tiziana Margaria (Eds.). Springer Berlin Heidelberg , Berlin, Heidelberg . 247\u2013263. isbn:978-3-662-54577-5 Jeevana Priya Inala, Nadia Polikarpova, Xiaokang Qiu, Benjamin S. Lerner, and Armando Solar-Lezama. 2017. Synthesis of Recursive ADT Transformations from Reusable Templates. In Tools and Algorithms for the Construction and Analysis of Systems, Axel Legay and Tiziana Margaria (Eds.). Springer Berlin Heidelberg, Berlin, Heidelberg. 247\u2013263. isbn:978-3-662-54577-5"},{"key":"e_1_2_2_15_1","doi-asserted-by":"publisher","DOI":"10.1145\/1806799.1806833"},{"key":"e_1_2_2_16_1","doi-asserted-by":"publisher","DOI":"10.1145\/3158154"},{"key":"e_1_2_2_17_1","doi-asserted-by":"publisher","DOI":"10.1145\/2908080.2908117"},{"key":"e_1_2_2_18_1","doi-asserted-by":"publisher","DOI":"10.1145\/307988.307989"},{"key":"e_1_2_2_19_1","unstructured":"Shriram Krishnamurthi Benjamin S. Lerner and Liam Elberty. 2019. The Next 700 Semantics: A Research Challenge. In SNAPL.  Shriram Krishnamurthi Benjamin S. Lerner and Liam Elberty. 2019. The Next 700 Semantics: A Research Challenge. In SNAPL."},{"key":"e_1_2_2_20_1","doi-asserted-by":"publisher","DOI":"10.1145\/365230.365257"},{"key":"e_1_2_2_21_1","doi-asserted-by":"publisher","DOI":"10.1145\/2814228.2814240"},{"volume-title":"An Operational Semantics for JavaScript","author":"Maffeis Sergio","key":"e_1_2_2_22_1","unstructured":"Sergio Maffeis , John C. Mitchell , and Ankur Taly . 2008. An Operational Semantics for JavaScript . In ESOP, G. Ramalingam (Ed.). Springer, Berlin , Heidelberg . 307\u2013325. isbn:978-3-540-89330-1 Sergio Maffeis, John C. Mitchell, and Ankur Taly. 2008. An Operational Semantics for JavaScript. In ESOP, G. Ramalingam (Ed.). Springer, Berlin, Heidelberg. 307\u2013325. isbn:978-3-540-89330-1"},{"key":"e_1_2_2_23_1","doi-asserted-by":"publisher","DOI":"10.1145\/1596550.1596563"},{"key":"e_1_2_2_24_1","volume-title":"Background: Mathematical Structures","author":"Meinke K.","year":"1993","unstructured":"K. Meinke and J. V. Tucker . 1993 . Universal Algebra. In Handbook of Logic in Computer Science (Vol . 1): Background: Mathematical Structures . Oxford University Press, Inc. , USA. 189\u2013368. isbn:0198537352 K. Meinke and J. V. Tucker. 1993. Universal Algebra. In Handbook of Logic in Computer Science (Vol. 1): Background: Mathematical Structures. Oxford University Press, Inc., USA. 189\u2013368. isbn:0198537352"},{"key":"e_1_2_2_25_1","doi-asserted-by":"publisher","DOI":"10.1016\/0890-5401(91)90052-4"},{"volume-title":"Evaluating the Design of the R Language: Objects and Functions for Data Analysis","author":"Morandat Flor\u00e9al","key":"e_1_2_2_26_1","unstructured":"Flor\u00e9al Morandat , Brandon Hill , Leo Osvald , and Jan Vitek . 2012. Evaluating the Design of the R Language: Objects and Functions for Data Analysis . In ECOOP. Springer-Verlag, Berlin , Heidelberg . 104\u2013131. isbn:978-3-642-31056-0 Flor\u00e9al Morandat, Brandon Hill, Leo Osvald, and Jan Vitek. 2012. Evaluating the Design of the R Language: Objects and Functions for Data Analysis. In ECOOP. Springer-Verlag, Berlin, Heidelberg. 104\u2013131. isbn:978-3-642-31056-0"},{"key":"e_1_2_2_27_1","doi-asserted-by":"publisher","DOI":"10.1007\/s10994-013-5358-3"},{"key":"e_1_2_2_28_1","doi-asserted-by":"publisher","DOI":"10.1145\/2983990.2983997"},{"key":"e_1_2_2_29_1","doi-asserted-by":"publisher","DOI":"10.1145\/2737924.2738007"},{"key":"e_1_2_2_30_1","unstructured":"Benjamin C. Pierce Alessandro Romanel and Daniel Wagner. 2010. The Spider Calculus: Computing in Active Graphs. Manuscript available from http:\/\/www.cis.upenn.edu\/ bcpierce\/papers\/spider_calculus.pdf  Benjamin C. Pierce Alessandro Romanel and Daniel Wagner. 2010. The Spider Calculus: Computing in Active Graphs. Manuscript available from http:\/\/www.cis.upenn.edu\/ bcpierce\/papers\/spider_calculus.pdf"},{"key":"e_1_2_2_31_1","volume-title":"Python: The Full Monty. In OOPSLA","author":"Politz Joe Gibbs","year":"2013","unstructured":"Joe Gibbs Politz , Alejandro Martinez , Matthew Milano , Sumner Warren , Daniel Patterson , Junsong Li , Anand Chitipothu , and Shriram Krishnamurthi . 2013 . Python: The Full Monty. In OOPSLA . ACM , New York, NY, USA . 217\u2013232. isbn:978-1-4503-2374-1 Joe Gibbs Politz, Alejandro Martinez, Matthew Milano, Sumner Warren, Daniel Patterson, Junsong Li, Anand Chitipothu, and Shriram Krishnamurthi. 2013. Python: The Full Monty. In OOPSLA. ACM, New York, NY, USA. 217\u2013232. isbn:978-1-4503-2374-1"},{"key":"e_1_2_2_32_1","doi-asserted-by":"publisher","DOI":"10.1145\/2858965.2814310"},{"volume-title":"cvc4sy: Smart and Fast Term Enumeration for Syntax-Guided Synthesis","author":"Reynolds Andrew","key":"e_1_2_2_33_1","unstructured":"Andrew Reynolds , Haniel Barbosa , Andres N\u00f6tzli , Clark Barrett , and Cesare Tinelli . 2019. cvc4sy: Smart and Fast Term Enumeration for Syntax-Guided Synthesis . In Computer Aided Verification, Isil Dillig and Serdar Tasiran (Eds.). Springer International Publishing , Cham . 74\u201383. isbn:978-3-030-25543-5 Andrew Reynolds, Haniel Barbosa, Andres N\u00f6tzli, Clark Barrett, and Cesare Tinelli. 2019. cvc4sy: Smart and Fast Term Enumeration for Syntax-Guided Synthesis. In Computer Aided Verification, Isil Dillig and Serdar Tasiran (Eds.). Springer International Publishing, Cham. 74\u201383. isbn:978-3-030-25543-5"},{"key":"e_1_2_2_34_1","doi-asserted-by":"publisher","DOI":"10.1007\/s10009-012-0249-7"},{"key":"e_1_2_2_35_1","doi-asserted-by":"publisher","DOI":"10.1145\/1065010.1065045"},{"key":"e_1_2_2_36_1","volume-title":"Michael Sperber, R. Kent Dybvig, Matthew Flatt, Anton van Straaten, Robby Findler, and Jacob Matthews. 2010. Revised [6] Report on the Algorithmic Language Scheme","year":"1939","unstructured":"Michael Sperber, R. Kent Dybvig, Matthew Flatt, Anton van Straaten, Robby Findler, and Jacob Matthews. 2010. Revised [6] Report on the Algorithmic Language Scheme ( 1 st ed.). Cambridge University Press , USA. isbn:0521 1939 90 Michael Sperber, R. Kent Dybvig, Matthew Flatt, Anton van Straaten, Robby Findler, and Jacob Matthews. 2010. Revised [6] Report on the Algorithmic Language Scheme (1st ed.). Cambridge University Press, USA. isbn:0521193990","edition":"1"},{"key":"e_1_2_2_37_1","doi-asserted-by":"publisher","DOI":"10.1017\/S0960129500001560"},{"key":"e_1_2_2_38_1","doi-asserted-by":"publisher","DOI":"10.1145\/143165.143169"}],"container-title":["Proceedings of the ACM on Programming Languages"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3485499","content-type":"unspecified","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/3485499","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,6,17]],"date-time":"2025-06-17T20:18:40Z","timestamp":1750191520000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3485499"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2021,10,15]]},"references-count":38,"journal-issue":{"issue":"OOPSLA","published-print":{"date-parts":[[2021,10,20]]}},"alternative-id":["10.1145\/3485499"],"URL":"https:\/\/doi.org\/10.1145\/3485499","relation":{},"ISSN":["2475-1421"],"issn-type":[{"type":"electronic","value":"2475-1421"}],"subject":[],"published":{"date-parts":[[2021,10,15]]},"assertion":[{"value":"2021-10-15","order":2,"name":"published","label":"Published","group":{"name":"publication_history","label":"Publication History"}}]}}