A universal realizability model for sequential functional computation
نویسنده
چکیده
We construct a universal and even logically fully abstract realizability model for the sequential functional programming language of call-by-name FPC. This model is defined within the category of modest sets over the total combinatory algebra L of observational equivalence classes of closed terms of the untyped programming language λ+Error. This language is untyped lazy call-by-name lambda-calculus extended by a single constant ERR and a conditional construct which distinguishes this constant from any other syntactic value. Universality and (constructive) logical full abstraction of the model are proved in three steps. Firstly, a canonical universal and logically fully abstract realizability model for FPC over the typed combinatory algebra T of observational equivalence classes of closed FPC-terms is constructed. Then the recursive type U := μα.void+ [α → α] is shown to be universal, i. e. any other type is a definable retract of U . Hence this type gives rise to an untyped combinatory algebra U which is applicatively equivalent to the typed combinatory algebra T . As a consequence, the realizability toposes over T and U are equivalent and hence the realizability model for FPC over U also universal and logically fully abstract. Finally it is shown that every closed FPC-term of type U can be defined in the untyped language λ+Error. Hence the combinatory algebras U and L are applicatively equivalent. It follows that the realizability model over L is universal and logically fully abstract. As a consequence we prove a variant of the Longley-Phoa Conjecture.
منابع مشابه
Realizability Models for Sequential Computation
We give an overview of some recently discovered realizability models that embody notions of sequential computation, due mainly to Abramsky, Nickau, Ong, Streicher, van Oosten and the author. Some of these models give rise to fully abstract models of PCF; others give rise to the type structure of sequentially realizable functionals, also known as the strongly stable functionals of Bucciarelli an...
متن کاملThe π-calculus as a Universal Model of Computation
Using a novel approach, we define a compositional output -based encoding of the λ-calculus with explicit substitution into a variant of the π-calculus with pairing, and show that this encoding preserves full β-reduction (i.e. not just lazy) as well as assignable types. Furthermore, we apply this new approach to the context of sequent calculi (which embody both parameter and context call) by def...
متن کاملMatching typed and untyped realizability ( Extended abstract )
Realizability interpretations of logics are given by saying what it means for computational objects of some kind to realize logical formulae. The computational objects in question might be drawn from an untyped universe of computation, such as a partial combinatory algebra, or they might be typed objects such as terms of a PCF-style programming language. In some instances, one can show that a p...
متن کاملA Modified GoI Interpretation for a Linear Functional Programming Language and Its Adequacy
Geometry of Interaction (GoI) introduced by Girard provides a semantics for linear logic and its cut elimination. Several extensions of GoI to programming languages have been proposed, but it is not discussed to what extent they capture behaviour of programs as far as the author knows. In this paper, we study GoI interpretation of a linear functional programming language (LFP). We observe that ...
متن کاملThe myth of the Turing machine: the failings of functionalism and related theses
The properties of Turing’s famous `universal machine’ has long sustained functionalist intuitions about the nature of cognition. This paper shows that there is a logical problem with standard functionalist arguments for multiple realizability. These arguments rely essentially on Turing’s powerful insights regarding computation. In addressing a possible reply to this criticism, it is further arg...
متن کامل