Start with the approximate surjectivity with geometric correction argument. For a fixed , put . Choose successively so that
Induction gives and . The series is absolutely convergent in the Banach space , because the sum of its norms is bounded by the convergent geometric series . Write its sum as . The bounded linear operator commutes with this limit, while . Consequently
The choices need not depend linearly on ; no bounded linear right inverse is being asserted.
For the bounded extension, use the restriction bounded linear operator on the Banach spaces of bounded continuous functions, each with its supremum norm. We will construct an approximation to any with . The two sets
are disjoint closed sets in , since is closed. If both are nonempty, the distance to a set construction defines a continuous function
The denominator is positive at every point: zero distance to a closed set means membership in that set. Thus , with on and on . On and , and also on the intervening range , this implies
If only is empty take , if only is empty take , and if both are empty take ; the same bounds hold. For take . This proves the approximation hypothesis with and . Applying the argument above to yields an element of the bounded continuous functions with and . Restriction gives the reverse inequality, so the extension preserves the exact supremum norm:
This proves the bounded metric-space case of the Tietze extension theorem rather than presupposing it.
For an arbitrary real continuous function on , let . Its values lie strictly between and , although its supremum norm can be . The bounded result supplies an extension with . Let , a closed set disjoint from . If is nonempty and is nonempty, put
Both factors are continuous functions; on and on . Off we have , and on we have , so everywhere. Therefore a real continuous extension is
On it equals . If is empty use ; if is empty simply take . This handles unbounded without requiring a uniform margin between and .