Components of a graph of maximum degree two #
exists_maxPath: through every vertex x there is a path p 0, …, p n (injective, consecutive
vertices adjacent) of greatest length. If all degrees are at most 2, its vertices are closed under
adjacency (maxPath_closed), and every edge between them joins consecutive vertices, or p 0 and
p n (maxPath_adj): the component of x is a path or a cycle.
def
LeanPool.BalancedEdgeColourings.Bkls.Comp.IsPathFn
{E : Type u_1}
(L : SimpleGraph E)
(n : ℕ)
(p : ℕ → E)
:
p 0, …, p n is a path of L.
Equations
Instances For
theorem
LeanPool.BalancedEdgeColourings.Bkls.Comp.IsPathFn.le_card
{E : Type u_1}
[Fintype E]
(L : SimpleGraph E)
{n : ℕ}
{p : ℕ → E}
(h : IsPathFn L n p)
:
theorem
LeanPool.BalancedEdgeColourings.Bkls.Comp.maxPath_head
{E : Type u_1}
{L : SimpleGraph E}
{n : ℕ}
{p : ℕ → E}
{x : E}
(hp : IsPathFn L n p)
(hx : ∃ i ≤ n, p i = x)
(hmax : ∀ (n' : ℕ) (p' : ℕ → E), IsPathFn L n' p' → (∃ i ≤ n', p' i = x) → n' ≤ n)
{y : E}
(hy : L.Adj (p 0) y)
:
∃ j ≤ n, p j = y
Every neighbour of the first vertex lies on the path.
theorem
LeanPool.BalancedEdgeColourings.Bkls.Comp.maxPath_last
{E : Type u_1}
{L : SimpleGraph E}
{n : ℕ}
{p : ℕ → E}
{x : E}
(hp : IsPathFn L n p)
(hx : ∃ i ≤ n, p i = x)
(hmax : ∀ (n' : ℕ) (p' : ℕ → E), IsPathFn L n' p' → (∃ i ≤ n', p' i = x) → n' ≤ n)
{y : E}
(hy : L.Adj (p n) y)
:
∃ j ≤ n, p j = y
Every neighbour of the last vertex lies on the path.
theorem
LeanPool.BalancedEdgeColourings.Bkls.Comp.interior_adj
{E : Type u_1}
[Fintype E]
{L : SimpleGraph E}
[DecidableRel L.Adj]
(hdeg : ∀ (v : E), L.degree v ≤ 2)
{n : ℕ}
{p : ℕ → E}
(hp : IsPathFn L n p)
{j : ℕ}
(hj0 : 0 < j)
(hjn : j < n)
{y : E}
(hy : L.Adj (p j) y)
:
In a graph of maximum degree 2, an interior vertex of a path has no other neighbours.
theorem
LeanPool.BalancedEdgeColourings.Bkls.Comp.maxPath_closed
{E : Type u_1}
[Fintype E]
{L : SimpleGraph E}
[DecidableRel L.Adj]
(hdeg : ∀ (v : E), L.degree v ≤ 2)
{n : ℕ}
{p : ℕ → E}
{x : E}
(hp : IsPathFn L n p)
(hx : ∃ i ≤ n, p i = x)
(hmax : ∀ (n' : ℕ) (p' : ℕ → E), IsPathFn L n' p' → (∃ i ≤ n', p' i = x) → n' ≤ n)
{j : ℕ}
(hj : j ≤ n)
{y : E}
(hy : L.Adj (p j) y)
:
∃ k ≤ n, p k = y
The path is closed under adjacency.
theorem
LeanPool.BalancedEdgeColourings.Bkls.Comp.maxPath_adj
{E : Type u_1}
[Fintype E]
{L : SimpleGraph E}
[DecidableRel L.Adj]
(hdeg : ∀ (v : E), L.degree v ≤ 2)
{n : ℕ}
{p : ℕ → E}
(hp : IsPathFn L n p)
{i j : ℕ}
(hij : i < j)
(hjn : j ≤ n)
(hadj : L.Adj (p i) (p j))
:
The edges between path vertices join consecutive vertices, or the two ends.