Kreyszig 1.1, Metric Spaces

Problem 1. Show that the real line is a metric space.

To demonstrate that the real line is a metric space, we must define a distance function (or metric) on the real line and confirm that it adheres to the properties of a metric.

Let's represent the real line as \(\mathbb{R}\) and consider two points \(x, y \in \mathbb{R}\).

Definition of the Metric (Distance Function):

Define the distance between \(x\) and \(y\) as: \(d(x, y) = |x - y|\) where \(| \cdot |\) symbolizes the absolute value.

We now need to confirm that \(d\) adheres to the three properties of a metric:

  1. Non-negativity: For all \(x, y \in \mathbb{R}\), \(d(x, y) \geq 0\) and \(d(x, y) = 0\) if and only if \(x = y\).

    Proof: \(d(x, y) = |x - y| \geq 0\) because the absolute value is always non-negative. \(d(x, y) = 0\) if and only if \(x - y = 0\) or \(x = y\).

  2. Symmetry: For all \(x, y \in \mathbb{R}\), \(d(x, y) = d(y, x)\).

    Proof: \(d(x, y) = |x - y| = |- (y - x)| = |y - x| = d(y, x)\).

  3. Triangle Inequality: For all \(x, y, z \in \mathbb{R}\), \(d(x, z) \leq d(x, y) + d(y, z)\).

    Proof: Using the properties of absolute values, we have: \(|x - z| = |(x - y) + (y - z)| \leq |x - y| + |y - z|\). Thus, \(d(x, z) \leq d(x, y) + d(y, z)\).

Given that the distance function \(d\) adheres to all three properties of a metric on \(\mathbb{R}\), we can deduce that the real line \(\mathbb{R}\) is a metric space with metric \(d\).


Problem 2. Does \(d(x,y) = (x-y)^2\) define a metric on the set of all real numbers?

To determine if \(d(x,y) = (x-y)^2\) defines a metric on the set of all real numbers, we need to check if it satisfies the three properties of a metric:

  1. Non-negativity: For all \(x, y \in \mathbb{R}\), \(d(x, y) \geq 0\) and \(d(x, y) = 0\) if and only if \(x = y\).

    Proof: \(d(x, y) = (x-y)^2\) is always non-negative since the square of any real number is non-negative. \(d(x, y) = 0\) if and only if \((x-y)^2 = 0\), which implies \(x-y = 0\) or \(x = y\).

  2. Symmetry: For all \(x, y \in \mathbb{R}\), \(d(x, y) = d(y, x)\).

    Proof: \(d(x, y) = (x-y)^2\) and \(d(y, x) = (y-x)^2\). Since \((x-y)^2 = (y-x)^2\), we have \(d(x, y) = d(y, x)\).

  3. Triangle Inequality: For all \(x, y, z \in \mathbb{R}\), \(d(x, z) \leq d(x, y) + d(y, z)\).

    Proof: We need to check if \((x-z)^2 \leq (x-y)^2 + (y-z)^2\) for all \(x, y, z \in \mathbb{R}\). This inequality does not hold in general. For a counterexample, consider \(x = 0\), \(y = 1\), and \(z = 2\). We have: \((x-z)^2 = 4\) \((x-y)^2 + (y-z)^2 = 1 + 1 = 2\) Clearly, 4 is not less than or equal to 2, so the triangle inequality is not satisfied.

Given that the triangle inequality is not satisfied for the function \(d(x,y) = (x-y)^2\), we can conclude that it does not define a metric on the set of all real numbers.


Problem 3. Show that \(d(x,y)=\sqrt(|x-y|)\) defines a metric on the set of all real numbers.

Define the distance between \(x\) and \(y\) as: \(d(x, y) = \sqrt{|x - y|}\) where \(| \cdot |\) symbolizes the absolute value.

