How statement and proof provenance work
The first chip identifies the source of the statement or construction; the second identifies the source of its local proof or verification.
- Literature-sourced: the exact statement appears in a cited source; only wording and notation differ.
- AI-adapted: a semantically identical restatement of literature-sourced material, modulo indexing, notation, and boundary cases adopted by the library.
- AI-generated: a genuinely novel statement formulated by AI, with no source for the claim itself.
These labels describe origin, not correctness: citations and verification chips remain separate evidence.
Lattice Paths and Catalan Numbers — Examples
1 · Prerequisites
- Binary Operations, Monoids, Groups and Subgroups
- Congruences, the Integers Modulo n and the Chinese Remainder Theorem
- Construction of the Natural Numbers
- Construction of the Real Numbers via Cauchy Sequences
- Construction of the Real Numbers via Dedekind Cuts
- Countability and Uncountability
- Determinants of Matrices over a Commutative Ring
- Divisibility, Greatest Common Divisors and Bézout's Identity
- Finite Counting, Factorials and Binomial Coefficients
- Formal Power Series
- Foundations of the Real Numbers for Analysis
- Group Actions, Orbits, Stabilisers and Cayley's Theorem
- Lattice Paths and Catalan Numbers
- Linear Independence, Bases and Dimension
- Linear Recurrences and Rational Generating Functions
- Polynomial Rings, the Division Algorithm and Roots
- Relations, Functions, and Quotients
- Rings, Subrings, Integral Domains and Fields
- Roots, Rational Powers, and Classical Inequalities
- Symmetric Groups, Cycle Decomposition and the Sign Homomorphism
- The ZFC Axioms and the Basic Set Constructions
- Vector Spaces, Linear Subspaces, Span and Direct Sums
2 · Summary
3 · Logical flowchart
4 · Definitions, theorems and proofs
None yet.
5 · Examples, counterexamples and false statements
The ten monotone lattice paths from to
Example
The ten monotone paths from to are exactly the length- words in with two steps. Grouped by the positions of the steps, they are:
| positions of the steps | step word |
|---|---|
EEENN | |
EENEN | |
EENNE | |
ENEEN | |
ENENE | |
ENNEE | |
NEEEN | |
NEENE | |
NENEE | |
NNEEE |
Facts & Assumptions
Verification
Every word in the table has length with three steps and two steps, so each is a monotone path from to .
Every monotone path from to has length with exactly two steps, so its step word appears in the table at the row indexed by those two positions.
The table has ten rows, which agrees with [L1] because .
The boundary cases of the theorem are visible too: there is one path from to , namely EEE, and one path from to , namely the empty path.
Remarks
- The table is the concrete instance of the subset bijection used in the proof of the general counting theorem: the path is determined by the positions of its north steps.
The five Dyck paths of semilength , with their height functions
Example
The five Dyck paths of semilength are:
| step word | height sequence |
|---|---|
UUUDDD | |
UUDUDD | |
UUDDUD | |
UDUUDD | |
UDUDUD |
Facts & Assumptions
Given: the Dyck paths of semilength .
is the number of Dyck paths of semilength (The Catalan number ).
Verification
Every word in the table has three up steps, three down steps, starts at height , ends at height , and never drops below height , so every row is a Dyck path of semilength .
Any Dyck path of semilength must begin with U; listing the five possible continuations that keep the height nonnegative gives exactly the five rows of the table and no others.
The table therefore has all the Dyck paths of semilength , so [L1] gives . This matches [L2], since and therefore .
Remarks
- The five words are the first nontrivial Catalan family large enough for the reflection, cycle-lemma and triangulation examples to display all members explicitly.
The five Dyck paths, balanced bracket words, binary trees and pentagon triangulations at semilength
Example
At semilength , the three Catalan families on this page match as follows.
| Dyck path | balanced brackets | binary tree | pentagon triangulation |
|---|---|---|---|
UDUDUD | ()()() | ||
UDUUDD | ()(()) | ||
UUDDUD | (())() | ||
UUDUDD | (()()) | ||
UUUDDD | ((())) |
Facts & Assumptions
Given: the five Dyck paths of semilength displayed in the table above.
Balanced bracket words are exactly the words with equal totals and nonnegative prefix balance ( is exactly the set of words of length over in which every prefix has at least as many as and the totals are equal); under , , these are exactly the step words of Dyck paths (Dyck paths of semilength ).
There is a bijection from the binary trees of size to the Dyck paths of semilength (There is a bijection for every ).
There is a bijection from the binary trees of size to the triangulations of the labelled pentagon (There is a bijection for every ).
Verification
The bracket column is obtained from the Dyck-path column by the letter substitution of [L1], so each row gives matching Dyck and bracket words.
The tree column is chosen so that the bijection of [L2] sends each listed binary tree to the Dyck path in the same row: UDUDUD corresponds to the right comb, UUUDDD to the left comb, and the three middle rows are the three mixed recursive shapes.
The triangulation column is the image of the tree column under [L3], with the two diagonals determined by the same recursive split. Thus each row records one object in each of the three Catalan families, and the rows are pairwise distinct.
Remarks
- The point of the table is not the shared count but the functions. The three bijections on the A page carry the first column to the remaining ones row by row.
The reflection bijection applied to
Example
Take the diagonal path with step word UDDUDU. Its height sequence is
The first visit to the level is at index . Reflecting the initial segment through the line changes the first four heights to
so the reflected path has step word DUUUDU and runs from to .
Facts & Assumptions
Given: the path UDDUDU.
If and , reflection sends a path from to that first visits level at to the path with heights for and for ; this is a bijection onto the paths from to (Reflecting the initial segment at the first visit to level ).
The Catalan count at semilength is (, The set of -element subsets and the binomial coefficient ).
Verification
The path UDDUDU starts at height , ends at height , and first reaches the level at the index .
Reflecting the heights through the line gives , so the reflected step word is DUUUDU; applying the same reflection to DUUUDU returns UDDUDU.
The count behind the example agrees with [L2]: there are diagonal paths from to , of them touch the level , and the remaining are the Dyck paths of semilength .
Remarks
- The reflected path is not a Dyck path; that is the whole point. The bijection removes exactly the paths that touch the forbidden level.
The ballot problem with three votes for and two for
Example
The ten orderings of three votes and two votes are:
Exactly two of them, AAABB and AABAB, keep candidate strictly ahead after
every vote.
Facts & Assumptions
Given: and .
The ballot theorem gives (Bertrand's ballot problem: for the orderings in which the first candidate is strictly ahead throughout satisfy ).
For , if counts the orderings in which the first candidate is never behind, then (The weak ballot count: for the orderings in which the first candidate is never behind satisfy ).
Verification
The ten words displayed above are exactly the words of length with three letters and two letters, so there are of them.
Reading the lead after each vote shows that only AAABB and AABAB stay strictly positive at every stage, so .
This agrees with [L1], since reads and therefore .
For the weak form with , the orderings AABB and ABAB are exactly the ones in which is never behind, so the weak count is ; that is and agrees with [L2].
Remarks
- The strict and weak counts differ because ties are allowed only in the second statement. At this size the difference is already visible.
The cycle lemma on the word
Example
Let
a word of length and weight . Its seven cyclic shifts and their partial sums are:
| shift | partial sums |
|---|---|
Facts & Assumptions
Given: the two words above and the weight-two word .
If every letter of a length- integer word is at most and its weight is , then exactly one starting index gives a cyclic shift whose nonempty partial sums are all positive (The cycle lemma (Dvoretzky–Motzkin): if every and , then exactly of the cyclic shifts of have all partial sums positive).
The cycle-lemma Catalan count gives (, a second derivation of the Catalan count).
Verification
In the table, only the second row has all partial sums strictly positive, so the word has exactly one good shift.
Deleting the leading from that good shift gives , which is the Dyck word UDUDUD of semilength .
This agrees with [L1] and [L2]: [L1] predicts one good shift, and [L2] reads , so .
The weight-two word has exactly the two good shifts and , so the general statement is visible too: the number of good shifts is the weight.
Remarks
- The good shift is the second row because the page's convention counts strict positivity of every partial sum, not nonnegativity.
The Catalan numbers through , from the recurrence and from the closed formula
Example
The Catalan numbers through are:
| from the recurrence | from | ||
|---|---|---|---|
Facts & Assumptions
Verification
Starting from , the recurrence [L1] gives successively , , , , and .
The central binomial coefficients in the third column are , , , , , and .
Dividing the third column by as [L2] prescribes gives exactly the second column again, so the two routes agree term by term.
Remarks
- The table is the finite check behind the three proofs on the A page: every one of them lands on the same sequence before any general theorem is applied.
All fourteen triangulations of the labelled hexagon
Example
Grouped by the split index of For and a triangulation of the -gon there is a unique with such that and are both chords of or sides, and splits along , the triangulations of the labelled hexagon are:
| triangulations | |
|---|---|
| , , , , | |
| , | |
| , | |
| , , , , |
Facts & Assumptions
Given: the labelled hexagon with vertices .
The split index on the closing side is unique (For and a triangulation of the -gon there is a unique with such that and are both chords of or sides, and splits along ).
The number of triangulations of the labelled hexagon is (, The Catalan number ).
Verification
Every diagonal set in the table has three pairwise non-crossing diagonals, so each row is a triangulation of the hexagon.
The four groups are disjoint because the split index of [L1] is unique, and the group sizes are , , and , so the table contains triangulations altogether.
This agrees with [L2], since . The same grouped count is the recursion .
Remarks
- The two extreme groups are the fan triangulations based at the vertices and , together with the four further triangulations on the corresponding pentagons.
The first coefficients of the Catalan generating function
Example
Up to degree ,
so
Facts & Assumptions
Given: the Catalan generating function .
( for , and for ).
Verification
Using the coefficients , the Cauchy product gives , so agrees with through degree , as [L1] says it should.
The displayed coefficients of are exactly those of [L3], so the closed form predicts modulo .
Squaring gives modulo , which matches [L2].
Remarks
- This is the finite coefficient check behind the formal closed form. The theorem on the A page proves the identity in all degrees; the example shows the first place where the numbers become recognisably Catalan.
A two-by-two determinant counting non-intersecting path pairs
Example
At , the two monotone paths from to are EN and NE, and
the two monotone paths from to are again EN and NE.
Facts & Assumptions
Given: the four paths above.
The count of non-intersecting pairs is (For the pairs of non-intersecting monotone paths and number , The set of -element subsets and the binomial coefficient ).
Verification
The four ordered pairs of paths are (EN,EN), (EN,NE), (NE,EN) and (NE,NE).
Exactly one of them, (NE,EN), meets at the lattice point ; the other three are non-intersecting.
Therefore the direct count is , which matches [L1] because .
Remarks
- This is the smallest instance in which the determinant count differs from the product of the individual path counts.
The tail-swap involution on a concrete intersecting pair
Example
Take the identity system with
where has step word NE and has step word EN. The two paths meet
at the lattice point .
Facts & Assumptions
Given: the intersecting pair above.
The intersecting-system involution swaps the tails at the first canonical intersection point and changes the permutation by a transposition (Tail-swapping is a sign-reversing involution on the intersecting systems).
Verification
The first common point of and is , reached after the first step in each path.
Splitting at , the prefixes are N and E, and the tails are E and N; swapping the tails therefore gives the new pair NN from to and EE from to .
The new pair carries the transposed endpoint assignment, and applying the same tail swap at again returns the original pair. That is exactly the involution property of [L1] in this concrete case.
Remarks
- The example shows why the meeting point has to be selected canonically. A different intersection choice would not necessarily be undone by a second application.
FALSE: the quotient is an integer only for small
Statement
False claim: the quotient
is an integer only for small values of .
Facts & Assumptions
Refutation
The first values of the quotient are at respectively, so the quotient keeps producing integers beyond the first few cases.
More generally, [L1] rewrites the quotient as for every natural number , and is a natural number by definition. So the quotient is an integer for every , not merely for small ones.
Remarks
- The point of the refutation is that the divisibility is proved by exhibiting a count. Once the quotient is , no separate arithmetic argument is needed.
FALSE: the monotone paths from to staying weakly below the diagonal are exactly half of all monotone paths
Statement
False claim: among the monotone paths from to , exactly half stay weakly below the diagonal .
Facts & Assumptions
Given: the case .
Replacing by and by gives a bijection in which diagonal height is for the corresponding monotone path (The two step sets describe the same objects: , is a bijection matching the diagonal with the level ).
Refutation
At there are monotone paths from to by [L2].
The weakly-below ones are exactly EENN and ENEN, so there are of them.
Half of the total would be , not , so the claim is false already at . The general reason is that some monotone paths cross the diagonal and therefore belong to neither weak half-plane, so the naive symmetry "below equals above equals half of all paths" breaks down.
Remarks
- The true count is , not . At that is , exactly as the two listed paths show.
FALSE: the Catalan numbers satisfy a constant-coefficient linear recurrence
Statement
False claim: the sequence of Catalan numbers satisfies a linear recurrence with constant coefficients.
Facts & Assumptions
Given: the Catalan numbers and their generating function.
A sequence over a field satisfies an eventual constant-coefficient linear recurrence exactly when its generating function is rational (A coefficient sequence is eventually linearly recurrent if and only if its formal generating function is rational).
The Catalan generating function is not rational ( is not a rational formal power series, so satisfies no eventual constant-coefficient linear recurrence).
The Catalan numbers satisfy with (, with ).
Refutation
If the false claim were true, [L1] would make the Catalan generating function rational.
That contradicts [L2].
The recurrence of [L3] does not rescue the false claim: it is a convolution recurrence, so the next term depends on products of earlier terms rather than on a fixed linear combination.
Remarks
- The tempting mistake is to see the word "recurrence" and forget to ask which kind. The Catalan sequence does have a recurrence, but not the rational-series kind.
A map from hexagon triangulations to size-four binary trees that is not injective
Statement refuted
Equal Catalan counts do not make a natural-looking rule injective. Define
by sending a triangulation of the labelled hexagon to the canonical comb tree determined only by its closing-side split index :
- if , take the tree whose left subtree has size and right subtree has size ;
- if , take the tree whose subtrees have sizes and ;
- if , take the tree whose subtrees have sizes and ;
- if , take the tree whose left subtree has size and right subtree has size ;
and in every case fill each nonzero subtree by the right comb of the required size.
Facts & Assumptions
Given: the two triangulations
Every triangulation of the hexagon has a unique closing-side split index (For and a triangulation of the -gon there is a unique with such that and are both chords of or sides, and splits along ).
A function is injective when equal outputs force equal inputs (Injection, surjection, bijection).
Counterexample
Both and are triangulations of the labelled hexagon, and both have the same closing-side split index : the side is present in each, and no index smaller than is available.
By the definition of , both triangulations therefore map to the same canonical size-four comb tree, namely the tree with empty left subtree and right comb of size . So .
The input triangulations are distinct because but . Hence equal outputs do not force equal inputs, so [L2] shows that is not injective.
Remarks
- The failure is deliberate: the rule remembers only the top split and then replaces the two sides by canonical combs, so it discards most of the triangulation.
The step set breaks the reflection argument
Statement refuted
The reflection argument on the A page depends on the step set with height changes . It does not extend unchanged to arbitrary step sets.
Facts & Assumptions
Given: the step set and the level .
A diagonal path with or meets the level somewhere (A diagonal path with or satisfies for some ).
For diagonal paths with steps and whose endpoints lie above the level and which first visit at some index , the initial segment up to may be reflected across the line to obtain the bijection of Reflecting the initial segment at the first visit to level .
For diagonal paths with steps and and endpoints strictly above a level, the reflection principle identifies paths touching that level with paths from the reflected starting height, and subtracts their count from the total (The reflection principle: paths from to staying strictly above level are counted by a difference of two binomial coefficients).
Counterexample
The one-step path from to with step starts above the level and ends below it, but its heights are only and , so it never has height . This path is outside [L1]'s diagonal-step hypothesis and shows that the conclusion of [L1] fails if that hypothesis is dropped.
Because the path of step 1.1 never visits the level , the first-visit reflection of [L2] is undefined on it. So the bijection on which the reflection count rests is absent.
The naive analogue of the count fails too. For these same steps there is no path from to , so the total count is and the count of paths staying strictly above is also ; but there is one path from to , namely UU. Illegally extending the subtraction pattern of [L3] would therefore give , which is not a count of paths.
Remarks
- The broken step is exactly the one hidden in the ordinary proof: when the height jump can skip over the forbidden level, "changes side" no longer means "meets the level first."
Sources
- C. Krattenthaler, "Lattice Path Enumeration", ch. 10 of the Handbook of Enumerative Combinatorics, §10.2
- A. Postnikov (notes by A. Lin), MIT 18.212 Algebraic Combinatorics, lecture of February 6, 2019
- D. Guichard, An Introduction to Combinatorics and Graph Theory, §3.5
- C. Krattenthaler, "Lattice Path Enumeration", ch. 10 of the Handbook of Enumerative Combinatorics, §10.3
- N. Dershowitz and S. Zaks, The Cycle Lemma and Some Applications
- A. Postnikov (notes by A. Lin), MIT 18.212 Algebraic Combinatorics, Spring 2019
- D. Guichard, An Introduction to Combinatorics and Graph Theory, Exercise 3.5.5
- C. Krattenthaler, "Lattice Path Enumeration", ch. 10 of the Handbook of Enumerative Combinatorics, Corollary 10.13.2
- C. Krattenthaler, "Lattice Path Enumeration", ch. 10 of the Handbook of Enumerative Combinatorics, §10.13
- C. Krattenthaler, "Lattice Path Enumeration", ch. 10 of the Handbook of Enumerative Combinatorics, §§10.2–10.3