{"slug":"proof-writer","title":"proof-writer","summary":"Writes rigorous mathematical proofs for ML/AI theory as a provisional proof package that stays `Verification: Not checked` until a cross-model pass (inside /proof-repair step 5B it writes to the per-issue path it is given). Use when asked to prove a theorem, lemma, proposition, o","platform":"Claude","tags":[],"authorName":"LLM Mart","authorSlug":"llm-mart","score":0,"source":"github","price":null,"verified":false,"createdAt":"2026-12-03T17:29:26.471916Z","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-writer\ndescription: Writes rigorous mathematical proofs for ML/AI theory as a provisional proof package that stays <code>Verification: Not checked</code> until a cross-model pass (inside /proof-repair step 5B it writes to the per-issue path it is given). Use when asked to prove a theorem, lemma, proposition, or corollary, fill in missing proof steps, formalize a proof sketch, 补全证明, 写证明, 证明某个命题, or determine whether a claimed proof can actually be completed under the stated assumptions.\nargument-hint: [theorem-statement-and-assumptions]\nallowed-tools: Read, Write, Edit, Grep, Glob, Bash\nmodel: opus</h2>\n<h1>Proof Write: Rigorous Theorem / Lemma Drafting</h1>\n<blockquote>\n<p>\uD83D\uDD2C Run this skill on <strong>Claude Opus</strong>. Writing rigorous proofs needs deep reasoning;\nrun <code>/model opus</code> first if your session is not on Opus.</p>\n</blockquote>\n<p>Write a mathematically honest proof package, not a polished fake proof. The surrounding audit is a cooperative,\nhonest-executor audit (no broker; review traces are <code>SELF_ATTESTED_TRACE_BOUND</code>): a package is never \"verified\"\nby this skill and nothing it produces is tamper-resistant evidence.</p>\n<p>Purpose: produce exactly one of three terminal outputs for a claim, never a sketch: (1) a complete proof with every\nobligation closed, (2) a corrected (usually weaker) claim plus its complete proof, or (3) a Blockage Record stating\nwhy the claim is not currently justified. Completion means every nontrivial obligation is a typed closure object,\nnot that the prose reads smoothly. Detail lives in <code>references\\</code>; read the file named in each step.</p>\n<h2>Context: $ARGUMENTS</h2>\n<h2>Hard rules (never skip)</h2>\n<ul>\n<li>Cooperative honest-executor audit: nothing this skill writes is \"verified\" or tamper-resistant evidence (review traces are <code>SELF_ATTESTED_TRACE_BOUND</code>).</li>\n<li>proof-writer never self-verifies: the package header always reads <code>Verification: Not checked</code>; never write <code>Verified</code>, \"Conditionally verified\" or any reviewed status; a clean lint certifies closure only.</li>\n<li>Result is a separate line <code>Writer result: DRAFTED_COMPLETE | BLOCKED</code>; <code>STATUS</code> is exactly one of <code>PROVABLE AS STATED | PROVABLE AFTER WEAKENING / EXTRA ASSUMPTION | NOT CURRENTLY JUSTIFIED</code>.</li>\n<li>Write only PACKAGE_PATH (the caller's per-issue path; standalone: <code>PROOF_PACKAGE_&lt;claim-slug&gt;_&lt;YYYYMMDD&gt;.md</code>, never overwrite another package); never the paper <code>.tex</code>, <code>assumptions.lock.md</code>, <code>cited_results.lock.md</code>, <code>audit/state</code> or <code>audit/01-06</code>.</li>\n<li><code>assumptions.lock.md</code> is strictly read-only: invoke assumptions by registry ID, never append a row, never invent <code>A_new1</code>; a needed new one is an <code>ASSUMPTION_CHANGE_REQUEST</code> with premise <code>PROPOSED:&lt;issue-id&gt;:&lt;n&gt;</code>.</li>\n<li>Preserve the user's original statement; a weaker claim or added assumption is a labeled request to the caller, never a silent replacement.</li>\n<li>Every nontrivial obligation ends <code>CLOSED-LOCAL</code>, <code>CLOSED-CITED</code> (with applicability block) or <code>BLOCKED</code> (with attack record); never close an obligation with prose.</li>\n<li>A <code>CLOSED-LOCAL</code> step that re-proves a known result carries an <code>attribution-candidate</code> block (recall-only, no theorem numbers) so the paper credits the owner; never silently re-derive (references\\proof-construction.md).</li>\n<li>No sketch, partial expansion or deferred step; no \"clearly/obviously/by standard arguments\"; if only a sketch is completable, output a Blockage Record.</li>\n<li>Any <code>BLOCKED</code> obligation forbids <code>PROVABLE AS STATED</code>; an <code>unverified-source</code> load-bearing citation caps the package at <code>AUDIT_PASS_CONDITIONAL</code> territory.</li>\n<li>Locate the verification target and bottleneck before forward algebra (Trap Catalogue in <code>../stat-shared-references/proof-strategy.md</code>); write the proof in Big Four register, not bullet lists.</li>\n<li>Cited classical theorems get one chosen hypothesis set and a use-point obligation per hypothesis, ordered by the stage DAG; boundaries, rate ledger and failure-probability budget are explicit lines; never self-pass. must-read: references\\theory-logic.md BEFORE step 5.</li>\n<li>Always <code>uv run python</code> with absolute script paths (system <code>python</code> is a Store stub).</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>Gather context: caller's package path and frozen statement revision, else user path, else local notes. must-read: references\\workflow-steps.md BEFORE this step (section 1, gather context).</li>\n<li>Normalize the claim; bind assumptions to the lock store read-only. must-read: references\\workflow-steps.md BEFORE this step (section 2, normalize the claim).</li>\n<li>Feasibility triage into exactly one STATUS. must-read: references\\workflow-steps.md BEFORE this step (section 3, feasibility triage).</li>\n<li>Record verification target, bottleneck, resolution path, literature anchor. must-read: references\\workflow-steps.md BEFORE this step (strategy-selection part).</li>\n<li>Build the dependency map and raise numbered obligations <code>O1..Ok</code>, lemmas <code>L1..</code>, bridges <code>B1..</code>. must-read: references\\workflow-steps.md BEFORE this step (section 5, build the dependency map and raise obligations).</li>\n<li>Construct the proof and close every obligation into the ledger. must-read: references\\proof-construction.md BEFORE this step (construction and obligation-ledger parts).</li>\n<li>Fill the package using the exact file structure. must-read: references\\package-template.md BEFORE this step.</li>\n<li>Run the Trap Catalogue checks and record each in <code>## Verification Checks</code>. must-read: references\\proof-construction.md BEFORE this step (verification-checks part).</li>\n<li>Lint, resolve every <code>STRUCTURAL-INCOMPLETE</code>, review each <code>CANDIDATE</code>. must-read: references\\proof-construction.md BEFORE this step (verification-checks part).</li>\n</ol>\n<pre><code>uv run python \"C:\\Users\\yguo12\\.claude\\skills\\stat-shared-references\\scripts\\proof_gap_scan.py\" --proof \"&lt;PACKAGE_PATH&gt;\"\n</code></pre>\n<ol start=\"10\">\n<li>Reply briefly: status, <code>Writer result</code>, <code>Verification: Not checked</code>, claim unchanged or not, obligation count and BLOCKED count, assumption change requests, lint result, file path. must-read: references\\constants-and-goal.md BEFORE this step (chat response and key rules part).</li>\n</ol>\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>Constants, STATUS and WRITER_RESULT values, goal</td>\n<td>references\\constants-and-goal.md</td>\n</tr>\n<tr>\n<td>Cited classical theorem; hypothesis sets, stage order, ledgers</td>\n<td>references\\theory-logic.md</td>\n</tr>\n<tr>\n<td>User asks for a sketch, outline, or \"just expand a bit\" (termination rule)</td>\n<td>references\\constants-and-goal.md</td>\n</tr>\n<tr>\n<td>Citing an imported result (applicability block fields)</td>\n<td>references\\proof-construction.md</td>\n</tr>\n<tr>\n<td>Lint output unclear, malformed <code>Verification</code> line</td>\n<td>references\\proof-construction.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>Claim false or not completable: write the Blockage Record (<code>NOT CURRENTLY JUSTIFIED</code>) with counterexample or repaired statement.</li>\n<li>Verification is never granted here; the orchestrator sets it after a Codex pass (<code>/proof-repair</code> step 8 / reference 5B, <code>/proofcheck</code>).</li>\n<li>Output produced after a plan reached <code>CONVERGED</code> re-opens the plan (the caller forces a new <code>--post-repair</code>).</li>\n<li>Missing lock file for a multi-theorem framework: proceed with local assumptions and flag that <code>theory-design</code> should initialize one.</li>\n</ul>\n","files":[{"path":"references/constants-and-goal.md","sizeBytes":5772,"isText":true},{"path":"references/MOVED.md","sizeBytes":3806,"isText":true},{"path":"references/package-template.md","sizeBytes":3859,"isText":true},{"path":"references/proof-construction.md","sizeBytes":8055,"isText":true},{"path":"references/theory-logic.md","sizeBytes":1340,"isText":true},{"path":"references/workflow-steps.md","sizeBytes":6151,"isText":true},{"path":"SKILL.md","sizeBytes":7176,"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:41.602778Z","sha256":"1D8A6DC608572766C31429E24B08B7D709D0FFA667D177178698BD4E91615F3C","sizeBytes":17619},"review":null,"source":{"repositoryUrl":"https://github.com/gyf9712/stat-theory-skills","path":"skills/proof-writer","license":"MIT","commit":"412fb6597426d1bfdde2ea584189170e5760b737","subtreeSha":"31313C441F695AA9ED20FDDE687C97C35B10FCB2ECD900928475275C3C6DE3BE","lastSyncedAt":"2026-12-03T17:29:26.158411Z"},"reviewedAt":"2026-12-03T17:29:54.927822Z","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-writer"},{"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"}]}