构建简洁LNT模型的指南,以Algorand共识协议的正式模型为例
Guidelines for Producing Concise LNT Models, Illustrated with Formal Models of the Algorand Consensus Protocol
AI总结:
本文探讨如何利用LNT语言的特性构建简洁易读的正式模型,以Algorand共识协议为例,展示通过变换将代码行数减少三分之一并提升可读性。
摘要:
LNT是一种用于并发系统形式描述的现代语言。它扩展了传统进程演算并克服其已知的限制,通过引入如命令式编程风格、直接变量赋值、对称顺序组合以及显式循环操作符等特性。本文研究如何利用这些特性获得尽可能简洁和易读的LNT模型。研究通过Algorand区块链共识协议的正式模型进行说明,该模型最近由乌尔比诺大学开发。证明通过精心选择的变换,LNT代码行数可减少三分之一,同时提高可读性。此外,还用视觉检查、等价性检查和模型检查表达了各种形式模型的属性并进行了验证。
英文摘要:
LNT is a modern language for the formal description of concurrent systems. It generalizes traditional process calculi and overcomes their known limitations by incorporating features such as an imperative programming style with direct assignments to variables, symmetric sequential composition, and explicit loop operators. The present article examines how these features can be taken advantage of to obtain LNT models as concise and readable as possible. The study is illustrated with a running example, the consensus protocol of the Algorand blockchain, a formal model of which was recently developed at the University of Urbino. It is shown that, using well-chosen transformations, the number of lines of LNT code can be divided by three, while improving readability. Also, various properties of the formal model are expressed and verified using visual checking, equivalence checking, and model checking.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。