Graffiti3Loop: Generating and Resolving Formal Machine-Generated Graph Conjectures in a Loop

William Hu, Michael R Douglas, Randy Davila, Philip Vonderlind, Simon FriederAI4Math @ ICML 2026

TL;DR

GRAFFITI3LOOP is the first autonomous pipeline that generates new graph-theoretic conjectures and attempts to resolve them using the Lean 4 formal proof assistant. By introducing a benchmark of 330 machine-generated conjectures, the researchers demonstrate that while current AI models are surprisingly good at "guessing" mathematical truth, they require iterative feedback loops to navigate the complex libraries of formal mathematics.

What Problem Does This Paper Address?

Most AI-for-mathematics research focuses on "static" benchmarks—think of these as digital versions of the Putnam competition or textbook exercises. While valuable, these benchmarks don't reflect how mathematical discovery actually happens. In the real world, mathematicians don't just solve problems; they find them. They look at data, spot patterns (conjectures), and then iterate between trying to prove them and searching for counterexamples.

Furthermore, evaluating AI "proofs" is notoriously difficult. A model might generate code that compiles but actually proves a slightly different, easier statement, or it might use "shortcuts" that bypass the actual logic. This paper addresses the need for a discovery-oriented workflow and a rigorous way to verify that an AI has actually solved the specific challenge it was given.

Methods

The authors developed GRAFFITI3LOOP, a system that connects three distinct domains:

  1. Automated Conjecturing: Using GRAFFITI3, the system analyzes tables of graph "invariants" (numerical properties like the number of edges or the maximum degree). It uses heuristics—named after dogs like "Dalmatian" and "Hazel"—to filter out boring or redundant statements, leaving only potentially "interesting" inequalities.
  2. Formal Translation: These informal conjectures are automatically translated into Lean 4, a high-level programming language and theorem prover. This makes the mathematical claims "executable."
  3. Rigorous Verification: To prevent the AI from "cheating," the authors used the Lean-FRO Comparator. This tool ensures the model’s proof actually targets the original conjecture and doesn't rely on impermissible axioms or "sorry" (a Lean keyword used to skip parts of a proof).

Datasets

The paper introduces GRAFFITI3BENCH-330, a collection of 330 machine-generated conjectures in graph theory.

  • How it differs: Unlike existing datasets (like PutnamBench), these problems are machine-originated. They aren't in the training data of current LLMs, making them a "clean" test of mathematical reasoning.
  • Baseline Models: The authors tested three open-weight Lean provers: Goedel-Prover-V2-32B, DeepSeek-Prover-V2-7B, and Kimina-Prover-72B.

Key Insights and Ideas

  • The "Knowing vs. Naming" Gap: In a "closed-book" test, the Claude-4-8 model correctly guessed whether a statement was true or false 74% of the time, but could only produce a valid formal proof for 5% of them. The bottleneck isn't just mathematical logic; it's the difficulty of remembering the exact names of thousands of lemmas in the Lean library (mathlib).
  • The Power of the Loop: When the AI was allowed to use tools (a compiler, a search engine, and a feedback loop), it successfully resolved 42 conjectures. This highlights that "agentic" workflows—where the AI can try, fail, and fix—are far superior to single-shot generation.
  • Genuine Discovery: The system didn't just produce trivialities. It rediscovered known bounds for the "annihilation number" and "Havel-Hakimi residue" (classic graph theory concepts) and even generated instances of the "alpha-Z conjecture," an active area of research.
  • Failure Modes: Most AI failures were due to "version drift." Lean and its libraries evolve so quickly that models trained on older versions often try to use "ghost" functions that no longer exist or have moved.

Key Results

  • Zero-Tool Baseline: All three open-weight models failed to solve a single conjecture (0% success rate) in a zero-shot setting. This underscores how brittle current LLMs are when faced with formal verification without feedback.
  • Agentic Triage: A human-guided AI agent (using Claude Code) resolved 42 items: 17 formal proofs and 25 explicit disproofs (counterexamples).
  • Status of the Batch: Out of the 330 conjectures, 85 were found to be false via computational search, 17 were proven true, and 203 remain "likely true" but unproven, representing a new set of challenges for the community.

Limitations and Future Work

  • Lean Library Coverage: Not all graph theory concepts are currently defined in Lean’s mathlib. The authors had to write their own wrappers for several invariants, which can create friction for the AI.
  • Version Sensitivity: The rapid pace of Lean development means that benchmarks can become "outdated" quickly as the underlying API changes.
  • Future Directions: The authors suggest moving beyond just proving/disproving to "hypothesis repair"—where the AI identifies why a conjecture is false and suggests a corrected version (e.g., "This is true if the graph is also bipartite").

This work signals a shift in AI-for-math: moving away from LLMs as mere "calculators" and toward LLMs as "research assistants" capable of participating in the messy, iterative process of scientific discovery.

Summary updated

BibTeX
@inproceedings{hu2026graffiti,
  author = {William Hu and Michael R Douglas and Randy Davila and Philip Vonderlind and Simon Frieder},
  title = {{Graffiti3Loop: Generating and Resolving Formal Machine-Generated Graph Conjectures in a Loop}},
  booktitle = {AI4Math @ ICML},
  year = {2026},
  url = {https://openreview.net/forum?id=obF2i1dK5w},
}
Figure