Formal Verification and Verified AI for Mathematical Reasoning at Scale

axiom_math · Research & Academia · 2025 · source Agentic: yes · promotional bias: med · source-backed · extracted with prompt 0.5.6 (schema v2)

Generated from extraction.json — do not edit by hand. Every claim cites verbatim source evidence; stated means the quote directly asserts the claim, implied means it supports it indirectly.

Problem

Domain: formal mathematical reasoning and verified code generation

Axiom Math is building a verified reasoning system for mathematics and software-like proof tasks, where LLM-generated reasoning must be grounded by Lean proof checking rather than accepted as informal natural language output.

Constraints:

Architecture

Axiom Prover is an ensemble of post-trained models built on foundation models with coding and natural-language capability, then adapted with Lean proof data and reinforcement learning for formal mathematics. The system decomposes proof goals into subgoals, learns to backtrack, uses Lean verification as a correctness signal, and is paired with Axiom Lean Engine tools and an API for validation, manipulation, repair, and integration into external coding or proof workflows.

Diagram confidence: reconstructed (reconstructed from prose).

flowchart LR
  problem-specification[Problem specification]
  post-trained-proof-models[Post-trained proof models]
  recursive-proof-planner[Recursive proof planner]
  lean-proof-verifier[Lean proof verifier]
  axiom-lean-engine-tools[Axiom Lean Engine tools]
  verified-generation-api[Verified generation API]
  problem-specification --> post-trained-proof-models
  post-trained-proof-models --> recursive-proof-planner
  post-trained-proof-models --> lean-proof-verifier
  recursive-proof-planner --> lean-proof-verifier
  recursive-proof-planner --> axiom-lean-engine-tools
  lean-proof-verifier --> axiom-lean-engine-tools
  lean-proof-verifier --> verified-generation-api
  axiom-lean-engine-tools --> verified-generation-api
  verified-generation-api --> problem-specification
  verified-generation-api --> axiom-lean-engine-tools
Drag to pan · scroll or use +/− to zoom · reconstructed from the source's described component topology

Components

Component Role Interacts with
Problem specification Represents the informal math, coding, or verification problem that must be translated into formal proof obligations. Post-trained proof models
Post-trained proof models Foundation models adapted with Lean proof data, continued training, fine-tuning, and reinforcement learning for formal mathematics. Recursive proof planner, Lean proof verifier
Recursive proof planner Breaks proof goals into smaller subgoals and learns when to backtrack during inference. Lean proof verifier, Axiom Lean Engine tools
Lean proof verifier Checks whether generated Lean programs and proofs are logically valid and free of invalid assumptions. Axiom Lean Engine tools, Verified generation API
Axiom Lean Engine tools Provides proof validation, proof manipulation, repair attempts, and meta-programming utilities for large-scale Lean operations. Lean proof verifier, Verified generation API
Verified generation API Exposes verification or verified-generation capability to external LLM and developer workflows. Problem specification, Axiom Lean Engine tools

Data flow

A problem enters as an informal math, code, or verification task. The system uses foundation-model reasoning adapted on Lean proofs to propose a formal path, recursively decomposes the proof goal into subgoals, invokes Lean and AXL-style verification/manipulation tools to validate or repair proof attempts, and either returns formally verified proof/code or reports that the task remains too hard. Verified outputs and proof-validation scores can then feed post-training or downstream workflows.

3 supporting quotes
“you know, we have a system of models. These models are post trained and using RL or FFT.”transcript, stated
“we found scaling inference to have almost no law recursively decomposing you know, a proof goal into many sub goals and and learning to backtrack as well.”transcript, stated
“Axiom will give you a computer program that you know is formally verified. Or it will say this is still too hard for us.”transcript, stated

Why this architecture

The architecture uses formal verification because Axiom argues that Lean gives a grounding and reward signal that informal proofs cannot provide, making verified generation a performance strategy rather than only a compliance tool. The API/tooling layer exists because setting up and operating Lean verification is specialized and non-trivial, especially at scale.

3 supporting quotes
“we're not thinking about it just about the painfulness, the challenges it pose. We are thinking about the verified generation performance gain.”transcript, stated
“we heavily rely on kind of data called lean data and we kind of talked about lean as all the all the data that we have that's lean proofs”transcript, stated
“the infrastructure is is maybe non-trivial, um, especially at scale. So, you want to talk a little bit?”transcript, stated

