Graph IRs for Impure Higher-Order Languages (Technical Report)
Oliver Bra\v{c}evac, Guannan Wei, Songlin Jia, Supun Abeysinghe,, Yuxuan Jiang, Yuyan Bao, Tiark Rompf

TL;DR
This technical report provides a detailed formal account of the $mbda^*_{4G}$ graph IR for impure higher-order languages, establishing its correctness, adequacy, and supporting compiler optimizations through formal proofs and logical relations.
Contribution
It introduces the $mbda^*_{4G}$ graph IR, proves its soundness and correctness, and demonstrates its application in compiler optimizations with formal proofs.
Findings
Proves the adequacy and soundness of $mbda^*_{4G}$.
Establishes the correctness of optimization rules via logical relations.
Includes a formal account of code generation and code motion in Scala LMS.
Abstract
This is a companion report for the OOPSLA 2023 paper of the same title, presenting a detailed end-to-end account of the graph IR, at a level of detail beyond a regular conference paper. Our first concern is adequacy and soundness of , which we derive from a direct-style imperative functional language (a variant of Bao et al.'s -calculus with reachability types and a simple effect system) by a series of type-preserving translations into a calculus in monadic normalform (MNF). Static reachability types and effects entirely inform 's dependency synthesis. We argue for its adequacy by proving its functional properties along with dependency safety via progress and preservation lemmas with respect to a notion of call-by-value (CBV) reduction that checks the observed order of effects. Our second concern is…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsError Correcting Code Techniques · Matrix Theory and Algorithms · Advanced Graph Neural Networks
