Skip to Content
MathematicsMathematics
  • Article
  • Open Access

4 March 2026

17 Pages

Center of Distances of Ultrametric Spaces Generated by Labeled Trees

and
1
Department of Theory of Function, Institute of Applied Mathematics and Mechanics of NASU, 84100 Sloviansk, Ukraine
2
Department of Mathematics and Statistics, University of Turku, 20014 Turku, Finland
3
Department of Mathematics and Modeling, Donbas State Engineering Academy, 84313 Kramatorsk, Ukraine
*
Author to whom correspondence should be addressed.
This article belongs to the Section B: Geometry and Topology

Abstract

The center of distances of a metric space  ( X , d )  is the set  C ( X )  of all  t ∈ R +  for which the equation  d ( x , p ) = t  has a solution for each  p ∈ X . We prove that the equalities  C ( X ) = { 0 }  or  C ( X ) = { 0 , diam X }  hold if  ( X , d )  is an ultrametric space generated by labeled trees. The necessary and sufficient conditions under which  diam X ∈ C ( X )  are found.

1. Introduction

Ultrametric spaces generated by non-negative vertex labelings on arbitrary trees were introduced in [1] and subsequently studied in [2,3]. A characterization of totally bounded ultrametric spaces generated by labeled almost rays was provided in [4]. Furthermore, [5] contains a metric characterization of ultrametric spaces generated by labeled star graphs.
It was shown in [6] that the compact ultrametric spaces generated by labeled star graphs are the completions of totally bounded ultrametric space generated by decreasingly labeled rays.
In the present paper, we investigate the class  UT  of all ultrametric spaces that are isometric to spaces generated by labeled trees. The main goal of the paper is the characterization of the center of distances of  UT -spaces  ( X , d ) . The notion of center of distances was introduced in paper [7] and used for a generalization of John von Neumann Theorem on permutations of two sequences with the same set of cluster points [8]. At the moment, the authors are not aware of any results describing the structure of the center of distances in the case of ultrametric spaces.
The paper is organized as follows. The next section contains some definitions and facts from the theory of ultrametric spaces and graph theory. The main results of the paper are proven in Section 3, Section 4 and Section 5.
Theorem 4 of Section 3 shows that the center of distances  C ( X )  of an arbitrary  UT -space  ( X , d )  satisfies either the equality
C ( X ) = { 0 , diam X }
or the equality
C ( X ) = { 0 } .
In Section 4, we introduce the concept of centered spheres and use it in Theorem 5 to describe the geometry of  UT -spaces  ( X , d )  that satisfy (1). Theorem 6 of this section gives a necessary and sufficient condition under which each open ball of a given  UT -space is a centered sphere in this space. Theorem 7 of Section 4 shows that an ultrametric space  ( X , d )  is equidistant if and only if each centered sphere of  ( X , d )  is an open ball of  ( X , d ) .
Theorem 8 of Section 5 shows that equality (1) holds for  UT -space  ( X , d )  if and only if the diametrical graph of  ( X , d )  has a spanning star subgraph. Corollary 4 of Theorem 1 shows that equality (2) holds for  UT -space  ( X , d )  with  | X | ≥ 2  if and only if  ( X , d )  is weakly similar to an unbounded ultrametric space.
The final Section 6 contains some conjectures related to results of the paper.

2. Preliminaries

