Categorical models for local names
Author(s) -
Ian Stark
Publication year - 1996
Publication title -
lisp and symbolic computation
Language(s) - English
Resource type - Journals
eISSN - 1573-0557
pISSN - 0892-4635
DOI - 10.1007/bf01806033
Subject(s) - categorical variable , metalanguage , fragment (logic) , recursion (computer science) , category theory , equivalence (formal languages) , computer science , denotational semantics , principle of compositionality , function (biology) , monad (category theory) , semantics (computer science) , algebra over a field , calculus (dental) , mathematics , programming language , operational semantics , functor , pure mathematics , artificial intelligence , medicine , dentistry , machine learning , evolutionary biology , biology
This paper describes the construction of categorical models for the nu-calculus, a language that combines higher-order functions with dynamically created names. Names are created with local scope, they can be compared with each other and passed around through function application, but that is all. The intent behind this language is to examine one aspect of the imperative character of Standard ML: the use of local state by dynamic creation of references. The nu-calculus is equivalent to a certain fragment of ML, omitting side effects, exceptions, datatypes and recursion. Even without all these features, the interaction of name creation with higher-order functions can be complex and subtle; it is particularly difficult to characterise the observable behaviour of expressions. Categorical monads, in the style of Moggi, are used to build denotational models for the nu-calculus. An intermediate stage is the use of a computational metalanguage, which distinguishes in the type system between values and computations. The general requirements for a categorical model are presented, and two specific exam- ples described in detail. These provide a sound denotational semantics for the nu-calculus, and can be used to reason about observable equivalence in the language. In particular a model using logical relations is fully abstract for first-order expressions.
Accelerating Research
Robert Robinson Avenue,
Oxford Science Park, Oxford
OX4 4GP, United Kingdom
Address
John Eccles HouseRobert Robinson Avenue,
Oxford Science Park, Oxford
OX4 4GP, United Kingdom