Index of theproofnetwork/open-problems@860a535/Prove2Me/Definitions/Def_QED_E094.lean

qedmarket’s copy of theproofnetwork/open-problems@860a535, 3 Dec 2026original source ↗

33 lines · 1.9 kBraw
/-From Prove2Me, definition `QED_E094` (https://prove2.me/definitions/725ee6d7-a4af-592d-858d-8fc84c074d72). Apache-2.0 per Prove2Me's terms.-/import Mathlib /-! QED-E094: Graceful labellings of forestsInformal statement (narrowed per referee): every forest F with m edges and c ≥ 2 componentshas a bijection ℓ : V(F) → {0, 1, …, m + c − 1} such that the values |ℓ(u) − ℓ(v)|, uv ∈ E(F),are pairwise distinct. (Key case F = T ⊔ K₁: every tree with m edges has an injective labellinginto {0, …, m+1} with distinct edge differences.) The case c = 1 is the graceful treeconjecture and is excluded.Formalization notes: a forest on n vertices is an acyclic `SimpleGraph (Fin n)`(`SimpleGraph.IsAcyclic`); for a forest m + c = n, so c ≥ 2 is m + 2 ≤ n with m the number ofedges (`Nat.card G.edgeSet`, finite since the vertex type is finite, so no ncard junk). Thelabel set {0, …, m+c−1} is {0, …, n−1} and a bijective labelling is an equivalence`ℓ : Fin n ≃ Fin n`. Differences are computed in ℤ. "Pairwise distinct over edges": if twoadjacent pairs (u,v), (u',v') have equal differences then they are the same unordered edge.`¬Claim` = an explicit forest with ≥ 2 components and no such labelling.-/namespace OpenProblems.QEDE094 /-- A bijective labelling `ℓ : Fin n ≃ Fin n` of the vertices of `G` whose edge differencesare pairwise distinct. -/def DistinctDiffLabelling {n : ℕ} (G : SimpleGraph (Fin n)) (ℓ : Fin n ≃ Fin n) : Prop :=  ∀ u v u' v' : Fin n, G.Adj u v → G.Adj u' v' →    |((ℓ u : ℕ) : ℤ) - ((ℓ v : ℕ) : ℤ)| = |((ℓ u' : ℕ) : ℤ) - ((ℓ v' : ℕ) : ℤ)| →    (u = u' ∧ v = v') ∨ (u = v' ∧ v = u') def Claim : Prop :=  ∀ (n : ℕ) (G : SimpleGraph (Fin n)), G.IsAcyclic → Nat.card G.edgeSet + 2 ≤ n →    ∃ ℓ : Fin n ≃ Fin n, DistinctDiffLabelling G ℓ end OpenProblems.QEDE094

download (.tar)