{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,10,23]],"date-time":"2026-10-23T20:31:01Z","timestamp":1792787461679,"version":"4.5.0"},"reference-count":30,"publisher":"Association for Computing Machinery (ACM)","issue":"OOPSLA1","license":[{"start":{"date-parts":[[2026,4,10]],"date-time":"2026-04-10T00:00:00Z","timestamp":1775779200000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/legalcode"}],"funder":[{"name":"National Natural Science Foundation of China","award":["W2411051"],"award-info":[{"award-number":["W2411051"]}],"id":[{"id":"https:\/\/ror.org\/01h0zpd94","id-type":"ROR","asserted-by":"crossref"}]}],"content-domain":{"domain":["dl.acm.org"],"crossmark-restriction":true},"short-container-title":["Proc. ACM Program. Lang."],"published-print":{"date-parts":[[2026,4,10]]},"abstract":"<jats:p>\n                    Syntactic sugar enhances the usability of a core language by providing intuitive syntax in a surface language; however, its interaction with the core-language type checker often results in error messages that are unclear to surface programmers. Existing techniques, such as type lifting, can automatically infer typing rules for syntactic sugar, but they do not consider localizing type errors directly in the surface syntax. This paper studies the problem of localizing and reporting type errors for syntactic sugar, addressing two key challenges: precisely localizing errors and ensuring that they are fixable. Inspired by the recently proposed marked lambda calculus (MLC), we develop\n                    <jats:italic toggle=\"yes\">\n                      <jats:italic toggle=\"yes\">\u2113<\/jats:italic>\n                    <\/jats:italic>\n                    \u00a0MLC as our core language which tracks error provenance and locations via type annotations. Building on this, we propose the\n                    <jats:sc>Ste<\/jats:sc>\n                    <jats:sc>llar<\/jats:sc>\n                    framework, which automatically lifts the core language\u2019s typing rules to the surface language while enabling error localization in the surface syntax.\n                    <jats:sc>Ste<\/jats:sc>\n                    <jats:sc>llar<\/jats:sc>\n                    also ensures that the reported errors are fixable by incorporating extra premises into the lifted typing rules. We implement\n                    <jats:sc>Ste<\/jats:sc>\n                    <jats:sc>llar<\/jats:sc>\n                    and evaluate it across various surface languages with different type structures, demonstrating that our approach precisely localizes errors and avoids unhelpful references to core-language constructs. Our evaluation suggests that\n                    <jats:sc>Ste<\/jats:sc>\n                    <jats:sc>llar<\/jats:sc>\n                    can help surface programmers address type errors more effectively, enhancing the practicality of syntactic sugar in language engineering.\n                  <\/jats:p>","DOI":"10.1145\/3798253","type":"journal-article","created":{"date-parts":[[2026,4,10]],"date-time":"2026-04-10T14:33:43Z","timestamp":1775831623000},"page":"1459-1485","update-policy":"https:\/\/doi.org\/10.1145\/crossmark-policy","source":"Crossref","is-referenced-by-count":0,"title":["Localizing Type Errors for Syntactic Sugar by Lifting"],"prefix":"10.1145","volume":"10","author":[{"ORCID":"https:\/\/orcid.org\/0009-0000-1627-6309","authenticated-orcid":false,"given":"Zhichao","family":"Guan","sequence":"first","affiliation":[{"name":"Peking University, Beijing, China"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0009-0002-3818-1612","authenticated-orcid":false,"given":"Tailai","family":"Yu","sequence":"additional","affiliation":[{"name":"Peking University, Beijing, China"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-2418-7987","authenticated-orcid":false,"given":"Di","family":"Wang","sequence":"additional","affiliation":[{"name":"Peking University, Beijing, China"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-9034-205X","authenticated-orcid":false,"given":"Zhenjiang","family":"Hu","sequence":"additional","affiliation":[{"name":"Peking University, Beijing, China"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"320","published-online":{"date-parts":[[2026,4,10]]},"reference":[{"key":"e_1_3_1_2_1","doi-asserted-by":"publisher","DOI":"10.1145\/3344429.3372508"},{"key":"e_1_3_1_3_1","doi-asserted-by":"publisher","DOI":"10.1145\/3622812"},{"key":"e_1_3_1_4_1","doi-asserted-by":"publisher","unstructured":"Jana Dunfield and Neel Krishnaswami. 2021. Bidirectional Typing. 54 5 Article 98 (May 2021) 38 pages. https:\/\/doi.org\/10.1145\/3450952 10.1145\/3450952","DOI":"10.1145\/3450952"},{"key":"e_1_3_1_5_1","doi-asserted-by":"publisher","DOI":"10.1145\/964001.964025"},{"key":"e_1_3_1_6_1","doi-asserted-by":"publisher","DOI":"10.1007\/11431664_5"},{"key":"e_1_3_1_7_1","doi-asserted-by":"publisher","DOI":"10.1145\/3689758"},{"key":"e_1_3_1_8_1","doi-asserted-by":"publisher","DOI":"10.5281\/zenodo.18806155"},{"key":"e_1_3_1_9_1","unstructured":"Bastiaan Heeren. 2005. Top quality type error Messages. https:\/\/api.semanticscholar.org\/CorpusID:33906534"},{"key":"e_1_3_1_10_1","doi-asserted-by":"publisher","DOI":"10.1017\/CBO9780511608865"},{"key":"e_1_3_1_11_1","doi-asserted-by":"publisher","DOI":"10.1145\/242224.242477"},{"key":"e_1_3_1_12_1","volume-title":"Resolution d\u2019equations dans les langages d\u2019ordre 1, 2,..., omega. Ph. D. Dissertation","author":"Huet G\u00e9rard","year":"1976","unstructured":"G\u00e9rard Huet. 1976. Resolution d\u2019equations dans les langages d\u2019ordre 1, 2,..., omega. Ph. D. Dissertation. Universit\u00e9 de Paris VII."},{"key":"e_1_3_1_13_1","doi-asserted-by":"publisher","DOI":"10.1145\/237721.237728"},{"key":"e_1_3_1_14_1","doi-asserted-by":"publisher","DOI":"10.1145\/291891.291892"},{"key":"e_1_3_1_15_1","doi-asserted-by":"publisher","DOI":"10.1145\/2500365.2500596"},{"key":"e_1_3_1_16_1","doi-asserted-by":"publisher","DOI":"10.1145\/2914770.2837644"},{"key":"e_1_3_1_17_1","unstructured":"Simon Marlow . 2010. Haskell 2010 language report. (2010)."},{"key":"e_1_3_1_18_1","article-title":"On the Unification of Substitutions in Type Inference","volume":"1595","author":"McAdam Bruce","year":"1998","unstructured":"Bruce McAdam. 1998. On the Unification of Substitutions in Type Inference. Lecture Notes in Computer Science 1595 (10 1998).","journal-title":"Lecture Notes in Computer Science"},{"key":"e_1_3_1_19_1","doi-asserted-by":"publisher","DOI":"10.1145\/944746.944708"},{"key":"e_1_3_1_20_1","author":"Pombrio Justin","year":"2018","unstructured":"Justin Pombrio. 2018. Resugaring: Lifting Languages through Syntactic Sugar. Ph. D. Dissertation.","journal-title":"Resugaring: Lifting Languages through Syntactic Sugar. Ph. D. Dissertation"},{"key":"e_1_3_1_21_1","doi-asserted-by":"publisher","DOI":"10.1145\/3296979.3192398"},{"key":"e_1_3_1_22_1","doi-asserted-by":"publisher","DOI":"10.1145\/3110288"},{"key":"e_1_3_1_23_1","doi-asserted-by":"publisher","DOI":"10.1145\/268946.268969"},{"key":"e_1_3_1_24_1","article-title":"Gradual typing for functional languages","author":"Siek Jeremy","year":"2006","unstructured":"Jeremy Siek and Walid Taha. 2006. Gradual typing for functional languages. Scheme and Functional Programming.","journal-title":"Scheme and Functional Programming"},{"key":"e_1_3_1_25_1","doi-asserted-by":"publisher","DOI":"10.4230\/LIPIcs.SNAPL.2015.309"},{"key":"e_1_3_1_26_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-00590-9_1"},{"key":"e_1_3_1_27_1","doi-asserted-by":"publisher","DOI":"10.1145\/512644.512648"},{"key":"e_1_3_1_28_1","first-page":"147","article-title":"Language-Oriented Programming","volume":"15","author":"Ward Martin P.","year":"1994","unstructured":"Martin P. Ward. 1994. Language-Oriented Programming. Softw. Concepts Tools 15 (1994), 147\u2013161.","journal-title":"Softw. Concepts Tools"},{"key":"e_1_3_1_29_1","doi-asserted-by":"publisher","DOI":"10.1007\/3-540-45465-9_78"},{"key":"e_1_3_1_30_1","doi-asserted-by":"publisher","DOI":"10.1145\/2535838.2535870"},{"key":"e_1_3_1_31_1","doi-asserted-by":"publisher","DOI":"10.1145\/3632910"}],"container-title":["Proceedings of the ACM on Programming Languages"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/3798253","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2026,9,26]],"date-time":"2026-09-26T11:19:08Z","timestamp":1790421548000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3798253"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2026,4,10]]},"references-count":30,"journal-issue":{"issue":"OOPSLA1","published-print":{"date-parts":[[2026,4,10]]}},"alternative-id":["10.1145\/3798253"],"URL":"https:\/\/doi.org\/10.1145\/3798253","relation":{},"ISSN":["2475-1421"],"issn-type":[{"value":"2475-1421","type":"electronic"}],"subject":[],"published":{"date-parts":[[2026,4,10]]},"assertion":[{"value":"2025-10-10","order":0,"name":"received","label":"Received","group":{"name":"publication_history","label":"Publication History"}},{"value":"2026-02-17","order":2,"name":"accepted","label":"Accepted","group":{"name":"publication_history","label":"Publication History"}},{"value":"2026-04-10","order":3,"name":"published","label":"Published","group":{"name":"publication_history","label":"Publication History"}}]}}