← Latest papers
💻 computer science

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

The paper introduces AoA, a novel interactive theorem proving agent that operates directly on the Abstract Syntax Tree of a redesigned language (Minilang) rather than serialized source text, thereby significantly reducing API costs, token usage, and tool calls while improving solving speed and success rates on verification benchmarks.

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

Published 2026-07-21
📖 4 min read☕ Coffee break read

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

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you are trying to teach a brilliant but slightly clumsy robot how to solve complex math puzzles. This robot is a "Large Language Model" (LLM), a type of AI that is amazing at understanding human language but sometimes struggles with the rigid, precise rules of formal logic. The field of "Interactive Theorem Proving" is like a high-stakes game of chess between a human and a computer, where every move must be mathematically perfect. If you make a tiny mistake, the whole game collapses. For decades, humans have had to do this manually, which is slow, expensive, and exhausting. Recently, people started using AI robots to help, but there was a catch: the robots were incredibly expensive to run. They kept asking for the same information over and over, like a student who keeps asking the teacher to repeat the instructions because they lost the worksheet, burning through money and time with every question.

The big question researchers are asking is: Can we make these proof-solving robots smarter and cheaper without needing to retrain them from scratch? The answer lies in how we talk to them. Instead of making the robot read a long, messy paragraph of code and guess where the mistakes are, what if we gave it a clear, structured map? This paper introduces a new way to build these proof agents, called "Agent over AST" (AoA). Instead of forcing the robot to edit a text file line-by-line, the authors let the robot edit a "tree" of logic. Think of it like the difference between trying to fix a sentence in a novel by erasing and rewriting words on a page versus using a digital editor that shows you the story's structure as a family tree. With the tree, you can see exactly which branch needs fixing, and the computer tells you the result immediately, without you having to ask, "Wait, what's the context here?"

The researchers found that by switching from a text-based approach to this tree-based approach, they could slash the cost of running these proof agents. When they tested their new system, AoA, against a leading existing agent (Amazon's Isabelle Agent), the results were striking. AoA used 2.9 to 6.9 times fewer "tokens" (the units of data the AI processes) and made 3.9 to 8.9 times fewer tool calls. In terms of money, this meant the new agent cost 2.3 to 4.7 times less to run per problem. Even more impressively, it finished the tasks 1.4 to 2.0 times faster.

One of the most clever parts of this work is how it handles a brand-new proof language called "Minilang." This language was designed specifically to be easier for AI to understand, but because it is so new, the AI models hadn't been trained on it yet. Usually, this would be a dealbreaker; you'd think the AI would fail because it doesn't know the rules. However, the authors showed that by translating the rules of Minilang into a structured format (JSON) that the AI already understands well, they could get the robot to solve proofs in this new language without ever having seen a single example of it before. They proved that you don't need to feed the AI a massive library of new books to teach it a new game; you just need to explain the rules in a way it can naturally grasp.

In their experiments, AoA didn't just save money; it actually got better at solving problems. On a set of difficult math challenges, it solved 99.6% of them, matching the best results ever seen. On a set of tricky computer-verification problems, it solved 89.2%, setting a new record. The authors suggest that this approach—moving away from messy text editing and toward structured, tree-based interaction—is a powerful way to make AI proof assistants practical for real-world use. They admit that while this works great for Minilang, it's not yet proven for every possible language, but the results are strong enough to suggest that this is a promising direction for the future of automated math and software verification.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →