Introduction and elimination, left and right
Open Access
- 29 August 2022
- journal article
- research article
- Published by Association for Computing Machinery (ACM) in Proceedings of the ACM on Programming Languages
- Vol. 6 (ICFP) , 438-465
Abstract
Functional programming language design has been shaped by the framework of natural deduction, in which language constructs are divided into introduction and elimination rules for producers of values. In sequent calculus-based languages, left introduction rules replace (right) elimination rules and provide a dedicated sublanguage for consumers of values. In this paper, we present and analyze a wider design space of programming languages which encompasses four kinds of rules: Introduction and elimination, both left and right. We analyze the influence of rule choice on program structure and argue that having all kinds of rules enriches a programmer’s modularity arsenal. In particular, we identify four ways of adhering to the principle that ”the structure of the program follows the structure of the data“ and show that they correspond to the four possible choices of rules. We also propose the principle of bi-expressibility to guide and validate the design of rules for a connective. Finally, we deepen the well-known dualities between different connectives by means of the proof/refutation duality.Keywords
Funding Information
- DFG (OS 293/5-1)
This publication has 33 references indexed in Scilit:
- Propositions as sessionsACM SIGPLAN Notices, 2012
- On the unity of dualityAnnals of Pure and Applied Logic, 2008
- Multi-return function callACM SIGPLAN Notices, 2004
- A Formulae-as-Types Interpretation of Subtractive LogicJournal of Logic and Computation, 2004
- The duality of computationACM SIGPLAN Notices, 2000
- Logic Programming with Focusing Proofs in Linear LogicJournal of Logic and Computation, 1992
- Codatatypes in MLJournal of Symbolic Computation, 1989
- Linear logicTheoretical Computer Science, 1987
- Call-by-name, call-by-value and the λ-calculusTheoretical Computer Science, 1975
- Untersuchungen ber das logische Schlie en. IMathematische Zeitschrift, 1935