arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2501.13002cs.LOcs.PL
收藏

异步性下must-preorder的构造性刻画

Constructive characterisations of the must-preorder for asynchrony

Giovanni Bernardi, Ilaria Castellani, Paul Laforgue, Léo Stefanesco

AI总结:

本文为异步通信下的must-preorder提供构造性刻画,通过将服务器增强为转发器,使标准刻画适用,并在Coq中机械化验证,证明杠归纳原理对活性保持转换有用。

摘要:

De Nicola和Hennessy的must-preorder是一种上下文细化关系,它表明如果所有被p满足的客户端也被q满足,则服务器q细化服务器p。由于对客户端的全称量化,该定义无法为must-preorder提供实用的证明方法,因此需要替代性刻画来对其进行推理。为异步语义(即输出非阻塞)寻找这些刻画至今仍是一个挑战,通常通过特设定义来处理。我们表明,如果服务器增强为充当转发器,即它们可以输入任何消息,只要将其存回共享缓冲区,标准的must-preorder刻画就可以原样适用于异步通信。我们的发展是构造性的,在Coq中完全机械化,并且独立于任何演算:我们的结果涉及Selinger带反馈的输出缓冲代理。这是一类标记转移系统,捕获通过共享无序缓冲区通信的程序,如异步CCS或异步π演算。我们表明,标准的余归纳刻画使我们能够在Coq中证明具体程序通过must-preorder相关联。最后,我们的证明表明,Brouwer的杠归纳原理是推理保持活性程序转换的有用技术。

英文摘要:

De Nicola and Hennessy's must-preorder is a contextual refinement which states that a server q refines a server p if all clients satisfied by p are also satisfied by q. Owing to the universal quantification over clients, this definition does not yield a practical proof method for the must-preorder, and alternative characterisations are necessary to reason over it. Finding these characterisations for asynchronous semantics, i.e. where outputs are non-blocking, has thus far proven to be a challenge, usually tackled via ad-hoc definitions. We show that the standard characterisations of the must-preorder carry over as they stand to asynchronous communication, if servers are enhanced to act as forwarders, i.e. they can input any message as long as they store it back into the shared buffer. Our development is constructive, is completely mechanised in Coq, and is independent of any calculus: our results pertain to Selinger output-buffered agents with feedback. This is a class of Labelled Transition Systems that captures programs that communicate via a shared unordered buffer, as in asynchronous CCS or the asynchronous pi-calculus. We show that the standard coinductive characterisation lets us prove in Coq that concrete programs are related by the must-preorder. Finally, our proofs show that Brouwer's bar induction principle is a useful technique to reason on liveness preserving program transformations.

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

↑