hf_mirrors/openai-math
Datasets
Dataset viewer
Files & versions
You are visiting the mirror address of https://huggingface.co/datasets/FineEnvs/openai-math. The repo is synchronized in real-time and is only for mirror acceleration access.

openai/math as Harbor environments

Experimental. Built on a research release that is itself new and not yet independently reviewed. Expect rough edges, and read any proof that scores 1 before relying on it.

We ported the math problems from OpenAI's openai/math release (commit adc7f12) into Harbor environments. The release formalizes 405 of its results as Lean statements. This dataset contains 369 environments, the ones whose official proof we verified end to end in the environment, covering 214 result families across 17 fields. The other 36 are listed under Validation with the reason each could not be validated.

How a task works

The agent gets a sandbox with Lean 4 and a prebuilt Mathlib, no internet, and one of OpenAI's theorems written in Lean with sorry where the proof should be.

What sorry means. In Lean, sorry is a placeholder for a missing proof: it lets the file compile as if the step were proven, but nothing has actually been shown, and Lean flags it. The statement is given exactly as OpenAI formalized it, and the agent's job is to replace every sorry with a real proof.

When the agent finishes, a separate, fresh sandbox checks its proof with Comparator, the Lean FRO's proof checker:

  • reward 1 if the theorem has exactly the original statement, the proof uses only Lean's standard axioms (propext, Quot.sound, Classical.choice, so no leftover sorry and no new axioms), and the Lean kernel accepts it;
  • reward 0 otherwise.

OpenAI's own proofs serve as the reference solutions: Harbor's oracle fetches them from GitHub at run time. They are not included here and the agent never sees them.

A strict reward

The grader only accepts a complete proof of the statement exactly as OpenAI formalized it. That makes it hard to game, but it is also a real limitation for problems like these:

  • a correct proof of an equivalent statement, written with different definitions or a different formulation, scores 0;
  • partial progress (useful lemmas, a proof of a special case, a correct strategy with a gap) scores 0;
  • nothing rewards a creative approach unless it ends in a complete proof of this exact statement.

For open research problems, a more general reward function that recognizes any valid solution to the underlying problem, including creative reformulations and partial progress, would be a better training signal. We use the strict check here because it is precise and cannot be fooled; treat it as one end of that design space.

What's included

  • tasks/ — one Harbor task per validated problem: instruction, Lean statement, sandbox image recipe, verifier and oracle
  • registry.json — Harbor registry entry (openai-math@1.0)
  • manifest.parquet — one row per task: field, family, theorem names, reference-proof size, oracle result
  • generator/ — the code that builds the sandbox image and regenerates the tasks from openai/math
  • LICENSE, NOTICE, LICENSE-openai-math — licensing and attribution

Run it with the Harbor CLI

You need Harbor 0.24+ with the Daytona backend (DAYTONA_API_KEY, DAYTONA_API_URL) and credentials for the agent you run.

pip install "harbor[daytona]>=0.24" daytona
hf download FineEnvs/openai-math --repo-type dataset --local-dir openai-math
cd openai-math

# Build the shared sandbox image once (Lean 4, Mathlib, Comparator; ~9 GB, about an hour).
(cd generator && python -m openai_math_harbor.snapshot)
SNAP=$(cd generator && python -m openai_math_harbor.snapshot --print-name)

# Run any agent Harbor supports (`harbor agent list`) on a few tasks:
harbor run -p tasks -e daytona --ek snapshot_template_name=$SNAP \
  -a <agent> -m <model> -i plane-coloring -i hilbert-crouzeix -n 2

# Check that the grader accepts OpenAI's own proof of a task:
harbor run -p tasks -e daytona --ek snapshot_template_name=$SNAP \
  -a oracle --allow-agent-host github.com -i plane-coloring

Each task asks for 4 CPUs, 8 GB of memory and 10 GB of disk, and gives the agent 4 hours. Task names are the folder names under tasks/.

Validation

We generated a task for every statement except one left out by design (DefocusingNLS, whose statement has a sorry inside a definition its theorems depend on), and ran Harbor's oracle on each: it submits OpenAI's own proof and has it graded by the same verifier an agent faces. Only tasks whose official proof was accepted are included.

Oracle resultTasksMeaning
accepted369OpenAI's proof is accepted: the environment is verified end to end
missing-package21OpenAI's proof uses a Lean library beyond Mathlib that the sandbox does not include
definition-mismatch2OpenAI's proof writes a definition with the same text but it compiles differently, so the exact-match check fails
memory10OpenAI's proof needs more than the sandbox's 8 GB of memory to build
not completed2grading did not complete in our run

Grading an accepted proof took 8 minutes at the median. Each task's result is in its task.toml (oracle_result) and in manifest.parquet.

