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:
- the
ε-covering number ofsis the size of a minimalε-net ofscontained ins. - the
ε-packing number ofsis the size of a maximakε-separated subset ofs.
References #
High Dimensional Probability, Section 4.2.
Covering number #
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
- Metric.ecoveringNum ε s = ⨅ (N : Set X), ⨅ (_ : N ⊆ s), ⨅ (_ : Metric.IsCover ε s N), N.encard
Instances For
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
- Metric.coveringNum ε s = (Metric.ecoveringNum ε s).toNat
Instances For
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).
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).
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 #
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
- Metric.epackingNum ε s = ⨆ (P : Set X), ⨆ (_ : P ⊆ s), ⨆ (_ : Metric.IsSeparated (↑ε) P), P.encard
Instances For
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
- Metric.packingNum ε s = (Metric.epackingNum ε s).toNat
Instances For
HDP 4.2.8
HDP 4.2.8