CoChat

Kimina Lean Server: A High-Performance Lean Server for Large-Scale Verification

Open access

The DOI matches its DataCite record; 9 of the 9 references it cites were found in a registry or an index; 3 of the 8 sources its claims cite were checked for support.

Abstract

We introduce the Kimina Lean Server, an open-source project designed as a high-performance verifier for reinforcement learning pipelines. Built on top of the Lean REPL (Read-Eval-Print Loop) maintained by the Lean FRO, our server combines server-side parallelism by managing multiple Lean processes in parallel with a Least Recently Used (LRU) caching mechanism that reuses Lean imports across requests. On the client side, a lightweight Python package enables submitting proof batches and receiving Lean feedback, including extracted tactics and tactic states. Together, these features enable a scalable workflow for large-scale verification and data extraction. In our experiments, the Kimina Lean Server outperforms previous Lean interaction tools, achieving a 1.5 to 2 times speedup in verification time. Moreover, its improved efficiency has enabled its use in the large-scale training of state-of-the-art models such as Kimina-Prover. We hope that our open-source project will support the neural theorem proving community and accelerate future progress by enabling efficient large-scale verification and proof data extraction.

Overview

CoChat Summary

TL;DR

The Kimina Lean Server is an open-source Lean 4 verification server combining server-side parallelism with LRU import caching and a Python client for batch proof checking and tactic extraction. It reports 1.5–2× faster verification than prior tools on 9,419 NuminaMath-LEAN proofs and was used in large-scale training of Kimina-Prover.

Key findings

  • On 9,419 valid, sorry-free NuminaMath-LEAN proofs, Kimina Lean Server was fastest across 8, 16, 32, and 64 cores: 42:40, 21:48, 11:33, and 7:56, versus leanclient (109:55, 56:58, 30:16, 18:01) and LeanInteract (87:35, 45:51, 24:11, 12:56); the paper reports a 1.5–2× speedup over the next best baseline.
  • Scaling from 8 to 32 cores reduced total verification time from 42:40 to 11:33, a nearly 4× speedup.
  • LRU caching reduced average verification time from 0.099 s (non-cached) to 0.051 s (cached), a 1.94× speedup, on the 9,419 proofs with 64 CPU cores.
  • The server was used in large-scale training of state-of-the-art models such as Kimina-Prover, which the paper says have twice achieved state-of-the-art performance on miniF2F.

Methods

  • Design: open-source Lean 4 server built on the official Lean REPL; REST API; pool of Lean REPL processes for server-side parallelization; LRU cache keyed by import header to reuse warmed REPLs; Python client with a single `check` call and infotree processing to extract non-overlapping tactics and tactic states.
  • Data/sample: filtered subset of NuminaMath-LEAN, deduplicated, restricted to complete proofs, with 26 sorry proofs and 3 non-compiling proofs removed, yielding 9,419 valid, sorry-free proofs.
  • Analysis: benchmarks on a GCP C4 VM with 72 vCPUs, 540 GB RAM, Lean v4.15.0, and SMT disabled; compared total verification time across 8/16/32/64 cores against leanclient and LeanInteract, and compared cached vs. non-cached modes.

Limitations

  • The paper does not state an explicit limitations section.
  • Evident from text: evaluation is limited to one hardware/software setup (GCP C4 VM, Lean v4.15.0) and one dataset (filtered NuminaMath-LEAN), so performance on other datasets, Lean versions, or environments is not reported.
  • Evident from text: baseline comparison covers only leanclient and LeanInteract; other Lean interaction tools are discussed but not benchmarked. Caching benefit is described as particularly effective when workflows frequently reuse the same imports.

Model-written summary. Check it against the paper before relying on it.

Integrity signals

Registry

DataCite · 10.48550/arxiv.2504.21230

Cites

9 of 9 references verified0 citation errors · 0 not checkable

Statistics

Nothing to recompute.

Figures

Figure 1 Architecture of the Kimina Lean Server parallelization and caching.
Figure 1 Architecture of the Kimina Lean Server parallelization and caching.CC-BY-NC-ND · From the PDF

Verification

Claims the paper makes

2 Valid · 1 Not valid · 2 Not checked · 9 Own results and interpretations

1 more claim

Create a free account to see all 14 claims and every source verdict.

See all claims — free account
  • It may state two separate claims as one. 2
  • The quote only partly states this claim. 2
  • Probably not a substantial claim. 5

Create a free account to see these claims.

Citations

Cites

Show all 9 references

Cited by

See all 31

Metadata

Authors
Santos, M. D., de Saxcé, H., Wang, H., Wang, R., Baksys, M., Unsal, M., Liu, J., Liu, Z., & Li, J.
Affiliations
  • University of Cambridge (GB)
  • Moonshot AI (China) (CN)
Venue
arXiv
Publisher
arXiv
Published
2025
ISSN
2331-8422 (ISSN-L)
OpenAlex
W4417468671
Cited by
31
References
7
Citations by year
2026: 26 · 2025: 5
Type
posted content
Language
en
Open access
Locations
  • arXiv (Cornell University) (submittedVersion, cc-by-nc-nd)
  • arXiv (Cornell University) (cc-by-nc-nd)
Topics
  • Physical Sciences › Computer Science › Software › Logic, programming, and type systems
  • Physical Sciences › Computer Science › Computational Theory and Mathematics › Formal Methods in Verification
  • Physical Sciences › Computer Science › Computational Theory and Mathematics › Mathematics, Computing, and Information Processing
Keywords
formal verification, LRU caching

About these checks

Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.

The claim verdicts this report counts are experimental: their accuracy is not yet measured.

A language model drew the claims from the paper on 2026-11-22, under version 3 of the claim definition (model deepseek-v4.1-flash, prompt extract-v3).

A second model labelled each claim on 2026-11-22 (model jev-1.13-20260917, definition revision gold-guideline-v0.2).

Cited sources are checked with a language model’s help (qwen3.8-omni-flash).

Statistics and arithmetic are recomputed, not judged.

Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.

What counts as a claim ›How we measure confidence ›How we check this ›

Are you an author, or do you see a problem with this page? Request a review

How to cite

Cite CoChat for the checks on this page, and the paper for its own findings.

This page
CoChat. (2026). Citation check: Kimina Lean Server: A High-Performance Lean Server for Large-Scale Verification. https://app.cochat.ai/papers/10.48550/arxiv.2504.21230
The paper
Santos, M. D., de Saxcé, H., Wang, H., Wang, R., Baksys, M., Unsal, M., Liu, J., Liu, Z., & Li, J. (2025). Kimina Lean Server: A High-Performance Lean Server for Large-Scale Verification. arXiv. https://doi.org/10.48550/arxiv.2504.21230

Data sources

Bibliographic data: Semantic Scholar, OpenAlex, Crossref.

Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).

Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.