Bridging Syntax and Semantics of Lean Expressions in E-Graphs

Marcus Rossel, Andrés Goens
{"title":"Bridging Syntax and Semantics of Lean Expressions in E-Graphs","authors":"Marcus Rossel, Andrés Goens","doi":"arxiv-2405.10188","DOIUrl":null,"url":null,"abstract":"Interactive theorem provers, like Isabelle/HOL, Coq and Lean, have expressive\nlanguages that allow the formalization of general mathematical objects and\nproofs. In this context, an important goal is to reduce the time and effort\nneeded to prove theorems. A significant means of achieving this is by improving\nproof automation. We have implemented an early prototype of proof automation\nfor equational reasoning in Lean by using equality saturation. To achieve this,\nwe need to bridge the gap between Lean's expression semantics and the\nsyntactically driven e-graphs in equality saturation. This involves handling\nbound variables, implicit typing, as well as Lean's definitional equality,\nwhich is more general than syntactic equality and involves notions like\n$\\alpha$-equivalence, $\\beta$-reduction, and $\\eta$-reduction. In this extended\nabstract, we highlight how we attempt to bridge this gap, and which challenges\nremain to be solved. Notably, while our techniques are partially unsound, the\nresulting proof automation remains sound by virtue of Lean's proof checking.","PeriodicalId":501033,"journal":{"name":"arXiv - CS - Symbolic Computation","volume":"18 1","pages":""},"PeriodicalIF":0.0000,"publicationDate":"2024-05-16","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"arXiv - CS - Symbolic Computation","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/arxiv-2405.10188","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

Abstract

Interactive theorem provers, like Isabelle/HOL, Coq and Lean, have expressive languages that allow the formalization of general mathematical objects and proofs. In this context, an important goal is to reduce the time and effort needed to prove theorems. A significant means of achieving this is by improving proof automation. We have implemented an early prototype of proof automation for equational reasoning in Lean by using equality saturation. To achieve this, we need to bridge the gap between Lean's expression semantics and the syntactically driven e-graphs in equality saturation. This involves handling bound variables, implicit typing, as well as Lean's definitional equality, which is more general than syntactic equality and involves notions like $\alpha$-equivalence, $\beta$-reduction, and $\eta$-reduction. In this extended abstract, we highlight how we attempt to bridge this gap, and which challenges remain to be solved. Notably, while our techniques are partially unsound, the resulting proof automation remains sound by virtue of Lean's proof checking.
查看原文
分享 分享
微信好友 朋友圈 QQ好友 复制链接
本刊更多论文
架起电子图表中精益表达语法与语义的桥梁
交互式定理证明器,如 Isabelle/HOL、Coq 和 Lean,都有很强的表达能力,可以将一般数学对象和定理形式化。在这种情况下,一个重要的目标就是减少定理证明所需的时间和精力。实现这一目标的一个重要手段就是提高证明的自动化程度。我们已经利用相等饱和实现了 Lean 中等式推理证明自动化的早期原型。为了实现这一目标,我们需要弥合精益表达式语义与等价饱和中的句法驱动电子图之间的差距。这涉及到处理绑定变量、隐式类型以及精益的定义相等,定义相等比语法相等更一般,涉及到诸如$\alpha$-等价、$\beta$-还原和$\eta$-还原等概念。在这篇扩展摘要中,我们将重点介绍我们是如何试图弥合这一差距的,以及哪些难题仍有待解决。值得注意的是,虽然我们的技术有部分是不健全的,但凭借精益证明检查,由此产生的证明自动化仍然是健全的。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 去求助
来源期刊
自引率
0.00%
发文量
0
期刊最新文献
Synthesizing Evolving Symbolic Representations for Autonomous Systems Introducing Quantification into a Hierarchical Graph Rewriting Language Towards Verified Polynomial Factorisation Symbolic Regression with a Learned Concept Library Active Symbolic Discovery of Ordinary Differential Equations via Phase Portrait Sketching
×
引用
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