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.
查看原文
分享 分享
微信好友 朋友圈 QQ好友 复制链接
本刊更多论文
Coq中匹配逻辑的机械化
匹配逻辑是使用模式和模式匹配来指定和推理数学结构的一种形式。它越来越受欢迎,已被用于定义许多逻辑系统,如具有递归定义的分离逻辑和线性时间逻辑。此外,它还充当K语义框架的逻辑基础,该框架用于为许多现实世界的语言构建实用的验证器。尽管匹配逻辑是一个容纳大量理论的基本形式系统,但它缺乏通用的、机器检查的形式化。因此,我们使用Coq证明助手形式化匹配逻辑。具体来说,我们创建了一个使用本地无名编码的匹配逻辑的新表示,并在Coq证明助手中形式化了该表示的语法、语义和证明系统。关键是,我们证明了形式化证明系统的正确性,并提供了在Coq中进行交互式匹配逻辑推理的方法。我们相信这项工作为匹配逻辑、其模型和证明系统的推理提供了一条以前未探索的途径。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 去求助
来源期刊
自引率
0.00%
发文量
0
期刊最新文献
Synthesis of Cost-Optimal Multi-Agent Systems for Resource Allocation Correctness of Broadcast via Multicast: Graphically and Formally A Tool for Describing and Checking Natural Semantics Definitions of Programming Languages Mechanizing Matching Logic in Coq Proof-Carrying Parameters in Certified Symbolic Execution: The Case Study of Antiunification
×
引用
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