Mechanizing Matching Logic in Coq

Péter Bereczky, Xiaohong Chen, D'aniel Horp'acsi, Tam'as B'alint Mizsei, Lucas Peña, Jan Tusil
{"title":"Mechanizing Matching Logic in Coq","authors":"Péter Bereczky, Xiaohong Chen, D'aniel Horp'acsi, Tam'as B'alint Mizsei, Lucas Peña, Jan Tusil","doi":"10.4204/EPTCS.369.2","DOIUrl":null,"url":null,"abstract":"Matching logic is a formalism for specifying, and reasoning about, mathematical structures, using patterns and pattern matching. Growing in popularity, it has been used to define many logical systems such as separation logic with recursive definitions and linear temporal logic. In addition, it serves as the logical foundation of the K semantic framework, which was used to build practical verifiers for a number of real-world languages. Despite being a fundamental formal system accommodating substantial theories, matching logic lacks a general-purpose, machine-checked formalization. Hence, we formalize matching logic using the Coq proof assistant. Specifically, we create a new representation of matching logic that uses a locally nameless encoding, and we formalize the syntax, semantics, and proof system of this representation in the Coq proof assistant. Crucially, we prove the soundness of the formalized proof system and provide a means to carry out interactive matching logic reasoning in Coq. We believe this work provides a previously unexplored avenue for reasoning about matching logic, its models, and the proof system.","PeriodicalId":9644,"journal":{"name":"Catalysis Surveys from Japan","volume":null,"pages":null},"PeriodicalIF":0.0000,"publicationDate":"2022-01-15","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"1","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Catalysis Surveys from Japan","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.4204/EPTCS.369.2","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 1

Abstract

Matching logic is a formalism for specifying, and reasoning about, mathematical structures, using patterns and pattern matching. Growing in popularity, it has been used to define many logical systems such as separation logic with recursive definitions and linear temporal logic. In addition, it serves as the logical foundation of the K semantic framework, which was used to build practical verifiers for a number of real-world languages. Despite being a fundamental formal system accommodating substantial theories, matching logic lacks a general-purpose, machine-checked formalization. Hence, we formalize matching logic using the Coq proof assistant. Specifically, we create a new representation of matching logic that uses a locally nameless encoding, and we formalize the syntax, semantics, and proof system of this representation in the Coq proof assistant. Crucially, we prove the soundness of the formalized proof system and provide a means to carry out interactive matching logic reasoning in Coq. We believe this work provides a previously unexplored avenue for reasoning about matching logic, its models, and the proof system.
Coq中匹配逻辑的机械化
匹配逻辑是使用模式和模式匹配来指定和推理数学结构的一种形式。它越来越受欢迎,已被用于定义许多逻辑系统,如具有递归定义的分离逻辑和线性时间逻辑。此外,它还充当K语义框架的逻辑基础,该框架用于为许多现实世界的语言构建实用的验证器。尽管匹配逻辑是一个容纳大量理论的基本形式系统,但它缺乏通用的、机器检查的形式化。因此,我们使用Coq证明助手形式化匹配逻辑。具体来说,我们创建了一个使用本地无名编码的匹配逻辑的新表示,并在Coq证明助手中形式化了该表示的语法、语义和证明系统。关键是,我们证明了形式化证明系统的正确性,并提供了在Coq中进行交互式匹配逻辑推理的方法。我们相信这项工作为匹配逻辑、其模型和证明系统的推理提供了一条以前未探索的途径。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约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学术官方微信