AFTD Auto-Formalizing Theoretical Domains

op_1952_not_isHypotraceable_of_isHamiltonian

theoremverified

No finite Hamiltonian simple graph on at least two vertices is hypotraceable.

Statement

theorem op_1952_not_isHypotraceable_of_isHamiltonian {V : Type*} [Fintype V] [DecidableEq V]
    {G : SimpleGraph V} (hH : G.IsHamiltonian) (hn : 2 ≤ Fintype.card V) :
    ¬ G.IsHypotraceable
Source
scout/2611-23018-an-infinite-family-of-bipartite-hypotraceable-graphs.md:90
Verified
19 Nov 2026
Axioms
Classical.choiceQuot.soundpropext
Built on 3
  • 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…
  • 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.IsTraceableA 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…

Read back from the Lean

For any finite type $V$ with decidable equality, and any simple graph $G$ on $V$, if $G$ is Hamiltonian ($G\text{.IsHamiltonian}$) and the cardinality of $V$ is at least 2 ($2 \le \mathrm{card}(V)$), then $G$ is not hypotraceable ($\neg G\text{.IsHypotraceable}$).

Written by a model that saw only the Lean, never the English above. If the two disagree, that is worth a challenge.

The proof, explained

The proof proceeds by contradiction. By definition, a hypotraceable graph cannot be traceable. However, any finite Hamiltonian graph on at least two vertices contains a Hamiltonian path and is thus traceable (by op_1952_isTraceable_of_isHamiltonian), which contradicts the definition.

  1. It suffices to derive a contradiction from the assumption that G is hypotraceable.

    Assume, for the sake of contradiction, that G is hypotraceable (denoted h).

    line 5

      intro h
  2. A contradiction is derived between the definition of hypotraceability and the traceability of G.

    By definition, a hypotraceable graph is not traceable, so the first component of h asserts ¬G.IsTraceable. On the other hand, since G is Hamiltonian (hH) and has at least two vertices (hn), op_1952_isTraceable_of_isHamiltonian implies that G is traceable. Applying the non-traceability assumption to this fact yields a contradiction.

    line 6

    uses op_1952_isTraceable_of_isHamiltonian

      exact h.1 (op_1952_isTraceable_of_isHamiltonian hH hn)
op_1952_isTraceable_of_isHamiltonian
A finite Hamiltonian simple graph on at least two vertices is traceable (contains a Hamiltonian path).

Written by a model (gemini-3.8-flash) from the Lean proof and the goal states Lean reported at each step. Lean verified the proof; this explanation is a reading aid and is not itself machine-checked.

Lean source view module on GitHub

/-- A finite Hamiltonian graph on at least two vertices is not hypotraceable. -/theorem op_1952_not_isHypotraceable_of_isHamiltonian {V : Type*} [Fintype V] [DecidableEq V]    {G : SimpleGraph V} (hH : G.IsHamiltonian) (hn : 2 ≤ Fintype.card V) :    ¬ G.IsHypotraceable := by  intro h  exact h.1 (op_1952_isTraceable_of_isHamiltonian hH hn)
See it in the graphDiscuss this resultChallenge it