一句话:提出统一范畴方法,用高阶抽象规范与纤维化证明最大行为(双)一致性构成同余。
共归纳是建立高阶语言程序行为等价性的常用技术;随着概率等定量语言出现,共归纳方法被推广到行为距离等更精细的行为一致性。为保证金归纳推理的可靠性,需证明目标行为一致性是程序同余,即与语言操作兼容。传统做法是 Howe 方法,需针对具体语言与行为一致性逐一调整。本文提出 Howe 方法的统一范畴框架,包含两个正交抽象维度:用高阶抽象规范(AHOS)建模高阶语言的操作语义,用底范畴上的纤维化建模关系、度量等行为一致性。主要结果是该一般层面的基本同余定理:在关于范畴构件与操作规则的天然条件下,操作模型上的最大行为(双)一致性构成同余。作者通过推导概率高阶语言的互模拟与行为伪度量同余来说明理论。
Coinduction is a widely used technique for establishing behavioural equivalence of programs in higher-order languages. In recent years, the rise of languages with quantitative (e.g. probabilistic) features has led to extensions of coinductive methods to more refined types of behavioural conformances, most notably notions of behavioural distance. To guarantee soundness of coinductive reasoning, one needs to show that the behavioural conformance at hand forms a program congruence, i.e. it is suitably compatible with the operations of the language. This is usually achieved by a complex proof technique known as Howe’s method , which needs to be carefully adapted to both the specific language and the targeted notion of behavioural conformance. We develop a uniform categorical approach to Howe’s method that features two orthogonal dimensions of abstraction: (1) the underlying higher-order language is modelled by an abstract higher-order specification ( AHOS ), a novel and very general categorical account of operational semantics, and (2) notions of behavioural conformance (such as relations or metrics) are modelled via fibrations over the base category of an AHOS. Our main result is a fundamental congruence theorem at this level of generality: Under natural conditions on the categorical ingredients and the operational rules of a language modelled by an AHOS, the greatest behavioural (bi)conformance on its operational model forms a congruence. We illustrate our theory by deriving congruence of bisimilarity and behavioural pseudometrics for probabilistic higher-order languages.