Mover Logic:用于还原和可靠保证推理的并行程序逻辑(扩展版)

Cormac Flanagan, Stephen N. Freund
{"title":"Mover Logic:用于还原和可靠保证推理的并行程序逻辑(扩展版)","authors":"Cormac Flanagan, Stephen N. Freund","doi":"arxiv-2407.08070","DOIUrl":null,"url":null,"abstract":"Rely-guarantee (RG) logic uses thread interference specifications (relies and\nguarantees) to reason about the correctness of multithreaded software.\nUnfortunately, RG logic requires each function postcondition to be \"stabilized\"\nor specialized to the behavior of other threads, making it difficult to write\nfunction specifications that are reusable at multiple call sites. This paper presents mover logic, which extends RG logic to address this\nproblem via the notion of atomic functions. Atomic functions behave as if they\nexecute serially without interference from concurrent threads, and so they can\nbe assigned more general and reusable specifications that avoid the\nstabilization requirement of RG logic. Several practical verifiers (Calvin-R,\nQED, CIVL, Armada, Anchor, etc.) have demonstrated the modularity benefits of\natomic function specifications. However, the complexity of these systems and\ntheir correctness proofs makes it challenging to understand and extend these\nsystems. Mover logic formalizes the central ideas reduction in a declarative\nprogram logic that may provide foundation for future work in this area.","PeriodicalId":501197,"journal":{"name":"arXiv - CS - Programming Languages","volume":null,"pages":null},"PeriodicalIF":0.0000,"publicationDate":"2024-07-10","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":"{\"title\":\"Mover Logic: A Concurrent Program Logic for Reduction and Rely-Guarantee Reasoning (Extended Version)\",\"authors\":\"Cormac Flanagan, Stephen N. Freund\",\"doi\":\"arxiv-2407.08070\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"Rely-guarantee (RG) logic uses thread interference specifications (relies and\\nguarantees) to reason about the correctness of multithreaded software.\\nUnfortunately, RG logic requires each function postcondition to be \\\"stabilized\\\"\\nor specialized to the behavior of other threads, making it difficult to write\\nfunction specifications that are reusable at multiple call sites. This paper presents mover logic, which extends RG logic to address this\\nproblem via the notion of atomic functions. Atomic functions behave as if they\\nexecute serially without interference from concurrent threads, and so they can\\nbe assigned more general and reusable specifications that avoid the\\nstabilization requirement of RG logic. Several practical verifiers (Calvin-R,\\nQED, CIVL, Armada, Anchor, etc.) have demonstrated the modularity benefits of\\natomic function specifications. However, the complexity of these systems and\\ntheir correctness proofs makes it challenging to understand and extend these\\nsystems. Mover logic formalizes the central ideas reduction in a declarative\\nprogram logic that may provide foundation for future work in this area.\",\"PeriodicalId\":501197,\"journal\":{\"name\":\"arXiv - CS - Programming Languages\",\"volume\":null,\"pages\":null},\"PeriodicalIF\":0.0000,\"publicationDate\":\"2024-07-10\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"0\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"arXiv - CS - Programming Languages\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://doi.org/arxiv-2407.08070\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"\",\"JCRName\":\"\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"arXiv - CS - Programming Languages","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/arxiv-2407.08070","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

摘要

依赖-保证(RG)逻辑使用线程干扰规范(依赖和保证)来推理多线程软件的正确性。不幸的是,RG 逻辑要求每个函数的后置条件都必须 "稳定 "或专门针对其他线程的行为,这使得编写可在多个调用站点重复使用的函数规范变得非常困难。本文介绍了 "移动者逻辑",它通过原子函数的概念扩展了 RG 逻辑,以解决这一问题。原子函数的行为就像它们串行执行一样,不受并发线程的干扰,因此它们可以被赋予更通用、更可重用的规范,从而避免了 RG 逻辑的稳定要求。一些实用验证器(Calvin-R、QED、CIVL、Armada、Anchor 等)已经证明了原子函数规范的模块化优势。然而,这些系统及其正确性证明的复杂性使得理解和扩展这些系统具有挑战性。Mover 逻辑将中心思想还原形式化为一种声明式程序逻辑,为这一领域未来的工作奠定了基础。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
查看原文
分享 分享
微信好友 朋友圈 QQ好友 复制链接
本刊更多论文
Mover Logic: A Concurrent Program Logic for Reduction and Rely-Guarantee Reasoning (Extended Version)
Rely-guarantee (RG) logic uses thread interference specifications (relies and guarantees) to reason about the correctness of multithreaded software. Unfortunately, RG logic requires each function postcondition to be "stabilized" or specialized to the behavior of other threads, making it difficult to write function specifications that are reusable at multiple call sites. This paper presents mover logic, which extends RG logic to address this problem via the notion of atomic functions. Atomic functions behave as if they execute serially without interference from concurrent threads, and so they can be assigned more general and reusable specifications that avoid the stabilization requirement of RG logic. Several practical verifiers (Calvin-R, QED, CIVL, Armada, Anchor, etc.) have demonstrated the modularity benefits of atomic function specifications. However, the complexity of these systems and their correctness proofs makes it challenging to understand and extend these systems. Mover logic formalizes the central ideas reduction in a declarative program logic that may provide foundation for future work in this area.
求助全文
通过发布文献求助,成功后即可免费获取论文全文。 去求助
来源期刊
自引率
0.00%
发文量
0
期刊最新文献
Repr Types: One Abstraction to Rule Them All $μλεδ$-Calculus: A Self Optimizing Language that Seems to Exhibit Paradoxical Transfinite Cognitive Capabilities Expressing and Analyzing Quantum Algorithms with Qualtran Conversational Concurrency The MLIR Transform Dialect. Your compiler is more powerful than you think
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
现在去查看 取消
×
提示
确定
0
微信
客服QQ
Book学术公众号 扫码关注我们
反馈
×
意见反馈
请填写您的意见或建议
请填写您的手机或邮箱
已复制链接
已复制链接
快去分享给好友吧!
我知道了
×
扫码分享
扫码分享
Book学术官方微信
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术
文献互助 智能选刊 最新文献 互助须知 联系我们:info@booksci.cn
Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。
Copyright © 2023 Book学术 All rights reserved.
ghs 京公网安备 11010802042870号 京ICP备2023020795号-1