Documentation

Books.IntroductiontoRealAnalysisVolumeI_JiriLebl_2025.Chapters.Chap03.section04

def book_uniformContinuous (S : Set ) (f : S) :

Definition 3.4.1. A function f : S → ℝ is uniformly continuous if for every ε > 0 there exists δ > 0 such that whenever x, c ∈ S with |x - c| < δ, then |f x - f c| < ε.

Equations
Instances For

    The book definition of uniform continuity on a subset of is equivalent to the standard UniformContinuous predicate for functions on the subtype.

    theorem abs_sq_sub_sq_le_two_abs_sub {x y : { t : // t Set.Icc 0 1 }} :
    |x ^ 2 - y ^ 2| 2 * |x - y|

    Helper lemma for Example 3.4.2: on [0, 1], the square function has Lipschitz constant 2.

    theorem uniformContinuous_sq_on_Icc :
    UniformContinuous fun (x : { x : // x Set.Icc 0 1 }) => x ^ 2

    Example 3.4.2. The square function is uniformly continuous on the closed interval [0, 1], but it is not uniformly continuous on the whole real line.

    Example 3.4.2. The square function ℝ → ℝ is not uniformly continuous on the entire real line.

    theorem min_half_delta_mem_Ioo {δ : } ( : 0 < δ) :
    min (δ / 2) (1 / 3) Set.Ioo 0 1

    Example 3.4.3 helper: the point min (δ/2) (1/3) lies in (0,1).

    theorem inv_gap_for_double {t : } (ht : 0 < t) (hle : t 1 / 3) :
    |t⁻¹ - (2 * t)⁻¹| 3 / 2

    Theorem 3.4.4. If f : ℝ → ℝ is continuous on the closed interval [a, b], then f is uniformly continuous on [a, b].

    theorem uniformContinuous.cauchySeq_image {S : Set } {f : S} (hf : UniformContinuous f) {x : S} (hx : CauchySeq x) :
    CauchySeq fun (n : ) => f (x n)

    Lemma 3.4.5. If f : S → ℝ is uniformly continuous and (x_n) is a Cauchy sequence in S, then (f x_n) is also Cauchy.

    theorem uniformContinuousOn.cauchySeq_image {S : Set } {f : } (hf : UniformContinuousOn f S) {x : } (hx : ∀ (n : ), x n S) (hxC : CauchySeq x) :
    CauchySeq fun (n : ) => f (x n)
    theorem uniformContinuousOn_extend_to_Icc {a b : } {f : } (h : a < b) (hf : UniformContinuousOn f (Set.Ioo a b)) :
    ∃ (g : ), ContinuousOn g (Set.Icc a b) Set.EqOn g f (Set.Ioo a b) Filter.Tendsto f (nhdsWithin a (Set.Ioi a)) (nhds (g a)) Filter.Tendsto f (nhdsWithin b (Set.Iio b)) (nhds (g b))
    theorem uniformContinuousOn_Ioo_iff_limits_extend {a b : } (h : a < b) (f : ) :
    UniformContinuousOn f (Set.Ioo a b) ∃ (L_a : ) (L_b : ), Filter.Tendsto f (nhdsWithin a (Set.Ioi a)) (nhds L_a) Filter.Tendsto f (nhdsWithin b (Set.Iio b)) (nhds L_b) ∃ (g : ), ContinuousOn g (Set.Icc a b) (∀ xSet.Ioo a b, g x = f x) g a = L_a g b = L_b

    Proposition 3.4.6. Suppose a < b. A function f : (a, b) → ℝ is uniformly continuous if and only if the limits L_a = lim_{x → a} f x, L_b = lim_{x → b} f x exist and an extension to the closed interval sending a to L_a, b to L_b, and agreeing with f on (a, b) is continuous.

    def book_lipschitzOn (S : Set ) (f : S) :

    Definition 3.4.7. A function f : S → ℝ is Lipschitz continuous if there exists K ∈ ℝ such that |f x - f y| ≤ K * |x - y| for all x, y ∈ S.

    Equations
    Instances For
      theorem book_lipschitzOn_iff_lipschitzWith {S : Set } {f : S} :

      The book definition of Lipschitz continuity on a subset of coincides with the existence of some ℝ≥0 Lipschitz constant for the subtype.

      Proposition 3.4.8. A Lipschitz continuous function is uniformly continuous.

      Example 3.4.9. The sine function ℝ → ℝ is Lipschitz continuous with constant 1, as |sin x - sin y| ≤ |x - y| for all real x, y.

      Example 3.4.9. The cosine function ℝ → ℝ is Lipschitz continuous with constant 1, since |cos x - cos y| ≤ |x - y| for all real x, y.

      theorem sqrt_sub_le_sqrt_sub {x y : } (hx : 0 x) (hxy : x y) :
      y - x (y - x)
      theorem abs_sqrt_sub_le_sqrt_abs {x y : } (hx : 0 x) (hy : 0 y) :

      Example 3.4.10. The square root function f(x) = √x is Lipschitz continuous on [1, ∞) with constant 1/2, as |√x - √y| ≤ (1/2) |x - y| for x, y ≥ 1.

      Example 3.4.10. The square root function g(x) = √x on [0, ∞) is not Lipschitz continuous; no global constant K can satisfy |√x - √y| ≤ K |x - y| on the whole domain.

      Example 3.4.10. Although not Lipschitz on [0, ∞), the square root function is uniformly continuous on that domain.