Bijection_between_Prufer_Sequences_and_Labeled_Trees
Provedcombinatoricsgraph-theoryproofwiki
There is a one-to-one correspondence between Prüfer sequences of length n-2 over {1,...,n} and labeled trees on n vertices.
Preamble
import Mathlib.Analysis.Complex.Basic
Formal statement
theorem Bijection_between_Prufer_Sequences_and_Labeled_Trees (n : ℕ) (hn : n ≥ 2) : Fintype.card (Fin (n - 2) → Fin n) = n ^ (n - 2) := by sorry
Source