Width of the peaks in a Dyck's path
Statement
I have a pretty simple question for which I was not able to find a so simple answer.
Introduction
I was playing around with some of the mathematical objects that can be enumerated by Catalan numbers. One of them are the famous strings of correctly matched parentheses.
Let be the set containing all correctly matched parentheses strings of length , and imagine there exists a bijective funcion mapping each of the strings in to the set of integers such that each string of length can be denoted as where .
Define now our function of interest as a function acting on the -th parenthesis of the following way:
· If the -th parentheses is "(", it takes the value .
· If the -th parentheses is ")", it takes the number of already matched "(" characters in the string to the closest unmatched "(" to its left plus one.
This can also be described by the following algorithm:
• Look at the parentheses in the -th position. If it is a "(", you output and the algorithm is finished. Otherwise, you continue to .
• Move one position to the left and check the parentheses …
Posed by user3141592 · co.combinatorics, closed-form-expressions
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-417221.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-417221.lean
import Mathlib /-! # Width of the peaks in a Dyck's path Source: https://mathoverflow.net/questions/417221 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_417221 -- definitions the statement needs (no sorry, no axiom) theorem main : sorry := by sorry end OMA.S_mo_417221