miniCTX: Neural Theorem Proving with (Long-)Contexts
Not on the map. Why?
Abstract (arXiv)
Real-world formal theorem proving often depends on a wealth of context, including definitions, lemmas, comments, file structure, and other information. We introduce miniCTX, which tests a model's ability to prove formal mathematical theorems that depend on new context that is not seen during training. miniCTX contains theorems sourced from real Lean projects and textbooks, each associated with a context that can span tens of thousands of tokens. Models are tasked with proving a theorem given access to code from the theorem's repository, which contains context that is needed for the proof. As a baseline for miniCTX, we tested fine-tuning and prompting methods that condition theorem proving on preceding context. Both approaches substantially outperform traditional methods that rely solely on state information. We found that this ability to use context is not captured by previous benchmarks such as miniF2F. Alongside miniCTX, we offer ntp-toolkit for automatically extracting and annotating theorem proving data, making it easy to add new projects into miniCTX to ensure that contexts are not seen during training. miniCTX offers a challenging and realistic evaluation of neural theorem provers.
Key facts. Cited by 35 papers in the map (data through 7 Oct 2026). Builds on 22 of its 37 references that are in the map. First posted on arXiv 5 Aug 2024.
Builds on
22 of 37 references.
References · 22
- 2024DeepSeek-Coder: When the Large Language Model Meets Programming -- The Rise of Code Intelligencecited by 1,154
- 2023LeanDojo: Theorem Proving with Retrieval-Augmented Language Modelscited by 414
- 2023Llemma: An Open Language Model For Mathematicscited by 385
- 2021MiniF2F: a cross-system benchmark for formal Olympiad-level mathematicscited by 380
- 2020Generative Language Modeling for Automated Theorem Provingcited by 379
- 2022Draft, Sketch, and Prove: Guiding Formal Theorem Provers with Informal Proofscited by 278
- 2022HyperTree Proof Search for Neural Theorem Provingcited by 192
- 2023ProofNet: Autoformalizing and Formally Proving Undergraduate-Level Mathematicscited by 180
- 2021Proof Artifact Co-training for Theorem Proving with Language Modelscited by 130
- 2019The Lean mathematical librarycited by 127
- 2022A Survey of Deep Learning for Mathematical Reasoningcited by 124
- 2023Baldur: Whole-Proof Generation and Repair with Large Language Modelscited by 118
10 more
- 2024InternLM-Math: Open Math Large Language Models Toward Verifiable Reasoningcited by 117
- 2019Learning to Prove Theorems via Interacting with Proof Assistantscited by 107
- 2022Thor: Wielding Hammers to Integrate Language Models and Automated Theorem Proverscited by 97
- 2016DeepMath - Deep Sequence Models for Premise Selectioncited by 80
- 2023FIMO: A Challenge Formal Dataset for Automated Theorem Provingcited by 54
- 2023Magnushammer: A Transformer-Based Approach to Premise Selectioncited by 50
- 2023LLMSTEP: LLM proofstep suggestions in Leancited by 32
- 2022Towards a Mathematics Formalisation Assistant using Large Language Modelscited by 22
- 2024Graph2Tac: Online Representation Learning of Formal Math Conceptscited by 15
- 2024HepLean: Digitalising high energy physicscited by 10
Built on by
Citing papers per year: 2024: 4; 2025: 15; 2026: 16.
35 papers.
Sort:
By area:
- 2025Scaling up Test-Time Compute with Latent Reasoning: A Recurrent Depth Approachcited by 372
- 2024DeepSeek-Prover-V1.5: Harnessing Proof Assistant Feedback for Reinforcement Learning and Monte-Carlo Tree Searchcited by 189
- 2025Seed-Prover: Deep and Broad Reasoning for Automated Theorem Provingcited by 96
- 2024Formal Mathematical Reasoning: A New Frontier in AIcited by 80
- 2025Rewarding the Unlikely: Lifting GRPO Beyond Distribution Sharpeningcited by 78
- 2025CLEVER: A Curated Benchmark for Formally Verified Code Generationcited by 27
- 2025FATE: A Formal Benchmark Series for Frontier Algebra of Multiple Difficulty Levelscited by 23
- 2025Solving Inequality Proofs with Large Language Modelscited by 21
- 2025Mathematical Proof as a Litmus Test: Revealing Failure Modes of Advanced Large Reasoning Modelscited by 18
- 2025miniF2F-Lean Revisited: Reviewing Limitations and Charting a Path Forwardcited by 13
- 2024Data for Mathematical Copilots: Better Ways of Presenting Proofs for Machine Learningcited by 11
- 2024ImProver: Agent-Based Automated Proof Optimizationcited by 10
23 more
- 2025APE-Bench: Evaluating Automated Proof Engineering for Formal Math Librariescited by 6
- 2025Premise Selection for a Lean Hammercited by 6
- 2025RLMEval: Evaluating Research-Level Neural Theorem Provingcited by 6
- 2026VeriSoftBench: Repository-Scale Formal Verification Benchmarks for Leancited by 6
- 2025FormalML: A Benchmark for Evaluating Formal Subgoal Completion in Machine Learning Theorycited by 5
- 2025Programming with Pixels: Can Computer-Use Agents do Software Engineering?cited by 4
- 2026SorryDB: Can AI Provers Complete Real-World Lean Theorems?cited by 4
- 2026Theory-Scale Auto-Formalization of Logics for Computer Sciencecited by 3
- 2025Discovering New Theorems via LLMs with In-Context Proof Learning in Leancited by 2
- 2026Learning to Reason with Insight for Informal Theorem Provingcited by 2
- 2026Evaluation of LLMs for Mathematical Formalization in Leancited by 2
- 2025Advocate for Complete Benchmarks for Formal Reasoning with Formal/Informal Statements and Formal/Informal Proofscited by 1
- 2026GDEPO: Group Dual-dynamic and Equal-right Advantage Policy Optimization with Enhanced Training Data Utilization for Sample-Constrained Reinforcement Learningcited by 1
- 2026s2n-bignum-bench: A practical benchmark for evaluating low-level code reasoning of LLMscited by 1
- 2026Lean Atlas: An Integrated Proof Environment for Scalable Human-AI Collaborative Formalizationcited by 1
- 2026LAMP: Lean-based Agentic framework with MCP and Proof Repaircited by 1
- 2026CoMemBench: Benchmarking Collaborative Memory Boundaries across Multi-Agent Workflow Topologiescited by 1
- 2026How Well Do LLMs Perform on the Simplest Long-Chain Reasoning Tasks: An Empirical Study on the Equivalence Class Problemcited by 0
- 2026FVSpec: Real-World Property-Based Tests as Lean Challengescited by 0
- 2026PriorProof: A Point-in-Time Measure of Technique Novelty for Formal Proofscited by 0
- 2026Compiler-Guided Adaptive Proof Search with Cross-Model Synergy on Context-Dependent Theorem Provingcited by 0
- 2026AxQM: A Textbook-Scale Benchmark for Formal Proof Synthesis in a Library of Finite-Dimensional Quantum Mechanicscited by 0
- 2026FORALL-LEAN-AGENT for Auditable Reasoning in Formal Mathematics and Software Verificationcited by 0
- 2026FORALL-LEAN-AGENT for Auditable Reasoning in Formal Mathematics and Software Verification1 Oct 2026
- 2026CoMemBench: Benchmarking Collaborative Memory Boundaries across Multi-Agent Workflow Topologies26 Sep 2026
- 2026AxQM: A Textbook-Scale Benchmark for Formal Proof Synthesis in a Library of Finite-Dimensional Quantum Mechanics4 Sep 2026
- 2026PriorProof: A Point-in-Time Measure of Technique Novelty for Formal Proofs18 Jul 2026
- 2026LAMP: Lean-based Agentic framework with MCP and Proof Repair27 Jun 2026
- 2026Theory-Scale Auto-Formalization of Logics for Computer Science25 Jun 2026
- 2026Compiler-Guided Adaptive Proof Search with Cross-Model Synergy on Context-Dependent Theorem Proving4 Jun 2026
- 2026Evaluation of LLMs for Mathematical Formalization in Lean4 Jun 2026
- 2026FVSpec: Real-World Property-Based Tests as Lean Challenges31 May 2026
- 2026How Well Do LLMs Perform on the Simplest Long-Chain Reasoning Tasks: An Empirical Study on the Equivalence Class Problem7 May 2026
- 2026Learning to Reason with Insight for Informal Theorem Proving17 Apr 2026
- 2026Lean Atlas: An Integrated Proof Environment for Scalable Human-AI Collaborative Formalization16 Mar 2026
23 more
- 2026s2n-bignum-bench: A practical benchmark for evaluating low-level code reasoning of LLMs15 Mar 2026
- 2026SorryDB: Can AI Provers Complete Real-World Lean Theorems?3 Mar 2026
- 2026VeriSoftBench: Repository-Scale Formal Verification Benchmarks for Lean20 Feb 2026
- 2026GDEPO: Group Dual-dynamic and Equal-right Advantage Policy Optimization with Enhanced Training Data Utilization for Sample-Constrained Reinforcement Learning11 Jan 2026
- 2025miniF2F-Lean Revisited: Reviewing Limitations and Charting a Path Forward5 Nov 2025
- 2025FATE: A Formal Benchmark Series for Frontier Algebra of Multiple Difficulty Levels4 Nov 2025
- 2025RLMEval: Evaluating Research-Level Neural Theorem Proving29 Oct 2025
- 2025FormalML: A Benchmark for Evaluating Formal Subgoal Completion in Machine Learning Theory26 Sep 2025
- 2025Discovering New Theorems via LLMs with In-Context Proof Learning in Lean16 Sep 2025
- 2025Seed-Prover: Deep and Broad Reasoning for Automated Theorem Proving31 Jul 2025
- 2025Advocate for Complete Benchmarks for Formal Reasoning with Formal/Informal Statements and Formal/Informal Proofs7 Jul 2025
- 2025Mathematical Proof as a Litmus Test: Revealing Failure Modes of Advanced Large Reasoning Models20 Jun 2025
- 2025Solving Inequality Proofs with Large Language Models9 Jun 2025
- 2025Premise Selection for a Lean Hammer9 Jun 2025
- 2025Rewarding the Unlikely: Lifting GRPO Beyond Distribution Sharpening3 Jun 2025
- 2025CLEVER: A Curated Benchmark for Formally Verified Code Generation20 May 2025
- 2025APE-Bench: Evaluating Automated Proof Engineering for Formal Math Libraries27 Apr 2025
- 2025Programming with Pixels: Can Computer-Use Agents do Software Engineering?24 Feb 2025
- 2025Scaling up Test-Time Compute with Latent Reasoning: A Recurrent Depth Approach7 Feb 2025
- 2024Formal Mathematical Reasoning: A New Frontier in AI20 Dec 2024
- 2024Data for Mathematical Copilots: Better Ways of Presenting Proofs for Machine Learning19 Dec 2024
- 2024ImProver: Agent-Based Automated Proof Optimization7 Oct 2024
- 2024DeepSeek-Prover-V1.5: Harnessing Proof Assistant Feedback for Reinforcement Learning and Monte-Carlo Tree Search15 Aug 2024
- 2025Scaling up Test-Time Compute with Latent Reasoning: A Recurrent Depth Approachcited by 372
- 2025Seed-Prover: Deep and Broad Reasoning for Automated Theorem Provingcited by 96
- 2024Formal Mathematical Reasoning: A New Frontier in AIcited by 80
- 2025Rewarding the Unlikely: Lifting GRPO Beyond Distribution Sharpeningcited by 78
- 2025Solving Inequality Proofs with Large Language Modelscited by 21
- 2025Mathematical Proof as a Litmus Test: Revealing Failure Modes of Advanced Large Reasoning Modelscited by 18
- 2026Learning to Reason with Insight for Informal Theorem Provingcited by 2
- 2026GDEPO: Group Dual-dynamic and Equal-right Advantage Policy Optimization with Enhanced Training Data Utilization for Sample-Constrained Reinforcement Learningcited by 1
- 2026s2n-bignum-bench: A practical benchmark for evaluating low-level code reasoning of LLMscited by 1
- 2026LAMP: Lean-based Agentic framework with MCP and Proof Repaircited by 1
- 2026How Well Do LLMs Perform on the Simplest Long-Chain Reasoning Tasks: An Empirical Study on the Equivalence Class Problemcited by 0
- 2026LAMP: Lean-based Agentic framework with MCP and Proof Repair27 Jun 2026
- 2026How Well Do LLMs Perform on the Simplest Long-Chain Reasoning Tasks: An Empirical Study on the Equivalence Class Problem7 May 2026
- 2026Learning to Reason with Insight for Informal Theorem Proving17 Apr 2026
- 2026s2n-bignum-bench: A practical benchmark for evaluating low-level code reasoning of LLMs15 Mar 2026
- 2026GDEPO: Group Dual-dynamic and Equal-right Advantage Policy Optimization with Enhanced Training Data Utilization for Sample-Constrained Reinforcement Learning11 Jan 2026
- 2025Seed-Prover: Deep and Broad Reasoning for Automated Theorem Proving31 Jul 2025
- 2025Mathematical Proof as a Litmus Test: Revealing Failure Modes of Advanced Large Reasoning Models20 Jun 2025
- 2025Solving Inequality Proofs with Large Language Models9 Jun 2025
- 2025Rewarding the Unlikely: Lifting GRPO Beyond Distribution Sharpening3 Jun 2025
- 2025Scaling up Test-Time Compute with Latent Reasoning: A Recurrent Depth Approach7 Feb 2025
- 2024Formal Mathematical Reasoning: A New Frontier in AI20 Dec 2024
- 2024DeepSeek-Prover-V1.5: Harnessing Proof Assistant Feedback for Reinforcement Learning and Monte-Carlo Tree Searchcited by 189
- 2025CLEVER: A Curated Benchmark for Formally Verified Code Generationcited by 27
- 2025FATE: A Formal Benchmark Series for Frontier Algebra of Multiple Difficulty Levelscited by 23
- 2025miniF2F-Lean Revisited: Reviewing Limitations and Charting a Path Forwardcited by 13
- 2024Data for Mathematical Copilots: Better Ways of Presenting Proofs for Machine Learningcited by 11
- 2025APE-Bench: Evaluating Automated Proof Engineering for Formal Math Librariescited by 6
- 2025Premise Selection for a Lean Hammercited by 6
- 2025RLMEval: Evaluating Research-Level Neural Theorem Provingcited by 6
- 2026VeriSoftBench: Repository-Scale Formal Verification Benchmarks for Leancited by 6
- 2025FormalML: A Benchmark for Evaluating Formal Subgoal Completion in Machine Learning Theorycited by 5
- 2026SorryDB: Can AI Provers Complete Real-World Lean Theorems?cited by 4
- 2026Theory-Scale Auto-Formalization of Logics for Computer Sciencecited by 3
12 most cited of 21 All 21 (JSON)
- 2026CoMemBench: Benchmarking Collaborative Memory Boundaries across Multi-Agent Workflow Topologies26 Sep 2026
- 2026AxQM: A Textbook-Scale Benchmark for Formal Proof Synthesis in a Library of Finite-Dimensional Quantum Mechanics4 Sep 2026
- 2026PriorProof: A Point-in-Time Measure of Technique Novelty for Formal Proofs18 Jul 2026
- 2026Theory-Scale Auto-Formalization of Logics for Computer Science25 Jun 2026
- 2026Compiler-Guided Adaptive Proof Search with Cross-Model Synergy on Context-Dependent Theorem Proving4 Jun 2026
- 2026Evaluation of LLMs for Mathematical Formalization in Lean4 Jun 2026
- 2026FVSpec: Real-World Property-Based Tests as Lean Challenges31 May 2026
- 2026Lean Atlas: An Integrated Proof Environment for Scalable Human-AI Collaborative Formalization16 Mar 2026
- 2026SorryDB: Can AI Provers Complete Real-World Lean Theorems?3 Mar 2026
- 2026VeriSoftBench: Repository-Scale Formal Verification Benchmarks for Lean20 Feb 2026
- 2025miniF2F-Lean Revisited: Reviewing Limitations and Charting a Path Forward5 Nov 2025
- 2025FATE: A Formal Benchmark Series for Frontier Algebra of Multiple Difficulty Levels4 Nov 2025
12 newest of 21 All 21 (JSON)