Given a category $\mathsf{C}$, there are two ways to define the notion of a group object in $\mathsf{C}$:
- As a quadruple $(G, m, i, e)$, where $G\in \mathsf{C}$ is some object, $m:G\times G\to G$ and $i:G\to G$ and $e:*\to G$ morphisms (where we are assuming both that $G\times G$ exists in $\mathsf{C}$ and that $\mathsf{C}$ admits a terminal object $*$), satisfying the usual axioms.
- As a lift of some representable functor $\mathsf{C}^\text{op}\to \mathsf{Set}$ to $\mathsf{C}^\text{op}\to \mathsf{Grp}$, i.e., as a functor $h:\mathsf{C}^\text{op}\to \mathsf{Grp}$ such that the postcomposition $U\circ h:\mathsf{C}^\text{op}\to \mathsf{Set}$ is representable, where $U:\mathsf{Grp}\to \mathsf{Set}$ is the forgetful functor.
For the first notion to make sense, we of course need $\mathsf{C}$ to admit (at least some) finite limits; conversely, when $\mathsf{C}$ is finitely complete (or even cartesian monoidal), then the two notions above are clearly equivalent (up to unique isomorphisms...) by Yoneda's Lemma. However, the second definition makes sense without any assumptions on $\mathsf{C}$ whatsoever.
My question is: can the second notion make sense without the first one doing so? Specifically, if $\mathsf{C}$ is a (locally small) category and $h:\mathsf{C}^\text{op}\to \mathsf{Grp}$ a functor such that the composite $U\circ h:\mathsf{C}^\text{op}\to \mathsf{Set}$ is representable, does this necessarily imply that $\mathsf{C}$ has a final object and a self-product of an object representing $U\circ h$?
I am having a very hard time coming with either a proof or a counterexample. The problem is that I do not know of any results that guarantee the existence of certain objects in a category, but it seems like condition (2) above places serious restrictions on the kind of category $\mathsf{C}$ is allowed to be. For instance, my first thought was to try the classifying category $\mathbb{B}G$ for a group $G$, but it is easy to show that the if $\mathsf{C}$ has only one object, then the above statement is true (the only such category that works is the "setoid" $\{*\}=\mathbb{B}\{e\}$). Besides, I am finding it challenging to conceptualize what could go on in such a situation; most natural categories I can think of which are not finitely complete do not seem to admit such functors. My hunch is that if even if there is some such category $\mathsf{C}$, then we can enlarge it appropriately to a minimal category (of say some presheaves on it) for which this bigger category admits the products which $\mathsf{C}$ does not see; but is there a general framework that such ideas fall into?
Thanks!