Blog Archive

Showing posts with label category theory. Show all posts
Showing posts with label category theory. Show all posts

Tuesday, July 10, 2007

Latex + Blogger help

I've been working on writing up my solutions to the exercises in Pierce's Basic Category Theory for Computer Scientists in this space, but I'm getting to the point where it's useful to include diagrams in my solutions.

Does anyone have any Linux-based workflows they'd like to share that could give a small JPEG if I supply a prelude and a LaTeX statement?

Friday, July 06, 2007

More from Pierce's Category Theory

Continuing the last set of exercises:

1.3.10 Exercises

4 Let f :: A -> B be an isomorphism. Show that it's inverse is unique.
First, I will suppose that the inverse of f is not unique, that is there exists two unique arrows a,b :: B -> A such that:
  • f . b = idA, b . f = idB
  • f . a = idA, a . f = idB

Therefore:
  • f . b = f . a
  • a . (f . b) = a . (f . a)
  • (a . f) . b = (a . f) . b
  • idB . b = idB . a
  • b = a
If f is an isomorphism, it's inverse is unique.

5 Show that if f' is the inverse of f :: A -> B and g' is the inverse of g :: B -> C, then (f' . g') is the inverse of (g . f).

(Notational note: In this exercise I'm using prime (') to denote inversion)

  • (g . f)' . (g . f) = idA
  • ((g . f)' . g) . f = idA
  • (g . f)' . g = f'
  • (g . f)' = f' . g' QED
6 Find a category containing an arrow that is both a monomorphism and an epimorphism, but not an isomorphism.

I don't really understand this question ... Does the category 2 satisfy this? The only non-identity arrow is trivially both epic and monic and has no inverse. So, yeah.

That's it for this bit of questions! Hopefully I can keep this up for at least the next exercise set.

Thursday, July 05, 2007

Basic Catagory Theory for Computer Scientists

I'm not in grad school anymore (which is a story!), so now I have to practice on my own time to keep my academic knife sharp.

To that end I'm working through Pierce's Basic Category Theory for Computer Scientists. So far, category theory isn't hard conceptually - but the concepts are so abstract that I find it difficult to internalize them. But then, it's not like I spent a lot of time in the math dept. back when I was in school (as much as I liked the mathematical tools I used).

Although I shouldn't be going on about how "not hard" it is while I'm still in chapter one.

Onward!

1.3.10 Exercises

2 Show that in any category, if two arrows f and g are both monic then their composition (g . f) is monic. Also, if (g . f) is monic then so is f.

The first part:
  • Let (g . f) . a = (g. f) . b
  • -> g . (f . a) = g . (f . b)
  • Because g is monic -> f . a = f . b
  • Because f is monic -> a = b
Therefore (g . f) is monic

The second part:

Suppose that (g . f) is monic.
Let's further suppose that there exists two arrows a and b such that:

f . a = f . b, a \= b

  • g . (f . a) = g . (f . b), a \=b, via arrow composition
  • (g . f) . a = (g . f) . b, a\=b, via associativity of composition
Which violates my first assumption. Therefore: If (g . f) is monic, for all pairs of arrows a and b such (f . a) = (f . b), a = b. Therefore f is monic.


3 Dualize the previous exercise: state and prove the analogous proposition for epics.

Along the same lines as the previous proof:
  1. Let (g . f) be epic.
  2. Let there exist two arrows a and b such that a . g = b . g and a \= b.
(a . g) . f = (b . g) . f, a \=b via composition of arrows
a . (g . f) = b . (g . f), a \= b via associativity of composition

My assumptions are in contradiction. Therefore, if (g . f) is epic, there exist no two arrows a and b such that a . g = b . g and a \=b - that is, g is epic.

More to come. Let me know if my math is crap.

Listening:

Watching:

  • House
  • Ride Back