Counting pigeonhole

From siddhartha-gadgil/LeanAide · View interactive version

Counting pigeonhole is an AI agent skill from the GitHub repository siddhartha-gadgil/LeanAide. **Pre-condition:** Apply this skill when a proof concerns finite sets, cardinalities, incidence structures, arrangements, or existence forced by more objects than containers.

How to use this skill

Skill file

Skill: Counting, Double Counting, and Pigeonhole

Pre-condition: Apply this skill when a proof concerns finite sets, cardinalities, incidence structures, arrangements, or existence forced by more objects than containers.

Goal: Convert the claim into a finite counting identity, inequality, or pigeonhole conclusion.

Instructions:

  1. Identify the Counted Set: Define the finite set, pairs, triples, incidences, paths, colorings, or assignments being counted.
  2. Choose Counting Methods:
  1. Prove Finiteness and Bijections: Justify that the counted objects match the expressions used.
  2. Derive the Identity or Inequality: Translate the count into the desired conclusion.
  3. For Existence: Explain why a positive count or pigeonhole surplus gives an actual object.

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.