Models used: Axiom Prover · open-source foundation models · Lean · Axiom Lean Engine

Scale

Alternatives considered (roads not taken)

purely informal math reasoning with natural-language proofs

Rejected because: Axiom argues informal reasoning lacks the executable verification and reward signal needed for verified generation and math AGI.

“We do not believe that an informal math system is going to be the math AGI solution.”transcript, stated

verification as only a compliance or hallucination-reduction tax

Rejected because: The system is framed around performance gain, collaboration, and compounding intelligence rather than only reducing mistakes.

“Verification to me is not about lossiness. Verification to me is about scaling brilliance, compounding brilliance.”transcript, stated

letting every frontier lab build a dedicated formal verification team

Rejected because: Axiom positions verification as a specialized API or partner capability that other labs can call rather than staffing rare Lean meta-programming expertise themselves.

“And you can partner with Axiom just like how for example, Frontier Labs partner with startups that work on search such as Exa and parallel.”transcript, stated

LLM-based repair as the only way to fix broken Lean

Rejected because: AXL includes dedicated repair tools intended to make broken-Lean-to-good-Lean repair cheaper and more straightforward.

“there are like currently, you know, other repair methods by LM. So, hopefully this what we provide can be just a lot cheaper”transcript, stated

Patterns

fine-tuning-adaptation (model-adaptation)

Axiom adapts foundation models with continued training, fine-tuning, and reinforcement learning on Lean proof data for formal mathematics.

“you know, we have a system of models. These models are post trained and using RL or FFT.”transcript, stated
“the base model may be similar to what everyone else is using as well. Right. If they're [clears throat] not kind of pre-training their model.”transcript, stated

eval-driven-development (evaluation)

Lean proof checking and AXL verification tools act as executable evaluation and reward signals for proof correctness.

“for example, verify proof can be a a reward for just basically a proof is completely correct and validated.”transcript, stated
“No, as in like you pass like lean programs in these formal tools, right? Like and you will have some sort of score.”transcript, stated

tool-use-orchestration (tooling)

The system wraps Lean verification in AXL tools and an API so models and developers can validate, manipulate, and repair formal proofs.

“we just released Axel, AXL E, uh, stands for Axiom Lean engine. And, uh, it's really a set of kind of proof validation and manipulation tools”transcript, stated
“Axiom will give you a computer program that you know is formally verified. Or it will say this is still too hard for us.”transcript, stated

human-in-the-loop-gate (oversight)

Auto-formalization still needs human review because formalizing an unsolved statement lacks an automatic grounding signal.

“it's hard to ground the auto formalization of a statement. You can obviously ground the auto formalization of a proof. But because you can then just run it. But you need human to eyeball it.”transcript, stated

rag-retrieval (knowledge-management)

The case highlights retrieval and provenance as production problems for mathematical discovery, where equivalent or indirectly solved results are hard to find.

“search and retrieval is a is a is a hard problem. Like you don't know if that argument or an equivalent version of that.”transcript, stated

Tradeoffs

Use verified generation instead of purely informal reasoning.

Chose Lean-grounded formal proofs and verification over natural-language proof claims from informal LLMs.

Rationale: Formal proof objects can be checked and used as reward signals, while informal proofs create mixed objectives and weaker RL feedback.

“if you want proof to be informal mass it's it's very annoying because then that's like just mix objective function.”transcript, stated
“proof as lean and you have, you know, code you can choose rust which is a strongly typed language”transcript, stated

Expose verification as a specialized API and partner layer.

Chose Axiom API and AXL tools over every customer or frontier lab building an in-house formal verification team.

Rationale: Lean meta-programming talent is rare, infrastructure is non-trivial, and verification can be composed into existing LLM workflows.

“because it's easier than setting up you know, your own Lean um tool chain.”transcript, stated
“meta-programming talents are are extremely, I think, like, you know, hard to find and we're so grateful to have like a really cracked team working on that.”transcript, stated

Build from open-source or off-the-shelf base models with domain post-training.

Chose post-training and RL over Lean data over training a frontier foundation model from scratch.

Rationale: Axiom can start from models with language and coding ability, then specialize them for formal math where Lean supplies correctness signals.

“there's obviously inclination for open source, you know, base models”transcript, stated
“the base model may be similar to what everyone else is using as well. Right. If they're [clears throat] not kind of pre-training their model.”transcript, stated

