The following question is taken from Arrows, Structures and Functors the categorical imperative by Arbib and Manes
Notations: Let $2^A$ denote the $\textit{power set}$ of all subsets of $A.$ Given $f:A\rightarrow B$, define $2^f:2^b\rightarrow 2^A$ by $2^f(S)=f^{-1}(S)=\{a\in A\mid f(a)\in B\}.$ Also let $coeq(p_1,p2_)$ denote the coequalizer of the two maps $p_1,p_2$ and similarly, let $eq(q_1,q_2)$ to denote the equalizer of the two maps $q_1,q_2.$ We also define the direct image function $2^{[f]}$ to be $2^{[f]}(A)=f(A)=\{f(a)\in S\subset B\mid a\in A\}.$ We also assume the following propositions:
Proposition 1: Every coequalizer is an epimorphism
Proposition 2: Every onto map is a coequalizer
Proposition 3: Every equalizer is a monomorphism
Proposition 4: The equalizer $B\xrightarrow{h}A$ of pair of maps $A\xrightarrow {(q_1,q_2)}R$ is the inclusion map $$h:\{a\mid a\in A \text{ and } q_1(a)=q_2(a)\}\rightarrow A, a\mapsto a.$$
Exercise: Given $p_1, p_2:R\rightarrow A, h:A\rightarrow B$ prove that $h=coeq(p_1,p_2)$ iff $2^h=eq(2^{p_1}, 2^{p_2}).$ Similarly, given $q_1, q_2;A\rightarrow R, h:B\rightarrow A$ prove that $h=eq(q_1,q_2)$ iff $2^h=coeq(2^{q_1}, 2^{q_2}).$
I have a question for the second part of the question: Given $q_1, q_2;A\rightarrow R, h:B\rightarrow A$ prove that $h=eq(q_1,q_2)$ iff $2^h=coeq(2^{q_1}, 2^{q_2}).$
I don't think both directions are true, a friend helped me with cooking up a counter example in one of the direction: Given $q_1, q_2;A\rightarrow R, h:B\rightarrow A$ prove that if $h=eq(q_1,q_2)$, then $2^h=coeq(2^{q_1}, 2^{q_2}).$
Consider the following: Consider $A=\{0,1,2,3,4,5\}$ and $R=\{0,1,2\}.$ Defome $q_1,q_2:A\rightarrow R$ as follows:
| $n$ | $q_1(n)$ | $q_2(n)$ |
|---|---|---|
| $0$ | $0$ | $0$ |
| $1$ | $1$ | $1$ |
| $2$ | $0$ | $2$ |
| $3$ | $1$ | $0$ |
| $4$ | $0$ | $1$ |
| $5$ | $1$ | $2$ |
By proposition 4, it follows that setting $B=\{a\in A\mid q_1(a)=q_2(a)\}=\{0,1\}$ and $h:B\rightarrow A$ the inclusion map, then $h={eq}(q_1,q_2).$
Note that $2^h:2^A\rightarrow 2^B$ is defined by $2^h(P)=P\cap B,$ and since $2^{q_1},2^{q_2}:2^B\rightarrow 2^A$ is determined by the values on the singletons (since $2^{q_1}(S_1\cup S_2)=2^{q_1}(S_1)\cup 2^{q_1}(S_2))$), we note that
| $n$ | $2^{q_1}(\{n\})$ | $2^{q_2}(\{n\})$ |
|---|---|---|
| $0$ | $\{0,2,4\}$ | $\{0,3\}$ |
| $1$ | $\{1,3,5\}$ | $\{1,4\}$ |
| $2$ | $\emptyset$ | $\{2,5\}$ |
Let $B'=\{0,1,2, *\}$ and define a function $h':2^A\rightarrow B'$ as follows
$h'(\{0,3\})=h'(\{0,2,4\})=h'(\{0,2,3,5\})=0$
$h'(\{1,4\})=h'(\{1,3,5\})=h'(\{1,2,4,5\})=1$
$h'(\{\emptyset\})=h'(\{2,5\})=2$
$h'(P)=*$ for any other $P\subset R.$
Now we check that $h'\cdot 2^{q_1}=h'\cdot 2^{q_2}$
Suppose now that $\psi:2^h\rightarrow B'$ is such that $\psi\cdot 2^h=h'.$ Then
$0=h'(\{0,2,4\})=\psi \cdot 2^h(\{0,2,4\})=\psi(\{0\})$
$*=h'(\{0\})=\psi \cdot 2^h(\{0\})=\psi(\{0\})$
That is, we require that $0=\psi(\{0\})=*,$ which is a contradiction. Thus $2^h\neq{coeq}(2^{q_1},2^{q_2})$
Question:
For the converse direction: Assume $q_1,q_2: A\rightarrow R,h:B\rightarrow A,$ and $2^h={coeq}(2^{q_1},2^{q_2},$ of $q_1\cdot h\neq q_2\cdot h$, then I need to come up with example of a function $2^h$ where it coequalizes $2^{q_1},2^{q_2}.$
Thank you in advance.