English

Efficient Bottom-Up Synthesis for Programs with Local Variables

Programming Languages 2023-11-08 v1 Artificial Intelligence Software Engineering

Abstract

We propose a new synthesis algorithm that can efficiently search programs with local variables (e.g., those introduced by lambdas). Prior bottom-up synthesis algorithms are not able to evaluate programs with free local variables, and therefore cannot effectively reduce the search space of such programs (e.g., using standard observational equivalence reduction techniques), making synthesis slow. Our algorithm can reduce the space of programs with local variables. The key idea, dubbed lifted interpretation, is to lift up the program interpretation process, from evaluating one program at a time to simultaneously evaluating all programs from a grammar. Lifted interpretation provides a mechanism to systematically enumerate all binding contexts for local variables, thereby enabling us to evaluate and reduce the space of programs with local variables. Our ideas are instantiated in the domain of web automation. The resulting tool, Arborist, can automate a significantly broader range of challenging tasks more efficiently than state-of-the-art techniques including WebRobot and Helena.

Keywords

Cite

@article{arxiv.2311.03705,
  title  = {Efficient Bottom-Up Synthesis for Programs with Local Variables},
  author = {Xiang Li and Xiangyu Zhou and Rui Dong and Yihong Zhang and Xinyu Wang},
  journal= {arXiv preprint arXiv:2311.03705},
  year   = {2023}
}

Comments

Accepted to POPL 2024

R2 v1 2026-06-28T13:13:35.038Z