Renaissance Labs

Index / Science and mathematics / Mathematics

0541Mathematics

MathConstructOptimize-Envs

amphora/MathConstructOptimize-Envs

Construct a mathematical object, such as a colouring, design or point configuration, that satisfies stated conditions or optimises an objective.

Open on Hugging FaceHow to run it

Good for

  • RL with verifiable rewards beyond final answers
  • research-level optimisation problems
  • checker-based grading without LLM judge

Reward

How it is scored
Programmatic check
Signal
Graded, 0 to 1

A deterministic checker accepts any valid object; construct gives 1 or 0, optimize gives 0 if invalid else 0.1 + 0.9 times progress from a baseline to best known.

How to run it

1. From the cardcopied from the publisher's own instructions

ds = load_dataset("amphora/MathConstructOptimize-Envs", "construct", split="train")
row = ds[0]
reward, details = grade(row, json.loads(row["reference_answer"]))   # -> 1.0, {"valid": True}

2. Get the filesthe whole repository, to a local folder

hf download amphora/MathConstructOptimize-Envs --repo-type dataset --local-dir MathConstructOptimize-Envs

3. Check it with Harborcommon pattern, not from this card

# the oracle agent runs the reference solution, so no model is called
harbor run --repo https://huggingface.co/datasets/amphora/MathConstructOptimize-Envs --agent oracle

If every task passes, the environment works on your machine. Then swap in your own agent and model. Some repositories keep the tasks in a subfolder; the card says where.

Framework documentation: Harbor. Needs: Python 3.10+ with numpy, scipy, sympy, networkx.

Evidence

Checkers were re-implemented and hardened, with upstream verifier bugs found and fixed.

As reported by the publisher. We have not reproduced it.