Reasoning Core ◉
Procedural reasoning data for language-model pre-training, post-training, evaluation, and RL.
Reasoning Core generates verifiable textual tasks across first-order logic, formal mathematics with Lean and TPTP, planning, algorithms, syntax, and more. Use it as a Python library, generate datasets at scale, or plug it into modern reinforcement-learning environments.
More than 10B tokens of pre-generated data are available in the 🤗 Reasoning Core dataset collection.
Tasks target compact, canonical answers and expose task-native scorers—clean targets for supervised fine-tuning (SFT), with deterministic rewards for RL and evaluation. The public training and influence API provides reproducible paired baseline/treatment experiments. Follow the task influence guide to measure a new or changed task, and compare it with the reference results.
Quickstart
uv pip install "reasoning-core[gen]" # generate and score
uv pip install reasoning-core # score only, e.g. as an RL reward over the procedural pile
from reasoning_core import get_task, score_answer
task = get_task("arithmetics")
example = task.generate_example()
print(example.prompt)
assert score_answer(example.answer, example) == 1
Everyday workflows
Python 3.10+. From a checkout, use python -m pip install -e '.[gen]' or
bash scripts/install_authoring.sh for lightweight task authoring.
| I want to… | Start here |
|---|---|
| Find a task by capability | python -m reasoning_core catalog 'graph' --all --json |
| Generate examples | python -m reasoning_core sample arithmetics --count 3 --output /tmp/rc-samples.jsonl |
| Implement or validate a task | Authoring guide |
| Evaluate a model or score predictions | Evaluation recipes |
| Measure task influence | Runnable paired smoke |
| Propose and implement tasks with agents | Task-search guide |
Repository layout explains package boundaries and compatibility. Workflow recipes cover prerequisites, commands, output files, and local checks. Catalogue queries read source metadata without importing tasks.
Representative example
Reasoning Core includes compilation-checked formal reasoning tasks such as lean_candidate_compilation:
Prompt
Does this Lean 4 tactic body close the theorem?
The answer is True or False.
THEOREM:
theorem ex (p2 p4 : Prop) : p2 → (p2 ∨ p4) := by
?
CANDIDATE:
linarith
Answer: False
Browse all 65 task examples.
Task catalogue
GALLERY (names link to gallery examples)
arithmetics · math_word_problem · equation_system · combinatorics_formula · function_manipulation · lean_missing_line · lean_candidate_compilation · planar_geometry_relations · metamath_entailment · metamath_core_select · lambda_reduction · rewrite_system · unification_entailment · most_probable_evidence · most_probable_outcome · multistep_nli · defeasible_nli · multistep_evidence_retrieval · multistep_abduction · logic_qa · logic_derivation · planning · set_missing_element · set_expression · sequential_induction · qualitative_reasoning · grid_navigation · reference_tracking · belief_tracking · coreference · constraint_satisfaction · graph_pathfinding · graph_successors · regex_following · regex_reasoning · analogical_case_matching · parsing_derivation · syntax_error_detection · constrained_continuation · table_qa · table_equivalence · table_statistics · string_transduction · game_best_move · game_forced_win · qualitative_causal_reasoning · code_analysis · code_runnability · code_execution · program_synthesis · backtracking_search · boolean_propagation_search · controlled_code_execution · dynamic_programming · fixpoint_iteration · matrix_induction · pattern_induction · schema_bound_query · conditional_response_contract · protected_span_transformation · rule_switching · shift_reduce_parsing · spatial_folding · typed_relation_extraction · variable_elimination
Task authoring guidelines
A task authoring guide describes the interface and guidelines.
TASK_AUTHORING_GUIDE
TASK_MUTATION_GUIDE
TRAINING_AND_INFLUENCE
TASK_INFLUENCE
Ecosystem and integrations
- Prime Intellect — install Reasoning Core from the Environments Hub for evaluation and RL workflows.
- OpenReward — run Reasoning Core as an OpenReward-compatible environment.
- OpenEnv — explore the interactive Reasoning Core OpenEnv on Hugging Face Spaces.
- reasoning-gym — mix Reasoning Core and reasoning-gym tasks through either library's interface.
- SynLogic — generate SynLogic games through the same task API, backed by SynLogic's native verifiers.
See the integration guide for runnable examples.
Generate datasets at scale
Go from a single example to large pre-training, post-training, and evaluation corpora with balanced difficulty, token budgets, and verifiable answers. The generation pipeline supports parallel workers, resumable jobs, JSONL shards, and postprocessing for Hugging Face Datasets. Start with the sampling and collection recipe.
Citation and paper
@article{sileo2026reasoning,
title={Reasoning Core: Designing Broad Procedural Data for Completion-Supervised Reasoning Training},
author={Sileo, Damien and Lacombe, Valentin and Kachler, Dimitri},
journal={arXiv preprint arXiv:2608.05148},
year={2026},
url={https://arxiv.org/abs/2608.05148}
}
https://arxiv.org/abs/2608.05148
Contact: damien.sileo@inria.fr
Metadata
Release files for reasoning-core 0.5.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| reasoning_core-0.5.0.tar.gz | 10.5 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| reasoning_core-0.5.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 20.5 MB
Release files / reasoning_core-0.5.0.tar.gz
| Download URL | reasoning_core-0.5.0.tar.gz |
|---|---|
| Size | 10.5 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
83543a30e231f81f14129f5083ce93597c0af1bea47efe5e4e6978d5b09c82bf
|
|
BLAKE2b-256 checksum How to use checksums |
9feefa49a48faea4457d0a93497980f392ba28259924a5fccfb5a2053e42b79e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.9
|
Release files / reasoning_core-0.5.0-py3-none-any.whl
| Download URL | reasoning_core-0.5.0-py3-none-any.whl |
|---|---|
| Size | 10.0 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
30d2fde3bf08de06108d33696a54a3d841c48ff8b483e275e6204b970f8d627b
|
|
BLAKE2b-256 checksum How to use checksums |
70116675992a6784200be36fe25f43232c44c64bc920fa28413bb9228e3ca2b9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.9
|