AI Mathematical Problem Solving: From Autonomous Reasoning to System Verification
This article examines how AI can autonomously solve mathematical problems and reach system-level verification, using the question of whether polynomial varieties and coefficient vector varieties over a class of algebraic objects are equal as a research sample. Rather than delivering an academic verdict, it breaks the research workflow into steps that are checkable, reproducible, and auditable. Readers will find a terminology clarification, a numbered task decomposition process, common proof-search failure modes, a Lean 4 code skeleton, a five-layer evidence chain design, a minimal run-record template, an audit checklist, guidance on separating exploration from verification environments, and a risk governance list. "
This article uses the question of whether polynomial varieties and coefficient vector varieties over a class of algebraic objects are equal as a research sample to discuss how AI mathematical problem solving can reach system verification. The article does not deliver an academic conclusion on the problem. Instead, it breaks the research workflow into steps that are checkable, reproducible, and auditable.
First, a terminology clarification. The “algebraic P/NP” used here is an analogy notation created to illustrate a formalization workflow. It is not equivalent to P and NP in computational complexity theory, nor does it imply that the analogy carries the same conclusions as the classical problem. Its object domain is a polynomial ring over a field and its subvarieties. The relation is defined as whether two varieties are equal under a given field and variable range. Its scope of applicability is limited to the workflow demonstration in this article and does not extend to complexity class separation. Mathematical claims should be separated into three kinds of statements: those fully proven and manually reviewed; those for which a reproducible verification process exists under specific conditions; and those still lacking a publicly verifiable evidence chain. The third kind must not be packaged as either of the first two.
How do you break a mathematical problem into checkable tasks? In engineering practice, a numbered workflow works: Step 1, state the variables, domain, value ranges, and operation rules clearly. Step 2, map them to a chosen logical system, such as classical logic, intuitionistic logic, or type theory. Step 3, write the polynomial ring, mappings, and equivalence conditions as formal definitions. Step 4, propose candidate constructions or counterexamples. Step 5, run automated or semi-automated checks. Step 6, record the assumptions, citations, and failure reasons for each step. The key difficulty is that symbolic computation often involves infinite objects that cannot be enumerated in one pass. Formalization is therefore not translating natural language into pseudocode; it means first defining objects, axioms, and inference rules, then characterizing infinite structures with finite steps. Generating text that merely “looks like a proof” while the checker has not actually run and produced logs does not count as completed verification.
What are the common failure causes in proof search? First, goal drift: the model switches back and forth among multiple lemmas, so the main proposition, the current subgoal, known lemmas, and failure reasons should be fixed in a structured context and rechecked at every step. Second, sparse feedback: when the checker only reports a type mismatch, generate a minimal reproduction sample to narrow the error down to a single expression. Third, unclear resource boundaries: treat step count, memory, and timeout budgets as first-class constraints. Fourth, untraceable evidence: make the assumption set, citations, and checker output of each step replayable. The conceptual workflow below only illustrates the structure. Its runtime prerequisites are: the target checker is Lean 4 (version locked to 4.7.0), with the matching mathlib version as dependency, UTF-8 encoded .lean files as input, and minimal reproduction samples obtained from the error location reported by the check command plus single-expression extraction.
-- Prerequisite: Lean 4.7.0 + locked dependency library; input file problem.leandef domain := Type -- abstract domaindef object := Polynomial domaindef relation (P NP : Set object) := P = NPlemma lemma_1 : relation P NP := bysorry -- candidate lemma; roll back to the previous subgoal on failureexample : relation P NP := byexact lemma_1 -- after assembly, #print axioms outputs the dependencies
How do you build an evidence chain and a verifiable engineering structure? Use five layers. The definition layer provides a single symbol system. The assumption layer explicitly marks unverified strong assumptions. The proof layer records lemma numbers, rule names, and the checker version. The run layer keeps an environment snapshot. The review layer records manual judgments. The minimal record template for the run layer has these table fields: checker name and version, run parameters, input file hash, output snapshot path, log hash, start and end time, and exit code. For example: Lean 4.7.0; —seed 0 —maxHeartbeats 400000; problem.lean sha256=9f2c…; out.snapshot; run.log sha256=41ab…; 2026-02-11T10:00Z to 10:03Z; exit=0. The audit checklist has six questions: Is the problem statement fully recorded? Does every definition have a single source? Does every lemma list its dependencies? Are the checker version and parameters recorded? On failure, are the error context and minimal reproduction preserved? Is there a manual review record or a pending-review marker?
How should the research workflow be organized, and how should permissions be isolated? Split tasks into an exploration zone and a verification zone. The exploration zone allows free generation of candidates, modification of intermediate files, and lightweight computation. The verification zone accepts only structured submissions containing a problem ID, candidate proof, dependency list, runtime environment, and expected result; submissions that do not match the format are rejected outright. In the cloud, container images can preset a fixed toolchain, object storage can hold drafts, a message queue can control concurrency, and monitoring can alert on timeouts, memory overruns, and consecutive failures.
Common risks and governance recommendations are as follows. A checker’s tolerance for circular dependencies and unproven lemmas depends on its logical foundation and configuration, so verify before use: run negative tests with known circular proofs and samples containing sorry, and check the #print axioms output. Risk items, trigger signals, detection methods, and remediation actions can be listed in a table: false completion corresponds to dependency anomalies, negative testing, and rollback for re-proving; overcommitment corresponds to document wording, terminology review, and rephrasing; data contamination corresponds to citation drift, version locking, and citation rollback; unexplainable steps correspond to hidden lemmas, explicit dependencies, and supplementary proof; permission overruns correspond to abnormal outbound connections, least privilege, and credential revocation.
The scope of this article’s conclusions: the workflow applies to formalizable propositions in algebra, combinatorics, and finite structures, and fits systems such as Lean, Coq, and Isabelle. It does not apply to open conjectures that rely heavily on intuition, and it does not replace the judgment of the mathematical community. The practical path goes from simple to complex: first pick a combinatorial proposition within a finite range or an equation over a simple ring, and get the define-prove-check loop working; then build a unified symbol repository; then introduce a versioned checker and incorporate manual review, marking items as pending review, reviewed, or needs correction; finally scale up while recording success rate, average retry count, and the proportion of manual corrections. Three lessons: define clearly before discussing automation; leave traceable evidence at every step; distinguish verification passing from a conclusion being true.
