Compiling Classical Sequent Calculus to Stock Hardware: The Duality of Compilation
Open Access
- 9 April 2025
- journal article
- Published by Association for Computing Machinery (ACM) in Proceedings of the ACM on Programming Languages
- Vol. 9 (OOPSLA1) , 1746-1773
Abstract
Compiler intermediate representations have to strike a balance between being high-level enough to allow for easy translation of surface languages into them and being low-level enough to make code generation easy. An intermediate representation based on a logical system typically has the former property and additionally satisfies several meta-theoretical properties which are valuable when optimizing code. Recently, classical sequent calculus, which is widely recognized and impactful within the fields of logic and proof theory, has been proposed as a natural candidate in this regard, due to its symmetric treatment of data and control flow. For such a language to be useful, however, it must eventually be compiled to machine code. In this paper, we introduce an intermediate representation that is based on classical sequent calculus and demonstrate that this language can be directly translated to conventional hardware. We provide both a formal description and an implementation. Preliminary performance evaluations indicate that our approach is viable.Keywords
Funding Information
- Deutsche Forschungsgemeinschaft (448316946)
This publication has 38 references indexed in Scilit:
- Being Lazy When It Counts2024
- Codata in Action2019
- On the unity of dualityAnnals of Pure and Applied Logic, 2008
- Tilting at Windmills with Coq: Formal Verification of a Compilation Algorithm for Parallel MovesJournal of Automated Reasoning, 2008
- Syntax and Semantics of Dependent Types1997
- Compiling with Continuations1991
- Explicit substitutionsJournal of Functional Programming, 1991
- Codatatypes in MLJournal of Symbolic Computation, 1989
- Linear logicTheoretical Computer Science, 1987
- Untersuchungen ber das logische Schlie en. IMathematische Zeitschrift, 1935