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":null,"pages":null},"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.
证明一阶逻辑中安全属性的截止界限
一阶逻辑已成为对分布式协议和并发系统等复杂系统进行建模和验证的重要工具。这些系统的参数是网络中的节点数或线程数,任何系统实例中的节点数或线程数都是有限的,而线程数则是无界的。一阶逻辑的一个缺点是它无法区分有限结构和无限结构,从而导致虚假反例。为了解决这个问题,我们提出了一种只捕捉有限系统实例的验证方法。我们的方法是对一阶逻辑建模系统的截断法进行改编。我们的想法是证明,任何规模大于某个界限的系统实例的安全违规行为,都可以通过规模较小的系统中的安全违规行为来模拟。这种模拟为有限实例的正确性提供了归纳论证,从而将问题简化为证明大小有界的实例的安全性。为此,我们开发了一个框架:(i) 用一阶逻辑编码这种模拟关系;(ii) 通过给定给 SMT 求解器的一组验证条件来验证模拟关系。我们应用我们的方法来验证一组示例的安全性,其中有些示例无法用一阶归纳不变式来证明。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
文献相关原料
公司名称 产品信息 采购帮参考价格
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术官方微信