Simple lambda lifting: Formalisation in Lean and a new efficient algorithm
| dc.contributor.author | Levy, Tom | |
| dc.contributor.author | Reeves, Steve | |
| dc.coverage.spatial | Rio de Janeiro, Brazil | |
| dc.date.accessioned | 2026-06-04T03:13:14Z | |
| dc.date.available | 2026-06-04T03:13:14Z | |
| dc.date.issued | 2026 | |
| dc.description.abstract | Lambda lifting is a technique used in compilers to convert nested function definitions to top-level function definitions. A series of papers has led to an 𝑂(𝑛2) algorithm, however it is complex. We present a simple 𝑂(𝑛2) algorithm for lambda lifting and prove its correctness. We also formalise a lambda lifting specification from the literature in Lean 4, and use that to prove some of the properties and test our algorithm on generated test cases. One of our contributions is to formalise the notion of a “complete” and “minimal” lifting, addressing a small issue with the handling of unused functions that to our knowledge affects all previous algorithms. | |
| dc.identifier.citation | Levy, T., & Reeves, S. (2026). Simple lambda lifting: Formalisation in Lean and a new efficient algorithm. ACM. https://doi.org/10.1145/3793656.3793692 | |
| dc.identifier.doi | 10.1145/3793656.3793692 | |
| dc.identifier.isbn | 979-8-4007-2478-7 | |
| dc.identifier.uri | https://hdl.handle.net/10289/18322 | |
| dc.language.iso | en | |
| dc.publisher | ACM | |
| dc.relation.isPartOf | Proceedings of the 2026 IEEE/ACM 14th International Conference on Formal Methods in Software Engineering (FormaliSE) | |
| dc.rights | Attribution 4.0 International | en |
| dc.rights.uri | http://creativecommons.org/licenses/by/4.0/ | |
| dc.source | 2026 IEEE/ACM 14th International Conference on Formal Methods in Software Engineering (FormaliSE) | |
| dc.subject | computer science | |
| dc.subject | lambda lifting | |
| dc.subject | software engineering | |
| dc.title | Simple lambda lifting: Formalisation in Lean and a new efficient algorithm | |
| dc.type | Conference Contribution | |
| dspace.entity.type | Publication | en |