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.
翻译:线性类型理论在大多数编程语言研究中都极其重要。本文介绍了 Benton 的线性-非线性类型理论和模型的扩展版。我们证明了一些额外的性质,使系统在理论方面更为良好。我们称此系统为主-核类型理论。主-核语言的语法分为两部分,分别表示包含核心语言 C 的主语言 H 和嵌入该主语言的 H。这个思想源自 Benton 的线性-非线性线性逻辑公式,它允许对数据线性的灵活管理,这在非经典计算范式中特别有用。主-核样式可以被视为多语言编程简化的概念,即异构编程语言的软件开发过程。在本文中,我们提出了一种类型演算 HC,它是一个捕获并标准化主-核语言的理想类共同属性的 minimal 且灵活的主-核系统。我们在富化范畴的术语中提供了一个指定模型,并通过内部语言的概念声明了语法和语义之间的强对应关系。后一结果提供了一些有用的主-核样式特征描述。我们还讨论了系统 HC 的一些具体实例、扩展和专业化。