The edge-reduction construction #
This file formalizes the bipartite graph B(H) used in Lemma 4.1 of the draft. An edge between
the two copies of the vertex set records either equality or adjacency in H.
Lean Pool port of wewantmoore commit d59bd80ea93fabb9faf769e790ab47692645e022. The port adds a namespace and adapts proofs to the current Mathlib APIs and repository style.
Equality or adjacency in a simple graph (the reflexive closure of adjacency).
Equations
- MooreBound.DegreeDiameter.Linked H x y = (x = y ∨ H.Adj x y)
Instances For
The graph B(H) from the draft. Its two parts are the two summands of V ⊕ V.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The edge of B(H) represented in the draft by [x,y].
Instances For
B(H) raises the maximum-degree bound by exactly one.
If every vertex of H has degree Delta, then the paper's graph B(H) has exactly
|V(H)| * (Delta + 1) edges.
Every edge of B(H) has a unique orientation from the left part to the right part.
Two represented edges with the same left endpoint have line-graph distance at most one.
Two represented edges with the same right endpoint have line-graph distance at most one.
A route permits stationary steps as well as graph edges. It is indexed by its exact length; this is the formal counterpart of the padded sequences in the paper's proof of Lemma 4.1.
- nil {V : Type u} {H : SimpleGraph V} (x : V) : Route H x x 0
- cons {V : Type u} {H : SimpleGraph V} {x y z : V} {n : ℕ} (hxy : Linked H x y) (tail : Route H y z n) : Route H x z n.succ
Instances For
Regard a graph walk as a route allowing both adjacency and stationary steps.
Equations
Instances For
The route of the specified length that stays at one vertex.
Equations
Instances For
Concatenate routes. The length index is written in this order so the defining equations reduce without arithmetic casts when recursing through the first route.
Equations
- (MooreBound.DegreeDiameter.Route.nil x).append q = q
- (MooreBound.DegreeDiameter.Route.cons h p).append x✝ = MooreBound.DegreeDiameter.Route.cons h (p.append x✝)
Instances For
Pad an ordinary graph walk by stationary steps to any prescribed larger length.
Equations
- MooreBound.DegreeDiameter.Route.padWalk H p k hp = ⋯ ▸ (MooreBound.DegreeDiameter.Route.ofWalk H p).append (MooreBound.DegreeDiameter.Route.stay H y (k - p.length))
Instances For
Compute both alternating edge endpoints by structural recursion on the route. The two functions record which coordinate is replaced first.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Follow a route by first replacing the left coordinate of a represented bipartite edge.
Equations
- MooreBound.DegreeDiameter.zigFirst H p a ha = (MooreBound.DegreeDiameter.zigEndpoints H p).1 a ha
Instances For
Follow a route by first replacing the right coordinate of a represented bipartite edge.
Equations
- MooreBound.DegreeDiameter.zigSecond H p b hb = (MooreBound.DegreeDiameter.zigEndpoints H p).2 b hb
Instances For
Both alternating coordinate routes cost no more than one line-graph step per route step.
A diameter bound in H supplies an exact-length padded route between every two vertices.
Pointwise distance form of Lemma 4.1.
Lemma 4.1 in bounded-diameter form. This formulation also handles empty vertex and edge types without adding nonemptiness hypotheses.
Lemma 4.1 exactly as an inequality of extended diameters.