SimpleGraph.IsTraceable
def
A simple graph G on a vertex type V is traceable if it contains a Hamiltonian path, that is, a walk in G that visits every vertex of V exactly once.
Statement
def SimpleGraph.IsTraceable {V : Type*} [DecidableEq V] (G : SimpleGraph V) : Prop
- Defined in
- scout/2611-23018-an-infinite-family-of-bipartite-hypotraceable-graphs.md:90
- Verified
- 19 Nov 2026
- Axioms
- none listed
- Used by 4
- op_1952_not_isHypotraceable_of_isHamiltonianNo finite Hamiltonian simple graph on at least two vertices is hypotraceable.
- op_1952_isTraceable_of_isHamiltonianEvery finite Hamiltonian simple graph on at least two vertices is traceable, since the tail of any Hamiltonian cycle is a Hamiltonian path.
- SimpleGraph.IsHypotraceableA simple graph G on a vertex type V is hypotraceable if G is not traceable, but for every vertex v in V, the vertex-deleted subgraph G - v…
- exists_bipartite_hypotraceable_order_150There exists a 2-colorable hypotraceable simple graph on a finite vertex type of cardinality 150.
Read back from the Lean
Given a type V with decidable equality ([DecidableEq V]) and a simple graph G : SimpleGraph V, SimpleGraph.IsTraceable G is defined to hold if and only if there exist vertices u, v : V and a walk p : G.Walk u v such that p is Hamiltonian (p.IsHamiltonian).
Written by a model that saw only the Lean, never the English above. If the two disagree, that is worth a challenge.
Lean source view module on GitHub
/-- A simple graph is traceable if it admits a Hamiltonian path (a walk visiting each vertex once). -/ def SimpleGraph.IsTraceable {V : Type*} [DecidableEq V] (G : SimpleGraph V) : Prop := ∃ (u v : V) (p : G.Walk u v), p.IsHamiltonian