{"slug":"proofcheck","title":"proofcheck","summary":"Orchestrates a whole-paper audit of the mathematical proofs in a statistics/ML theory paper (statement gate, input provenance, per-unit checks, cross-model review, final report) and the --post-repair convergence audit. Use when user says \"proof check\", \"check proofs\", \"verify pro","platform":"Claude","tags":[],"authorName":"LLM Mart","authorSlug":"llm-mart","score":0,"source":"github","price":null,"verified":false,"createdAt":"2026-12-03T17:29:26.659649Z","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: proofcheck\ndescription: Orchestrates a whole-paper audit of the mathematical proofs in a statistics/ML theory paper (statement gate, input provenance, per-unit checks, cross-model review, final report) and the --post-repair convergence audit. Use when user says \"proof check\", \"check proofs\", \"verify proofs\", \"audit paper\", \"检查证明\", \"证明验证\", or wants to verify correctness of a paper's mathematical proofs. For one result or cluster only, /proof-checker is the deep-review worker.\nargument-hint: [path-to-paper.tex or paper-name] [--post-repair] [--assurance draft|submission] [--online] [--resume]\nallowed-tools: Bash(*), Read, Grep, Glob, Agent, mcp__codex__codex, mcp__codex__codex-reply\nmodel: opus</h2>\n<h1>ProofCheck — Mathematical Proof Verification for Statistics/ML Theory Papers</h1>\n<blockquote>\n<p>\uD83D\uDD2C <strong>Model Recommendation</strong>: Run this skill on <strong>Claude Opus</strong> for best results.\nMathematical proof verification requires deep reasoning. If your session is not on\nOpus, run <code>/model opus</code> before invoking. The skill will also delegate heavy\nreasoning to Opus sub-agents internally when the Agent tool is used.</p>\n</blockquote>\n<p>Systematically check proofs in long technical appendices using a structured, evidence-based methodology with multi-pass verification.</p>\n<p>Based on: <a href=\"https://github.com/maweiruc/proofcheck-stat-paper\">https://github.com/maweiruc/proofcheck-stat-paper</a></p>\n<p>Purpose: audit every proof of a statistics/ML theory paper (statement gate, input provenance, per-unit checks,\ncross-model review, final report) and, with <code>--post-repair</code>, run the delta convergence audit. The goal is to find\ncorrectness issues, never to summarize or silently repair a proof. <code>/proof-checker</code> is the per-result deep-review\nworker; <code>/proof-repair</code> and <code>/proof-writer</code> run only after the audit is final. Full detail lives in <code>references\\</code>;\nread the file named in each step, not the whole directory.</p>\n<h2>Context: $ARGUMENTS</h2>\n<h2>Hard rules (never skip)</h2>\n<ul>\n<li>Cooperative trust model: honest-executor audit, no broker; reviews are <code>SELF_ATTESTED_TRACE_BOUND</code>; a <code>PASS</code> is not tamper-resistant and the report never says otherwise.</li>\n<li>The <code>proofaudit</code> CLI is the agreed single entry point for authority files (<code>audit/state/*</code>, <code>audit/01-08</code>, <code>PROOF_AUDIT.json</code>) and the paper source; never hand-write them (agreement, not OS-enforced).</li>\n<li>LLM output (proposals, sub-agent shards, Codex text) goes to <code>audit/inbox/</code> via <code>capture --stdin</code> and enters only through <code>record</code>.</li>\n<li>Statement gate before any deep check: no unit proceeds unless <code>gate.status = PASSED</code>; a rejected statement gets a new revision, never an in-place patch.</li>\n<li>One lemma/result (or one tight cluster) at a time; never send 20+ pages to a single review. Mechanisms only: no Lean or other formalization (project decision); the label stays <code>AUDIT_PASS (non-formal)</code>.</li>\n<li>Main labels (<code>init --main-label</code>) are frozen before any issue or review is recorded; adding one later triggers the mechanical impact recompute (S0/S1 may drop to <code>SUSPECT</code>, units go <code>STALE</code>): never re-grade by hand.</li>\n<li>S0, S1 and every INVALID issue need a failure certificate; without one the issue is <code>CANDIDATE</code>/<code>SUSPECT</code> and the result stays <code>UNFINISHED</code>. Float/random evidence is only ever a <code>CANDIDATE</code>.</li>\n<li>Severity is computed by the CLI from axes plus the dependency graph; you propose axes, never the level.</li>\n<li>Codex reviews: model <code>gpt-6.2-sol</code>, <code>xhigh</code>, fresh thread per result or cluster, prompts rendered by the CLI, file paths only, never Claude's issue or verdict; never fall back to lower effort or another model.</li>\n<li>Counts and tables in the report come only from <code>report-data</code>; a fresh read-only fact-check bound to the candidate hash must pass before <code>finalize-audit</code>.</li>\n<li>Theorem-using units get a theory route before the deep check (optional layer): REQUIRED patterns' references are read, every theorem application has a use-point matrix, and an upstream FAIL/CONDITIONAL makes downstream stages BLOCKED/CONDITIONAL, never an independent PASS; an unmet hypothesis is not a false theorem.</li>\n<li>Never edit the paper and never silently repair a proof: record the mismatch (proves B, claims A).</li>\n<li>Never pass <code>--engine</code> (not implemented); <code>--assurance</code> defaults to <code>draft</code>; it rises only via <code>set-assurance --to submission (--anchor ABS | --accept-no-anchor)</code> and <code>finalize-audit --assurance</code> never exceeds the run's level; <code>--auto-repair</code> only on explicit user opt-in.</li>\n<li><code>repair-integrity</code> never rebaselines semantic files; only a human runs it, with <code>--invalidate-all --reviewed-diff-sha256 HASH</code> for semantic damage (exit code 3 on any mutating command means stop).</li>\n<li>Final label is <code>AUDIT_PASS (non-formal)</code>; never \"proved\" or \"formally verified\".</li>\n<li>Always <code>uv run python</code> (never bare <code>python</code>), absolute paths for every <code>--workspace</code>.</li>\n</ul>\n<h2>Run order</h2>\n<p>Each step: read the named reference BEFORE executing it (<code>must-read:</code>); if a step's file is unread, stop.\nCLI = <code>uv run python \"C:\\Users\\yguo12\\.claude\\skills\\stat-shared-references\\scripts\\proofaudit_cli.py\"</code>. The full per-command sequence (reviews, finalize, fact-check lifecycle) is in <code>references\\report-template.md</code>.</p>\n<ol>\n<li>Resolve <code>$ARGUMENTS</code> to absolute paths; re-entering an existing workspace -&gt; <code>resume</code> and continue from the phase it returns. must-read: references\\workflow-setup-index.md BEFORE this step (session resume).</li>\n<li>Setup workspace (<code>init</code>; submission needs <code>--anchor</code> or <code>--accept-no-anchor</code>), then bootstrap: read the paper, write the architecture narrative, <code>index</code> (dry run), <code>freeze</code>. must-read: references\\workflow-setup-index.md BEFORE this step.</li>\n<li>Pass 0: inventory, cross-reference audit, notation ledger, statement gate, input provenance. must-read: references\\workflow-pass0.md BEFORE this step.</li>\n<li>Per unit: provability triage and strategy classification first. must-read: references\\contract-and-principles.md BEFORE this step.</li>\n<li>Pass 1 critical path (sketch-vs-complete first), unit record, step completeness. must-read: references\\workflow-pass1.md BEFORE this step. For units that cite classical results: <code>theory-route</code>, record activations, read the REQUIRED references, then record <code>theory_logic</code> with the local check. must-read: references\\theory-logic.md BEFORE this step.</li>\n<li>Passes 2-3 (support lemmas, global consistency), Pass 4 adversarial (mandatory counterexample attempt for INVALID/S0 candidates), Codex cross-review per shard, then bind and complete. must-read: references\\workflow-passes-2-4.md BEFORE this step.</li>\n<li>Final report: <code>finalize-result</code> per unit, <code>report-data</code>, narrative slots (<code>capture</code> then <code>report-record</code>), fact-check, <code>finalize-audit</code>, <code>export</code>, <code>snapshot</code>; then check the acceptance list. must-read: references\\report-template.md BEFORE this step.</li>\n<li><code>--post-repair</code> (after <code>/proof-repair</code>, explicit user request only): delta audit plus fresh-thread convergence review. must-read: references\\post-repair.md BEFORE this step.</li>\n</ol>\n<p>Phase-level commands (everything else is in the references above):</p>\n<pre><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\" --assurance submission --anchor \"C:\\abs\\anchors\\paper-anchor.jsonl\"\nuv run python \"C:\\Users\\yguo12\\.claude\\skills\\stat-shared-references\\scripts\\proofaudit_cli.py\" freeze --workspace \"C:\\abs\\paper-root\"\nuv run python \"C:\\Users\\yguo12\\.claude\\skills\\stat-shared-references\\scripts\\proofaudit_cli.py\" finalize-result --workspace \"C:\\abs\\paper-root\" --unit-id U-0007\nuv run python \"C:\\Users\\yguo12\\.claude\\skills\\stat-shared-references\\scripts\\proofaudit_cli.py\" finalize-audit --workspace \"C:\\abs\\paper-root\"\nuv run python \"C:\\Users\\yguo12\\.claude\\skills\\stat-shared-references\\scripts\\proofaudit_cli.py\" export --workspace \"C:\\abs\\paper-root\" --format proof-audit-v1 --output \"C:\\abs\\paper-root\\PROOF_AUDIT.json\"\n</code></pre>\n<h2>Read on demand</h2>\n<table>\n<thead>\n<tr>\n<th>Situation</th>\n<th>File</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Authority, commands, flags, final label, operating principles, severity axes, provability triage, pipeline chain</td>\n<td>references\\contract-and-principles.md</td>\n</tr>\n<tr>\n<td>Unit looks like a sketch; writing the per-unit <code>check.json</code> view; suspected skipped steps</td>\n<td>references\\workflow-pass1.md</td>\n</tr>\n<tr>\n<td>Unit cites a classical theorem; route, use-point matrix, probes, <code>theory_logic</code></td>\n<td>references\\theory-logic.md</td>\n</tr>\n<tr>\n<td>Diagnostic checklist of typical errors; asymptotic, concentration, optimization, Markov chain, M-estimation papers</td>\n<td>references\\failure-patterns.md</td>\n</tr>\n<tr>\n<td>Little time (draft-assurance minimum); crash, stale source, parallel shards</td>\n<td>references\\workflow-setup-index.md</td>\n</tr>\n<tr>\n<td>Codex shard coverage and reconciliation</td>\n<td>references\\workflow-passes-2-4.md</td>\n</tr>\n<tr>\n<td>Fact-check lifecycle, report structure, acceptance list</td>\n<td>references\\report-template.md</td>\n</tr>\n<tr>\n<td>Where did an old section go</td>\n<td>references\\MOVED.md</td>\n</tr>\n</tbody>\n</table>\n<h2>Stop conditions / hand-offs</h2>\n<ul>\n<li>Any review call in state <code>TIMEOUT</code>, <code>ERROR</code>, <code>PENDING</code> or <code>NOT_RUN</code> makes the unit <code>UNFINISHED</code>; stop that gate, never retry silently or lower effort.</li>\n<li>Exit code 3 from a mutating command means integrity mismatch or STALE source: stop, only a human runs the two-step <code>repair-integrity</code>.</li>\n<li>Outstanding sketches (J &gt; 0) cap the judgment at Incomplete; report checked AND unchecked scope honestly.</li>\n<li>Repair is a separate explicit user request (<code>/proof-repair</code>); never auto-trigger it; after patches run <code>--post-repair</code>.</li>\n<li>Findings Codex and Claude disagree on after 3 rounds per finding escalate to the user.</li>\n</ul>\n","files":[{"path":"references/contract-and-principles.md","sizeBytes":10089,"isText":true},{"path":"references/failure-patterns.md","sizeBytes":2534,"isText":true},{"path":"references/MOVED.md","sizeBytes":9610,"isText":true},{"path":"references/post-repair.md","sizeBytes":23178,"isText":true},{"path":"references/report-template.md","sizeBytes":8841,"isText":true},{"path":"references/theory-logic.md","sizeBytes":3366,"isText":true},{"path":"references/workflow-pass0.md","sizeBytes":4297,"isText":true},{"path":"references/workflow-pass1.md","sizeBytes":14226,"isText":true},{"path":"references/workflow-passes-2-4.md","sizeBytes":14686,"isText":true},{"path":"references/workflow-setup-index.md","sizeBytes":8971,"isText":true},{"path":"SKILL.md","sizeBytes":9376,"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:42.354342Z","sha256":"89AB566DCCE7CB263FCF1F518628D1296B317F62BC0BDBF5D1FBD8FCABFC4281","sizeBytes":46816},"review":null,"source":{"repositoryUrl":"https://github.com/gyf9712/stat-theory-skills","path":"skills/proofcheck","license":"MIT","commit":"412fb6597426d1bfdde2ea584189170e5760b737","subtreeSha":"B74BC4E7BA28C4A9EF30003ED4482AE78086326D6D9D646D4483312F7B6FD9FE","lastSyncedAt":"2026-12-03T17:29:26.158411Z"},"reviewedAt":"2026-12-03T17:29:55.028733Z","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/proofcheck"},{"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"}]}