Alan has given one formal definition. I'll give another, rather
different than his. Like his, I'll deal with small categories for
simplicity's sake.
Cat(O,M,d,cod,c,id) is intended to stand for the claim that the pair
<O,M,d,cod,c,id> is a category, where
O is the collection of objects,
M the collection of morphisms,
dom the domain function,
cod the codomain function,
c the composition function and
id the function picking out identities.
Let Delta(O) be the set { <o,o> | o in O }.
Let f:X ->_partial Y express the relation "f is a partial function from
X to Y."
Cat(O,M,c) <=> dom:M -> O & cod:M -> O & c subset M x M x M & id:O -> M &
(A o in O)(dom(id(o)) = O & cod(id(o)) = O) &
(A m,m' in M)( (E m'')(A m''')( <m,m',m'''> in c ->
m''' = m'' ) &
(A m,m' in M)((E m'')( <m,m',m''> in c ) <->
cod(m') = dom(m)) &
(A m,m',m'' in M)( <m,m',m''> in c -> (*)
dom(m'') = dom(m') ) &
cod(m'') = cod(m) )) &
(A m in M)( <m, id(dom(m)), m> in c & (**)
<id(cod(m)), m, m> in c ) &
Assoc(c)
where Assoc(c) is the usual formula expressing that a given partial
function as associative. This is trivial but tedious to write out and
I'll do so only if pressed.
My formalization is somewhat simpler than Alan's, his is more
appropriate for actually doing work I'd wager.
The first line of mine is just getting the types of the components
right. (NOTE for Dan: I'm working in ZF, so it would be redundant to
write "Set(M)".)
The second line is just stating that the domain and codomain of id_o is
o.
The next two clauses specify that composition is a partial function
M x M -> M defined on all and only compatible morphisms (morphisms with
appropriately matching domain and codomain).
The clause marked (*) asserts that the domain and codomain of the
composite function is appropriate, i.e., that (in traditional notation)
dom(f o g) = dom(g) & cod(f o g) = cod(f).
The clause marked (**) asserts that composition with the identity
changes nothing.
The final clause (unexpanded) is that composition is associative.
There may be minor errors in the above, which I tossed off with my first
cup of coffee, but that looks about right to me.
My, how difficult that was!
>
>> Part of your problem is that you want to leap straight for the concept
>> of concrete category, but it would be best if you learned the simpler
>> concepts first, namely, category in its usual generality. That is the
>> easier concept to understand.
>
> The formal definition of a category then...
Done.
>
>>
>> On the other hand, you could instead pretend to be revolutionizing the
>> field with your half-baked ideas free from the clutter of actual
>> understanding.
>
> You don't like my formal definition? It could well be flawed, so let's
> see yours. No words, no hand waving, just mathematical symbols if you
> don't mind. My tiny brain can't seem to handle much more than that.
Here's some help for you. In order to formalize the concept, perhaps we
should have some examples in mind. Here are a few examples.
Set:
Obj: sets
Mor: functions between sets
Monoid:
Obj: Monoids
Mor: functions preserving identity and satisfying
f(x * y) = f(x) * f(y)
Group, Field, etc.
Obj: the algebraic structure
Mor: the usual notion of homomorphism for that structure.
PSet:
Obj: <S,s>, where S is a set and s in S (these are called pointed
sets)
Mor: an arrow <S,s> -> <T,t> is a function f:S -> T such that
f(s) = t.
PartialOrder:
Obj: partially ordered sets
Mor: monotonic maps
BotOrder1: (Not the traditional name, but I forget)
Obj: partially ordered sets with least elements
Mor: monotonic maps
BotOrder2: (Not the traditional name, but I forget)
Obj: partially ordered sets with least elements
Mor: monotonic maps which take the least element to the least element
Top:
Obj: topological spaces
Mor: continuous maps
N:
Obj: natural numbers
Mor: between any two objects n, n', there is at most one arrow. There
is an arrow iff n <= n'
Note that the category N generalizes to arbitrary partial orders. Any
partial order *is* a category. In fact, category is a generalization of
partial order.
There. Now however you want to define category, all of those have to be
categories (where the identity arrows and composition should be obvious
for each). If not, whatever you've done, you have *not* defined
category properly.
--
Jesse F. Hughes
"It's your choice though, if you do not believe in mathematics, in the
importance of its healthiness and correctness, then you can just walk
away now." -- James S Harris, on the Pythagorean Oath