Left to Solve
Problems / MathOverflow (not formalized)

Entangled permutations of a multiset

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

Statement

Let be a multiset of numbers of cardinality . Call a permutation of an -word. We say that an -word is entangled it cannot be written as a concatenation of two nonempty words such that and the sets of numbers/characters used in and are disjoint.

Examples: let .

The words 122123333, 112323332 are not entagled:

• 122123333 = 12212.3333

• 112323332 = 11.2323332

The words 123213332, 311322233 are entangled.

Question: given a multiset , how many entangled -words are there?

Of course, it is possible to find a horrible-looking formula. But I feel that this problem should have a nice answer, maybe in a form of a generating function of some sort.

EDIT:

Another way how one can view entangled -words: as lattice paths from to that avoid all extremal points of the box except for and .

Posed by Gejza Jenča · co.combinatorics

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-71022.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-71022.lean

import Mathlib

/-!
# Entangled permutations of a multiset

Source: https://mathoverflow.net/questions/71022
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_71022

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

theorem main : sorry := by
  sorry

end OMA.S_mo_71022