Invariants

From siddhartha-gadgil/LeanAide · View interactive version

Invariants is an AI agent skill from the GitHub repository siddhartha-gadgil/LeanAide. **Pre-condition:** Do not apply this skill unless the problem involves a system that undergoes changes (e.g., iterative processes, group actions, games, or transformations) and asks for a property tha

How to use this skill

Skill file

Skill: Invariant Construction

Pre-condition: Do not apply this skill unless the problem involves a system that undergoes changes (e.g., iterative processes, group actions, games, or transformations) and asks for a property that remains constant or monotone.

Goal: Identify or construct a mathematical object (number, polynomial, group, etc.) that is preserved under the given operations.

Instructions:

  1. Identify the State Space: Define the set of all possible configurations.
  2. Analyze Transformations: List the allowed moves or operations that change the state.
  3. Candidate Selection:
  1. Verification: Prove that for any state $S$ and any transformation $T$, $I(S) = I(T(S))$.
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.