We now need to confirm that \(d\) adheres to the three properties of a metric:

  1. Non-negativity: For all \(x, y \in \mathbb{R}\), \(d(x, y) \geq 0\) and \(d(x, y) = 0\) if and only if \(x = y\).

    Proof: \(d(x, y) = \sqrt{|x - y|}\) is always non-negative since the square root of any non-negative number is non-negative. \(d(x, y) = 0\) if and only if \(\sqrt{|x-y|} = 0\), which implies \(|x-y| = 0\) or \(x = y\).

  2. Symmetry: For all \(x, y \in \mathbb{R}\), \(d(x, y) = d(y, x)\).

    Proof: \(d(x, y) = \sqrt{|x - y|}\) and \(d(y, x) = \sqrt{|y - x|}\). Since \(|x-y| = |y-x|\), we have \(d(x, y) = d(y, x)\).

  3. Triangle Inequality: For all \(x, y, z \in \mathbb{R}\), \(d(x, z) \leq d(x, y) + d(y, z)\).

    Proof: We need to check if \(\sqrt{|x-z|} \leq \sqrt{|x-y|} + \sqrt{|y-z|}\) for all \(x, y, z \in \mathbb{R}\). Squaring both sides, this is equivalent to checking if \(|x-z| \leq |x-y| + 2\sqrt{|x-y|}\sqrt{|y-z|} + |y-z|\). Using the triangle inequality for absolute values, we have: \(|x-z| \leq |x-y| + |y-z|\). Since \(2\sqrt{|x-y|}\sqrt{|y-z|}\) is always non-negative, the inequality \(|x-z| \leq |x-y| + 2\sqrt{|x-y|}\sqrt{|y-z|} + |y-z|\) is satisfied.

Given that the distance function \(d\) adheres to all three properties of a metric on \(\mathbb{R}\), we can deduce that the real line \(\mathbb{R}\) is a metric space with metric \(d\).


Problem 4. Find all metrics on set X consisting of two points. Consiting of one point.

Consider a set \(X\) with two distinct points, \(a\) and \(b\).

For \(d: X \times X \rightarrow \mathbb{R}\) to be a metric, it must satisfy the following properties:

  1. \(d(x, y) \geq 0\) (non-negativity)

  2. \(d(x, y) = 0\) if and only if \(x = y\) (identity of indiscernibles)

  3. \(d(x, y) = d(y, x)\) (symmetry)

  4. \(d(x, z) \leq d(x, y) + d(y, z)\) (triangle inequality)

Given that \(X\) has only two points, the possible distances are:

  1. \(d(a, a) = 0\)

  2. \(d(b, b) = 0\)

  3. \(d(a, b)\) which must be positive.

  4. \(d(b, a) = d(a, b)\)

Thus, for any positive real number \(r\), defining \(d(a, b) = r\) and \(d(b, a) = r\) gives a metric on \(X\). There are infinitely many such metrics, one for each positive real number \(r\).

Now, for a set \(X\) with a single point, \(a\), the only possible distance is:

  1. \(d(a, a) = 0\)

Given that this satisfies all the properties of a metric, there is only one metric on \(X\) when \(X\) consists of a single point.


Problem 5. Let d be a metric on X. Determine all constants k such that (i) k*d, (ii) d+k is metric on X.

Given a metric \(d\) on \(X\), let's determine the constants \(k\) for which:

  1. \(k \cdot d\) is a metric on \(X\)

  2. \(d + k\) is a metric on \(X\)

For (i) \(k \cdot d\) to be a metric:

  1. \(k \cdot d(x, y) \geq 0\) for all \(x, y \in X\). This implies \(k \geq 0\).

  2. \(k \cdot d(x, y) = 0\) if and only if \(x = y\). This property is satisfied for all values of \(k\).

  3. Symmetry is automatically satisfied.

  4. The triangle inequality is satisfied for all \(k\).

Thus, for (i), \(k\) can be any non-negative real number.

