Equivalence reduction

From siddhartha-gadgil/LeanAide · View interactive version

Equivalence reduction is an AI agent skill from the GitHub repository siddhartha-gadgil/LeanAide. **Pre-condition:** Apply this skill when the goal is an equivalence, a list of equivalent conditions, or a statement that should be reduced to a known theorem or simpler case.

How to use this skill

Skill file

Skill: Equivalence and Reduction

Pre-condition: Apply this skill when the goal is an equivalence, a list of equivalent conditions, or a statement that should be reduced to a known theorem or simpler case.

Goal: Replace a hard target by directed implications or a reduced goal whose proof is already known or easier.

Instructions:

  1. For P iff Q: Prove P -> Q and Q -> P as separate subgoals.
  2. For Multiple Equivalences: Prefer a cycle P1 -> P2 -> ... -> P1 when it is shorter than all pairwise implications.
  3. For Reduction: Record:
  1. Preserve Hypotheses: Track which assumptions are transported through the reduction.
  2. Return to the Original Goal: Explicitly conclude the original claim, not just the reduced statement.

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.