LLMs for Mathematical Proofs and Lecture Notes: A Verification-Focused Guide
This article outlines a verification-focused method for using large language models in mathematical proof writing and lecture note preparation. It covers task decomposition into lemmas, source and condition checks for citations, logical self-checking, symbol consistency, document structure, model evaluation, and a recommended workflow that keeps human judgment and final responsibility with the author.
1. Why Mathematical Writing Needs a Separate Approach
Mathematical proofs demand far more rigor than ordinary text. If one step is wrong, all subsequent reasoning fails, and the error often appears in fluent language that is easy to miss. The core question when using large language models for mathematical proofs is therefore not “Can it generate content?” but “Can the generated content be verified step by step?”
Three failure modes are common in practice. First, the model cites a theorem or number that does not exist. Second, the proof skips a key premise in the middle—for example, it omits the continuity of a mapping or the finiteness of an object. Third, notation drifts in meaning from one paragraph to another. These problems require users to establish a systematic review process.
2. Task Decomposition: Turning a Proposition into Verifiable Subpropositions
Asking a model directly to “prove this proposition” usually produces a long text that looks complete but is hard to audit. A safer approach is to decompose the task first:
1) State the premises and conclusion clearly, and list all assumptions, objects, and definitions of notation.
2) Decide whether the proposition is an existing result in the literature or a new conclusion that requires a combined argument.
3) Split the proof into lemmas, each containing only one reasoning step or one standard technique.
4) Annotate the dependencies of each lemma to form an acyclic dependency graph.
A schematic example:
Theorem: Condition P implies conclusion QLemma 1: Object A satisfies property S (depends on: definition)Lemma 2: By Lemma 1, mapping f preserves structure (depends on: Lemma 1)Proof of Theorem: Q follows from Lemma 2
After decomposition, each step can be queried and checked separately. The scope of error localization shrinks from the whole document to a single lemma.
3. Evidence Checking: Distinguishing Known Results from New Derivations
In mathematical documents, the greatest risk is treating an unproved claim as established fact. Perform three checks for every citation:
- Source check: Can the cited theorem be found in authoritative literature, and do the numbering and statement match?
- Condition check: Are all assumptions satisfied when the theorem is cited? Pay special attention to the theorem’s scope of application, such as finiteness, compactness, and commutativity.
- Equivalence check: If the model gives an “equivalent form,” confirm that the two forms are truly equivalent rather than approximate.
If a proposition has no ready-made proof in the literature, the document should explicitly label it as “argued in this article” or “derived by the following steps.” Readers should not mistakenly assume that the conclusion has an existing source. This point is especially important for lecture notes, because readers often treat them as citable references.
4. Logical Self-Checking: Reviewing Proofs from Multiple Angles
A proof generated in a single pass should not be used directly. The following methods can significantly improve reliability:
1) Proof by contradiction: Assume the conclusion is false and check whether the contradiction truly follows from the premises.
2) Special-case check: Hand-verify trivial or low-dimensional cases to confirm that the proposition holds in those cases.
3) Independent re-derivation: Open a new conversation, provide only the proposition and definitions without the original proof, let the model derive it again, and compare whether the key steps of the two derivations match.
4) Line-by-line review: For every step described as “obvious” or “it follows that,” require a concrete justification.
Note that a model’s self-confirmation is often unreliable. A model claiming that “this has been checked and is correct” is not evidence. Only reproducible derivation steps and checkable external evidence count as evidence.
5. Symbol Consistency and Document Structure
Notation drift is very common in long proofs. Before writing, create a symbol table and use it to proofread every generated passage. If the same object is denoted differently in different paragraphs, unify the notation and explain it at the beginning of the document.
Lecture notes also require attention to structure. Definitions, propositions, lemmas, proofs, and remarks should each be independent paragraphs with continuous numbering and accurate cross-references. Formulas can be output in a mathematical typesetting markup language so that they can be compiled directly. Specifying these formatting requirements in prompts can reduce later rewriting work.
6. How to Evaluate a Model’s Mathematical Ability
Evaluating a model’s mathematical ability should not depend only on whether it produces a complete proof. Compare models across the following five dimensions:
1) Correctness: On propositions with known conclusions, are the proof steps error-free?
2) Citation reliability: Do the cited theorems actually exist, and are their conditions stated accurately?
3) Original derivation ability: For propositions without a ready-made proof in the literature, can the model provide a checkable argument path?
4) Self-correction ability: After an error is pointed out, can the model locate the problem and provide a correction rather than repeating the original error?
5) Presentation standards: Do notation, structure, and formula formatting follow academic writing conventions?
When evaluating, distinguish between “restating existing material” and “constructing a new argument.” The former can be checked by comparing sources; the latter requires step-by-step verification. Judging a model’s quality from a single result has very low reliability.
Cost should also be considered. Different models vary considerably in invocation cost, quota consumption, and response speed. Comparisons should use the number of proofs that pass verification per unit time as a reference, not just the length of a single output.
7. Recommended Workflow
- Define the proposition and scope, and organize definitions and a symbol table.
- Decompose it into lemmas and annotate dependencies.
- Request a draft and require each step to state its justification.
- Check citations and applicable conditions item by item.
- Perform proof-by-contradiction checks, special-case checks, and independent re-derivation.
- Unify notation and organize the material into lecture note format.
- Read through manually and record steps that remain in doubt.
The key to this workflow is division of labor. The model handles drafting and organization; humans handle judgment and sign-off. When conclusions are used for teaching or publication, final responsibility should rest with the author.
8. Conclusion
The value of large language models in mathematical writing lies mainly in accelerating draft generation, organizing document structure, and helping to clarify ideas. To turn this value into reliable results, proofs must be decomposed into verifiable units, every citation and reasoning step must be checked, and model performance must be evaluated in a reproducible way. Method matters more than a single result.
