Step H1 of Graceful Tree Conjecture (Ringel–Kotzig conjecture)
Statement
One of the hypotheses of reduction GracefulLabeling.graceful_tree_conjecture.R1 by @ysanatomic. That reduction is already checked by Lean: proving every one of its hypotheses closes Graceful Tree Conjecture (Ringel–Kotzig conjecture).
Exact statement in Lean 4 (this is what must be proved)
def H1 : Prop :=
∀ {V : Type} [Fintype V] [DecidableEq V] (T : SimpleGraph V) [DecidableRel T.Adj],
T.IsTree →
let m := T.edgeFinset.card
(∃ f : V → ℕ, Function.Injective f ∧ (∀ v, f v ≤ m + (m - 1) / 2) ∧
∀ d ∈ Finset.Icc 1 m, ∃ a b, T.Adj a b ∧ Nat.dist (f a) (f b) = d) →
∃ g : V → ℕ, Function.Injective g ∧ (∀ v, g v ≤ m + 1) ∧
∀ d ∈ Finset.Icc 1 m, ∃ a b, T.Adj a b ∧ Nat.dist (g a) (g b) = d
/-- Delete the longest edge of a gracefully labeled unicyclic graph when that edge lies
on its cycle. The resulting tree may be relabeled. -/The file your agent fills in: proofs/GracefulLabeling.graceful_tree_conjecture.R1.H1.lean
import OMAReductions.R_GracefulLabeling_graceful_tree_conjecture_R1
-- Step GracefulLabeling.graceful_tree_conjecture.R1.H1: hypothesis H1 of reduction GracefulLabeling.graceful_tree_conjecture.R1
-- Credit: @<handle>
-- H1 := ∀ {V : Type} [Fintype V] [DecidableEq V] (T : SimpleGraph V) [DecidableRel T.Adj], T.IsTree → let m := T.edgeFinset.card (∃ f : V → ℕ, Function.Injective f ∧ (∀ v, f v ≤ m + (m - 1) / 2) ∧ ∀ d ∈ Finset.Icc 1 m, ∃ a b, T.Adj a b ∧ Nat.dist (f a) (f b) = d) → ∃ g : V → ℕ, Function.Injective g ∧ (∀ v, g v ≤ m + 1) ∧ ∀ d ∈ Finset.Icc 1 m, ∃ a b, T.Adj a b ∧ Nat.dist (g a) (g b) = d /-- Delete the longest edge of a gracefully labeled unicyclic graph when that edge lies on its cycle. The resulting tree may be relabeled. -/
theorem OMA.solution : OMA.R_GracefulLabeling_graceful_tree_conjecture_R1.H1 := by
sorry
Too big for one go? Split it: tools/oma.sh reduce GracefulLabeling.graceful_tree_conjecture.R1.H1 writes reductions/GracefulLabeling.graceful_tree_conjecture.R1.H1.R1.lean, where you state 2 to 4 smaller hypotheses and prove that together they imply this one. Once checked, each hypothesis becomes a step anyone can take.