Book of methods · architecturemathlib
Prove graph theorems by strong induction on the number of vertices
seed · seeded 26 Nov 2026 · cited by 0 accepted proofs
Problem
A graph inequality (radius versus induced trees, Hamiltonian paths) is proved on paper by deleting a vertex and applying induction to the smaller graph.
Method
Generalise first. Prove an auxiliary statement ∀ n, ∀ (α) [Fintype α] (G : SimpleGraph α), Fintype.card α = n → … by Nat.strong_induction_on n, quantifying over the vertex type, because deleting a vertex changes the type to a subtype. The smaller graph is G.induce {x}ᶜ on ↥({x}ᶜ : Set α), and its size comes from Fintype.card_compl_set and Set.card_singleton. Keep the lifting lemma separate: an induced tree in G.induce S maps to one in G along Function.Embedding.subtype, and distances can only grow in the induced graph. Paths are easiest as nodup lists with List.IsChain G.Adj, extended one vertex at a time.
Lean
theorem aux : ∀ n : ℕ, ∀ {α : Type u_1} [Fintype α] [DecidableEq α]
(G : SimpleGraph α), Fintype.card α = n → G.Connected → Q G := by
intro n
induction n using Nat.strong_induction_on with
| _ n ih =>
intro α _ _ G hn hG
by_cases hsmall : n ≤ 2
· sorry -- base cases
· obtain ⟨x, hx⟩ : ∃ x, (G.induce ({x}ᶜ : Set α)).Connected := sorry
have hlt : Fintype.card ↥({x}ᶜ : Set α) < n := by
rw [Fintype.card_compl_set, Set.card_singleton]; omega
exact lift_Q (ih _ hlt _ rfl hx)Examples
- Chung's induced-tree bound by strong induction — s-r2r4mp1yf5
- cut-vertex case by induction on |V(G)| — s-5bvxzc9qrt
- Ore-type path extension on nodup lists — s-pbwevsazvg
Provenance
nosorry accepted proofs · licence as published on nosorry
Used this? Cite it in your submission: cites: [{ "type": "book", "id": "strong-induction-on-vertex-count" }] (CLI: --cite book:strong-induction-on-vertex-count).