In what follows, we will use the symbol  R +  to denote the set  [ 0 , + ∞ ) .
Definition 1.
Let X be a non-empty set. A metric on X is a symmetric function  d : X × X → R +  satisfying the equality  d ( x , x ) = 0  for each  x ∈ X , the inequality  d ( x , y ) > 0  for all distinct  x , y ∈ X , and the triangle inequality
d ( x , y ) ≤ d ( x , z ) + d ( z , y )
for all x, y,  z ∈ X .
A metric space  ( X , d )  is called an ultrametric space if the strong triangle inequality
d ( x , y ) ≤ max { d ( x , z ) , d ( z , y ) }
holds for all x, y,  z ∈ X . The function d is called an ultrametric on X.
Following [9] (p. 46), we say that a metric  d : X × X → R +  is equidistant if there is a constant  k > 0  such that
d ( x , y ) = k
whenever x and y are distinct points of X.
Definition 2.
Let  ( X , d )  and  ( Y , ρ )  be metric spaces. A bijective mapping  Φ : X → Y  is said to be an isometry if
d ( x , y ) = ρ ( Φ ( x ) , Φ ( y ) )
holds for all  x , y ∈ X . The metric spaces are isometric if there is an isometry of these spaces.
Let  ( X , d )  be a metric space. In what follows, we will denote by  D ( X )  the distance set of the space  ( X , d ) ,
D ( X ) : = { d ( x , y ) : x , y ∈ X } .
Definition 3.
Let  ( X , d )  be a metric space. The center of distances of  ( X , d )  is the set  C ( X )  defined as
C ( X ) : = { t ∈ D ( X ) : ∀ p ∈ X ∃ x ∈ X d ( p , x ) = t } .
Example 1 (The p-adic ultrametric).
Let  p ≥ 2  be a prime number,  Q  be the set of rational numbers, and  Z  be the set of integers. The p-adic valuation of  t ∈ Q  is defined as
| t | p : = p − γ , if t ≠ 0 , 0 , o t h e r w i s e ,
where  γ = γ ( t )  is the unique  γ ∈ Z  such that
t = p γ m n ,
and m, n are coprime to p. The p-adic valuation satisfies the inequality
| t + w | p ≤ max { | t | p , | w | p }
for all  t , w ∈ Q . This implies that the mapping  d p : Q × Q → R + ,
d p ( t , w ) : = | t − w | p
is an ultrametric on  Q . (See Formula (1.10) in Chapter 1 of [10].) It directly follows from (6) that the mapping
Q ∋ x ↦ x + y ∈ Q
is a self-isometry of the space  ( Q , d p )  for every  y ∈ Q , which gives us the equalities
D ( Q ) = C ( Q ) = { p γ : γ ∈ Z } ∪ { 0 }
in accordance with Formulas (3)–(6).
Let A be a non-empty subset of a metric space  ( X , d ) . The quantity
diam A : = sup { d ( x , y ) : x , y ∈ A }
is the diameter of A. If the inequality  diam A < ∞  holds, then we say that A is a bounded subset of  ( X , d ) .
The next concept was introduced in [11] as a generalization of the concept of similarity for general semimetric spaces.
Definition 4.
Let  ( X , d ) ,  ( Y , ρ )  be metric spaces, and let  D ( X ) ,  D ( Y )  be the distance sets of  ( X , d ) ,  ( Y , ρ ) , respectively. A bijective mapping  Φ : X → Y  is a weak similarity if there is a strictly increasing bijection  f : D ( Y ) → D ( X )  such that
d ( x , y ) = f ρ Φ ( x ) , Φ ( y )
for all  x , y ∈ X .
We will say that metric spaces  ( X , d )  and  ( Y , ρ )  are weakly similar if there is a weak similarity  X → Y .
The next theorem is a reformulation of Theorem 3.22 from [12].
Theorem 1.
Let  ( X , d )  be an ultrametric space with  | X | ≥ 2 .  Then the following statements are equivalent:
(i)
( X , d )  is weakly similar to an unbounded ultrametric space.
(ii)
The distance set  D ( X )  does not contain  diam X ,
diam X ∉ D ( X ) .
Lemma 1.
Let A be a non-empty subset of an ultrametric space  ( X , d ) . Then, the equality
diam A = sup { d ( p , a ) : a ∈ A }
holds for each  p ∈ A .
Proof. 
Let p be an arbitrary point of A. Then, using the strong triangle inequality, we obtain
d ( x , y ) ≤ max { d ( p , x ) , d ( p , y ) } ≤ sup { d ( p , a ) : a ∈ A } .
Consequently, the inequality
diam A ≤ sup { d ( p , a ) : a ∈ A }
holds. The converse inequality follows directly from (8). Thus, equality (9) holds. □
Remark 1.
Equality (9) is known, see, for example, equality (1.3) in [13], but the authors cannot give here an exact reference to standard books on ultrametric spaces.
Let  ( X , d )  be a metric space. The open ball with a radius r > 0  and a center c ∈ X  is the set
B r ( c ) : = { x ∈ X : d ( c , x ) < r } .
Let us denote by  B X  the set of all open balls of metric space  ( X , d ) .
The next proposition is a part of Proposition 18.4 from [14].
Proposition 1.
Let  ( X , d )  be an ultrametric space. Then, for every ball  B r ( c ) ∈ B X  and every  a ∈ B r ( c ) , we have
B r ( c ) = B r ( a ) .
Now, we recall the concepts of compactness and total boundedness.
A standard definition of compactness is usually formulated as the following: a metric space  ( X , d )  is compact if every open cover of X has a finite subcover.
Definition 5.
A metric space  ( X , d )  is totally bounded if, for every  r > 0 , there is a finite set  { B r ( x 1 ) , … , B r ( x n ) } ⊆ B X  such that
X ⊆ ⋃ i = 1 n B r ( x i ) .
It follows directly from Definition 5 that every compact metric space is totally bounded.
The next proposition is a corollary of Theorem 3.6 from paper [15].
Proposition 2.
Let  ( X , d )  be an infinite totally bounded ultrametric space, and let  D ( X )  be the distance set of the space  ( X , d ) . Then, there is a strictly decreasing sequence  ( x n ) n ∈ N  of points of  R +  such that
lim n → ∞ x n = 0
holds and the equivalence
( x ∈ D ( X ) ) ⇔ ( x = 0 or ∃ n ∈ N : x n = x )
is valid for every  x ∈ R + .
Furthermore, let us recall some definitions and facts from graph theory.
A graph is a pair  ( V , E )  consisting of a non-empty set V and a set E whose elements are unordered pairs  { u , v }  of different points  u , v ∈ V . For a graph  G = ( V , E ) , the sets  V = V ( G )  and  E = E ( G )  are called the set of vertices and the set of edges, respectively. A graph G is finite if  V ( G )  is a finite set. If  { x , y } ∈ E ( G ) , then the vertices x and y are ends of  { x , y }  and called adjacent. In what follows, we will always assume that  E ( G ) ∩ V ( G ) = Ø . A graph G is empty if  E ( G ) = Ø .
The following concept is well-known for finite graphs (see, for example, [16] (p. 17)).
Definition 6.
Let G be a graph and let  k ≥ 2  be a cardinal number. The graph G is complete k-partite if the vertex set  V ( G )  can be partitioned into k non-empty disjoint parts in such a way that no edge has both ends in the same part and any two vertices in different parts are adjacent.
We say that G is a complete multipartite graph if G is complete k-partite for some k.
The next concept was introduced in [17] for characterization of finite ultrametric spaces for which the Gomory–Hu inequality [18] turns to equality.
Definition 7.
Let  ( X , d )  be a metric space. Denote by  G X  a graph such that  V ( G X ) = X  and, for  u , v ∈ V ( G X ) ,
( { u , v } ∈ E ( G X ) ) ⇔ ( d ( u , v ) = diam X and u ≠ v ) .
We call  G X  the diametrical graph of  ( X , d ) .
Remark 2.
It directly follows from (11) that  G X  is empty if and only if X is a singleton or  diam X ∉ D ( X ) .
The following theorem is a direct consequence of Theorems 3.1 and 3.2 from [19].
Theorem 2.
Let  ( X , d )  be an ultrametric space with  | X | ≥ 2 . Then, the following statements are equivalent:
(i)
The diametrical graph  G X  is non-empty.
(ii)
The diametrical graph  G X  is complete multipartite.
Let G be a graph. A graph  G 1  is a subgraph of G if
V ( G 1 ) ⊆ V ( G ) and E ( G 1 ) ⊆ E ( G ) .
In this case, we will write  G 1 ⊆ G .
A path is a finite graph P whose vertices can be numbered without repetitions so that
V ( P ) = { x 1 , … , x k } and E ( P ) = { { x 1 , x 2 } , … , { x k − 1 , x k } }
with  k ⩾ 2 . We will write  P = ( x 1 , … , x k )  or  P = P x 1 , x k  if P is a path satisfying (12) and say that P is a path joining  x 1  and  x k . A graph G is connected if, for every two distinct vertices of G, there is a path  P ⊆ G  joining these vertices.
A finite graph C is a cycle if there exists an enumeration of its vertices without repetitions such that  V ( C ) = { x 1 , … , x n }  and
E ( C ) = { { x 1 , x 2 } , … , { x n − 1 , x n } , { x n , x 1 } } with n ≥ 3 .
Definition 8.
A connected graph T without cycles is called a tree.
Let us recall the concept of star graphs.
Definition 9.
A tree T is a star graph if there exists a vertex  c ∈ V ( T )  such that
E ( T ) = { { v , c } : v ∈ V ( T ) ∖ { c } } .
A subtree T of a connected graph G is called a spanning tree of G if the equality  V ( T ) = V ( G )  holds.
Let us introduce the concept of labeled trees.
Definition 10.
A labeled tree is a pair  ( T , l )  where T is a tree and l is a mapping defined on  V ( T ) .
If  ( T , l )  is a labeled tree, then we write  T = T ( l )  instead of  ( T , l ) . Moreover, in what follows, we will consider only the non-negative real-valued labelings  l : V ( T ) → R + .
Following [1], for arbitrary labeled tree  T = T ( l ) , we define a mapping  d l : V ( T ) × V ( T ) → R +  as
d l ( u , v ) : = max w ∈ V ( P u , v ) l ( w ) , if u ≠ v , 0 , otherwise ,
where  P u , v  is a path joining u and v in T.
Theorem 3.
Let  T = T ( l )  be a labeled tree. The mapping  d l  is an ultrametric on the set  V ( T )  if and only if the inequality
max { l ( u ) , l ( v ) } > 0
holds for every  { u , v } ∈ E ( T ) .
A proof of Theorem 3 can be obtained by simple modification of the proof of Proposition 3.2 in [1].
As in [4,5], we shall say that a labeling  l : V ( T ) → R +  is non-degenerate if inequality (14) holds for every  { u , v } ∈ E ( T ) .
The following lemma will be used in the next section of the paper.
Lemma 2.
Let  T = T ( l )  be a labeled tree with a non-degenerate labeling  l : V ( T ) → R + , and let  D ( V ( T ) )  be the distance set of the ultrametric space  ( V ( T ) , d l ) . Then, there exists a non-degenerate labeling  l * : V ( T ) → R +  such that
d l * = d l
and the equality
D ( V ( T ) ) = { l * ( u ) : u ∈ V ( T ) }
holds.
Proof. 
Let us define a labeling  l * : V ( T ) → R +  as
l * ( u ) : = l ( u ) , if l ( u ) ∈ D ( V ( T ) ) , 0 , otherwise .
Equalities (15) and (16) evidently hold if  | V ( T ) | = 1 . Suppose that  | V ( T ) | ≥ 2 , and consider an arbitrary edge  { u ∘ , v ∘ } ∈ E ( T ) . Using (13), we obtain
0 < d l ( u ∘ , v ∘ ) = max { l ( u ∘ ) , l ( v ∘ ) }
and consequently,
max { l ( u ∘ ) , l ( v ∘ ) } ∈ D ( V ( T ) ) .
Membership relation (19) and Formula (17) imply the equality
max { l ( u ∘ ) , l ( v ∘ ) } = max { l * ( u ∘ ) , l * ( v ∘ ) } .
The last equality and Formula (17) show that  l * : V ( T ) → R +  is a non-degenerate labeling of  V ( T )  because  l : V ( T ) → R +  is non-degenerate. Thus,  ( V ( T ) , d l * )  is an ultrametric space by Theorem 3.
Let us prove equality (15). Let x and y be two distinct vertices of T, and let  P x , y ⊆ T  be the path joining x and y. Then, using (13), (18), and (20), we obtain
d l ( x , y ) = max w ∈ V ( P x , y ) l ( w ) = max { u , v } ∈ E ( P x , y ) { l ( u ) , l ( v ) } = max { u , v } ∈ E ( P x , y ) { l * ( u ) , l * ( v ) } =
max w ∈ V ( P x , y ) { l * ( w ) } = d l * ( x , y ) .
Thus, equality (15) holds.
To prove equality (16), it suffices to note that equality (13) with  l = l *  implies the inclusion
D ( V ( T ) ) ⊆ { l * ( u ) : u ∈ V ( T ) }
and that the converse inclusion
D ( V ( T ) ) ⊇ { l * ( u ) : u ∈ V ( T ) }
follows from (17).
The proof is completed. □
In what follows, we will denote by  UT  the class of all ultrametric spaces that are isometric to the space generated by labeled trees with non-degenerate vertex labelings.
The main goal of the present paper is to describe the structure of centers of distances  C ( X )  for  ( X , d ) ∈ UT .

