Back to today's list

AoA: Theorem Proving Agent over Abstract Syntax Tree of Redesigned Language

Qiyuan Xu, Joshua Ong Jun Leang, Renxi Wang, Wenda Li, Haonan Li, Luke Ong, Conrad Watt

Published Jul 21, 2026Featured #7In the daily list Jul 22, 2026
Daily score65.2
Editorial review7.2
Relevance0.459
Freshness0.722

Why It Matters

What makes this one worth your time

This approach could significantly reduce the computational and financial costs associated with theorem proving, making it more scalable and accessible for program verification and formalized mathematics.

AoA leverages abstract syntax trees to enhance the efficiency and effectiveness of interactive theorem proving.

Summary

The paper introduces AoA, an agent that operates on the abstract syntax tree (AST) of a redesigned proof language, Minilang, to improve the efficiency of interactive theorem proving. By using JSON representations of the AST and a tree-edit model, AoA reduces API costs, token usage, and tool calls, while increasing the speed and problem-solving capability compared to existing agents.

Key contributions

  • Introduction of AoA, an agent that operates on the AST of Minilang.
  • Demonstrated reduction in API costs, token usage, and tool calls compared to existing agents.
  • Improved problem-solving performance on challenging verification benchmarks.

Notable insights

  • Using abstract syntax trees instead of serialized concrete syntax can drastically reduce token consumption and API costs.
  • A tree-edit model that integrates proof operations and states can streamline the theorem proving process.

Possible limitations

  • Not stated in the abstract

Abstract

arXiv:2607.16372v1 Announce Type: cross Abstract: Interactive theorem proving (ITP) underpins program verification and formalized mathematics, but its manual effort limits scalability. LLM-based proof agents promise to ease this effort, but their heavy token consumption and API cost remain a major obstacle. We trace this cost to a shared root: current agents operate on serialized concrete syntax, emitting proofs as source text and recovering proof states through separate, line-number-based queries, so every edit shifts later lines and forces repeated relocation of errors and states. This same dependence on concrete syntax also blocks adoption of Minilang, a recent proof language that reaches SOTA on LLM-based proving but is too new for LLMs' training corpora. We address both problems by lifting the agent off source text and onto the abstract syntax tree (AST): the model supplies proofs as JSON representations of Minilang's AST -- native to tool-calling LLMs -- and drives the prover through a tree-edit model that fuses proof operations and states into one proof tree, so each operation carries its own subgoal's state, readable directly off the tree. We realize this design in \emph{Agent over AST} (AoA). Against Amazon's Isabelle Agent on miniF2F and NTP4VC-Pearl common success sets, AoA cuts API cost by 2.3--4.7x (normalized input-cache accounting), uses 2.9--6.9x fewer tokens and 3.9--8.9x fewer tool calls, and finishes 1.4--2.0x faster -- while also solving far more problems on the harder verification benchmark.