36 statements not included (click to expand)
StatementWhy it could not be validated
arnold-counterexampleOpenAI's proof needs more than the sandbox's 8 GB of memory to build
catalanOpenAI's proof uses a Lean library beyond Mathlib that the sandbox does not include
coarse-assemblyOpenAI's proof needs more than the sandbox's 8 GB of memory to build
continuum-coulomb-hardnessOpenAI's proof needs more than the sandbox's 8 GB of memory to build
cycle-clique-ramseyOpenAI's proof needs more than the sandbox's 8 GB of memory to build
defocusing-nlsleft out by design: OAI.DefocusingNLS.sobolevProduct: open definition the theorem statements depend on
dirichlet-seven-eighthsOpenAI's proof uses a Lean library beyond Mathlib that the sandbox does not include
duke-prime-degreeOpenAI's proof uses a Lean library beyond Mathlib that the sandbox does not include
einstein-fourOpenAI's proof uses a Lean library beyond Mathlib that the sandbox does not include
erdos-reciprocalgrading did not complete in our run
hecke-seven-eighthsOpenAI's proof uses a Lean library beyond Mathlib that the sandbox does not include
jacobsthalOpenAI's proof uses a Lean library beyond Mathlib that the sandbox does not include
jacobsthal-improvedOpenAI's proof uses a Lean library beyond Mathlib that the sandbox does not include
joint-dickmanOpenAI's proof uses a Lean library beyond Mathlib that the sandbox does not include
koebe-circle-domainsOpenAI's proof uses a Lean library beyond Mathlib that the sandbox does not include
matrix-multiplicationOpenAI's proof uses a Lean library beyond Mathlib that the sandbox does not include
mub-sixgrading did not complete in our run
nuclear-ultrapowerOpenAI's proof needs more than the sandbox's 8 GB of memory to build
occupied-overlapOpenAI's proof writes a definition with the same text but it compiles differently, so the exact-match check fails
ordinary-two-point-correlationsOpenAI's proof uses a Lean library beyond Mathlib that the sandbox does not include
ostmann-completeOpenAI's proof uses a Lean library beyond Mathlib that the sandbox does not include
ostmann-primesOpenAI's proof uses a Lean library beyond Mathlib that the sandbox does not include
patterson-first-momentOpenAI's proof uses a Lean library beyond Mathlib that the sandbox does not include
planar-packingOpenAI's proof needs more than the sandbox's 8 GB of memory to build
polycyclic-recognitionOpenAI's proof uses a Lean library beyond Mathlib that the sandbox does not include
quasi-riemann-hypothesisOpenAI's proof uses a Lean library beyond Mathlib that the sandbox does not include
riesz-quantitativeOpenAI's proof uses a Lean library beyond Mathlib that the sandbox does not include
siegel-zerosOpenAI's proof uses a Lean library beyond Mathlib that the sandbox does not include
snaky-certificateOpenAI's proof needs more than the sandbox's 8 GB of memory to build
snaky-twenty-oneOpenAI's proof needs more than the sandbox's 8 GB of memory to build
spin-angleOpenAI's proof writes a definition with the same text but it compiles differently, so the exact-match check fails
surface-immersionOpenAI's proof uses a Lean library beyond Mathlib that the sandbox does not include
taming-compatibilityOpenAI's proof needs more than the sandbox's 8 GB of memory to build
totient-asymptoticOpenAI's proof uses a Lean library beyond Mathlib that the sandbox does not include
totient-companion-zeroOpenAI's proof uses a Lean library beyond Mathlib that the sandbox does not include
universal-tensor-squaresOpenAI's proof needs more than the sandbox's 8 GB of memory to build

The verifier was also tested against submissions that try to cheat (sorry in several disguises, fake axioms, native_decide, weakened statements, redefined definitions, planted reward files, code that runs during grading, a build that fills the verifier's disk). All scored 0. A no-op agent scores 0.

Notes

  • Configs. In eight of openai/math's Comparator configs, definitions written out in the statement were listed as "holes" that Comparator does not check, so a solution could redefine them. Here they must match exactly; affected tasks list them under fixed_definitions in task.toml.
  • Contamination. The statements and proofs have been public since 6 October 2026.
  • Difficulty. These are open research problems; expect reward 0 on almost every task.

Technical details (grading design, threat model, image recipe) are in generator/README.md.

License

  • The Lean statements are copied unchanged from openai/math (© OpenAI), licensed under the Apache License 2.0; see LICENSE-openai-math and NOTICE. OpenAI's proofs are not redistributed.
  • The packaging, verifier and generator are Apache-2.0 (LICENSE).
  • The sandbox image is built from Lean 4 and Mathlib (Apache-2.0), Comparator and lean4export (Apache-2.0), and landrun (MIT).
  • If you use the results, cite the openai/math manuscripts as that repository asks.