AFTD Auto-Formalizing Theoretical Domains

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

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
See it in the graphDiscuss this resultChallenge it