arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2301.10875cs.SEcs.FL
收藏

AB协议的可执行ASM规范及其与TLA $^+$的比较

Tutorial on the Executable ASM Specification of the AB Protocol and Comparison with TLA$^+$

Paolo Dini, Manuel Bravo, Philipp Paulweber, Alexander Raschke, Gabriela Moreira

摘要:

本报告的主要目的是提供一个介绍性的教程抽象状态机(ASM)规范方法的软件工程观众已经熟悉的时间逻辑的行动(TLA $^+$)方法。该报告询问ASM和TLA $^+$方法在多大程度上是根据规定的要求检查规范的补充,并提出了一些答案。第二个目标是提供为相同规约语言开发的不同可执行框架之间的比较。因此,ASM讨论由可执行的Corinthian ASM(CASM)和CoreASM模型补充。类似地,所提出的两个TLA $^+$规范,分别依赖于TLC和Apalache模型检查器,由Quint规范补充,Quint规范是由非正式系统开发的新语言,用作TLA $^+$的用户友好语法层。对于比较的基础上,我们使用的交替位(AB)协议的规范,因为它是一个简单的和很好理解的协议已经在文献中广泛分析。虽然这里报告的模型和开发的两种方法是语义等价的,ASM和Quint更适合自顶向下的规范,从抽象的需求,通过迭代细化。TLA $^+$似乎更容易自底向上地使用,在已验证的组件之上构建抽象,尽管它也强调迭代细化。在最后一节中,该报告开始通过状态空间可视化来确定AB协议规范与其有限状态机(FSM)之间同态的可能性,其动机是寻找正式的分解方法。

英文摘要:

The main aim of this report is to provide an introductory tutorial on the Abstract State Machines (ASM) specification method for software engineering to an audience already familiar with the Temporal Logic of Actions (TLA$^+$) method. The report asks to what extent the ASM and TLA$^+$ methods are complementary in checking specifications against stated requirements and proposes some answers. A second aim is to provide a comparison between different executable frameworks that have been developed for the same specification languages. Thus, the ASM discussion is complemented by executable Corinthian ASM (CASM) and CoreASM models. Similarly, the two TLA$^+$ specifications presented, which rely on the TLC and Apalache model checkers, respectively, are complemented by a Quint specification, a new language developed by Informal Systems to serve as a user-friendly syntax layer for TLA$^+$. For the basis of comparison we use the specification of the Alternating Bit (AB) protocol because it is a simple and well-understood protocol already extensively analysed in the literature. While the models reported here and developed with the two methods are semantically equivalent, ASMs and Quint are better suited for top-down specification from abstract requirements by iterative refinement. TLA$^+$ seems to be more easily used bottom-up, to build abstractions on top of verified components in spite of the fact that it, too, emphasizes iterative refinement. In the final section, the report begins to scope out the possibility of a homomorphism between the specification of the AB protocol and its finite-state machine (FSM) through state space visualizations, motivated by a search for a formal decomposition method.

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

↑