agentleFS
gyf9712gyf9712/stat-theory-skills/skills/proof-writer/SKILL.md

proof-writer

Skill11 starsChanged 6 months agoMITView on GitHub

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, 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.

9 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use formula-derivation and research-wiki.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • raja21068Skill

    formula-derivation

    Structures and derives research formulas when the user wants to 推导公式, build a theory line, organize assumptions, turn scattered equations into a coherent derivation, or rewrite theory notes into a paper-ready formula document. Use when the derivation target is not yet fully fixed, the main object still needs to be chosen, or the user needs a coherent derivation package rather than a finished theorem proof.

    Also in 3 projects that use this

  • YuchengZhang256Skill

    research-wiki

    In an existing research wiki, ingest papers, answer wiki queries, or lint compiled Markdown pages.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

6 rules. 1 is common, 1 is distinctive, and 4 are very specific to this project.

  • 1

    Common

    Most of the 8 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Common:

    Write a mathematically honest proof package, not a polished fake proof.

    line 14
  2. Very specific:

    Write only PACKAGE_PATH (the caller's per-issue path.

    line 30
  3. Very specific:

    Every nontrivial obligation ends CLOSED-LOCAL, CLOSED-CITED (with applicability block) or BLOCKED (with attack record).

    line 33
  4. Distinctive:

    No sketch, partial expansion or deferred step.

    line 34
  5. Very specific:

    Always uv run python with absolute script paths (system python is a Store stub).

    line 38
  6. Very specific:

    Run the Trap Catalogue checks and record each in ## Verification Checks.

    line 51

“Common” is measured: kept by at least 6 in 10 of the 8 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Proof Write: Rigorous Theorem / Lemma Drafting

🔬 Run this skill on Claude Opus. Writing rigorous proofs needs deep reasoning; run /model opus first if your session is not on Opus.

Write a mathematically honest proof package, not a polished fake proof. The surrounding audit is a cooperative, honest-executor audit (no broker; review traces are SELF_ATTESTED_TRACE_BOUND): a package is never "verified" by this skill and nothing it produces is tamper-resistant evidence.

Purpose: produce exactly one of three terminal outputs for a claim, never a sketch: (1) a complete proof with every obligation closed, (2) a corrected (usually weaker) claim plus its complete proof, or (3) a Blockage Record stating why the claim is not currently justified. Completion means every nontrivial obligation is a typed closure object, not that the prose reads smoothly. Detail lives in references\; read the file named in each step.

Context: $ARGUMENTS

Hard rules (never skip)

  • Cooperative honest-executor audit: nothing this skill writes is "verified" or tamper-resistant evidence (review traces are SELF_ATTESTED_TRACE_BOUND).
  • proof-writer never self-verifies: the package header always reads Verification: Not checked; never write Verified, "Conditionally verified" or any reviewed status; a clean lint certifies closure only.
  • Result is a separate line Writer result: DRAFTED_COMPLETE | BLOCKED; STATUS is exactly one of PROVABLE AS STATED | PROVABLE AFTER WEAKENING / EXTRA ASSUMPTION | NOT CURRENTLY JUSTIFIED.
  • Write only PACKAGE_PATH (the caller's per-issue path; standalone: PROOF_PACKAGE_<claim-slug>_<YYYYMMDD>.md, never overwrite another package); never the paper .tex, assumptions.lock.md, cited_results.lock.md, audit/state or audit/01-06.
  • assumptions.lock.md is strictly read-only: invoke assumptions by registry ID, never append a row, never invent A_new1; a needed new one is an ASSUMPTION_CHANGE_REQUEST with premise PROPOSED:<issue-id>:<n>.
  • Preserve the user's original statement; a weaker claim or added assumption is a labeled request to the caller, never a silent replacement.
  • Every nontrivial obligation ends CLOSED-LOCAL, CLOSED-CITED (with applicability block) or BLOCKED (with attack record); never close an obligation with prose.
  • No sketch, partial expansion or deferred step; no "clearly/obviously/by standard arguments"; if only a sketch is completable, output a Blockage Record.
  • Any BLOCKED obligation forbids PROVABLE AS STATED; an unverified-source load-bearing citation caps the package at AUDIT_PASS_CONDITIONAL territory.
  • Locate the verification target and bottleneck before forward algebra (Trap Catalogue in ../stat-shared-references/proof-strategy.md); write the proof in Big Four register, not bullet lists.
  • 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.
  • Always uv run python with absolute script paths (system python is a Store stub).

Run order

Each step: read the named reference BEFORE executing it (must-read:).

  1. 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).
  2. 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).
  3. Feasibility triage into exactly one STATUS. must-read: references\workflow-steps.md BEFORE this step (section 3, feasibility triage).
  4. Record verification target, bottleneck, resolution path, literature anchor. must-read: references\workflow-steps.md BEFORE this step (strategy-selection part).
  5. Build the dependency map and raise numbered obligations O1..Ok, lemmas L1.., bridges B1... must-read: references\workflow-steps.md BEFORE this step (section 5, build the dependency map and raise obligations).
  6. Construct the proof and close every obligation into the ledger. must-read: references\proof-construction.md BEFORE this step (construction and obligation-ledger parts).
  7. Fill the package using the exact file structure. must-read: references\package-template.md BEFORE this step.
  8. Run the Trap Catalogue checks and record each in ## Verification Checks. must-read: references\proof-construction.md BEFORE this step (verification-checks part).
  9. Lint, resolve every STRUCTURAL-INCOMPLETE, review each CANDIDATE. must-read: references\proof-construction.md BEFORE this step (verification-checks part).
uv run python "C:\Users\yguo12\.claude\skills\stat-shared-references\scripts\proof_gap_scan.py" --proof "<PACKAGE_PATH>"
  1. Reply briefly: status, Writer result, Verification: Not checked, 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).

Read on demand

SituationFile
Constants, STATUS and WRITER_RESULT values, goalreferences\constants-and-goal.md
Cited classical theorem; hypothesis sets, stage order, ledgersreferences\theory-logic.md
User asks for a sketch, outline, or "just expand a bit" (termination rule)references\constants-and-goal.md
Citing an imported result (applicability block fields)references\proof-construction.md
Lint output unclear, malformed Verification linereferences\proof-construction.md
Where did an old section goreferences\MOVED.md

Stop conditions / hand-offs

  • Claim false or not completable: write the Blockage Record (NOT CURRENTLY JUSTIFIED) with counterexample or repaired statement.
  • Verification is never granted here; the orchestrator sets it after a Codex pass (/proof-repair step 8 / reference 5B, /proofcheck).
  • Output produced after a plan reached CONVERGED re-opens the plan (the caller forces a new --post-repair).
  • Missing lock file for a multi-theorem framework: proceed with local assumptions and flag that theory-design should initialize one.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.