Documentation

CslibFrontier.Foundations.Analysis.Normed.CoveringNumber

Metric covering and packing numbers #

For a subset s of a pseudometric space X and a scale ε : ℝ, we define three fundamental ℕ∞-valued complexity measures (⊤ represents an infinite count):

Main definitions #

Main results #

References #

noncomputable def Cslib.Metric.coveringNumber {X : Type u_1} [PseudoMetricSpace X] (s : Set X) (ε : ℝ) :

External covering number N(s, ε) : ℕ∞: the minimum cardinality of a finite subset T : Finset X whose closed ε-balls cover s (⊤ if no finite cover exists).

noncomputable def Cslib.Metric.internalCoveringNumber {X : Type u_1} [PseudoMetricSpace X] (s : Set X) (ε : ℝ) :

Internal (proper) covering number N_int(s, ε) : ℕ∞: the minimum cardinality of a finite subset T ⊆ s whose closed ε-balls cover s (⊤ if no finite internal cover exists).

noncomputable def Cslib.Metric.packingNumber {X : Type u_1} [PseudoMetricSpace X] (s : Set X) (ε : ℝ) :

Packing number M(s, ε) : ℕ∞: the supremum cardinality of a finite subset P ⊆ s whose distinct points are strictly ε-separated (ε < dist x y).

Basic order and membership lemmas #

theorem Cslib.Metric.coveringNumber_le_card {X : Type u_1} [PseudoMetricSpace X] {s : Set X} {ε : ℝ} {T : Finset X} (hT : ∀ x ∈ s, ∃ y ∈ T, dist x y ≤ ε) :
theorem Cslib.Metric.internalCoveringNumber_le_card {X : Type u_1} [PseudoMetricSpace X] {s : Set X} {ε : ℝ} {T : Finset X} (hTs : ∀ y ∈ T, y ∈ s) (hT : ∀ x ∈ s, ∃ y ∈ T, dist x y ≤ ε) :
theorem Cslib.Metric.le_internalCoveringNumber {X : Type u_1} [PseudoMetricSpace X] {s : Set X} {ε : ℝ} {n : ℕ∞} (h : ∀ (T : Finset X), (∀ y ∈ T, y ∈ s) → (∀ x ∈ s, ∃ y ∈ T, dist x y ≤ ε) → n ≤ ↑T.card) :
theorem Cslib.Metric.card_le_packingNumber {X : Type u_1} [PseudoMetricSpace X] {s : Set X} {ε : ℝ} {P : Finset X} (hPs : ∀ x ∈ P, x ∈ s) (hsep : ∀ x ∈ P, ∀ y ∈ P, x ≠ y → ε < dist x y) :
theorem Cslib.Metric.exists_cover_of_coveringNumber_lt_top {X : Type u_1} [PseudoMetricSpace X] {s : Set X} {ε : ℝ} (h : coveringNumber s ε < ⊤) :
∃ (T : Finset X), ↑T.card = coveringNumber s ε ∧ ∀ x ∈ s, ∃ y ∈ T, dist x y ≤ ε

Any finite external covering number is attained by a Finset X of that exact cardinality.

theorem Cslib.Metric.exists_internalCover_of_lt_top {X : Type u_1} [PseudoMetricSpace X] {s : Set X} {ε : ℝ} (h : internalCoveringNumber s ε < ⊤) :
∃ (T : Finset X), ↑T.card = internalCoveringNumber s ε ∧ (∀ y ∈ T, y ∈ s) ∧ ∀ x ∈ s, ∃ y ∈ T, dist x y ≤ ε

Any finite internal covering number is attained by a Finset X contained in s.

theorem Cslib.Metric.coveringNumber_le_one_of_subset_closedBall {X : Type u_1} [PseudoMetricSpace X] {s : Set X} {x₀ : X} {ε : ℝ} (hs : ∀ x ∈ s, dist x x₀ ≤ ε) :
theorem Cslib.Metric.coveringNumber_anti {X : Type u_1} [PseudoMetricSpace X] (s : Set X) {ε₁ ε₂ : ℝ} (hε : ε₁ ≤ ε₂) :
theorem Cslib.Metric.internalCoveringNumber_anti {X : Type u_1} [PseudoMetricSpace X] (s : Set X) {ε₁ ε₂ : ℝ} (hε : ε₁ ≤ ε₂) :
theorem Cslib.Metric.packingNumber_anti {X : Type u_1} [PseudoMetricSpace X] (s : Set X) {ε₁ ε₂ : ℝ} (hε : ε₁ ≤ ε₂) :
theorem Cslib.Metric.coveringNumber_mono {X : Type u_1} [PseudoMetricSpace X] {s t : Set X} (hst : s ⊆ t) (ε : ℝ) :
theorem Cslib.Metric.packingNumber_mono {X : Type u_1} [PseudoMetricSpace X] {s t : Set X} (hst : s ⊆ t) (ε : ℝ) :
theorem Cslib.Metric.packingNumber_le_of_forall_card_le {X : Type u_1} [PseudoMetricSpace X] {s : Set X} {ε : ℝ} {M : ℕ∞} (hM : ∀ (P : Finset X), (∀ x ∈ P, x ∈ s) → (∀ x ∈ P, ∀ y ∈ P, x ≠ y → ε < dist x y) → ↑P.card ≤ M) :

