Let $\mathbb{T}$ be the unit circle. Given any closed $A, B\subseteq \mathbb{T}$ with $A \cap B = \emptyset$, there exists a smooth function $\varphi \in \mathcal{C}^\infty(\mathbb{T})$ such that $\varphi = 0$ on $A$ and $\varphi = 1$ on $B$.
Can we have a say on the modulus of the derivative of such a $\varphi$ ? i.e. can with find such a $\varphi$ with $|\varphi'(z)| \leq 1$ for all $z \in \mathbb{T}$ ?