A Novice-Friendly Induction Tactic for Lean

12/16/2020
by   Jannis Limperg, et al.
0

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.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
07/01/2021

Proof of the impossibility of probabilistic induction

In this short note I restate and simplify the proof of the impossibility...
research
02/08/2022

Evolution of SASyLF 2008-2021

SASyLF was released in 2008 and used as a proof assistant in courses at ...
research
05/17/2021

Induction and Skolemization in saturation theorem proving

We consider a typical integration of induction in saturation-based theor...
research
06/09/2023

Positivity certificates for linear recurrences

We show that for solutions of linear recurrences with polynomial coeffic...
research
02/10/2022

Lebesgue Induction and Tonelli's Theorem in Coq

Lebesgue integration is a well-known mathematical tool, used for instanc...
research
05/19/2021

On the logical structure of choice and bar induction principles

We develop an approach to choice principles and their contrapositive bar...
research
03/22/2021

The Implications of the No-Free-Lunch Theorems for Meta-induction

The important recent book by G. Schurz appreciates that the no-free-lunc...

Please sign up or login with your details

Forgot password? Click here to reset