Relative color densities and their stability under edits #
For a coloring H of the unordered triples of V, the relative density H.relDensityOn c supp
of a color c over a finite support of injective triples is the fraction of the supported
triples whose underlying unordered triple has color c. Colors are read through the underlying
unordered triple, while the normalization counts the supported ordered injections, so a triple
contributes once for each of its supported orderings, both to the count and to the normalization.
The relative density is 0 on the empty support.
Relative densities lie between 0 and 1, and on a nonempty support the densities of all colors
sum to one. Recoloring changes relDensityOn, multiplied by the support size, by at most
the number of supported edited triples editedOn, defined in
TauCeti.Combinatorics.Hypergraph.Colored.EditDiscrepancy.
Main definitions #
TauCeti.Colored3Graph.relDensityOn: the relative density of a color over a support.
Main results #
TauCeti.Colored3Graph.sum_relDensityOn: on a nonempty support the densities sum to one.TauCeti.Colored3Graph.abs_relDensityOn_sub_mul_card_le_card_editedOn: the count-scaled density change is bounded by the supported edit count.TauCeti.Colored3Graph.abs_relDensityOn_sub_le_div_of_card_editedOn_le: anη-fraction of edits on a support changes density on anε-fraction subsupport by at mostη / ε.TauCeti.Colored3Graph.abs_relDensityOn_sub_le_div_of_card_sdiff_le: removing few triples from a support changes the density of every color by little.
The relative density of the color c over a finite support of injective triples: the fraction
of supported triples whose underlying unordered triple has color c. It is 0 on the empty
support.
Instances For
The relative density counts supported triples whose underlying triple has color c.
Multiplying a relative density by the support size recovers the color count, including when the support is empty.
Recoloring changes a color count by at most the number of edited supported triples. The count-scaled form includes empty supports and does not require a finite palette.
Recoloring at most an η-fraction of B changes the density on any subsupport A
carrying at least an ε-fraction of B by at most η / ε. Empty supports are allowed.
Relative densities are nonnegative.
Relative densities are at most one.
Shrinking a support to a subsupport changes the count-scaled density by at most the number of removed triples. Empty supports are allowed.
If at most η N triples are removed from a support B with ε N ≤ #B, the density of every
color changes by at most η / ε. Empty supports are allowed.
Every relative density over the empty support is 0.
The relative density of the color of a constant coloring is one on a nonempty support.
The relative density of any other color of a constant coloring is zero.
The relative densities of all colors sum to one on a nonempty support.