[Paper Review] Logic Column 16: Higher-Order Abstract Syntax: Setting the Record Straight
This paper defends higher-order abstract syntax (HOAS) against criticisms raised in a prior SIGACT News column, arguing that its semantic and algorithmic foundations are sound when implemented via the Logical Framework (LF). It demonstrates that HOAS supports adequate encodings, handles binding and alpha-equivalence naturally, and can express ML-style let-polymorphism, countering claims of incompatibility with open terms or lack of correctness criteria.
This article responds to a critique of higher-order abstract syntax appearing in Logic Column 14, ``Nominal Logic and Abstract Syntax'', cs.LO/0511025.
Motivation & Objective
- To refute five criticisms of higher-order abstract syntax (HOAS) presented in a prior SIGACT News column.
- To clarify that the Logical Framework (LF) provides a solid, first-order foundation for HOAS without requiring higher-order logic or complex semantics.
- To demonstrate that HOAS naturally handles alpha-equivalence and binding, contrasting it with first-order and nominal logic approaches.
- To establish that adequate encodings in LF are possible and provide a clear correctness criterion, unlike nominal logic which currently lacks such a standard.
- To show that HOAS can express ML-style let-polymorphism despite claims of incompatibility with open terms.
Proposed method
- Analyzing the five criticisms from the prior column in the context of LF, the canonical realization of HOAS.
- Arguing that LF's metatheory relies on syntactic methods and first-order logic, not higher-order logic or recursive domain equations.
- Demonstrating that structural properties of the meta-language need not be inherited by the object language, using linear logic as a counterexample.
- Showing that variable names in LF are not meaningless outside their scope, as alpha-equivalence is built-in and manageable via hypothetical judgements.
- Presenting two formalizations of let-polymorphism in LF: one using re-typechecking and another using polymorphic closure, both supporting open terms.
- Establishing that LF's notion of adequate encoding provides a precise correctness criterion, unlike nominal logic which currently lacks such a standard.
Experimental results
Research questions
- RQ1Is higher-order abstract syntax (HOAS) based on overly complex semantic foundations, as claimed in the prior column?
- RQ2Does HOAS require the meta-language's structural properties to be inherited by the object language?
- RQ3Are variable names in LF meaningless outside their scope, as suggested by the critique?
- RQ4Can HOAS adequately encode ML-style let-polymorphism, especially with open terms?
- RQ5Does nominal logic currently possess a formal correctness criterion comparable to LF's adequate encoding?
Key findings
- The metatheory of LF does not require higher-order logic or denotational semantics such as recursive domain equations; it is carried out using purely syntactic means.
- HOAS does not force the meta-language's structural properties onto the object language; for example, linear logic can be adequately encoded in LF using a linearity judgement.
- The built-in handling of alpha-equivalence in LF is a strength, not a weakness, and does not prevent the isolation of variables or comparison of free variables.
- Correct encodings in LF are characterized by an isomorphism between object-language terms/derivations and their canonical forms, providing a precise correctness criterion.
- ML-style let-polymorphism can be adequately encoded in LF using either re-typechecking at each use or a polymorphic closure operator, both of which handle open terms correctly.
- Nominal logic currently lacks a formal correctness criterion, making it difficult to formally justify whether any encoding is correct, unlike in LF.
Better researchstarts right now
From reading papers to final review, dramatically reduce your research time.
No credit card · Free plan available
This review was created by AI and reviewed by human editors.