Skip to content

Agda-native AI reasoning

agda-native-air builds tools that let AI agents prove theorems in the Agda proof assistant, and measures what the agents do with them. Its server, agda-mcp, gives any agent Agda's own answers over the Model Context Protocol: does this file type-check, what does this hole need, where is this name defined. Its benchmark poses proof obligations with gold solutions, mined from Agda's standard library and from agda-algebras or posed for the purpose, and Agda itself decides whether each attempt type-checks and still proves the statement it was given.

Watch a real session

What the measurements say

  • With the server, frontier models solve most of the benchmark, or all of it: Opus 5 solves 55 of the 55 mined obligations, and Sonnet 5 solves 44.
  • Without the server, a shell does as well: Sonnet 5 solves 47, running agda itself. Given both, it took every final verdict from the server's check_file (55 of 55) and called its knowledge tools 23 times, against 85 with no shell.
  • The mined rows cannot tell the two apart. On the 21 rows that restate a library lemma, the library's source was readable, and 12 of the shell's 14 solves there came with the original proof in view; on the other 34 rows, every configuration solves nearly all.
  • Nor can the rows built to be hard, so far. On 14 statements posed with no proof on disk, Opus 5's final file type-checks with its statement intact on 14 with a shell, 14 with the server, and 14 with both, as it did when each fixture's header sketched the proof. On 12 statements whose proofs string two to four library lemmas together, every final file of Opus 5 and of Sonnet 5 type-checks in every configuration.
  • A fixture's header used to name the answer. Until 2026-09-29 each haystack fixture's header named the one lemma its proof needs. With that line in view, Sonnet 5 solved 11 of those 12 rows asking Agda nothing before its final check; without it, 3, and on the rest it asked first, mostly through the server's search. Apart from the one run said to have that line in view, every figure above is from runs whose headers carry no hints.

So a model wants the server's verdict, and beside a shell it wants little else. Whether the tools help a model prove what it could not prove without them is still open: that takes statements harder for the model than these, and those are the next instruments.

Reading the results gives every number with the run that produced it; its § 4.5 says why the hard tier's solved column reads lower than the counts above, its § 4.7 what the composition tier's arms did with the lemmas they found, and its § 4.6 what the fixture headers' hints were worth. ADR 0002 records the server's design, and ADR 0001 a proof search built on it with no model in the loop. The source, the benchmark, and the run archive are on GitHub; cite them by their GitHub URL, not by this site's address, since the site is the front door and not the archive.