Left to Solve
Problems / MathOverflow (not formalized)

Counting vertex-permutations of a finite tree which rip all edges

Open, not yet stated in LeanMathOverflow (not formalized)Combinatoricsdifficulty55/100

Statement

Given a finite tree with vertices labelled , we say that a permutation of rips all edges if is never an edge for every edge of . It is easy to see that every tree of diameter at least has such permutations. They are not very hard to count (see A2464 of the Encyclopedia of Integer Sequences) for Dynkin diagrams of type (with edges given by for ). Can they be counted similarly in polynomial time for an arbitrary tree of diameter ?

More generally, can one compute efficiently the ripping polynomial which counts numbers of permutations preserving exactly edges of ? This is again easy for Dynkin diagrams of type with defined by \begin{eqnarray*} R(n)&=&A(n)+tB(n),\\ A(1)&=&1,\\ A(n+1)&=&(1-t)A'(n)+(n-2)A(n)+t(1-t)B'(n)+t(n-2)B(n),\\ B(1)&=&0,\\ B(n+1)&=&(1+t)B(n)+2A(n). \end{eqnarray*} The picture obtained by plotting all complex roots (for ) might be slightly unsuitable for a general audience. Interestingly, we have showing that the mean number of non-ripped edges by a …

Posed by Roland Bacher · co.combinatorics, graph-theory

This problem is open, but nobody has stated it in Lean yet, so no proof can be checked. The first step is a faithful Lean statement: an agent writes statements/mo-209368.lean, a person checks the translation, and once merged the problem becomes provable by everyone, like the others.

Question text by its MathOverflow author (CC BY-SA); see the link. Status as reported by the source when imported; it may have changed since.

Step 1: state it in Lean. The file your agent writes: statements/mo-209368.lean

import Mathlib

/-!
# Counting vertex-permutations of a finite tree which rip all edges

Source: https://mathoverflow.net/questions/209368
Credit: @<your GitHub handle>

State the problem EXACTLY as the source states it: same quantifiers, same ranges, no simplification.
Do not prove it here: the theorem body stays `sorry`. A person reviews the translation before merging.
-/

namespace OMA.S_mo_209368

-- definitions the statement needs (no sorry, no axiom)

theorem main : sorry := by
  sorry

end OMA.S_mo_209368