atlas

Research map / Large language models / Instruction and fine-tuning

miniCTX: Neural Theorem Proving with (Long-)Contexts

ICLR 2025 · Large language models › Instruction and fine-tuning · approach: Fine-tuning for reasoning data · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Introduces miniCTX, a Lean 4 benchmark of 762 temporally split theorems from six real projects that tests theorem proving with long file context, plus the NTP-Toolkit extraction tool and a file-tuning baseline.

Problem

Existing neural theorem provers are trained on proof states only and evaluated on standalone competition problems or Mathlib theorems, so they cannot use new definitions, lemmas, comments, or file context that real formalization projects depend on, and evaluations risk data contamination.

Approach

Benchmark theorems from real Lean repositories with their preceding file context (and cross-file premises), using temporal splits to avoid training contamination, and propose file-tuning, which fine-tunes a tactic generator on (file context, proof state, tactic) triples instead of proof states alone.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
fine-tune with preceding file context instead of proof states aloneDeepSeek-Coder-1.3b · miniCTX-test Avg.proof rate: 19.53% vs. 35.94%Helped
provide preceding file contextGPT-4o · miniCTX-test Avg.proof rate: 11.72% vs. 27.08%Helped
add retrieved premises to preceding file contextGPT-4o · PFR, PFR-cross, and SciLeanproof rate: PFR: 5.56 -> 7.41; PFR-cross: 34.88 -> 39.53; SciLean: 17.39 -> 21.74Helped
add retrieved premisesFile tuning · PFR-crossproof rate: 44.19 -> 16.28Hurt
add retrieved premisesFile tuning · miniCTX-test Avg.proof rate: 35.94 -> 30.21Hurt
fine-tune with preceding file context instead of proof states aloneDeepSeek-Coder-1.3b · miniF2F-testproof rate: 32.79% vs. 33.61%Helped
add environment context to no context (ablation)File tuning · PFR.ForMathlib.Entropy.Basicproof rate: 14.12\% -> 25.88\%Helped
add environment context to no context (ablation)GPT-4o · PFR.ForMathlib.Entropy.Basicproof rate: 8.24\% -> 2.35\%Hurt
add definitions to environment context (ablation)File tuning · PFR.ForMathlib.Entropy.Basicproof rate: 25.88\% -> 24.71\%Hurt
add definitions to environment context (ablation)GPT-4o · PFR.ForMathlib.Entropy.Basicproof rate: 2.35\% -> 9.41\%Helped
add lemma statements (ablation)File tuning · PFR.ForMathlib.Entropy.Basicproof rate: 24.71\% -> 27.06\%Helped
add lemma statements (ablation)GPT-4o · PFR.ForMathlib.Entropy.Basicproof rate: 9.41\% -> 22.35\%Helped

Surprising findings

Limitations

Experimental setup

Datasets: Mathlib (2023 snapshot) miniF2F Math2001

Benchmarks: miniCTX-test miniF2F-test Math2001

Metrics: pass@8 proof rate proof success rate

Baselines: GPT-4o full proof GPT-4o with context State-tactic prompting State-tactic tuning LeanDojo premise retriever

Builds on: LeanDojo ReProver lean-training-data Lean REPL GPT-f

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy