Math workflow
Solve the user's stated problem. Do not turn it into a broad research project.
Workflow
- Restate the problem and identify its mathematical domain. Determine whether the user wants a proof, computation, corpus lookup, or formal verification; clarify only blocking ambiguities.
- Use
math_searchfor related manuscripts and strategies. Start broad, then narrow by terminology or hypotheses. Usemath_manuscriptto read only the relevant abstract, outline, or LaTeX section. If the TeX source is missing or you need the released wording, usemath_pdf_texton selected pages. - For a proof, give a lemma plan before algebra. Separate results cited from the corpus from new derivation, and check that each cited result's hypotheses apply.
- For requested formal verification or a Lean statement, use
math_lean_searchto locate existing declarations,math_lean_checkon small snippets first, thenmath_lean_buildfor the focused target. Usemath_comparatoronly when a matching challenge config exists. Do not build the entire package by default. - For numerical or symbolic work, use
math_computefor allowlisted SymPy operations. Otherwise show the computation and state the execution limitation. Numerical evidence is not a proof of an exact claim. - Independently check edge cases, quantifiers, hypotheses, and intermediate steps. Confirm whether each Lean check actually passed and what statement it checked; a passing unrelated snippet does not verify the requested theorem.
Corpus and verification guardrails
math/CONTENTS.mdmaps 721 manuscripts in 373 result families. The archive contains raw research outputs, not independently certified results.- Currently 175 papers have Lean formalizations;
math/lean/formalization.yamlis the catalogue. Presence in the catalogue does not certify every claim in a paper. - Check
math/history.mdwhen a result looks suspicious; it records revisions and withdrawals. Do not rely silently on a withdrawn result. - Never claim a paper is verified merely because it is in the corpus.
- Never claim Lean verification unless the relevant
math_lean_check,math_lean_build, ormath_comparatorinvocation actually succeeded. Report failures, skipped checks, missing prerequisites, and remaining gaps explicitly. math/lean/is the single Lake packageOAI, pinned toleanprover/lean4:v4.34.1. Prefer focused targets such asOAI.Analysis.- Use
math_statusto inspect current availability; do not treat an unavailable check as success. Native Windows Lean builds can be blocked by an NTFS-invalid path in the pinned dependency set, and Comparator/landrun require Linux/WSL. Report such blockers instead of silently switching claims. - Cite source paths relative to
math/, for examplelean/formalization.yaml, with manuscript identifiers and section names where available.
Tool-use patterns
- Query broad first, then narrow; do not perform repo-wide discovery for a localized question.
- Read relevant sections rather than whole PDFs. Resolve released PDF paths from metadata rather than assuming a filename; use
math_pdf_textonly for selected pages. - Prefer
math_grepfor exact names or notation in TeX, Markdown, and Lean; usemath_lean_searchfor declaration names. Scope searches to relevant files or directories when possible. - Use
math_computefor symbolic checks, but state the operation and verify the returned expression independently. - Keep output bounded: summarize matches and quote only the needed statements or proof steps.
- Use
math_reindexaftermath/changes when the index needs refreshing.
Answer shape
- Theorem / claim: precise statement, assumptions, and scope.
- Proof / derivation: lemma plan and justified steps, or the requested computation or lookup.
- Verification status: checks actually run, outcomes, and limits of their coverage.
- Sources: relevant corpus paths and sections; distinguish citations from new work.
- Open gaps: unresolved steps or missing checks, or explicitly none identified.