3. Center of Distances of UT-Spaces

Let  ( X , d )  be a metric space, let  p ∈ X , and let  D p ( X )  be a subset of the distance set  D ( X ) , defined as
D p ( X ) : = { d ( p , x ) : x ∈ X } .
Proposition 3.
Let  ( X , d )  be a metric space, and let  C ( X )  be the center of distances of  ( X , d ) . Then, the equality
C ( X ) = ⋂ p ∈ X D p ( X )
holds.
Proof. 
All metric spaces are non-empty by Definition 1. Consequently, the right side of equality (22) is correctly defined. Now, (22) follows from Definition 3 and Formulas (4), (21). □
Proposition 4.
Let  ( X , d )  be a metric space, and let  C ( X )  be the center of distances of  ( X , d ) . Then,  C ( X )  contains the point 0.
Proof. 
Since we have  d ( p , p ) = 0  for every  p ∈ X , equality (21) implies
0 ∈ D p ( X )
for all  p ∈ X . Hence,
0 ∈ ⋂ p ∈ X D p ( X )
holds. The last membership relation and Proposition 3 imply  0 ∈ C ( X )  as required. □
Remark 3.
Propositions 3 and 4 are known, see, for example, [7,20].
Lemma 1 and Proposition 3 imply the following corollary.
Corollary 1.
Let  ( X , d )  be an ultrametric space,  D ( X )  be the distance set of  ( X , d ) , and  C ( X )  be the centers of distances of  ( X , d ) . If  diam X  belongs to  D ( X ) ,
diam X ∈ D ( X ) ,
then  diam X  also belongs to  C ( X ) ,
diam X ∈ C ( X ) .
Lemma 3.
Let  T = T ( l )  be a labeled tree with a non-degenerate labeling  l : V ( T ) → R +  satisfying the equality
D ( V ( T ) ) = { l ( u ) : u ∈ V ( T ) } .
Then,
α ∉ C ( X )
holds whenever
0 < α < diam V ( T ) .
Proof. 
Let us consider an arbitrary  α  satisfying (25). Then, using (8), (23), and (25), we can find a vertex  v * ∈ V ( T )  such that
α < l ( v * ) .
Write
D v * ( V ( T ) ) : = { d l ( v * , u ) : u ∈ V ( T ) } .
Equality (13) implies the inequality
d l ( v * , u ) ≥ l ( v * )
for each  u ∈ V ( T ) ∖ { v * } . Hence,  α  does not belong to the set  D v * ( V ( T ) )  by (26). Consequently, (24) holds by Proposition 3. □
The next theorem completely describes the center of distances for ultrametric spaces  ( X , d ) ∈ UT .
Theorem 4.
Let  ( X , d ) ∈ UT  have at least two points, let  D ( X )  be the distance set of  ( X , d ) , and let  C ( X )  be the center of distances of  ( X , d ) . Then, we have either
C ( X ) = { 0 }
or
C ( X ) = { 0 , diam X } ,
and moreover, the last equality holds if and only if
diam X ∈ D ( X ) .
Proof. 
Let us prove the equivalence (28) ⇔ (29).
Since  C ( X )  is a subset of  D ( X ) , equality (28) implies membership relation (29).
Suppose now that we have (29). Then, Corollary 1 implies  diam X ∈ C ( X ) .  Proposition 4 gives us  0 ∈ C ( X ) .  Consequently, the inclusion
C ( X ) ⊇ { 0 , diam X }
is valid. Since  ( X , d )  belongs to the class  UT , there exists a labeled tree  T = T ( l )  such that  ( X , d )  and  ( V ( T ) , d l )  are isometric. By Lemma 2, we can also suppose that
D ( V ( T ) ) = { l ( u ) :   u ∈ V ( T ) } .
Then, using Lemma 3, we obtain  C ( V ( T ) ) ⊆ { 0 , diam V ( T ) } .  Since  ( X , d )  and  ( V ( T ) , d l )  are isometric, the last inclusion gives the inclusion
C ( X ) ⊆ { 0 , diam X } .
Equality (28) follows from (30) and (32). Thus, the equivalence (28) ⇔ (29) is valid.
Let us now assume that equality (28) does not hold. Then, as was shown above, the formula
diam X ∉ D ( V ( T ) )
is valid. Let  T = T ( l )  be a labeled tree such that  ( X , d )  and  ( V ( T ) , d l )  are isometric and equality (31) holds. Then, using Proposition 4, Lemma 3, and (33), we see that
C ( V ( T ) ) = { 0 } .
Since  ( X , d )  and  ( V ( T ) , d l )  are isometric, (27) follows from (34).
The proof is completed. □
Remark 4.
If  ( X , d )  contains exactly one point, then we have  diam X = 0 , and consequently, equalities (27) and (28) are equivalent.
Example 2 (The Delhommé–Laflamme–Pouzet–Sauer ultrametric).
Let us define a mapping  d + : R + × R + → R +  as
d + ( p , q ) : = max { p , q } , if p ≠ q , 0 , otherwise .
Then,  d +  is an ultrametric on  R + , and the inequality
d + ( 0 , p ) ≤ d ( p , q )
holds whenever  0 ≠ p ≠ q . The last inequality and Theorem 2.1 from [5] imply the existence of a labeled star graph  S = S ( l )  such that  V ( S ) = R +  and  d + = d l , where  d l  is an ultrametric defined by (13) with  T = S . Thus,  ( R + , d + )  is an UT-space. Since the ultrametric space  ( R + , d + )  is unbounded, Theorem 4 implies that the center of distances of  ( R + , d + )  contains the unique point 0,
C ( R + ) = { 0 } .
Remark 5.
The ultrametric  d +  on  R +  was introduced by Delhommé, Laflamme, Pouzet, and Sauer in [21].

