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

概率按需调用的λ演算--扩展版

A Probabilistic Call-by-Need Lambda-Calculus -- Extended Version

David Sabel, Manfred Schmidt-Schauß, Luca Maio

摘要:

为了支持声明性概率程序设计语言的理解,我们引入了一个公平的二进制概率λ演算,选择其参数之间的概率相等的微积分。演算的归约策略是一种按需调用的策略,它执行惰性求值并通过递归let表达式实现共享。表达式的期望收敛是所有成功约简输出之和的极限,并按其概率加权。我们使用上下文等价作为程序语义:两个表达式是上下文等价的,当且仅当插入任何程序上下文的表达式的预期收敛总是相同的。我们开发和说明的技术,证明等价,包括上下文引理,两个派生的标准,以显示等价和一个基于语法的方法。这最终使我们能够显示一个大的程序转换的上下文等价的正确性。

英文摘要:

To support the understanding of declarative probabilistic programming languages, we introduce a lambda-calculus with a fair binary probabilistic choice that chooses between its arguments with equal probability. The reduction strategy of the calculus is a call-by-need strategy that performs lazy evaluation and implements sharing by recursive let-expressions. Expected convergence of expressions is the limit of the sum of all successful reduction outputs weighted by their probability. We use contextual equivalence as program semantics: two expressions are contextually equivalent if and only if the expected convergence of the expressions plugged into any program context is always the same. We develop and illustrate techniques to prove equivalences including a context lemma, two derived criteria to show equivalences and a syntactic diagram-based method. This finally enables us to show correctness of a large set of program transformations with respect to the contextual equivalence.

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

↑