Butterfly wings obstruct extension from a dense image

See it in Lean

Axioms
ZFC only
Concerns
Normal

Statement

Let \(e:Y\to Z\) be continuous with dense image, and let \(p\in Z\setminus e(Y)\). Suppose disjoint open sets \(U,V\subseteq Z\) satisfy \[U\cup V=Z\setminus\{p\},\qquad p\in\overline U\cap\overline V.\] There is a continuous map \(f:Y\to[0,1]\) for which no continuous \(g:Z\to[0,1]\) satisfies \(g\circ e=f\).

Proof

Define \(f\) to be zero on \(e^{-1}(U)\) and one on \(e^{-1}(V)\). These sets form a clopen partition of \(Y\), so \(f\) is continuous. If \(g\circ e=f\), then \(g\) is zero on \(U\cap e(Y)\) and one on \(V\cap e(Y)\). Density of \(e(Y)\) and openness of \(U,V\) imply that these intersections are dense in \(U,V\), respectively. Continuity forces \(g\) to be zero on \(\overline U\) and one on \(\overline V\), giving contradictory values at \(p\). \(\blacksquare\)

Where it is used

Cited on space pages