Localizing Type Errors for Syntactic Sugar by Lifting
@article{OOPSLA:GYW26,
author = {Guan, Zhichao and Yu, Tailai and Wang, Di and Hu, Zhenjiang},
doi = {10.1145/3798253},
journal = {Proc.\ ACM Program.\ Lang.},
month = {April},
issue = {OOPSLA1},
title = {{Localizing Type Errors for Syntactic Sugar by Lifting}},
volume = {10},
number = {145},
year = {2026}
} 摘要
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