k-Path #
Cslib.Complexity.LongPath is the decision version of Longest Path with the length as parameter
[CyganEtAl2015, Section 5.2]: the instances ⟨G, k⟩ (Cslib.Complexity.LongPathInstance, encoded
by Cslib.Complexity.encLongPath) such that the graph G has a simple path on k of its
declared vertices. A path is a duplicate-free list of declared vertices in which consecutive
vertices are adjacent (Cslib.Complexity.Graph.IsVertexPath); for k = k' + 1 these are the paths
of length k' of Mathlib's SimpleGraph.Walk on the induced graph
(Cslib.Complexity.mem_LongPath_succ_iff). The target k = 0 is accepted by the empty path.
Main definitions #
Cslib.Complexity.LongPathInstance,Cslib.Complexity.encLongPath: k-Path instances and their binary encoding.Cslib.Complexity.Graph.IsVertexPath: a path given by its list of vertices.Cslib.Complexity.LongPath: graphs with a path onkvertices.
Main results #
Cslib.Complexity.Graph.IsVertexPath.length_le: a path has at most as many vertices as the distinct declared vertices.Cslib.Complexity.mem_LongPath_succ_iff:⟨G, k + 1⟩ ∈ LongPathexactly when the induced graph has a path (SimpleGraph.Walk.IsPath) of lengthk.
References #
A path has at most as many vertices as the distinct declared vertices.
The empty list is a path.
The tuple of the fields of encLongPath.
Encoding of LongPathInstance as (graph, target) with target in binary.
k-Path (the decision version of Longest Path) [CyganEtAl2015, Section 5.2]: the
instances ⟨G, k⟩ such that G has a path on k vertices.
A graph has no path on more vertices than its distinct declared vertices.
Paths on k + 1 vertices are paths of length k of Mathlib's SimpleGraph.Walk on the
induced graph.