LeanTutor: Towards a Verified AI Mathematical Proof Tutor
Manooshree Patel, Rayna Bhattacharyya, Thomas Lu, Arnav Mehta, Niels Voss, Narges Norouzi, Gireeja Ranade
TL;DR
LeanTutor proposes a provably-correct math-proof tutoring framework by fusing natural-language student interaction with the Lean theorem prover. It introduces PeanoBench, a 371-proof dataset that pairs NL and Lean proofs to enable faithful autoformalization and targeted feedback. The system comprises an autoformalizer, a next-step generator, and a natural-language feedback module, and it demonstrates improved fidelity and guidance over baselines, while acknowledging limitations around one-to-one NL-to-Lean mappings and the need for staff-solution context. Collectively, the work shows promise for scalable, feedback-rich tutoring that preserves mathematical correctness, with implications for classroom deployment and future research on faithful autoformalization and human-AI tutoring.
Abstract
This paper considers the development of an AI-based provably-correct mathematical proof tutor. While Large Language Models (LLMs) allow seamless communication in natural language, they are error prone. Theorem provers such as Lean allow for provable-correctness, but these are hard for students to learn. We present a proof-of-concept system (LeanTutor) by combining the complementary strengths of LLMs and theorem provers. LeanTutor is composed of three modules: (i) an autoformalizer/proof-checker, (ii) a next-step generator, and (iii) a natural language feedback generator. To evaluate the system, we introduce PeanoBench, a dataset of 371 Peano Arithmetic proofs in human-written natural language and formal language, derived from the Natural Numbers Game.
