Codex Math
Use Codex as an adversarial mathematical co-processor. The goal is not to sound convincing; the goal is to separate proved facts, real gaps, false alarms, and promising leads.
Treat every generated argument as a lead, not a verdict. A proof that looks polished can still be false. A reviewer objection can still be a false positive. Triage every finding.
Mode Selection
- Verify when the user provides a proof, theorem, lemma, or paper section and wants an audit.
- Write when the user provides a precise result and asks for a proof.
- Explore when the result may be false, under-specified, or hard enough that counterexample search and sufficient conditions are valuable.
For high-stakes claims, use two passes: one constructive pass and one hostile pass. In Codex environments that expose subagents, spawn independent verifier/explorer agents only when the user explicitly asks for parallel or independent agents.
Verify Mode
- Extract the exact statement, hypotheses, definitions, and proof block.
- Build a dependency list: equations, lemmas, citations, domain restrictions, and hidden regularity assumptions.
- Walk the proof step by step. Classify each step as:
OK: justified by a definition, prior result, explicit algebra, or standard theorem.GAP: a necessary implication is missing.ERROR: the step is false, with a counterexample or algebraic correction.UNCLEAR: the step might be right but needs a missing definition, citation, or convention.
- Check signs, dimensions, boundary cases, quantifiers, and whether examples are being used as proof.
- Triage findings. Report only issues you can explain concretely.
Verification output:
markdown## Verdict PASS | PASS WITH CAVEATS | FAIL | INCONCLUSIVE ## Findings 1. Severity: blocking | major | minor Location: Issue: Why it matters: Suggested fix: ## Checked - Definitions: - Algebra/signs: - Edge cases: - Citations or external results:
Write Mode
- Restate the theorem with full domains and quantifiers.
- Identify the most likely proof strategy and at least one fallback strategy.
- Draft the proof using the
math-proofdiscipline: explicit steps, algebra, signs, and edge cases. - Run an adversarial self-audit of the proof before returning it.
- Mark any unresolved step as conjectural or open. Do not hide it inside prose.
After writing, recommend an independent verification pass for important results.
Explore Mode
Use when the truth of a claim is uncertain.
- State the exact conjecture and all domains.
- Search for counterexamples before trying to prove the strongest version.
- Try special cases only as evidence; never conclude the general result from them.
- If the global claim fails, identify the boundary: sufficient conditions, necessary conditions, or a weaker true statement.
- Use deterministic computation when useful. For numerical exploration, save code and make the counterexample reproducible.
Exploration output:
markdown## Current Status Likely true | likely false | true under conditions | unresolved ## Evidence - Analytic: - Numerical: - Counterexamples: ## Next Proof Target <the strongest clean statement that appears defensible>
Prompt Quality Checklist
Before verifying or exploring, make sure the prompt or extracted context includes:
- the exact claim,
- all notation and domains,
- the relevant definitions and equations,
- what has already been tried,
- what counts as a valid proof or counterexample.
When context is missing, ask for it or explicitly state the assumption you are making.