For (ii) \(d + k\) to be a metric:

  1. \(d(x, y) + k \geq 0\) for all \(x, y \in X\). This implies \(k > 0\).

  2. \(d(x, y) + k = 0\) is never true since \(k > 0\).

  3. Symmetry is automatically satisfied.

  4. The triangle inequality is satisfied for all \(k\).

Thus, for (ii), \(k\) must be strictly positive.


Problem 6. We have a sequence space \(l^{\infty}\) , where every element of X is a complex sequence, i.e., \(x=(\xi_1, \xi_2, ...)\) , and the metric is defined as \(d(x,y)=sup_{j \in \mathbb{N}} |\xi_j - \eta_j|\) . Show that a such defined d(x,y) is really metric.

Consider the sequence space \(l^{\infty}\) where each element of \(X\) is a complex sequence, i.e., \(x = (\xi_1, \xi_2, \ldots)\). The metric is defined as \(d(x,y) = \sup_{j \in \mathbb{N}} |\xi_j - \eta_j|\).

To show that \(d\) is a metric, we need to verify the following properties:

  1. Non-negativity: - \(d(x, y) \geq 0\) for all \(x, y \in X\) and \(d(x, y) = 0\) if and only if \(x = y\).

    • Proof: The absolute value is always non-negative, and if \(d(x, y) = 0\), then \(\xi_j = \eta_j\) for all \(j\). Conversely, if \(x = y\), then \(d(x, y) = 0\).

  2. Symmetry: - \(d(x, y) = d(y, x)\) for all \(x, y \in X\).

    • Proof: \(d(x, y) = \sup_{j \in \mathbb{N}} |\xi_j - \eta_j| = d(y, x)\).

  3. Triangle Inequality: - For all \(x, y, z \in X\), \(d(x, z) \leq d(x, y) + d(y, z)\).

    • Proof: Using the triangle inequality for absolute values, we have \(|\xi_j - \zeta_j| \leq |\xi_j - \eta_j| + |\eta_j - \zeta_j|\). Taking the supremum over all \(j\) gives the desired result.

Given that the distance function \(d\) satisfies all the properties of a metric, we conclude that it is indeed a metric on \(l^{\infty}\).


Problem 7. Determine the Induced Metric on \(A\)

Consider the space \(l^{\infty}\), which consists of all bounded sequences. If \(A\) is a subspace of \(l^{\infty}\) consisting of all sequences of zeros and ones, then the metric of \(l^{\infty}\) induces a metric on \(A\).

For \(d: A \times A \rightarrow \mathbb{R}\) to be a metric, it must satisfy the following properties:

  1. \(d(x, y) \geq 0\) (non-negativity)

  2. \(d(x, y) = 0\) if and only if \(x = y\) (identity of indiscernibles)

  3. \(d(x, y) = d(y, x)\) (symmetry)

  4. \(d(x, z) \leq d(x, y) + d(y, z)\) (triangle inequality)

Definition of the Induced Metric:

For any two sequences \(x, y\) in \(A\), the distance between them in the induced metric is given by: \(d(x,y) = \sup_{j \in \mathbb{N}} |x_j - y_j|\)

However, since each \(x_j\) and \(y_j\) can only be 0 or 1 in \(A\):

  1. Non-negativity: The absolute difference \(|x_j - y_j|\) can only be 0 (if \(x_j = y_j\)) or 1 (if \(x_j \neq y_j\)). Therefore, the supremum will be 0 if the sequences are the same and 1 if they are different at any position.

    Proof: The absolute difference between any two terms of sequences in \(A\) is either 0 or 1. The supremum of a set of non-negative numbers that includes 0 and does not exceed 1 is 1.

  2. Symmetry: For all sequences \(x, y\) in \(A\), \(d(x, y) = d(y, x)\).

    Proof: The order of the terms in the absolute difference does not affect its value, so \(|x_j - y_j| = |y_j - x_j|\).

  3. Triangle Inequality: This needs to be verified for the induced metric on \(A\). Given the nature of sequences in \(A\), the triangle inequality holds.

    Proof: For any three sequences \(x, y, z\) in \(A\), the triangle inequality can be verified by considering the individual terms of the sequences and noting that the sum of the absolute differences for any term does not exceed 1.