4. Center of Distances and Centered Spheres

The next concept was introduced in [3].
Definition 11.
Let  ( X , d )  be a metric space. A set  S ⊆ X  is a centered sphere in  ( X , d )  if there exist  c ∈ S , the center of S, and  r ∈ R + , the radius of S, such that
S = { x ∈ X : d ( x , c ) = r } ∪ { c } .
If  r = 0 , then (35) gives the equality  S = { c } . Hence, the following proposition holds.
Proposition 5.
Let  ( X , d )  be a metric space. Then, the singleton  { c }  is a centered sphere in  ( X , d )  for every  c ∈ X .
Theorem 5.
Let  ( X , d ) ∈ UT  have at least two points, and let  C ( X )  be the center of distances of  ( X , d ) . Then, the equality
C ( X ) = { 0 , diam X }
holds if and only if X is a centered sphere in  ( X , d )  and  diam X  is the radius of this sphere.
Proof. 
Let X be a centered sphere in  ( X , d ) . Then, by Definition 11, there are  c ∈ X  and  r ∈ R +  such that
X = { x ∈ X : d ( x , c ) = r } ∪ { c } .
The last equality and the strong triangle inequality imply
d ( x , y ) ≤ max { d ( x , c ) , d ( c , y ) } ≤ r
for all  x , y ∈ X . Consequently, we have  diam X = r  and  diam X ∈ D ( X ) ,  where  D ( X )  is the distance set of  ( X , d ) . Hence, (36) follows from Theorem 4.
Now we must show that (36) implies (37). Let us do it. Since  ( X , d ) ∈ UT  holds, there is a labeled tree  T = T ( l )  such that  ( X , d )  and  ( V ( T ) , d l )  are isometric. Consequently, we have the equalities
D ( X ) = D ( V ( T ) ) , C ( X ) = C ( V ( T ) )
and can rewrite equality (36) as
C ( V ( T ) ) = { 0 , diam V ( T ) } .
By Lemma 2, we may also suppose that
D ( V ( T ) ) = { l ( u ) :   u ∈ V ( T ) } .
It follows from (38) that the membership relation
diam V ( T ) ∈ D ( V ( T ) )
holds, and consequently, by (39), there exists  u * ∈ V ( T )  such that
diam V ( T ) = l ( u * ) ≥ l ( u )
for each  u ∈ V ( T ) .
Using Formulas (13) and (40), it is easy to prove that
d l ( u * , u ) = l ( u * )
holds for each  u ∈ V ( T ) ∖ { u * } .  The last statement implies (37) with  c = Φ ( u * )  and  r = diam X ,  where  Φ ( u * )  is the image of the point  u * ∈ V ( T )  under some isometry  Φ : V ( T ) → X  of the spaces  ( V ( T ) , d l )  and  ( X , d ) .
The proof is completed. □
Our next goal is to describe some conditions under which every open ball of a space  ( X , d ) ∈ UT  is a centered sphere in this space.
The following lemma is a reformulation of Lemma 4.3 from [2].
Lemma 4.
Let  ( X , d ) ∈ UT  and let  T = T ( l )  be a labeled tree such that  ( X , d )  and  ( V ( T ) , d l )  are isometric. Then, for every  B 1 ∈ B X , there is a subtree  T 1  of T such that  ( B 1 , d | B 1 × B 1 )  and  ( V ( T 1 ) , d l 1 )  are isometric, where  l 1  is the restriction of the labeling  l : V ( T ) → R +  on the set  V ( T 1 ) .
We will also use the next lemma.
Lemma 5.
Let  ( X , d )  be an ultrametric space, and let B be an open ball in  ( X , d ) . Then, B is a centered sphere in  ( X , d )  if and only if this ball is a centered sphere in  ( B , d | B × B ) .
Proof. 
By Definition 11, a ball  B ∈ B X  is a centered sphere in  ( X , d )  if and only if the equality
B = { x ∈ X : d ( x , c 1 ) = r 1 } ∪ { c 1 }
holds for some  c 1 ∈ B  and  r 1 ∈ R + .  Similarly, B is a centered sphere in  ( B , d | B × B )  if and only if the equality
B = { x ∈ B : d ( x , c 2 ) = r 2 } ∪ { c 2 }
holds for some  c 2 ∈ B  and  r 2 ∈ R + .
Let (41) hold. It follows from  B ⊆ X  that
{ x ∈ X : d ( x , c 1 ) = r 1 } ∪ { c 1 } ⊇ { x ∈ B : d ( x , c 1 ) = r 1 } ∪ { c 1 } .
If the last inclusion is strict, then there is  p ∈ X  satisfying
d ( p , c 1 ) = r 1 and p ∉ B ,
which contradicts (41). Hence, (41) implies the equality
{ x ∈ X : d ( x , c 1 ) = r 1 } ∪ { c 1 } = { x ∈ B : d ( x , c 1 ) = r 1 } ∪ { c 1 } ,
which gives us (42) with  r 2 = r 1  and  c 2 = c 1 . Thus, if B is a centered sphere in  ( X , d ) , then B also is a centered sphere in  ( B , d | B × B ) .
Suppose now that equality (42) holds. We claim that the equality
{ x ∈ X : d ( x , c 2 ) = r 2 } ∪ { c 2 } = { x ∈ B : d ( x , c 2 ) = r 2 } ∪ { c 2 }
is satisfied.
Similar to (43), we have the inclusion
{ x ∈ X : d ( x , c 2 ) = r 2 } ∪ { c 2 } ⊇ { x ∈ B : d ( x , c 2 ) = r 2 } ∪ { c 2 } .
Consequently, equality (44) holds if we have
{ x ∈ X : d ( x , c 2 ) = r 2 } ∪ { c 2 } ⊆ { x ∈ B : d ( x , c 2 ) = r 2 } ∪ { c 2 } .
Equality (42) implies  c 2 ∈ B . Hence, by Proposition 1, we may assume
B = B r ( c 2 ) = { x ∈ X : d ( x , c 2 ) < r }
for some  r > 0 . Equalities (42) and (46) imply the inequality  r 2 < r ,  which together with (46) gives us
{ x ∈ X : d ( x , c 2 ) = r 2 } ∪ { c 2 } ⊆ B .
Inclusion (45) follows from (42) and (47).
The proof is completed. □
If a subset S of an ultrametric space  ( X , d )  is a centered sphere in itself, but S is not a singleton or an open ball in  ( X , d ) , then S may not be a centered sphere in  ( X , d ) .
Example 3.
Let us consider the ultrametric space  ( X , d )  depicted by Figure 1. Then,  ( X , d ) ∈ UT , and the set  { x 1 , x 2 }  is a centered sphere in itself, but this set is not a centered sphere in  ( X , d ) . Indeed, the equality  d ( x 1 , x 2 ) = 2  and the definition of  ( X , d )  give us the equalities
{ x ∈ X : d ( x , x 1 ) = 2 } ∪ { x 1 } = { x 1 , x 2 , x 3 , x 4 } = { x ∈ X : d ( x , x 2 ) = 2 } ∪ { x 2 } .
Figure 1. The space  ( X , d )  is isometric to the ultrametric space  ( V ( P ) , d l )  generated by labeled path  P = P ( l ) .
In what follows, we denote  Cs X  the set of all centered spheres of an ultrametric space  ( X , d ) .
Theorem 6.
Let  ( X , d )  be an ultrametric space, and let
D p ( X ) : = { d ( p , x ) : x ∈ X }
for each  p ∈ X . If the inclusion
B X ⊆ Cs X
holds, then the set  D p ( X ) ∩ [ 0 , r )  has the greatest element for all  p ∈ X  and  r ∈ ( 0 , ∞ ) . Moreover, if  ( X , d ) ∈ UT  and the set  D p ( X ) ∩ [ 0 , r )  has the greatest element for all  p ∈ X  and  r ∈ ( 0 , ∞ ) , then inclusion (49) holds.
Proof. 
Let inclusion (49) hold, let p be an arbitrary point of X, and let  r ∈ ( 0 , ∞ ) . We must show that the set  D p ( X ) ∩ [ 0 , r )  has the greatest element.
Let us consider the open ball
B : = { x ∈ X :   d ( x , p ) < r } .
By inclusion (49), the ball B is a centered sphere in  ( X , d ) , i.e., the equality
B = { x ∈ X : d ( x , p 1 ) = r 1 } ∪ { p 1 }
holds with some  p 1 ∈ B  and  r 1 ∈ R + . The last equality and the Lemma 1 with  A = B  and  p = p 1  imply
diam B = r 1 and diam B ∈ D ( B ) ,
where  D ( B )  is the distance set of  ( B , d | B × B ) . Consequently, the diametrical graph  G B  of  ( B , d | B × B )  is non-empty. Theorem 2 implies that  G B  is a complete multipartite graph. Hence, by Definition 6, there is a point  x ∈ B  such that
d ( p , x ) = diam B .
Using (48), (50), and Formula (8) with  A = B , we see that  diam B  is the greatest element of the set  D p ( X ) ∩ [ 0 , r )  as required.
Let  ( X , d ) ∈ UT , and let the set  D p ( X ) ∩ [ 0 , r )  contain the greatest element for all  p ∈ X  and  r ∈ ( 0 , ∞ ) . Let us consider an arbitrary open ball  B 1 ∈ B X  with a center  p 1 ∈ X  and a radius  r 1 > 0 ,
B 1 = { x ∈ X : d ( p 1 , x ) < r 1 } .
To prove inclusion (49), we must show that  B 1  is a centered sphere in  ( X , d ) .
If  B 1  is a singleton, then  B 1 ∈ Cs X  holds by Proposition 5.
Suppose now that  B 1  contains at least two points. Since  ( X , d )  is an  UT -space, Lemma 4 implies the existence of a labeled tree  T 1 = T 1 ( l 1 )  such that  ( B 1 , d | B 1 × B 1 )  and  ( V ( T 1 ) , d l 1 )  are isometric. Hence the ultrametric space  ( B 1 , d | B 1 × B 1 )  also belongs to the class  UT .
By Theorem 5, the membership  ( B 1 , d | B 1 × B 1 ) ∈ UT  implies  B 1 ∈ Cs B 1  if and only if
C ( B 1 ) = { 0 , diam B 1 } ,
where  C ( B 1 )  is the center of distances of  ( B 1 , d | B 1 × B 1 ) . By Theorem 4, equality (52) is equivalent to
diam B 1 ∈ D ( B 1 ) ,
where  D ( B 1 )  is the distance set of the space  ( B 1 , d | B 1 × B 1 ) . The space  ( B 1 , d | B 1 × B 1 )  is a subspace of  ( X , d ) . Hence, the inclusion
D ( B 1 ) ⊆ D ( X )
holds. Let  D p 1 ( X )  be the set defined by (48) with  p = p 1 , where  p 1  is the center of the ball  B 1 . By supposition, the set  D p 1 ( X ) ∩ [ 0 , r 1 )  has the greatest element  R 1 . Thus, we have
R 1 ∈ D p 1 ( X ) ∩ [ 0 , r 1 ) ⊆ D ( B 1 ) .
Lemma 1 and (51) imply  R 1 = diam B 1 . Thus, (53) holds, and consequently, we have
B 1 ∈ Cs B 1 ,
by Theorems 4 and 5. Using Lemma 5, we may rewrite (54) as
B 1 ∈ Cs X .
Thus, (55) holds for each  B 1 ∈ B X . Inclusion (49) follows.
The proof is completed. □
Corollary 2.
Let  ( X , d ) ∈ UT  be totally bounded. Then, the inclusion
B X ⊆ Cs X
holds.
Proof. 
Let p be a point of X, let
D p ( X ) : = { d ( p , x ) : x ∈ X } ,
and let  r > 0 . The existence of the greatest element in the set  D p ( X ) ∩ [ 0 , r )  follows from Proposition 2. Hence, the inclusion  B X ⊆ Cs X  holds by Theorem 6. □
Since every compact metric space is totally bounded, Corollary 2 implies the following.
Corollary 3.
Let  ( X , d ) ∈ UT  be compact. Then, the inclusion
B X ⊆ Cs X
holds.
The following example shows that the condition  ( X , d ) ∈ UT  cannot be omitted in Theorem 6 in the general case.
Example 4 (The p-adic ultrametric).
Let  ( X , d )  be isometric to  ( Q , d p ) , where  d p  is the p-adic ultrametric defined in Example 1, and let
D q ( X ) : = { d ( q , x ) : x ∈ X }
for  q ∈ X . Then, using Formula (7), it is easy to see that the set  D q ( X ) ∩ [ 0 , r )  contains the greatest element for all  q ∈ X  and  r ∈ ( 0 , ∞ ) . Since the space  ( Q , d p )  does not contain isolated points, there are no open balls in  ( Q , d p )  that are centered spheres in this space. Thus, the inclusion  B X ⊆ Cs X  is false. It should be noted that singletons are centered spheres by Proposition 5, but such sets cannot be open balls if the space does not contain isolated points.
It is interesting to compare Theorem 6 with the following result.
Theorem 7.
Let  ( X , d )  be an ultrametric space. Then the following statements are equivalent:
(i)
The inclusion  B X ⊇ Cs X  holds.
(ii)
The ultrametric d is equidistant.
(iii)
The equality  B X = Cs X  holds.
For the proof of Theorem 7, see Theorem 4.9 from [2].
Example 5.
Let  ( X , d )  be an equidistant metric space. Then, each non-empty subset A of X is a centered sphere in  ( A , d | A × A ) , but any centered sphere in  ( X , d )  is either a singleton or coincides with the set X.

