Metric Spaces¶
A metric or a distance \(d\) on a nonempty set \(X\) is a function \(d : X \times X \to \RR\) which satisfies following properties
- \(d(x, y) \geq 0 \Forall x, y \in X\) non-negativity axiom [M1];
- \(d(x, y) = 0 \iff x = y\) coincidence axiom [M2];
- \(d(x, y ) = d(y, x) \Forall x, y \in X\) symmetry [M3];
- \(d(x, y) \leq d(x, z) + d(z, y) \Forall x, y, z \in X\) triangle inequality or sub-additivity [M4].
The pair \((X, d)\) is called a metric space.
In a metric space \((X, d)\), the inequality
holds for all points \(x, y, z \in X\).
Interchanging \(x\) and \(y\) we get
Combining the two, we get the result.
We show different metrics for the set of real numbers \(\RR\). Let \(x, y, z \in \RR\). Define:
Since the absolute value of any real number is non-negative, M1 is satisfied.
\(| x- y | = 0 \iff x - y = 0 \iff x = y\). Thus, M2 is satisfied.
Now,
Thus, M3 is satisfied.
Finally,
Thus, M4 is satisfied and \((\RR, d_1)\) is a metric space.
We consider metrics defined on \(\RR^n\) (the set of n-tuples).
Let \(x = (x_1, \dots, x_n) \in \RR^n\) and \(y = (y_1, \dots, y_n) \in \RR^n\).
The taxicab metric is defined as
The Euclidean metric is defined as
The general Euclidean metric is defined as
For \(p = \infty\), metric is defined as
We now prove that above are indeed a metric. We start with taxicab metric. M1 is straightforward since
M2 is also easy
M3 is straightforward too
We will prove M4 (triangle inequality) inductively. For \(n=1\)
Thus M1 is true for \(n=1\).
TODO finish it.
Open sets¶
Let \((X, d)\) be a metric space. An open ball at any \(x \in X\) with radius \(r > 0\) is the set
Let \(A = B(x, r)\). We need to show that for for every \(y \in A\) there exists an open ball \(B(y, r_1) \subseteq A\).
Let \(r_1 = r - d(x, y)\). Since \(d(x, y) < r \forall y \in A\), hence \(r_1 > 0\). We can also write \(d(x, y) = r - r_1\). Consider \(C = B(y, r_1)\). For any \(z \in C\) we have \(d(y, z) < r_1\). Further using triangle inequality:
Thus \(z \in B(x, r) \Forall z \in C\), hence \(C \subseteq B(x, r)\). Hence \(B(x, r)\) is open.
For a metric space \((X, d)\) following statements hold
- \(X\) and \(\EmptySet\) are open sets.
- Arbitrary unions of open sets are open sets.
- Finite intersections of open sets are open sets.
Since \(\EmptySet\) doesn’t contain any element hence (i) is vacuously true for \(\EmptySet\). For any \(x \in X\) and any \(r > 0\), \(B(x, r) \subseteq X\) by definition. Hence \(X\) is open.
Let \(\{A_i\}_{i \in I}\) be an arbitrary family of open sets with \(A_i \subseteq X\). Let \(C = \bigcup A_i\). Let \(x \in C\). Then there exists some \(A_i\) such that \(x \in A_i\). Since \(A_i\) is open hence there exists an open ball \(B(x, r) \subseteq A_i \subseteq C\). Thus for every \(x \in C\) there exists an open ball \(B(x, r) \subseteq C\). Hence \(C\) is open.
Let \(\{A_1, \dots, A_n\}\) be a finite collection of open subsets of \(X\). Let \(C = \bigcap A_i\). Let \(x \in C\). Then \(x \in A_i \Forall 1 \leq i \leq n\). Thus there exists an open ball \(B(x, r_i) \subseteq A_i \Forall 1 \leq i \leq n\). Now let \(r = \min(r_1, \dots, r_n)\). Since \(r_i > 0\) and we are taking a minimum over finite set of numbers hence \(r > 0\). Thus \(B(x, r) \subseteq B(x, r_i) \subseteq A_i \Forall 1 \leq i \leq n\). Thus \(B(x, r) \subseteq C\). Thus C is open.
We need to show that for every \(x \in \Interior{A}\), there exists an open ball \(B(x, r) \subseteq \Interior{A}\).
Let \(x \in \Interior{A}\). Then there exists an open ball \(B(x, r) \subseteq A\). Since \(B( x, r)\) is open hence for every \(y \in B (x, r)\) there exists an open ball \(B (y , r_1) \subseteq B(x, r) \subseteq A\). Thus \(y\) is an interior point of \(A\). Hence \(B(x, r) \subseteq \Interior{A}\).
Let \(A\) be open. Hence for every \(x \in A\), there exists an open ball \(B(x, r) \subseteq A\). Thus \(x\) is an interior point of \(A\). Thus \(A \subseteq \Interior{A}\). But since \(\Interior{A} \subseteq A\), hence \(\Interior{A} = A\).
Now the converse. Let \(\Interior{A} = A\). Thus for every point \(x \in A\), there exists an open ball \(B(x, r) \subseteq A\) since \(x \in \Interior{A}\). Hence \(A\) is open.
Closed sets¶
For a metric space \((X, d)\) the following statements hold:
- \(X\) and \(\EmptySet\) are closed sets.
- Arbitrary intersections of closed sets are closed sets.
- Finite unions of closed sets are closed sets.
Since \(\EmptySet\) is open hence \(X = X \setminus \EmptySet\) is closed. Since \(X\) is open hence \(\EmptySet = X \setminus X\) is closed.
Let \(\{A_i\}_{i \in I}\) be an arbitrary family of closed sets with \(A_i \subseteq X\). Then \(A_i^c\) are open. Thus \(\bigcup A_i^c\) is open. Thus \(\left ( \bigcup A_i^c \right )^c\) is closed. By De Morgan’s law, \(\bigcap A_i\) is closed.
Let \(\{A_1, \dots, A_n\}\) be a finite collection of closed subsets of \(X\). Then \(A_i^c\) are open. Hence their finite intersection \(\bigcap A_i^c\) is open. Hence \(\left ( \bigcap A_i^c \right )^c\) is closed. By De Morgan’s law, \(\bigcup A_i\) is closed.
Note that a closure point of \(A\) need not belong to \(A\). At the same time, every point in \(A\) is a closure point of \(A\).
Clearly \(A \subseteq \Closure{A}\).
We will show that \(C = \Closure{A}^c\) is open.
Let \(x \in C\). Then \(x\) is not a closure point of \(A\). Hence, there exists an open ball \(B(x, r)\) such that \(B(x, r) \cap A = \EmptySet\). Now, consider \(z \in B (x, r)\). Since \(B(x, r)\) is open, there exists \(r_1 > 0\) such that \(B (z, r_1) \subseteq B(x, r)\). Thus, \(B (z, r_1) \cap A = \EmptySet\). Hence, \(z\) is not a closure point of \(A\). Hence, \(z \in C\). Thus, \(B( x, r) \subseteq C\). Thus, we have shown that for every \(x \in C\), there exists an open ball \(B(x, r) \subseteq C\). Thus, \(C\) is open. Consequently, \(\Closure{A} = C^c\) is closed.
Let \(A\) be closed. Then, \(\Closure{A} \subseteq A\) due to this. But since \(A \subseteq \Closure{A}\), hence, \(A = \Closure{A}\).
Now assume \(A = \Closure{A}\). Since \(\Closure{A}\) is closed, \(A\) is closed.
We show that \(A^c\) is open.
Let \(y \in A^c\). Then \(d(y, a) > r\). Now consider \(r_1 = d(y, a) - r > 0\) and an open ball \(B(y, r_1)\). For any \(z \in B(y, r_1)\)
Thus, \(z \in A^c\). Hence, \(B(y, r_1) \subseteq A^c\). Hence, \(A^c\) is open. Thus, \(A\) is closed.
Any point \(y : d(x, y) < r\) is obviously a closure point of \(B (x, r)\).
We show that a point \(y : d(x, y) = r\) is a closure point of \(B (x, r)\). For contradiction, suppose \(y\) is not a closure point of \(B (x, r)\). Then, there exists an open ball \(B(y, r_1)\) such that \(B (y, r_1) \cap B (x, r) = \EmptySet\).
We show that a point \(y : d(x, y) > r\) is not a closure point of \(B (x, r)\). Let \(r_1 = d(x, y) -r > 0\). Then, \(B ( y, r_1) \cap B (x, r) = \EmptySet\). Hence \(y\) is not a closure point of \(B (x, r)\).