Bi-Lipschitz distortion Created 2026-09-28 Updated 2026-10-14
For an injective function between metric spaces with at least two source points, consider all distance ratiosIf constants satisfythen is a bi-Lipschitz map: both and its inverse on are Lipschitz maps. The bound compares the most expanded pair with the most contracted pair. To define the bi-Lipschitz distortion of this particular metric embedding, use the sharp bounds and :Here the Lipschitz constant of is . If no positive finite bounds exist, the bi-Lipschitz distortion is infinite. For a finite source, every injective function has finite bi-Lipschitz distortion, but its size can depend on the source. Matoušek gives the equivalent definition using one scale factor and a multiplicative error bound. [ref]
Lecture notes on metric embeddings by Jiří Matoušek. Matoušek, Section 1.1: distortion and Lipschitz maps
Changing units is harmless: replacing by , with , multiplies both and by and leaves unchanged. In a normed vector space this can be achieved by multiplying every output vector by . Thus bi-Lipschitz distortion one means that all distances change by the same factor; an isometric embedding additionally requires that factor to be one. A stretch factor with a specified normalization is a related quantity; when comparing sources, check which overall scale has been fixed.
Take the four corners , , , of a square, with Euclidean distance in both source and target. For the linear map , the six unordered pairs exhaust the possibilities: the two vertical sides have ratio , the two horizontal sides have ratio , and the two diagonals have ratio . Consequently , , and . In contrast, , three times the identity function, gives ratio for every pair and has bi-Lipschitz distortion .
Uniform scaling keeps distortion one; unequal coordinate scaling gives distortion two
. Details. The ratio chart makes the reason visible: a common multiplier moves every ratio together, while unequal coordinate scaling spreads the ratios apart. More generally, in a normed vector space, the ratio bounds giveThis normalization gives Lipschitz constant one and inverse Lipschitz constant . It is only a change of scale, so it cannot improve the bi-Lipschitz distortion.
The best possible bi-Lipschitz distortion of a source into a specified target is a separate quantity:The infimum runs over all injective functions, and need not be attained. The notation means the analogous infimum over metric embeddings into an Lp space. A calculation for one chosen gives an upper bound for ; proving optimality also requires a lower bound for every possible .
Bi-Lipschitz map 2026-10-14
A bi-Lipschitz map between metric spaces satisfies the displayed bounds for all input pairs, with constants . The lower bound makes it injective; its inverse on its image is Lipschitz continuous with bound , while the map itself has Lipschitz bound . Thus it controls both stretching and compression. It is a homeomorphism onto its image, preserves Hausdorff dimension, and has bi-Lipschitz distortion at most . Uniformly multiplying every distance by the same positive factor has distortion one, as explained in metric embedding.
Coarse embedding Created 2026-09-28 Updated 2026-10-14
A map between metric spaces is a coarse embedding when nondecreasing control functions satisfyThe last condition means that distances tending to infinity in the source must also tend to infinity in the target. The upper control prevents bounded source distances from having unbounded image distances. Unlike a metric embedding as defined here, a coarse embedding need not be injective: its lower control may vanish at small distances. Finite bi-Lipschitz distortion implies a coarse embedding by taking and , but nonlinear controls such as allow much more compression.
Here is an original reproducible finite set with 40 points and 512 coordinates. Let be the first four vectors of the standard basis of . With point indices , generateThe four groups have different centers, and the standard normal random variables perturb all 512 coordinates. Generate the coordinates in row order using NumPy's PCG64 pseudorandom number generator with seed 20261013. Then keep this finite set fixed. A second PCG64 stream with seed 424242 generates a matrix of independent random variables with the standard normal distribution; divide it by to obtain the Gaussian Johnson–Lindenstrauss transform.
For all 780 unordered pairs, compute the distance ratio . In this draw, its minimum is approximately and its maximum , giving a maximum relative error in Euclidean distance of about . The squared-distance ratios instead range from approximately to : their maximum relative error is about . Thus this particular draw fails a 20% distance tolerance. The Johnson–Lindenstrauss lemma does not assert that every draw into 32 dimensions must succeed.
The two bands of original Euclidean distances distinguish pairs within a group from pairs between groups. Their spread after the linear map shows why checking an average distance is insufficient: the Johnson–Lindenstrauss lemma controls every pair. The dashed 20% distance band is an illustrative tolerance, not a confidence interval or a squared-distance band. The affine hull of 40 points has dimension at most 39; 512 is the ambient coordinate count, and no full-dimensionality assumption is required. For this draw the bi-Lipschitz distortion is approximately .
Now keep the same points and draw 48 fresh Gaussian Johnson–Lindenstrauss transforms for each target dimension . NumPy's
SeedSequence(314159).spawn(240) supplies distinct PCG64 streams, ordered first by target dimension, then by draw. Each stream generates a new random matrix, normalized by ; no map is a row prefix of another map. Each plotted value isThe observed median maximum relative errors in Euclidean distance are approximately , , , , and , respectively. All pairs fall inside the 20% distance tolerance in , , , , and of the 48 draws, respectively. These are computations on one synthetic finite set, rather than optimal dimension bounds or measured physical data. The displayed quantiles describe the sampled maps; they do not certify a success probability for other sets. Even at 128 dimensions, 13 of the sampled maps fail this tolerance.
The practical benefit is that each point acquires fewer coordinates while its pairwise Euclidean distances can remain useful. The choice of target dimension balances compression, accuracy, and failure probability. For example, a conservative sufficient squared-distance tolerance with and gives by the explicit bound above. Here that exceeds the ambient dimension, so the identity map is better for a certified guarantee. The much smaller dimensions in the plots illustrate observed behavior without claiming that this sufficient bound is sharp.
Hamming cube as an L1 and L2 metric Created 2026-09-28 Updated 2026-10-14
Use the convention for the Hamming cube . Its elements are length- binary strings, and their Hamming distance counts the differing coordinates:Send each binary string to the vector with the same coordinates, by . Every differing coordinate contributes both to the sum of absolute differences and to the sum of squared differences. Therefore the L1 norm and L2 norm give, respectively,This short coordinate calculation proves that the L1 norm gives an isometric embedding, while Euclidean distance grows like the square root of the number of changed binary digits. For example, and differ twice: their Hamming distance and Manhattan distance are , but their Euclidean distance is . Comparing binary strings in these two geometric representations answers different questions even though the points have the same coordinates.
For distinct pairs ranges over every integer from to . The metric embedding into the L2 norm thus has sharp ratiosNeighbors attain and opposite corners attain . This computes the bi-Lipschitz distortion of this coordinate map; it does not prove that every metric embedding into an L2 space has at least this bi-Lipschitz distortion. Uniformly multiplying the output coordinates changes and together and leaves unchanged.
The important family distinction is that these coordinate maps have no dimension-independent bound on their bi-Lipschitz distortion into the L2 norm, yet they do give a uniform coarse embedding of a family of metric spaces. Pad each output vector with zero coordinates to view all maps in the single l2 sequence space, an L2 space for counting measure. Then the same functionswork for every , and . Similarly, padding into the l1 sequence space gives common controls and exact preservation of Hamming distance. These claims use unnormalized Hamming distance; replacing it by normalized Hamming distance changes the family of source metrics.
The geometry has a practical origin: Hamming's 1950 paper uses the number of differing positions between binary strings to study error-correcting codes. Changing one binary digit moves to a neighboring corner, so a question about corrupted messages becomes a question about separation in the Hamming cube. [ref]
https://ineffectivetheory.com/edu/papers/hamming-codes-1950.pdf. R. W. Hamming, Error Detecting and Error Correcting Codes, 1950, Section 5
Johnson–Lindenstrauss lemma Created 2026-09-28 Updated 2026-10-14
For and any points in a Hilbert space, there is a linear map into Euclidean dimension that multiplies every pairwise distance by a factor between and .
The striking feature is that the target dimension depends on the number of points and the allowed error, independently of the ambient dimension. Fix a finite set , with , and . An equivalent sufficient statement uses squared Euclidean distances: a linear map exists, with , such thatThe finite-set theorem cited here supplies an explicit sufficient target dimension for this squared-distance formulation. [ref]
An elementary proof of a theorem of Johnson and Lindenstrauss by Sanjoy Dasgupta and Anupam Gupta. An elementary proof of a theorem of Johnson and Lindenstrauss, Theorem 2.1, p. 61: bounds for squared distances
Taking square roots gives distance factors and , which lie inside . Conversely, bounds on distances only give squared-distance bounds ; the same numerical tolerance should not be silently used for both. Under the squared-distance bounds, the bi-Lipschitz distortion is at most .
The Johnson–Lindenstrauss lemma preserves this fixed finite set, rather than every vector in the ambient Euclidean space. A linear map with has a nonzero kernel by the rank-nullity theorem, so some nonzero vectors collapse completely. For finitely many points in a real Hilbert space, apply the finite-dimensional argument on their linear span and extend by orthogonal projection onto that linear span. If the sufficient target dimension exceeds the ambient dimension, the identity map already preserves every Euclidean distance exactly, with zero padding if a larger target is requested.
Metric embedding Created 2026-09-28 Updated 2026-10-14
A metric embedding represents the points of one metric space inside another by an injective function . The geometric question is how faithfully the representation preserves pairwise distances. For example, binary strings can be treated as vectors so that tools from linear algebra become available, but the chosen norm determines what their separation means. A drawing of the points alone does not specify a metric embedding: both metrics matter.
An isometric embedding preserves every distance exactly. A metric embedding that is a bi-Lipschitz map allows multiplicative error while keeping its bi-Lipschitz distortion bounded over all pairs. A coarse embedding instead controls separation through possibly nonlinear functions of distance. These are different requirements: the Hamming cube as an L1 and L2 metric below preserves Hamming distance exactly in one representation and takes its square root in another.
The usefulness is that a complicated distance comparison becomes a calculation with familiar vectors and norms. This also helps assess a visualization: nearby points should not acquire arbitrarily large separations, and far-apart points should not collapse together. Matoušek's 2013 lecture notes describe how motivations from computer science, especially approximation algorithms, accelerated the study of metric embeddings from the 1990s onward. [ref]
Lecture notes on metric embeddings by Jiří Matoušek. Jiří Matoušek, Lecture notes on metric embeddings, preface and Section 1.1
Past exam of the mathematics course of the University of Cambridge 2017 iii Paper 132 4 a Solution Created 2026-10-03 Updated 2026-10-05
For fixed , Mumford's compactness theorem states thatHere is the unmarked moduli space of Riemann surfaces, with its usual topology, and the hyperbolic systole is the shortest nonconstant closed hyperbolic geodesic, in Gaussian curvature . Equivalently, a subset of is relatively compact exactly when its hyperbolic systoles have a common positive lower bound.
We use two standard structural results. The Bers pants decomposition theorem provides a constant such that every closed genus- hyperbolic surface has a pants decomposition with all cuff lengths at most . For a fixed topological pants decomposition, the Fenchel–Nielsen coordinates identify Teichmüller space withThe length coordinates are , and the twist coordinates are measured in length units: a full Dehn twist changes by . Reconstruction from these coordinates is continuous; locally the marked metrics can be chosen to vary smoothly on a fixed reference surface, and the quotient by the mapping class group is the Hausdorff moduli space of Riemann surfaces.
Take any sequence in . The pants decompositions supplied by the Bers pants decomposition theorem have cuff lengths in . There are finitely many topological types of pants decomposition: their dual graphs have vertices and edges, with loops and multiple edges allowed, giving finitely many finite graphs. Choose a subsequence of one type, and choose markings carrying each decomposition to a fixed reference one. Compose these markings with Dehn twists so that . The resulting points of Teichmüller space lie in the compact boxThey therefore have a convergent subsequence inside Teichmüller space; its continuous projection gives a convergent subsequence in the moduli space of Riemann surfaces. If the thick set is empty, which is already compact. Equivalently, using all the finitely many reference decompositions gives a finite union of compact projected boxes containing the whole thick set.
Finally the hyperbolic systole is continuous. Nearby marked hyperbolic surfaces admit metric comparisons with bi-Lipschitz distortion tending to one; the length of every loop, and hence the infimum over all essential loops, obeys the same multiplicative comparison. Therefore is closed in that compact union and is compact. A compact subset has a positive minimum hyperbolic systole, proving the converse characterization of relative compactness. This theorem concerns the unmarked quotient: repeated Dehn twists can give an unbounded sequence in Teichmüller space while leaving the underlying surface and its hyperbolic systole unchanged.
Stretch factor 2026-10-14
For an injective function that does not increase distances, one stretch-factor convention measures the largest compression that must be undone:If the sharp Lipschitz constant of is one, this equals bi-Lipschitz distortion. Fixing the scale matters: uniform compression has stretch factor two in this convention, but bi-Lipschitz distortion one. In a geometric spanner, the corresponding stretch factor is the largest graph-route distance divided by direct Euclidean distance; the graph-to-Euclidean identification does not increase distances. [ref]
https://people.scs.carleton.ca/~michiel/encyc_geometric_spanners.pdf. Gudmundsson, Narasimhan and Smid, Geometric Spanners, §1: the stretch-factor convention
.


