Let $g$ be a continuous function on an interval $A$ and let $F$ be the set of points where $g$ fails to be one-to-one; that is $$F = \{x \in A : f(x)=f(y) \text{ for some $y \neq x$ and $y \in A$} \}$$ Show that if $F$ is non-empty then it is uncountable.
An attempt at the solution.
Since F is non-empty there exists some $c_1,c_2$ $\in A$ such that $c_1\neq c_2 $ and $g(c_1)=g(c_2)$. Choose a point $z$ between $c_1$ and $c_2$ with $g(z) \neq g(c_1)$ Now $\forall$ $L$ satisfying $g(z)<L<g(c_1)$ or $g(z)>L>g(c_1)$ by $IVT$ there will be a point $K_1$ $\in (z,c_1)$ satisfying $g(K_1)=L$. Notice that $g(z)<L<g(c_2)$ or $g(z)>L>g(c_2)$ is also true for the same value of $L$ which by $IVT$ leads to the conclusion that there is also another point $K_2 \in (z,c_2)$ satisfying $g(K_2)=L$. Now how can i prove that there are uncountable number of points? Am i correct upto here?