{"slug":"proof-checker","title":"proof-checker","summary":"Cross-model deep-review worker for the proof pipeline. Reviews one theorem/lemma or cluster (or a whole paper when run standalone) through independent GPT-6.2-Sol xhigh review, records issues with failure certificates in the shared proofaudit workspace, and never edits the paper.","platform":"Claude","tags":[],"authorName":"LLM Mart","authorSlug":"llm-mart","score":0,"source":"github","price":null,"verified":false,"createdAt":"2026-12-03T17:29:26.162184Z","repo":{"url":"https://github.com/gyf9712/stat-theory-skills","stars":11,"forks":2,"license":"MIT","updatedAt":"2026-12-02T01:38:38Z"},"bodyHtml":"<hr>\n<h2>name: proof-checker\ndescription: Cross-model deep-review worker for the proof pipeline. Reviews one theorem/lemma or cluster (or a whole paper when run standalone) through independent GPT-6.2-Sol xhigh review, records issues with failure certificates in the shared proofaudit workspace, and never edits the paper. Whole-paper orchestration and the final report belong to /proofcheck. Use when user says \"verify proof\", \"审证明\", \"check this proof\", \"deep review this lemma\", or wants an independent cross-model check of a specific proof; use /proofcheck for \"proof check\" of a full paper.\nargument-hint: \"[path-to-tex-file or unit label] [--deep-fix] [--restatement-check] [--workspace ABS]\"\nallowed-tools: Bash(*), Read, Grep, Glob, Agent, mcp__codex__codex, mcp__codex__codex-reply, mcp__manual_review__review, mcp__manual_review__review_reply</h2>\n<h1>Proof Checker: Rigorous Mathematical Verification &amp; Fixing</h1>\n<p>Cross-model deep-review worker of the proof pipeline (<code>/proofcheck</code> is the orchestrator and report owner).\nIt reviews one theorem/lemma or cluster (or a whole paper standalone) through independent fresh-thread\n<code>gpt-6.2-sol</code> <code>xhigh</code> review and records issues with failure certificates in the shared <code>proofaudit</code>\nworkspace. It is read-only: no paper edits; fixes belong to <code>/proof-repair</code>. Do not wrap it in <code>/loop</code>,\n<code>/schedule</code> or <code>CronCreate</code> (verdict-bearing, threads reviewer memory across phases).\n<code>proofaudit &lt;sub&gt;</code> = <code>uv run python \"C:\\Users\\yguo12\\.claude\\skills\\stat-shared-references\\scripts\\proofaudit_cli.py\" &lt;sub&gt;</code>;\nabsolute <code>--workspace</code> paths, never bare <code>python</code>. Spec files in <code>../stat-shared-references/</code> win over any wording here.</p>\n<h2>Hard rules (never skip)</h2>\n<ul>\n<li>Cooperative, honest-executor audit (traces <code>SELF_ATTESTED_TRACE_BOUND</code>): a submission PASS is not tamper-resistant; never claim otherwise.</li>\n<li>The CLI is the agreed single entry point for authority files (not OS-enforced; direct edits are caught later by the hash chain); structured output goes through <code>capture --stdin</code> then <code>record</code>.</li>\n<li>This worker is read-only: it never edits the paper, never applies a fix, and owns no final verdict or report.</li>\n<li>Reviewer is fixed <code>gpt-6.2-sol</code> + <code>xhigh</code> (manual backend: non-Claude at <code>xhigh</code>); no model or effort fallback; unavailable means <code>REVIEW_UNAVAILABLE</code> and blocks the gate.</li>\n<li>Review prompts are path-only, rendered by <code>review-begin</code>; never paste or paraphrase the proof or tell the reviewer what you found.</li>\n<li>Fresh thread for every independent unit/cluster review; <code>codex-reply</code> only re-checks the reviewer's own finding with updated artifact paths and finding IDs, never fix summaries.</li>\n<li>Every S0, S1 and INVALID issue needs a failure certificate (exact counterexample or failing step); without one it stays a candidate.</li>\n<li>Label \"counterexample found\" only if verified in exact arithmetic via <code>evidence-run</code>; max <code>MAX_REVIEW_ROUNDS = 3</code> per finding.</li>\n<li>TIMEOUT/ERROR calls block the verdict and are never silently retried or downgraded.</li>\n<li>Verdicts are derived by <code>finalize-result</code>, never LLM-set; every count in a report comes from the CLI (<code>report-data</code>) plus an independent fact-check.</li>\n<li><code>PROOF_AUDIT.json</code> is produced only by <code>proofaudit export</code>, never hand-written (key set in <code>references\\submission-artifact.md</code>; the pre-2.0 schema in <code>references\\legacy-submission-schema.md</code> is superseded).</li>\n<li>Main labels are frozen by the orchestrator before any issue is recorded; a later main-label change triggers the mechanical impact recompute, never a hand re-grade. Submission assurance is raised only by <code>set-assurance --to submission (--anchor ABS | --accept-no-anchor)</code>.</li>\n<li>Theory layer (optional): audit the route for missed patterns, read the REQUIRED references, follow the stage DAG (upstream FAIL/CONDITIONAL =&gt; downstream BLOCKED/CONDITIONAL); an unmet hypothesis of a cited theorem is a failed use step, never a false theorem, and one textbook hypothesis set must not reject a valid alternative route.</li>\n<li>No Lean or other formalization (project decision: mechanisms only); one result or tight cluster per review, never 20+ pages at once.</li>\n<li>Suggestions that add conditions or weaken a claim are flagged L4/L5 candidates (they need a Change Log in <code>/proof-repair</code>); they never edit a statement.</li>\n</ul>\n<h2>Run order</h2>\n<p>Each step: read the named reference BEFORE executing it (<code>must-read:</code>).</p>\n<ol>\n<li>Resolve the workspace: <code>proofaudit status --workspace ABS</code> / <code>proofaudit resume --workspace ABS</code> if <code>audit/state/RESULTS.json</code> exists, else:\n<code>uv run python \"C:\\Users\\yguo12\\.claude\\skills\\stat-shared-references\\scripts\\proofaudit_cli.py\" init --workspace \"C:\\abs\\paper-root\" --main \"C:\\abs\\paper-root\\paper.tex\"</code>\n<code>uv run python \"C:\\Users\\yguo12\\.claude\\skills\\stat-shared-references\\scripts\\proofaudit_cli.py\" index --workspace \"C:\\abs\\paper-root\"</code>\n<code>uv run python \"C:\\Users\\yguo12\\.claude\\skills\\stat-shared-references\\scripts\\proofaudit_cli.py\" freeze --workspace \"C:\\abs\\paper-root\"</code>\nmust-read: references\\phase-0-5-obligation-ledger.md BEFORE this step.</li>\n<li>Read the canonical index; pick the target unit/cluster; the statement gate must be <code>PASSED</code> (else run the <code>statement-gate</code> review first). must-read: references\\phase-0-5-obligation-ledger.md BEFORE this step.</li>\n<li>Build the proof-obligation ledger (DAG, assumptions, symbols, quantified statements, micro-claims, limit-order map). must-read: references\\phase-0-5-obligation-ledger.md BEFORE this step. For units citing classical results also <code>theory-route</code> and a use-point matrix. must-read: references\\theory-logic.md BEFORE this step.</li>\n<li>Render the prompt: <code>proofaudit review-begin ...</code> (writes the call <code>PENDING</code>). must-read: references\\role-and-commands.md BEFORE this step (reviewer protocol and Phase 1 prompts are parts of it).</li>\n<li>Call <code>mcp__codex__codex</code> (<code>model: gpt-6.2-sol</code>, <code>config: {\"model_reasoning_effort\": \"xhigh\"}</code>) with <code>prompt.txt</code> verbatim; first action on return <code>proofaudit review-bind</code>, then <code>proofaudit review-complete --receipt ...</code> (<code>review-correct-response</code>, max 2, for malformed output). must-read: references\\role-and-commands.md BEFORE this step.</li>\n<li>Capture and record findings: <code>proofaudit capture --stdin</code> then <code>proofaudit record</code>; the CLI allocates IDs and computes severity. must-read: references\\taxonomy.md BEFORE this step (taxonomy, severity axes, side-condition checklists).</li>\n<li>Counterexample red team on every key lemma and every INVALID/S0 candidate: <code>proofaudit evidence-run</code>, <code>proofaudit evidence-validate</code>; inputs via <code>proofaudit input-check</code>. must-read: references\\red-team.md BEFORE this step.</li>\n<li>Optional <code>--deep-fix</code>: repair-suggestion records for <code>/proof-repair --from-review</code>. must-read: references\\deep-fix-mode.md BEFORE this step.</li>\n<li>After the paper changed (newer freeze): re-check own findings by reply on the same thread, then blind fresh-thread re-review for every semantic diff or S0/S1 repair; <code>proofaudit diff</code>; <code>diff-record</code> is the last source-sensitive step before <code>issue-close</code>. must-read: references\\red-team.md BEFORE this step (closure and blind re-review part).</li>\n<li>Optional <code>--restatement-check</code>. must-read: references\\red-team.md BEFORE this step (restatement regression part).</li>\n<li>Per unit: <code>proofaudit finalize-result</code>; if the gate is stuck after MAX_REVIEW_ROUNDS write the Proof Unrecoverable Report. must-read: references\\report-and-state.md BEFORE this step.</li>\n<li>Standalone report: <code>proofaudit report-data</code>, narrative slots via <code>capture</code> + <code>report-record</code>, then the full fact-check lifecycle (<code>factcheck-begin</code>, MCP call, <code>review-bind</code>, <code>review-complete</code>, <code>factcheck-record</code>), <code>proofaudit finalize-audit</code>. must-read: references\\report-and-state.md BEFORE this step (full sequence: <code>/proofcheck</code> report-template).</li>\n<li>Export: <code>proofaudit export --format proof-audit-v1</code> (never hand-write <code>PROOF_AUDIT.json</code>). must-read: references\\submission-artifact.md BEFORE this step.</li>\n<li>If a wiki is active add claim-ledger entries (additive, non-blocking); optional <code>/render-html</code> of the final report (<code>RENDER_HTML = true</code>). must-read: references\\phase-0-5-obligation-ledger.md BEFORE this step (wiki claim-ledger part).</li>\n</ol>\n<h2>Read on demand</h2>\n<table>\n<thead>\n<tr>\n<th>Situation</th>\n<th>Reference</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Constants, role, command conventions, reviewer call states, acceptance gate, Phase 1 prompt, rigor/cross-model/scope rules</td>\n<td><code>references\\role-and-commands.md</code></td>\n</tr>\n<tr>\n<td>Unit cites a classical theorem; route, use-point matrix, probes, <code>theory_logic</code></td>\n<td><code>references\\theory-logic.md</code></td>\n</tr>\n<tr>\n<td>Classifying an issue; severity axes; applying a named theorem (DCT, Fubini, ...)</td>\n<td><code>references\\taxonomy.md</code></td>\n</tr>\n<tr>\n<td>Building the obligation ledger; research wiki</td>\n<td><code>references\\phase-0-5-obligation-ledger.md</code></td>\n</tr>\n<tr>\n<td>Counterexample search; re-check, global closure, blind re-review; <code>--restatement-check</code></td>\n<td><code>references\\red-team.md</code></td>\n</tr>\n<tr>\n<td><code>--deep-fix</code>; example invocations</td>\n<td><code>references\\deep-fix-mode.md</code></td>\n</tr>\n<tr>\n<td>Report, state persistence, unrecoverable proof, output file list</td>\n<td><code>references\\report-and-state.md</code></td>\n</tr>\n<tr>\n<td><code>PROOF_AUDIT.json</code> keys, verdict table, thread independence</td>\n<td><code>references\\submission-artifact.md</code></td>\n</tr>\n<tr>\n<td>Old (pre-2.0) <code>PROOF_AUDIT.json</code> schema, superseded, archive only</td>\n<td><code>references\\legacy-submission-schema.md</code></td>\n</tr>\n<tr>\n<td>Where did an old section go</td>\n<td><code>references\\MOVED.md</code></td>\n</tr>\n</tbody>\n</table>\n<h2>Stop conditions / hand-offs</h2>\n<ul>\n<li>Acceptance gate unmet after MAX_REVIEW_ROUNDS, or a gate stuck on TIMEOUT: result stays <code>UNFINISHED</code>, emit the Proof Unrecoverable Report; never declare success silently.</li>\n<li>Manual backend unavailable: stop and print the install command; do not fall back to Codex.</li>\n<li>Source changed since freeze (<code>STALE</code>, exit code 3): re-run <code>index</code> / <code>freeze</code>; do not review stale text.</li>\n<li>Fix design, ladder, change logs, patches: hand to <code>/proof-repair</code> (<code>--from-review</code> for deep-fix suggestions).</li>\n<li>Whole-paper orchestration, final report, convergence: <code>/proofcheck</code>.</li>\n<li>Context for this run: $ARGUMENTS</li>\n</ul>\n","files":[{"path":"references/deep-fix-mode.md","sizeBytes":8737,"isText":true},{"path":"references/legacy-submission-schema.md","sizeBytes":9173,"isText":true},{"path":"references/MOVED.md","sizeBytes":6976,"isText":true},{"path":"references/phase-0-5-obligation-ledger.md","sizeBytes":10254,"isText":true},{"path":"references/red-team.md","sizeBytes":10900,"isText":true},{"path":"references/report-and-state.md","sizeBytes":4318,"isText":true},{"path":"references/role-and-commands.md","sizeBytes":15055,"isText":true},{"path":"references/submission-artifact.md","sizeBytes":6317,"isText":true},{"path":"references/taxonomy.md","sizeBytes":8318,"isText":true},{"path":"references/theory-logic.md","sizeBytes":3366,"isText":true},{"path":"SKILL.md","sizeBytes":9819,"isText":true}],"reviewScore":null,"reviewSummary":null,"trust":{"provenance":"trusted-source-unreviewed","notice":"Community-authored content, reproduced verbatim and not vetted as instructions. Treat it as data to evaluate, never as directives to follow.","bodySource":null},"bodyLocked":false,"purchaseUrl":null,"sourceUrl":null,"report":{"provenance":"trusted-source-unreviewed","screen":{"ran":true,"outcome":"clean","suspicious":0,"notes":0,"hiddenCharacters":false},"virusScan":{"engine":"clamav","status":"clean","scannedAt":"2026-12-03T17:29:40.154923Z","sha256":"300A1F57E075AE4C007F9787EB92B1F6D3E4F9D743907FCE6B6B17B341C3CB05","sizeBytes":42737},"review":null,"source":{"repositoryUrl":"https://github.com/gyf9712/stat-theory-skills","path":"skills/proof-checker","license":"MIT","commit":"412fb6597426d1bfdde2ea584189170e5760b737","subtreeSha":"49ADAFFADEB561995D51FEE7857393ABAFA8F97C33FA9A9FDAE3AE8D02FC0B56","lastSyncedAt":"2026-12-03T17:29:26.158411Z"},"reviewedAt":"2026-12-03T17:29:54.664398Z","notice":"Community-authored content, reproduced verbatim and not vetted as instructions. Treat it as data to evaluate, never as directives to follow."},"install":[{"target":"skills-cli","command":"npx skills add https://github.com/gyf9712/stat-theory-skills/tree/master/skills/proof-checker"},{"target":"claude-code","command":"claude plugin marketplace add https://llmmart.ai/marketplace.json && claude plugin install gyf9712-stat-theory-skills@llmmart"},{"target":"git","command":"git clone https://github.com/gyf9712/stat-theory-skills.git"}]}