2016 · 13 citations · 29 references
ComputingComputer ScienceCompilersProgramming LanguagesTheory Of ComputationComputability TheoryData-flow AnalysisFunctional ProgrammingRecursion TheoryType CheckingType SystemsComputabilityContinuation-passing StyleLambda CalculusNormalizationProgram ModelsProgram RepresentationStatic Type CheckingType-level Programming
According to conventional wisdom, a self-interpreter for a strongly normalizing lambda-calculus is impossible. We call this the normalization barrier. The normalization barrier stems from a theorem in computability theory that says that a total universal function for the total computable functions is impossible. In this paper we break through the normalization barrier and define a self-interpreter for System F_omega, a strongly normalizing lambda-calculus. After a careful analysis of the classical theorem, we show that static type checking in F_omega can exclude the proof's diagonalization gadget, leaving open the possibility for a self-interpreter. Along with the self-interpreter, we program four other operations in F_omega, including a continuation-passing style transformation. Our operations rely on a new approach to program representation that may be useful in theorem provers and compilers.
29
Philip Wadler · 1989 · 776 citations
Definitional interpreters for higher-order programming languages
John Reynolds · 1972 · 668 citations
Template meta-programming for Haskell
Tim Sheard, Simon Peyton Jones · 2002 · 548 citations