See .claude/skills/math-mode/SKILL.md for full tool documentation.
1---2name: natural-transformations3description: Natural Transformations4---56# Natural Transformations78## When to Use910Use this skill when working on natural-transformations problems in category theory.1112## Decision Tree1314151. **Verify Naturality**16 - eta: F => G is natural transformation between functors F, G: C -> D17 - For each f: A -> B in C, diagram commutes:18 G(f) . eta_A = eta_B . F(f)19 - Write Lean 4: `theorem nat : η.app B ≫ G.map f = F.map f ≫ η.app A := η.naturality`20212. **Component Analysis**22 - eta_A: F(A) -> G(A) for each object A23 - Each component is morphism in target category D24 - Lean 4: `def η : F ⟶ G where app := fun X => ...`25263. **Natural Isomorphism**27 - Each component eta_A is isomorphism28 - Functors F and G are naturally isomorphic29 - Notation: F ≅ G (NatIso in Mathlib)30314. **Functor Category**32 - [C, D] has functors as objects33 - Natural transformations as morphisms34 - Vertical composition: Lean 4 `CategoryTheory.NatTrans.vcomp`35 - Horizontal composition: `CategoryTheory.NatTrans.hcomp`36375. **Yoneda Lemma Application**38 - Nat(Hom(A, -), F) ~ F(A) naturally in A39 - Lean 4: `CategoryTheory.yonedaEquiv`40 - Fully embeds C into [C^op, Set]41 - See: `.claude/skills/lean4-nat-trans/SKILL.md` for exact syntax424344## Tool Commands4546### Lean4_Naturality47```bash48# Lean 4: theorem nat : η.app B ≫ G.map f = F.map f ≫ η.app A := η.naturality49```5051### Lean4_Nat_Trans52```bash53# Lean 4: def η : F ⟶ G where app := fun X => component_X54```5556### Lean4_Yoneda57```bash58# Lean 4: CategoryTheory.yonedaEquiv -- Yoneda lemma59```6061### Lean4_Build62```bash63lake build # Compiler-in-the-loop verification64```6566## Cognitive Tools Reference6768See `.claude/skills/math-mode/SKILL.md` for full tool documentation.
Run npx skillmds@latest add dojogenesis/natural-transformations 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.
Natural Transformations It is listed under Coding & Dev Tools on SkillMD.
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.
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.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
DojoGenesis (@dojogenesis) published this skill. Their other Agent Skills are listed on their SkillMD profile.