Let $K$ be a compact Hausdorff space. I'm wondering: Does there always exist a subset $J \subseteq C(K, K)$ such that:
- $J$ is closed under composition,
- there is an element $f \in C(K)$ such that the map $J\rightarrow C(K)$, $g \mapsto f\circ g$ is bijective.
If not, how does a possible counterexample look like?