Why Formal Verification Can Spin Its Wheels

    A formal proof assistant only checks whether each inference step is valid from the definitions and axioms you provide. It does not understand mathematical meaning. This article uses a disputed million-dollar Millennium Prize claim to show why a passing compiler, a passing type checker, and an independent compilation do not prove that a proposition was actually established. It then breaks down three mechanisms that let a proof chain run without real constraints, followed by a practical review checklist for auditing definitions, witnesses, dependencies, axioms, and key intermediate values.

    1. Incident Review: A Proof Without a Paper

    An AI system claimed to have proved a famous Millennium Prize problem first posed in 1859, with a million-dollar reward attached. It did not publish a human-readable argument. Instead, it released a formal codebase directly: roughly 175,000 files and nearly 17 million lines of code.

    The next day, two organizations focused on collaborative formal mathematics said they had reviewed the code and were “confident that the proof is correct.” An independent researcher also completed a compilation and called it a historic moment.

    On the same day, however, another document reached the opposite conclusion: the release did not contain the claimed proof, and the proposed proof was invalid.

    The value of this reversal is not in deciding who was right. It exposes an engineering fact: a passing compiler, a passing type check, and a successful independent compilation do not mean that the proposition has truly been proved.

    2. What Formal Verification Actually Verifies

    A formal proof assistant does one thing: starting from the definitions and axioms you write down, it checks whether each step of reasoning is legal. It does not understand “mathematical meaning,” and it does not judge whether an idea is deep.

    As a result, its trustworthiness rests entirely on three premises:

    • Whether the definitions faithfully capture the original proposition;
    • Whether the cited existing results actually apply;
    • Whether every “witness object” on which the conclusion depends genuinely exists.

    If a definition is written to be tautologically true, all subsequent reasoning can spin its wheels under the name of legality. This is a classic case of a correct verifier checking an empty target.

    Illustration (neutral pseudocode):

    1. predicate anyGeometry(_ _ _) := True -- returns true regardless of input
    2. model geoDegenerate := { volume := 0, norm := 0, type := ∅ }
    3. theorem main_result : RH := by
    4. obtain ⟨G, hG⟩ := exists_witness anyGeometry -- witness supplied by a tautological predicate
    5. exact chain_of_inference G hG

    3. Three Key Mechanisms That Let Proofs Spin Their Wheels

    1. The witness condition is tautological. The proof chain needs a class of geometric objects as witnesses, but the predicate carrying that condition is defined to return true for any input. It is referenced in more than a hundred places, including a key witness in the final proof chain. Logically, this weakens “there exists an object satisfying the condition” into “nothing is required.”

    2. A degenerate model serves as the witness. The code uses a “degenerate model” as the geometric object: zero volume, zero norm, a curve collapsed to a point, and an empty set for the surface type. All positivity conditions are likewise defined as true. It carries only a number, with no real variety structure behind it. The witness exists, but its semantics are empty.

    3. Height holds reflexively. The proof requires the height of an object to be squeezed between lower and upper bounds. The code first sets the height to zero, then rewrites it into an explicit formula, so the step “height equals the formula” passes automatically by reflexivity. No substantive connection is established between the bounds and the formula, so the squeeze loses its constraining force.

    4. A Review Checklist for Engineering Practice

    • Audit definitions before conclusions: Check core predicates one by one for tautologies or degeneration into unconstrained forms.
    • Check that witnesses are instantiable: Require every existential conclusion to provide a computable explicit witness, and verify its non-degeneracy properties.
    • Trace dependencies: Starting from the top-level theorem, trace the proof term’s dependencies and flag “universal predicates” with abnormally high reference counts.
    • Use an axiom and assumption whitelist: Explicitly list the external results and axioms relied upon; anything beyond the whitelist is treated as a risk.
    • Sample semantics manually: Manually sample key intermediate values (such as height, norm, and positivity conditions) to confirm they match the original proposition.
    • Enforce controls in the pipeline: Add definition scanning, dependency graph generation, and witness non-degeneracy assertions to continuous integration as automated gates.

    5. Implications for AI-Assisted Programming

    As AI programming tools and automated verification enter production workflows, teams need an auditable “semantic layer”: business constraints written as assertions that cannot be bypassed, dependency relationships in generated code made visible, and manual review preserved on critical paths. Pipelines built on general capabilities such as container platforms, logging services, and monitoring and alerting from Baidu AI Cloud can turn these gates into a routine mechanism.

    The conclusion is clear: machines can guarantee that reasoning does not go wrong, but they cannot guarantee that you asked the right question. When witnesses are tautological, models are degenerate, and definitions hold reflexively, even an enormous codebase is only spinning its wheels.