Programs with a continuous state space or that interact with physical processes often require notions of equivalence going beyond the standard binary setting in which equivalence either holds or does not hold. In this paper we explore the idea of equivalence taking values in a quantale V, which covers the cases of (in)equations and (ultra)metric equations among others. Our main result is the introduction of a V-equational deductive system for linear {\lambda}-calculus together with a proof that it is sound and complete. In fact we go further than this, by showing that linear {\lambda}-theories based on this V-equational system form a category that is equivalent to a category of autonomous categories enriched over 'generalised metric spaces'. In other words, we prove the existence of a so-called syntax-semantics duality between both structures which are parametrised by V: if we choose linear {\lambda}-calculus based on inequations, we obtain a correspondence with autonomous categories enriched over partial orders. In the case of (ultra)metric equations, we get a correspondence with autonomous categories enriched over (ultra)metric spaces. We also show that this correspondence extends to the affine setting. We use our results to develop examples of inequational and metric equational systems for higher-order programming in the setting of real-time, probabilistic, and quantum computing.
翻译:具有连续状态空间或与物理进程互动的程序往往需要超越标准二进制设置的等同概念,而标准二进制设置中,等值要么维持,要么不维持。在本文件中,我们探索了等等等概念的概念,在四等方形中,包括(in)等分和(ultra)度方程式等异方程式。我们的主要结果就是对线性(lambda)计算计算器采用V-等等等分扣减系统,同时证明它合理和完整。事实上,我们比这更进一步,通过显示基于这个正等分系统的线性(lambda)理论,形成一个相当于“通用计量空间”的自主类别类别。换句话说,我们证明存在着两个结构之间的所谓的超等等等分分离系统:如果我们选择线性(lambda)计算器)计算器和基于分级的计算器,我们获得与自主分类的对等分比部分顺序的对应。在(altialal)等式中,我们获得了比等分法(我们更高级的平方程)对正方程的比较结果,我们得到比等方方程的对等的比较的对比,我们得到比方程的对等方程,我们得到比方程的对等方程的对比的对比,我们得到比对等方方程的比较的对比,我们得到比方方方方方方方程的对等方程的比较的比较的比较的比较,我们得到比。(我们得到比,我们得到比方程的对等方方程的计算结果,我们得到比方程的比方程的比方方方方方方方方方方方方方方方程的比方程的比方程的比方方的比方方方方方方方方方方方方程的对等方程的比方方程的计算,还显示。(我们得到的计算,还显示,我们得到的比方方方方方方方方方方方方方方方方方方方方方方方方方方方方方方方方方方方方程,我们得到比方方方方方方方方方方方方方方方方方方方方方程,还显示(我们得到的比方方方方方方方方方方方方方