Lefebvre's variations, No. 180 — on a theme by Ringel: every tree on 8 vertices is graceful
ProvedLefebvreVariations.graceful_tree_eight_verticesThe graceful tree conjecture (Rosa 1967, Ringel--Kotzig) says every tree has a graceful labelling. This is the case of the trees on vertices, which have edges and so use all differences .
Formalization Note The statement is graceful_tree_conjecture with V = Fin 8: n := T.edgeFinset.card and f : Fin 8 → Fin (n+1) is injective with (T.edgeFinset.image (fun e => max (f e.out.1).val (f e.out.2).val - min …)).card = n.
Why this is a variation. This is a variation of the graceful tree conjecture (platform problem graceful_tree_conjecture, open), in the parent's own formulation with V = Fin 8 fixed: 23 trees, finite and checkable. It is a first non-trivial size beyond paths and stars. No formal link to the general conjecture is claimed.
Attribution. This statement belongs to Lefebvre's variations, a series proposed by Erwan Lefebvre: each variation plays an open problem of the platform at its first non-trivial size, so that it can be settled and then reused to attack the open problem itself.
import Mathlib set_option autoImplicit false
namespace LefebvreVariations
/-- Graceful tree conjecture (Rosa 1967, Ringel-Kotzig) for the 23 trees on 8 vertices, in the parent's formulation `graceful_tree_conjecture` with `V = Fin 8`: every such tree has an injective labelling of its vertices by `{0,..,7}` whose 7 edge differences are pairwise distinct. Checked by computer on all 23 trees on 8 vertices. Verified by computer for all trees with at most 35 vertices (Aldred and McKay 1998 up to 27; Fang, arXiv:1003.3045, 2010, up to 35).
Source: A. Rosa (1967); J. A. Gallian, "A dynamic survey of graph labeling", Electron. J. Combin., DS6 (cited from memory). -/
theorem graceful_tree_eight_vertices (T : SimpleGraph (Fin 8)) [DecidableRel T.Adj]
(hT : T.IsTree) :
let n := T.edgeFinset.card
∃ f : Fin 8 → Fin (n + 1),
Function.Injective f ∧
(T.edgeFinset.image (fun e =>
max (f e.out.1).val (f e.out.2).val -
min (f e.out.1).val (f e.out.2).val)).card = n := by
sorry
end LefebvreVariations