Large Language Model Mathematical Reasoning in Practice: Lessons from a Six-Page Proof

    This article examines a new proof of the Riemann hypothesis over finite fields, commonly known as the Weil conjectures, completed mainly by a large language model in fewer than six pages of new reasoning. It breaks down the four-step proof skeleton, the role of retrieval in locating a high-value footnote, the multi-model handoff based on context isolation, and the citation issue caught during independent review. Developers will find a practical checklist for task decomposition, retrieval scope, cost-driven algorithm changes, reviewer independence, and traceability.

    1. What the Proof Actually Does

    When people discuss large language model capabilities, the easiest thing to misread is the benchmark score. A more informative sample is whether the model can independently complete a long chain of reasoning that others can then verify line by line.

    The problem solved this time is the Riemann hypothesis over finite fields, usually referred to as the Weil conjectures. Its significance lies in tying a countable arithmetic question, namely how many solutions an equation has in a finite field, to structures deep inside algebraic geometry. The problem was posed in 1949, related work received a Fields Medal in 1974, and it is widely regarded as a hard problem in mathematics.

    The new proof has several notable formal features:

    • The byline contains only one author responsible for uploading, while the main reasoning was completed independently by a large language model;
    • The abstract acknowledges that it follows the basic framework of flat cohomology and the weak Lefschetz theorem;
    • On top of that premise, the new reasoning is less than six pages long;
    • The only core estimate in the whole proof is the Cauchy-Schwarz inequality, applied to a character sum over a finite field.

    The comparison is more striking. The hardest step in the original work used three heavy tools: the Lefschetz pencil, the Kazhdan-Margulis theorem, and the Rankin method, across more than 150 pages. The new proof uses none of them.

    2. The Breakthrough Came from a Footnote: Retrieval Is Upstream of Prompt Engineering

    The opening was not in the main text but in the footer of pages 2 and 3 of someone’s public notes: an offhand guess suggesting that with a clever choice of sign, the equality “q to the N equals M to the k plus R” might directly yield the Weil conjectures and the Deligne bound.

    The engineering implication of this is often underestimated. The ceiling on model capability depends not only on reasoning length but also on whether the model can locate high-value, low-visibility fragments in the corpus. Footnotes, appendices, supplementary material, and a passing remark in an issue are often exactly such fragments. The practical approach is simple: expand retrieval from the abstract or main text to the full text and appendices, and keep source locations for retrieved fragments so they can be verified later.

    3. A Four-Step Skeleton That Bypasses the Most Expensive Part

    The new proof has only four steps, none of them individually difficult:

    1. Construct an equation of the form x1x2 + x3x4, and use additive characters to rewrite “counting solutions” as a sum;
    2. Split out the trivial character term as the main term, M to the k, and throw everything else into the remainder;
    3. Apply the Parseval identity k times in a row to the remainder, pushing its magnitude down to square-root level; this step relies only on Cauchy-Schwarz;
    4. Use an argument about hyperplane sections to fix the sign of the middle-degree cohomology; once the sign is fixed, eigenvalues cannot cancel each other, and “an upper bound on the total” is upgraded to “an upper bound on each term”.

    In mathematical terms, this is a change of skeleton. In engineering terms, it is closer to bypassing the most expensive segment. The cost of the original path was concentrated in computing the complex structure of cohomology. The new path first uses an identity to split the number of solutions into a main term and a remainder, then uses the sign to close off the cancellation route, so the heavy tools are all saved.

    The transferable pattern is this: when facing a high-cost task, first ask whether the bottleneck is an irreplaceable piece of computation, then ask whether it can be replaced by one decomposition plus one structural constraint. The same idea holds in performance optimization: locate the hotspot first, then swap the algorithm skeleton, rather than optimizing every stage.

    Written schematically as pseudocode:

    1. total = sum_over_characters(chi(f(x)))
    2. main, remainder = split_trivial_character(total)
    3. for i in range(k):
    4. remainder = parseval_step(remainder) # uses only Cauchy-Schwarz
    5. sign = hyperplane_section_argument(mid_degree_cohomology)
    6. if sign is determined:
    7. bound_each = bound_total # cancellation is ruled out

    4. Multi-Model Relay: Division of Labor Matters More Than Peak Capability

    More interesting is how several models relayed the work, with a division of labor roughly as follows:

    • The first model rewrote the vague guess in the footnote into a clear research proposition, specifying variables, goals, and criteria;
    • The second model produced the complete proof;
    • The first model then verified every step line by line, re-derived the core lemmas, and wrote the first draft;
    • The third model cut off all historical check records and re-proved everything independently from scratch.

    The key design in this workflow is information isolation. When the same model is both athlete and referee, it tends to carry over its own earlier false premises; re-proving with a cleared context is equivalent to bringing in an independent reviewer. In engineering terms, this is the same idea as code review, dual-write verification, and chaos drills: trading independence for confidence.

    5. Blind Review Did Catch a Problem: Citations Are the Most Error-Prone Point

    The issue caught by independent review was not in the reasoning but in the citations: the first draft attributed the weak Lefschetz theorem to the wrong source, and the final version switched to the original proof written in the appendix of a certain paper.

    This points to a counterintuitive conclusion: in a long chain of reasoning, the most fragile link is often verifiability rather than correctness. The practical advice is to treat citations and data sources as first-class citizens:

    • Bind every lemma to a locatable source, and do not accept “well known”;
    • Keep recomputable intermediate quantities for key conclusions instead of giving only final numbers;
    • Isolate the reviewer role from the generator role, and keep the review records.

    6. A Practical Checklist for Developers

    • Task decomposition: split a big problem into four stages, proposition, solving, verification, and independent re-proof, each with clear deliverables;
    • Retrieval first: cover the full text and appendices in the corpus, with sources attached to fragments;
    • Cost perspective: find the most expensive segment first, then consider changing the skeleton rather than optimizing everything;
    • Independence: clear the reviewer’s context to avoid self-validation;
    • Traceability: archive citations, intermediate quantities, and versions together, using log services and object storage for long-term retention, and track task status with monitoring and alerting.

    The real takeaway is not that “models can solve problems”, but this reusable way of organizing work: turn a vague guess into a clear proposition, replace expensive computation with a structural constraint, and use independent review to backstop reliability.