Edit discrepancy of colored three-uniform hypergraphs #
The edit discrepancy H.editDiscrepancy3 H' of two colorings of the triples of V is six times
the number of unordered triples on which they disagree, divided by |V|³. Equivalently, it is
the fraction of all |V|³ ordered triples of vertices whose entries are distinct and form a
triple on which the colorings disagree.
H.Approximates3 H' ε says that the edit discrepancy is at most ε.
The discrepancy is a pseudometric: it is nonnegative, symmetric, zero on the diagonal, and
satisfies the triangle inequality, so approximations compose with their errors added. The
vertex count is Nat.card V, so no finiteness hypothesis is needed: on an infinite vertex type
the denominator vanishes and every discrepancy is 0.
The finite set H.editedOn H' supp records the edited injective triples on a given support,
counting each supported ordering separately. Its cardinality is additive over disjoint supports.
Main definitions #
TauCeti.Colored3Graph.editDiscrepancy3: the normalized number of disagreeing triples.TauCeti.Colored3Graph.Approximates3: approximation within a given edit discrepancy.TauCeti.Colored3Graph.editedOn: the supported injective triples whose colors differ.
Main results #
TauCeti.Colored3Graph.editDiscrepancy3_triangle: the triangle inequality.TauCeti.Colored3Graph.Approximates3.trans: approximations compose, adding their errors.TauCeti.Colored3Graph.card_editedOn_biUnion: edit counts add over disjoint supports.
The supported injective triples whose underlying unordered triple has different colors
in H and H'. Each supported ordering is counted separately.
Instances For
Edited triples are obtained by filtering the support for unequal colors.
Membership means being supported and having different colors.
Every edited triple belongs to the given support.
Enlarging the support can only enlarge the set of edited triples.
The edited support is independent of the direction of recoloring.
A coloring has no edits relative to itself.
There are no edited triples on the empty support.
The edit count is additive over a finite family of pairwise disjoint supports.
Six times the number of unordered triples on which H and H' disagree, normalized by
|V|³.
Instances For
The edit discrepancy counts disagreeing triples, normalized by |V|³.
Multiplying edit discrepancy by the host-size cube recovers six times the edit count.
The finite-host hypothesis is necessary because Nat.card vanishes on infinite types.
The edit discrepancy is nonnegative.
The edit discrepancy is symmetric.
A coloring has edit discrepancy 0 from itself.
The triangle inequality for the edit discrepancy.
H approximates H' within ε when their edit discrepancy is at most ε.
Instances For
Approximation within ε means that the edit discrepancy is at most ε.
A coloring approximates itself within any nonnegative error.
Approximation is symmetric.
Approximation within ε implies approximation within any larger error.
Approximations compose, with their errors added.