In other words, the induced metric on \(A\) is: \(d(x,y) = \begin{cases} 0 & \text{if } x=y \\ 1 & \text{if } x \neq y \end{cases}\)

This is known as the discrete metric. Every pair of distinct sequences in \(A\) is at a distance of 1 from each other, while the distance between a sequence and itself is 0.

Given the properties and proofs outlined above, the induced metric on \(A\) is indeed a metric.


Problem 8. Show that \(\tilde{d}\) defines a metric on the function space \(C[a,b]\)

Consider the function space \(C[a,b]\), which consists of all real-valued continuous functions defined on the closed interval \([a,b]\). Let \(X\) be the set of all such functions, denoted by \(x, y, \dots\), where each function is a mapping from the independent variable \(t\) to the real numbers.

For \(\tilde{d}: X \times X \rightarrow \mathbb{R}\) to be a metric, it must satisfy the following properties:

  1. \(\tilde{d}(x, y) \geq 0\) (non-negativity)

  2. \(\tilde{d}(x, y) = 0\) if and only if \(x = y\) (identity of indiscernibles)

  3. \(\tilde{d}(x, y) = \tilde{d}(y, x)\) (symmetry)

  4. \(\tilde{d}(x, z) \leq \tilde{d}(x, y) + \tilde{d}(y, z)\) (triangle inequality)

Definition of the Metric \(\tilde{d}\):

For any two functions \(x, y\) in \(X\), the distance between them in the metric \(\tilde{d}\) is given by: \(\tilde{d}(x,y) = \int_{a}^{b} |x(t) - y(t)| dt\)

Verification of Metric Properties:

  1. Non-negativity: The absolute value ensures that the integrand is non-negative. Therefore, the integral of a non-negative function is also non-negative.

    Proof: \(\tilde{d}(x,y) = \int_{a}^{b} |x(t) - y(t)| dt \geq 0\)

  2. Identity of indiscernibles: If \(x = y\), then for all \(t \in [a,b]\), \(x(t) = y(t)\), and thus \(|x(t) - y(t)| = 0\). The integral of zero is zero.

    Proof: If \(x = y\), then \(\tilde{d}(x,y) = \int_{a}^{b} 0 dt = 0\)

  3. Symmetry: The absolute value function is symmetric, so swapping \(x\) and \(y\) does not change the value of the integrand.

    Proof: \(\tilde{d}(x,y) = \int_{a}^{b} |x(t) - y(t)| dt = \int_{a}^{b} |y(t) - x(t)| dt = \tilde{d}(y,x)\)

  4. Triangle Inequality: Using the properties of integrals and absolute values, we can show that the triangle inequality holds.

    Proof: For any function \(z\) in \(X\), we have: \(|x(t) - z(t)| \leq |x(t) - y(t)| + |y(t) - z(t)|\)

    Integrating both sides over \([a,b]\), we get: \(\int_{a}^{b} |x(t) - z(t)| dt \leq \int_{a}^{b} |x(t) - y(t)| dt + \int_{a}^{b} |y(t) - z(t)| dt\)

    Thus, \(\tilde{d}(x,z) \leq \tilde{d}(x,y) + \tilde{d}(y,z)\)

Given the properties and proofs outlined above, the function \(\tilde{d}\) does indeed define a metric on the function space \(C[a,b]\).


Problem 10. Hamming Distance. Let X be a set of all ordered triples of zeros and ones. Show that X consists of 8 elements and a metric d on X is defined by d(x,y)=number of places where x and y have a different entries.

Definition of Ordered Triples:

An ordered triple refers to a set of three elements arranged in a specific order. The order of elements in the triple is significant, meaning that the triple (0,1,0) is different from the triple (1,0,0).

