I am currently studying the counterpart of axiom of choice in ETCS which is the axiom that every surjective function has a right inverse.
In category of sets the surjective functions are epimorphsims however, in general categories not every epimorphism has a right inverse. An example of this is the category of partially ordered set. Every arrow in this category is an epimorphism and non identity arrows in this category does not have a right inverse.
I recently saw in an article that we can reformulate the axiom of choice in any category as the following statement:
$\bf{The\ Axiom\ of\ Choice\ for\ a\ Category}$: every epimorphism is split.
The definition i am using for a split epimorphism is as follow:
A ${split\ epimorphism}$ is a morphism $f: X \rightarrow Y$ where there exists a morphism $g : Y \rightarrow X$ such that the composite of $f$ and $g$ is the identity morphism.
But how can the axiom of choice for a category be true when we can prove that not every epimorphism had a right inverse?