The areas / V13. General topology
Mathlib.Topology.MetricSpace.PiNat
109 declarations. Mathlib docs · Source
Topological study of spaces Π (n : ℕ), E n
When E n are topological spaces, the space Π (n : ℕ), E n is naturally a topological space
(with the product topology). When E n are uniform spaces, it also inherits a uniform structure.
However, it does not inherit a canonical metric space structure of the E n. Nevertheless, one
can put a noncanonical metric space structure (or rather, several of them). This is done in this
file.
Main definitions and results
One can define a combinatorial distance on Π (n : ℕ), E n, as follows:
PiNat.cylinder x nis the set of pointsywithx i = y ifori < n.PiNat.firstDiff x yis the first index at whichx i ≠ y i.PiNat.dist x yis equal to(1/2) ^ (firstDiff x y). It defines a distance onΠ (n : ℕ), E n, compatible with the topology when theE nhave the discrete topology.PiNat.metricSpace: the metric space structure, given by this distance. Not registered as an instance. This space is a complete metric space.PiNat.metricSpaceOfDiscreteUniformity: the same metric space structure, but adjusting the uniformity defeqness when theE nalready have the discrete uniformity. Not registered as an instancePiNat.metricSpaceNatNat: the particular case ofℕ → ℕ, not registered as an instance.
These results are used to construct continuous functions on Π n, E n:
PiNat.exists_retraction_of_isClosed: given a nonempty closed subsetsofΠ (n : ℕ), E n, there exists a retraction ontos, i.e., a continuous map from the whole space tosrestricting to the identity ons.exists_nat_nat_continuous_surjective_of_completeSpace: given any nonempty complete metric space with second-countable topology, there exists a continuous surjection fromℕ → ℕonto this space.
One can also put distances on Π (i : ι), E i when the spaces E i are metric spaces (not discrete
in general), and ι is countable.
PiCountable.distis the distance onΠ i, E igiven bydist x y = ∑' i, min (1/2)^(encode i) (dist (x i) (y i)).PiCountable.metricSpaceis the corresponding metric space structure, adjusted so that the uniformity is definitionally the product uniformity. Not registered as an instance.PiNatEmbedgives an equivalence between a space and itself in a sequence of spacesMetric.PiNatEmbed.metricSpaceproves that a topologicalXseparated by countably many continuous functions to metric spaces, can be embedded inside their product.
The firstDiff function
Cylinders
A distance function on Π n, E n
We define a distance function on Π n, E n, given by dist x y = (1/2)^n where n is the first
index at which x and y differ. When each E n has the discrete topology, this distance will
define the right topology on the product space. We do not record a global Dist instance nor
a MetricSpace instance, as other distances may be used on these spaces, but we register them as
local instances in this section.
Retractions inside product spaces
We show that, in a space Π (n : ℕ), E n where each E n is discrete, there is a retraction on
any closed nonempty subset s, i.e., a continuous map f from the whole space to s restricting
to the identity on s. The map f is defined as follows. For x ∈ s, let f x = x. Otherwise,
consider the longest prefix w that x shares with an element of s, and let f x = z_w
where z_w is an element of s starting with w.
Products of (possibly non-discrete) metric spaces
Embedding a countably separated space inside a space of sequences
def Metric.PiNatEmbed.ctorIdx E1 #
{ι : Type u_2} → {X : Type u_5} → {Y : ι → Type u_6} → {f : (i : ι) → X → Y i} → Metric.PiNatEmbed X Y f → ℕ
theorem Metric.PiNatEmbed.distDenseSeq.congr_simp E1 #
∀ (X : Type u_3) [inst : MetricSpace X] [inst_1 : TopologicalSpace.SeparableSpace X] (n n_1 : ℕ),
n = n_1 → ∀ (x x_1 : X), x = x_1 → Metric.PiNatEmbed.distDenseSeq X n x = Metric.PiNatEmbed.distDenseSeq X n_1 x_1
theorem Metric.PiNatEmbed.toPiNat.inj E1 #
∀ {ι : Type u_2} {X : Type u_5} {Y : ι → Type u_6} {f : (i : ι) → X → Y i} {ofPiNat ofPiNat_1 : X},
{ ofPiNat := ofPiNat } = { ofPiNat := ofPiNat_1 } → ofPiNat = ofPiNat_1
theorem Metric.PiNatEmbed.toPiNat.injEq E0 #
∀ {ι : Type u_2} {X : Type u_5} {Y : ι → Type u_6} {f : (i : ι) → X → Y i} (ofPiNat ofPiNat_1 : X),
({ ofPiNat := ofPiNat } = { ofPiNat := ofPiNat_1 }) = (ofPiNat = ofPiNat_1)
def PiNat.firstDiff E1 #
{E : ℕ → Type u_1} → ((n : ℕ) → E n) → ((n : ℕ) → E n) → ℕ
In a product space Π n, E n, then firstDiff x y is the first index at which x and y
differ. If x = y, then by convention we set firstDiff x x = 0.
theorem PiNat.firstDiff_def E0 #
∀ {E : ℕ → Type u_1} (x y : (n : ℕ) → E n), PiNat.firstDiff x y = if h : x ≠ y then Nat.find ⋯ else 0
theorem PiNat.apply_firstDiff_ne E1 #
∀ {E : ℕ → Type u_1} {x y : (n : ℕ) → E n}, x ≠ y → x (PiNat.firstDiff x y) ≠ y (PiNat.firstDiff x y)
theorem PiNat.apply_eq_of_lt_firstDiff E1 #
∀ {E : ℕ → Type u_1} {x y : (n : ℕ) → E n} {n : ℕ}, n < PiNat.firstDiff x y → x n = y n
theorem PiNat.firstDiff_comm E1 #
∀ {E : ℕ → Type u_1} (x y : (n : ℕ) → E n), PiNat.firstDiff x y = PiNat.firstDiff y x
theorem PiNat.min_firstDiff_le E1 #
∀ {E : ℕ → Type u_1} (x y z : (n : ℕ) → E n),
x ≠ z → min (PiNat.firstDiff x y) (PiNat.firstDiff y z) ≤ PiNat.firstDiff x z
def PiNat.cylinder E1 #
{E : ℕ → Type u_1} → ((n : ℕ) → E n) → ℕ → Set ((n : ℕ) → E n)
In a product space Π n, E n, the cylinder set of length n around x, denoted
cylinder x n, is the set of sequences y that coincide with x on the first n symbols, i.e.,
such that y i = x i for all i < n.
theorem PiNat.cylinder_eq_pi E1 #
∀ {E : ℕ → Type u_1} (x : (n : ℕ) → E n) (n : ℕ), PiNat.cylinder x n = (↑(Finset.range n)).pi fun i ↦ {x i}
theorem PiNat.cylinder_zero E0 #
∀ {E : ℕ → Type u_1} (x : (n : ℕ) → E n), PiNat.cylinder x 0 = Set.univ
theorem PiNat.cylinder_anti E1 #
∀ {E : ℕ → Type u_1} (x : (n : ℕ) → E n) {m n : ℕ}, m ≤ n → PiNat.cylinder x n ⊆ PiNat.cylinder x m
theorem PiNat.mem_cylinder_iff E0 #
∀ {E : ℕ → Type u_1} {x y : (n : ℕ) → E n} {n : ℕ}, y ∈ PiNat.cylinder x n ↔ ∀ i < n, y i = x i
theorem PiNat.self_mem_cylinder E1 #
∀ {E : ℕ → Type u_1} (x : (n : ℕ) → E n) (n : ℕ), x ∈ PiNat.cylinder x n
theorem PiNat.mem_cylinder_iff_eq E0 #
∀ {E : ℕ → Type u_1} {x y : (n : ℕ) → E n} {n : ℕ}, y ∈ PiNat.cylinder x n ↔ PiNat.cylinder y n = PiNat.cylinder x n
theorem PiNat.mem_cylinder_comm E0 #
∀ {E : ℕ → Type u_1} (x y : (n : ℕ) → E n) (n : ℕ), y ∈ PiNat.cylinder x n ↔ x ∈ PiNat.cylinder y n
theorem PiNat.mem_cylinder_iff_le_firstDiff E0 #
∀ {E : ℕ → Type u_1} {x y : (n : ℕ) → E n}, x ≠ y → ∀ (i : ℕ), x ∈ PiNat.cylinder y i ↔ i ≤ PiNat.firstDiff x y
theorem PiNat.mem_cylinder_firstDiff E0 #
∀ {E : ℕ → Type u_1} (x y : (n : ℕ) → E n), x ∈ PiNat.cylinder y (PiNat.firstDiff x y)
theorem PiNat.cylinder_eq_cylinder_of_le_firstDiff E1 #
∀ {E : ℕ → Type u_1} (x y : (n : ℕ) → E n) {n : ℕ}, n ≤ PiNat.firstDiff x y → PiNat.cylinder x n = PiNat.cylinder y n
theorem PiNat.iUnion_cylinder_update E1 #
∀ {E : ℕ → Type u_1} (x : (n : ℕ) → E n) (n : ℕ),
⋃ k, PiNat.cylinder (Function.update x n k) (n + 1) = PiNat.cylinder x n
theorem PiNat.update_mem_cylinder E1 #
∀ {E : ℕ → Type u_1} (x : (n : ℕ) → E n) (n : ℕ) (y : E n), Function.update x n y ∈ PiNat.cylinder x n
def PiNat.res E1 #
{α : Type u_2} → (ℕ → α) → ℕ → List α
In the case where E has constant value α,
the cylinder cylinder x n can be identified with the element of List α
consisting of the first n entries of x. See cylinder_eq_res.
We call this list res x n, the restriction of x to n.
theorem PiNat.res_zero E0 #
∀ {α : Type u_2} (x : ℕ → α), PiNat.res x 0 = []
theorem PiNat.res_succ E0 #
∀ {α : Type u_2} (x : ℕ → α) (n : ℕ), PiNat.res x n.succ = x n :: PiNat.res x n
theorem PiNat.res_length E0 #
∀ {α : Type u_2} (x : ℕ → α) (n : ℕ), (PiNat.res x n).length = n
theorem PiNat.res_eq_res E1 #
∀ {α : Type u_2} {x y : ℕ → α} {n : ℕ}, PiNat.res x n = PiNat.res y n ↔ ∀ ⦃m : ℕ⦄, m < n → x m = y m
The restrictions of x and y to n are equal if and only if x m = y m for all m < n.
theorem PiNat.res_injective E1 #
∀ {α : Type u_2}, Function.Injective PiNat.res
theorem PiNat.cylinder_eq_res E1 #
∀ {α : Type u_2} (x : ℕ → α) (n : ℕ), PiNat.cylinder x n = {y | PiNat.res y n = PiNat.res x n}
cylinder x n is equal to the set of sequences y with the same restriction to n as x.
def PiNat.dist E1 #
{E : ℕ → Type u_1} → Dist ((n : ℕ) → E n)
The distance function on a product space Π n, E n, given by dist x y = (1/2)^n where n is
the first index at which x and y differ.
theorem PiNat.dist_eq_of_ne E1 #
∀ {E : ℕ → Type u_1} {x y : (n : ℕ) → E n}, x ≠ y → dist x y = (1 / 2) ^ PiNat.firstDiff x y
theorem PiNat.dist_self E1 #
∀ {E : ℕ → Type u_1} (x : (n : ℕ) → E n), dist x x = 0
theorem PiNat.dist_comm E1 #
∀ {E : ℕ → Type u_1} (x y : (n : ℕ) → E n), dist x y = dist y x
theorem PiNat.dist_nonneg E1 #
∀ {E : ℕ → Type u_1} (x y : (n : ℕ) → E n), 0 ≤ dist x y
theorem PiNat.dist_le_one E1 #
∀ {E : ℕ → Type u_1} (x y : (n : ℕ) → E n), dist x y ≤ 1
theorem PiNat.dist_triangle_nonarch E1 #
∀ {E : ℕ → Type u_1} (x y z : (n : ℕ) → E n), dist x z ≤ max (dist x y) (dist y z)
theorem PiNat.dist_triangle E1 #
∀ {E : ℕ → Type u_1} (x y z : (n : ℕ) → E n), dist x z ≤ dist x y + dist y z
theorem PiNat.mem_cylinder_iff_dist_le E0 #
∀ {E : ℕ → Type u_1} {x y : (n : ℕ) → E n} {n : ℕ}, y ∈ PiNat.cylinder x n ↔ dist y x ≤ (1 / 2) ^ n
theorem PiNat.apply_eq_of_dist_lt E1 #
∀ {E : ℕ → Type u_1} {x y : (n : ℕ) → E n} {n : ℕ}, dist x y < (1 / 2) ^ n → ∀ {i : ℕ}, i ≤ n → x i = y i
theorem PiNat.lipschitz_with_one_iff_forall_dist_image_le_of_mem_cylinder E1 #
∀ {E : ℕ → Type u_1} {α : Type u_2} [inst : PseudoMetricSpace α] {f : ((n : ℕ) → E n) → α},
(∀ (x y : (n : ℕ) → E n), dist (f x) (f y) ≤ dist x y) ↔
∀ (x y : (n : ℕ) → E n) (n : ℕ), y ∈ PiNat.cylinder x n → dist (f x) (f y) ≤ (1 / 2) ^ n
A function to a pseudo-metric-space is 1-Lipschitz if and only if points in the same cylinder
of length n are sent to points within distance (1/2)^n.
Not expressed using LipschitzWith as we don't have a metric space structure
theorem PiNat.isOpen_cylinder E1 #
∀ (E : ℕ → Type u_1) [inst : (n : ℕ) → TopologicalSpace (E n)] [∀ (n : ℕ), DiscreteTopology (E n)] (x : (n : ℕ) → E n)
(n : ℕ), IsOpen (PiNat.cylinder x n)
theorem PiNat.isTopologicalBasis_cylinders E1 #
∀ (E : ℕ → Type u_1) [inst : (n : ℕ) → TopologicalSpace (E n)] [∀ (n : ℕ), DiscreteTopology (E n)],
TopologicalSpace.IsTopologicalBasis {s | ∃ x n, s = PiNat.cylinder x n}
theorem PiNat.isOpen_iff_dist E1 #
∀ {E : ℕ → Type u_1} [inst : (n : ℕ) → TopologicalSpace (E n)] [∀ (n : ℕ), DiscreteTopology (E n)]
(s : Set ((n : ℕ) → E n)), IsOpen s ↔ ∀ x ∈ s, ∃ ε > 0, ∀ (y : (n : ℕ) → E n), dist x y < ε → y ∈ s
def PiNat.metricSpace E1 #
{E : ℕ → Type u_1} →
[inst : (n : ℕ) → TopologicalSpace (E n)] → [∀ (n : ℕ), DiscreteTopology (E n)] → MetricSpace ((n : ℕ) → E n)
Metric space structure on Π (n : ℕ), E n when the spaces E n have the discrete topology,
where the distance is given by dist x y = (1/2)^n, where n is the smallest index where x and
y differ. Not registered as a global instance by default.
Warning: this definition makes sure that the topology is defeq to the original product topology,
but it does not take care of a possible uniformity. If the E n have a uniform structure, then
there will be two non-defeq uniform structures on Π n, E n, the product one and the one coming
from the metric structure. In this case, use metricSpaceOfDiscreteUniformity instead.
def PiNat.metricSpaceOfDiscreteUniformity E1 #
{E : ℕ → Type u_2} →
[inst : (n : ℕ) → UniformSpace (E n)] →
(∀ (n : ℕ), uniformity (E n) = Filter.principal SetRel.id) → MetricSpace ((n : ℕ) → E n)
Metric space structure on Π (n : ℕ), E n when the spaces E n have the discrete uniformity,
where the distance is given by dist x y = (1/2)^n, where n is the smallest index where x and
y differ. Not registered as a global instance by default.
def PiNat.metricSpaceNatNat E1 #
MetricSpace (ℕ → ℕ)
Metric space structure on ℕ → ℕ where the distance is given by dist x y = (1/2)^n,
where n is the smallest index where x and y differ.
Not registered as a global instance by default.
theorem PiNat.completeSpace E1 #
∀ {E : ℕ → Type u_1} [inst : (n : ℕ) → TopologicalSpace (E n)] [inst_1 : ∀ (n : ℕ), DiscreteTopology (E n)],
CompleteSpace ((n : ℕ) → E n)
theorem PiNat.boundedSpace E1 #
∀ {E : ℕ → Type u_1} [inst : (n : ℕ) → TopologicalSpace (E n)] [inst_1 : ∀ (n : ℕ), DiscreteTopology (E n)],
BoundedSpace ((n : ℕ) → E n)
theorem PiNat.exists_disjoint_cylinder E1 #
∀ {E : ℕ → Type u_1} [inst : (n : ℕ) → TopologicalSpace (E n)] [∀ (n : ℕ), DiscreteTopology (E n)]
{s : Set ((n : ℕ) → E n)}, IsClosed s → ∀ {x : (n : ℕ) → E n}, x ∉ s → ∃ n, Disjoint s (PiNat.cylinder x n)
def PiNat.shortestPrefixDiff E1 #
{E : ℕ → Type u_2} → ((n : ℕ) → E n) → Set ((n : ℕ) → E n) → ℕ
Given a point x in a product space Π (n : ℕ), E n, and s a subset of this space, then
shortestPrefixDiff x s if the smallest n for which there is no element of s having the same
prefix of length n as x. If there is no such n, then use 0 by convention.
theorem PiNat.firstDiff_lt_shortestPrefixDiff E1 #
∀ {E : ℕ → Type u_1} [inst : (n : ℕ) → TopologicalSpace (E n)] [∀ (n : ℕ), DiscreteTopology (E n)]
{s : Set ((n : ℕ) → E n)},
IsClosed s → ∀ {x y : (n : ℕ) → E n}, x ∉ s → y ∈ s → PiNat.firstDiff x y < PiNat.shortestPrefixDiff x s
theorem PiNat.shortestPrefixDiff_pos E1 #
∀ {E : ℕ → Type u_1} [inst : (n : ℕ) → TopologicalSpace (E n)] [∀ (n : ℕ), DiscreteTopology (E n)]
{s : Set ((n : ℕ) → E n)}, IsClosed s → s.Nonempty → ∀ {x : (n : ℕ) → E n}, x ∉ s → 0 < PiNat.shortestPrefixDiff x s
def PiNat.longestPrefix E1 #
{E : ℕ → Type u_2} → ((n : ℕ) → E n) → Set ((n : ℕ) → E n) → ℕ
Given a point x in a product space Π (n : ℕ), E n, and s a subset of this space, then
longestPrefix x s if the largest n for which there is an element of s having the same
prefix of length n as x. If there is no such n, use 0 by convention.
theorem PiNat.firstDiff_le_longestPrefix E1 #
∀ {E : ℕ → Type u_1} [inst : (n : ℕ) → TopologicalSpace (E n)] [∀ (n : ℕ), DiscreteTopology (E n)]
{s : Set ((n : ℕ) → E n)},
IsClosed s → ∀ {x y : (n : ℕ) → E n}, x ∉ s → y ∈ s → PiNat.firstDiff x y ≤ PiNat.longestPrefix x s
theorem PiNat.inter_cylinder_longestPrefix_nonempty E1 #
∀ {E : ℕ → Type u_1} [inst : (n : ℕ) → TopologicalSpace (E n)] [∀ (n : ℕ), DiscreteTopology (E n)]
{s : Set ((n : ℕ) → E n)},
IsClosed s → s.Nonempty → ∀ (x : (n : ℕ) → E n), (s ∩ PiNat.cylinder x (PiNat.longestPrefix x s)).Nonempty
theorem PiNat.disjoint_cylinder_of_longestPrefix_lt E1 #
∀ {E : ℕ → Type u_1} [inst : (n : ℕ) → TopologicalSpace (E n)] [∀ (n : ℕ), DiscreteTopology (E n)]
{s : Set ((n : ℕ) → E n)},
IsClosed s → ∀ {x : (n : ℕ) → E n}, x ∉ s → ∀ {n : ℕ}, PiNat.longestPrefix x s < n → Disjoint s (PiNat.cylinder x n)
theorem PiNat.cylinder_longestPrefix_eq_of_longestPrefix_lt_firstDiff E1 #
∀ {E : ℕ → Type u_1} [inst : (n : ℕ) → TopologicalSpace (E n)] [∀ (n : ℕ), DiscreteTopology (E n)] {x y : (n : ℕ) → E n}
{s : Set ((n : ℕ) → E n)},
IsClosed s →
s.Nonempty →
PiNat.longestPrefix x s < PiNat.firstDiff x y →
x ∉ s → y ∉ s → PiNat.cylinder x (PiNat.longestPrefix x s) = PiNat.cylinder y (PiNat.longestPrefix y s)
If two points x, y coincide up to length n, and the longest common prefix of x with s
is strictly shorter than n, then the longest common prefix of y with s is the same, and both
cylinders of this length based at x and y coincide.
theorem PiNat.exists_lipschitz_retraction_of_isClosed E1 #
∀ {E : ℕ → Type u_1} [inst : (n : ℕ) → TopologicalSpace (E n)] [inst_1 : ∀ (n : ℕ), DiscreteTopology (E n)]
{s : Set ((n : ℕ) → E n)}, IsClosed s → s.Nonempty → ∃ f, (∀ x ∈ s, f x = x) ∧ Set.range f = s ∧ LipschitzWith 1 f
Given a closed nonempty subset s of Π (n : ℕ), E n, there exists a Lipschitz retraction
onto this set, i.e., a Lipschitz map with range equal to s, equal to the identity on s.
theorem PiNat.exists_retraction_of_isClosed E1 #
∀ {E : ℕ → Type u_1} [inst : (n : ℕ) → TopologicalSpace (E n)] [∀ (n : ℕ), DiscreteTopology (E n)]
{s : Set ((n : ℕ) → E n)}, IsClosed s → s.Nonempty → ∃ f, (∀ x ∈ s, f x = x) ∧ Set.range f = s ∧ Continuous f
Given a closed nonempty subset s of Π (n : ℕ), E n, there exists a retraction onto this
set, i.e., a continuous map with range equal to s, equal to the identity on s.
theorem PiNat.exists_retraction_subtype_of_isClosed E1 #
∀ {E : ℕ → Type u_1} [inst : (n : ℕ) → TopologicalSpace (E n)] [∀ (n : ℕ), DiscreteTopology (E n)]
{s : Set ((n : ℕ) → E n)},
IsClosed s → s.Nonempty → ∃ f, (∀ (x : ↑s), f ↑x = x) ∧ Function.Surjective f ∧ Continuous f
theorem exists_nat_nat_continuous_surjective_of_completeSpace E1 #
∀ (α : Type u_2) [inst : MetricSpace α] [CompleteSpace α] [SecondCountableTopology α] [Nonempty α],
∃ f, Continuous f ∧ Function.Surjective f
Any nonempty complete second countable metric space is the continuous image of the
fundamental space ℕ → ℕ. For a version of this theorem in the context of Polish spaces, see
exists_nat_nat_continuous_surjective_of_polishSpace.
def PiCountable.edist E1 #
{ι : Type u_2} → [Encodable ι] → {F : ι → Type u_3} → [(i : ι) → EDist (F i)] → EDist ((i : ι) → F i)
Given a countable family of extended metric spaces,
one may put an extended distance on their product Π i, E i.
It is highly non-canonical, though, and therefore not registered as a global instance.
The distance we use here is edist x y = ∑' i, min (1/2)^(encode i) (edist (x i) (y i)).
theorem PiCountable.edist_eq_tsum E1 #
∀ {ι : Type u_2} [inst : Encodable ι] {F : ι → Type u_3} [inst_1 : (i : ι) → EDist (F i)] (x y : (i : ι) → F i),
edist x y = ∑' (i : ι), min (2⁻¹ ^ Encodable.encode i) (edist (x i) (y i))
theorem PiCountable.min_edist_le_edist_pi E1 #
∀ {ι : Type u_2} [inst : Encodable ι] {F : ι → Type u_3} [inst_1 : (i : ι) → EDist (F i)] (x y : (i : ι) → F i) (i : ι),
min (2⁻¹ ^ Encodable.encode i) (edist (x i) (y i)) ≤ edist x y
theorem PiCountable.edist_le_two E1 #
∀ {ι : Type u_2} [inst : Encodable ι] {F : ι → Type u_3} [inst_1 : (i : ι) → EDist (F i)] {x y : (i : ι) → F i},
edist x y ≤ 2
theorem PiCountable.edist_lt_top E1 #
∀ {ι : Type u_2} [inst : Encodable ι] {F : ι → Type u_3} [inst_1 : (i : ι) → EDist (F i)] {x y : (i : ι) → F i},
edist x y < ⊤
theorem PiCountable.edist_le_edist_pi_of_edist_lt E1 #
∀ {ι : Type u_2} [inst : Encodable ι] {F : ι → Type u_3} [inst_1 : (i : ι) → EDist (F i)] {x y : (i : ι) → F i} {i : ι},
edist x y < 2⁻¹ ^ Encodable.encode i → edist (x i) (y i) ≤ edist x y
def PiCountable.pseudoEMetricSpace E1 #
{ι : Type u_2} →
[Encodable ι] → {F : ι → Type u_3} → [(i : ι) → PseudoEMetricSpace (F i)] → PseudoEMetricSpace ((i : ι) → F i)
Given a countable family of extended pseudometric spaces,
one may put an extended distance on their product Π i, E i.
It is highly non-canonical, though, and therefore not registered as a global instance.
The distance we use here is edist x y = ∑' i, min (1/2)^(encode i) (edist (x i) (y i)).
def PiCountable.emetricSpace E1 #
{ι : Type u_2} → [Encodable ι] → {F : ι → Type u_3} → [(i : ι) → EMetricSpace (F i)] → EMetricSpace ((i : ι) → F i)
Given a countable family of extended metric spaces,
one may put an extended distance on their product Π i, E i.
It is highly non-canonical, though, and therefore not registered as a global instance.
The distance we use here is edist x y = ∑' i, min (1/2)^(encode i) (edist (x i) (y i)).
def PiCountable.dist E1 #
{ι : Type u_2} → [Encodable ι] → {F : ι → Type u_3} → [(i : ι) → PseudoMetricSpace (F i)] → Dist ((i : ι) → F i)
Given a countable family of metric spaces, one may put a distance on their product Π i, E i.
It is highly non-canonical, though, and therefore not registered as a global instance.
The distance we use here is dist x y = ∑' i, min (1/2)^(encode i) (dist (x i) (y i)).
theorem PiCountable.dist_eq_tsum E1 #
∀ {ι : Type u_2} [inst : Encodable ι] {F : ι → Type u_3} [inst_1 : (i : ι) → PseudoMetricSpace (F i)]
(x y : (i : ι) → F i), dist x y = ∑' (i : ι), min (2⁻¹ ^ Encodable.encode i) (dist (x i) (y i))
theorem PiCountable.dist_summable E1 #
∀ {ι : Type u_2} [inst : Encodable ι] {F : ι → Type u_3} [inst_1 : (i : ι) → PseudoMetricSpace (F i)]
(x y : (i : ι) → F i), Summable fun i ↦ min (2⁻¹ ^ Encodable.encode i) (dist (x i) (y i))
theorem PiCountable.min_dist_le_dist_pi E1 #
∀ {ι : Type u_2} [inst : Encodable ι] {F : ι → Type u_3} [inst_1 : (i : ι) → PseudoMetricSpace (F i)]
(x y : (i : ι) → F i) (i : ι), min (2⁻¹ ^ Encodable.encode i) (dist (x i) (y i)) ≤ dist x y
theorem PiCountable.dist_le_dist_pi_of_dist_lt E1 #
∀ {ι : Type u_2} [inst : Encodable ι] {F : ι → Type u_3} [inst_1 : (i : ι) → PseudoMetricSpace (F i)]
{x y : (i : ι) → F i} {i : ι}, dist x y < 2⁻¹ ^ Encodable.encode i → dist (x i) (y i) ≤ dist x y
def PiCountable.pseudoMetricSpace E1 #
{ι : Type u_2} →
[Encodable ι] → {F : ι → Type u_3} → [(i : ι) → PseudoMetricSpace (F i)] → PseudoMetricSpace ((i : ι) → F i)
Given a countable family of metric spaces, one may put a distance on their product Π i, E i.
It is highly non-canonical, though, and therefore not registered as a global instance.
The distance we use here is dist x y = ∑' i, min (1/2)^(encode i) (dist (x i) (y i)).
def PiCountable.metricSpace E1 #
{ι : Type u_2} → [Encodable ι] → {F : ι → Type u_3} → [(i : ι) → MetricSpace (F i)] → MetricSpace ((i : ι) → F i)
Given a countable family of metric spaces, one may put a distance on their product Π i, E i.
It is highly non-canonical, though, and therefore not registered as a global instance.
The distance we use here is edist x y = ∑' i, min (1/2)^(encode i) (edist (x i) (y i)).
structure Metric.PiNatEmbed E1 #
{ι : Type u_2} → (X : Type u_5) → (Y : ι → Type u_6) → ((i : ι) → X → Y i) → Type u_5
Given a type X and a sequence Y of metric spaces and a sequence f : : ∀ i, X → Y i of
separating functions, PiNatEmbed X Y f is a type synonym for X seen as a subset of ∀ i, Y i.
ctor Metric.PiNatEmbed.toPiNat E0 #
{ι : Type u_2} → {X : Type u_5} → {Y : ι → Type u_6} → {f : (i : ι) → X → Y i} → X → Metric.PiNatEmbed X Y f
The map from X to the subset of ∀ i, Y i.
abbrev Metric.PiNatEmbed.ofPiNat E1 #
{ι : Type u_2} → {X : Type u_5} → {Y : ι → Type u_6} → {f : (i : ι) → X → Y i} → Metric.PiNatEmbed X Y f → X
The map from the subset of ∀ i, Y i to X.
theorem Metric.PiNatEmbed.ext_iff E0 #
∀ {ι : Type u_2} {X : Type u_3} {Y : ι → Type u_4} {f : (i : ι) → X → Y i} {x y : Metric.PiNatEmbed X Y f},
x = y ↔ x.ofPiNat = y.ofPiNat
theorem Metric.PiNatEmbed.ext E1 #
∀ {ι : Type u_2} {X : Type u_3} {Y : ι → Type u_4} {f : (i : ι) → X → Y i} {x y : Metric.PiNatEmbed X Y f},
x.ofPiNat = y.ofPiNat → x = y
def Metric.PiNatEmbed.toPiNatEquiv E1 #
{ι : Type u_2} → (X : Type u_3) → (Y : ι → Type u_4) → (f : (i : ι) → X → Y i) → X ≃ Metric.PiNatEmbed X Y f
Equivalence between X and its embedding into ∀ i, Y i.
theorem Metric.PiNatEmbed.toPiNatEquiv_apply_ofPiNat E0 #
∀ {ι : Type u_2} (X : Type u_3) (Y : ι → Type u_4) (f : (i : ι) → X → Y i) (ofPiNat : X),
((Metric.PiNatEmbed.toPiNatEquiv X Y f) ofPiNat).ofPiNat = ofPiNat
theorem Metric.PiNatEmbed.toPiNatEquiv_symm_apply E0 #
∀ {ι : Type u_2} (X : Type u_3) (Y : ι → Type u_4) (f : (i : ι) → X → Y i) (self : Metric.PiNatEmbed X Y f),
(Metric.PiNatEmbed.toPiNatEquiv X Y f).symm self = self.ofPiNat
theorem Metric.PiNatEmbed.ofPiNat_inj E0 #
∀ {ι : Type u_2} {X : Type u_3} {Y : ι → Type u_4} {f : (i : ι) → X → Y i} {x y : Metric.PiNatEmbed X Y f},
x.ofPiNat = y.ofPiNat ↔ x = y
theorem Metric.PiNatEmbed.forall E0 #
∀ {ι : Type u_2} {X : Type u_3} {Y : ι → Type u_4} {f : (i : ι) → X → Y i} {P : Metric.PiNatEmbed X Y f → Prop},
(∀ (x : Metric.PiNatEmbed X Y f), P x) ↔ ∀ (x : X), P { ofPiNat := x }
def Metric.PiNatEmbed.embed E1 #
{ι : Type u_2} → (X : Type u_3) → (Y : ι → Type u_4) → (f : (i : ι) → X → Y i) → Metric.PiNatEmbed X Y f → (i : ι) → Y i
X equipped with the distance coming from ∀ i, Y i embeds in ∀ i, Y i.
theorem Metric.PiNatEmbed.embed_injective E1 #
∀ {ι : Type u_2} {X : Type u_3} {Y : ι → Type u_4} {f : (i : ι) → X → Y i},
(Pairwise fun x y ↦ ∃ i, f i x ≠ f i y) → Function.Injective (Metric.PiNatEmbed.embed X Y f)
instance Metric.PiNatEmbed.instPseudoEMetricSpace E0 #
{ι : Type u_2} →
{X : Type u_3} →
{Y : ι → Type u_4} →
{f : (i : ι) → X → Y i} →
[Encodable ι] → [(i : ι) → PseudoEMetricSpace (Y i)] → PseudoEMetricSpace (Metric.PiNatEmbed X Y f)
theorem Metric.PiNatEmbed.edist_def E0 #
∀ {ι : Type u_2} {X : Type u_3} {Y : ι → Type u_4} {f : (i : ι) → X → Y i} [inst : Encodable ι]
[inst_1 : (i : ι) → PseudoEMetricSpace (Y i)] (x y : Metric.PiNatEmbed X Y f),
edist x y = ∑' (i : ι), min (2⁻¹ ^ Encodable.encode i) (edist (f i x.ofPiNat) (f i y.ofPiNat))
theorem Metric.PiNatEmbed.isometry_embed E1 #
∀ {ι : Type u_2} {X : Type u_3} {Y : ι → Type u_4} {f : (i : ι) → X → Y i} [inst : Encodable ι]
[inst_1 : (i : ι) → PseudoEMetricSpace (Y i)], Isometry (Metric.PiNatEmbed.embed X Y f)
instance Metric.PiNatEmbed.instPseudoMetricSpace E0 #
{ι : Type u_2} →
{X : Type u_3} →
{Y : ι → Type u_4} →
{f : (i : ι) → X → Y i} →
[Encodable ι] → [(i : ι) → PseudoMetricSpace (Y i)] → PseudoMetricSpace (Metric.PiNatEmbed X Y f)
theorem Metric.PiNatEmbed.dist_def E0 #
∀ {ι : Type u_2} {X : Type u_3} {Y : ι → Type u_4} {f : (i : ι) → X → Y i} [inst : Encodable ι]
[inst_1 : (i : ι) → PseudoMetricSpace (Y i)] (x y : Metric.PiNatEmbed X Y f),
dist x y = ∑' (i : ι), min (2⁻¹ ^ Encodable.encode i) (dist (f i x.ofPiNat) (f i y.ofPiNat))
theorem Metric.PiNatEmbed.continuous_toPiNat E1 #
∀ {ι : Type u_2} {X : Type u_3} {Y : ι → Type u_4} {f : (i : ι) → X → Y i} [inst : Encodable ι]
[inst_1 : (i : ι) → PseudoMetricSpace (Y i)] [inst_2 : TopologicalSpace X],
(∀ (i : ι), Continuous (f i)) → Continuous Metric.PiNatEmbed.toPiNat
abbrev Metric.PiNatEmbed.emetricSpace E1 #
{ι : Type u_2} →
{X : Type u_3} →
{Y : ι → Type u_4} →
{f : (i : ι) → X → Y i} →
[Encodable ι] →
[(i : ι) → EMetricSpace (Y i)] →
(Pairwise fun x y ↦ ∃ i, f i x ≠ f i y) → EMetricSpace (Metric.PiNatEmbed X Y f)
If the functions f i : X → Y i separate points of X, then X can be embedded into
∀ i, Y i.
theorem Metric.PiNatEmbed.isUniformEmbedding_embed E1 #
∀ {ι : Type u_2} {X : Type u_3} {Y : ι → Type u_4} {f : (i : ι) → X → Y i} [inst : Encodable ι]
[inst_1 : (i : ι) → EMetricSpace (Y i)],
(Pairwise fun x y ↦ ∃ i, f i x ≠ f i y) → IsUniformEmbedding (Metric.PiNatEmbed.embed X Y f)
abbrev Metric.PiNatEmbed.metricSpace E1 #
{ι : Type u_2} →
{X : Type u_3} →
{Y : ι → Type u_4} →
{f : (i : ι) → X → Y i} →
[Encodable ι] →
[(i : ι) → MetricSpace (Y i)] →
(Pairwise fun x y ↦ ∃ i, f i x ≠ f i y) → MetricSpace (Metric.PiNatEmbed X Y f)
If the functions f i : X → Y i separate points of X, then X can be embedded into
∀ i, Y i.
theorem Metric.PiNatEmbed.isHomeomorph_toPiNat E1 #
∀ {ι : Type u_2} {X : Type u_3} {Y : ι → Type u_4} {f : (i : ι) → X → Y i} [inst : Encodable ι]
[inst_1 : (i : ι) → MetricSpace (Y i)] [inst_2 : TopologicalSpace X] [CompactSpace X],
(∀ (i : ι), Continuous (f i)) → (Pairwise fun x y ↦ ∃ i, f i x ≠ f i y) → IsHomeomorph Metric.PiNatEmbed.toPiNat
def Metric.PiNatEmbed.toPiNatHomeo E1 #
{ι : Type u_2} →
(X : Type u_3) →
(Y : ι → Type u_4) →
(f : (i : ι) → X → Y i) →
[inst : Encodable ι] →
[inst_1 : (i : ι) → MetricSpace (Y i)] →
[inst_2 : TopologicalSpace X] →
[CompactSpace X] →
(∀ (i : ι), Continuous (f i)) → (Pairwise fun x y ↦ ∃ i, f i x ≠ f i y) → X ≃ₜ Metric.PiNatEmbed X Y f
Homeomorphism between X and its embedding into ∀ i, Y i induced by a separating family of
continuous functions f i : X → Y i.
theorem Metric.PiNatEmbed.toPiNatHomeo_apply_ofPiNat E0 #
∀ {ι : Type u_2} (X : Type u_3) (Y : ι → Type u_4) (f : (i : ι) → X → Y i) [inst : Encodable ι]
[inst_1 : (i : ι) → MetricSpace (Y i)] [inst_2 : TopologicalSpace X] [inst_3 : CompactSpace X]
(continuous_f : ∀ (i : ι), Continuous (f i)) (separating_f : Pairwise fun x y ↦ ∃ i, f i x ≠ f i y) (ofPiNat : X),
((Metric.PiNatEmbed.toPiNatHomeo X Y f continuous_f separating_f) ofPiNat).ofPiNat = ofPiNat
theorem Metric.PiNatEmbed.toPiNatHomeo_symm_apply E0 #
∀ {ι : Type u_2} (X : Type u_3) (Y : ι → Type u_4) (f : (i : ι) → X → Y i) [inst : Encodable ι]
[inst_1 : (i : ι) → MetricSpace (Y i)] [inst_2 : TopologicalSpace X] [inst_3 : CompactSpace X]
(continuous_f : ∀ (i : ι), Continuous (f i)) (separating_f : Pairwise fun x y ↦ ∃ i, f i x ≠ f i y)
(self : Metric.PiNatEmbed X Y f),
(Metric.PiNatEmbed.toPiNatHomeo X Y f continuous_f separating_f).symm self = self.ofPiNat
theorem Metric.PiNatEmbed.TopologicalSpace.MetrizableSpace.of_countable_separating E1 #
∀ {ι : Type u_2} {X : Type u_3} {Y : ι → Type u_4} [Encodable ι] [inst : (i : ι) → MetricSpace (Y i)]
[inst_1 : TopologicalSpace X] [CompactSpace X] (f : (i : ι) → X → Y i),
(∀ (i : ι), Continuous (f i)) → (Pairwise fun x y ↦ ∃ i, f i x ≠ f i y) → TopologicalSpace.MetrizableSpace X
If X is compact, and there exists a sequence of continuous functions f i : X → Y i to
metric spaces Y i that separate points on X, then X is metrizable.
abbrev Metric.PiNatEmbed.distDenseSeq E1 #
(X : Type u_3) → [inst : MetricSpace X] → [TopologicalSpace.SeparableSpace X] → ℕ → X → ↑unitInterval
Given a separable metric space X, denseSeq X : ℕ → X gives a countable
dense sequence. This measures the distance between denseSeq X n and x, truncated to the unit
interval I so that the distances remain bounded.
The function (fun x n ↦ distDenseSeq n x) : X → ℕ → I is a mapping from X to the Hilbert cube.
theorem Metric.PiNatEmbed.continuous_distDenseSeq E1 #
∀ {X : Type u_3} [inst : MetricSpace X] [inst_1 : TopologicalSpace.SeparableSpace X] (n : ℕ),
Continuous (Metric.PiNatEmbed.distDenseSeq X n)
theorem Metric.PiNatEmbed.separation E1 #
∀ {X : Type u_3} [inst : MetricSpace X] [inst_1 : TopologicalSpace.SeparableSpace X] {x : X} {C : Set X},
C ∈ nhds x → ∃ n, C ∈ Filter.comap (Metric.PiNatEmbed.distDenseSeq X n) (nhds (Metric.PiNatEmbed.distDenseSeq X n x))
theorem Metric.PiNatEmbed.injective_distDenseSeq E1 #
∀ {X : Type u_3} [inst : MetricSpace X] [inst_1 : TopologicalSpace.SeparableSpace X] (x y : X),
x ≠ y → ∃ n, Metric.PiNatEmbed.distDenseSeq X n x ≠ Metric.PiNatEmbed.distDenseSeq X n y
theorem Metric.PiNatEmbed.continuous_distDenseSeq_inv E1 #
∀ {X : Type u_3} [inst : MetricSpace X] [inst_1 : TopologicalSpace.SeparableSpace X],
Continuous Metric.PiNatEmbed.ofPiNat
theorem Metric.PiNatEmbed.exists_embedding_to_hilbert_cube E1 #
∀ {X : Type u_3} [inst : MetricSpace X] [TopologicalSpace.SeparableSpace X], ∃ F, Topology.IsEmbedding F