arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2603.01317cs.LO
收藏

关于微分逻辑关系的度量性质

On the Metric Nature of (Differential) Logical Relations

University of Bologna(博洛尼亚大学);INRIA Sophia Antipolis(索菲亚-安提贝斯国家信息与自动化研究所);Sojo University(昭和大学);Université Claude Bernard Lyon 1(里昂第一大学)

Ugo Dal Lago, Naohiko Hoshino, Paolo Pistone

AI总结:

本文研究微分逻辑关系的度量性质,引入准准度量和微分预逻辑关系,探讨其在程序距离中的应用与特性。

摘要:

微分逻辑关系是用于衡量高阶程序之间距离的方法,其中功能性程序之间的距离本身是函数,将输入中的误差与输出中的误差联系起来。这样,微分逻辑关系提供了一种更细致和上下文相关的程序距离信息。本文旨在澄清微分逻辑关系的度量性质。我们引入了准准度量的概念,并观察到准准度量空间的笛卡尔闭合范畴反映了文献中微分逻辑关系的构造。笛卡尔闭合结构诱导了一个基本引理,可以被视为程序距离的组合推理原则。此外,我们研究了从类型解释中产生的准准度量空间,并证明它们满足强传递性条件和不相等条件的变体,以及弱形式的对称性条件。在本文的后半部分,我们引入了微分预逻辑关系的概念,作为预逻辑关系框架的量化对应物。简而言之,微分预逻辑关系是程序集合上的准准度量。微分预逻辑关系的偏序集具有最细的微分预逻辑关系,以正式的量化等价理论形式呈现,而偏序集缺乏最粗的微分预逻辑关系。最粗微分预逻辑关系的缺失与类型λ演算的情况形成对比,其中上下文等价性作为最粗的程序等价性。

英文摘要:

Differential logical relations is a method to measure distances between higher-order programs where distances between functional programs are themselves \emph{functions}, relating errors in inputs with errors in outputs. This way, differential logical relations provide a more fine-grained and contextual information of program distances. This paper aims to clarify the metric nature of differential logical relations. We introduce the notion of quasi-quasi-metrics and observe that the cartesian closed category of quasi-quasi-metric spaces reflects the construction of differential logical relations in the literature. The cartesian closed structure induces a fundamental lemma, which can be seen as a compositional reasoning principle for program distances. Furthermore, we investigate the quasi-quasi-metric spaces arising from the interpretation of types, and we prove that they satisfy variants of the strong transitivity condition and indistancy condition, as well as a weak form of the symmetry condition. In the last part of this paper, we introduce a notion of differential prelogical relations arising as a quantitative counterpart of the framework of prelogical relations. Roughly speaking, differential prelogical relations are quasi-quasi-metrics on the collection of programs. The poset of differential prelogical relations has the finest differential prelogical relation presented as a formal quantitative equational theory, while the poset does not necessarily have a coarsest differential prelogical relation. The absence of a coarsest differential prelogical relation contrasts with the situations of typed lambda calculi, where the contextual equivalences serve as the coarsest program equivalences.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