This paper introduces Relational Type Theory (RelTT), a new approach to type theory with extensionality principles, based on a relational semantics for types. The type constructs of the theory are those of System F plus relational composition, converse, and promotion of application of a term to a relation. A concise realizability semantics is presented for these types. The paper shows how a number of constructions of traditional interest in type theory are possible in RelTT, including eta-laws for basic types, inductive types with their induction principles, and positive-recursive types. A crucial role is played by a lemma called Identity Inclusion, which refines the Identity Extension property familiar from the semantics of parametric polymorphism. The paper concludes with a type system for RelTT, paving the way for implementation.
翻译:本文引入了“关系类型理论”(ReltTT),这是一种基于类型关系语义学的以扩展性原则为根据的新型理论。该理论的构造类型是System F+关系构成、反向、促进将术语应用于关系。为这些类型提供了简洁的“真实性”语义。本文展示了ReltTT在类型理论方面如何可以进行一些传统意义的构建,包括基本类型、诱导性类型和积极-顺从性类型等目法。称为身份包容的Lemma 扮演了关键角色,它完善了从参数多形态学的语义学中熟悉的“身份扩展”属性。本文最后用“ReltTT” 类型体系来总结,为实施铺平了道路。