Elegant algorithm for A140717
Statement
• Let be A140717 (i.e., triangle read by rows: is the number of Dyck paths of semilength such that sum of peakheights of - number of peaks of equals ()). Here ordinary generating functions is where
• Let be the -th row polynomial of . In other words,
• Let
• Start with vector of length with elements (that is, ), then set and for from to and for from to apply (here square brackets mean that instead of sequentially assigning and then , we reserve their values (for example, as ) and then assign them in any order) and (after ending each cycle for ).
I conjecture that after the whole …
Posed by user231922 · nt.number-theory, co.combinatorics, sequences-and-series, algorithms
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-477465.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-477465.lean
import Mathlib /-! # Elegant algorithm for A140717 Source: https://mathoverflow.net/questions/477465 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_477465 -- definitions the statement needs (no sorry, no axiom) theorem main : sorry := by sorry end OMA.S_mo_477465