Proof readability

From flonat/flonat-research · View interactive version

Proof readability is an AI agent skill from the GitHub repository flonat/flonat-research. Improve the exposition and readability of a mathematical proof already verified as correct without changing its mathematics. Use when polishing a lemma, theorem, proof, or appendix after correctness checks. Not for verifying the proof; use $verify-math.

How to use this skill

Skill file

Author: Moran Koren, Ben-Gurion University of the Negev (korenmor@bgu.ac.il). Part of the Theorist Toolbox.

Proof readability

Relationship to proofread: proofread is a report-only, whole-paper prose checker (11 categories, never edits source). proof-readability edits in place, is proof-specific, runs only after a correctness gate, and holds a content-preservation invariant proofread does not. Audit a whole paper's prose → proofread; edit the exposition of a verified proof → proof-readability.

Edit verified proofs so a reader can follow them without reconstructing steps, chasing broken references, or decoding notation. This skill runs after a proof has been written (e.g., by math-proof) and after its correctness has been verified (by domain-reviewer, lean-check, or the user). It is an exposition pass, not a proving pass.

Position in the pipeline

math-proof  →  verification (domain-reviewer / lean-check / user)  →  proof-readability
   (correctness)              (acceptance)                  (exposition only)

The prime invariant: never change the mathematics. Every edit must be content-preserving — reorder, signpost, expand, annotate, rename consistently, fix references and typos. Do not strengthen, weaken, or "simplify" any claim; do not replace an argument with a different one; do not silently fill what you believe is a gap with new mathematics.

If you find an actual gap or error while editing, stop editing that proof and flag it. Report the suspect step precisely ("the inequality in Eq. (3) silently uses FOSD via Eq. (1); I cannot verify it from the stated assumptions") and route it back to the user (re-open the proof via math-proof, or verify the step via verify-math). A readability pass that quietly patches math defeats the verification that already happened.

Guiding principles

The six-layer pass

Work through these layers in order. Layers 1–2 are structural (read the whole proof first); layers 3–6 are local.

Layer 1 — Architecture

Layer 2 — Signposting

Layer 3 — Line-level justification

Layer 4 — Notation hygiene

Layer 5 — Intuition

Layer 6 — Sentence and formula grammar

The line-by-line mechanics, mostly from Lee's Some Remarks on Writing Mathematical Proofs:

Banned phrases and their replacements

| Found | Replace with |

|---|---|

| "Clearly," / "Obviously," / "It is easy to see" | The one-line argument, a pointer to the definition/lemma that makes it immediate — or often just delete the word: "f is obviously integrable because it is continuous" → "f is integrable because it is continuous" |

| "It is straightforward to see/show" | The displayed computation (it is usually one line) |

| "It can be seen that…" / "we are able to show that…" | Delete the filler; state the fact with its reason |

| "naturally follows" / "readily follows" | "follows from [named result] because [one clause]" |

| "The proof of (b) is similar and omitted" | One sentence naming exactly what changes: "identical with the inequality on price reversed, since a seller gains when p > vᵢ" |

| "Similar arguments apply to the case…" | Same — name the substitution or sign flip that maps the proved case onto this one |

| "one can see that…" / "we get that…" (over a gap) | The intermediate line |

| "this leads to a contradiction" | The two incompatible statements, side by side |

| "A dominates B" (unproved) | The inequality, or an explicit flag that it is a verified-elsewhere fact with a pointer |

| "See the proof of Lemma X" (as an entire proof) | A one-sentence extraction of the relevant fact from Lemma X's proof, plus the pointer |

| "by [12]" (bare citation) | "[12, Theorem 2.7.6]" — and instantiate the theorem's variables at the call site |

Note: a verified proof may legitimately omit a symmetric case — the verification covered it. The readability edit is to say what changes, not to doubt the omission.

Contested edits — propose, don't apply

These changes are recommended by some style authorities and disputed by others, and all of them border on changing content. Never apply unilaterally; list them as suggestions in the report and let the user (or prover) decide:

