We extend the definition of natural semantics to include simply typed 2-terms, instead of first-order terms, for representing programs, and to include inference rules for the introduction and discharge of hypotheses and eigenvariables. This extension, which we call extended natural semantics, affords a higher-level notion of abstract syntax for representing programs and suitable mechanisms for manipulating this syntax. We present several examples of semantic specifications for a simple functional programming language and demonstrate how we achieve simple and elegant manipulations of bound variables in functional programs. All the examples have been implemented and tested in λProlog, a higher-order logic programming language that supports all of the features of extended natural semantics. © 1993, Cambridge University Press. All rights reserved.
CITATION STYLE
Hannan, J. (1993). Extended natural semantics. Journal of Functional Programming, 3(2), 123–152. https://doi.org/10.1017/S0956796800000666
Mendeley helps you to discover research relevant for your work.