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.
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
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

