AI and Formal Verification: What Developers Should Learn When AI Starts Solving Math Problems

    This article examines what happens when AI drastically lowers the cost of searching for proofs while human experts remain essential for problem definition and verification. It breaks down the shift from manual proof search to a pipeline of formalization, large-scale strategy search, and mechanical verification, then outlines the capabilities developers and enterprises need: verifiable delivery standards, versioned prompts and strategies, cloud infrastructure for search and validation, and controls for common risks such as missing acceptance checks, upstream drift, and runaway costs. The takeaway is a move from being a problem solver to a problem setter, where the durable skill is building repeatable, verifiable engineering systems.

    Introduction: A Contest Between Limited Human Effort and Unlimited Compute

    A recent mathematics graduate used AI assistance to solve several long-standing open problems in a row, becoming one of the first winners in a foundational science bounty program. This should have been an inspiring story, but the feeling he described was that 90% of the “fun” of doing mathematics had disappeared, along with the long-held dream of toiling in isolation for years and finally cracking a problem.

    Pulling this back from the emotional level to the technical level, it describes a clear engineering fact: once compute expands the search space, the marginal contribution point of human experts shifts. In the past, the bottleneck for hard problems was “finding the right path”; now the bottleneck is “how to define the problem, how to verify the result, and how to judge whether the result has value.”

    This article does not retell the specific event. Instead, it abstracts the phenomenon into a reusable technical methodology and discusses what capabilities developers and enterprises should build when facing the combination of “AI + formal verification + bounty-style problem lists.”

    1. Abstracting the Phenomenon: Why “Hard Problems” Suddenly Fall in Batches

    Solving a mathematical problem can essentially be broken into a three-stage pipeline:

    1. Problem formalization: Transcribing a conjecture described in natural language into a formal proposition that a machine can check;
    2. Strategy search: Finding a viable path within a huge space of proof strategies;
    3. Result verification: An independent verification kernel confirms that every step of reasoning is sound.

    Over the past two decades, the third stage has largely matured, while the first and second stages relied heavily on humans. The change AI brings is not “being smarter” but pushing the unit cost of the second stage down by several orders of magnitude, while allowing the first stage to generate drafts in bulk through a semi-automatic process.

    This explains a phenomenon that is easy to misread: why a large number of results can emerge in a short time. It is not that every problem became easier, but that the output rate of candidate paths exceeded the speed of manual screening and verification. The direct engineering consequence is that verification and formalization infrastructure have instead become the new scarce resource.

    2. Breaking Down the Technical Foundation: Four Capability Layers You Must Understand

    2.1 Formal Languages and Proof Assistants

    The core idea of formal verification is to make every step of reasoning fall within a rule system that can be mechanically checked. The common industry practice is to write formal scripts accepted by a proof assistant, which a small trusted kernel checks line by line. Its value lies in three points:

    • Clear trust boundary: The kernel is small, so audit costs are low;
    • Reproducibility: The same formal script yields the same conclusion for anyone;
    • Composability: Once a lemma is formalized, it can be directly reused by subsequent work, forming cumulative assets.

    The takeaway for developers is that the trustworthiness of any “AI-generated result” depends on whether it can be translated into a system that can be mechanically checked. Without this layer, the output is merely probabilistic text.

    2.2 Formal Math Libraries and Consensus Mechanisms

    Formal proofs are not islands; they depend on large libraries of already-verified base lemmas. This kind of public infrastructure is usually maintained jointly by a community, and disputed conclusions are confirmed through joint statements. The pattern worth borrowing in engineering is:

    • Conclusions must come with executable formal artifacts, not just narrative explanations;
    • Multiple independent organizations complete the review to form a consensus record;
    • Version-control the base libraries to avoid “one upstream change breaks everything downstream.”

    2.3 Bounty-Style Problem Lists: Structuring R&D Tasks

    The mechanism mentioned in the original text is worth abstracting on its own: driving breakthroughs through a “problem list + bounty” approach. This is essentially a method of turning open research into acceptance-ready work orders, highly analogous to traditional R&D management:

    • Each problem has a unique ID and clear acceptance criteria;
    • Submissions must be verifiable automatically or semi-automatically;
    • Rewards are tightly bound to verification results, reducing subjective judgment.

    Enterprises can migrate this internally: rewrite vague goals like “improve system stability” into engineering problems with IDs and acceptance scripts.

    2.4 Redrawing the Human-Machine Division of Labor

    What is truly replaced is “physical trial and error,” while what is amplified is “defining the problem” and “aesthetic judgment.” A simple pseudocode can describe the new workflow:

    1. # Human-machine collaborative R&D pipeline (illustrative)
    2. def solve(problem_id, formal_spec, tactic_search, verifier):
    3. spec = formalize(problem_id, formal_spec) # Human-led: definition and formalization
    4. candidates = tactic_search(spec, budget) # Machine-led: large-scale search
    5. for c in candidates:
    6. if verifier.check(c): # Machine adjudication: mechanical verification
    7. return artifact(c) # Deliver reproducible artifacts
    8. return refine_spec(spec) # Human returns: fix the problem definition

    Note the loop exit: on failure, it returns to “fixing the problem definition,” not “adding more compute.” This is the most fundamental difference from the old paradigm.

    3. Engineering Implementation: How Enterprises Should Build This Capability

    3.1 Establish Verifiable Delivery Standards

    Before incorporating “AI-generated” output into the R&D process, first build an acceptance layer: all key outputs must have automated verification means, such as unit tests, model checking, type checking, or formal scripts. AI integration without an acceptance layer only amplifies uncertainty into the production environment.

    3.2 Use General Cloud Capabilities to Support Compute and Collaboration

    Large-scale search and parallel verification place common demands on infrastructure, which can be met by combining general cloud product categories:

    • Container platforms: Host stateless search and verification tasks with elastic scaling;
    • Object storage: Store formal scripts, proof artifacts, and version snapshots;
    • Message queues: Decouple task distribution from result collection, smoothing peaks and filling valleys;
    • Logging services and monitoring alerts: Track search coverage, verification failure rates, and resource costs.

    General capabilities offered by Baidu AI Cloud in these scenarios (elastic compute, containerized scheduling, object storage, logging and monitoring, etc.) can serve as a reference foundation for building such pipelines, though specific choices should still be based on your own acceptance standards.

    3.3 Treat Prompts and Strategies as Versionable Assets

    The effectiveness of strategy search depends heavily on input construction. The practical recommendation is to bring task descriptions, constraints, and failure samples all under version control, forming a regression evaluation set. A minimal skeleton you can maintain:

    1. registry/
    2. problems/ # Numbered problems and acceptance criteria
    3. specs/ # Formal definitions
    4. tactics/ # Search strategies and budget configuration
    5. verifier/ # Independent verification entry point
    6. reports/ # Coverage and failure analysis for each run

    3.4 Risk Control: Three Common Pitfalls

    • Missing acceptance: Treating probabilistic output directly as a conclusion;
    • Upstream drift: Base library upgrades invalidate historical conclusions, so versions must be locked;
    • Runaway costs: Search budgets without limits require quotas and circuit-breaker alerts.

    4. Capability Upgrade: From “Problem Solver” to “Problem Setter”

    The most striking line in the original text is that “90% of the fun has disappeared.” From a technical perspective, what disappeared is the instant gratification from low-level feedback, while what is added is a higher-leverage work surface:

    1. Problem definition ability: Turning vague phenomena into decidable propositions, the part AI finds hardest to replace;
    2. Verification design ability: Designing an acceptance system more trustworthy than the conclusion itself;
    3. System integration ability: Stringing search, verification, storage, and scheduling into a sustainably running pipeline;
    4. Value judgment ability: Judging whether a conclusion is worth formalizing and engineering.

    For developers just entering the field, the suggested entry sequence is: first master the general ideas of a formal or strictly verified tool, then introduce numbered task lists into your own projects, and finally use general cloud infrastructure to turn the pipeline into a routine capability.

    Conclusion

    AI solving hard problems in batches is not the end of human thinking, but pushes the competition further upstream: who can define problems, who can verify results, and who can turn accidental breakthroughs into repeatable engineering capability. Rather than worrying about the “disappearance of fun,” it is better to reposition that fun around building verifiable systems—this is the truly non-depreciating asset in an era of unlimited compute.