Prerequisites: Arrow Notation

A mathematician is a machine for turning coffee into theorems.

Graph

Graph 는 arrow의 collection이다. 이때 다음과 같은 표기법을 사용한다.

(Arrows, Morphisms)

(Objects)

Category

Category 는 composition()과 identity()가 정의된 graph이다.

  • (Composition)
  • (Identity)

이때 이들은 다음을 만족해야 한다.

(Compositionality)

(Associativity)

(Unitarity)

Category의 예시

NameObjectsMorphismsSidenote
setfunctionsmall sets만 포함
vector spacelinear transformation
categoryfunctor모든 small category의 category

Opposite Category

A comathematician is a device for turning cotheorems into ffee.

어느 category 에 대한 opposite category 는 화살표의 방향을 반대로 바꾼 것이다.

  • (Objects)
  • (Morphisms) 가 존재하면 가 존재한다.
  • (Composition) 에서 이면 에서 이다.
  • (Identity) 이면 이다. 즉 identity는 서로 같다.

Free Category

어떤 그래프 로부터 category를 정의할 수 있다. (Vector의 집합 에서 vector space 를 정의하는 것과 유사하다.) 구체적으로 는 다음과 같이 정의된다.

  • (Objects) 의 objects는 그래프 의 objects와 같다.
  • (Morphisms) 의 morphism은 그래프 에서의 path 로 정의되며, path의 시작점을 domain, 종점을 codomain으로 한다.
  • (Composition) 의 composition은 두 path를 서로 잇는 것으로 정의한다.
  • (Identity) 의 identity는 arrow 없이 object 하나로 정의되는 path로 정의한다.

예를 들어 그래프 가 다음과 같다고 해 보자.

이 그래프 상에 존재하는 path를 다음과 같이 에 대응시킬 수 있다.

PathMorphisms in

이것이 category의 조건을 만족한다는 것을 보이는 것은 어렵지 않다. 일반적으로 이를 다음과 같이 표기한다.

Footnote

  • 이라는 표기법은 category theory가 탄생한 대수학에서 온 것으로 본래 구조를 보존하는 mapping을 의미한다. 이곳에서는 임의의 mapping을 지칭하는 용어로 쓰인다.
  • 일반적으로 등으로 표기하며, hom-set 이라고 부른다.

References

(1) Brendan Fong, David I. Spivak, Seven Sketches in Compositionality
(2) Mac Lane, Categories for the Working Mathematicians
(3) Path (graph theory), Wikipedia (https://en.wikipedia.org/wiki/Path_(graph_theory))