ZICQ
中 Log in / Sign up
Newsroom Research & Papers #Lean #Formal Verification #Theorem Proving #DeepSeek-V4.1-Flash #Prefix Caching

Eureka Reaches 94.2% Lean Proof Coverage Without Task-Specific Training

Avatar of Mr.Xu

By Mr.Xu Compiled & Reviewed by Editorial

Published:

中文阅读 (Chinese) English Version
Co-reading Select any sentence in the article to highlight, annotate, or copy a quote card. Join discussion ↓

Summary:Eureka is a public service for generating and verifying proofs in Lean. It uses the open-weight DeepSeek-V4.1-Flash model without task-specific training, then subjects each candidate proof to an independent checker that confirms the original statements are unchanged and replays the proof in Lean's kernel before returning it. Across eight benchmarks spanning competition mathematics, graduate stochastic processes and program verification, the reported system proves 1,896 of 2,012 entries, or 94.2


Eureka's central design is not a Lean-specialized model, but an auditable generate-search-verify loop built around a general-purpose open-weight model. DeepSeek-V4.1-Flash produces candidate proofs, an independent checker confirms that the original statements have not been altered, and Lean's kernel replays each proof before it can be returned. This removes the need for the language model to certify its own answer. However, it guarantees derivability of a given formal statement, not that the statement faithfully captures the user's natural-language intent.

Core architecture: generation, isolated checking and kernel replay

  1. Statement-integrity checking: Before accepting a candidate proof, Eureka checks the user's statements independently. This prevents the search process from weakening assumptions or replacing the goal to manufacture a formally valid but semantically different result. It is safer than allowing the same model that generated the proof to act as the sole judge.

  2. Search-based proof generation: The service applies the same DeepSeek-V4.1-Flash model across competition mathematics, stochastic processes and program verification without task-specific training. In the recorded single-agent runs, most reasoning occurs during roughly the first third of the search. The model then continues generating candidate steps and tests them against Lean. Long-context reasoning appears to explore the proof direction, while compiler feedback eliminates invalid intermediate steps.

  3. The Lean kernel as the decision boundary: A candidate must pass Lean's formal processing and be replayed by the independent checker in Lean's kernel. The model may generate malformed syntax, type errors or logically invalid steps, but the returned artifact must be accepted by the formal system. The deterministic guarantee comes from this verification boundary rather than from the model itself.

  4. Cache-dominated cost structure: Cached context represents 97% of all tokens but only 20% of cost in the recorded runs. If total model cost is approximated as C ≈ N_u c_u + N_c c_c + N_o c_o, where the terms represent uncached input, cached input and output tokens, the large N_c combined with a low c_c indicates that prefix reuse is a major source of savings. Because the input/output mix and exact prices are not disclosed, this ratio cannot be converted into a precise unit cost.

Benchmark results: strong coverage and unusually low reported cost

| Evaluation | Reported result | Additional detail | |---|---:|---| | Eight-benchmark aggregate | 1,896/2,012, or 94.2% | Competition mathematics, graduate stochastic processes and program verification | | PutnamBench | 670/672 | Average of $0.17 per problem, including failed attempts | | Putnam 2025 | 12/12 | The same 12 problems also appear in PutnamBench | | AlgoVeri | 77/77 | Produces both programs and their formal proofs | | VERINA | 188/189 proved | The remaining task is refuted | | NTP4VC | 585/600 proved | Nine conditions are refuted and six remain unresolved |

The PutnamBench figure averages $0.17 per problem using DeepSeek's off-peak list prices and includes token expenditure from unsuccessful attempts. The paper reports that other systems reaching comparable coverage cost between $3.52 and $74 per problem. Eureka therefore matches the lowest reported cost in that comparison rather than demonstrating low cost through a single successful call.

The aggregate result still requires careful interpretation. The 12 Putnam 2025 problems also occur in PutnamBench, so the aggregate and subset results should not be added as independent samples. The 94.2% figure should not automatically be read as generalization to fresh or uncontaminated problems.

