{
  "id": "uniform-continuity",
  "title": "Uniform Continuity",
  "lang": "en",
  "source_lang": "en",
  "summary": "Uniform continuity requires a single input-distance bound to control output differences everywhere in a function’s domain.",
  "category": "mathematics",
  "subcategory": "analysis",
  "type": "concept",
  "aliases": [
    "Uniform continuousness"
  ],
  "generated_at": "2026-10-04",
  "model": "pro/gpt-6.1-sol",
  "url": "https://aiwiki.page/en/uniform-continuity/",
  "translations": {
    "zh-Hans": {
      "url": "https://aiwiki.page/zh/uniform-continuity/",
      "json": "https://aiwiki.page/zh/uniform-continuity.json"
    }
  },
  "sections": [
    {
      "heading": "",
      "text": "Uniform continuity is a property of a function that strengthens ordinary continuity by requiring the same control of output differences throughout its domain. For any prescribed positive tolerance in the output, there must be a positive tolerance in the input that works for every pair of domain points. Unlike ordinary continuity, this input tolerance cannot depend on where the points lie. The definition applies to functions between metric spaces. (jirka.org)"
    },
    {
      "heading": "Definition and distinction from continuity",
      "text": "Let \\((X,d_X)\\) and \\((Y,d_Y)\\) be metric spaces. A function \\(f:X\\to Y\\) is uniformly continuous if\n\n\\[\\forall\\varepsilon>0\\;\\exists\\delta>0\\;\\forall x,y\\in X: \\quad d_X(x,y)<\\delta \\;\\Longrightarrow\\; d_Y(f(x),f(y))<\\varepsilon.\\]\n\nFor a real-valued function on a subset of the real numbers, this becomes\n\n\\[|x-y|<\\delta \\;\\Longrightarrow\\; |f(x)-f(y)|<\\varepsilon.\\]\n\nThe number \\(\\delta\\) may depend on \\(\\varepsilon\\), the function, and the chosen domain and metrics, but not on \\(x\\) or \\(y\\). (jirka.org)\n\nFor a continuous function, the corresponding quantifier order is\n\n\\[\\forall x\\in X\\;\\forall\\varepsilon>0\\;\\exists\\delta>0\\;\\forall y\\in X.\\]\n\nHere \\(\\delta\\) may depend on \\(x\\). Uniform continuity therefore implies continuity, but continuity need not imply uniform continuity. The distinction concerns uniform control over a whole domain, not merely behavior near each individual point. (jirilebl.github.io)\n\nNegating the definition gives a useful test: uniform continuity fails precisely when there is some \\(\\varepsilon_0>0\\) such that, for every \\(\\delta>0\\), two domain points can be found with input distance less than \\(\\delta\\) but output distance at least \\(\\varepsilon_0\\). (jirilebl.github.io)"
    },
    {
      "heading": "Examples and dependence on the domain",
      "text": "The following examples illustrate different mechanisms; the displayed estimates directly verify the definition or its negation. (jirilebl.github.io)\n\n- Linear functions. If \\(f(x)=ax+b\\), then\n\n\\[|f(x)-f(y)|=|a|\\,|x-y|.\\]\n\nFor \\(a\\ne0\\), choosing \\(\\delta=\\varepsilon/|a|\\) proves uniform continuity on all of \\(\\mathbb R\\). Constant functions are uniformly continuous as well.\n- The square function. The function \\(f(x)=x^2\\) is continuous but not uniformly continuous on \\(\\mathbb R\\). Set\n\n\\[x_n=n,\\qquad y_n=n+\\frac1n.\\]\n\nThen \\(|x_n-y_n|=1/n\\to0\\), whereas\n\n\\[|y_n^2-x_n^2|=2+\\frac1{n^2}.\\]\n\nOn any bounded interval, however, the factorization\n\n\\[|x^2-y^2|=|x-y|\\,|x+y|\\]\n\nsupplies a uniform bound.\n- Reciprocal functions near a missing endpoint. On \\((0,1)\\), \\(f(x)=1/x\\) is continuous but not uniformly continuous. Taking \\(x_n=1/n\\) and \\(y_n=1/(n+1)\\), for \\(n\\ge2\\), gives input distances tending to zero while the output difference remains \\(1\\).\n- The square-root function. On \\([0,\\infty)\\),\n\n\\[|\\sqrt{x}-\\sqrt{y}|\\le\\sqrt{|x-y|}.\\]\n\nThus \\(\\delta=\\varepsilon^2\\) works everywhere. Uniform continuity does not require a bounded domain, a bounded function, or a bounded derivative.\n\nRestricting a uniformly continuous function to a smaller domain preserves uniform continuity. Enlarging its domain may destroy it, as the square-function example shows. (jirka.org)"
    },
    {
      "heading": "Compactness and the Heine–Cantor theorem",
      "text": "The Heine–Cantor theorem states that every continuous function from a compact metric space into a metric space is uniformly continuous. In particular, every continuous real-valued function on a closed bounded interval \\([a,b]\\) is uniformly continuous. (jirka.org)\n\nA sequential proof explains the role of compactness. If uniform continuity failed, there would be sequences \\(x_n,y_n\\) satisfying\n\n\\[d_X(x_n,y_n)\\to0, \\qquad d_Y(f(x_n),f(y_n))\\ge\\varepsilon_0.\\]\n\nCompactness supplies a subsequence \\(x_{n_k}\\to x\\). The corresponding \\(y_{n_k}\\) also tends to \\(x\\). Continuity forces both image subsequences to tend to \\(f(x)\\), contradicting their fixed separation. (jirilebl.github.io)\n\nCompactness is sufficient, not necessary: linear functions are uniformly continuous on the noncompact domain \\(\\mathbb R\\). Conversely, boundedness of a domain alone is insufficient, as \\(1/x\\) on \\((0,1)\\) demonstrates. (jirka.org)"
    },
    {
      "heading": "Quantitative sufficient conditions",
      "text": "Lipschitz continuity provides a stronger, quantitative condition. If a constant \\(L\\ge0\\) satisfies\n\n\\[d_Y(f(x),f(y))\\le Ld_X(x,y)\\]\n\nfor all \\(x,y\\), then \\(f\\) is uniformly continuous. When \\(L>0\\), one may take \\(\\delta=\\varepsilon/L\\). (jirilebl.github.io)\n\nFor a differentiable real function on an interval, a uniform bound \\(|f'(x)|\\le M\\) implies a Lipschitz estimate through the mean value theorem. This is a sufficient condition, not a necessary one: the square-root estimate above establishes uniform continuity even though its derivative becomes unbounded near zero. (jirka.org)\n\nMore generally, a global estimate\n\n\\[d_Y(f(x),f(y))\\le C\\,d_X(x,y)^\\alpha, \\qquad C>0,\\quad 0<\\alpha\\le1,\\]\n\ncalled Hölder continuity, proves uniform continuity by the choice\n\n\\[\\delta=(\\varepsilon/C)^{1/\\alpha}.\\]\n\nThis illustrates how an explicit rate of output variation can strengthen the qualitative epsilon–delta requirement. (math.rice.edu)"
    },
    {
      "heading": "Cauchy sequences and extension",
      "text": "Uniformly continuous functions preserve Cauchy sequences. Given an output tolerance \\(\\varepsilon\\), choose its uniform input tolerance \\(\\delta\\). Eventually all pairs of terms of a Cauchy sequence lie within \\(\\delta\\), so all corresponding image terms lie within \\(\\varepsilon\\). (jirka.org)\n\nThis leads to an extension theorem. If \\(A\\) is a dense subset of a metric space \\(X\\), \\(Y\\) is a complete metric space, and \\(f:A\\to Y\\) is uniformly continuous, then \\(f\\) has a unique uniformly continuous extension \\(F:X\\to Y\\). For \\(a_n\\in A\\) with \\(a_n\\to x\\), define\n\n\\[F(x)=\\lim_{n\\to\\infty}f(a_n).\\]\n\nCompleteness ensures existence of the limit, and uniform continuity ensures that it is independent of the approximating sequence. (math.uwaterloo.ca)\n\nIn particular, a uniformly continuous map into a complete metric space extends uniquely to the completion of its domain. For finite real endpoints \\(a<b\\), a function \\((a,b)\\to\\mathbb R\\) is uniformly continuous exactly when it admits a continuous extension to \\([a,b]\\). (leanprover-community.github.io)"
    },
    {
      "heading": "Limits and integration",
      "text": "Uniform continuity is distinct from uniform convergence: the former compares values of one function at different inputs, while the latter compares different functions at the same input. Nevertheless, a uniform limit of uniformly continuous functions is uniformly continuous. (leanprover-community.github.io)\n\nThe proof uses the triangle inequality:\n\n\\[d_Y(f(x),f(y)) \\le d_Y(f(x),f_n(x)) +d_Y(f_n(x),f_n(y)) +d_Y(f_n(y),f(y)).\\]\n\nUniform convergence makes the first and third terms uniformly small; uniform continuity of one suitable \\(f_n\\) controls the middle term. No common choice of \\(\\delta\\) for all \\(f_n\\) is required. (leanprover-community.github.io)\n\nUniform continuity also underlies the proof that a continuous function on \\([a,b]\\) has a Riemann integral. A sufficiently fine partition makes the function’s oscillation small on every subinterval simultaneously, so upper and lower sums differ by arbitrarily little. (ocw.mit.edu)"
    },
    {
      "heading": "Metric dependence and uniform spaces",
      "text": "Ordinary continuity depends only on the topology induced by the metrics. Uniform continuity can distinguish metrics that induce the same topology. On \\(\\mathbb R\\), for example, the metrics\n\n\\[d(x,y)=|x-y|, \\qquad \\rho(x,y)=|\\arctan x-\\arctan y|\\]\n\ngive the same topology. The identity map from \\((\\mathbb R,d)\\) to \\((\\mathbb R,\\rho)\\) is uniformly continuous, but the reverse map is not: \\(n\\) and \\(n+1\\) become arbitrarily close in \\(\\rho\\) while remaining distance \\(1\\) apart in \\(d\\). (homepages.ecs.vuw.ac.nz)\n\nThe broader setting is a uniform space, which specifies a uniform notion of closeness without necessarily using a metric. Uniform continuity then means that every prescribed target closeness is guaranteed by some source closeness, uniformly for all pairs of points. This framework retains the connection between uniform continuity, Cauchy behavior, and completion. (leanprover-community.github.io)"
    }
  ],
  "links": [
    "mathematical-function",
    "metric-space",
    "real-number",
    "continuous-function",
    "compact-space",
    "lipschitz-continuity",
    "mean-value-theorem",
    "derivative",
    "cauchy-sequence",
    "dense-set",
    "complete-metric-space",
    "limit",
    "metric-completion",
    "uniform-convergence",
    "triangle-inequality",
    "riemann-integral",
    "topology"
  ],
  "sources": [
    {
      "title": "RA Continuous functions",
      "url": "https://www.jirka.org/ra/html/sec_metcont.html"
    },
    {
      "title": "RA Uniform continuity",
      "url": "https://jirilebl.github.io/ra/html/sec_unifcont.html"
    },
    {
      "title": "Basic Analysis I",
      "url": "https://jirka.org/ra/realanal.pdf"
    },
    {
      "title": "MIT18_100af20_lec17.pdf",
      "url": "https://ocw.mit.edu/courses/18-100a-real-analysis-fall-2020/resources/mit18_100af20_lec172/"
    },
    {
      "title": "Kenneth R. Davidson, Allan P. Donsig: Real Analysis and Applications supplementary material",
      "url": "https://www.math.uwaterloo.ca/~krdavids/RAA/RAAsupp.pdf"
    },
    {
      "title": "Extension by continuity",
      "url": "https://www-users.cse.umn.edu/~garrett/m/real/notes_2019-20/08c_extension_by_continuity.pdf"
    },
    {
      "title": "Mathlib.Topology.UniformSpace.Completion",
      "url": "https://leanprover-community.github.io/mathlib4_docs/Mathlib/Topology/UniformSpace/Completion.html"
    },
    {
      "title": "Mathlib.Topology.UniformSpace.UniformApproximation",
      "url": "https://leanprover-community.github.io/mathlib4_docs/Mathlib/Topology/UniformSpace/UniformApproximation.html"
    },
    {
      "title": "mit18_100af20_lec21.pdf",
      "url": "https://ocw.mit.edu/courses/18-100a-real-analysis-fall-2020/resources/mit18_100af20_lec213/"
    },
    {
      "title": "MATH 452 General Topology",
      "url": "https://homepages.ecs.vuw.ac.nz/~atkin/452/txts/452_08.pdf"
    },
    {
      "title": "Some topics in analysis related to metrics",
      "url": "https://math.rice.edu/~semmes/umtg.pdf"
    }
  ],
  "license": "https://creativecommons.org/licenses/by/4.0/"
}