AgentSkillsCN

plan

针对某个证明草稿,拟定更宏大成果所需的已证定理/引理结构。

SKILL.md
--- frontmatter
name: plan
description: Draft sorry'd theorem/lemma structure for a larger result from a proof sketch.

Plan Mode

Draft the theorem/lemma structure needed to prove a larger result.

Topic / proof sketch: $ARGUMENTS

Procedure

  1. Research first — search Mathlib and this project to understand what already exists.
  2. Work interactively with the user to decompose the proof into lemmas.
  3. Write all declarations with sorry proofs — no filled proofs in this mode.
  4. Each lemma should be provable independently in ~30 lines or fewer.
  5. Verify each sorry'd statement compiles with lean_diagnostic_messages before moving on.
  6. Present the full dependency structure: which lemmas feed into which.

Output

A compilable file (or section) of sorry'd declarations with clear names and docstrings. Iterate with the user until the decomposition is right.

Rules

  • Every declaration must compile (with sorry) after writing.
  • Use clear, descriptive names following Mathlib conventions.
  • Include /-- ... -/ docstrings explaining the mathematical content.