Mathematical proof, powered by AI. And no hallucinations! AWS researchers released three tools in the AutoCorrode verification suite that connect AI agents to the Isabelle proof assistant over the Model Context Protocol (MCP): I/Q, which lets an agent take temporary control of a live Isabelle session; I/R, which lets an agent develop proofs while the user keeps working; and Isabelle Assistant, a chat window powered by I/Q. Because Isabelle checks each proof step, the setup interleaves proof generation with machine proof checking, so agent-written formal proofs are verified rather than trusted. The tools are publicly available on GitHub. Every day brings new evidence of the awesome power of AI. There have been dramatic developments in mathematics: AI models are solving tough problems from Mathematical Olympiads and even some big open research problems. But AI agents are notorious for simply making stuff up, or “hallucinating”: don’t we have to check their solutions carefully? In fact, the computer can check the agent’s proofs for us, and better still, proof checking can be interleaved with proof generation, keeping it on the right track. To be checked, the proof must be written in some logical formalism : a precise language that expresses mathematical reasoning. Proof assistants are apps designed for writing and checking formal proofs. They include Lean https://www.amazon.science/blog/how-the-lean-language-brings-math-to-coding-and-coding-to-math , favored by many mathematicians; HOL Light, used at AWS to formally verify high-performance cryptographic code https://www.amazon.science/blog/formally-verified-aes-xts-the-first-aes-algorithm-to-join-s2n-bignum including for post-quantum cryptography https://www.amazon.science/blog/verifying-and-optimizing-post-quantum-cryptography-at-amazon ; and Isabelle, used at AWS to verify the Nitro Isolation Engine https://www.amazon.science/blog/isabelle-hol-the-proof-assistant-behind-the-nitro-isolation-engine . They were originally built to help human users write proofs, but now the “user” will be an AI agent. Most proof assistants are suitable for this task. In this post, we’ll focus on Isabelle. To generate formal proofs, we need a way for the AI agent and the proof assistant to talk to each other. Fortunately, we have the Model Context Protocol https://modelcontextprotocol.io/docs/getting-started/intro MCP , which is supported by all the leading AI agents. Conceptually, the MCP is a wire connecting an agent to a tool here, a proof assistant , which may need to be modified to accept the connection. Some proof assistants, like HOL Light, provide a simple command-line interface, sometimes called a REPL for read-eval-print loop : the user types commands, and HOL Light replies. Connecting an agent to a REPL is easy. But most proof assistants provide sophisticated user interfaces, such as the Lean extension for Microsoft VS Code. That’s great for human users, but an AI agent needs something simple and direct. So we are proud to announce the following tools, which are publicly available in the AutoCorrode verification suite https://github.com/awslabs/AutoCorrode : - I/Q : This enables an AI agent to communicate with a live Isabelle session running on your computers. It allows you to temporarily hand over control of the proof assistant to the AI to fill in some formal material or to assess the context and provide advice. - I/R : This enables an agent to develop proofs or other formal material while the user keeps working with the proof assistant. The agent still “talks” directly to the proof assistant to know if its proofs work, but it does not take control the way I/Q does. - Isabelle Assistant : Powered by I/Q, this provides an Isabelle user with a chat window to an AI agent, which can observe and modify the user’s session, developing or fixing proofs. It’s less powerful than the full I/Q and I/R package but runs in a convenient window, right out of the box. To get an idea of how effective AI is at solving mathematical problems, let’s look at some well-known examples, done automatically with the help of Isabelle Assistant. The square root of two is irrational The ancient Greeks were already aware that the square root of two could not be written as a fraction. Suppose that √2 = a / b is a fraction in lowest terms. Then 2 b