Packing–covering duality #

Internal covering is bounded by packing [Vershynin2018, Lemma 4.2.8] (locator unverified): for every ε ≥ 0, a maximal strictly ε-separated subset of s is an internal ε-net, so internalCoveringNumber s ε ≤ packingNumber s ε.

Packing is bounded by external covering at half scale [Vershynin2018, Lemma 4.2.8] (locator unverified): no closed ε-ball can contain two points that are more than 2 ε apart, so packingNumber s (2 * ε) ≤ coveringNumber s ε.

Comparison between internal and external covering numbers at half scale.

Every totally bounded set has finite external covering number at every positive scale ε.

Every totally bounded set has finite internal covering number at every positive scale ε.

theorem Cslib.Metric.internalCoveringNumber_image_le_of_lipschitz {X : Type u_1} [PseudoMetricSpace X] {Y : Type u_2} [PseudoMetricSpace Y] {s : Set X} {f : X → Y} {L : ℝ} (hL : 0 ≤ L) (hf : ∀ x ∈ s, ∀ y ∈ s, dist (f x) (f y) ≤ L * dist x y) (ε : ℝ) :

Lipschitz invariance of internal covering numbers: if f is L-Lipschitz on s (0 ≤ L), then N_int(f '' s, L * ε) ≤ N_int(s, ε).

theorem Cslib.Metric.coveringNumber_vadd {E : Type u_1} [NormedAddCommGroup E] (c : E) (s : Set E) (ε : ℝ) :
coveringNumber ((fun (x : E) => x + c) '' s) ε = coveringNumber s ε

Translating a set preserves its external covering number.

theorem Cslib.Metric.card_le_of_separated_closedBall {E : Type u_1} [NormedAddCommGroup E] [NormedSpace ℝ E] [FiniteDimensional ℝ E] {x₀ : E} {R ε : ℝ} (hR : 0 ≤ R) (hε : 0 < ε) {P : Finset E} (hP : ∀ x ∈ P, x ∈ Metric.closedBall x₀ R) (hsep : ∀ x ∈ P, ∀ y ∈ P, x ≠ y → ε < dist x y) :
↑P.card ≤ (1 + 2 * R / ε) ^ Module.finrank ℝ E

Volumetric packing bound for a finite-dimensional ball [Vershynin2018, Corollary 4.2.13] (locator unverified): in any finite-dimensional real normed space E of dimension d, every strictly ε-separated finite subset P ⊆ Metric.closedBall x₀ R (0 ≤ R, 0 < ε) satisfies P.card ≤ (1 + 2 * R / ε) ^ d.

theorem Cslib.Metric.packingNumber_closedBall_lt_top {E : Type u_1} [NormedAddCommGroup E] [NormedSpace ℝ E] [FiniteDimensional ℝ E] (x₀ : E) {R ε : ℝ} (hR : 0 ≤ R) (hε : 0 < ε) :

Finite real bound on packingNumber (Metric.closedBall x₀ R) ε for R ≥ 0, ε > 0.

theorem Cslib.Metric.packingNumber_closedBall_toNat_le {E : Type u_1} [NormedAddCommGroup E] [NormedSpace ℝ E] [FiniteDimensional ℝ E] (x₀ : E) {R ε : ℝ} (hR : 0 ≤ R) (hε : 0 < ε) :

Volumetric packing bound [Vershynin2018, Corollary 4.2.13] (locator unverified): (packingNumber (closedBall x₀ R) ε).toNat ≤ (1 + 2 * R / ε) ^ dim E.

theorem Cslib.Metric.internalCoveringNumber_closedBall_toNat_le {E : Type u_1} [NormedAddCommGroup E] [NormedSpace ℝ E] [FiniteDimensional ℝ E] (x₀ : E) {R ε : ℝ} (hR : 0 ≤ R) (hε : 0 < ε) :

Volumetric internal covering bound [Vershynin2018, Corollary 4.2.13] (locator unverified): internalCoveringNumber (closedBall x₀ R) ε ≤ (1 + 2 * R / ε) ^ dim E for R ≥ 0, ε > 0.

theorem Cslib.Metric.coveringNumber_closedBall_toNat_le_three_pow {E : Type u_1} [NormedAddCommGroup E] [NormedSpace ℝ E] [FiniteDimensional ℝ E] (x₀ : E) {R ε : ℝ} (hε : 0 < ε) (hεR : ε ≤ R) :

Volumetric external covering bound: for 0 < ε ≤ R, coveringNumber (closedBall x₀ R) ε ≤ (3 * R / ε) ^ dim E.