0

In an exercise from a book, I am asked:

Given that $A$ and $B$ are sets, $f: A \rightarrow B$ is a function from $A$ to $B$, $R$ is a relation from $A$ to $B$, and $f$ is compatible with $R$, prove that there is a unique function, $h: A/R \rightarrow B$, such that $\forall x \in A (h([x]_R) = f(x))$

I know the function is $h = \{(X,y) \in A/R \times B: \exists x \in X(f(x) = y) \}$ (the function is given as a hint).

When I initially wrote the proof I did the following. (The 'proof' below is just to establish $h$ is a function, not that $h$ is the unique function.)

Existence: Suppose $X \in A/R$, then $\exists x \in A ([x]_R = X$. Say $[x_0]$ = X. Suppose $b = f(x_0)$. Then since $\forall x \in A (h([x]) = f(x)$, we have that $h([x_0]_R) = f(x_0) = b$. Since $f$ is a function, we know $f(x_0)$ exists. Thus $\exists b(h(X)=b)$.

Uniqueness: Suppose $y\in B$ and $h(X) = y$. Then $h([x_0])=y$. But $h([x_0] = b$ so $b=y$ $\square$

I felt like something was wrong and thinking about it a bit more I'm quite certain I have gone wrong by assuming $h$ is a function, and then proving that $h$ is a function. Basically I think I did what the accepted answer here says I shouldn't do: How do I prove that a function is well defined?.

I thought I could try to just treat $h$ as a relation, and reformulate the proof. The reason I am now quite confused however is that the notation used in the constraint $\forall x \in A (h([x]) = f(x)$ seems to implicitly say $h$ is a function. Basically I am wondering how I can formulate my proof such that I avoid assuming $h$ is a function, while using this constraint? Can I just treat the given statement as $\forall x \in A ((h([x]),f(x)) \in h)$?

Note: I tried to treat the given statement as described in the previous paragraph's last sentence. But I ended up needing to show that $(X,y) = (X,b)$ for both those elements in $h$, having already shown $(X,b) \in h$. But from here I am not sure how to proceed without treating $h$ as a function.

masiewpao
  • 2,217

2 Answers2

1

For all $a \in A$, we define $[a] \in A/R$ by $[a] = \{x \in A: xRa\}$.

Since $f$ is compatible with $R$. Then $xRa$ implies $f(x) = f(a)$. So, for all$[x],[a] \in A/R$, $[x] = [a]$ implies $xRa$ implies $f(x)=f(a)$. It follow that the function $h:A/R \to B$ defined by $h([a]) = f(a)$ is a well-defined function.

0

You write that "the constraint $∀x∈A(h([x])=f(x)$ seems to implicitly say $h$ is a function", but actually, $h$ is already a function in the statement of the claim from the moment they write "that there is a unique function, $h\colon A/R→B$".

What you can indeed do is to define $h$ as in the hint, which a priori is only a relation. Now go ahead and show that this relation is a function, i.e., $\forall X\in A/R\colon \exists ! b\in B\colon (X,b)\in h$. Once you have shown that $h$ is a function, we can use the functional notation $h([x])$ to stand for the (existing and unique) element of $B$ that is related to $[x]$, as desired.

  • Hi Thank you! Sorry I should have been more clear; when I say it implicitly implies $h$ is a function, I mean to say that in the course of the proof, where I cannot yet assume $h$ is a function before I prove it, if I use the constraint it immediately imposes that $h$ is a function?

    Also that is what I was trying to show, but I've been very unclear. I will update my question to reflect my 'proof' is only attempting to show $h$ is a function, not the uniqueness of $h$.

    – masiewpao Feb 13 '20 at 12:00