False Lean 4 Feedback Misleads Language Models: Initial Decisions Do Not Reliably Predict Final Proofs
Summary:A research team tested seven model deployments on 14 pairs of elementary Lean 4 statements to examine how models respond when an interface falsely reports a proof failure or success. In the original Claude batch, fabricated errors reduced correct keeps of working proofs from 40/42 to 2/41, while fabricated successes reduced correct revisions of insufficient proofs for Opus and Haiku from 18/26 to 5/26. The study also found that initial keep, revise, or reject decisions did not reliably predict
The research team treats proof-assistant interface feedback as untrusted input and finds that language models can be strongly misled even when the underlying proposition can be checked by Lean. The failure does not involve a compromised proof kernel: it arises when a model treats a displayed error or success message as authoritative and consequently keeps, revises, or rejects a candidate proof.
Threat model: trusted kernel, untrusted display layer
The experiment simulates a realistic fault in which Lean checks a proof correctly while the interface displays the wrong result. Each model receives a proposition, a candidate proof, and an external report, then chooses whether to keep, revise, or reject it. This is a form of tool-observation corruption, not an attack on Lean itself.
A reliable architecture separates two paths:
Proposition + candidate proof → Lean elaborator/kernel → authoritative resultInterface report → non-privileged diagnostic hint for the model
If the interface conflicts with a direct checker invocation, the direct result should win. The study also records the model's first decision separately from its final submission, preventing an initially reasonable action from being mistaken for a valid final proof.
Experimental setup and principal findings
The study covers 14 pairs of elementary Lean 4 statements and seven model deployments. The authenticity of the external report materially changes how candidates are handled:
| Scenario | Control or no-report result | Result with fabricated feedback | Interpretation | |---|---:|---:|---| | Working proofs correctly kept | 40/42 | 2/41 | Fabricated errors almost eliminate correct keeps | | False statements correctly rejected | 37/42 | 35/41 | No confirmed equivalence gain from fabricated successes | | Opus and Haiku correctly revise insufficient proofs | 18/26 | 5/26 | False success encourages premature acceptance | | Valid final proofs for general statements in the later batch | 28/28 | 20/28 | Fabricated errors continue to damage the final output |
With a larger output budget, Sonnet revised 11 of 13 insufficient proofs. This suggests that additional inference budget may mitigate part of the damage, but it also introduces a confound: the recovery cannot be attributed to the model alone, and a larger budget is not a substitute for trusted verification.
Another important observation is that six closed-statement responses in the later Opus and Haiku batch recovered from an initial rejection into valid final proofs. An initial decision is therefore a policy action influenced by potentially corrupted feedback, whereas the final proof is the outcome of subsequent generation or revision. The two must not be treated as interchangeable.
Why the final proof is the relevant security object
The failure resembles a broken control chain: an external report enters the model context and becomes high-weight evidence. For a question that can be decided deterministically by a proof checker, the model instead performs an open-ended trust judgment and then decides whether to stop searching or rewrite the proof.
This creates three engineering risks:
- Incorrect retention: A valid proof is treated as failed, wasting revision cost and potentially degrading it.
- Incorrect acceptance: A proof with a gap is treated as successful and enters downstream workflows.
- Distorted stopping criteria: If an interface-level success message terminates the loop, the final artifact may never have passed an authoritative check.
Reliability metrics should therefore record more than whether the model initially chose to keep a proof. At minimum, a formal-verification agent should log the initial action, candidate-proof hash, report contents, Lean version, authoritative checker result, and whether the final proof passes the kernel.
Engineering trade-offs
Invoking Lean directly at the tool layer is generally more deterministic than asking a language model to judge proof correctness, and it separates model-generation cost from formal-checking cost. The study does not report checking latency, however, so the overhead cannot be quantified from these results.
Strict validation also changes the cost distribution. After an invalid proof is detected, the model may need to replan, locate a proof gap, and generate a replacement; that repair loop is usually more expensive than a single kernel check. Rejecting every revision to avoid false reports could create unnecessary calls. A practical design uses the checker as a hard gate, treats untrusted reports only as hints that narrow the search space, and permits further model repair when the kernel rejects a candidate.
The Sonnet result also shows that output budget affects recovery under contaminated feedback. Evaluations should fix model version, prompt, sampling configuration, and token budget, then distinguish final correctness at equal budget from recovery after increasing the budget. Otherwise, a budget effect may be misreported as a reliability improvement.
Evaluation limitations
The study exposes a large and practically important failure mode, but its evidence remains bounded:
- The propositions are elementary and do not establish robustness on complex dependencies, automated proof search, or large-scale software verification.
- Per-condition sample sizes are small, and the collected material provides no repeated-run variance, confidence intervals, or significance tests.
- Baseline competence differs across deployments, while Sonnet received a larger output budget, so cross-model comparisons are not fully controlled.
- The experiment does not isolate checking difficulty, error localization, and generation dynamics as separate causal factors.
- It evaluates decisions and final submissions rather than establishing reliability in a complete, persistent interactive proof workflow.
Deployment recommendations
- Bypass the display layer: When a Lean checker API is available, do not use an IDE or chat-interface status message as the source of truth.
- Separate hints from decisions: Treat reported errors as non-privileged prompts, while requiring an authoritative checker result for acceptance.
- Recheck every final artifact: Run Lean again on the complete revised proof rather than reusing a pre-revision status.
- Preserve an audit trail: Record the raw report, initial action, proof versions, toolchain version, and final kernel outcome.
- Build an adversarial regression suite: Inject both false failures and false successes across keep, revise, reject, and multi-turn recovery paths.
- Trip a conflict circuit breaker: If the interface and direct checker disagree, quarantine the session, refresh the state, and revalidate before continuing.
The central lesson is not that a particular model lacks proof-checking ability. It is that a reliable verifier does not make an end-to-end agent trustworthy when the model treats a corruptible status display as a control signal. The final proof must pass a trusted checker; the model's first reaction to feedback is process telemetry, not a safety credential.
— END —Source: ArXiv AI (cs.AI) (2026-12-03)
Tags: #Lean 4 #Formal Verification #LLM Reliability #Untrusted Tool Feedback
Editorial & Fact-Checking Note: This article is compiled from primary research, official release documentation, and source papers by the ZICQ Newsroom pipeline with automated entity verification and human editorial review. If you notice any technical inaccuracy, please submit a correction via our corrections policy or email our editorial desk directly.
Community Comments