Coherent colors on ordered distinct pairs #
A PairColorSystem colors ordered pairs of distinct vertices. Its palette carries an
involution describing how colors change when the vertices are exchanged. This permits both
symmetric colors and genuinely oriented colors in the lower skeleton of a hypergraph complex.
PairColorSystem.colorOfPair extends the coloring to all vertex pairs with values in Option:
only diagonal pairs have color none. PairColorSystem.ofRaw makes any directed coloring
coherent by recording its colors in both orientations, using the product palette.
PairColorSystem.relabel renames the palette along an equivalence.
PairColorSystem.split refines a coloring by a symmetric labelling of the unordered pairs.
PairColorSystem.comap restricts a coloring along a vertex embedding, preserving the palette.
coordPair extracts the ordered distinct pair of two coordinates of an injective tuple, and
card_filter_coordPair_mem_le counts the injective triples with a coordinate pair in a given set.
A coloring of ordered distinct pairs, coherent with an involution of the palette.
The color of an ordered distinct pair.
- rev : κ → κ
Palette reversal.
- rev_involutive : Function.Involutive self.rev
Reversing a color twice recovers it.
Exchanging the vertices reverses their color.
Instances For
The total pair color, with none exactly on the diagonal.
Instances For
Off the diagonal, the total color is the original color.
Exchanging vertices applies palette reversal to the total color.
A reversed pair has the reversed color exactly when the original pair has that color.
Rename the palette of a coherent coloring along an equivalence, conjugating the reversal.
Instances For
Split a coherent pair coloring by a symmetric labelling of the unordered vertex pairs: the
color of an ordered distinct pair (u, v) becomes its original color together with the label
of s(u, v). Reversal reverses the original color and keeps the label.
Instances For
The total split color is the total original color together with the label of the pair.
Restrict a coherent pair coloring along a vertex embedding. The palette and its reversal are unchanged.
Instances For
The color of a coordinate pair is the total pair color of the two coordinates.
The injective triples whose coordinate pair on the roles i and j lies in E are at most
|E| |V| many: such a triple is determined by that pair and its third coordinate k.