5. Center of Distances, Diametrical Graphs, and Weak Similarities

Using the concepts of diametrical graphs and star graphs, we also can give the necessary and sufficient conditions under which the equality
C ( X ) = { 0 , diam X }
holds for  UT -spaces  ( X , d ) .
Theorem 8.
Let  ( X , d ) ∈ UT  have at least two points, and let  G X  be the diametrical graph of  ( X , d ) . Then, the following statements are equivalent:
(i)
The equality
C ( X ) = { 0 , diam X }
holds.
(ii)
G X  is a complete multipartite graph such that at least one of its parts is a singleton.
(iii)
G X  has a spanning star subgraph.
Proof. 
( i ) ⇒ ( i i ) . Let (56) hold. Then, the membership relation
diam X ∈ D ( X )
is valid, because  C ( X )  is a subset of  D ( X ) .
Definition 7 and membership relation (57) imply that the graph  G X  is non-empty. Consequently, this graph is complete multipartite by Theorem 2. By Theorem 5, equality (56) holds if and only if X is a centered sphere in  ( X , d )  and  diam X  is the radius of this sphere.
Let c be the center of the centered sphere X. Then, using (35) with  S = X  and  r = diam X , we obtain the equality
d ( x , c ) = diam X
for each  x ∈ X ∖ { c } . Hence, by Definition 7, we have
{ x , c } ∈ E ( G X )
for each  x ∈ X ∖ { c } . Thus, the singleton  { c }  is a part of  G X  by Definition 6. Consequently, the implication  ( i ) ⇒ ( i i )  is valid.
( i i ) ⇒ ( i ) . Let  ( i i )  hold. Then,  G X  is a complete multipartite graph and, consequently,  G X  is non-empty by Definition 6. Hence, we can find two distinct points  x , y ∈ X  such that
{ x , y } ∈ E ( G X ) .
By Definition 7, membership (58) implies the equality
d ( x , y ) = diam X .
Thus, we have
diam X ∈ D ( X ) ,
which implies statement  ( i )  by Theorem 4.
( i i ) ⇒ ( i i i ) . Let a singleton  { c }  be a part of the complete multipartite graph  G X . Then, the membership relation
{ x , c } ∈ E ( G X )
holds for all  x ∈ X ∖ { c }  by Definition 6. Let  S t X  be a subgraph of  G X  such that
V ( S t X ) : = X
and
E ( S t X ) : = { { x , c } : x ∈ X ∖ { c } } .
Then,  S t X  is a star graph by Definition 9, and moreover,  S t X  is a spanning subtree of  G X  by (59). Thus,  ( i i ) ⇒ ( i i i )  is a valid implication.
( i i i ) ⇒ ( i i ) . Let  S t X  be a spanning star subgraph of the diametrical graph  G X . Then, (59) holds. Since  ( X , d )  contains at least two points,  S t X  is non-empty by Definition 9. Thus,  G X  also is non-empty by inclusion  S t X ⊆ G X . Consequently,  G X  is complete multipartite by Theorem 2. Definition 9 and equality (59) imply that there is  c ∈ X  such that (60) holds for each  x ∈ X ∖ { c } .  Consequently, the singleton  { c }  is a part of the complete multipartite graph  G X . Thus,  ( i i i )  implies  ( i i ) .
The proof is completed. □
Figure 2 below gives us an example of the space  ( X , d )  which satisfies Theorem 8.
Figure 2. A spanning star graph  S t X  of the diametrical graph  G X  of the space  ( X , d )  depicted by Figure 1.
Remark 6.
Analyzing the proof of Theorem 8, we can see that the equivalence  ( i i ) ⇔ ( i i i )  is valid for arbitrary complete multipartite graph G. Consequently, Theorem 8 gives us necessary and sufficient conditions under which complete multipartite graphs have spanning star subgraphs. In connection with this result, we note that all connected graphs have spanning subtrees. See, for example, Proposition 14 in Chapter 1 of book [22].
Theorems 1 and 4 give us the following.
Corollary 4.
Let  ( X , d ) ∈ UT  have at least two points, and let  C ( X )  be the center of distances of  ( X , d ) . Then, the equality
C ( X ) = { 0 }
holds if and only if  ( X , d )  is weakly similar to an unbounded ultrametric space.
Proof. 
Let  D ( X )  be the distance set of  ( X , d ) . Then, by Theorem 4, equality (61) holds if
diam X ∉ D ( X ) .
It implies the desired result by Theorem 1. □
Remark 7.
Example 1 shows that equality (61) may not hold if  ( X , d ) ∉ UT .

