{"id":14,"date":"2006-06-09T15:59:16","date_gmt":"2006-06-09T15:59:16","guid":{"rendered":"http:\/\/scientopia.org\/blogs\/goodmath\/2006\/06\/09\/some-basic-examples-of-categories\/"},"modified":"2006-06-09T15:59:16","modified_gmt":"2006-06-09T15:59:16","slug":"some-basic-examples-of-categories","status":"publish","type":"post","link":"http:\/\/www.goodmath.org\/blog\/2006\/06\/09\/some-basic-examples-of-categories\/","title":{"rendered":"Some Basic Examples of Categories"},"content":{"rendered":"<p> For me, the frustrating thing about learning category theory was that<br \/>\nit seemed to be full of definitions, but that I couldn&#8217;t see why I should care.<br \/>\nWhat were these category things, and what could I really talk about using this<br \/>\nstrange new mathematical language of categories?<\/p>\n<p> To avoid that in my presentation, I&#8217;m going to show you a couple of examples up front of things we can talk about using the language of category theory: sets, partially ordered sets, and groups.<\/p>\n<h3> Sets as a Category<\/h3>\n<p> We can talk about sets using category theory. The objects in the category of sets are, obviously, sets. Arrows in the category of sets are total functions between sets.<\/p>\n<p> Let&#8217;s see how these satisfy our definition of categories:<\/p>\n<ul>\n<li> Given a function f from set A to set B, it&#8217;s represented by an arrow f : A &rarr; B.\n<li> &ordm; is function composition. It meets the properties of a categorical &ordm;:\n<ul>\n<li> Associativity: function composition over total functions is associative; we know that from set theory.\n<li> Identity: for any set S, 1<sub>S<\/sub> is the identity function: (&forall; i &isin; S) 1<sub>S<\/sub>(i) = i. It should be pretty obvious that for any f : S &rarr; T, f &ordm; 1<sub>S<\/sub> = f; and 1<sub>T<\/sub> &ordm; f = f.\n<\/ul>\n<\/ul>\n<h3> Partially Ordered Sets <\/h3>\n<p> Partially ordered sets (that is, sets that have a &#8220;&lt;=&quot; operator) can be described as a category, usually called <b>PoSet<\/b>. The objects are the partially ordered sets; the arrows are monotonic functions (a function f is monotonic if (&forall; x,y &amp;isin domain(x)) x &lt;= y &rArr; f(x) &lt;= f(y).). Like regular sets, &ordm; is function composition.<\/p>\n<p> It&#8217;s pretty easy to show the associativity and identity properties; it&#8217;s basically the same as for sets, except that we need to show that &ordm; preserves the monotonicity property. And that&#8217;s not very hard:<\/p>\n<ul>\n<li> Suppose we have arrows f : A &rarr; B, g : B &rarr; C. We know that f and g are monotonic<br \/>\nfunctions.<\/p>\n<li> Now, for any pair of x and y in the domain of f, we know that if x &lt;= y, then f(x) &lt;= f(y).\n<li> Likewise, for any pair s,t in the domain of g, we know that if s &lt;= t, then g(s) &lt;= g(t).\n<li> Put those together: if x &lt;= y, then f(x) &lt;= f(y). f(x) and f(y) are in the domain of g, so if (f(x) &lt;= f(y)) then we know g(f(x)) &lt;= g(f(y)).\n<\/ul>\n<h3> Groups as a Category<\/h3>\n<p> There is a category <b>Grp<\/b> where the objects are groups; group homomorphisms are arrows. Homomorphisms are structure-preserving functions between sets; so function composition of those structure-preserving functions is the composition operator &ordm;. The proof that function composition preserves structure is pretty much the same as the proof we just ran through for partially ordered sets.<\/p>\n<p> Once you have groups as a category, then you can do something very cool. If groups are a category, then functors over groups are symmetric transformations. Walk it through, and you&#8217;ll see that it fits. What took me a week of writing to be able to explain when I was talking about group theory can be stated in one sentence using the language of category theory. That&#8217;s a perfect example of why cat theory is useful: it lets you say some very important, very complicated things in very simple ways.<\/p>\n<h2> Miscellaneous Comments <\/h2>\n<p>There&#8217;ve been a couple of questions about from category theory skeptics in the comments. Please don&#8217;t think I&#8217;m ignoring you. This stuff is confusing enough for most people (me included) that I want to take it slowly, just a little bit at a time, to give readers an opportunity to digest each bit before going on to the next. I promise that I&#8217;ll answer your questions eventually!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>For me, the frustrating thing about learning category theory was that it seemed to be full of definitions, but that I couldn&#8217;t see why I should care. What were these category things, and what could I really talk about using this strange new mathematical language of categories? To avoid that in my presentation, I&#8217;m going [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[76,24],"tags":[],"class_list":["post-14","post","type-post","status-publish","format-standard","hentry","category-category-theory","category-goodmath"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p4lzZS-e","jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"_links":{"self":[{"href":"http:\/\/www.goodmath.org\/blog\/wp-json\/wp\/v2\/posts\/14","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.goodmath.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.goodmath.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.goodmath.org\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.goodmath.org\/blog\/wp-json\/wp\/v2\/comments?post=14"}],"version-history":[{"count":0,"href":"http:\/\/www.goodmath.org\/blog\/wp-json\/wp\/v2\/posts\/14\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.goodmath.org\/blog\/wp-json\/wp\/v2\/media?parent=14"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.goodmath.org\/blog\/wp-json\/wp\/v2\/categories?post=14"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.goodmath.org\/blog\/wp-json\/wp\/v2\/tags?post=14"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}