Documentation

MiscYD.PhD.VCDim.CoveringPacking

Covering and packing numbers #

This file defines covering and packing numbers of a set in a metric space.

For a set s in a metric space and a real number ε > 0:

References #

High Dimensional Probability, Section 4.2.

Covering number #

noncomputable def Metric.ecoveringNum {X : Type u_1} [PseudoEMetricSpace X] (ε : NNReal) (s : Set X) :

The ε-covering number of a set s is the minimum size of an ε-net of s that is also a subset of s. It is equal to if no such set exists.

If we do not require the net to be a subset of s, then we get a different but essentially equivalent number: the "exterior ε-covering number" of s is at least ecoveringNum (2 * ε) s and at most ecoveringNum ε s.

HDP 4.2.2

Equations
Instances For
    noncomputable def Metric.coveringNum {X : Type u_1} [PseudoEMetricSpace X] (ε : NNReal) (s : Set X) :

    The ε-covering number of a set s is the minimum size of an ε-net of s that is also a subset of s. It is equal to 0 if no such set exists.

    If we do not require the net to be a subset of s, then we get a different but essentially equivalent number: the "exterior ε-covering number" of s is at least coveringNum (2 * ε) s and at most coveringNum ε s.

    HDP 4.2.2

    Equations
    Instances For
      theorem Metric.le_ecoveringNum_iff_forall_le_encard {X : Type u_1} [PseudoEMetricSpace X] {ε : NNReal} {s : Set X} {n : ℕ∞} :
      n ecoveringNum ε s ∀ ⦃N : Set X⦄, N sIsCover ε s Nn N.encard
      theorem Metric.le_ecoveringNum_iff_forall_le_card {X : Type u_1} [PseudoEMetricSpace X] {ε : NNReal} {s : Set X} {n : ℕ∞} :
      n ecoveringNum ε s ∀ ⦃N : Finset X⦄, N sIsCover ε s Nn N.card
      theorem Metric.IsCover.ecoveringNum_le_encard {X : Type u_1} [PseudoEMetricSpace X] {ε : NNReal} {s N : Set X} (hNs : N s) (hsN : IsCover ε s N) :
      @[simp]
      theorem Metric.ecoveringNum_zero {X : Type u_1} [EMetricSpace X] (s : Set X) :
      @[simp]
      theorem Metric.coveringNum_zero {X : Type u_1} [EMetricSpace X] (s : Set X) :
      @[simp]
      theorem Metric.ecoveringNum_lt_top {X : Type u_1} [MetricSpace X] [ProperSpace X] {ε : NNReal} {s : Set X} ( : ε 0) :

      A set in a proper metric space has finite covering number iff it is relatively compact.

      HDP 4.2.3. Note that HDP 4.2.3 incorrectly claims that this holds without the ProperSpace X assumption, but this can't be: If the conclusion holds true, then the closure of a closed ball (ie the closed ball itself) should be compact since it admits a finite net (its center).

      theorem Metric.ecoveringNum_ne_top {X : Type u_1} [MetricSpace X] [ProperSpace X] {ε : NNReal} {s : Set X} ( : ε 0) :

      A set in a proper metric space has finite covering number iff it is relatively compact.

      HDP 4.2.3. Note that HDP 4.2.3 incorrectly claims that this holds without the ProperSpace X assumption, but this can't be: If the conclusion holds true, then the closure of a closed ball (ie the closed ball itself) should be compact since it admits a finite net (its center).

      @[simp]
      theorem Metric.ecoveringNum_eq_top {X : Type u_1} [MetricSpace X] [ProperSpace X] {ε : NNReal} {s : Set X} ( : ε 0) :

      A set in a proper metric space has infinite covering number iff it is not relatively compact.

      HDP 4.2.3. Note that HDP 4.2.3 incorrectly claims that this holds without the ProperSpace X assumption, but this can't be: If the conclusion holds true, then the closure of a closed ball (ie the closed ball itself) should be compact since it admits a finite net (its center).

      A non-relatively compact set in a proper metric space has infinite covering number.

      Packing number #

      noncomputable def Metric.epackingNum {X : Type u_1} [PseudoEMetricSpace X] (ε : NNReal) (s : Set X) :

      The ε-packing number of a set s is the maximum size of an ε-separated of s. It is equal to if no maximal ε-separated set exists.

      Equations
      Instances For
        theorem Metric.epackingNum_le_iff_forall_encard_le {X : Type u_1} [PseudoEMetricSpace X] {ε : NNReal} {s : Set X} {n : ℕ∞} :
        epackingNum ε s n ∀ ⦃P : Set X⦄, P sIsSeparated (↑ε) PP.encard n
        theorem Metric.epackingNum_le_iff_forall_card_le {X : Type u_1} [PseudoEMetricSpace X] {ε : NNReal} {s : Set X} {n : ℕ∞} :
        epackingNum ε s n ∀ ⦃P : Finset X⦄, P sIsSeparated ε PP.card n
        theorem Metric.IsSeparated.encard_le_epackingNum {X : Type u_1} [PseudoEMetricSpace X] {ε : NNReal} {P s : Set X} (hPs : P s) (hP : IsSeparated (↑ε) P) :
        noncomputable def Metric.packingNum {X : Type u_1} [PseudoEMetricSpace X] (ε : NNReal) (s : Set X) :

        The ε-packing number of a set s is the maximum size of an ε-separated of s. It is equal to 0 if no maximal ε-separated set exists.

        Equations
        Instances For
          theorem Metric.exists_isSeparated_encard_eq_packingNum {X : Type u_1} [PseudoEMetricSpace X] {ε : NNReal} {s : Set X} (hs : epackingNum ε s ) :
          ∃ (N : Set X) (_ : N s) (_ : IsSeparated (↑ε) N), N.encard = epackingNum ε s