一句话:提出基于余代数的统一框架,用分配律刻画系统与时序性质的积构造,并给出用于定量时序推断的充分正确性条件。
概率程序可自然描述系统执行上的分布,其经典验证问题是时序推断:计算执行轨迹满足给定时序性质的似然。本文提出一个统一的定量时序推断框架,覆盖概率与加权程序操作语义等模型。核心观察是:许多现有方法都依赖系统与时序性质间的积构造,而系统与时序性质均可建模为余代数,积构造对应分配律。作者由此给出积构造的统一数学定义,并提出保证其可用于时序推断的充分正确性条件。该框架可恢复文献中多种方法,如 Markov 奖励模型中的部分期望奖励、资源敏感可达性和加权优化问题;还构造加权程序与加权时序性质的积作为新实例,展示可扩展性。
Probabilistic programs are a powerful and convenient approach to formalising distributions over system executions. A classical verification problem for probabilistic programs is temporal inference : to compute the likelihood that the execution traces satisfy a given temporal property. This paper presents a general framework for temporal inference, which applies to a rich variety of quantitative models including those that arise in the operational semantics of probabilistic and weighted programs. The key idea underlying our framework is that in a variety of existing approaches, the main construction that enables temporal inference is that of a product between the system of interest and the temporal property. We provide a unifying mathematical definition of product constructions, enabled by the realisation that 1) both systems and temporal properties can be modelled as coalgebras and 2) product constructions are distributive laws in this context. Our categorical framework leads us to our main contribution: a sufficient condition for correctness, which is precisely what enables to use the product construction for temporal inference. We show that our framework can be instantiated to naturally recover a number of disparate approaches from the literature including, e.g., partial expected rewards in Markov reward models, resource-sensitive reachability analysis, and weighted optimization problems. Furthermore, we demonstrate a product of weighted programs and weighted temporal properties as a new instance to show the scalability of our approach.
@article{paperbot3190,
title = {A Unifying Approach to Product Constructions for Quantitative Temporal Inference},
author = {Kazuki Watanabe and Sebastian Junges and Jurriaan Rot and Ichiro Hasuo},
journal = {Proceedings of the ACM on Programming Languages},
volume = {9},
number = {OOPSLA1},
year = {2025},
doi = {10.1145/3720501}
}