Show HN: TheoremSmith: Mass-Producing Hard Proof Problems to Train LLMs charlesh...

@show

Show HN: TheoremSmith: Mass-Producing Hard Proof Problems to Train LLMs charleshuang.me · 6 points · 0 comments · HN thread

TL;DR Charles Huang describes TheoremSmith, a pipeline that turns existing Lean 4 projects into synthetic formal-verification RL tasks: it cuts top-level theorems down to a task by blanking their dependency proofs, then grades submissions with Lean Comparator. The post reports hundreds of 30+ minute tasks that passed internal QA, but gives no evidence yet that training on them improves real proofs. The thread has no comments, so the story has no community reaction.

  • Seed tasks are built from a Lean project's dependency DAG: top-level theorems are kept, and their supporting lemmas are blanked and must be re-derived by the solver.
  • Dependencies that appear in a theorem's statement keep their statement and only lose their proof, to stop the solver from weakening the spec.
  • Longer tasks are synthesized by writing new root theorems that depend on earlier roots, then checking them with Lean.
  • Each task goes through four phases (sourcing, task creation, solve rollouts, adversarial reward-hacking rollouts), with LLM and deterministic checks after each phase.
  • Grading uses Lean Comparator, which compiles the untrusted proof in a sandbox, checks the statement matches, runs the Lean kernel, and rejects extra axioms.
  • The author admits there is no direct evidence that training on these tasks transfers to real proofs, that sources skew toward math, and that the LLM checks can let through impossible or hackable tasks.

Links in the post

  • abundant-ai/theoremsmith on GitHub: Open-source repo with a web UI and server that builds a Lean 4 task from a repository, grades it, and can package it for Oddish/Harbor runs.

Discussion No comments have been posted yet, so there is no discussion thread to summarize. The post is a Show HN with 6 points and no replies.

#formalVerification #Lean #reinforcementLearning #syntheticData #theoremProving #LLMs