Elements of Set X:

Given that each element of the ordered triple can be either a 0 or a 1, we can list all possible ordered triples in set \(X\) as follows:

  1. (0,0,0)

  2. (0,0,1)

  3. (0,1,0)

  4. (0,1,1)

  5. (1,0,0)

  6. (1,0,1)

  7. (1,1,0)

  8. (1,1,1)

Thus, set \(X\) consists of 8 distinct ordered triples.

Definition of the Metric d on X:

For any two ordered triples \(x\) and \(y\) in \(X\), the metric \(d(x,y)\) is defined as the number of positions at which the entries of \(x\) and \(y\) differ.

Example:

Let's consider two ordered triples: \(x = (0,1,0)\) \(y = (1,1,1)\)

Comparing the entries of \(x\) and \(y\) position by position:

  • At the first position: \(x\) has 0 and \(y\) has 1. They are different.

  • At the second position: Both \(x\) and \(y\) have 1. They are the same.

  • At the third position: \(x\) has 0 and \(y\) has 1. They are different.

So, there are 2 positions at which \(x\) and \(y\) have different entries. Therefore, \(d(x,y) = 2\).

In essence, the metric \(d(x,y)\) for the set \(X\) counts the number of "mismatches" between the entries of two ordered triples. The more mismatches there are, the "farther apart" the two ordered triples are considered to be in terms of the metric.

This format should be suitable for Nikola reStructuredText (rst) rendering.

Properties of the Metric d:

To show that \(d\) is a metric, we need to verify the following properties:

  1. Non-negativity: For all \(x, y \in X\), \(d(x, y) \geq 0\).

    Proof: The number of differing positions between two ordered triples is always non-negative.

  2. Identity of Indiscernibles: For all \(x, y \in X\), \(d(x, y) = 0\) if and only if \(x = y\).

    Proof: If \(d(x, y) = 0\), it means there are no differing positions between \(x\) and \(y\), implying \(x = y\).

  3. Symmetry: For all \(x, y \in X\), \(d(x, y) = d(y, x)\).

    Proof: The number of differing positions between \(x\) and \(y\) is the same as the number of differing positions between \(y\) and \(x\).

  4. Triangle Inequality: For all \(x, y, z \in X\), \(d(x, z) \leq d(x, y) + d(y, z)\).

    Proof: Let's consider three ordered triples \(x, y,\) and \(z\) from set \(X\). For each position in the ordered triples:

    • If \(x\) and \(z\) have the same entry, then the contribution to \(d(x, z)\) is 0 for that position.

    • If \(x\) and \(z\) have different entries, then either \(x\) and \(y\) have different entries, or \(y\) and \(z\) have different entries, or both. This means that the sum of the contributions to \(d(x, y)\) and \(d(y, z)\) for that position is at least 1.

    Summing over all positions, we get: \(d(x, z) \leq d(x, y) + d(y, z)\)

    Thus, the triangle inequality is satisfied for the Hamming distance on set \(X\).

Given that the metric \(d\) satisfies all the properties of a metric on \(X\), we can conclude that \(d\) defines a metric on the set \(X\) of all ordered triples of zeros and ones.


Problem 11. Prove

\begin{equation*} d(x_1, x_{k+1}) \leq (d(x_1,x_2) + d(x_2,x_3) + \ldots + d(x_{k-1}, x_k)) + d(x_k, x_{k+1}) \end{equation*}

Given a metric space with metric \(d\), we want to prove that for any sequence of points \(x_1, x_2, \ldots, x_n\) in the space:

\begin{equation*} d(x_1, x_n) \leq d(x_1,x_2) + d(x_2,x_3) + \ldots + d(x_{n-1}, x_n) \end{equation*}

To prove this, we'll use induction on \(n\).

Base Case \(n=2\) For \(n = 2\) , the statement is trivially true as:

\begin{equation*} d(x_1, x_2) \leq d(x_1, x_2) \end{equation*}

