1. Introduction
Since L.A. Zadeh introduced fuzzy sets in 1965 [
1], researchers have been actively exploring ways to integrate traditional mathematical concepts and theories into the fuzzy sets context. Among the pioneering successes in this endeavor were the development of fuzzy topologies by C.L. Chang [
2], the introduction of fuzzy algebraic structures by A. Rosenfeld [
3], fuzzy category theory by A. Šostak [
4], etc. Fuzzy sets have also been widely used for practical applications that involve uncertainty, vagueness, and imprecision. They have already proven their efficiency in natural language processing, decision-making, pattern recognition, and optimization problems. As the potential applications of fuzzy metrics in real-world problem solving became evident, the idea of establishing a fuzzy counterpart to a metric space gained traction. Several researchers took on this challenge, and notable contributions to the field of fuzzy metrics were made by I. Kramosil and J. Michalek [
5], A. George and P. Veeramani [
6], Z. Deng [
7], and O. Kaleva and S. Seikkala [
8]. It is worth mentioning that each of these researchers used different initial prerequisites in their approach, which adds diversity to the developments in the field. These advancements in fuzzy metrics open up new avenues for studying and addressing complex real-world issues through the flexible and adaptable nature of fuzzy sets and metrics. As research in this area continues to progress, we can anticipate even more valuable applications and insights into a wide range of problems. Currently, there is growing interest in exploring the topological properties of fuzzy metrics, as this line of study holds promise not only for theoretical constructions but also for fixed-point theorems and various practical applications. Regarding the investigation of the topological properties of classical fuzzy metrics, extensive references can be found in [
9,
10,
11,
12,
13,
14,
15,
16,
17,
18,
19,
20,
21]. Although fuzzy metrics have demonstrated successful applications in image processing problems [
22,
23,
24], their full potential remains untapped. These metrics hold significant promise, particularly in addressing segmentation, spectralization, and compression problems. Furthermore, fuzzy metrics have showcased their capability in tackling optimization problems [
25]. As research in this area continues to progress, it is likely that we will witness even more innovative applications and fruitful outcomes from the study of fuzzy metrics and their properties. Continuing the exploration of fuzzy metrics from the perspective of fuzzy relations opens up exciting avenues for enhancing our theoretical understanding of their properties. By delving into the fuzzy relations aspect, we can establish insightful connections between various structures and gain deeper insights into the fundamental nature of fuzzy metrics. Fuzzy relations provide a powerful framework to analyze the relationships and interactions within fuzzy metrics, shedding light on the underlying mathematical intricacies. This approach not only offers a fresh lens to examine existing fuzzy metrics but also allows us to uncover hidden patterns and unveil novel properties. Moreover, investigating fuzzy metrics from the fuzzy relations point of view paves the way for constructing new examples. By leveraging the inherent flexibility of fuzzy relations, we can create innovative fuzzy metric spaces that possess specific properties tailored to tackle real-world problems. The synergy between fuzzy metrics and fuzzy relations also holds promise for cross-disciplinary applications. It enables us to leverage a wealth of knowledge from different fields and merge their insights to address complex challenges more comprehensively. In conclusion, venturing into the study of fuzzy metrics through the lens of fuzzy relations not only enriches our theoretical understanding of these structures but also opens up a vast landscape of possibilities for practical applications.
In the current literature, the concept of a fuzzy metric is predominantly based on the axioms introduced in [
6,
9], which are essentially a reformulation of the original axioms defined in [
5]. In [
5], the idea of defining a fuzzy metric stems from the assumption that the evaluated value
of a crisp metric
d to be fuzzified or approximated is smaller than a predetermined real number
t. In other words, the statement
is fuzzified. This paper aims to justify this fact. It is crucial to take into account this fact when working with applications.
Thus, the main idea of the paper is to show how the notion of a fuzzy metric arises from the crisp order relation R, by demonstrating that every metric d can be determined by an order relation R. Subsequently, we investigate the criteria that crisp relations must satisfy in order to establish a crisp metric. Furthermore, we fuzzify the axioms of R to obtain a fuzzy metric and examine the conditions that a fuzzy relation R must satisfy in order to be considered a fuzzy metric. Finally, we introduce a different approach to the fuzzy metric concept, where we extend a crisp metric d on a set X by means of a fuzzy equivalence relation E on the set . We call it an E-d metric or an extensional fuzzy metric.
The paper is structured as follows. In
Section 2, we provide a recap of the key results and concepts that are used in the paper. Specifically, we introduce and discuss triangular norms and fuzzy relations.
Section 3 is devoted to the examination of classical metrics and their representation by means of linear order relations. The primary objective of the paper is addressed in
Section 4. Here, we analyze the existing definition of fuzzy metrics and propose a method for its construction, employing fuzzy order relations. Extensional fuzzy metrics are explored in
Section 5. Finally, in
Section 6, we conclude the paper.
3. Crisp Metrics
The concepts of a metric and a metric space, first introduced by M. Fréchet in 1906 [
30], now belong to the most fundamental concepts of modern mathematics. For convenience of presentation, we recall them in the next definition:
Definition 6. Metric space is an ordered pair , where X is a set and d is a metric on X, i.e., a function , satisfying the following axioms for all points :
- 1.
if and only if ;
- 2.
;
- 3.
.
As the next theorem shows, metric spaces are fully characterized by pairs , where and if and only if .
Theorem 2. A metric d on a set X is uniquely determined by the following function: , where for all and , if and only if .
Proof. Let us prove that two metrics and differ if and only if , where if and only if , and if and only if . Thus, if and only if there exist , such that . The last one is fulfilled if and only if there exist , such that or . If than and . If , then and ; thus, .
Further, if , then there exist and such that and or and . If and , then and ; thus, . □
Now we investigate how to define in order to reflect axioms from Definition 6:
If
if and only if
, then, if
,
cannot be fulfilled for any
and
. However, we still want to invent an axiom for
that is equivalent to the axiom
if and only if
. The axiom is:
Let us prove that this axiom is equivalent to the axiom :
If
, then obviously
for all
, and from (
1), it follows that
. If
, then from (
1),
for all
, which means
for all
, and then
.
Let us prove the opposite. If for all , then for all , which implies and, finally, . The opposite direction is also fulfilled.
It is obvious that condition (
2) is equivalent to axiom (2) from Definition 6:
Inequality (
3) comes from the assertion:
Now, we prove that (
3) is equivalent to axiom (3) from Definition 6. If
or
, then obviously (3) is fulfilled. If
and
, then
and
, which means
and, finally,
. Now we prove that
if (
3) is fulfilled. Assuming that
, then there exist
such that
and
. Thus,
and
, but
.
Thus, axioms (1)–(3) from Definition 6 are equivalent to the following axioms for function , such that if and only if for all and :
;
;
.
The question is whether a metric d on a set X is uniquely determined by a function , satisfying for all and the three above-mentioned conditions.
It is clear that function
R, which satisfies the three above-mentioned conditions, is non-decreasing with respect to the third argument:
for all
That means that, for the fixed
, the value
when
t is less than or equal to /less than some
and
otherwise. Then, we can define a metric
as
. The only thing to take into account is that two functions could define the same metric (if
R differs for fixed
only in one point); thus, we ask function
R to be left-semicontinuous to be in accordance with the condition
. Note that the metric
can also be defined as
, which is equal to
, since
R is left-semicontinuous.
Thus, we have the following theorem:
Theorem 3. A metric d on a set X is uniquely determined by a function , which is left-semicontinuous with respect to the third argument and for which the following conditions are fulfilled for all and :
;
;
.
Proof. Let
be a function satisfying conditions (1)–(3). Taking into account condition (3), the function
R is non-decreasing by the third argument, and taking into account the left-semicontinuity of
R,
R can be illustrated by
Figure 1:
Then we can build a function as . It is obvious that, if , then , where and . Now, we prove that d defined as satisfies the axioms from Definition 6:
If , then for all and . On the other hand, if , then . Thus, for all , which means .
, since .
Now we prove that . Indeed, if , then there exist , such that and , where and . Thus, and , but , and thus . However, this leads to a contradiction with , which is fulfilled since .
Now let be a metric; we define , where for all and , if and only if . It has already been shown that, if , then . Further, let us prove that, for the defined function R, conditions (1)–(3) are fulfilled:
If for all , then for all , which implies and, finally, . If , then and for all , which is for all .
. Taking into account that
R can take only values 0 and 1, we conclude:
If or , then obviously (3) is fulfilled. If and , then and , which means and, finally, .
□
Remark 1. In the previous theorem, it was sufficient to define the domain of R as (not including 0 in the interval ). Intuitively, it could be explained by the fact that cannot be less than 0. On the other hand, this does not prevent us from defining . If we still want to work with domain for R, we should define for all , since otherwise it could be both 0 and 1.
If, in the previous proof, we want to define as , we should add the following condition for R: Remark 2. The function can also be determined as a crisp relation , where . Based on this fact, we will call a function as a parametric relation.
From the above theorems, we obtain the following principal result:
Corollary 1. Given a metric , by setting , we obtain a parametric relation satisfying properties (1)–(3). Conversely, having a parametric relation satisfying properties (1)–(3) by setting , we obtain a metric. Additionally, for every metric d and, if the parametric relation R satisfies properties (1)–(3) and is left-continuous, then .
According to the definition of nonexpansive, continuous, and uniformly continuous functions in terms of metric spaces , it is possible to define these functions in terms of spaces , where R satisfies properties (1)–(3) of Theorem 3 and is left-semicontinuous. In the next propositions, we suppose that and are spaces isomorphic to and in the sense of Corollary 1, ( and ):
Proposition 1. A function is nonexpansive if and only if, for every pair of points x and y in , it holds that: Proposition 2. A function is continuous if and only if, for every and every , there exists such that, for every point y in , it holds that: Proposition 3. A function is uniformly continuous if and only if, for every , there exists such that, for every pair of points x and y in , it holds that: The proof of the previous three propositions relies on the direct application of nonexpansive, continuous, and uniformly continuous functions in terms of metric spaces and Theorem 3. It is possible to study categorical aspects of metric spaces in terms of metrics defined by relations, but we left the study of this topic for the future.
We continue in this paper to explain the definition of commonly used fuzzy metrics by extending the definition of a metric space in terms of relation R taking values in unit interval .
4. Fuzzy Metrics
Now we can use the last theorem from the previous section to define a fuzzy metric expanding the set to the interval and using arbitrary t-norm T instead of the minimum t-norm that was used in the previous section:
Definition 7. A fuzzy metric on a set X is a function satisfying the following axioms for all and :
- 0.
;
- 1.
for all if and only if ;
- 2.
;
- 3.
;
- 4.
is left-semicontinuous.
The above definition, with the more strict axiom (0):
- 0.
is a definition of a fuzzy metric introduced by Kramosil and Michalek [
5] for a measurable real function
such that
and revised by Grabiec [
9] for a t-norm
T. To be precise, Kramosil and Michalek used the additional axiom:
- 5.
is nondecreasing, and .
In the case of Definition 7, the nondecreasing condition is fulfilled in the case of any t-norm T, and the condition is skipped by other authors since it comes from the statistical metric spaces and does not play any role in the context of fuzzy sets.
Example 1. These examples fulfill fuzzy metrics axioms (0)–(2) and (4) and axiom (3) for the corresponding t-norm and for any crisp metric d that is used for the construction:
- 1.
Axiom (3) is fulfilled for product t-norm T. - 2.
Axiom (3) is fulfilled for any t-norm T.
In the same way as mentioned in the previous section, it is possible to define the fuzzy metric (not including 0 in the interval ), requesting M to fulfill axioms (1)–(4) and skipping axiom (0).
Defining fuzzy metrics in this way, we should clearly understand that the value shows the degree to which for a metric d, which is explained by the roots of this definition proposed in the previous section.
The conditions (0) and (1) are quite strong especially when they are used together. Condition (0) shows that since, for any metric and for all , condition is not fulfilled, i.e., for any . In the fuzzy sense, this leads to the assumption that if , then should be always 0. The condition (1) leads to the assumption that, if , then , but it is not clear why it is fulfilled only in the case . Both assumptions together lead us to the crisp case explained in the previous section.
In [
6], the authors slightly modified axioms (1)–(4) and defined a fuzzy metric as a function
M with domain
:
Definition 8 ([
6])
. A fuzzy metric on a set X is a function satisfying the following axioms for all and :- 0.
;
- 1.
if and only if ;
- 2.
;
- 3.
;
- 4.
is continuous.
In this definition, the authors do not allow function
M to take the value 0 and allow it to take the value 1 only when
:
These requirements are quite strong.
Additionally, in using this definition, it is impossible to construct a crisp metric d from the function M even if we use the definition of fuzzy linear order R, where . This means that it is not clear which metric d the fuzzy metric M fuzzifies.
To overcome the problem of revealing the metric
d that is fuzzified by
M, we propose two approaches. The first approach is to define the fuzzy metric as the function
:
where
satisfies conditions (2) and (3) from Definition 7.
The second idea is to define a fuzzy metric as a function
by
where
satisfies conditions (2) and (3) from Definition 7. In this case, we also require
M to be continuous. In both cases, we can construct a crisp metric
that is fuzzified by
M. The second idea is more natural, and a similar approach was investigated in [
31].
Example 2. These examples fulfill condition (5) and axioms (2) and (3) from Definition 7 for the corresponding t-norm and for any crisp metric d:
- 1.
Axiom (3) is fulfilled for the Łukasiewicz t-norm. - 2.
Axiom (3) is fulfilled for the product t-norm. - 3.
Axiom (3) is fulfilled for the Hamacher t-norm.
Here, we propose axioms sufficient for the fuzzy metric to generate a crisp metric:
Theorem 4. Let function satisfy the following axioms for all and :
- 0.
;
- 1.
for all , if and only if ;
- 2.
;
- 3.
;
- 4.
is continuous for .
Then, the function defined as , where λ is a fixed real number from interval , is a metric if λ is an idempotent element for t-norm T.
Proof. We prove that d, defined as , satisfies the axioms from Definition 6:
If , then for all , and . On the other hand, if , then . Thus, since M is continuous by the third argument and , we conclude . Actually, to prove this theorem, it is enough to request that function M is continuous only at 0 and is left-semicontinuous for other points.
, since .
Now we prove that . Indeed, if , then there exist , such that and , where and . Thus, and , but , which means . However, this leads to a contradiction with , which is fulfilled since .
□
Example 3. Function from Example 1 fulfill axioms (0)–(4) of Theorem 4. Thus, it is possible to apply the result of Theorem 4 and build a metric , where λ is a fixed real number from interval .
Let us come back to our initial idea of defining a metric through an order, but this time in a fuzzy sense. We first introduce a definition of a compatible fuzzy relation with an order ≤.
Definition 9. Let ≤ be a linear order on a set S. Fuzzy relation is called compatible with ≤ if and only if whenever and whenever .
This property can be interpreted as follows: if we have a three-element chain , then the degree that is greater then the degree of and of .
The next theorem shows that it is enough for a fuzzy relation , defined as for a metric d, to be compatible with ≤ (where ≤ is a linear order on ) to fulfill the axioms from Definition 7. Thus, we do not need to require T-transitivity of the fuzzy relation R.
Theorem 5. Let be a metric. A function , defined as , where , which is compatible with ≤ on , is left-semicontinuous with respect to the second argument, and satisfies conditionsis a fuzzy metric. Proof. Let us prove that function satisfies the following axioms for all and :
- 0.
, since ;
- 1.
for all if and only if , but that it is fulfilled if and only if ;
- 2.
since ;
- 3.
Thus,
.
□
Example 4. Functions , , and from Example 2 can be constructed as , where are represented as in Theorem 1:where - 1.
- 2.
- 3.
5. Extensional Fuzzy Metrics
In this section, we invite the reader to trace the development of the ideas of the previous sections. Whereas in the previous section we fuzzified the statement , where d is a metric and , here we explain the idea of fuzzification of the statement .
Consider a metric space
and a
T-equivalence relation
E. We define a fuzzy metric as an extension of the given metric
d with respect to a
T-equivalence relation
E on the set
(codomain of the metric
d). In the definition of an extensional fuzzy metric, we use a strongly linear
T-
E-order on
, defined as:
Thus, whereas in the previous section we used a fuzzy order relation, here we rely on a fuzzy equivalence relation. This approach has been developed in [
32]; we outline here the main ideas to illustrate the approach and the logical development of the ideas of the previous section.
We propose to define a fuzzy metric as the degree to which the observed distance between points x and y is equal to the real number t, or equal in a certain fuzzy sense determined by fuzzy equivalence E. That is, we define a fuzzy metric (called the E-d-metric) as a mapping as follows:
Definition 10. Let d be a crisp metric on a set X, and E be a fuzzy T-equivalence. Let a mapping be defined as: The fuzzy set is called an extensional fuzzy metric determined by metric d and fuzzy equivalence E or E-d-metric if the following condition is satisfied: Condition (8) shows that and that implies in a certain fuzzy sense. In other words, it is a fuzzy version of the triangular inequality.
If we have a crisp fuzzy equivalence relation:
and corresponding
T-
E-order, then condition (8) holds for any t-norm
T and metric
d; it actually follows from the triangular inequality of the metric
d.
We finish this section by noting the fact that the inequality (8) is quite natural and is fulfilled for Archimedean t-norms automatically.
Theorem 6. Let T be a continuous Archimedean t-norm, and let T-equivalence be defined by:where g is an additive generator of t-norm T. Then, the conditionis fulfilled for any metric d. Example 5. Let d be a crisp metric, . Then, we have the following examples of the E-d-metric:
in the case of T, which is the Łukasiewicz t-norm;
in the case of T, which is the product t-norm;
in the case of T, which is the Hamacher t-norm.