Existence uniqueness

From siddhartha-gadgil/LeanAide · View interactive version

Existence uniqueness is an AI agent skill from the GitHub repository siddhartha-gadgil/LeanAide. **Pre-condition:** Apply this skill when the goal contains `exists`, `exists unique`, a request to construct an object, or a statement asserting canonical existence.

How to use this skill

Skill file

Skill: Existence, Construction, and Uniqueness

Pre-condition: Apply this skill when the goal contains exists, exists unique, a request to construct an object, or a statement asserting canonical existence.

Goal: Build or justify a witness and verify all required properties; for uniqueness, show any two witnesses coincide.

Instructions:

  1. Parse the Goal: Separate the witness type from the property it must satisfy.
  2. Construct or Source a Witness:
  1. Verify Properties: Check each conjunct or defining property of the witness.
  2. Uniqueness: Assume two objects satisfy the property and prove they are equal or equivalent in the required sense.
  3. Package the Result: For exists unique, present existence first and uniqueness second.

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.