Uniform continuity in the – form
DefinitionRudin_ch04_continuityRudin's Definition 4.18: is uniformly continuous on a metric space if for every there is a single such that for all with — the depends on only, not on the point. A relativized version, with and restricted to a subset of the domain, is included for use in later chapters. Continuity itself, and Rudin's punctured limit , are taken from Mathlib.
import Mathlib
/-!
# Rudin, Chapter 4 — uniform continuity
Definition transcribed from Walter Rudin, *Principles of Mathematical Analysis*, 3rd edition,
Chapter 4 (Definition 4.18).
Continuity itself is Mathlib's `Continuous` / `ContinuousAt` / `ContinuousWithinAt`, and Rudin's
limit $\lim_{x \to p} f(x) = q$ along a set $E$ is `Filter.Tendsto f (𝓝[E \ {p}] p) (𝓝 q)`;
both are reused. Uniform continuity in Mathlib is phrased through the uniformity filter, so the
$\varepsilon$–$\delta$ form Rudin uses — one $\delta$ serving all pairs of points — is stated
here directly.
-/
namespace Rudin
/-- Rudin, Definition 4.18: `f` is **uniformly continuous** on the metric space `X` if for every
`ε > 0` there is a `δ > 0` such that `dist (f p) (f q) < ε` for all points `p, q` with
`dist p q < δ`. -/
def UniformlyContinuous {X Y : Type*} [MetricSpace X] [MetricSpace Y] (f : X → Y) : Prop :=
∀ ε : ℝ, 0 < ε → ∃ δ : ℝ, 0 < δ ∧ ∀ p q : X, dist p q < δ → dist (f p) (f q) < ε
/-- The version of `Rudin.UniformlyContinuous` relative to a subset `E` of the domain: the
points `p, q` are restricted to `E`. -/
def UniformlyContinuousOn {X Y : Type*} [MetricSpace X] [MetricSpace Y] (f : X → Y) (E : Set X) :
Prop :=
∀ ε : ℝ, 0 < ε → ∃ δ : ℝ, 0 < δ ∧ ∀ p ∈ E, ∀ q ∈ E, dist p q < δ → dist (f p) (f q) < ε
end RudinRead-back
What the Lean code literally says, in plain math · Aristotle (Harmonic)
Two predicates are defined for a map between metric spaces.
Uniform continuity on the whole space. is uniformly continuous means: for every real there exists a real such that for all points ,
The quantifier order is fixed: is chosen after but before and , so one must serve all pairs. Both inequalities are strict.
Uniform continuity relative to a subset. For , is uniformly continuous on means the same statement with and restricted to : for every there is such that for all and all with one has . The values of outside are irrelevant to this condition, and for it holds trivially.
These are definitions only; nothing is asserted about them.
Confirmed by the mission captain (proposal self-audit).