arXiv:2609.09264cs.CLSep 2026

Manuscript Offprint

arXiv:2609.09264

StochBench: A Domain-Specific Benchmark for Stochastic Processes in Lean

Idan Davidovich, Debargha Ganguly, Vikash Singh, Vipin Chaudhary

Abstract

Leading benchmarks for formal theorem proving with large language models are small collections drawn from competition math, such as the IMO and Putnam, that poorly represent field-specific applications. We introduce STOCHBENCH, a Lean 4 benchmark of 450 graduate stochastic-processes problems at varying abstraction levels, each paired with its natural-language source. Addressing a field underrepresented in Mathlib, it covers finite and countable Markov chains, renewal processes, random walks, martingales, stopping times, queues, Brownian motion, stochastic calculus, weak convergence, and Poisson and continuous-time Markov processes. Our Opus 4.8-based agent achieves a 34.9% proof rate (157/450) under a 15-minute per-problem limit. STOCHBENCH better represents domain-specific applied mathematics while remaining challenging for advanced provers.

1 Introduction

Lean enables machine-checkable mathematics, with substantial formalizations including sphere packing in dimension eight, Brownian motion, and Fermat's Last Theorem for regular primes [Hariharan et al., 2026, Degenne et al., 2025, Best et al., 2025]. Extending this progress to everyday mathematical assistance requires evaluating how consistently automated provers handle a discipline's recurring arguments. Competition benchmarks and broad textbook collections offer valuable tests, but aggregate scores can obscure domain-specific strengths and failures [Zheng et al., 2021, Azerbaiyev et al., 2023, Tsoukalas et al., 2024].

We introduce STOCHBENCH, a Lean 4 benchmark for graduate stochastic processes, a field central to statistics and machine learning. Concentrating on related problems in Markov chains, martingales, and continuous-time processes, we prioritize within-domain depth over cross-domain breadth. Some problems, however, require infrastructure unavailable in the Mathlib environment [The mathlib Community, 2026]. Direct targets use Mathlib or shared definitions, while abstracted targets take the required properties as hypotheses. Lean verifies that each proved conclusion follows from its stated hypotheses. We have taken utmost care to make sure the (all human written) definitions and hypotheses faithfully represent the source problem, but can benefit from further peer review.

Our contributions are:

  1. A domain-focused benchmark. We release 450 Lean 4 theorem targets paired with informal statements, alongside shared definitions and baseline proof attempts.

  2. A scope-aware baseline evaluation. We annotate formalization scope and evaluate a compiler-guided proof agent under a 15-minute per-problem cap, reporting results by topic and representation.

Preprint.

Figure

Figure 1: Construction of STOCHBENCH: mathematician-led curation and LLM-assisted formalization with shared definitions produce 450 Lean 4 targets across eight topics, comprising 114 direct and 336 abstracted statements.

References (27)