Inductive Step Assuming our inductive hypothesis, we have:

\begin{equation*} d(x_1, x_k) \leq d(x_1,x_2) + d(x_2,x_3) + \ldots + d(x_{k-1}, x_k) \end{equation*}

Now, consider the distance between \(x_1\) and \(x_{k+1}\). Using the triangle inequality, we can say:

\begin{equation*} d(x_1, x_{k+1}) \leq d(x_1, x_k) + d(x_k, x_{k+1}) \end{equation*}

Here's the breakdown:

  • \(d(x_1, x_{k+1})\) is the total distance from \(x_1\) to \(x_{k+1}\).

  • \(d(x_1, x_k)\) represents the distance from \(x_1\) to \(x_k\).

  • \(d(x_k, x_{k+1})\) is the distance between the points \(x_k\) and \(x_{k+1}\).

The triangle inequality tells us that the direct path from \(x_1\) to \(x_{k+1}\) is shorter than or equal to the sum of the path from \(x_1\) to \(x_k\) and then from \(x_k\) to \(x_{k+1}\).

Now, using our inductive assumption, we can replace \(d(x_1, x_k)\) with the sum of distances between consecutive points up to \(x_k\):

\begin{equation*} d(x_1, x_{k+1}) \leq (d(x_1,x_2) + d(x_2,x_3) + \ldots + d(x_{k-1}, x_k)) + d(x_k, x_{k+1}) \end{equation*}

This equation essentially states that the direct distance from \(x_1\) to \(x_{k+1}\) is less than or equal to the sum of distances when traveling through all intermediate points up to \(x_{k+1}\).

Thus, our inductive step is complete, and the statement holds for \(n = k+1\).

By the principle of mathematical induction, the statement is true for all positive integers \(n\).

Conclusion

The given inequality is a direct consequence of the triangle inequality, and it holds for any sequence of points in a metric space.

Problem 12.

Given the inequality:

\begin{equation*} d(x_1, x_{k+1}) \leq (d(x_1,x_2) + d(x_2,x_3) + \ldots + d(x_{k-1}, x_k)) + d(x_k, x_{k+1}) \end{equation*}

We aim to prove:

\begin{equation*} |d(x,y) - d(z,w)| \leq d(x,z) + d(y,w) \end{equation*}

Proof

Using the triangle inequality, we have:

\begin{equation*} d(x,y) \leq d(x,z) + d(z,y) \end{equation*}

Similarly:

\begin{equation*} d(z,w) \leq d(z,y) + d(y,w) \end{equation*}

From the first inequality, expressing d(z,y) :

\begin{equation*} d(z,y) \geq d(x,y) - d(x,z) \end{equation*}

Substituting into the second inequality:

\begin{equation*} d(z,w) \leq d(x,y) - d(x,z) + d(y,w) \end{equation*}

Rearranging, we get:

\begin{equation*} d(x,y) - d(z,w) \leq d(x,z) + d(y,w) \end{equation*}

Similarly, by interchanging x and z and y and w , we derive:

\begin{equation*} d(z,w) - d(x,y) \leq d(x,z) + d(y,w) \end{equation*}

Combining the two results:

\begin{equation*} |d(x,y) - d(z,w)| \leq d(x,z) + d(y,w) \end{equation*}

In conclusion, the direct path (straight line) between any two points is always shorter than or equal to the sum of the paths that go through an intermediate point.

This completes the proof.


Problem 13. Using triangle inequality show \(|d(x,z)-d(y,z)|\leq d(x,y)\)

  1. Using the Triangle Inequality:

    We know from the triangle inequality that: \(d(x,z) \leq d(x,y) + d(y,z)\) (1)

    Similarly, we have: \(d(y,z) \leq d(y,x) + d(x,z)\) (2)

  2. Rearranging (1):

    From (1), we can rearrange to get: \(d(x,z) - d(y,z) \leq d(x,y)\) (3)

  3. Rearranging (2):

    From (2), we can rearrange to get: \(d(y,z) - d(x,z) \leq d(x,y)\) (4)

  4. Combining (3) and (4):

    From (3) and (4), we can conclude that: \(-d(x,y) \leq d(x,z) - d(y,z) \leq d(x,y)\)

    This is the definition of the absolute value inequality. Thus, we can rewrite it as: \(|d(x,z) - d(y,z)| \leq d(x,y)\)

