Proving Cutoff Bounds for Safety Properties in First-Order Logic

Raz Lotan, Eden Frenkel, Sharon Shoham
{"title":"Proving Cutoff Bounds for Safety Properties in First-Order Logic","authors":"Raz Lotan, Eden Frenkel, Sharon Shoham","doi":"arxiv-2408.10685","DOIUrl":null,"url":null,"abstract":"First-order logic has been established as an important tool for modeling and\nverifying intricate systems such as distributed protocols and concurrent\nsystems. These systems are parametric in the number of nodes in the network or\nthe number of threads, which is finite in any system instance, but unbounded.\nOne disadvantage of first-order logic is that it cannot distinguish between\nfinite and infinite structures, leading to spurious counterexamples. To\nmitigate this, we offer a verification approach that captures only finite\nsystem instances. Our approach is an adaptation of the cutoff method to systems\nmodeled in first-order logic. The idea is to show that any safety violation in\na system instance of size larger than some bound can be simulated by a safety\nviolation in a system of a smaller size. The simulation provides an inductive\nargument for correctness in finite instances, reducing the problem to showing\nsafety of instances with bounded size. To this end, we develop a framework to\n(i) encode such simulation relations in first-order logic and to (ii) validate\nthe simulation relation by a set of verification conditions given to an SMT\nsolver. We apply our approach to verify safety of a set of examples, some of\nwhich cannot be proven by a first-order inductive invariant.","PeriodicalId":501197,"journal":{"name":"arXiv - CS - Programming Languages","volume":"184 1","pages":""},"PeriodicalIF":0.0000,"publicationDate":"2024-08-20","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-2408.10685","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

Abstract

First-order logic has been established as an important tool for modeling and verifying intricate systems such as distributed protocols and concurrent systems. These systems are parametric in the number of nodes in the network or the number of threads, which is finite in any system instance, but unbounded. One disadvantage of first-order logic is that it cannot distinguish between finite and infinite structures, leading to spurious counterexamples. To mitigate this, we offer a verification approach that captures only finite system instances. Our approach is an adaptation of the cutoff method to systems modeled in first-order logic. The idea is to show that any safety violation in a system instance of size larger than some bound can be simulated by a safety violation in a system of a smaller size. The simulation provides an inductive argument for correctness in finite instances, reducing the problem to showing safety of instances with bounded size. To this end, we develop a framework to (i) encode such simulation relations in first-order logic and to (ii) validate the simulation relation by a set of verification conditions given to an SMT solver. We apply our approach to verify safety of a set of examples, some of which cannot be proven by a first-order inductive invariant.
查看原文
分享 分享
微信好友 朋友圈 QQ好友 复制链接
本刊更多论文
证明一阶逻辑中安全属性的截止界限
一阶逻辑已成为对分布式协议和并发系统等复杂系统进行建模和验证的重要工具。这些系统的参数是网络中的节点数或线程数,任何系统实例中的节点数或线程数都是有限的,而线程数则是无界的。一阶逻辑的一个缺点是它无法区分有限结构和无限结构,从而导致虚假反例。为了解决这个问题,我们提出了一种只捕捉有限系统实例的验证方法。我们的方法是对一阶逻辑建模系统的截断法进行改编。我们的想法是证明,任何规模大于某个界限的系统实例的安全违规行为,都可以通过规模较小的系统中的安全违规行为来模拟。这种模拟为有限实例的正确性提供了归纳论证,从而将问题简化为证明大小有界的实例的安全性。为此,我们开发了一个框架:(i) 用一阶逻辑编码这种模拟关系;(ii) 通过给定给 SMT 求解器的一组验证条件来验证模拟关系。我们应用我们的方法来验证一组示例的安全性,其中有些示例无法用一阶归纳不变式来证明。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 去求助
来源期刊
自引率
0.00%
发文量
0
期刊最新文献
Memory Consistency and Program Transformations No Saved Kaleidosope: an 100% Jitted Neural Network Coding Language with Pythonic Syntax Towards Quantum Multiparty Session Types The Incredible Shrinking Context... in a decompiler near you Scheme Pearl: Quantum Continuations
×
引用
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