Ultrametric Space — Definition, Formula & Example
An ultrametric space is a set with a distance function in which the distance between two points is never more than the larger of their distances to any third point. In other words, the direct distance between two points is never longer than the longer leg of any detour through a third point.
A metric space is ultrametric if satisfies the strong triangle inequality for all . Since for , every ultrametric is a metric. Three consequences follow. Every triangle is isosceles, with its two longest sides equal. Every point of an open ball is a center of that ball. Every open ball is also a closed set.
Key Formula
Where:
- = Any three points of the space, not necessarily distinct
- = The distance function (metric) on the space
- = The larger of the two numbers and
Worked Example
Problem: On the integers, the 2-adic distance is , where is the highest power of dividing , and . This distance is an ultrametric. For the points , , and , compute all three distances, check the strong triangle inequality, and show that the triangle is isosceles.
Step 1: Find each difference and the highest power of 2 dividing it. Since , the distance from 0 to 4 is . Since and , the other two distances are both .
Step 2: Check the strong triangle inequality with the shortest side on the left. The inequality also holds for the other two sides, since in each case.
Step 3: Compare the side lengths. The two longest sides are equal, and the third side is shorter. This is the isosceles property that every ultrametric triangle has.
Answer: The distances are , , and . The strong triangle inequality holds for every side. The triangle is isosceles, with its two longest sides both equal to .
Why It Matters
The -adic numbers form an ultrametric space. They are a central tool in number theory courses and in proofs about which equations have integer solutions. Hierarchical clustering in data science and phylogenetic trees in biology also produce ultrametrics. There, the distance between two items is the height at which their branches merge.
Common Mistakes
Mistake: Assuming that points close in the 2-adic metric are also close on the number line.
Correction: 2-adic distance measures divisibility by 2, not size. The points and are apart because . The points and are at distance , the largest possible 2-adic distance between two different integers.
