Lipschitz continuity Created 2026-09-24 Updated 2026-10-14
A function between metric spaces is Lipschitz continuous if one finite number controls every change of output by the corresponding change of input:For real inputs and outputs this is . The same bound must work for every pair in the specified domain of a function. It gives a quantitative version of continuity: an input error of at most produces an output error of at most . The least possible bound is the Lipschitz constant. Lebl presents the real and metric-space definitions and their connection with uniform continuity. [ref]
Three functions show why this condition differs from differentiability. The absolute value has a corner at zero, but the reverse triangle inequality gives , so it has Lipschitz constant one on the real line. The sine is smooth and also has Lipschitz constant one: the mean value theorem and bound every secant slope. The square root is continuous on , butNo finite Lipschitz bound works on that interval. At , the ratios are . Smaller input changes near zero therefore require larger amplification factors.
Bounded secant slopes permit a corner, while the square root needs unbounded amplification near zero
. Details. For a real function, Lipschitz continuity means that the absolute slopes of all secant lines are bounded. If the derivative exists at a point, taking a limit of those slopes gives . In the other direction, a function that is continuous on a real interval, differentiable in its interior, and satisfies there is Lipschitz continuous by the mean value theorem. The interval hypothesis matters: the theorem uses the segment connecting the two inputs.
A Lipschitz function is uniformly continuous: for , choosing input tolerance works at every point. If , the function is constant. The converse fails; the square root on is uniformly continuous, and satisfies the weaker Hölder continuity bound , without a finite Lipschitz constant. These distinctions are developed in Lebl's worked examples. [ref]
The usefulness is controlled sensitivity. Successive Lipschitz maps with bounds and have a function composition with bound , because each stage amplifies the previous distance by at most its own bound. For an ordinary differential equation, Lipschitz continuity in the unknown state is the condition that makes nearby trial solutions controllably close in the Picard-Lindelöf theorem. For incomplete data, the McShane extension theorem fills in unobserved values while preserving the same bound. This one inequality connects error estimates, uniqueness, and interpolation.
If is Lipschitz continuous on with Lipschitz constant , then Cauchy-Schwarz inequality and the binomial distribution variance giveThis is an explicit error guarantee, rather than only an existence theorem. For the Bernstein approximation of a corner, choosing guarantees supremum norm error at most ; guarantees error strictly less than . The guarantee is sufficient, not optimal.
For this specific target, the error reaches its maximum at . Indeed the derivative of is a weighted average of the slopes , all in : see derivatives of Bernstein polynomials. Subtracting the target makes the error nondecreasing to the left of the corner and nonincreasing to its right. For even , the symmetric binomial distribution at gives the exact valueThe last equality follows by pairing terms about and telescoping the binomial coefficients. It gives for and for .
McShane extension theorem Created 2026-10-03 Updated 2026-10-14
Let be a nonempty subset of a metric space , and let satisfy a Lipschitz bound . Thenare real-valued Lipschitz functions on all of , agree with on , and obey the same bound . Every other extension satisfying that bound lies between them, . Despite the infimum in its formula, is the largest such extension: every given sample supplies an upper constraint .
Take three real samples , , , and allow the bound . Their least Lipschitz constant is only , so this is deliberately a looser permitted bound. The two extensions areAt , the allowable interval is . The interpolant obtained by linear interpolation is a piecewise linear function and has value there. Extending it constantly outside obeys the same bound on the entire real line. At , the allowable interval is . Thus the data and the bound control possible values without selecting a unique curve.
Each sample constrains a Lipschitz function; the upper and lower envelopes bound every allowed extension
. Details. The construction is useful when data are known only on a subset: it extends them without increasing an allowed Lipschitz bound. A short justification explains why the envelopes work. Fix . The triangle inequality and the bound on implyso the infimum is finite below; the term makes it finite above. At a sample , all upper terms are at least , while that term gives equality. Finally, gives after taking an infimum; exchanging proves the bound. The lower envelope follows by applying the same argument to .
E. J. McShane's paper Extension of range of functions appeared in the Bulletin of the American Mathematical Society, volume 40, in 1934, pp. 837–842. [ref]
https://www.ams.org/books/surv/012/surv012-endmatter.pdf. AMS bibliography: E. J. McShane, Extension of range of functions
[ref]https://doi.org/10.1090/S0002-9904-1934-05978-0. McShane's original publication
For an equally spaced design with independent errors of variance at most and a regression function with Lipschitz constant , the unit-width box kernel estimator averages the observations in the window. Its bias is at most , and its variance is at most . The window occupancy for an equally spaced regression design gives, whenever ,In the usual range , this is uniformly up to the boundary. For arbitrarily large bandwidth, the stochastic error cannot continue to decrease as : once all observations are included the estimator is simply their mean.
Past exam of the mathematics course of the University of Cambridge 2001 iii Paper 11 5 Solution Created 2026-10-03 Updated 2026-10-14
Replace by if necessary; this only weakens the hypothesis. We prove the result for finite graphs using a random proper partial graph coloring, then a deterministic completion. All constants below may depend on this fixed positive .
First record the extension of a partial colouring by neighbour-colour savings. If a partial colouring uses colours from a palette of size , let be the number of coloured neighbours of , their number of distinct colours, and the neighbour-colour saving. There are available colours and uncoloured neighbours. Thusat every vertex suffices for greedy completion: each subsequently coloured neighbour removes at most one available colour while reducing the uncoloured-neighbour count by one.
Call high-degree if . Its graph neighbourhood has at leastnonadjacent pairs for all sufficiently large . Assign independently to every vertex one of tentative colours. Erase the colour of every vertex having a neighbour with the same tentative colour. The remaining colouring is proper; erasure is based on the original assignments and is not an iterative cascade.
For each , define as the number of tentative colours assigned to at least one nonadjacent pair in its graph neighbourhood. Let count those same colours for which at least one neighbour of loses its colour. Then counts repeated colours with no erased occurrence among the neighbours, so .
For a particular nonadjacent pair , consider the event that both receive one colour and no vertex of receives that colour. This guarantees that its exactly two occurrences in both survive. Its probability is at leastHere , , and for . Different pairs cannot be counted by the same colour in this event, since each event specifies exactly two occurrences in the graph neighbourhood. Thereforefor every high-degree vertex. This is the expected colour savings from sparse neighbourhoods.
We need simultaneous concentration, not just a positive expectation. A single tentative-colour change can affect or only in the old and new colour categories, so each function changes by at most two. A witness for fixes two vertices for each of colours. A witness for fixes such a nonadjacent pair and an erased neighbour together with a same-coloured adjacent vertex, at most four vertices per colour. Thus both are certifiable functions with Lipschitz constant and certificate parameter at most . Both are bounded by .
To see exactly what concentration follows, let an integer-valued change by at most per coordinate and have certificates of size at most . For an input with , fix such a certificate . If has , form a hybrid agreeing with that input on and with outside . The hybrid has value at least , so at least certificate positions differ from . Equal weights on show that its Talagrand convex distance from is at least . Talagrand's convex distance inequality therefore gives the two-threshold concentration for certifiable functions,At an integer median , each median-side probability is at least . Taking thresholds or and using givesfor . Summing these tails gives . For sufficiently large , depending on , it follows thatApply this to and . Except with probability at most , .
A bad event at depends only on tentative colours at distance at most two. It is independent of the entire collection of bad events at distance greater than four. Its dependency graph of events consequently has maximum degree at most for large . The Lovász local lemma now makes all high-degree vertices good simultaneously: exponential decay beats this polynomial dependency bound.
The needed local-lemma step can be checked directly. If every bad-event probability is at most , induction on conditioning sets gives : split those events into non-neighbours of , independent of it, and at most neighbours, whose avoidance probability is at least by the induction. Multiplying the resulting conditional avoidance probabilities makes total avoidance positive. Taking works whenever , since . Our bound satisfies this criterion once .
Choose a successful partial colouring and set . This contains the original palette. High-degree vertices satisfyLow-degree vertices have after increasing if necessary. Greedy completion therefore gives . Finally, for ,The constants are deliberately conservative; existence of a fixed positive improvement is the point. The same proof uses an external maximum degree bound, so if infinite locally finite graphs are allowed, every finite subgraph has this uniform colouring bound and compactness extends the colouring to the whole graph.
For the stronger triangle-free result, the appropriate brief route is semi-random palette refinement for triangle-free colouring. Start with colours and repeatedly make small tentative random assignments, retain conflict-free choices, and update the uncoloured vertices' available lists. Triangle-freeness makes each graph neighbourhood independent. Track list size and average residual neighbour congestion per colour, prune unusually congested colours, and use concentration inequalities and the Lovász local lemma to preserve these invariants through the rounds. The ratio of residual congestion to list size decreases until a final completion using the Lovász local lemma or greedy coloring succeeds. Average control and pruning are important: four-cycles are allowed, so assuming tight uniform concentration for every individual colour load would be unjustified. With a sufficiently large absolute , this programme gives . The one-round fixed-fraction saving proved above alone does not establish that logarithmic improvement.
To show the order is best possible, let through integers and sample with . A Chernoff bound and union bound give maximum degree at most with probability tending to one. The expected triangle count is at most , so fewer than vertices need be deleted to remove all triangles with high probability. For , the expected number of independent -sets is at mostits logarithm is at most , which tends to minus infinity. The altered triangle-free graph thus has at least vertices and independence number below , giving for an absolute positive . Append a disjoint star graph whose centre has vertex degree if needed to make its maximum degree exactly . This proves the triangle-free chromatic lower bound at bounded maximum degree, , so the preceding order cannot be improved in general.
Past exam of the mathematics course of the University of Cambridge 2005 iii Paper 34 2 b Solution Created 2026-10-03 Updated 2026-10-14
Take with its Borel sigma-algebra and Lebesgue measure of total mass one. Let be the finite sigma-algebra generated by the half-open dyadic intervals of length . Set if the indexing begins at one. Each is adapted to this filtration, and if is a Lipschitz constant of , then , so every coordinate is integrable.
On a parent interval , conditional expectation averages the two equally likely child values. Their average isThus , establishing the dyadic slope martingale. One can equivalently include as a separate null atom without changing any probability law.
Past exam of the mathematics course of the University of Cambridge 2005 iii Paper 69 2 b Solution Created 2026-10-03 Updated 2026-10-14
Factor the first characteristic polynomial:The unit root is simple and the other root is strictly inside the unit disk, so the method is zero-stable. Also and , giving numerical consistency. The Dahlquist equivalence theorem therefore makes it convergent.
The mechanism can also be seen directly. The zero-stable homogeneous recurrence has bounded propagators because its two error modes are and . Variation of constants for the perturbed recurrence bounds the error by a fixed multiple of its two starting errors and the sum of the step defects, plus times a sum of errors from the Lipschitz vector field. Absorb the current implicit error term for sufficiently small , then apply the discrete Gronwall inequality. On a fixed time interval the sum of exact-start defects is , giving second-order numerical convergence with second-order starting values. The implicit step is locally well defined, for example by contraction when for a Lipschitz constant .
Past exam of the mathematics course of the University of Cambridge 2007 iii Paper 37 1 b Solution Created 2026-10-03 Updated 2026-10-14
Scale the SIRS Markov chain by population size: . Suppose in probability, where is a deterministic point in the probability standard simplex. The required fluid limit of the SIRS Markov chain isWe prove uniform convergence in probability on every fixed interval , rather than merely replace random products by products of their expectations.
Introduce the jump vectors and scaled rate functionsAt state , an event of type has rate and jump . Let be independent unit-rate Poisson processes. The Poisson time-change representation of a Markov chain givesThis representation follows by giving each event type an independent exponential clock in its accumulated hazard. Conditional on the current state its firing rate is , hence it has exactly the transition rates from part (a). The finite state space and bounded rates rule out explosion. Values at the jump times do not affect the time integrals.
With , this becomeswhereThe displayed is precisely the boxed drift. On the simplex, with , , . Thus every Poisson clock used before is at most . For any fixed , the permitted Poisson maximal bound, applied with time horizon and relative tolerance , givesA channel with contributes nothing and is simply omitted. Since for , these probabilities even decrease exponentially in . Each has norm two. The union bound consequently gives in probability. Notice that the clock is random, but its deterministic upper bound makes the Poisson maximal estimate directly applicable.
The drift is Lipschitz on the simplex. Indeed there, and one may take for its Lipschitz constant. The Picard-Lindelöf theorem gives a unique local solution, which remains in the simplex: the sum of the derivatives is zero, while on the faces , , and the corresponding derivatives are respectively , , and , all nonnegative. More explicitly, is nonnegative, and the linear equations for and have nonnegative forcing terms; their integrating-factor formulas keep both nonnegative. Conservation then bounds every coordinate by one, so the local solution extends globally.
Subtract its integral equation from that of . The Gronwall inequality yieldsThis proves the Poisson concentration proof of a density-dependent fluid limit for this model, including the initial-condition requirement and uniform finite-time approximation. In terms of population counts, the associated deterministic approximation is , , . The limit concerns macroscopic initial proportions and fixed times; a single initial infective has limiting fraction zero, so early stochastic invasion on a growing time scale is not described by this finite-time limit alone.
Past exam of the mathematics course of the University of Cambridge 2007 iii Paper 9 1 Solution Created 2026-10-03 Updated 2026-10-14
Assume is nonempty, as is necessary for a probability measure to exist. Give its isometry group the uniform metricEvery distance-preserving self-map of a compact metric space is onto. Indeed, if , then , and for the iterates satisfy . This infinite separated set contradicts compactness. Consequently is a group under composition, with the identity and inverses again isometries.
The metric is invariant under both left and right multiplication: left invariance uses preservation of distances, and right invariance uses surjectivity. Inversion is an isometry for , and proves continuity of multiplication. Moreover, is compact. A sequence of isometries has a subsequence converging at every point of a countable dense subset of , by a diagonal argument. Their common Lipschitz constant and finite epsilon-nets of make this subsequence uniformly Cauchy. Its uniform limit preserves distances and is onto by the preceding argument. Thus is a compact metrizable topological group. A transitive group action means that for every some has .
We construct the invariant Borel probability measure directly. The Hall marriage theorem says that a finite bipartite graph with equal-sized vertex classes has a perfect matching precisely when every subset has at least neighbours in . Its following consequence is useful. If are -separated subsets of maximum cardinality in a compact metric space, join points whose distance is less than . If some had fewer than neighbours, replacing those neighbours in by would produce a larger -separated set. This contradicts maximal cardinality. Hence there is a bijection between and moving each point by less than .
Choose and maximum-cardinality -separated sets . Such sets exist: a finite covering by balls of radius less than bounds every separated set's cardinality. Fix and define the empirical probability measuresFor let , which tends to zero with by uniform continuity. For every , left invariance of makes another maximum-cardinality separated set. Match it to as above. ThenThe allowed compactness of probability measures on a compact metric space supplies a subsequence converging to in the weak-star topology. Passing to that limit for each fixed gives . The same subsequence works for every , since the displayed estimate held for all of them before taking the limit.
For uniqueness, put . For , right invariance of lets us match with . Transitivity therefore gives the uniform estimate for every . If is any invariant Borel probability measure, thenTwo invariant probability measures consequently differ on the integral of by at most , hence agree on every continuous function. Continuous functions determine Borel probability measures on a compact metric space, so the invariant probability measure exists and is unique.
Past exam of the mathematics course of the University of Cambridge 2007 iii Paper 9 5 iii Solution 2026-10-14
Since Lipschitz functions are continuous, the feasible class here is smaller, giving . To prove the reverse inequality, take any continuous feasible pair and perform Lipschitz regularization of transport potentials:The minimum exists by compactness. For every the triangle inequality gives ; interchanging proves . Thus has Lipschitz constant at most .
The original constraint yields , and evaluating the minimum at gives . Moreover, , so is a feasible Lipschitz pair withTaking the supremum over the original continuous pairs proves . Notice that this is an exact regularization, with no density or approximation assumption about the initial pair.
Past exam of the mathematics course of the University of Cambridge 2007 iii Paper 9 5 i Solution Created 2026-10-03 Updated 2026-10-14
Use the Lipschitz constant convention in the final quantity; it is a seminorm, with constants having value zero. Also interpret the coupling space as . The printed has an undefined . The third quantity has a duplicated printed label; it is placed in part iii here, with the fourth in part iv.
First prove weak optimal transport duality. For any feasible continuous pair and any coupling of probability distributions with marginals ,Taking the supremum over pairs and infimum over couplings gives . These quantities are finite: is a coupling and the continuous cost is bounded on the compact metric space . The zero pair is feasible, so .
The reverse inequality is established in part ii by finite approximation and a proof of the required finite linear programming duality. Parts iii and iv then show that all the dual formulations agree.
Past exam of the mathematics course of the University of Cambridge 2007 iii Paper 9 5 iv Solution 2026-10-14
Every function with Lipschitz constant at most yields a feasible pair , and replacing by reverses the objective. HenceConversely, the Lipschitz regularization of transport potentials in part iii dominates every feasible pair by with , so . Together with the preceding parts this proves the Kantorovich–Rubinstein theorem here in all four requested forms:The seminorm convention is essential. If instead meant , the equality would fail: on a two-point space at distance , with point masses at the two different points, whereas the latter unit-ball supremum is . Indeed, an oscillation needs supremum norm at least and Lipschitz constant , so the sum norm bounds by , attained by values . This distinguishes the Lipschitz seminorm used above from a full bounded-Lipschitz norm.
Past exam of the mathematics course of the University of Cambridge 2010 iii Paper 12 2 ii Solution Created 2026-10-03 Updated 2026-10-14
Put , and define . The triangle inequality shows that is Lipschitz continuous with Lipschitz constant one. It vanishes on , and on . Let for a uniform permutation.
If , apply the lower-tail bound proved in part (i):If , apply its upper-tail bound:For the desired inequality is simply . Hence in all casesThis uses only the precise one-sided concentration inequality from part (i) and the Hamming distance triangle inequality. The normalization of the distance matters: it counts mismatching coordinates, rather than dividing their number by .
Past exam of the mathematics course of the University of Cambridge 2010 iii Paper 12 2 i Solution Created 2026-10-03 Updated 2026-10-14
Use the uniform probability measure on the symmetric group and the unnormalized Hamming distanceLet have Lipschitz constant for this distance. We will prove the one-sided concentration inequalitiesConsequently for . A zero Lipschitz constant makes constant, so that case is immediate.
Let be a uniform permutation, reveal successively, and define the Doob exposure martingaleFix the first images. For an available value , let be the conditional mean when . Given two available values , left-composition with the transposition exchanging is a bijection from completions with next image to completions with next image . It fixes the previously exposed images and changes exactly two coordinates of each complete permutation. Since conditional completions are uniform, averaging the Lipschitz condition over this pairing gives .
Thus, conditionally on the first images, has mean zero and takes values in an interval of length at most . We need the range-length version of the Hoeffding lemma: if a real random variable has mean zero and lies in an interval of length , thenHere is a proof. For , differentiation gives under the exponentially tilted probability distribution. Any distribution on an interval of length has variance at most , because its squared distance from the interval midpoint is at most . Since , integrating this second-derivative bound gives the lemma for both signs of . The same argument holds for every conditional distribution.
Apply it conditionally to each martingale difference and use the tower property of conditional expectation repeatedly:The exponential Markov bound now gives, for ,Choose to obtain the upper tail in the box, and apply the argument to for the lower tail. This proves concentration of Lipschitz functions on the symmetric group. Using only the bound in the absolute-increment Azuma-Hoeffding inequality would lose a factor four in the exponent; the conditional range length is what yields the constant needed in part (ii).
Past exam of the mathematics course of the University of Cambridge 2012 iii Paper 31 2 i Solution Created 2026-10-03 Updated 2026-10-07
A function satisfies Lipschitz continuity with bound ifHere is an admissible Lipschitz bound; the least admissible value is the Lipschitz constant. The later parts use the admissible bound .
Past exam of the mathematics course of the University of Cambridge 2013 iii Paper 33 4 Solution Created 2026-10-03 Updated 2026-10-07
For the unit-width box kernel, the order-zero local polynomial estimator minimizes, over constants ,A common factor such as in these weights does not change the minimizer. Put and . If , differentiating the quadratic gives its unique minimizer:The last expression is the Nadaraya–Watson estimator. Every is within of some design point . Since gives , that point is in the closed kernel window. Thus and the equality holds throughout the domain, including and .
For the error bound, first take the usual bandwidth range . The clipped window has length at least . Any closed interval of length in contains at least points of the design . Consequentlywhere the last inequality uses . This is a window occupancy for an equally spaced regression design bound that remains valid at the boundary.
Let , the Lipschitz constant supplied by the bounded-derivative assumption. The bias is bounded byIndependence and the variance bound giveBy the Cauchy-Schwarz inequality and the triangle inequality,Thus works uniformly in and the design size in this bandwidth range. The same clipped-length proof in fact works for .
There is a genuine omission in the unrestricted formulation: an upper restriction on bandwidth is necessary for the displayed variance scale. Take , , and . The window contains the sole observation for every , and holds. Its mean absolute error is , whereas the proposed variance term is . No fixed can satisfy this for unbounded .
A valid statement for every satisfying uses . The clipped window has length at least , so , while the preceding coverage argument gives . If , the first bound gives ; if , the second does. Therefore the same bias and variance calculation proves the unrestricted correctionThis mean absolute error of local constant regression bound reduces to the requested rate for ordinary small bandwidths and saturates its stochastic term when the window covers the whole design.
Past exam of the mathematics course of the University of Cambridge 2014 iii Paper 68 2 Solution Created 2026-10-03 Updated 2026-10-06
Interpret the printed Euclidean norm literally on the full vector array . It is a single global norm, not the sum of pixelwise gradient lengths in discrete isotropic total variation. Set and let be its exact adjoint operator for the chosen difference and boundary conventions. The closed dual ball and its image signal areThe set is nonempty, convex and compact, hence closed, because it is a linear image signal of a compact ball in finite dimensions. Euclidean norm duality givesthe support function of .
The metric projection onto a closed convex set uniquely minimizes over . Its variational characterization of convex projection saysPut . This inequality says precisely that . For any , the primal energy satisfiesCompleting the square shows that the right side is uniquely minimized by . At that point the inequality is equality, soThis also follows from the proximal operator of a support function and Moreau decomposition: the convex conjugate of is the indicator functional of a constraint set for . The squared fidelity is strictly convex and coercive, so the primal minimizer exists and is unique.
The convex projection in this formula is the removed component , not generally itself. A metric convex projection onto one fixed closed convex set is idempotent. On a right singular vector direction with positive singular value of any nonzero , this denoising map reduces to soft thresholding with a positive threshold, and applying it twice shrinks again. It therefore cannot be such a convex projection for all data. This qualifies the printed convex projection wording while giving the required global gradient-norm projection residual.
Compute by solving the convex dual least-squares problemIts gradient is and has Lipschitz constant . Projected gradient descent givesFor fixed , the finite-dimensional projected-gradient convergence theorem ensures that converges to a dual minimizer. Reconstruct ; its limit is the unique primal solution even if dual minimizers are nonunique. If , the primal solution is simply and no iteration is needed. For unit-grid forward differences with periodic or zero-difference boundaries, , so is sufficient. Grid-spacing factors or other boundary stencils change this bound.
The normalization here is global. If a pixelwise sum of gradient lengths had instead been intended, the dual feasible set would be a product of pixelwise balls and convex projection would normalize each block separately; it is a different regularizer and should not be silently substituted.
For the discrete Hessian-norm denoising variant, write and useThis is again a compact convex image signal of a Euclidean ball, now under the second-difference adjoint. In suitable conventions is a discrete double divergence, but its exact boundary adjoint is what defines the set. It lies in , so components in are preserved by denoising. Interior second derivatives annihilate affine image signals; whether all such image signals remain in the kernel depends on the boundary convention. With a pixelwise Hessian norm, the corresponding balls would instead be four-component blocks.


