跳到主要内容
知仓学习社ZHICANG

categories-functors

Problem-solving strategies for categories functors in category theory

不碰外部(只输出文字)无严重或高危命中parcadei/Continuous-Claude-v3

它会碰到什么

扫了多少1 个文本文件,2 KB
它会碰到什么不碰外部(只输出文字)
命中总数0 处
命中统计严重 0 · 高 0 · 中 0 · 低 0

这一栏是扫描器报的事实,不是结论。命中多不等于有毒(安全工具、规则库、示例脚本本来就会包含危险写法),命中少也不等于干净。它和你手上的凭据、文件、网络有什么关系,需要你自己看。

技能内容

Categories Functors

When to Use

Use this skill when working on categories-functors problems in category theory.

Decision Tree

  1. Verify Category Axioms
  • Objects and morphisms (arrows) defined?
  • Identity morphism for each object: id_A: A -> A
  • Composition associative: (f . g) . h = f . (g . h)
  • Write Lean 4: theorem assoc : (f ≫ g) ≫ h = f ≫ (g ≫ h) := Category.assoc
  1. Check Functor Properties
  • F: C -> D maps objects to objects, arrows to arrows
  • Preserves identity: F(id_A) = id_{F(A)}
  • Preserves composition: F(g . f) = F(g) . F(f)
  • Write Lean 4: theorem comp : F.map (g ≫ f) = F.map g ≫ F.map f := F.map_comp
  1. Functor Types
  • Covariant: preserves arrow direction
  • Contravariant: reverses arrow direction
  • Faithful/Full: injective/surjective on Hom-sets
  • Equivalence: full, faithful, essentially surjective
  1. Common Functors
  • Forgetful functor: forgets structure (e.g., Grp -> Set)
  • Free functor: left adjoint to forgetful
  • Hom functor: Hom(A, -) or Hom(-, B)
  • Power set functor: Set -> Set via X |-> P(X)
  1. Verify with Lean 4
  • Compiler-in-the-loop: write proof, lake build checks
  • Mathlib has full category theory library
  • See: .claude/skills/lean4-functors/SKILL.md for exact syntax

Tool Commands

Lean4_Category

# Lean 4 with Mathlib: import CategoryTheory.Category.Basic

Lean4_Functor

# Lean 4: theorem map_comp (F : C ⥤ D) : F.map (g ≫ f) = F.map g ≫ F.map f := F.map_comp

Lean4_Build

lake build  # Compiler-in-the-loop verification

Cognitive Tools Reference

See .claude/skills/math-mode/SKILL.md for full tool documentation.

想直接用这个技能?

本站把开放许可(MIT / Apache 等)的技能按仓库打包整理到网盘,点一下转存到你自己的网盘,不用一个个从 GitHub 拉。许可未声明的技能只给原始仓库链接,不打包。

它属于哪个仓库

星标★ 3,941
本站分层T1
该仓技能数158
原文件路径.claude/skills/math/category-theory/categories-functors/SKILL.md

同一个仓库里的其他技能

看这个仓库的全部 158 个技能