Generalized metrics, arising from Lawvere's view of metric spaces as enriched categories, have been widely applied in denotational semantics as a way to measure to which extent two programs behave in a similar, although non equivalent, way. However, the application of generalized metrics to higher-order languages like the simply typed lambda calculus has so far proved unsatisfactory. In this paper we investigate a new approach to the construction of cartesian closed categories of generalized metric spaces. Our starting point is a quantitative semantics based on a generalization of usual logical relations. Within this setting, we show that several families of generalized metrics provide ways to extend the Euclidean metric to all higher-order types.
翻译:Lawvere认为,光量空间是浓缩的类别,由此形成的通用指标被广泛用于分解语义学,以此衡量两个方案在类似但非等同的方式中的表现程度。然而,迄今为止,对单打羊羔微积分等的较高等级语言应用通用指标的情况证明不令人满意。在本文件中,我们调查了一种新办法,用于构建卡通尼氏封闭类通用计量空间。我们的出发点是基于一般逻辑关系的概括性定量语义学。在这个背景下,我们表明,几个通用度量子家族提供了将Euclidean指标扩大到所有更高等级类型的方法。