Explicit substitutions and higher-order syntax

  • Authors:
  • Neil Ghani;Tarmo Uustalu;Makoto Hamana

  • Affiliations:
  • School of Computer Science and IT, University of Nottingham, Nottingham, UK NG8 1BB;Institute of Cybernetics, Tallinn University of Technology, Tallinn, Estonia EE-12618;Department of Computer Science, Gunma University, Gunma, Japan 376-8515

  • Venue:
  • Higher-Order and Symbolic Computation
  • Year:
  • 2006

Quantified Score

Hi-index 0.00

Visualization

Abstract

Recently there has been a great deal of interest in higher-order syntax which seeks to extend standard initial algebra semantics to cover languages with variable binding. The canonical example studied in the literature is that of the untyped 驴-calculus which is handled as an instance of the general theory of binding algebras, cf. Fiore et al. [13].Another important syntactic construction is that of explicit substitutions which are used to model local definitions and to implement reduction in the 驴-calculus. The syntax of a language with explicit substitutions does not form a binding algebra as an explicit substitution may bind an arbitrary number of variables. Thus explicit substitutions are a natural test case for the further development of the theory and applications of syntax with variable binding.This paper shows that a language containing explicit substitutions and a first-order signature 驴 is naturally modelled as the initial algebra of the Id + F 驴驴_ +_ 驴 _ endofunctor. We derive a similar formula for adding explicit substitutions to the untyped 驴-calculus and then show these initial algebras provide useful datatypes for manipulating abstract syntax by implementing two reduction machines. We also comment on the apparent lack of modularity in syntax with variable binding as compared to first-order languages.