arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2012.08990cs.LO
收藏

一种新颖的精益诱导策略

A Novice-Friendly Induction Tactic for Lean

Jannis Limperg

摘要:

在Coq和Lean等基于依赖类型论的定理证明器中,归纳是一种基本的证明方法,归纳策略在证明脚本中无处不在。然而,现有归纳策略的人机工程学并不理想:它们不能可靠地支持归纳谓词和关系;它们有时会产生过于具体或不必要的复杂归纳假设;它们偶尔会为它们引入的假设选择令人困惑的名称。本文描述了一种新的归纳策略,在精益3中实现,它解决了这些问题。这种策略特别适合教育用途,但专家们也应该发现它比现有的归纳策略更方便。此外,该策略还可以作为精益3的元编程框架的一个中等复杂的案例研究。本文介绍了在执行过程中遇到的一些困难,并提出了改进框架的建议。

英文摘要:

In theorem provers based on dependent type theory such as Coq and Lean, induction is a fundamental proof method and induction tactics are omnipresent in proof scripts. Yet the ergonomics of existing induction tactics are not ideal: they do not reliably support inductive predicates and relations; they sometimes generate overly specific or unnecessarily complex induction hypotheses; and they occasionally choose confusing names for the hypotheses they introduce. This paper describes a new induction tactic, implemented in Lean 3, which addresses these issues. The tactic is particularly suitable for educational use, but experts should also find it more convenient than existing induction tactics. In addition, the tactic serves as a moderately complex case study for the metaprogramming framework of Lean 3. The paper describes some difficulties encountered during the implementation and suggests improvements to the framework.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