Engineering Math Proof Generation and Independent Verification

    When the same reasoning process both writes a proof and declares it correct, its own blind spots go unnoticed. This article describes an engineering workflow that separates proof drafting from adversarial review and formal verification: a human owner defines proposition boundaries, independent reviewers hunt for counterexamples, a single editor controls the master document, and a proof assistant provides machine-checkable acceptance. It covers role separation, context construction, review checklists, a four-layer formalization process, and how these principles map onto everyday software development.

    Why Self-Review Is Not Enough

    Long proofs rarely fail all at once. Instead, a local step quietly swaps one set of conditions for another. Common flaws include: treating an almost-everywhere statement as holding everywhere; extending a finite-volume estimate to an unbounded domain; implicitly using regularity that has not been proven; or treating the strongest of three related conjectures as a lemma for the weakest one. If the model that generated a proof continues to “check” it along the same prompt and the same draft, it tends to repeat its own structure rather than search for fresh counterexamples.

    Review must therefore satisfy three independent conditions:

    1. Reviewers do not inherit the drafting context or intermediate preferences; they receive only the proposition, the assumptions, and the text under examination.
    2. At least two review paths use different reasoning configurations or different task instructions, so the same blind spot is unlikely to appear in both.
    3. Final acceptance does not rest on natural language that “looks right,” but on a step-by-step formal proof in which definitions, lemmas, dependencies, and proof terms can each be mechanically accepted or rejected.

    How to Divide the Roles

    A proof pipeline can be collapsed into four roles, with permissions written into the process specification so that not everyone can modify the final document.

    Project owner (human). Selects which single conjecture will be proven, writes the assumptions and the list of unproven conclusions that are off-limits, approves each major proposition before it enters the main document, and reads the final draft end to end. The owner does not replace line-by-line formalization, but holds veto power over conclusions they cannot understand or that conflict with the physical picture.

    Proof drafter. Produces candidate proofs only. It can be a long-running agent that reads the background material, the known stuck points, and the history of failed attempts, then writes a complete argument. It has no authority to mark its own text as “verified.”

    Independent reviewers (at least two paths). Reviewers do not share a task context with the drafter. Their job is not polishing but adversarial checking: hunting for hidden assumptions, quantifier errors, boundary cases, circular reasoning, and proofs of a stronger or weaker statement than claimed. Feedback is returned as a defect list, not as direct edits to the final document.

    Editor (the only role allowed to modify the master document). Merges approved changes, keeps notation, sections, and references consistent, and either closes each review finding or returns it. After the project owner approves, the editor freezes a version and sends it to formalization.

    This division mirrors protected branches in software development: generation is a proposed patch, review is code review, the editor is the maintainer, and formal verification is the mandatory CI gate.

    How to Feed the Problem and Context

    Do not use “prove all three conjectures” as the default instruction. Related conjectures should be numbered and isolated: authorize only, say, Proposition A, and state explicitly that B and C may serve only as motivation and cannot be cited as lemmas. Otherwise the drafter may patch gaps with unproven conclusions and return three proofs together, leaving the reader unable to notice that the dependency direction is inverted.

    The background prompt should contain four blocks, ideally prepared by a separate workflow so the owner’s own oral gaps do not leak directly into the prompt:

    • Domain background and standard definitions, indicating which estimates are classical and which are merely conjectural.
    • The currently stuck step, described as “which type of estimate is missing” rather than hinting at the answer.
    • Permitted tools, such as energy estimates, compactness, coupling, or concentration inequalities; and explicitly forbidden shortcuts.
    • A history of failed attempts: which draft was rejected at which step, and whether the rejection was due to a counterexample, overly strong conditions, or formalization failure. These records are archived as plain text and need not be tied to any particular platform.

    The prompt itself should also be reviewed. If the background has already smuggled in part of the conclusion, even a strong model will only write that assumption more fluently.

    Review Checklist

    Each review path must cover at least the following categories, and every finding must point to a locatable passage rather than offer a vague judgment.

    Logic. Does every “therefore” use only propositions established earlier? Are existence and uniqueness proven separately? Can limits be interchanged with integrals and expectations?

    Quantifiers and sets. Are “for all,” “there exists,” and “almost everywhere” written out fully? Which parameters do constants depend on? Are measure-zero sets used improperly in later steps?

    Boundaries. Do claims survive transitions between dimensions, finite and infinite volume, discrete and continuous settings, high- and low-temperature regimes, and non-degeneracy assumptions?

    Circularity. Is the target inequality used to prove itself, or is B used to prove A and then A to prove B?

    Formalizability. Can each definition map to a type or structure? Is every appeal to “obviously” or “a standard result” accompanied by a precise, citable statement? What counts as “standard” in natural language often does not exist in a proof assistant.

    Every review verdict has exactly three possible values: pass; return with a minimal counterexample or identified gap; or unable to determine, stating which piece of information is missing. “Broadly correct” is not an acceptable verdict.

    Formal Acceptance

    Formalization is not translating a 40-page paper into another typesetting system; it is turning every reasoning step into an item a proof assistant can check. In practice this can be done in four layers:

    1. Statements only. Enter the definitions and proposition statements, without proofs. The owner confirms the statements match the original conjecture, preventing a switch to a nearby proposition that happens to be easier to prove.
    2. Lemma graph. Decompose the natural-language proof into a graph of lemmas, each node with input assumptions and output conclusions. The editor ensures no edge points to an unapproved proposition.
    3. Per-lemma proofs. Fill in the proofs one lemma at a time, prioritizing estimates that many other steps depend on. When a step fails, the returned item is that lemma — not a rewrite of the whole paper.
    4. Regression. After any definition change, re-check every dependent result. Only after this passes may the corresponding passages in the master document be replaced.

    The value of a proof assistant lies in rejecting incorrect steps, not in helping a human “look more rigorous.” Therefore the formal environment should pin specific versions and axiom libraries, and build logs should be reproducible. Human-readable and machine-checked texts can coexist: the human text explains motivation; the machine text is the acceptance basis. When they disagree, the machine-accepted statement is authoritative, and the human-readable version is updated in response — avoiding two sources of truth.

    A Repeatable Process

    1. The owner selects a single proposition and writes the success criteria: the conclusion to prove, the permitted assumptions, and the conjectures explicitly out of scope.
    2. Background and failure archives are independently prepared as read-only material.
    3. The drafter produces a candidate proof and a lemma index within a bounded time, without self-certifying it.
    4. At least two review paths run in parallel and output defects only. The editor and owner decide which defects must be fixed first.
    5. The editor updates the master document and freezes a candidate version.
    6. The formalization team implements the lemma graph. On failure, the proof assistant’s rejection message is routed back to step 4 — not back to the original drafting conversation for “another look.”
    7. After all lemmas pass, the owner reviews the explanation of differences between the human-readable version and the formal statements, then approves publication.

    Elapsed time is not a quality metric. Producing a long text quickly only shows that generation is fast; it does not replace review and machine checking. Conversely, passing review but failing formalization usually means unwritten assumptions remain in the natural language; those assumptions should be added explicitly to the statement or the corresponding step removed.

    What Humans Still Do

    Once the process is automated, human work shifts from handwriting every step to guarding the boundaries of the proposition. The owner must be able to judge: whether an estimate is consistent with the existing picture in the field; whether an inflated constant destroys downstream applications; and whether the object that passed formalization is actually the one in the physical or probabilistic model. These judgments cannot be delegated to the drafter.

    Avoid the opposite extreme as well: passing formalization does not mean the scientific problem is closed. A machine can only check that the reasoning is valid under the given axioms and definitions; it cannot decide whether the definitions characterize the original problem. The review of the definition stage must be done by humans, with change records kept.

    Mapping to Everyday Engineering

    Replace “mathematical proof” with “design document” or “critical algorithm specification,” and the same principles hold. The session that generates a patch does not sign off on it; reviewers never see the author’s self-justifying draft, only the changes and tests; a single maintainer merges; automated checks fail closed. The mathematical setting simply swaps “tests” for a proof assistant and “code style rules” for the lemma dependency graph.

    Teams can start by running this pipeline on smaller propositions: prove one lemma at a time, enforce dual-path review, make the editor the single point of modification, then scale up to full theorems. Writing the process into the repository’s process documentation matters more than which model is used on a given run. Models will change; roles, permissions, and acceptance criteria should remain stable.