People sometimes say that monoids are "categories with one object". In fact people sometimes suggest that this is the natural definition of a monoid (and likewise "groupoid with one object" as the definition of a group).
But categories naturally form a $2$-category $\mathbf{Cat}$. So if we took the above definition seriously then we would view monoids as forming a $2$-category $\mathbf{Mon}$. The objects would be monoids and the morphisms would be monoid homomorphisms, but there would also be $2$-morphisms between homomorphisms. A $2$-morphism between $f,g:M\to N$ is an $n\in N$ such that $nf(m)=g(m)n$ for all $m\in M$.
If one takes the principle of equivalence seriously then this poses a problem because we lose the ability to talk about the "underlying set" of a monoid. There's no $2$-functor $U:\mathbf{Mon}\to\mathbf{Set}$ (treating $\mathbf{Set}$ as a $2$-category with no nontrivial $2$-morphisms) that sends each monoid to its underlying set and each homomorphism to its underlying function. In the $1$-category of monoids this would be given by applying the functor $\mathrm{Hom}(\Bbb N,-)$. But in the $2$-category $\mathbf{Mon}$ two homomorphisms $f,g:\Bbb N\to M$ are isomorphic whenever $f(1)=mg(1)m^{-1}$ for some $m\in M$, so this construction only gives us the set of conjugacy classes of $M$ rather than its set of elements.
Clearly this poses a problem if we want to work with monoids and groups. In particular proofs involving finite groups often require the ability to count the number of elements in some subset of a group. It becomes impossible to state Lagrange's Theorem. We also lose the ability to talk about the free group on a set, since we can't construct the adjoint to the nonexistent functor $U$.
In light of this, I want to know if it's actually possible to take "category with one object" as our definition of monoid, and still be able to prove things in a practical way. I can see two ways to do this:
1) Recover the $1$-category of monoids from $\mathbf{Mon}$ in some natural way
or
2) Show that we can reconstruct group theory in a way that never uses concepts like "order of a group" or "free group on a set"
Does anybody know a way to do either of these?