# Theorem-Proving Agent over Abstract Syntax Tree

DevFeed: [Theorem-Proving Agent over Abstract Syntax Tree](<https://devfeed.tech/articles/theorem-proving-agent-over-abstract-syntax-tree-131673.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2607.16372>)

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

Published: 2026-11-13T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Artificial Intelligence](<https://devfeed.tech/sources/arxiv-artificial-intelligence.md>), [arXiv: Software Engineering](<https://devfeed.tech/sources/arxiv-software-engineering.md>)

Topics: [Isabelle/HOL proof assistant](<https://devfeed.tech/topics/isabelle-hol-proof-assistant.md>), [Formal verification](<https://devfeed.tech/topics/formal-verification.md>), [Parsing](<https://devfeed.tech/topics/parsing.md>), [Large Language Model](<https://devfeed.tech/topics/llm.md>), [Concrete syntax tree](<https://devfeed.tech/topics/cst.md>)

Tags: [abstract](<https://devfeed.tech/tags/abstract.md>), [agent](<https://devfeed.tech/tags/agent.md>), [ast](<https://devfeed.tech/tags/ast.md>), [cost](<https://devfeed.tech/tags/cost.md>), [cs-ai](<https://devfeed.tech/tags/cs-ai.md>), [cs-lg](<https://devfeed.tech/tags/cs-lg.md>), [cs-pl](<https://devfeed.tech/tags/cs-pl.md>), [cs-se](<https://devfeed.tech/tags/cs-se.md>), [faster](<https://devfeed.tech/tags/faster.md>), [fewer](<https://devfeed.tech/tags/fewer.md>), [isabelle](<https://devfeed.tech/tags/isabelle.md>), [json](<https://devfeed.tech/tags/json.md>), [llm](<https://devfeed.tech/tags/llm.md>), [proofs](<https://devfeed.tech/tags/proofs.md>), [syntax](<https://devfeed.tech/tags/syntax.md>), [verification](<https://devfeed.tech/tags/verification.md>)

## AI overview

Agent over AST (AoA) represents Minilang proofs as JSON abstract syntax trees and edits a unified proof tree in which each operation carries its subgoal state. This avoids emitting concrete source text and separately locating proof states by line number, which the abstract identifies as a source of repeated work and cost. Against Amazon's Isabelle Agent on the benchmarks' common success sets, AoA reportedly used 2.9-6.9x fewer tokens and 3.9-8.9x fewer tool calls, finished 1.4-2.0x faster, and reduced API cost 2.3-4.7x under normalized input-cache accounting. The abstract also reports substantially more solved problems on the harder verification benchmark; it does not provide the counts here.

## Source excerpt

arXiv:2607.16372v2 Announce Type: replace 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.