Lemma: Agent21_GracefulPath.pathGraph_graceful

Every path graph pathGraph (n+1) (a path with n edges, vertices 0..n) has a graceful labeling, stated in exactly the form of the body of Corpus.WikipediaGracefulLabeling.graceful_tree_conjecture for T = pathGraph (n+1): an injective f into {0..m} whose edge differences are exactly {1..m}, m the number of edges. Witness: zig-zag labeling 2k -> k, 2k+1 -> n-k. A known special case, not a proof of the conjecture.

Exact formal statement

∀ (n : Nat),
  let T := SimpleGraph.pathGraph (HAdd.hAdd.{0, 0, 0} n 1);
  have m := Finset.card.{0} (SimpleGraph.edgeFinset.{0} T);
  Exists.{1} fun f =>
    And (Function.Injective.{1, 1} f)
      (And (∀ (v : Fin (HAdd.hAdd.{0, 0, 0} n 1)), LE.le.{0} (f v) m)
        (Eq.{1}
          (Finset.image.{0, 0}
            (fun e =>
              DFunLike.coe.{1, 1, 1} Sym2.lift.{0, 0}
                (Subtype.mk.{1} (fun u v => (HSub.hSub.{0, 0, 0} (Nat.cast.{0} (f u)) (Nat.cast.{0} (f v))).natAbs) ⋯)
                e)
            (SimpleGraph.edgeFinset.{0} T))
          (Finset.Icc.{0} 1 m)))

This is a published formal lemma. Its scope is the exact statement above.

Environment availability: available.

Public JSON record