Automated Tactics for Polynomial Reasoning in Lean 4

📅 2026-04-15
📈 Citations: 0
Influential: 0
📄 PDF

career value

170K/year
🤖 AI Summary
This work addresses the limitation in Lean 4 that its native multivariate polynomials employ a non-computable representation, hindering efficient execution of symbolic computations such as Gröbner basis algorithms and thus impeding large-scale algebraic reasoning. To overcome this, the authors propose a certificate-based hybrid verification framework that integrates a computable polynomial representation, leverages external computer algebra systems (e.g., SageMath, SymPy) to compute Gröbner bases, and formally verifies their correctness within Lean 4. This approach enables, for the first time, practical automated handling of large-scale polynomial problems in Lean 4, supporting essential reasoning tasks including remainder verification, ideal membership testing, and ideal equality. The method substantially enhances both the efficiency and practicality of formalized algebraic reasoning in proof assistants.

Technology Category

Application Category

📝 Abstract
Applying Gröbner basis theory to concrete problems in Lean 4 remains difficult since the current formalization of multivariate polynomials is based on a non-computable representation and is therefore not suitable for efficient symbolic computation. As a result, computing Gröbner bases directly inside Lean is impractical for realistic examples. To address this issue, we propose a certificate-based approach that combines external computer algebra systems, such as SageMath or SymPy, with formal verification in Lean 4. Our approach uses a computable representation of multivariate polynomials in Lean to import and verify externally generated Gröbner basis computations. The external solver carries out the main algebraic computations, while the returned results are verified inside Lean. Based on this method, we develop automated tactics that transfer polynomial data between Lean and the external system and certify the returned results. These tactics support tasks such as remainder verification, Gröbner basis checking, ideal equality, and ideal or radical membership. This work provides a practical way to integrate external symbolic computation into Lean 4 while preserving the reliability of formal proof.
Problem

Research questions and friction points this paper is trying to address.

Gröbner basis
polynomial reasoning
formal verification
symbolic computation
Lean 4
Innovation

Methods, ideas, or system contributions that make the work stand out.

Gröbner basis
certificate-based verification
Lean 4
symbolic computation
automated tactics
🔎 Similar Papers
No similar papers found.