File contents Limits Colimits
When to Use
Use this skill when working on limits-colimits problems in category theory.
Decision Tree
Identify Limit Type
Product: limit of discrete diagram
Equalizer: limit of parallel pair f, g: A -> B
Pullback: limit of A -> C <- B
Terminal object: limit of empty diagram
Lean 4: CategoryTheory.Limits namespace
Verify Universal Property
Cone from L with projections pi_i: L -> D_i
For any cone from X, unique morphism u: X -> L
Triangles commute: pi_i . u = cone_i
Lean 4: IsLimit.lift gives the unique morphism
Colimit (Dual)
Coproduct: colimit of discrete diagram
Coequalizer: colimit of parallel pair
Pushout: colimit of A <- C -> B
Initial object: colimit of empty diagram
Compute Limits Concretely
In Set: product = Cartesian product
Equalizer = {x | f(x) = g(x)}
Pullback = {(a,b) | f(a) = g(b)}
sympy_compute.py solve "f(a) == g(b)"
Preservation
Right adjoint preserves limits
Left adjoint preserves colimits
Representable functors preserve limits
Lean 4: Adjunction.rightAdjointPreservesLimits
See: .claude/skills/lean4-limits/SKILL.md for exact syntax
Tool Commands
Lean4_Limit
# Lean 4: import CategoryTheory.Limits.Shapes.Products
Lean4_Universal
# Lean 4: IsLimit.lift cone -- unique morphism from universal property
Sympy_Pullback
uv run python -m runtime.harness scripts/sympy_compute.py solve "f(a) == g(b)"
Lean4_Build
lake build # Compiler-in-the-loop verification
Cognitive Tools Reference
See .claude/skills/math-mode/SKILL.md for full tool documentation.
1 --- 2 name: limits-colimits 3 description: Limits Colimits 4 --- 5 6 # Limits Colimits 7 8 ## When to Use 9 10 Use this skill when working on limits-colimits problems in category theory. 11 12 ## Decision Tree 13 14 15 1. **Identify Limit Type** 16 - Product: limit of discrete diagram 17 - Equalizer: limit of parallel pair f, g: A -> B 18 - Pullback: limit of A -> C <- B 19 - Terminal object: limit of empty diagram 20 - Lean 4: `CategoryTheory.Limits` namespace 21 22 2. **Verify Universal Property** 23 - Cone from L with projections pi_i: L -> D_i 24 - For any cone from X, unique morphism u: X -> L 25 - Triangles commute: pi_i . u = cone_i 26 - Lean 4: `IsLimit.lift` gives the unique morphism 27 28 3. **Colimit (Dual)** 29 - Coproduct: colimit of discrete diagram 30 - Coequalizer: colimit of parallel pair 31 - Pushout: colimit of A <- C -> B 32 - Initial object: colimit of empty diagram 33 34 4. **Compute Limits Concretely** 35 - In Set: product = Cartesian product 36 - Equalizer = {x | f(x) = g(x)} 37 - Pullback = {(a,b) | f(a) = g(b)} 38 - `sympy_compute.py solve "f(a) == g(b)"` 39 40 5. **Preservation** 41 - Right adjoint preserves limits 42 - Left adjoint preserves colimits 43 - Representable functors preserve limits 44 - Lean 4: `Adjunction.rightAdjointPreservesLimits` 45 - See: `.claude/skills/lean4-limits/SKILL.md` for exact syntax 46 47 48 ## Tool Commands 49 50 ### Lean4_Limit 51 ```bash 52 # Lean 4: import CategoryTheory.Limits.Shapes.Products 53 ``` 54 55 ### Lean4_Universal 56 ```bash 57 # Lean 4: IsLimit.lift cone -- unique morphism from universal property 58 ``` 59 60 ### Sympy_Pullback 61 ```bash 62 uv run python -m runtime.harness scripts/sympy_compute.py solve "f(a) == g(b)" 63 ``` 64 65 ### Lean4_Build 66 ```bash 67 lake build # Compiler-in-the-loop verification 68 ``` 69 70 ## Cognitive Tools Reference 71 72 See `.claude/skills/math-mode/SKILL.md` for full tool documentation.
DojoGenesis/plugins/tree/main/plugins/community-skills/skills/limits-colimits commit 43f1866bf6
Frequently asked questions How do I install the Limits Colimits skill? Run npx skillmds@latest add dojogenesis/limits-colimits in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
What does the Limits Colimits skill do? Limits Colimits It is listed under Coding & Dev Tools on SkillMD.
Is Limits Colimits safe to use? This skill has not completed SkillMD's automated safety review yet. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
Which AI agents work with Limits Colimits? This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Is Limits Colimits free to use? Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
Who published Limits Colimits? DojoGenesis (@dojogenesis) published this skill. Their other Agent Skills are listed on their SkillMD profile.