Documentation

Expdb.Mathlib.SmoothExtension

Smooth realization of jets and gluing on a closed interval #

Adapted from DifferentialGeometry/Analysis/Calculus/SmoothExtension/BorelHalfLine/Basic.lean and DifferentialGeometry/Analysis/Calculus/SmoothExtension/JetGluing/Seam.lean in qinz1yang/differential-geometry at commit fd2f07fba4c6c102ba626c59153ad98da8f0d442, licensed under Apache-2.0 (see the root LICENSE). Applicable upstream NOTICE:

DifferentialGeometry Copyright 2026 The DifferentialGeometry contributors

Adaptations for Expdb: retained the Borel construction and closed-interval gluing theorem, removed manifold dependencies, and added finite-order uniform bounds with a rescaling argument for small prescribed derivatives. Construction helpers are private; namespaces and proofs were updated for the current Mathlib API.

theorem Expdb.SmoothExtension.exists_contDiff_iteratedDeriv_eq_with_small_bound {F : Type u_1} [NormedAddCommGroup F] [NormedSpace ℝ F] [CompleteSpace F] (P : ℕ) :
∃ (C : ℝ), 0 ≤ C ∧ ∀ (δ : ℝ), 0 < δ → ∀ (c : ℕ → F), (∀ n ≤ P, ‖c n‖ ≤ δ) → ∃ (h : ℝ → F), ContDiff ℝ (↑⊤) h ∧ (∀ (k : ℕ), iteratedDeriv k h 0 = c k) ∧ ∀ k ≤ P, ∀ (t : ℝ), ‖iteratedDeriv k h t‖ ≤ C * δ

Small finite jets admit an extension whose corresponding derivatives are uniformly small. The constant depends only on the number of controlled jets.

theorem Expdb.SmoothExtension.contDiffOn_Icc_ite_of_jet_match {F : Type u_1} [NormedAddCommGroup F] [NormedSpace ℝ F] {fL fR : ℝ → F} {a b x₀ : ℝ} (ha : a < x₀) (hb : x₀ < b) (hL : ContDiffOn ℝ (↑⊤) fL (Set.Icc a x₀)) (hR : ContDiffOn ℝ (↑⊤) fR (Set.Icc x₀ b)) (hjet : ∀ (n : ℕ), iteratedDerivWithin n fL (Set.Icc a x₀) x₀ = iteratedDerivWithin n fR (Set.Icc x₀ b) x₀) :
ContDiffOn ℝ (↑⊤) (fun (t : ℝ) => if t ≤ x₀ then fL t else fR t) (Set.Icc a b)

Controlled extension on a closed interval #

The following extension theorem is proved within Expdb.

theorem Expdb.SmoothExtension.exists_contDiffOn_Icc_extension_with_bound (P : ℕ) :
∃ (C : ℝ), 1 ≤ C ∧ ∀ (δ : ℝ), 0 < δ → ∀ (f : ℝ → ℝ), ContDiffOn ℝ (↑⊤) f (Set.Icc 1 2) → (∀ k ≤ P, ∀ x ∈ Set.Icc 1 2, ‖iteratedDerivWithin k f (Set.Icc 1 2) x‖ ≤ δ) → ∀ (l u : ℝ), l < 1 → 2 < u → ∃ (g : ℝ → ℝ), ContDiffOn ℝ (↑⊤) g (Set.Icc l u) ∧ Set.EqOn g f (Set.Icc 1 2) ∧ ∀ k ≤ P, ∀ x ∈ Set.Icc l u, ‖iteratedDerivWithin k g (Set.Icc l u) x‖ ≤ C * δ

A smooth function on [1, 2] extends exactly to any larger compact interval, with finite derivative bounds uniform over the original function.

Smooth multiplication by a cutoff #

The following lemma is proved within Expdb.

theorem Expdb.SmoothExtension.contDiff_mul_of_tsupport {χ g : ℝ → ℝ} {U : Set ℝ} (hU : IsOpen U) (hχ : ContDiff ℝ (↑⊤) χ) (hg : ContDiffOn ℝ (↑⊤) g U) (hsupp : tsupport χ ⊆ U) :
ContDiff ℝ ↑⊤ fun (x : ℝ) => χ x * g x

A smooth cutoff times a function smooth on an open neighbourhood of its support is smooth.

theorem Expdb.SmoothExtension.exists_contDiff_eqOn_Icc (l u : ℝ) (hl : 0 < l) (hlu : l < u) (g : ℝ → ℝ) (hg : ContDiffOn ℝ (↑⊤) g (Set.Icc (l / 2) (2 * u))) :
∃ (G : ℝ → ℝ), ContDiff ℝ (↑⊤) G ∧ Set.EqOn G g (Set.Icc l u)

A function smooth on a larger interval has a globally smooth representative on the smaller positive interval.