Definition 7.2.1. In a metric space (X, d), the open ball (ball) of radius
δ > 0 around x is B(x, δ) = { y ∈ X | d(x, y) < δ }, and the closed ball is
C(x, δ) = { y ∈ X | d(x, y) ≤ δ }.
Instances For
Closed ball with center x and radius δ.
Instances For
The book's open ball agrees with Metric.ball.
The book's closed ball agrees with Metric.closedBall.
Example 7.2.3. In the subspace [0, 1] ⊆ ℝ, the open ball of radius
1/2 around 0 consists of those points of [0, 1] whose underlying real
coordinate is < 1/2, so it differs from the ambient ball
(-1/2, 1/2) ⊆ ℝ.
Definition 7.2.4. In a metric space (X, d), a subset V ⊆ X is open if
for every x ∈ V there exists δ > 0 such that the ball B(x, δ) is contained
in V. A subset E ⊆ X is closed if its complement X \ E is open. If x ∈ V
and V is open, then V is an open (or simply a) neighborhood of x.
Equations
- IsOpenMetric V = ∀ x ∈ V, ∃ δ > 0, Metric.ball x δ ⊆ V
Instances For
A set is closed in the metric sense if its complement is open.
Equations
Instances For
The book's notion of an open set agrees with the topological notion coming from the metric space structure.
The book's notion of a closed set agrees with IsClosed.
An open set in the metric sense is a neighborhood of each of its points.
Example 7.2.5. Basic examples of open and closed subsets of ℝ and
singletons in metric spaces: (0, ∞) is open; [0, ∞) is closed; [0, 1) is
neither open nor closed; singletons are closed in any metric space, but need
not be open (e.g. {0} ⊂ ℝ), while in a one-point metric space {x} is open.
Proposition 7.2.6. In a metric space (X, d): (i) ∅ and the whole space
X are open; (ii) a finite intersection of open sets is open; (iii) an
arbitrary union of open sets is open.
Proposition 7.2.8. In a metric space (X, d): (i) ∅ and X are closed;
an arbitrary intersection of closed sets is closed; a finite union of closed
sets is closed.
Proposition 7.2.9. In a metric space (X, d), for any center x and
radius δ > 0, the open ball B(x, δ) is open and the closed ball C(x, δ)
is closed.
Proposition 7.2.10. If a < b in ℝ, then the intervals (a, b), (a, ∞)
and (-∞, b) are open in ℝ, while [a, b], [a, ∞) and (-∞, b] are closed
in ℝ.
Proposition 7.2.11. For a metric space (X, d) and subset Y ⊆ X, a subset
U ⊆ Y is open in the subspace topology if and only if there exists an open
V ⊆ X with V ∩ Y = U.
Proposition 7.2.12. In a metric space (X, d), if V ⊆ X is open and
E ⊆ X is closed, then:
(i) a subset U ⊆ V is open in the subspace topology on V iff U is open in
X;
(ii) a subset F ⊆ E is closed in the subspace topology on E iff F is
closed in X.
Definition 7.2.13. A nonempty metric space (X, d) is connected if the only
clopen subsets are ∅ and the whole space. A nonempty space that is not
connected is called disconnected. A nonempty subset A ⊆ X is connected when it
is connected with the subspace topology.
Equations
Instances For
The book's notion of a connected metric space agrees with
ConnectedSpace.
A subset is connected in the book's sense when it is connected with the subspace topology.
Equations
Instances For
Proposition 7.2.14. A nonempty subset S of a metric space is disconnected
iff there are open sets U₁ and U₂ in the ambient space such that
U₁ ∩ U₂ ∩ S = ∅, both intersections U₁ ∩ S and U₂ ∩ S are nonempty, and
S = (U₁ ∩ S) ∪ (U₂ ∩ S).
Proposition 7.2.16. A nonempty subset of ℝ is connected if and only if it
is an interval or a single point.
Equations
- discretePseudoMetricSpaceBool = PseudoMetricSpace.induced (fun (b : Bool) => if b = true then 1 else 0) inferInstance
Instances For
Instances For
Instances For
Example 7.2.17. In a two point space with the discrete metric, the ball of
radius 2 around one point is the whole space, which splits into two disjoint
open singletons and is therefore not connected.
The closure defined as the intersection of closed supersets agrees with the topological closure.
Proposition 7.2.22. In a metric space (X, d) and subset A ⊆ X, a point
x lies in the closure Ā if and only if every open ball around x meets
A, that is, B(x, δ) ∩ A ≠ ∅ for all δ > 0.
Definition 7.2.23. In a metric space (X, d) and a subset A ⊆ X, the
interior of A is the set of points x ∈ A for which there exists δ > 0
with B(x, δ) ⊆ A. The boundary of A is ∂A = \overline{A} \setminus Aᵒ.
Equations
- metricInterior A = {x : X | x ∈ A ∧ ∃ δ > 0, Metric.ball x δ ⊆ A}
Instances For
The metric description of the interior agrees with the topological interior coming from the metric space structure.
The boundary of a subset is its closure minus its interior.
Equations
- metricBoundary A = closure A \ metricInterior A
Instances For
The boundary defined via closure and interior agrees with the topological frontier.
Proposition 7.2.26. In a metric space, the interior of any subset is open and the boundary is closed.
Proposition 7.2.26. For a subset A of a metric space, the interior Aᵒ
is open and the boundary ∂A is closed.
Proposition 7.2.27. A point x lies in the boundary ∂A of a subset A
of a metric space if and only if every open ball around x meets both A and
its complement.