Lea: An Agent Backbone for Mathematician-Controlled Formalization in Lean
Shaswat Patel, Daniel Aarao Reis Arturi, Kevin Gomez, Jaume de Dios Pont, Jorge Poco, Eduardo V. Teixeira, Sam Westrick, Claudio Silva, Chinmay Hegde
Abstract
Agentic systems now formalize research-level mathematics in Lean, but they are built for autonomy: the mathematician states a target and inspects a result. The alternative, a general-purpose coding harness, is domain-neutral and must be assembled into a formalization workspace before any mathematics begins. Mathematicians, however, report wanting to keep high-level control over how an argument is decomposed and established. We present Lea, a Lean-specific agent backbone for mathematician-facing software rather than a single interface. Lea exposes runs, sessions, and typed events through one application-neutral API, and ships with Lean tooling (blueprints, LSP, Loogle, SafeVerify) already wired. We report two applications built on it: LeaChat, a web client for interactive proof authoring, and LeaOverleaf, which formalizes theorems annotated directly in an Overleaf document; a session begun in either continues in the other. In a case study, a mathematician outlined a proof of the Durfee square generating function in a few natural-language messages, and Lea produced a complete Lean development from Mathlib alone, following the intended decomposition closely and requiring substantive correction at a single point. Lea and both applications are released as open source so that further mathematician-facing tools can be built on the same backbone.
Create a lesson
Related papers
Towards Transparent Computational Agents for Air Traffic Control: Explainability, Interpretability and Trust
Shared title terminology · Rob Procter, Mark Rouncefield, Richard Everson et al.
Perceived Agency During Agent-Avatar Control Transitions in Virtual Reality
Shared title terminology · Jingyi Zhang, Ruijun Sun, Klara Brandstatter et al.
Design and Evaluation of a Body-Machine Interface as an Alternative Control Paradigm for Pedal-based Sewing Machines
Shared title terminology · Ashrut Aryal, Rajiv Ranganathan, Ranjan Mukherjee
Interpersonal trust, institutional trust and trust in technology in Air Traffic Control
Shared title terminology · Rob Procter, Mark Rouncefield
Negotiating Control and Accountability among Stakeholders in High-Risk AI Use Cases: Development and Evaluation of the Method ALIGN
Shared title terminology · Lena Schneider, Daniel Boos, Gudela Grote
MemoSync: Co-Managing Developer-Agent Metamemory Across Contexts
Shared title terminology · Baiqiao Zhang, Junze Li, Chunyang Luo et al.