Induction and descent

From siddhartha-gadgil/LeanAide · View interactive version

Induction and descent is an AI agent skill from the GitHub repository siddhartha-gadgil/LeanAide. **Pre-condition:** Apply this skill when the statement is indexed by natural numbers, recursively defined structures, well-founded orders, or when a smallest counterexample can be chosen.

How to use this skill

Skill file

Skill: Induction, Minimal Counterexample, and Descent

Pre-condition: Apply this skill when the statement is indexed by natural numbers, recursively defined structures, well-founded orders, or when a smallest counterexample can be chosen.

Goal: Prove a family of statements by a well-founded step principle, or refute counterexamples by descending to a smaller one.

Instructions:

  1. Identify the Index: Determine whether the proof should use ordinary induction, strong induction, structural induction, minimal counterexample, or infinite descent.
  2. State the Induction Predicate: Write the exact property P(n) or P(x) being proved.
  3. Base Cases: Prove every minimal case required by the recurrence or constructor list.
  4. Step Case:
  1. Counterexample Variant: Assume a least counterexample, use minimality to prove all smaller cases, then contradict failure at the least case.
  2. Descent Variant: From any counterexample, construct a strictly smaller counterexample and cite well-foundedness.

Common Failure Modes:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.