Engineering trade-offs

  • Generality versus specialization: Avoiding task-specific training eliminates separate proof-data pipelines, fine-tuning runs and specialized checkers. The tradeoff is that proof depth, token demand and failure rates depend heavily on the base model's general reasoning ability.

  • Formal soundness versus semantic soundness: Lean's kernel can reject a proof that is not derivable, but it cannot establish that a theorem was correctly translated from natural language, nor that imported axioms and libraries match real-world assumptions. Production workflows need a separate review of statement semantics.

  • Throughput versus tail latency: Model generation accounts for 86% of single-agent runtime, making candidate decoding the main bottleneck rather than Lean checking. Parallel sampling or search branches may reduce tail latency, but they also duplicate related generation and raise total token consumption. The supplied results do not include a complete multi-agent cost-latency comparison.

  • Cache savings versus environmental stability: Shared prefix caches can make long proof trajectories much cheaper, but changes to a theorem, prompt template, Lean version or dependency library may invalidate relevant cache entries. A credible cost evaluation must include cache-hit rate, input/output mix, failed attempts and compilation time rather than only a per-problem token price.

  • Benchmark breadth versus production realism: The results cover advanced mathematics and program verification, demonstrating that the approach is not tied to a single subject. Industrial proofs, however, often involve larger codebases, more complex dependencies and trusted-build requirements. The current results do not establish that Eureka can replace established formal-verification infrastructure.

What remains to be verified

It is not yet clear whether $0.17 represents the service's full total cost of ownership. The figure includes failed attempts and token pricing, but the summary does not establish whether it also covers TACC compute, Lean compilation, concurrent scheduling, cache misses, monitoring and engineering overhead. Comparisons are also sensitive to differences in hardware, parallelism, timeouts and model prices.

The summary does not disclose the number of repeated runs, confidence intervals, search-budget distribution, model-weight hashes, Lean and library versions, or dataset-contamination checks. Releasing the recorded runs makes independent verification possible, but until those details are available, the defensible conclusion is that Eureka demonstrates strong system-level potential rather than guaranteed low-cost theorem proving across every mathematical or software workload.

Deployment guidance

  1. Pin the complete environment: Record model-weight and inference settings, prompts, the Lean compiler version, core library versions, checker commit hashes and timeout settings so that reruns cannot silently drift.

  2. Separate statements from proofs: Preserve an immutable digest or structured snapshot of the original statement, then have an independent process verify that the accepted proof targets the same object. Logs should include the statement, proof and environment versions.

  3. Sandbox Lean execution: Enforce limits on compilation time, memory, process count and recursion depth to prevent pathological or malicious theorems from exhausting a public service.

  4. Separate model and infrastructure accounting: Track uncached input, cached input, output tokens, failed attempts, Lean CPU time, GPU time and queueing delay. Report per-problem model cost separately from end-to-end service cost.

  5. Retain semantic review: Kernel verification is sufficient for automatic scoring when the target is already formal. Research claims, engineering specifications and safety properties still require domain experts to confirm that the formal statement matches the original requirement.

  6. Reproduce a high-value subset first: Rerun fixed-budget experiments on PutnamBench, AlgoVeri and VERINA before stress-testing longer proofs, larger dependency graphs and concurrent workloads.

Eureka's strongest contribution is not a single trick for eliciting proofs from an LLM, but the composition of a general model, an auditable checker, a formal kernel and cache-aware execution into a publicly reproducible service. If the full paper and independent experiments confirm reproducibility, concurrency behavior and licensing boundaries, the architecture could become a low-cost intermediary between mathematical research and formal software engineering.


Source: Hugging Face Daily Papers (2026-11-30)

— END —

Tags: #Lean #Formal Verification #Theorem Proving #DeepSeek-V4.1-Flash #Prefix Caching

Editorial & Fact-Checking Note: This article is compiled from primary research, official release documentation, and source papers by the ZICQ Newsroom pipeline with automated entity verification and human editorial review. If you notice any technical inaccuracy, please submit a correction via our corrections policy or email our editorial desk directly.

What's your take on this story?
Explore & Submit Works

Community Comments

Loading live comments and annotations…