The McShane extension theorem (Lipschitz functions)
ProvedFamousTheorems.mcshane_lipschitz_extensionThe McShane extension theorem. Let be a subset of a (pseudo)metric space and a -Lipschitz function. Then extends to a -Lipschitz function on the whole space.
An explicit extension is (McShane, 1934, and independently Whitney). The extension preserves the Lipschitz constant exactly, which fails in general for vector-valued maps (where Kirszbraun's theorem is the Hilbert space substitute).
Formalization note. Mathlib's LipschitzOnWith.extend_real. The function is given as f : α → ℝ that is K-Lipschitz on s, with K : NNReal, and the conclusion asks for a globally K-Lipschitz g agreeing with f on s (Set.EqOn f g s).
Preamble
import Mathlib
Formal statement
namespace FamousTheorems
theorem mcshane_lipschitz_extension {α : Type*} [PseudoMetricSpace α] {f : α → ℝ} {s : Set α} {K : NNReal} (hf : LipschitzOnWith K f s) :
∃ g : α → ℝ, LipschitzWith K g ∧ Set.EqOn f g s := by sorry
end FamousTheoremsSource
Listed in Mathlib's curated theorem manifests (docs/1000.yaml); formalized in Mathlib as `LipschitzOnWith.extend_real`. Proof here reduces to that Mathlib result.