Manuscript Offprint
arXiv:2610.26167Ramsey expansions of -metric spaces
JAN HUBIČKA, MATĚJ KONEČNÝ, JAROSLAV NEŠETRIL, AND NORBERT SAUER
In memory of our good friend Robert Woodrow
ABSTRACT. Let be a subset of positive reals. We say that a metric space is an -metric space if the range of the metric is a subset of . In 2007, Delhommé, Laflamme, Pouzet, and Sauer characterized those sets for which the class of all finite -metric spaces has the amalgamation property. Given an amalgamation class, a natural question is what its Ramsey expansion is. Ramsey expansions are known for classes of -metric spaces for which carries a natural distance monoid structure, for example for or when is topologically closed. In this paper, we extend this result to all amalgamation classes of finite -metric spaces, thereby completing the Ramsey-theoretic classification of amalgamation classes of finite -metric spaces.
1. INTRODUCTION
A structure M is homogeneous if every isomorphism between finite substructures of M extends to an automorphism of M. A class C of finite structures has the amalgamation property if for every A, B₁, B₂ ∈ C such that A is a substructure of both B₁ and B₂, there is C ∈ C such that both B₁ and B₂ are substructures of C, sharing A as a common substructure. The interplay between (infinite) homogeneous structures and classes with the amalgamation property is the subject of the famous Fraissé theory [Fra86]. In particular, the age (class of all finite substructures) of every homogeneous structure has the amalgamation property, and, under certain conditions, classes with the amalgamation property yield infinite homogeneous structures.
It turns out that many group-theoretic or model-theoretic properties of homogeneous structures are reflected in combinatorial properties of their ages. One of the most prominent is the Ramsey property:
Definition 1.1. A class of finite structures is Ramsey (has the Ramsey property) if for every and , there exists such that the following holds: For every colouring : of all embeddings of into by 2 colours, there exists an embedding such that the colouring is constant on .
It is usual to denote the last part of Definition 1.1 as .
Structural Ramsey theory emerged in the 1970s from work of Leeb [Lee73] and Nešetril and Rödl [NR77], generalizing Ramsey's theorem [Ram30] from finite sets to finite structures. The area was revitalized in 2005 by the influential paper of Kechris, Pestov and Todorčević [KPT05], connecting Ramsey classes to topological dynamics and the study of universal minimal flows. Since then, many new Ramsey
J.H. and J.N were supported by project 25-15571S of the Czech Science Foundation (GAČR). This paper is part of a project that has received funding from the European Research Council (ERC) under the European Union's Horizon 2020 research and innovation programme (grant agreement No 810115 – DYNASNET).
J. HUBIČKA, M. KONEČNÝ, J. NEŠETRIL, AND N. SAUER
classes have been found and general machinery for proving the Ramsey property has been developed, see e.g. [HN19] or the recent survey [HK26].
Among classes with the amalgamation property that have been studied from the perspective of the Ramsey property, metric and metric-like spaces occupy a prominent place. Nešetril [Neš07] proved that the class of all finite linearly ordered metric spaces is Ramsey. The fact that one needs to add some variant of a linear order is a well-understood phenomenon in Ramsey theory, see e.g. [KPT05, DR12]. This result served as a foundation for further research on Ramsey properties of metric and metric-like spaces, see e.g. [NVT10, DR12, HN19, HKN21, Bra26, ABWH 21, ABWH 26, Kon19].
Delhommé, Laflamme, Pouzet, and Sauer in 2007 [DLPS07] characterized precisely for which subsets the class of all finite metric spaces whose range of distances is a subset of (we will call such spaces -metric spaces) has the amalgamation property. It turns out that this can be neatly expressed by a simple condition on (which in fact says that amalgamations of triangles exist):
Definition 1.2 ([DLPS07]). A subset satisfies the 4-values condition if for every , whenever there is an element such that the triangles with distances and satisfy the triangle inequality, there is such that the triangles with distances and satisfy the triangle inequality.
The characterization of Delhommé, Laflamme, Pouzet, and Sauer [DLPS07] can now be stated as follows.
Theorem 1.3 ([DLPS07]). Let be a subset of positive real numbers and let be the class of all finite -metric spaces. Then has the amalgamation property if and only if satisfies the 4-values condition.
Nguyen Van Thé [NVT09] proved that the Ramsey property holds for various convexly ordered S-metric spaces. His results were later significantly extended by Hubička and Nešetril [HN19], who covered all cases where carries a natural distance monoid structure (for example when or when is topologically closed).
In this paper, we conclude the study of Ramsey expansions for S-metric spaces by proving the following theorem.
Theorem 1.4. Let be a subset of positive real numbers satisfying the 4-values condition, and let be the class of all finite -metric spaces equipped with a linear order convex with respect to block equivalences. Then has the Ramsey property and the expansion property with respect to .
To prove Theorem 1.4 we use the Ramsey theorem for metric spaces over distance monoids proved by Hubička, Konečný and Nešetril [HKN21]. Given a set S satisfying the 4-values condition, we construct a distance monoid containing a copy of S and translate S-metric spaces to metric spaces over this monoid. We then use the Ramsey theorem and show how to “adjust” the distances in a Ramsey witness to get an S-metric space.
AI usage disclaimer. The original version of this paper dates from 2020. ChatGPT (GPT-5.6 Sol) was used in the present revision for proof checking and editing; the authors take full responsibility for the final text.
2.1. Ramsey expansions. As we have already mentioned, classes with the amalgamation property are often not Ramsey by themselves. One then adds some extra structure, often a linear order, to obtain a Ramsey class. To rule out vacuous expansions, Nguyen Van Thé [NVT13] introduced the expansion property. Since in this paper we only add a linear order, we state the definition directly in this setting.
Definition 2.1 (Expansion property [NVT13]). Let be a class of finite structures and let be a class of structures obtained from members of by adding a linear order. We say that has the expansion property (with respect to ) if for every there is such that every expansion of embeds into every expansion of .
In our case, we add certain linear orders which behave well with respect to the natural equivalence relations given by the distances. For the rest of this subsection, assume that S satisfies the 4-values condition.
We define a binary relation on by saying that if and only if there is a sequence such that for every , , and for every . It is straightforward to verify using the 4-values condition that is an equivalence relation and that if and is such that , then (i.e. the equivalence classes of form intervals in the order on ). We will call the equivalence classes of blocks of . For finite , the same block decomposition appears in [Sau12].
Definition 2.2. Let be an S-metric space and let be a block of . We define a block equivalence on vertices of by putting if and only if there is such that . We say that a linear order of is convex with respect to block equivalences if for every block of it holds that every equivalence class of forms an interval in .
The previous definition extends the definition of convex ordering on S-metric spaces from [HN19].
Example 2.3. The set satisfies the 4-values condition and has three blocks , , and . The set also satisfies the 4-values condition and has two blocks, and .
2.2. Distance monoids. In this subsection, we recall the definitions and the Ramsey theorem from [HKN21]. When S is finite, the connection between an associative operation of this form and the amalgamation property for S-metric spaces was already observed by Sauer [Sau13].
Definition 2.4 ([HKN21]). A distance monoid is a tuple such that
(1) is a commutative monoid with identity 0;
(2) is a linear order with least element 0;
(3) if and , then .
Note that the last point and the fact that 0 is the least element imply for all .
Definition 2.5 ([HKN21]). Let be a distance monoid. Given a set and a function , we call an -metric space if for every :
J. HUBIČKA, M. KONEČNÝ, J. NEŠETRIL, AND N. SAUER
(1) if and only if ;
(2) ; and
(3)
Let be a distance monoid. For put if and only if there are positive integers and such that and , where
and similarly for . The set and the equivalence classes of are called blocks of .
Definition 2.6. Let be a distance monoid and let be an -metric space. Let be a block of . We define a block equivalence on vertices of by putting if and only if there is such that . We say that a linear order of is convex if every equivalence class of forms an interval in for every block of .
We will use the following theorem.
Theorem 2.7 ([HKN21]). For every distance monoid , the class of all finite convexly ordered -metric spaces is Ramsey.
3. THE RESULT
Throughout the section we fix a set which satisfies the 4-values condition. We denote by the set of all subsets satisfying the following:
(1) If and is such that , then (i.e. X is downwards closed),
(2) there is such that for every we have (i.e. X is bounded from above), and
(3) X is non-empty.
For let and put . A set is original if , otherwise is virtual.
First, we define a binary commutative operation : , putting
Note that if and are original, then .
It is straightforward to verify that for every , and that if , then . In other words, the operation is monotone with respect to set inclusion. Moreover, this inclusion is a linear order on .
The order and monotonicity properties above show that, after adding a least neutral element 0, the only distance monoid axiom left to verify is associativity of . For this, one needs the 4-values condition and an auxiliary observation.
Observation 3.1. For every we have . In particular, for we have if and only if .
Proof. By definition, if and only if and there are and such that . So in particular for every . Hence this also holds for . If are such that , we know that and , hence , which means that . In the other direction, if , then , so .
Proposition 3.2. The operation is associative; that is, for every we have that .
Proof. We prove that for every . This is enough to get the conclusion, because, using commutativity, one then gets the other inequality:
For a contradiction, suppose that there are such that . This means that there is such that . Using the definition of , we get and such that . We may assume that and . Indeed, if , then and hence , a contradiction. Similarly, if , then and, since , again .
Clearly, (as otherwise and by monotonicity of we would have that ). It also holds that : If , then , but by monotonicity we have that and hence . Thus again , a contradiction. Together with this gives that the triangle with distances satisfies the triangle inequality.
Using the definition of again, we get , such that . Because and , in particular , , hence the triangle with distances satisfies the triangle inequality. Therefore, using the 4-values condition, there is such that the triangles and satisfy the triangle inequality.
In particular, and . Using Observation 3.1, we derive that and that . Using monotonicity of , we get that , contradicting the choice of .
Let , where 0 is a new element. Extend by putting and extend inclusion to a linear order on by declaring for every . By the previous proposition and the monotonicity observed above, is a distance monoid. From now on, we fix this monoid. We identify with the set of its positive elements and continue to use inclusion for their order. Note that Observation 3.1 implies that if in an -metric space there is a triangle with positive distances , then . In particular, if , and , then .
Later in the proof, we will need the following facts about M.
Observation 3.3. Let such that is virtual and is original.
(1) If , then there is a number such that .
(2) If , then there is a number such that .
Proof. In the first case, by the definition of and by the fact that is original, there are and such that . The first statement follows directly from monotonicity. The second follows by applying the first with and choosing the larger of and .
Observation 3.4. Let be virtual. There is such that . (Hence in particular and are in the same block of .)
Proof. Put . This means that for every , there is such that . Hence, in particular, there is such that . Thus , and hence .
Lemma 3.5. Let . Then if and only if .
Proof. First suppose that and without loss of generality assume that . It is enough to find such that . From , we get a sequence such that , , and for every . Also
J. HUBIČKA, M. KONEČNÝ, J. NEŠETRIL, AND N. SAUER
and because . Thus . Using induction, we then get that .
Now suppose that and, without loss of generality, . Choose such that . We prove by induction on that if and , then . The case is clear. Suppose that and . There are and such that . If , then , and hence . We can thus assume that . By the induction hypothesis, . If , then because blocks are intervals. Otherwise , so we can append to a sequence witnessing . It follows that . Since , this gives .
Let A be an (ordered) S-metric space. We can define an (ordered) M-metric space as follows:
(1) The vertices of are the same as the vertices of ,
(2) the order is also the same (if there is one),
(3) and for .
The fact that is an -metric space follows from Observation 3.1. Note that if and are -metric spaces and is a function, then is an embedding if and only if it is an embedding . We will now observe that orders convex with respect to block equivalences correspond to convex orders in the sense of Definition 2.6:
Observation 3.6. Let A be an S-metric space and let be a linear order of vertices of A. The order is convex with respect to block equivalences if and only if it is convex in the sense of Definition 2.6 for .
Proof. All positive distances in are original. By Lemma 3.5, the function induces a bijection between the equivalence classes of and the equivalence classes of on original distances. The observation follows by comparing the two definitions of convexity.
Our goal is to use Theorem 2.7 to obtain a Ramsey witness over and then adjust its distances back to S. We will use the following lemma.
Lemma 3.7. Let be finite. There is a map such that:
(1) for every ,
(2) for every original ,
(3) if form a metric triangle, then form a metric triangle, and
(4) for every .
Proof. We proceed by induction on the number of virtual elements of P. If there are none, take f to be the identity.
Suppose that P contains a virtual element and let X be its largest virtual element (with respect to inclusion). Put
Further, let consist of all pairs such that , , , and form a metric triangle, and let consist of all such that and form a metric triangle. Since is the largest virtual element of , every occurring in or is original.
Use Observation 3.3 to choose for every such that , and also for every such that . Finally, let be given by Observation 3.4. Choose sufficiently large so that
(i) for every ,
(ii) for every ,
(iii) for every , and
(iv) .
Such an exists. Indeed, all the sets above are finite; all , , and belong to ; and if , then because is virtual.
Define by and for . Clearly for every , it fixes all original elements of , and by (iv) we have for every .
We claim that also preserves metric triangles. Since , only a triangle inequality in which an occurrence of is on the right-hand side can become false. Let be the left-hand side of such an inequality and let be the other distance on the right-hand side. If , then , and (i) gives . If , the inequality is automatic by monotonicity. We may thus assume that . Since is the largest virtual element, is original. If , the inequality is automatic. Otherwise . If , then and the inequality follows from (iii); otherwise and it follows from (ii). This proves the claim.
Put . It contains one fewer virtual element than , so by the induction hypothesis there is a map satisfying properties 1–4. Put . Since is original, it is fixed by . Properties 1 and 2 follow immediately. Property 3 follows because both and preserve metric triangles, and property 4 follows by transitivity of .
The following proposition is now an immediate consequence.
Proposition 3.8. Let A be a finite M-metric space. There is an S-metric space satisfying the following:
(1) A and have the same set of vertices.
(2) .
(3) For all distinct , . If for some , that is, if is original, then .
(4) A linear order on A is convex with respect to block equivalences of if and only if it is convex for in the sense of Definition 2.6.
Note that the conditions imply that if is an S-metric space, then . Also, if all positive distances of an -metric space are original, then .
Proof. Apply Lemma 3.7 to . For every , write and put and, for ,
Lemma 3.7(3) says exactly that this is an S-metric space. Since the new distance depends only on the old distance, every automorphism of A is an automorphism of , which proves (2). Lemma 3.7(1) and Lemma 3.7(2) give (3). Finally, by Lemma 3.7(4), every positive distance is replaced by one in the same block of M. Hence A and induce the same block equivalences on vertices, and (4) follows from Observation 3.6.
Note that it is even possible to ensure that for any fixed and all distinct .
Now, we are ready to prove Theorem 1.4.
Proof of Theorem 1.4. Let A, B be finite ordered S-metric spaces whose orders are convex with respect to block equivalences. By Observation 3.6, and
J. HUBIČKA, M. KONEČNÝ, J. NEŠETRIL, AND N. SAUER
are convexly ordered M-metric spaces. Hence, by Theorem 2.7, there is a convexly ordered M-metric space such that
Let be given by Proposition 3.8, with the same order. By Proposition 3.8(4), is an S-metric space convexly ordered with respect to block equivalences.
Suppose that : is a colouring. Every embedding is also an embedding : all positive distances of are original, and Proposition 3.8(3) turns every original distance in into the distance in . Thus restricts to a colouring of . By the choice of , there is an embedding such that this restricted colouring is constant on . All positive distances in the image of are original, so the same map is also an embedding . Moreover, every embedding is also an embedding . Hence is constant on . This proves the Ramsey property. The expansion property follows by the standard argument (see e.g. [Kon19, Theorem 5.17]).
REFERENCES
[ABWH 21] Andres Aranda, David Bradley-Williams, Eng Keat Hng, Jan Hubička, Miltiadis Karamanlis, Michael Kompatscher, Matěj Konečný, and Micheal Pawliuk. Completing graphs to metric spaces. Contributions to Discrete Mathematics, 16(2):71–89, 2021.
[ABWH 26] Andres Aranda, David Bradley-Williams, Jan Hubička, Miltiadis Karamanlis, Michael Kompatscher, Matěj Konečný, and Micheal Pawliuk. Ramsey expansions of metrically homogeneous graphs. European Journal of Combinatorics, 132:104255, 2026.
[Bra26] Samuel Braunfeld. Ramsey expansions of -ultrametric spaces. European Journal of Combinatorics, 132:104257, 2026.
[DLPS07] Christian Delhommé, Claude Laflamme, Maurice Pouzet, and Norbert W. Sauer. Divisibility of countable metric spaces. European Journal of Combinatorics, 28(6):1746–1769, 2007.
[DR12] Domingos Dellamonica and Vojtěch Rödl. Distance preserving Ramsey graphs. Combinatorics, Probability and Computing, 21(04):554–581, 2012.
[Fra86] Roland Fraissé. Theory of relations. Studies in logic and the foundations of mathematics. North-Holland, 1986.
[HK26] Jan Hubička and Matěj Konečný. Twenty years of Nešetril's classification programme of Ramsey classes. Computer Science Review, 59:100814, 2026.
[HKN21] Jan Hubička, Matěj Konečný, and Jaroslav Nešetril. Conant's generalised metric spaces are Ramsey. Contributions to Discrete Mathematics, 16(2):46–70, 2021.
[HN19] Jan Hubička and Jaroslav Nešetril. All those Ramsey classes (Ramsey classes with closures and forbidden homomorphisms). Advances in Mathematics, 356C:106791, 2019.
[Kon19] Matěj Konečný. Semigroup-valued metric spaces. Master's thesis, Charles University, 2019. arXiv:1810.08963.
[KPT05] Alexander S. Kechris, Vladimir G. Pestov, and Stevo Todorčević. Fraissé limits, Ramsey theory, and topological dynamics of automorphism groups. Geometric and Functional Analysis, 15(1):106–189, 2005.
[Lee73] Klaus Leeb. Vorlesungen über Pascaltheorie. Arbeitsberichte des Instituts für Mathematische Maschinen und Datenverarbeitung, 6, 1973.
[Neš07] Jaroslav Nešetril. Metric spaces are Ramsey. European Journal of Combinatorics, 28(1):457–468, 2007.
[NR77] Jaroslav Nešetril and Vojtěch Rödl. A structural generalization of the Ramsey theorem. Bulletin of the American Mathematical Society, 83(1):127–128, 1977.
[NVT09] Lionel Nguyen Van Thé. Ramsey degrees of finite ultrametric spaces, ultrametric Urysohn spaces and dynamics of their isometry groups. European Journal of Combinatorics, 30(4):934–945, 2009.
[NVT10] Lionel Nguyen Van Thé. Structural Ramsey Theory of Metric Spaces and Topological Dynamics of Isometry Groups. Memoirs of the American Mathematical Society. American Mathematical Society, 2010.
[NVT13] Lionel Nguyen Van Thé. More on the kechris-pestov-todorcevic correspondence: Precompact expansions. Fundamenta Mathematicae, 222(1):19–47, 2013.
[Ram30] Frank Plumpton Ramsey. On a problem of formal logic. Proceedings of the London Mathematical Society, 2(1):264–286, 1930.
[Sau12] Norbert W. Sauer. Vertex partitions of metric spaces with finite distance sets. Discrete Mathematics, 312(1):119–128, 2012.
[Sau13] Norbert W. Sauer. Oscillation of Urysohn type spaces. In Asymptotic geometric analysis, volume 68 of Fields Institute Communications, pages 247–270. Springer, 2013.
CHARLES UNIVERSITY, FACULTY OF MATHEMATICS AND PHYSICS, DEPARTMENT OF APPLIED MATHEMATICS (KAM), PRAGUE, CZECH REPUBLIC
Email address: hubicka@kam.mff.cuni.cz
CHARLES UNIVERSITY, FACULTY OF MATHEMATICS AND PHYSICS, DEPARTMENT OF APPLIED MATHEMATICS (KAM), PRAGUE, CZECH REPUBLIC
Email address: matej@kam.mff.cuni.cz
CHARLES UNIVERSITY, FACULTY OF MATHEMATICS AND PHYSICS, COMPUTER SCIENCE INSTITUTE OF CHARLES UNIVERSITY (IUUK), PRAGUE, CZECH REPUBLIC
Email address: nesetril@iuuk.mff.cuni.cz
MATHEMATICS & STATISTICS DEPARTMENT, UNIVERSITY OF CALGARY, CALGARY, T2N 1N4, ALBERTA, CANADA
Email address: nsauer@math.ucalgary.ca