# Denotational semantics can prove closure conversion correct for a Turing-complete language

Original title: Denotational Results in Compiler Correctness and Comparisons with Operational

> Hacker News story 50691065 · language: en · submitted 2026-11-29
> Web version: https://zeli.app/story/50691065
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 15 · by [matt_d](<https://news.ycombinator.com/user?id=matt_d>) · 💬 0
[original](<https://arxiv.org/abs/2611.31724>) · [HN discussion](<https://news.ycombinator.com/item?id=50691065>)

## Summary

Proving a compiler correct requires choosing a style of semantics, and operational approaches like those in CakeML and CompCert dominate. This paper asks whether denotational semantics can carry the load, focusing on a compiler from FPC — a language with lexically scoped functions and recursive types — down to a first-order low-level intermediate language, including closure conversion. The authors give the first denotational proofs of semantic reflection for closure conversion on a Turing-complete language, one via a graph model with a new approximant logical relation and one via Scott domains adapting a Reynolds relation. They then compare mechanized proofs of an eight-pass compiler across five semantic styles, finding no single semantics wins on every pass: operational proofs grow with divergence between source and target runs, while denotational proofs stay short when a pass is an equation between meanings and balloon when a logical relation is needed.

## Key quote

> For closure conversion, reflection is the hard direction.

---

## Cite

- Page: https://zeli.app/story/50691065
- Date: 2026-11-29
- Source: arxiv.org (https://arxiv.org/abs/2611.31724)
- Hacker News: https://news.ycombinator.com/item?id=50691065

## Other languages

- zh: https://zeli.app/zh/story/50691065 · markdown: https://zeli.app/zh/story/50691065.md
- ja: https://zeli.app/ja/story/50691065 · markdown: https://zeli.app/ja/story/50691065.md
- ko: https://zeli.app/ko/story/50691065 · markdown: https://zeli.app/ko/story/50691065.md
- de: https://zeli.app/de/story/50691065 · markdown: https://zeli.app/de/story/50691065.md
- es: https://zeli.app/es/story/50691065 · markdown: https://zeli.app/es/story/50691065.md
- ru: https://zeli.app/ru/story/50691065 · markdown: https://zeli.app/ru/story/50691065.md
