When a Rigorous Scholar Meets Generative AI: A Graph Theory Breakthrough and the Human-AI Collaboration Workflow Behind It
This article recounts how a famously rigorous scholar, long skeptical of generative AI, used a large language model to solve a decades-old constructive graph theory problem, then proved the result himself. It walks through why these "constructive" problems are so hard, breaks the work into five reusable stages of human-AI collaboration (problem formalization, multi-round sampling, idea selection, mathematical verification, and result measurement), and distills a developer-facing methodology, along with capability limits and risk warnings. Readers will learn how to treat a large model as an exploration engine rather than an answer machine, and how to build reproducible, verifiable workflows for high-dimensional problems.
I. Background: A “Rigorous” Scholar’s Unexpected Turn
In late February 2026, an old-school scholar in computer science, known for his “programs are literature” philosophy, published an unusually startled short paper on his personal academic homepage. It opened with just two exclamations—roughly “shocked! shocked!”—which alone reveal the turmoil within. This scholar had long publicly voiced skepticism toward generative artificial intelligence, arguing that its output was mostly a statistically “reasonable guess” that lacked any grip on mathematical certainty. Yet the paper documented precisely an experience in which his prior beliefs were corrected by fact.
The starting point was a graph theory construction problem he encountered while preparing follow-up material for the classic multi-volume work The Art of Computer Programming: in a graph with a specific algebraic structure, does there exist a directed cycle that visits every vertex exactly once and returns to the start (a directed Hamiltonian cycle)? The problem was not new; it traced back to a discussion roughly thirty years earlier. Prompted and encouraged by a friend, he handed the problem to a mainstream large language model to explore repeatedly, and eventually obtained a constructive solution that holds for all qualifying odd-order cases. He then completed the rigorous mathematical proof himself, and in the paper paid tribute to Claude Shannon, the founder of information theory—because one of the sources of this line of thinking was Shannon’s classic work on switching networks and Boolean functions.
For developers, the takeaway here is far greater than “will AI replace mathematicians.” It reveals a more practical path: how to use a large model as an exploration engine, and design a reproducible human-AI collaboration process for open-ended, high-dimensional engineering and mathematical problems with high trial-and-error costs.
II. Understanding the Problem: What Makes These “Constructive” Problems Hard
Before diving into the human-AI collaboration method, we must understand the structure of the problem itself. Taking the graph theory problem described above as an example, its difficulty comes from three overlapping factors:
First, the solution space undergoes combinatorial explosion. For a graph with n vertices, exhaustively enumerating all possible paths has a complexity of O(n!); once n grows to a few dozen, brute force becomes completely infeasible.
Second, the constraints are mutually coupled. A Hamiltonian cycle requires “each vertex visited exactly once,” while the additional algebraic structure constraints (for example, the vertex set is formed by the elements of a certain group and the edges are determined by specific generators) further compress the shape of valid paths. Satisfying any single condition alone is relatively easy, but satisfying them simultaneously is extremely hard.
Third, there is a lack of monotonicity. Unlike optimization problems, in a constructive problem an “intermediate state closer to the answer” is not necessarily better than a state “farther from the answer,” so gradient-descent-style methods have almost no foothold. This is also why the field has long relied on human experts constructing general, “generating-function-like” patterns by intuition.
In short, the essence of this kind of problem is not “finding a solution” but “finding a parameterized construction that can be proven to hold for all sizes n.” This is exactly the scenario where large language models have shown an unexpected advantage in recent years: they absorb, from massive amounts of text, the pattern language of human constructive proofs (induction, recursion, decomposition into blocks, symmetrization), and recombine non-obvious ideas during sampling.
III. Five Key Stages of Human-AI Collaboration
3.1 Problem Formalization and Input Design
Turning a vague natural-language problem into a standardized description the machine can process is the prerequisite for all subsequent work. In practice, it is recommended to include at least the following elements:
1. Graph definition: the vertex set, the edge generation rules, and the graph size parameter (e.g., order m);2. Target form: require an explicit construction (closed-form or recursive), not an answer to a specific instance;3. List of attempted approaches: enumerate failed ideas and why they failed, to avoid the model repeating the same mistakes;4. Verification method: explain how the answer is machine-checked (e.g., whether it covers all vertices, whether edges are valid);5. Output specification: require pseudocode, mathematical notation, or executable scripts, to enable easier automated verification.
The key insight here is that the “failure case library” and “success criteria” you provide to the model often determine exploration efficiency more than the problem description itself.
3.2 Multi-Round Sampling and Exploration Cost Management
The original paper notes that the model converged on the correct construction only after dozens of rounds of exploration. This number is not accidental; it is a typical feature of “open-ended problem + high-dimensional search.” The corresponding engineering practices are:
- Raise the temperature parameter. During the conceptual exploration phase, moderately increase sampling randomness (for example, 0.7–1.0) to obtain more diverse candidate ideas;
- Narrow down in stages. Once an idea shows local feasibility, switch to a low-temperature mode for refined derivation and edge-case checking;
- Record and deduplicate. Store each round’s output in a structured log, annotating the “reason for rejection,” so the model does not repeat the same mistake in the next round;
- Explore multiple paths in parallel. Launch independent sessions for different sub-structures (such as different parities or different generator sets), then have humans do the cross-integration.
If you use a managed large language model service from a cloud provider, you can focus on its batch inference and concurrency-quota capabilities to complete hundreds of samples at lower cost; you can also combine logging services and monitoring alerts to perform full-chain tracing and cost attribution for every call.
3.3 Identifying Key Ideas: What Counts as a “Valuable Candidate”
Among multiple rounds of output, humans must identify the ideas with genuine potential. The paper mentions two representative construction ideas: one is a layered partition in the style of a certain “fiber decomposition,” breaking a complex graph structure into independently processable sub-problems; the other uses a “snake-like” path-splicing approach to string local segments into a global cycle. In addition, exploiting the image properties of specific group elements (such as the symmetry under a certain class of automorphism mappings) for recursive amplification is also a common convergence technique.
The common feature of these ideas is that they are inductive: they hold under hand verification at small scales such as m = 3, 5, 7, and they possess a clear “m-to-(m+2) induction” reasoning structure. Developers should make “can it be written as an induction?” the first-priority criterion for screening candidates.
3.4 The Return of Mathematical Rigor: Where Humans Are Irreplaceable
One crucial point in the original paper is that the author himself provided a rigorous mathematical proof. This means the large model’s output is treated only as a “conjecture generator,” and its conclusions must be confirmed by humans using standard mathematical methods (inductive proof, proof by contradiction, constructive verification).
Translated into engineering practice, this means establishing three checkpoints—“AI generation → automated verification → human review”:
Gate 1: Syntax check—use scripts or SAT/SMT solvers to verify small-scale instances;Gate 2: Property check—verify that the output satisfies invariants (e.g., the in-degree and out-degree of each vertex are both 1);Gate 3: Formal review—introduce a proof assistant (e.g., an interactive theorem-proving environment) in critical scenarios, handing proof obligations to the machine.
It is especially worth noting that “automatically verifiable” problems like this are the most suitable to hand over to AI, because the verification cost is far lower than the search cost. This is also an important rule of thumb for judging whether a task is suitable for AI to participate in.
3.5 Iterative Convergence and Result Measurement
The paper also mentions an interesting detail: this constructive solution is not unique, and the author counted several hundred essentially distinct forms. This observation is highly valuable from an engineering perspective—it shows that multiplicity of solutions is not noise, but usable degrees of freedom.
In real projects, you can design a scoring matrix accordingly:
- Correctness (whether it passes all verification cases);
- Generality (whether it covers all parameter ranges declared by the problem, including boundary and extreme values);
- Simplicity (number of construction steps, complexity of auxiliary data structures);
- Explainability (whether a human-readable proof draft can be given);
- Performance (the time and space overhead of the construction process itself).
It is also worth noting that the even-order case described in the paper remained unsolved at the time, and a subsequent candidate construction was later provided by another intelligent coding model, with the relevant verification program published by the author along with it. This suggests that different models have complementary “capability fingerprints,” and cross-validation can often break through the ceiling of a single model.
IV. A Methodology for Developers
Abstracting this case yields a workflow that can be transferred to enterprise-level R&D scenarios:
- Structure the problem. Translate the business problem into a four-part tuple of “input—constraints—expected output—verification method.” This is the dividing line for whether AI can be brought in.
- Establish verifiability. Prioritize reworking the process so that AI output can be checked by automated tests, static analysis, type checking, or formal methods. An AI application without a verification mechanism carries uncontrollable risk.
- Move in small steps and keep the trail. Every round of prompt and output should be recorded in a database, forming a traceable experiment log and avoiding a “black-box one-shot call.”
- Combine multiple models and strategies. Different models each excel at algorithmic reasoning, code generation, and text summarization. In engineering, you can schedule them through a unified gateway, combine containerized sandboxes to execute generated code, and apply isolation and rate limiting to the results.
- Keep the human-AI division clear. AI is responsible for exploration and drafts; humans are responsible for defining the problem, reviewing conclusions, and bearing final responsibility. This boundary is especially important in regulated industries.
V. Capability Limits and Risk Warnings
- Hallucination and fake proofs. A model may produce “proofs” that appear rigorous but actually contain flaws, especially omissions of boundary conditions in symbolic derivations. They must be checked independently.
- Context-window limits. Large-scale combinatorial problems often require writing intermediate constructions back into the context; pay attention to context length and cost control, and introduce external memory (such as structured notes in object storage) when necessary.
- Reproducibility. Sampling randomness means the same prompt may produce different results, so experiment records need to include metadata such as model version, temperature, and random seed.
- Compliance and security. Generated code must run in an isolated environment and avoid direct access to production resources; for scenarios involving data, data desensitization and access-control strategies should be applied.
- Cost observability. It is recommended to integrate a unified logging and monitoring-and-alerting system to continuously observe token consumption, call latency, and failure rates.
VI. Conclusion: Treat AI as an “Exploration Partner,” Not an “Answer Machine”
The most memorable thing about this event, experienced firsthand by a rigorous scholar, is not any specific mathematical result, but the new scientific and engineering posture it demonstrates: treating a generative model as an exploration partner that samples rapidly in a high-dimensional solution space, while humans retain absolute command over problem definition, evaluation criteria, and the final proof.
For developers on Baidu AI Cloud, this paradigm can be applied directly to daily work: whether it is constructing competitive-programming problems, verifying the completeness of protocol state machines, designing scheduling strategies, or generating automated tests for complex business rules, the core is the same thing—turning vague intuition into automatically verifiable formal goals, letting the machine handle divergence and humans handle convergence. When the verification mechanism is reliable enough, the creativity of AI is no longer a source of uncertainty, but a measurable, reproducible increment in productivity.