6. Conclusions—Expected Results

Let  ( X , d )  be a metric space. A closed ball in  ( X , d )  is a subset  B ¯ r ( c )  of the set X defined as
B ¯ r ( c ) : = { x ∈ X : d ( c , x ) ≤ r } ,
where  c ∈ X  and  r ∈ R + .
Let us denote by  B ¯ X  the set of all closed balls of  ( X , d ) .
The following conjecture is a counterpart of Theorem 6.
Conjecture 1.
Let  ( X , d )  be an ultrametric space, and let
D p ( X ) : = { d ( p , x ) : x ∈ X }
for each  p ∈ X . If the inclusion
B ¯ X ⊆ Cs X
holds, then the set  D p ( X ) ∩ [ 0 , r ]  has the greatest element for all  p ∈ X  and  r ∈ R + . Moreover, if  ( X , d ) ∈ UT , and the set  D p ( X ) ∩ [ 0 , r ]  has the greatest element for all  p ∈ X  and  r ∈ R + , then inclusion (62) holds.
Let  ( X 3 , d )  be the three-point ultrametric space depicted in Figure 3 below.
Figure 3. A non-equidistant three-point ultrametric space  ( X 3 , d ) .
Then, it is easy to show that every non-empty subset of  X 3  is a centered sphere in  ( X 3 , d ) .
Conjecture 2.
Let  ( Y , ρ )  be an ultrametric space such that  | Y | ≥ 3 . Then, the following statements are equivalent:
(i)
Each non-empty subset of the set Y is a centered sphere in  ( Y , ρ ) .
(ii)
The set Y contains exactly three points, and  ( Y , ρ )  is weakly similar to  ( X 3 , d ) .
The following conjecture was motivated by some calculations with p-adic ultrametric with  p = 2  (see Example 1).
Conjecture 3.
Let  n ≥ 1  be an integer number, let  log 2 ( n )  be the binary logarithm of n, and let  ⌊ log 2 ( n ) ⌋  be the integer part of  log 2 ( n ) . Then, the inequality
| C ( X ) | ≤ 1 + ⌊ log 2 ( n ) ⌋
holds for each ultrametric space  ( X , d )  with  | X | = n . Moreover, there exists an ultrametric space  ( Y , ρ )  such that  | Y | = n  and
| C ( Y ) | = 1 + ⌊ log 2 ( n ) ⌋ .
To see why a binary logarithm bound is expected in Conjecture 3, we only note that the following simple statement is valid.
Let  { X 1 , X 2 , … , X k }  be a partition of a finite set X on disjoint subsets  X 1 , X 2 , … , X k  with  k ≥ 2 . Then, there is a partition  { X 1 * , X 2 * }  of X such that
min { | X 1 * | , | X 2 * | } ≥ min { | X 1 | , … , | X k | } .