And that completes the proof.


Problem 16.

We aim to prove the following inequality using the triangle inequality:

\begin{equation*} d(x,y) \leq d(z,x) + d(z,y) \end{equation*}

Proof

Using the triangle inequality for any three points x , y , and z in a metric space, we have:

\begin{equation*} d(x,y) \leq d(x,z) + d(z,y) \end{equation*}

This states that the distance between x and y is always less than or equal to the sum of the distances from x to z and from z to y .

Thus, the desired inequality is proven:

\begin{equation*} d(x,y) \leq d(z,x) + d(z,y) \end{equation*}

A bit detailed look

The triangle inequality states that for any three points in a metric space, the direct distance between two of them is always less than or equal to the sum of their distances to the third point.

Given three points x , y, and z:

  • The direct distance between x and y is denoted as:

    \begin{equation*} d(x,y) \end{equation*}
  • The sum of their distances to z is:

    \begin{equation*} d(x,z) + d(z,y) \end{equation*}

Using the triangle inequality, we can conclude:

\begin{equation*} d(x,y) \leq d(x,z) + d(z,y) \end{equation*}

This completes the proof.


Problem 14. Show that (M3) and (M4) can be derived from (M2) and (M4).

Proof:

  1. Deriving (M3) from (M2) and (M4):

Given (M2): \(d(x,y) = 0\) if and only if \(x = y\)

Given (M4): \(d(x,y) \leq d(x,z) + d(z,y)\)

To prove (M3): \(d(x,y) = d(y,x)\)

Consider any two points \(x\) and \(y\).

Using (M4) with \(z = x\), we get: \(d(x,y) \leq d(x,x) + d(x,y)\)

But from (M2), \(d(x,x) = 0\). So, \(d(x,y) \leq d(x,y)\)

Similarly, using (M4) with \(z = y\), we get: \(d(y,x) \leq d(y,y) + d(y,x)\)

Again, from (M2), \(d(y,y) = 0\). So, \(d(y,x) \leq d(y,x)\)

Combining the two inequalities, we get: \(d(x,y) = d(y,x)\)

This proves (M3).

  1. Deriving (M4) from (M2) and (M4):

This is trivial since (M4) is already given.

Thus, we have shown that (M3) can be derived from (M2) and (M4).


Problem 15. Show that non-negativity of a metric follows from (M2) to (M4).

Proof:

Given the axioms:

(M2): \(d(x,y) = 0\) if and only if \(x = y\)

(M3): \(d(x,y) = d(y,x)\)

(M4): \(d(x,y) \leq d(x,z) + d(z,y)\)

We aim to prove non-negativity, i.e., \(d(x,y) \geq 0\) for all \(x, y\).

Consider any two points \(x\) and \(y\).

Using (M4) with \(z = x\), we get: \(d(x,y) \leq d(x,x) + d(x,y)\)

From (M2), we know that \(d(x,x) = 0\). Substituting this in, we get: \(d(x,y) \leq d(x,y)\)

Now, using (M3), we have: \(d(y,x) = d(x,y)\)

Using (M4) with \(z = y\), we get: \(d(y,x) \leq d(y,y) + d(y,x)\)

Again, from (M2), \(d(y,y) = 0\). Substituting this in, we get: \(d(y,x) \leq d(y,x)\)

Combining the two inequalities, we get: \(0 \leq d(x,y)\)

This proves the non-negativity of the metric \(d\).

Thus, non-negativity of a metric follows from (M2) to (M4).