Mechanical lint (always run, last)

These are cheap checks that catch the errors that most erode reader trust:

  1. Cross-reference types: every "Theorem n" / "Proposition n" / "Lemma n" mention points to an object of that kind (mislabeling propositions as theorems is a recurring real error). No equation cites itself; every \ref resolves.
  2. Proof environment boilerplate: no "Proof. Proof." doubling; one consistent terminator throughout (□ or Q.E.D., never mixed); QED not glued inside a displayed equation; \qedhere where a proof ends in a display.
  3. Counts: announced number of steps/cases equals the number delivered; enumerated list numbers match prose references ("by step 2").
  4. Statement/restatement equality: an appendix restatement is verbatim identical to the main-text statement (bounds, indices, quantifiers).
  5. Typos in math-adjacent prose: "than/then", "principle/principal", "the the", agreement errors, unmatched parentheses, sentences starting mid-thought ("Where the last inequality holds…", capitalized, as a fragment) — fold fragments into the preceding display's sentence. Treat every typo as a smell: "a typo usually signals a section that hasn't been looked at enough" (grinberg) — re-read its surroundings.
  6. Footnoted rigor: a footnote that is required to verify a step gets promoted into the proof body; footnotes are for caveats and asides only. Footnote anchors must not be placeable as exponents (ℝ³ vs. footnote 3) — move the anchor to text.
  7. Symbol audit: every symbol used is defined earlier; no letter double-booked; no math symbol immediately following a punctuation mark; ambiguous comma lists ("a ≤ b, c ≤ d") disambiguated with words. Flag undefined symbols (do not invent a definition — that is a content change; ask or route back).

House style (match the author's voice)

Edits should read like the surrounding text, not like a different author. The house fingerprints to preserve:

Workflow

  1. Confirm verified status. This skill assumes correctness is already established. If the proof has not been verified (or the user hasn't vouched for it), say so and offer math-proof (write) / verify-math (verify) instead.
  2. Identify the audience. The detail level, which justifications may go unstated, and how much background to gloss all depend on who reads this (journal referees in the field vs. an interdisciplinary venue vs. students). Default for the user's papers: economics/game-theory journal readers.
  3. Read the entire proof and its context (statement, the results it cites, the results that cite it) before editing anything. Build a small dependency map: which lemmas feed which theorems, which equations are reused.
  4. Pass 1 — Architecture & signposting (Layers 1–2): placement, restatements, glosses, openers, steps, case enumeration, assumption open/close markers.
  5. Pass 2 — Lines & notation (Layers 3–4): justify every relation and sign claim, narrate algebra, expand compressed steps, instantiate citations, fix notation.
  6. Pass 3 — Intuition (Layer 5): add the missing intuition sentences, "in words" translations, and any figure/table/example the reader would otherwise have to produce.
  7. Pass 4 — Grammar & lint (Layer 6 + Mechanical lint): run the read-aloud and "blah" tests on edited passages, then the lint checklist.
  8. Report. Summarize the edits grouped by layer, list the contested edits as proposals, and separately list (a) any spots where you suspected a mathematical gap and deliberately did not edit — these go back to the author; (b) any expansion where you had to derive an intermediate line yourself — these need a correctness re-check, since even "obvious" filled-in algebra is new content. Suspected gaps go back to math-proof/the author; a re-check (e.g. domain-reviewer) confirms plumbing (references, compilation), not the mathematics.

What NOT to do

Sources

Derived from the author's own published papers (Gatekeeper Effect, Mgmt Sci 2026; Information Aggregation in Large Collective Purchases, Econ Theory 2024; Welfare Costs of Informationally Efficient Prices, GEB 2022; Multi-BMBY, JEMS 2026; Learning Approximately Optimal Contracts, arXiv:1811.06736; Counterbalancing Learning and Strategic Incentives, NeurIPS 2021), plus:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.