Bridge informal and formal reasoning rather than choosing one extreme.

Chose a hybrid high-level/low-level formal reasoning stack over completely informal or completely formal-only approaches.

Rationale: The source argues that code-like formal systems can transfer reasoning while keeping verification at the low-level proof boundary.

“What we are doing is it's not informal versus formal. And we're not taking the sort of like completely formal of approve approach.”transcript, stated
“It is bridging between high-level and low-level. It is a direct it's sort of like a direct improvement through reasoning”transcript, stated

Gotchas (what bit them)

Formal math performance shifts by domain coverage.

Root cause: The prover depends on existing Lean definitions and MathLib infrastructure, so domains with weaker formalized foundations are harder.

Resolution: Treat domain formalization coverage as a prerequisite and expect better generalization where definitions already exist.

“our system likely will not do very well on those on those domains because it doesn't even have definitions to build off on top of.”transcript, stated
“For the places where the um definitions are are in, we actually are doing quite okay in terms of distribution, diversity.”transcript, stated

Auto-formalization has weak grounding before a problem is solved.

Root cause: Unlike proof checking, translating an informal statement into a formal spec often lacks executable input-output feedback.

Resolution: Use tests or human review where available, and separate formalizing proofs from formalizing unsolved statements.

“I don't have any signal. I don't have any grounding. The test cases input output pair is going to ground my formal spec.”transcript, stated
“Lean is actually quite annoying because it's like a lot of the times it's proof. So, you don't actually have the numerical answers to ground it.”transcript, stated

Proof obligations can dwarf the original program.

Root cause: Formal verification may require many proof lines for each line of executable code, and scaling laws for proof complexity are uncertain.

Resolution: Decompose proofs, use tools and repair utilities, and avoid assuming proof overhead stays small as programs grow.

“Currently actually, you know, for each line of code written there could be like 20 lines of proof.”transcript, stated
“I don't have a good answer to the scaling law of that.”transcript, stated

Mathematical retrieval can misclassify solved problems as open.

Root cause: Prior solutions may exist under equivalent formulations, indirect extensions, old papers, or distributed sources such as forums.

Resolution: Invest in knowledge bases and retrieval that reason over equivalence and provenance, not just direct title or keyword matches.

“there are so many Erdős problems that actually have been solved, right? And I think that's that's kind of indeed I think like, you know, search and retrieval is a is a is a hard problem.”transcript, stated

Hardware-style verification gives no partial credit.

Root cause: Some target domains require perfect proof rather than probabilistic confidence or mostly correct behavior.

Resolution: Use formal verification where the domain demands all-or-nothing correctness and keep informal approaches for lower-stakes software.

“for hardware for example that's quite revolutionary. I mean that is there is no as we know there's no partial credit for mostly verified GPU.”transcript, stated

Evaluation

Axiom evaluates through formal proof checking, proof/code benchmarks, proof-tree complexity, and comparisons against informal LLM and formal prover baselines.

Metrics: 99% on 189 Code Verifier problems, solving 187 · Axiom Prover proof trees scaled from 40 nodes to 4,000 nodes · comparison against GPT pass-one and iterative results, and against other formal math systems around 11-12% · summary-reported Putnam score of 120/120 versus 110 best human and 103 best informal LLM

4 supporting quotes
“Code Verifier. It's a uh code verification benchmark um that's supposed to be lean friendly.”transcript, stated
“whatever version of GPT they evaluated does like pass one like 3.6% iterative of something like 22%.”transcript, stated
“we saw a 99% out of the 189 problems we solved 187. We missed only two code with proof.”transcript, stated
“Putnam Exam 2025: Perfect score of 120/120 points, compared to the best human student's 110 and DeepSeek's 103”summary, stated

Outcomes

The company is about 30 people, raised $200 million at a $1.6 billion valuation, released 14 Lean tooling capabilities, and targets verification markets with hundreds of humans and thousands of software licenses on single verification problems.

4 supporting quotes
“we saw a 99% out of the 189 problems we solved 187. We missed only two code with proof.”transcript, stated
“A lot of the people from the Lean community has been using Axel, you know, it's just been a week, to do all sorts of different interesting things.”transcript, stated
“there are there are hundreds of humans and thousands of licenses being dedicated to solve one local grid problem verification.”transcript, stated
“You just raised $200 million, which as one of your colleagues said, this is like basically the entire like US math budget for math research each year.”transcript, stated