AFTD Auto-Formalizing Theoretical Domains

simple_graph_longest_cycles_card_eq

theoremverified

Any two longest cycles of a simple graph have the same number of vertices.

Statement

theorem simple_graph_longest_cycles_card_eq {V : Type*} {G : SimpleGraph V} (C D : G.Subgraph) (hC : simple_graph_is_longest_cycle C) (hD : simple_graph_is_longest_cycle D) : C.verts.ncard = D.verts.ncard
Source
step towards k_connected_longest_cycles_intersection_bound
Verified
24 Nov 2026
Axioms
Classical.choiceQuot.soundpropext
Built on 2

Lean source view module on GitHub

/-- Any two longest cycles of a simple graph have the same vertex cardinality. -/
theorem simple_graph_longest_cycles_card_eq {V : Type*} {G : SimpleGraph V} (C D : G.Subgraph) (hC : simple_graph_is_longest_cycle C) (hD : simple_graph_is_longest_cycle D) : C.verts.ncard = D.verts.ncard := by
  exact le_antisymm (hD.2 C hC.1) (hC.2 D hD.1)
See it in the graphDiscuss this resultChallenge it