Search arXivSearch

arXiv · 0905.2120

Realisability Semantics for Intersection Types and Expansion Variables

Abstract

Expansion was invented at the end of the 1970s for calculating principal typings for $λ$-terms in type systems with intersection types. Expansion variables (E-variables) were invented at the end of the 1990s to simplify and help mechanise expansion. Recently, E-variables have been further simplified and generalised to also allow calculating type operators other than just intersection. There has been much work on denotational semantics for type systems with intersection types, but none whatsoever before now on type systems with E-variables. Building a semantics for E-variables turns out to be challenging. To simplify the problem, we consider only E-variables, and not the corresponding operation of expansion. We develop a realisability semantics where each use of an E-variable in a type corresponds to an independent degree at which evaluation occurs in the $λ$-term that is assigned the type. In the $λ$-term being evaluated, the only interaction possible between portions at different degrees is that higher degree portions can be passed around but never applied to lower degree portions. We apply this semantics to two intersection type systems. We show these systems are sound, that completeness does not hold for the first system, and completeness holds for the second system when only one E-variable is allowed (although it can be used many times and nested). As far as we know, this is the first study of a denotational semantics of intersection type systems with E-variables (using realisability or any other approach).

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Fairouz Kamareddine, Karim Nour, Vincent Rahli, J. B. Wells. 2009-05-13. Realisability Semantics for Intersection Types and Expansion Variables. https://arxiv.org/abs/0905.2120

Cite the original work for its findings. Save a collection to share your selection of sources.

KEEP EXPLORING

Related papers

On n-dependent groups and fields III. Multilinear forms and invariant connected components

We develop some model theory of multilinear forms, generalizing Granger's work in the bilinear case. In particular, after proving a quantifier elimination result, we show that for an NIP field $K$, the theory of infinite-dimensional non-degenerate alternating $n$-linear spaces over $K$ is strictly $n$-dependent, and is NSOP$_1$ if $K$ is. These results rely on a new Composition Lemma for functions of arbitrary arity and NIP relations (which in turn relies on certain higher-arity generalizations of the Sauer--Shelah lemma). We also study the invariant connected components $G^{\infty}$ in $n$-dependent groups, demonstrating their relative absoluteness.

math.LO

Loops, Inverse Limits and Non-Determinism

We introduce an operator on problems in Weihrauch complexity, which we call the infinite loop or inverse limit, and which corresponds to an infinite compositional product. This operation arises naturally whenever one implements algorithms that produce a sequence of results in an infinite loop, using some fixed subroutine. We prove that the corresponding operator is monotone with respect to (strong) Weihrauch reducibility but that it is not a closure operator. One of our findings is that weak Kőnig's lemma is closed under infinite loops, which implies that the class of non-deterministically computable problems is also closed under this operation. Consequently, this class allows for a high degree of flexibility in programming. As our main technical tools, we present an injective version of the recursion theorem and an infinitary version of the so-called independent choice theorem. We also show that, in general, the infinite loop operator is more powerful than the composition of the diamond operator followed by the parallelization operator. However, in many practical scenarios, these compositions yield a result, which coincides with the application of the infinite loop operator. Finally, we discuss the special situation of loops for single-valued problems and for problems on Turing degrees.

math.LO

A vector logic for intensional formal semantics

Formal semantics and distributional semantics are distinct approaches to linguistic meaning: the former models meaning as reference via model-theoretic structures; the latter as vectors in high-dimensional spaces shaped by usage. This paper establishes which part of intensional formal semantics admits a linear vector-space encoding. Kripke-style intensional models, with any finite collection of index sorts collected in a compound index space, embed injectively into vector spaces: primitive domains go to free carriers; intensions and other functions go to linear operators. Semantic functions lift to unique multilinear maps on the free carriers, and composition is preserved. The operator encoding of a function domain compresses its free carrier, and we characterize the functionals: a Boolean-valued functional of a power set acts linearly on operator encodings exactly when it is constant, an ultrafilter indicator, or the complement of one, so that on finite domains the nonconstant ones are Montague's individuals and their negations. Determiners over a restrictor of two or more elements, modal operators over two or more accessible indices, and attitude operators over two or more alternatives are outside the linear regime, and take, instead, the form of a linear accumulation followed by a decision. Modality is defined uniformly over measure frames, in which counting measure recovers Kripke semantics at every cardinality, and continuous measures make necessity truth almost everywhere; we give the correspondence conditions for the axioms D, T, B, 4, and 5 under measures, the Kronecker factorization of accessibility over compound indices, and the reading of measure-based modality as graded modality.

math.LO