Line-graph colourings and decompositions into matchings #
The vertices of Mathlib's line graph are actual graph edges. A colour class therefore defines a matching subgraph with precisely the incident vertices, not a spanning subgraph with isolated vertices. Conversely, a partition of the edges into matching subgraphs defines a proper colouring of the line graph.
Neither construction requires a finite graph, a finite palette, or a default colour. Empty classes are allowed. These are classical equivalences of representations, not new graph-theoretic bounds.
A palette-indexed partition of the actual edges into Mathlib matchings. Distinct matchings may share vertices, but every edge belongs to exactly one.
- matching : C → G.Subgraph
The matching assigned to a colour; it may be empty.
- isMatching (c : C) : (self.matching c).IsMatching
Each colour class is a matching with no isolated vertices.
Every actual edge has a unique colour class.
Instances For
The subgraph formed by the edges with one specified line-graph colour.
Equations
Instances For
Membership in a matching class is exactly equality of the edge's colour.
Edges of the same colour have unique neighbours at each incident vertex.
A line-graph colouring partitions the original edges into matching subgraphs.
Equations
- K.matchingDecomposition = { matching := K.edgeMatching, isMatching := ⋯, partition := ⋯ }
Instances For
The unique class containing an actual edge. No default colour is required.
Equations
- D.edgeColour e = Classical.choose ⋯
Instances For
The chosen colour class contains the edge.
The edge belongs to a specified class precisely when it has that colour.
Each original edge is equivalent to its colour and its edge in that matching.
Equations
Instances For
The edge classes of distinct colours are disjoint, even when their vertices overlap.
The union of all matching classes is exactly the original edge set.
A decomposition into matchings gives a proper colouring of the line graph.
Equations
Instances For
Converting a decomposition to a colouring preserves each matching exactly.
The decomposition-to-colouring-to-decomposition round trip is exact.
The colouring-to-decomposition-to-colouring round trip is exact.
Proper line-graph colourings are equivalent to palette-indexed matching partitions.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Existence of a colouring on any palette is equivalent to a matching partition.
Edge colourability with at most k colours is equivalent to a decomposition
into k matchings; unused colours are represented by empty matchings.