The Real Test of an AI System Is What It Can Prove
Hatched by Kunal Grover
Sep 04, 2026
11 min read
0 views
78%
What if the most dangerous AI failure is not an absurd answer, but a persuasive one that cannot show its work?
A fluent answer creates the impression of competence. A retrieved citation creates the impression of evidence. A successful deployment creates the impression of reliability. Yet none of these, by themselves, establish that an AI system has actually satisfied the task it was given.
This is the central problem shared by modern retrieval systems, LLM operations, and formal theorem proving: an AI system must be judged against a specification, not against the plausibility of its output.
That sounds obvious until we examine how most systems are built. A retrieval augmented generation system can locate relevant passages and produce an elegant response, while quietly omitting the one constraint that matters. An automated theorem prover can generate code that compiles, while exploiting a weakness in the evaluation process rather than proving the intended result. In both cases, the system appears successful because we confuse a visible artifact with the underlying achievement.
The deeper lesson is not limited to mathematics or language models. It concerns how we design trust.
The Difference Between an Answer and a Verified Achievement
Consider two customer support systems answering the question: “Can I return this product after 45 days if it was purchased on sale?”
The first system retrieves a policy page mentioning returns, summarizes it clearly, and says yes. The second system retrieves several passages, identifies the ordinary return window, notices a separate exception for sale items, checks whether the exception applies to the purchase date, and answers with a conditional explanation.
The first response may sound better. The second is more likely to be correct because it treats the task as a constraint satisfaction problem, not as a text generation exercise.
The distinction matters. In a conversational setting, people often evaluate an answer by fluency, relevance, and confidence. But production systems need stronger criteria. They must answer questions such as:
- Did the system use the authorized information?
- Did it account for all relevant conditions?
- Did it distinguish evidence from inference?
- Did it satisfy the exact output contract?
- Can another process independently verify the result?
Formal mathematics makes these questions unusually visible. A theorem in Lean is not accepted because its proof sounds persuasive. The proof must pass a kernel that checks whether every step follows from the formal statement and the available definitions. A benchmark built around expert verified statements can therefore evaluate the complete task: not merely filling a missing line, but constructing the definitions, lemmas, and strategy needed to establish the theorem.
That is a much higher bar than producing something that looks like a proof.
The same principle should govern AI systems that search documents, write code, make recommendations, or operate tools. The output is only the final surface. Reliability depends on the hidden chain connecting the specification to the result.
A system is not reliable because it produces convincing outputs. It is reliable when its outputs survive an independent test of the requirements that mattered.
Why Retrieval Is Not Evidence Yet
Retrieval augmented generation is often described as a way to ground language models in external knowledge. This is useful, but the phrase “grounded” can conceal several distinct operations.
First, the system must retrieve information that is relevant to the question. Second, it must determine which parts of the retrieved material actually bear on the answer. Third, it must preserve the logical relationships between those parts. Finally, it must generate a response that does not claim more than the evidence supports.
Failure at any stage can produce an answer with citations that is still wrong.
Imagine a medical assistant given three documents. One describes a drug’s standard dosage. Another lists a contraindication for patients with impaired kidney function. A third explains that the patient has not yet received a kidney function test. A naive system may retrieve all three documents and produce a dosage recommendation. A trustworthy system must recognize that retrieval has exposed a missing condition, not resolved the question.
This suggests a useful mental model: retrieval should be treated as the construction of a proof environment.
In a formal proof, importing a theorem into the environment does not prove the target proposition. It merely makes a fact available. Likewise, placing documents in a model’s context does not establish that the final answer follows from them. Context is a set of premises. The response is valid only if the premises, the interpretation of the question, and the reasoning between them satisfy the specification.
This reframing changes how retrieval systems should be evaluated. Instead of asking only whether the retrieved passages are topically relevant, we should ask:
- Are all necessary premises present?
- Are contradictory premises detected rather than blended together?
- Are exceptions preserved?
- Is uncertainty represented when the premises are insufficient?
- Can the answer be traced to specific claims and transformations?
A system that retrieves ten relevant paragraphs but misses one decisive exception has not performed a nearly perfect search. It has failed the task.
This is why benchmark design matters so much. If an evaluation gives the system a nearly complete scaffold, it may measure its ability to fill gaps. If it gives only a precise statement and asks the system to build the supporting theory, it measures something closer to real work. The difference is analogous to asking a language model to quote a policy versus asking it to resolve a policy question in the presence of conflicting rules and incomplete information.
The second task is harder because it tests whether the system can discover what must be made explicit.
The Hidden Cost of Vague Specifications
Many AI failures originate before the model is ever called. The task was not specified precisely enough to be tested.
Suppose a team says, “Build a support bot that gives accurate answers from our documentation.” What counts as accurate? Must every claim be cited? May the bot use general knowledge? What should it do when two documents conflict? Is a partial answer better than a refusal? How recent must the documentation be? Which policy takes precedence?
Without answers, the team cannot distinguish a model failure from a specification failure. Different evaluators will silently use different standards, and optimization will favor whatever is easiest to measure, usually fluency, latency, or user satisfaction.
Formal verification offers a corrective discipline. A formal statement forces the desired result into a structure that can be checked. It may be difficult to write, but that difficulty is informative. Ambiguity that remains invisible in ordinary language becomes visible when one must define the objects, assumptions, and permitted operations.
The same discipline can improve AI product design. Before selecting a model, write the system’s contract in terms that another program or reviewer could test.
For a document question answering system, the contract might include:
- Every material claim must map to one or more approved source passages.
- If the sources do not determine an answer, the system must say so.
- Conflicting documents must be surfaced, not averaged into a compromise.
- The answer must preserve quantitative conditions, dates, exclusions, and scope.
- The system must record which retrieved passages influenced each claim.
These rules do not eliminate judgment. They create boundaries within which judgment can be evaluated.
This leads to an important operational insight: evaluation is not the final stage of an AI system. It is part of the system’s architecture. A retriever, prompt, model, and database are incomplete without a mechanism that checks whether the final response satisfies the contract.
In software engineering, a compiler rejects programs that violate the language’s rules. In formal mathematics, a kernel rejects invalid proof terms. In an AI workflow, we need analogous checks for claims, permissions, citations, calculations, and required decisions.
The check will not always be fully automatic. But even a structured review queue is better than allowing confidence to serve as a substitute for verification.
Why the Hardest Benchmarks Are Often the Most Useful
A benchmark that produces high scores can be comforting and nearly useless. If every problem is familiar, scaffolded, or easy to match against memorized patterns, the benchmark may reward surface competence rather than general problem solving.
A more revealing test gives an agent a precise target while leaving the path open. In formal mathematics, that means providing an expert verified theorem statement but not a ready made proof outline or a prebuilt sequence of lemmas. The agent must determine what machinery is needed, construct intermediate results, and avoid shortcuts that merely exploit the evaluation environment.
The strongest systems may solve only a minority of such problems. That is not necessarily a weakness in the benchmark. It may be evidence that the benchmark is finally measuring the difficult part.
The same principle applies to retrieval systems. A realistic evaluation should not consist only of questions whose answers appear in one clean paragraph. It should include questions that require:
- Combining evidence from multiple documents.
- Resolving version changes.
- Tracking an exception through a general rule.
- Recognizing that the evidence is insufficient.
- Refusing an attractive answer when a required premise is absent.
A system that succeeds on these cases demonstrates more than recall. It demonstrates structural reliability.
We can define structural reliability as the probability that a system preserves the important relationships in a task while transforming inputs into outputs. In mathematics, those relationships are logical entailments. In retrieval, they may be chronology, scope, exception, authorization, or numerical dependency.
This definition also explains why ordinary accuracy can be misleading. A model may answer 95 percent of simple questions correctly and still be unsafe if its errors cluster around exceptions, irreversible actions, or high consequence decisions. The relevant metric is not merely the fraction of correct answers. It is the system’s behavior at the boundaries where a plausible shortcut breaks.
A useful evaluation portfolio therefore includes at least four categories:
- Direct cases, where the answer is stated plainly.
- Compositional cases, where several pieces of evidence must be combined.
- Adversarial cases, where irrelevant or conflicting evidence is present.
- Abstention cases, where the correct response is to identify what cannot be concluded.
The fourth category is especially important. A system that knows when it cannot prove the answer may be more valuable than one that answers more questions with greater confidence.
From Language Models to Evidence Engineering
This perspective changes the role of the language model. The model is not the entire reasoning system. It is one component in an evidence engineering pipeline.
A robust pipeline separates at least five functions:
Specification: What exactly must be established?
Evidence acquisition: Which sources, tools, or calculations are authorized?
Construction: How are the evidence and intermediate reasoning assembled?
Verification: What independent mechanism checks the result?
Escalation: What happens when verification fails or the evidence is incomplete?
Many teams invest heavily in construction, especially prompts and model selection, while leaving specification and verification vague. This is like hiring an excellent programmer for a project whose requirements are ambiguous and whose tests are absent.
The formalization mindset suggests a practical design pattern: make the model produce not only an answer, but also a structured claim record. Each claim can contain its source, scope, confidence, dependencies, and verification status. A separate checker can then test simple properties, such as whether a cited passage supports the stated number, whether dates are compatible, or whether a required field is missing.
For example, instead of generating:
“Your request is approved and will be processed within five business days.”
The system might internally produce:
- Claim: request qualifies for approval.
- Evidence: policy section 4.2.
- Condition: account must have no unresolved compliance hold.
- Evidence for condition: customer record, checked at time of response.
- Processing estimate: five business days.
- Verification: complete.
The user may still receive a concise answer. The underlying system, however, has become inspectable.
This does not mean every interaction should expose a long chain of reasoning. It means the system should preserve enough structured evidence for an independent audit. Transparency is not the same as displaying private internal thought. It is the ability to show what claims were made, what evidence supported them, and which checks were performed.
Key Takeaways
- Define success as a specification, not a vibe. Write down the conditions an answer must satisfy, including exceptions, source permissions, and abstention behavior.
- Treat retrieved documents as premises, not proof. Relevance is only the beginning. Check whether the evidence entails the claim and whether any decisive condition is missing.
- Evaluate the difficult boundary cases. Include conflicting sources, changing policies, multi document questions, numerical constraints, and situations where the correct answer is uncertainty.
- Separate construction from verification. Let the model propose an answer, but use independent checks for citations, calculations, required fields, authority, and policy constraints.
- Measure refusal and escalation quality. A trustworthy system does not merely answer correctly. It also recognizes when it cannot establish an answer and responds appropriately.
The emerging standard for AI should not be “Can it produce something that looks intelligent?” That standard is too easy to satisfy and too weak to protect anyone.
A better question is: What would count as proof that this system did what we asked?
Once that question becomes central, retrieval stops being a way to decorate generated text with citations. It becomes an evidence management problem. LLM operations stop being primarily about keeping models available and start including the maintenance of specifications, tests, traces, and escalation paths. Benchmarks stop rewarding polished guesses and begin testing whether an agent can build a valid solution from a precise target.
The surprising conclusion is that the future of useful AI may depend less on making models sound more certain and more on making systems comfortable with the burden of proof.
A fluent answer asks to be believed. A verified answer gives us a reason.
Sources
Hatch New Ideas with Glasp AI 🐣
Glasp AI allows you to hatch new ideas based on your curated content. Let's curate and create with Glasp AI :)
Start Hatching 🐣