samuki-hf/ocaml-reference-solutions
OCaml reference solutions for LiveCodeBench OCaml reference solutions for the multilingual-LiveCodeBench OCaml problem set, together with the list of problems the harness cannot score. 436 problems in the universe 415 are scoreable, and each has a verified reference 21 are excluded as unscoreable (see the errata config) Configs references is one row per problem. errata lists the problems the harness cannot score, with the evidence for each. from datasets import… See the full description on the dataset page: https://huggingface.co/datasets/samuki-hf/ocaml-reference-solutions.
OCaml reference solutions for LiveCodeBench
OCaml reference solutions for the multilingual-LiveCodeBench OCaml problem set, together with the list of problems the harness cannot score.
- 436 problems in the universe
- 415 are scoreable, and each has a verified reference
- 21 are excluded as unscoreable (see the
errataconfig)
Configs
references is one row per problem. errata lists the problems the harness cannot score, with the evidence for each.
from datasets import load_dataset
refs = load_dataset("samuki-hf/ocaml-reference-solutions", "references", split="train")
errata = load_dataset("samuki-hf/ocaml-reference-solutions", "errata", split="train")What verification means
Every solution was compiled with ocamlopt and run against the real hidden tests.
The float-tolerance rows are correct solutions. Those problems accept an absolute or relative error of at most 1e-6, and no comparator in the LiveCodeBench lineage implements that rule: the original grades per line under Decimal equality, Multi-LCB adds bool aliasing and math.isclose(abs_tol=1e-5, rel_tol=0), and Agnostics compares whole outputs under rstrip().
Why problems are excluded
livecodebench entries are documented in LiveCodeBench's own ERRATA.md. The harness does not read that file, so these reach every consumer of the dataset. this-work entries were established here by grading a verified reference against the official tests.
Excluded problems still carry a solution, apart from arc183_d. The verification column records how far each was checked. For the two interactive problems the solution is included for completeness and can only be checked against a live judge.
Feeding stdin
Append a trailing newline to each test input if it lacks one, as the vendored Multi-LCB executor does. Otherwise OCaml Scanf formats ending in a newline raise End_of_file on the last line and a correct program fails every test.
Provenance
Solutions were produced by language models and then verified. The origin_model column records which model produced each one.
