Proof that Dyck words are counted by Catalan numbers, by first return decomposition
Builds on Dyck wordCatalan numbersRule of sumRule of productBijection principleStrong induction
Proof
We show that the counts satisfy the Catalan recursion, and conclude by strong induction.
- For a natural number , let be the set of Dyck words of semilength , and let . These words have length over two letters, so is finite.
- For a word , let be its number of letters minus its number of letters . A word is a Dyck word exactly when and for every prefix of .
- The only word of length is the empty word, and it is a Dyck word. So .
- Fix a natural number , and let . Write for the prefix of of length . The set of with contains , so it has a least element .
- The first letter of is , since . For we have , by step 2 and the choice of .
- Each letter changes by or . Since and , letter is and .
- So , where consists of the letters to and of the letters after .
- The word is a Dyck word. Its prefixes satisfy by step 5, and by step 6.
- The word is a Dyck word. Its prefixes satisfy , because . Likewise .
- If has semilength , then has semilength , because has letters . So .
- Conversely, let , and , and let . Its prefixes have equal to , for a prefix of , or for a prefix of .
- All of these are at least , and . So .
- In this , the prefixes of lengths to have , and the prefix of length has . So , and step 7 recovers and .
- Hence is a bijection from onto the disjoint union over of the sets .
- By the bijection principle, the rule of sum and the rule of product, .
- The Catalan numbers satisfy and . We show for all by strong induction on .
- For , by step 3. For , assume for all . Then step 15 gives .
- Hence the number of Dyck words of semilength is for every natural number .
Idea
A nonempty Dyck word returns to level for a first time. Cutting it there writes it uniquely as with two shorter Dyck words. So the counts obey the same recursion and start value as the Catalan numbers.
Reading path
To understand this page from the ground up, read these 52 pages in order. The foundations come first. The path takes the proofs Proof that a composition of injections is injective, Proof that a function is bijective iff it has a two-sided inverse, Proof of the rule of product, Proof of strong induction from ordinary induction, Proof that a composition of surjections is surjective, Proof of the rule of sum, Proof of the bijection principle.
- Cardinality of a finite set definition
- Catalan numbers definition
- Definition by recursion concept
- Dyck word definition
- Element definition
- Mathematical induction concept
- Natural numbers object
- Peano axioms concept
- Proposition concept
- Set definition
- Successor function definition
- Conjunction definition
- Implication definition
- Predicate definition
- Empty set object
- Ordered pair definition
- Intersection definition
- Addition of natural numbers definition
- Existential quantifier definition
- The successor function is injective statement
- Universal quantifier definition
- Zero is not a successor statement
- Cartesian product definition
- Disjoint sets definition
- Subset definition
- Order on the natural numbers definition
- Uniqueness quantifier definition
- Binary relation definition
- Proof of strong induction from ordinary induction proof
- Function definition
- Strong induction statement
- Codomain definition
- Function composition definition
- Identity function definition
- Injective function definition
- Surjective function definition
- Left inverse definition
- Right inverse definition
- Proof that a composition of injections is injective proof
- Proof that a composition of surjections is surjective proof
- Bijective function definition
- Composition of injections is injective statement
- Composition of surjections is surjective statement
- Proof of the rule of sum proof
- Proof that a function is bijective iff it has a two-sided inverse proof
- Rule of sum statement
- Bijective iff it has a two-sided inverse statement
- Proof of the rule of product proof
- Proof of the bijection principle proof
- Rule of product statement
- Bijection principle statement
- Proof that Dyck words are counted by Catalan numbers, by first return decomposition proof
Where this leads
5 pages build on this one.
Further reading
- Web https://en.wikipedia.org/wiki/Catalan_number, Proof of the formula, Fifth proof
About this page
| Tag | CXC72Q81V9 |
|---|---|
| URI | m2://CXC72Q81V9 |
| Kind | proof |
| Writing | W0 stub |
| MSC | 05A15 |
| Proves | Dyck words are counted by Catalan numbers |
| Uses | Dyck word, Catalan numbers, Rule of sum, Rule of product, Bijection principle, Strong induction |
| Changed | 4 November 2026 |
Markdown · JSON · Edit on GitHub
What this page needs for W1
- an inventory row: the row of the inventory that the node accounts for (0 of 1)
The writing levels say how complete the text of a page is. They do not measure its truth.
What links here
No page links to this page yet.