Author Contributions

Conceptualization, O.D.; writing—original draft preparation, O.D.; methodology, O.D.; formal analysis, O.R.; writing—review and editing, O.R.; investigation, O.D.; resources, O.R. All authors have read and agreed to the published version of the manuscript.

Funding

The first author was supported by grant 367319 of the Research Council of Finland.

Data Availability Statement

The original contributions presented in this study are included in the article. Further inquiries can be directed to the corresponding author.

Acknowledgments

The authors are grateful to the reviewers for their constructive comments and suggestions, which significantly improved the manuscript.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Dovgoshey, O. Isomorphism of trees and isometry of ultrametric spaces. Theory Appl. Graphs 2020, 7, 3. [Google Scholar] [CrossRef] [Scilit]
  2. Dovgoshey, O.; Kostikov, A. Locally finite ultrametric spaces and labeled trees. J. Math. Sci. 2023, 276, 614–637. [Google Scholar] [CrossRef] [Scilit]
  3. Dovgoshey, O.; Küçükaslan, M. Labeled trees generating complete, compact, and discrete ultrametric spaces. Ann. Comb. 2022, 26, 613–642. [Google Scholar] [CrossRef] [Scilit]
  4. Dovgoshey, O.; Vito, V. Totally bounded ultrametric spaces generated by labeled rays. Appl. Gen. Topol. 2025, 26, 163–182. [Google Scholar] [CrossRef] [Scilit]
  5. Dovgoshey, O.; Rovenska, O. Ultrametric spaces generated by labeled star graphs. J. Math. Sci. 2025, 228, 182–198. [Google Scholar] [CrossRef] [Scilit]
  6. Dovgoshey, O.; Cantor, O.; Rovenska, O. Compact ultrametric spaces generated by labeled star graphs. Online J. Anal. Comb. 2025, 20, 1–20. [Google Scholar] [CrossRef] [Scilit]
  7. Bielas, W.; Plewik, S.; Walczyńska, M. On the center of distances. Eur. J. Math. 2018, 4, 687–698. [Google Scholar] [CrossRef] [Scilit]
  8. von Neumann, J. Charakterisierung des Spektrums Eines Integraloperators; Hermann: Paris, France, 1935. [Google Scholar]
  9. Deza, M.M.; Deza, E. Encyclopedia of Distances, 4th ed.; Springer: Berlin/Heidelberg, Germany, 2016. [Google Scholar] [CrossRef] [Scilit]
  10. Bachman, G. Introduction to p-Adic Numbers and Valuation Theory; Academic Press: New York, NY, USA; London, UK, 1964. [Google Scholar]
  11. Dovgoshey, O.; Petrov, E. Weak similarities of metric and semimetric spaces. Acta Math. Hung. 2013, 141, 301–319. [Google Scholar] [CrossRef] [Scilit]
  12. Bilet, V.; Dovgoshey, O.; Kononov, Y. Ultrametrics and Complete Multipartite Graphs. Theory Appl. Graphs 2022, 9, 8. [Google Scholar] [CrossRef] [Scilit]
  13. Dovgoshey, O. Finite ultrametric balls. p-adic Numbers Ultrametr. Anal. Appl. 2019, 11, 177–191. [Google Scholar] [CrossRef] [Scilit]
  14. Schikhof, W.H. Ultrametric Calculus. An Introduction to p-Adic Analysis; Cambridge University Press: Cambridge, UK, 1985. [Google Scholar]
  15. Dovgoshey, O.; Shcherbak, V. The range of ultrametrics, compactness, and separability. Topol. Its Appl. 2022, 305, 107899. [Google Scholar] [CrossRef] [Scilit]
  16. Diestel, R. Graph Theory, 3rd ed.; Graduate Texts in Mathematics; Springer: Berlin/Heidelberg, Germany, 2005; Volume 173. [Google Scholar]
  17. Petrov, E.; Dovgoshey, A. On the Gomory-Hu inequality. J. Math. Sci. 2014, 198, 392–411. [Google Scholar] [CrossRef] [Scilit]
  18. Gomory, R.E.; Hu, T.C. Multi-terminal network flows. J. Soc. Ind. Appl. Math. 1961, 9, 551–570. [Google Scholar] [CrossRef] [Scilit]
  19. Dordovskyi, D.; Dovgoshey, O.; Petrov, E. Diameter and diametrical pairs of points in ultrametric spaces. p-Adic Numbers Ultrametric Anal. Appl. 2011, 3, 253–262. [Google Scholar] [CrossRef] [Scilit]
  20. Nowakowski, P.; Prus-Wiśniowski, F.; Turoboś, F. Spectre operator, achievement sets and sets of P-sums in a hyperspace of compact sets. arXiv 2025, arXiv:2512.11803. https://arxiv.org/abs/2512.11803.
  21. Delhommé, C.; Laflamme, C.; Pouzet, M.; Sauer, N. Indivisible ultrametric spaces. Topol. Its Appl. 2008, 155, 1462–1478. [Google Scholar] [CrossRef] [Scilit]
  22. Serre, J.P. Trees; Springer: Berlin/Heidelberg, Germany, 1980. [Google Scholar]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Article Metrics

Citations

Article Access Statistics

Multiple requests from the same IP address are counted as one view.