LeanContext: Disentangling Mathematical Resources from Local Formal Context in Lean Whole-Proof Generation
Not on the map. Why?
Abstract (arXiv)
Neural theorem proving increasingly uses retrieved premises and project context to support proof generation. Evaluating these resources requires measuring the advantage of target-selected declarations over comparable alternatives and how this advantage depends on training. We introduce LeanContext, a benchmark of 129,826 Lean whole-proof generation problems, to investigate these questions. We group selected complete preceding mathematical declarations as Mathematical Context (MC) and the remaining selected local source commands as Environment Context (EC). Four aligned input views support crossed training and inference evaluations with shared targets and original Lean verification environments. For both diffusion- and autoregressive-based models, selected declarations outperform comparable alternatives by a larger margin when training includes MC. Final-input audits identify omitted declarations referenced by the target. Prioritizing these dependencies improves Pass@32 by 1.40% and 1.70% for LLaDA and Llama, respectively, on 2,000 targets. The selection experiment operates without access to target reference proofs and holds checkpoints, EC, and inference budgets constant. The code and dataset are available at https://github.com/haaaardcvZ/LeanContext.
Key facts. No citing papers in the map yet (data through 24 Nov 2026). Builds on 38 of its 51 references that are in the map. Submitted 5 Nov 2026.
Builds on
38 of 51 references.
References · 38
- 2024The Llama 3 Herd of Modelscited by 16,113
- 2021Evaluating Large Language Models Trained on Codecited by 8,938
- 2019Similarity of Neural Network Representations Revisitedcited by 1,880
- 2024Qwen2.5-Math Technical Report: Toward Mathematical Expert Model via Self-Improvementcited by 1,155
- 2021MiniF2F: a cross-system benchmark for formal Olympiad-level mathematicscited by 430
- 2020Generative Language Modeling for Automated Theorem Provingcited by 419
- 2023Llemma: An Open Language Model For Mathematicscited by 410
- 2018Insights on representational similarity in neural networks with canonical correlationcited by 339
- 2025DeepSeek-Prover-V2: Advancing Formal Mathematical Reasoning via Reinforcement Learning for Subgoal Decompositioncited by 335
- 2022Draft, Sketch, and Prove: Guiding Formal Theorem Provers with Informal Proofscited by 319
- 2025LLaDA 1.5: Variance-Reduced Preference Optimization for Large Language Diffusion Modelscited by 314
- 2024DeepSeek-Prover: Advancing Theorem Proving in LLMs through Large-Scale Synthetic Datacited by 263
26 more
- 2023ProofNet: Autoformalizing and Formally Proving Undergraduate-Level Mathematicscited by 218
- 2022HyperTree Proof Search for Neural Theorem Provingcited by 211
- 2024PutnamBench: Evaluating Neural Theorem-Provers on the Putnam Mathematical Competitioncited by 184
- 2019The Lean mathematical librarycited by 164
- 2021Proof Artifact Co-training for Theorem Proving with Language Modelscited by 138
- 2023LEGO-Prover: Neural Theorem Proving with Growing Librariescited by 125
- 2019Learning to Prove Theorems via Interacting with Proof Assistantscited by 114
- 2022Thor: Wielding Hammers to Integrate Language Models and Automated Theorem Proverscited by 105
- 2025STP: Self-play LLM Theorem Provers with Iterative Conjecturing and Provingcited by 88
- 2016DeepMath - Deep Sequence Models for Premise Selectioncited by 84
- 2024Lean-STaR: Learning to Interleave Thinking and Provingcited by 78
- 2024Lean Copilot: Large Language Models as Copilots for Theorem Proving in Leancited by 69
- 2023Magnushammer: A Transformer-Based Approach to Premise Selectioncited by 55
- 2018TacticToe: Learning to Prove with Tacticscited by 46
- 2024miniCTX: Neural Theorem Proving with (Long-)Contextscited by 42
- 2024LeanAgent: Lifelong Learning for Formal Theorem Provingcited by 40
- 2025CombiBench: Benchmarking LLM Capability for Combinatorial Mathematicscited by 38
- 2024Rango: Adaptive Retrieval-Augmented Proving for Automated Software Verificationcited by 33
- 2017HolStep: A Machine Learning Dataset for Higher-order Logic Theorem Provingcited by 29
- 2022Passport: Improving Automated Formal Verification Using Identifierscited by 20
- 2024Graph2Tac: Online Representation Learning of Formal Math Conceptscited by 17
- 2026LeanSearch v2: Global Premise Retrieval for Lean 4 Theorem Provingcited by 14
- 2026VeriSoftBench: Repository-Scale Formal Verification Benchmarks for Leancited by 12
- 2014Learning-assisted Theorem Proving with Millions of Lemmascited by 6
- 2025FormalML: A Benchmark for Evaluating Formal Subgoal Completion in Machine Learning Theorycited by 6
- 2026Towards Real-World Industrial-Scale Verification: LLM-Driven Theorem Proving on seL4cited by 2
Built on by
Not cited yet.