Skip to content

r-irbe/proof-skills

Repository files navigation

proof-skills

A bundle of Agent Skills for Lean 4 + Mathlib4 proof work.

Tactics · domain math · doc / review / research workflows · zettelkasten · generic tooling.

License: Apache 2.0 Lean 4 Mathlib4 APM First-party skills Overrides


Quick start

Install into any coding-agent harness via APM:

apm install r-irbe/proof-skills                       # entire bundle
apm install r-irbe/proof-skills --skill lean-proof    # single skill
apm install r-irbe/proof-skills#v0.1.0                # version-pinned

After installation, each skill is hoisted into the harness's runtime directory — Copilot, Claude Code, Cursor, OpenCode, Codex, Gemini, or Windsurf — and becomes invocable by name. Pinning, single-skill selection, and lockfile reproducibility work the same way they do for any other APM package; the manifest is apm.yml and the layout is APM's skill collection type.

Prefer the source tree on disk instead?

git clone --recurse-submodules https://github.com/r-irbe/proof-skills

What is in here

Directory What it holds Loaded by
skills/ 53 first-party SKILL.md files: toolchain setup, proof tactics, MWE extraction, bisection, PR hygiene, Mathlib review, domain math, applied verticals, and end-to-end process workflows (blueprint regeneration, retrospective audits). Harness, on demand.
skills/_overrides/ Shadows of leanprover/skills entries that needed audit-modification. Dispatch order first-party → override → upstream vendor is documented in AGENT.md §3. Harness, on demand.
templates/ copy-pasteable Lean module skeletons and workflow templates. Cross-template conventions live in templates/00-CONVENTIONS.md. Author, copy-paste.
references/ background notes and layered skill handbooks a skill points at when needed: theorem-search idioms, proof-strategy notes, Mathlib4 conventions, and per-domain handbooks. Skill, by link.
scripts/ Project-agnostic helpers: axiom audits, DAG layer checks, bridge validators, zettelkasten linters, eval, calibration, and Glicko-2 harnesses. None hardcodes a host project; each takes the project root as an argument. Skill / CI / author.
zettelkasten/ Repo-internal knowledge graph (fleeting · literature · permanent · index · tags) that captures cross-skill insights. Synthesizer skills.
vendor/ Pinned git submodules of upstream sources (e.g. leanprover-skills) for transparent re-dispatch. Override dispatch.

Repository layout

proof-skills/
├── apm.yml                  # APM manifest — package metadata
├── AGENT.md                 # Agent contract: belief threshold, dispatch precedence, …
├── README.md                # You are here
├── LICENSE · NOTICE         # Apache-2.0
├── skills/                  # 53 first-party SKILL.md + _overrides/
├── templates/               # 38 Lean/workflow templates
├── references/              # 57 notes and layered handbooks
├── scripts/
│   ├── lean/                # axiom_audit, bridge_validator, dep_graph, …
│   ├── lint/                # APM package validation
│   ├── skill-audit/         # v2 conformance + handoff DAG audit
│   ├── eval/                # deterministic, LLM-judge replay, calibration
│   ├── elo/                 # Glicko-2 + live match corpus
│   └── check-structure/     # repo-shape sanity checks
├── zettelkasten/            # fleeting · literature · permanent
└── vendor/leanprover-skills # pinned upstream submodule

Tooling

Script Purpose
scripts/lint/apm_validate.py Hard-gated in CI. Checks the package stays a valid APM skill collection: manifest keys, required name + description per SKILL.md, directory-name match, no duplicates.
scripts/skill-audit/check_conformance.py Hard-gated in CI. Checks v2 conformance, tier coverage, handoff DAG integrity, handbook links, inline @skill refs, and relative Markdown links.
scripts/eval/run_eval.py Deterministic smoke runner for the 50-case suite.
scripts/eval/calibrate_judge.py Pure replay calibration gate for known-bad judge corpora.
scripts/eval/multi_model.py Converts persisted solver + judge artifacts into pairwise match rows.
scripts/elo/glicko2.py Authoritative Glicko-2 leaderboard with uncertainty bands.
scripts/elo/elo.py Legacy vanilla-ELO dashboard helper; do not use for release rankings.

Project-specific overrides

The toolkit is deliberately project-agnostic — templates and skills use <Project> / <proj> placeholders. Downstream projects encode their concrete values in a thin override layer rather than forking the templates; the rule is that an override file links back to the generic source and lists only the deltas.


Status & contracts

Document Covers
AGENT.md Full agent contract — belief threshold, reversibility tiers, dispatch precedence, confidentiality rules. Required reading before any edit.
apm.yml Package metadata: name, version, license, keywords, repository.
templates/00-CONVENTIONS.md Cross-template conventions: file-doc header, section skeleton, proof-comment tags, anti-patterns checklist.

Apache-2.0 · authored by @r-irbe · issues & PRs welcome at github.com/r-irbe/proof-skills

About

APM-installable agent skills for Lean 4 and Mathlib4 — proof tactics, math domains, review and research workflows, generic tooling.

Topics

Resources

License

Stars

2 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors