lean-generalize
Use when explicitly investigating weaker Lean theorem assumptions, broader types or a more reusable mathematical formulation.
- License 许可
- GPL-3.0
- 最近更新
- 2026-11-13
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- lean-generalize
- description
- Use when explicitly investigating weaker Lean theorem assumptions, broader types or a more reusable mathematical formulation.
03 SKILL.md 正文
Test a genuine generalization
Input: current declaration, source claim and intended API scope. Output: tested candidate, per-hypothesis reasoning and source specialization.
Record the original full type and callers. Classify each hypothesis and instance;
inspect explicit and inferred uses. Search existing broader formulations with
lean-search; route substantive literature questions to mathpowers.
Test one weakening at a time in scratch: drop an unused assumption, use a verified parent structure, localize a global premise or broaden the carrier. Compile the candidate and its applications. Merely replacing a definition with an easier one is not generalization; confirm the candidate entails the source claim via an actual checked specialization.
Apply changes within the requested scope. A choice that changes the intended
mathematics or exceeds that scope returns to the coordinator for resolution.
Keep the source correspondence interface where useful. Recheck callers,
lean-verify and lean-fidelity; invalidate old evidence after changed meanings.
Return failed trials as evidence, not claims of maximal possible generality.
Example: a proof using only multiplication and identity may work for a monoid; verify the weaker instance assumptions and the original ring specialization.
04 同仓库更多 Skills
writing-skills
Use when creating new skills, editing existing skills, or verifying skills work before deployment
writing-plans
Use when you have a spec or requirements for a multi-step task, before touching code
verification-before-completion
Use when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and confirming output before making any success claims; evidence before assertions always
using-superpowers
Use when starting any conversation - establishes how to find and use skills, requiring skill invocation before ANY response including clarifying questions
using-git-worktrees
Use when starting feature work that needs isolation from current workspace or before executing implementation plans - ensures an isolated workspace exists via native tools or git worktree fallback
test-driven-development
Use when implementing any feature or bugfix, before writing implementation code