Linear type theories, of various types and kinds, are of fundamental importance in most programming language research nowadays. In this paper we describe an extension of Benton's Linear-Non-Linear type theory and model for which we can prove some extra properties that make the system better behaved as far as its theory is concerned. We call this system the host-core type theory. The syntax of a host-core language is split into two parts, representing respectively a host language H and a core language C, embedded in H. This idea, derived from Benton's Linear-Non-Linear formulation of Linear Logic, allows a flexible management of data linearity, which is particularly useful in non-classical computational paradigms. The host-core style can be viewed as a simplified notion of multi-language programming, the process of software development in a heterogeneous programming language. In this paper, we present the typed calculus HC, a minimal and flexible host-core system that captures and standardizes common properties of an ideal class of host-core languages. We provide a denotational model in terms of enriched categories and we state a strong correspondence between syntax and semantics through the notion of internal language. The latter result provides some useful characterizations of host-core style, otherwise difficult to obtain. We also discuss some concrete instances, extensions and specializations of the system HC.
翻译:各种类型和种类的线性理论在当今大多数语言规划研究中都具有根本重要性。 在本文中,我们描述了本顿的线性非莱纳尔式理论和模型的扩展,我们可以证明一些额外的属性,使系统在理论方面表现更好。我们称这个系统为主机核心语言类型理论。主机核心语言的语法分为两个部分,分别代表主机语言H和核心语言C,嵌入H。这个概念来自本顿的线性非利那尔逻辑的公式,允许灵活管理数据线性理论和模型,这在非古典的计算模式中特别有用。主机核心风格可被视为一种简化的多语制编程概念,即软件在一种混合的编程语言中开发软件的过程。在本文中,我们介绍了类型化的标语HC,一种简单而灵活的主机核心语言系统,它捕捉一种理想语言类的共同特性并使之标准化。我们在非古老的计算模式化的分类中提供了一种德性模型性模型,在非古典的计算模型中特别的分类中特别有用。我们从某种变式的变式的分类和变式的硬的变式内部语言的分类中提供了一种硬的分类。