$npx -y skills add morankor/theorist-toolbox --skill codex-mathRun an adversarial mathematical workflow in Codex: verify proofs, write hard proofs, explore conjectures, search for counterexamples, and triage possible gaps. Use for important theorem checks, failed proof attempts, conjectures, independent verification, or requests like 'audit
| 1 | # Codex Math |
| 2 | |
| 3 | 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. |
| 4 | |
| 5 | 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. |
| 6 | |
| 7 | ## Mode Selection |
| 8 | |
| 9 | - **Verify** when the user provides a proof, theorem, lemma, or paper section and wants an audit. |
| 10 | - **Write** when the user provides a precise result and asks for a proof. |
| 11 | - **Explore** when the result may be false, under-specified, or hard enough that counterexample search and sufficient conditions are valuable. |
| 12 | |
| 13 | 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. |
| 14 | |
| 15 | ## Verify Mode |
| 16 | |
| 17 | 1. Extract the exact statement, hypotheses, definitions, and proof block. |
| 18 | 2. Build a dependency list: equations, lemmas, citations, domain restrictions, and hidden regularity assumptions. |
| 19 | 3. Walk the proof step by step. Classify each step as: |
| 20 | - `OK`: justified by a definition, prior result, explicit algebra, or standard theorem. |
| 21 | - `GAP`: a necessary implication is missing. |
| 22 | - `ERROR`: the step is false, with a counterexample or algebraic correction. |
| 23 | - `UNCLEAR`: the step might be right but needs a missing definition, citation, or convention. |
| 24 | 4. Check signs, dimensions, boundary cases, quantifiers, and whether examples are being used as proof. |
| 25 | 5. Triage findings. Report only issues you can explain concretely. |
| 26 | |
| 27 | Verification output: |
| 28 | |
| 29 | ```markdown |
| 30 | ## Verdict |
| 31 | PASS | PASS WITH CAVEATS | FAIL | INCONCLUSIVE |
| 32 | |
| 33 | ## Findings |
| 34 | 1. Severity: blocking | major | minor |
| 35 | Location: |
| 36 | Issue: |
| 37 | Why it matters: |
| 38 | Suggested fix: |
| 39 | |
| 40 | ## Checked |
| 41 | - Definitions: |
| 42 | - Algebra/signs: |
| 43 | - Edge cases: |
| 44 | - Citations or external results: |
| 45 | ``` |
| 46 | |
| 47 | ## Write Mode |
| 48 | |
| 49 | 1. Restate the theorem with full domains and quantifiers. |
| 50 | 2. Identify the most likely proof strategy and at least one fallback strategy. |
| 51 | 3. Draft the proof using the `math-proof` discipline: explicit steps, algebra, signs, and edge cases. |
| 52 | 4. Run an adversarial self-audit of the proof before returning it. |
| 53 | 5. Mark any unresolved step as conjectural or open. Do not hide it inside prose. |
| 54 | |
| 55 | After writing, recommend an independent verification pass for important results. |
| 56 | |
| 57 | ## Explore Mode |
| 58 | |
| 59 | Use when the truth of a claim is uncertain. |
| 60 | |
| 61 | 1. State the exact conjecture and all domains. |
| 62 | 2. Search for counterexamples before trying to prove the strongest version. |
| 63 | 3. Try special cases only as evidence; never conclude the general result from them. |
| 64 | 4. If the global claim fails, identify the boundary: sufficient conditions, necessary conditions, or a weaker true statement. |
| 65 | 5. Use deterministic computation when useful. For numerical exploration, save code and make the counterexample reproducible. |
| 66 | |
| 67 | Exploration output: |
| 68 | |
| 69 | ```markdown |
| 70 | ## Current Status |
| 71 | Likely true | likely false | true under conditions | unresolved |
| 72 | |
| 73 | ## Evidence |
| 74 | - Analytic: |
| 75 | - Numerical: |
| 76 | - Counterexamples: |
| 77 | |
| 78 | ## Next Proof Target |
| 79 | <the strongest clean statement that appears defensible> |
| 80 | ``` |
| 81 | |
| 82 | ## Prompt Quality Checklist |
| 83 | |
| 84 | Before verifying or exploring, make sure the prompt or extracted context includes: |
| 85 | |
| 86 | - the exact claim, |
| 87 | - all notation and domains, |
| 88 | - the relevant definitions and equations, |
| 89 | - what has already been tried, |
| 90 | - what counts as a valid proof or counterexample. |
| 91 | |
| 92 | When context is missing, ask for it or explicitly state the assumption you are making. |