The Scarf path graph #
This file builds the graph G_i whose vertices are the colorful and typed
nearly-colorful rooms and doors of a fixed type i, and whose edges are
room-door incidences. Following a path in this graph between odd-degree vertices
is the combinatorial heart of the path-following proof of Scarf's lemma.
A room/door cell, represented as the pair (σ, C).
Equations
- IndexedLOrder.GiCell T I = (Finset T × Finset I)
Instances For
The room-type vertices of the graph G_i: colorful rooms and typed nearly-colorful rooms.
Equations
- IndexedLOrder.GiRoomVertex c i v = (IndexedLOrder.isColorful c v.1 v.2 ∨ IndexedLOrder.isRoom v.1 v.2 ∧ IndexedLOrder.isTypedNC c i v.1 v.2)
Instances For
The door-type vertices of the graph G_i: typed nearly-colorful doors.
Equations
- IndexedLOrder.GiDoorVertex c i v = (IndexedLOrder.isDoor v.1 v.2 ∧ IndexedLOrder.isTypedNC c i v.1 v.2)
Instances For
Vertices of G_i: the relevant rooms and doors of fixed type i.
Equations
- IndexedLOrder.GiVertex c i v = (IndexedLOrder.GiRoomVertex c i v ∨ IndexedLOrder.GiDoorVertex c i v)
Instances For
Edges of G_i: room-door incidence, made symmetric.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The Mathlib SimpleGraph whose vertices and edges are the graph G_i.
Equations
- IndexedLOrder.GiGraph c i = { Adj := IndexedLOrder.GiEdge c i, symm := ⋯, loopless := ⋯ }
Instances For
The finite neighbor set of a vertex in G_i.
Equations
- IndexedLOrder.GiNeighbors c i v = (IndexedLOrder.GiGraph c i).neighborFinset v
Instances For
Degree in G_i.
Equations
- IndexedLOrder.GiDegree c i v = (IndexedLOrder.GiNeighbors c i v).card
Instances For
Endpoint vertices of G_i.
Equations
- IndexedLOrder.GiEndpoint c i v = (IndexedLOrder.GiVertex c i v ∧ IndexedLOrder.GiDegree c i v = 1)
Instances For
A graph has degree at most two at each vertex.
Equations
- IndexedLOrder.simpleGraphDegreeAtMostTwo G = ∀ (v : α), G.degree v ≤ 2
Instances For
A connected component is represented by a Mathlib graph path.
Equations
Instances For
A connected component is represented by a Mathlib graph cycle.
Equations
Instances For
The literal "disjoint paths and cycles" component statement for a finite SimpleGraph.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The degree characterization of G_i: every vertex has degree one or two, and
the degree-one vertices are exactly the unique outside door of type i and
the colorful rooms.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The path-structure target for G_i: degree characterization plus the local
degree-at-most-two property used by path-following.
Equations
Instances For
The faithful component-level target for G_i: its connected components are
paths or cycles, and the endpoints of path components are exactly colorful
rooms except for the unique outside door of type i.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Generic graph-theoretic step 1: in a finite connected component of a graph of degree at most two, choose a path whose support is maximal inside that component.
Generic graph-theoretic step 2a: in a graph of degree at most two, a maximal component path has no neighbor outside its support. This is the point that rules out T-shaped components.
Generic graph-theoretic step 2b: if a component path has no edge escaping its support inside the component, then its support is the whole component.
A path whose support is exactly a component represents that component as a path.
Generic graph-theoretic theorem: every connected component of a finite graph whose vertices all have degree at most two is represented by either a path or a cycle.
Final graph structure statement for G_i: its components are paths or cycles,
and its endpoints are exactly the outside door of type i and the colorful
rooms.