Skip to main navigation Skip to search Skip to main content

Focusing and higher-order abstract syntax

  • Carnegie Mellon University

Research output: Chapter in Book/Report/Conference proceeding › Conference contribution › peer-review

22 Citations (Scopus)

Abstract

Focusing is a proof-search strategy, originating in linear logic, that elegantly eliminates inessential nondeterminism, with one byproduct being a correspondence between focusing proofs and programs with explicit evaluation order. Higher-order abstract syntax (HOAS) is a technique for representing higher-order programming language constructs (e.g., λ's) by higher-order terms at the"meta-level", thereby avoiding some of the bureaucratic headaches of first-order representations (e.g., capture-avoiding substitution). This paper begins with a fresh, judgmental analysis of focusing for intuitionistic logic (with a full suite of propositional connectives), recasting the "derived rules" of focusing as iterated inductive definitions. This leads to a uniform presentation, allowing concise, modular proofs of the identity and cut principles. Then we show how this formulation of focusing induces, through the Curry-Howard isomorphism, a new kind of higher-order encoding of abstract syntax: functions are encoded by maps from patterns to expressions. Dually, values are encoded as patterns together with explicit substitutions. This gives us pattern-matching "for free", and lets us reason about a rich type system with minimal syntactic overhead. We describe how to translate the language and proof of type safety almost directly into Coq using HOAS, and finally, show how the system's modular design pays off in enabling a very simple extension with recursion and recursive types.

Original languageEnglish
Title of host publicationPOPL'08 - Proceedings of the 35th Annual ACM SIGPLAN-SIGACT Symposium on Principles of Programming Languages
Pages359-369
Number of pages11
DOIs
Publication statusPublished - 1 Dec 2008
Externally publishedYes
Event35th Annual ACM SIGPLAN-SIGACT Symposium on Principles of Programming Languages, POPL'08 - San Francisco, CA, United States
Duration: 7 Jan 2008 → 12 Jan 2008

Publication series

NameConference Record of the Annual ACM Symposium on Principles of Programming Languages
ISSN (Print)0730-8566

Conference

Conference35th Annual ACM SIGPLAN-SIGACT Symposium on Principles of Programming Languages, POPL'08
Country/TerritoryUnited States
CitySan Francisco, CA
Period7/01/08 → 12/01/08

Keywords

  • focusing
  • higher-order abstract syntax
  • pattern-matching

Fingerprint

Dive into the research topics of 'Focusing and higher-order abstract syntax'. Together they form a unique fingerprint.

Cite this