agentleFS
gyf9712gyf9712/stat-theory-skills/skills/proofcheck/SKILL.md

proofcheck

Skill11 starsChanged 6 months agoMITView on GitHub

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.

1 other project uses a version of this.

Adopted by

Most recently taken up by

  • Other versions1 project uses a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 1

    1. zanybu/plot-and-prove★ 0same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository6 other files it gives its agents.

The file

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 1 is distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Never edit the paper and never silently repair a proof: record the mismatch (proves B, claims A).

    line 41
  2. Very specific:

    Never pass --engine (not implemented).

    line 42
  3. Very specific:

    Always uv run python (never bare python), absolute paths for every --workspace.

    line 45

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “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

ProofCheck — Mathematical Proof Verification for Statistics/ML Theory Papers

🔬 Model Recommendation: Run this skill on Claude Opus for best results. Mathematical proof verification requires deep reasoning. If your session is not on Opus, run /model opus before invoking. The skill will also delegate heavy reasoning to Opus sub-agents internally when the Agent tool is used.

Systematically check proofs in long technical appendices using a structured, evidence-based methodology with multi-pass verification.

Based on: https://github.com/maweiruc/proofcheck-stat-paper

Purpose: audit every proof of a statistics/ML theory paper (statement gate, input provenance, per-unit checks, cross-model review, final report) and, with --post-repair, run the delta convergence audit. The goal is to find correctness issues, never to summarize or silently repair a proof. /proof-checker is the per-result deep-review worker; /proof-repair and /proof-writer run only after the audit is final. Full detail lives in references\; read the file named in each step, not the whole directory.

Context: $ARGUMENTS

Hard rules (never skip)

  • Cooperative trust model: honest-executor audit, no broker; reviews are SELF_ATTESTED_TRACE_BOUND; a PASS is not tamper-resistant and the report never says otherwise.
  • The proofaudit CLI is the agreed single entry point for authority files (audit/state/*, audit/01-08, PROOF_AUDIT.json) and the paper source; never hand-write them (agreement, not OS-enforced).
  • LLM output (proposals, sub-agent shards, Codex text) goes to audit/inbox/ via capture --stdin and enters only through record.
  • Statement gate before any deep check: no unit proceeds unless gate.status = PASSED; a rejected statement gets a new revision, never an in-place patch.
  • 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 AUDIT_PASS (non-formal).
  • Main labels (init --main-label) are frozen before any issue or review is recorded; adding one later triggers the mechanical impact recompute (S0/S1 may drop to SUSPECT, units go STALE): never re-grade by hand.
  • S0, S1 and every INVALID issue need a failure certificate; without one the issue is CANDIDATE/SUSPECT and the result stays UNFINISHED. Float/random evidence is only ever a CANDIDATE.
  • Severity is computed by the CLI from axes plus the dependency graph; you propose axes, never the level.
  • Codex reviews: model gpt-5.6-sol, xhigh, 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.
  • Counts and tables in the report come only from report-data; a fresh read-only fact-check bound to the candidate hash must pass before finalize-audit.
  • 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.
  • Never edit the paper and never silently repair a proof: record the mismatch (proves B, claims A).
  • Never pass --engine (not implemented); --assurance defaults to draft; it rises only via set-assurance --to submission (--anchor ABS | --accept-no-anchor) and finalize-audit --assurance never exceeds the run's level; --auto-repair only on explicit user opt-in.
  • repair-integrity never rebaselines semantic files; only a human runs it, with --invalidate-all --reviewed-diff-sha256 HASH for semantic damage (exit code 3 on any mutating command means stop).
  • Final label is AUDIT_PASS (non-formal); never "proved" or "formally verified".
  • Always uv run python (never bare python), absolute paths for every --workspace.

Run order

Each step: read the named reference BEFORE executing it (must-read:); if a step's file is unread, stop. CLI = uv run python "C:\Users\yguo12\.claude\skills\stat-shared-references\scripts\proofaudit_cli.py". The full per-command sequence (reviews, finalize, fact-check lifecycle) is in references\report-template.md.

  1. Resolve $ARGUMENTS to absolute paths; re-entering an existing workspace -> resume and continue from the phase it returns. must-read: references\workflow-setup-index.md BEFORE this step (session resume).
  2. Setup workspace (init; submission needs --anchor or --accept-no-anchor), then bootstrap: read the paper, write the architecture narrative, index (dry run), freeze. must-read: references\workflow-setup-index.md BEFORE this step.
  3. Pass 0: inventory, cross-reference audit, notation ledger, statement gate, input provenance. must-read: references\workflow-pass0.md BEFORE this step.
  4. Per unit: provability triage and strategy classification first. must-read: references\contract-and-principles.md BEFORE this step.
  5. 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: theory-route, record activations, read the REQUIRED references, then record theory_logic with the local check. must-read: references\theory-logic.md BEFORE this step.
  6. 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.
  7. Final report: finalize-result per unit, report-data, narrative slots (capture then report-record), fact-check, finalize-audit, export, snapshot; then check the acceptance list. must-read: references\report-template.md BEFORE this step.
  8. --post-repair (after /proof-repair, explicit user request only): delta audit plus fresh-thread convergence review. must-read: references\post-repair.md BEFORE this step.

Phase-level commands (everything else is in the references above):

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"
uv run python "C:\Users\yguo12\.claude\skills\stat-shared-references\scripts\proofaudit_cli.py" freeze --workspace "C:\abs\paper-root"
uv 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
uv run python "C:\Users\yguo12\.claude\skills\stat-shared-references\scripts\proofaudit_cli.py" finalize-audit --workspace "C:\abs\paper-root"
uv 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"

Read on demand

SituationFile
Authority, commands, flags, final label, operating principles, severity axes, provability triage, pipeline chainreferences\contract-and-principles.md
Unit looks like a sketch; writing the per-unit check.json view; suspected skipped stepsreferences\workflow-pass1.md
Unit cites a classical theorem; route, use-point matrix, probes, theory_logicreferences\theory-logic.md
Diagnostic checklist of typical errors; asymptotic, concentration, optimization, Markov chain, M-estimation papersreferences\failure-patterns.md
Little time (draft-assurance minimum); crash, stale source, parallel shardsreferences\workflow-setup-index.md
Codex shard coverage and reconciliationreferences\workflow-passes-2-4.md
Fact-check lifecycle, report structure, acceptance listreferences\report-template.md
Where did an old section goreferences\MOVED.md

Stop conditions / hand-offs

  • Any review call in state TIMEOUT, ERROR, PENDING or NOT_RUN makes the unit UNFINISHED; stop that gate, never retry silently or lower effort.
  • Exit code 3 from a mutating command means integrity mismatch or STALE source: stop, only a human runs the two-step repair-integrity.
  • Outstanding sketches (J > 0) cap the judgment at Incomplete; report checked AND unchecked scope honestly.
  • Repair is a separate explicit user request (/proof-repair); never auto-trigger it; after patches run --post-repair.
  • Findings Codex and Claude disagree on after 3 rounds per finding escalate to the user.

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.