Left to Solve
Problems / MathOverflow (not formalized)

Is there a distance function on Dyck/Tamari words of arbitrary length?

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

Statement

Consider sequences of well-formed parentheses (or up/down sequences) of the type counted by the Catalan numbers. See http://www-math.mit.edu/~rstan/ec/catalan.pdf These are sometimes called Dyck words or Tamari sequences. The first several are (), (()), ()(), ((())), (()()), (())(), ()(()), and ()()().

For fixed length, these words can be placed in binary trees or associohedra, and there are distance measurements based on polyhedral geometry and rotation in binary trees: See https://dx.doi.org/10.1090%2FS0894-0347-1988-0928904-4 and http://arxiv.org/abs/1207.6296 and http://link.springer.com/book/10.1007/978-3-0348-0405-9

Question: Is there a well-defined distance between words of different length?

E.g., I'd like a distance measurement for which () is closer to (()()) than to ()()() because the missing pieces are deeper. In my context, deeper means smaller. The distance measurement should reproduce those cited above when the word-lengths match. I hope that this is possible with discretized hyperbolic geometry or just binary rotations combined with an appropriately weighted Hamming distance.

I'm not terribly familiar with this field and my basic lit search has come up dry. …

Posed by Abraham Smith · co.combinatorics, catalan-numbers

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

import Mathlib

/-!
# Is there a distance function on Dyck/Tamari words of arbitrary length?

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

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

theorem main : sorry := by
  sorry

end OMA.S_mo_218280