Documentation

CslibFrontier.Foundations.Combinatorics.Quiver.Path.Chain

Paths as vertex-list chains #

For a quiver with at most one arrow between each pair, paths are equivalent to nonempty vertex-list chains with the same endpoints. This connects the path APIs used for min-isolation to the vertex lists used by reachability scans in #6747, preserving path identity and length.

theorem Quiver.Path.vertices_isChainFromTo {V : Type u_1} [Quiver V] {a b : V} (p : Path a b) :
List.IsChainFromTo (fun (u v : V) => Nonempty (u ⟶ v)) p.vertices a b

A path's vertices form a chain of inhabited arrows with the same endpoints.

theorem Quiver.Path.vertices_injective {V : Type u_1} [Quiver V] {a b : V} [∀ (u v : V), Subsingleton (u ⟶ v)] :

Without parallel arrows, the vertex list determines a path.

noncomputable def Quiver.Path.equivChain {V : Type u_1} [Quiver V] [∀ (u v : V), Subsingleton (u ⟶ v)] (a b : V) :
Path a b ≃ { l : List V // List.IsChainFromTo (fun (u v : V) => Nonempty (u ⟶ v)) l a b }

Paths without parallel arrows, represented by vertex lists with checked endpoints.

@[simp]
theorem Quiver.Path.equivChain_apply {V : Type u_1} [Quiver V] [∀ (u v : V), Subsingleton (u ⟶ v)] (a b : V) (p : Path a b) :
↑((equivChain a b) p) = p.vertices