Documentation

CslibFrontier.Foundations.Combinatorics.SimpleGraph.CubicEdgeColoring

Cubic graphs with a proper 3-edge-colouring #

A simple 3-regular graph with a proper 3-edge-colouring is determined by its three colour classes, which are perfect matchings: M.mate c v is the other end of the edge of colour c at v (Cslib.CubicEdgeColoring). The structure records exactly this: each M.mate c is a fixed-point-free involution, and the three partners of a vertex are distinct. Its graph M.toSimpleGraph is 3-regular (CubicEdgeColoring.isRegularOfDegree), and colouring each edge by its class (CubicEdgeColoring.edgeLabeling) is proper: the edges at a vertex have distinct colours (CubicEdgeColoring.edgeLabeling_injective).

For an assignment x : V → Bool, read as the set of vertices where it is true, the induced subgraph G_x contains colour c when some edge of colour c has both ends in x (CubicEdgeColoring.HasColor, characterised through the graph and the labelling by CubicEdgeColoring.hasColor_iff). The function f_G of [ArenasBroadrickLiewVanDenBroeck2026, Section 5.1] is true exactly when G_x contains at least one edge and at most two colours (CubicEdgeColoring.someButNotAllColors).

A graph is a balanced-cut γ-edge expander (Cslib.IsBalancedCutExpander) when every cut into two parts of at least |V| / 3 vertices each is crossed by at least γ |V| edges [ArenasBroadrickLiewVanDenBroeck2026, Section 5.2].

Main definitions #

Main results #

References #

structure Cslib.CubicEdgeColoring (V : Type u_1) :
Type u_1

A simple cubic graph with a proper 3-edge-colouring, given by its colour classes: mate c v is the other end of the edge of colour c at v.

  • mate : Fin 3 → V → V

    The other end of the edge of colour c at v.

  • mate_mate (c : Fin 3) (v : V) : self.mate c (self.mate c v) = v

    Each colour class is a matching.

  • mate_ne (c : Fin 3) (v : V) : self.mate c v ≠ v

    There are no loops.

  • mate_injective (v : V) : Function.Injective fun (c : Fin 3) => self.mate c v

    The three edges at a vertex go to distinct vertices: there are no parallel edges.

The simple graph of a cubic edge colouring: u and v are adjacent when they are joined by an edge of some colour.

theorem Cslib.CubicEdgeColoring.toSimpleGraph_adj {V : Type u_1} (M : CubicEdgeColoring V) {u v : V} :
M.toSimpleGraph.Adj u v ↔ ∃ (c : Fin 3), M.mate c u = v
theorem Cslib.CubicEdgeColoring.mate_eq_iff {V : Type u_1} (M : CubicEdgeColoring V) {c : Fin 3} {u v : V} :
M.mate c u = v ↔ M.mate c v = u
theorem Cslib.CubicEdgeColoring.color_unique {V : Type u_1} (M : CubicEdgeColoring V) {c c' : Fin 3} {u v : V} (h : M.mate c u = v) (h' : M.mate c' u = v) :
c = c'

The colour of an edge is determined by its ends.

The neighbours of v are its three partners.

noncomputable def Cslib.CubicEdgeColoring.color {V : Type u_1} (M : CubicEdgeColoring V) {u v : V} (h : M.toSimpleGraph.Adj u v) :
Fin 3

The colour of the edge between adjacent vertices.

theorem Cslib.CubicEdgeColoring.mate_color {V : Type u_1} (M : CubicEdgeColoring V) {u v : V} (h : M.toSimpleGraph.Adj u v) :
M.mate (M.color h) u = v
theorem Cslib.CubicEdgeColoring.color_eq_iff {V : Type u_1} (M : CubicEdgeColoring V) {u v : V} (h : M.toSimpleGraph.Adj u v) {c : Fin 3} :
M.color h = c ↔ M.mate c u = v

The edge colouring of the graph by colour classes.

theorem Cslib.CubicEdgeColoring.edgeLabeling_injective {V : Type u_1} (M : CubicEdgeColoring V) {v u w : V} (hu : M.toSimpleGraph.Adj v u) (hw : M.toSimpleGraph.Adj v w) (h : M.edgeLabeling.get v u hu = M.edgeLabeling.get v w hw) :
u = w

The colouring is proper: distinct edges at a vertex have distinct colours.

Colours of induced subgraphs and the function f_G #

def Cslib.CubicEdgeColoring.HasColor {V : Type u_1} (M : CubicEdgeColoring V) (x : V → Bool) (c : Fin 3) :

The subgraph induced by the vertices where x is true contains an edge of colour c.

Instances For
    @[instance_reducible]
    theorem Cslib.CubicEdgeColoring.hasColor_iff {V : Type u_1} (M : CubicEdgeColoring V) (x : V → Bool) (c : Fin 3) :
    M.HasColor x c ↔ ∃ (u : V) (v : V) (h : M.toSimpleGraph.Adj u v), x u = true ∧ x v = true ∧ M.edgeLabeling.get u v h = c

    HasColor through the graph and its edge colouring.

    The function f_G of [ArenasBroadrickLiewVanDenBroeck2026, Section 5.1]: the subgraph induced by x contains at least one edge and at most two colours.

    An assignment is an independent set when it contains no edge.

    Instances For
      @[instance_reducible]

      Independent sets contain no colour, so f_G is false on them.

      Crossing edges #

      theorem Cslib.CubicEdgeColoring.card_interedges {V : Type u_1} (M : CubicEdgeColoring V) [Fintype V] [DecidableEq V] (A : Finset V) :
      (M.toSimpleGraph.interedges A Aᶜ).card = ∑ c : Fin 3, {u ∈ A | M.mate c u ∉ A}.card

      Crossing edges by colour. The edges from A to its complement are counted by their ends in A and their colours.

      A graph is a balanced-cut γ-edge expander when every cut (A, Aᶜ) with both sides of at least |V| / 3 vertices is crossed by at least γ |V| edges.