TITLE: Why does Hom need an identity in the definition of the category?
QUESTION [7 upvotes]: I was studying the axioms of a category, and noted that one axiom says there is an element $1_X\in Hom(X,X)$ for any object $X$ which serves as the identity. Why is this axiom necessary? What happens if I drop this axiom?

Background: I can define the category of affine holomorphic symplectic varieties, by saying 

The objects are semisimple algebraic groups
The morphisms $Hom(G,G')$ are affine holomorphic symplectic varieties with Hamiltonian $G\times G'$ action
The composition of two morphisms $X\in Hom(G,G')$ and $Y\in Hom(G',G'')$ is given by the holomorphic symplectic quotient $X\times Y//G'$.

This becomes a nice symmetric monoidal category; the identity in $Hom(G,G)$ is $T^*G$. 
Suppose I want to consider the category of hyperkähler manifolds instead. I can try the following 

The objects are semisimple compact groups
The morphisms $Hom(G,G')$ are hyperkähler manifolds with Hamiltonian $G\times G'$ action
The composition of two morphisms $X\in Hom(G,G')$ and $Y\in Hom(G',G'')$ is given by the hyperkähler quotient $X\times Y///G'$.

Now, the problem is that $T^*G_\mathbb{C}$ has a hyperkähler metric (constructed by Kronheimer) and almost acts like an identity, but not quite: given a hyperkähler manifold $X$ with $G$ action, $T^*G_\mathbb{C} \times X /// G$ is equivalent to $G$ as holomorphic symplectic varieties but not equivalent as hyperkähler manifolds. 
What should I do?

For my purpose, I guess using the terminology semigroupoid would suffice (I just want to define the target "category" of a TQFT precisely.) But I'm curious what kind of hell will break loose if I drop this axiom, why the people who originally defined categories included this into the axiom, etc.

REPLY [13 votes]: As Fernando points out, you can't talk about isomorphisms in a semicategory, which means that they won't be as much use as categories in describing universes of mathematical objects.  But the category of semicategories has a surprisingly interesting relationship to that of categories.  There is of course a forgetful functor $\mathrm{Cat} \to \mathrm{Semicat}$, and as Scott says it has a left adjoint that does what you expect.  But it also has a right adjoint, which takes a semicategory S to the category of idempotents in S: the objects are idempotents $e \colon a \to a$ and a morphism $e \to e'$ is a morphism $f \colon a \to a'$ in S such that $fe = f = e'f$.  So we get a monad on Cat whose unit is the canonical functor from a category to its idempotent-splitting completion, or Cauchy completion, or Karoubi envelope.
Böhm, Lack and Street use this framework here to talk about weak Hopf algebras.  They show that 'weak monoids' fall naturally out of the formal theory of monads if instead of working directly in a bicategory you Cauchy-complete the hom-categories first.
Another application of semicategories and semifunctors is in computer science: Hayashi, Adjunction of semifunctors: categorical structures in nonextensional $\lambda$-calculus, TCS 41, shows how to describe $\lambda$-calculus without the $\eta$-law quite elegantly.  I haven't worked it out, but it seems to me that this framework should also give a way of talking about 'weak limits' (the kind with not-necessarily-unique mediating morphisms) in terms of adjunctions.

REPLY [6 votes]: I suppose the extent to which hell breaks loose depends entirely on the purpose you're using categories for. Dropping identities presumably invalidates the Yoneda lemma, and therefore all the results in category theory that depend on it. But if you just want to use (monoidal) functors as bookkeeping devices without expecting "deeper" category theory to predict things for you, nothing much happens. To follow up on Scott's answer, there is for example a perfectly good theory about adjunctions when one ignores identities, and there is in fact a relation to formally adding identities. See Hayashi "Adjunction of semifunctors" in Theoretical Computer Science 41:95--104, 1985, and Hoofman and Moerdijk "A remark on the theory of semi-functors" in Mathematical Structures in Computer Science 5:1--8, 1995.