TreeThink: A Modular Tree Search Library for Mathematical Reasoning with LLMs

Burak S. Akbudak, Zeynel A. Uluşan, Can S. Erer, Gözde Gül Şahin
7/13/2026
cs.CL

Official code: GGLAB-KU/treethink (4 stars, MIT, last commit 2026-07-11).

Abstract

Tree search algorithms enable systematic exploration of the proof space in neural theorem proving. Existing LLM tree search libraries primarily target natural language reasoning and do not provide native integration with formal verifiers, while theorem proving systems often rely on task-specific search implementations. We introduce TreeThink, an open-source Python library for modular, fully asynchronous tree search in neural theorem proving. It integrates established tree search methods with vLLM-based inference pipelines and diverse node evaluation techniques, ranging from lightweight heuristics to neural evaluators. We support Lean~4, Rocq, and Isabelle/HOL alongside natural language. It connects directly to each language's Read-Eval-Print Loop (REPL) server for real-time verification and proof state extraction. We evaluate TreeThink on miniF2F and MATH500, demonstrating cross-language formal proof search, natural language reasoning support, and up to 6.3$\times$ wall-clock speedup from asynchronous execution. Source code is released under the MIT license at https://github.com/GGLAB-KU/treethink , and the library is accessible as a downloadable package at https://pypi.org/project/treethink/ .

View on arXivView PDF

Code Implementations(1)

GGLAB-KU/treethinkOfficial100%
MIT

TreeThink: Mathematical Reasoning of LLMs with Tree Search Methods

40Python, Rocq ProverMay 2, 20263 months agoMIT

Similar Papers

Cite this paper

@article{akbudak2026treethink,
  title  = {TreeThink: A Modular Tree Search Library for Mathematical Reasoning with LLMs},
  author = {Burak S. Akbudak and Zeynel A. Uluşan and Can S. Erer and Gözde Gül Şahin},
  year   = {2026},
  eprint = {2607.11258},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2607.11258v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2607.11258.svg)](https://codeofpaper.com/paper/2607.11258)

Discussion