We study bisimulation and context equivalence in a probabilistic $λ$-calculus. The contributions of this paper are threefold. Firstly we show a technique for proving congruence of probabilistic applicative bisimilarity. While the technique follows Howe's method, some of the technicalities are quite different, relying on non-trivial "disentangling" properties for sets of real numbers. Secondly we show that, while bisimilarity is in general strictly finer than context equivalence, coincidence between the two relations is attained on pure $λ$-terms. The resulting equality is that induced by Levy-Longo trees, generally accepted as the finest extensional equivalence on pure $λ$-terms under a lazy regime. Finally, we derive a coinductive characterisation of context equivalence on the whole probabilistic language, via an extension in which terms akin to distributions may appear in redex position. Another motivation for the extension is that its operational semantics allows us to experiment with a different congruence technique, namely that of logical bisimilarity.
Contextual Equivalence for a Probabilistic Language with Continuous Random Variables and Recursion
我们提出了一个完整的推理原则,上下文等价的非类型化概率语言。该语言包括连续(实值)随机变量,条件和评分。它还包括递归,因为标准的按值调用定点组合子是可表达的。我们证明了几个等价模式,包括熟悉的事实,从λ演算以及特定的概率编程的结果,我们的表征的可用性。特别是,我们用它来证明,重新排序的随机抽取概率程序保持上下文等价。例如,这使我们能够证明,(let x = $e_1$ in let y = $e_2$ in $e_0$)等价于(let y = $e_2$ in let x = $e_1$ in $e_0$)(假设$x$在$e_2$中不游离,$y$在$e_1$中不游离),尽管$e_1$和$e_2$可能具有采样和评分效应。