Alphabeta Math
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.

✓ 59 results · all verified · 40 also independently AI-judged
Every result on this page is machine-checked by a proof checker and read in full and owner-audited; the judge is an additional, independent cross-model AI review of the proofs. The 19 not AI-judged were verified by owner audit (typically over a confirmed judge false positive), not failures.

Lattice Paths and Catalan Numbers

1 · Prerequisites

2 · Summary

Formal power series and coefficient extraction supply the algebraic language of the page, and the page uses the constant-one square root in Q⟦x⟧ exactly where the Catalan generating function needs it. The path counts rest on binomial coefficients as counts, while the cycle-lemma and Lindstrom-Gessel-Viennot sections use group actions, orbit-stabiliser, permutation sign and the Leibniz determinant to turn combinatorial sets into explicit formulas. These are the background tools that let the page move between path enumeration, free actions and generating functions without leaving finite combinatorics.

The development starts with lattice paths and the dictionary between monotone and diagonal pictures, then proves the reflection principle, the ballot theorems and the Dyck-path interpretation of the Catalan numbers. It then gives the Catalan count by reflection, by the cycle lemma and by the generating function, and uses those routes to derive Chung-Feller, Motzkin and Schröder identities, balanced bracket words, binary trees and polygon triangulations. The page closes with non-intersecting path systems and the lattice-path form of Lindstrom-Gessel-Viennot, so determinant arguments appear as another path-counting method rather than as a separate topic.

3 · Logical flowchart

4 · Definitions, theorems and proofs

DefinitionDefinition: AI-adaptedProof: Not applicablejudge pass (deepseek-v4-pro + gpt-5.6-terra)audited 2026-08-26Open item page →

Lattice paths, step sets and step words

Definition

Points of the plane are pairs of integers (The integers as equivalence classes of pairs of naturals), added componentwise:

(x,y)+(x′,y′):=(x+x′, y+y′),−(x,y):=(−x,−y).

Since (Z,+,0) is a commutative group (The integers form a commutative ring) and each monoid axiom holds one coordinate at a time, (Z×Z,+,(0,0)) is a commutative monoid (Semigroup and monoid). A natural number written where an integer is expected denotes its image under the embedding N→Z, k↦[(k,0)], of The naturals embed in the integers, which is injective and preserves addition, multiplication and the order; no symbol is written for it, so 2, n and ∣S∣ denote integers when they occur in an integer expression.

A step set is a finite subset S⊆Z×Z (The cardinality ∣A∣ of a finite set); its elements are steps.

Definition. Let n∈N and P∈Z×Z. A lattice path of length n with steps in S from P is a function v:{0,1,…,n}→Z×Z with v(0)=P and v(i)−v(i−1)∈S for every i with 1≤i≤n. It is a path from P to Q when moreover v(n)=Q. Write

LS(P;n):={ v:v is a lattice path of length n with steps in S from P },

and LS(P,Q;n) for the subset of those with v(n)=Q.

A path is nothing but this function. No geometry of the plane is used, no continuous curve is attached to it, and the points v(0),…,v(n) are the only data.

The length-zero case, stated rather than left implicit. For n=0 the domain {0} has one point and the condition on differences is vacuous, so LS(P;0) has exactly one element, the function v with v(0)=P. This is the empty path at P; it is a path from P to P, and it exists even when S=∅.

The step word. Words of length n over an alphabet are the functions {0,…,n−1}→S, and Sn denotes the set of them (Finite words, contiguous factors, avoidance and proper-prefix states). The step word of a path v∈LS(P;n) is the word w∈Sn with

wi−1:=v(i)−v(i−1)(1≤i≤n),

equivalently wj=v(j+1)−v(j) for 0≤j≤n−1. The step word of the empty path is the empty word.

The path traced by a word. Conversely let w∈Sn and P∈Z×Z. The path traced by w from P is

vw(i):=P+∑j<iwj(0≤i≤n),

the sum being the finite product of The product g0g1⋯gn−1 of a finite list in a monoid, by recursion, with the empty product (n=0) equal to the identity in the commutative monoid Z×Z, written additively. Its two defining clauses read ∑j<0wj=(0,0) and ∑j<i+1wj=∑j<iwj+wi, so

vw(0)=P,vw(i)=vw(i−1)+wi−1(1≤i≤n),

and vw is a lattice path of length n with steps in S from P, since each displayed difference is the letter wi−1∈S.

Concatenation. Let v be a path of length m from P to Q and let v′ be a path of length n from Q to R, with step words w and w′. Their concatenation v⋅v′ is the path of length m+n traced from P by the concatenated word ww′ (Finite words, contiguous factors, avoidance and proper-prefix states). The common endpoint condition ensures that its first m steps are v and its last n steps are v′. Concatenating on the left with the empty path at P, or on the right with the empty path at Q, changes nothing because εw=w=wε.

Remarks

  • Why the step set is required to be finite. Nothing in the definition of a path needs it; it is imposed because every count on this page is a count of words over S, and a finite S makes every Sn finite. If the finiteness requirement were relaxed, the converse would hold for n≥1; at n=0 the set S0 is the singleton containing the empty word for every S.

  • A path records where it starts. Two paths with the same step word and different starting points are different functions. Every set of paths written down here therefore fixes a start point, and translation from one start point to another is a separate statement each time it is used.

LemmaStatement: AI-adaptedProof: AI-adaptedprecheck passaudited 2026-08-26Open item page →

For each start point the step word is a bijection onto Sn

Statement

Let S be a step set, P∈Z×Z and n∈N. The map sending a lattice path to its step word is a bijection

Φ:LS(P;n)⟶Sn,

whose inverse sends w to the path vw traced by w from P (Lattice paths, step sets and step words). Consequently LS(P;n) is finite with

∣LS(P;n)∣=∣S∣ n,

the power being the natural-number exponentiation of Exponentiation of natural numbers, mn, and its agreement with the integer power in R.

Facts & Assumptions

Given: a step set S, a point P∈Z×Z and a natural number n.

[F1]

A lattice path of length n with steps in S from P is a function v:{0,1,…,n}→Z×Z with v(0)=P and v(i)−v(i−1)∈S for every i with 1≤i≤n; its step word is the word w∈Sn with wi−1=v(i)−v(i−1); and the path traced by w∈Sn from P satisfies vw(0)=P and vw(i)=vw(i−1)+wi−1 for 1≤i≤n (Lattice paths, step sets and step words).

[L1]

For f:A→B: f is a bijection if and only if there is a function g:B→A with g∘f=ΔA and f∘g=ΔB, and such a g is then unique (f:A→B is a bijection if and only if there is a function g:B→A with g∘f=ΔA and f∘g=ΔB; such a g is unique, equals the inverse relation f−1, and is itself a bijection).

[L2]

For finite sets A and B, the set AB of functions B→A is finite and ∣AB∣=∣A∣∣B∣ (The set AB of functions B→A between finite sets is finite, with ∣AB∣=∣A∣∣B∣).

[L3]

A property that holds at 0 and passes from every natural number to its successor holds at every natural number: if a property P satisfies P(0) and (P(n)⇒P(σ(n))) for all n, then P(n) holds for all n∈N (The principle of mathematical induction).

Proof

technique · direct
1.1F1

For v∈LS(P;n) and each i with 1≤i≤n the difference v(i)−v(i−1) lies in S, so Φ(v) is a function {0,…,n−1}→S, that is an element of Sn; for n=0 the domain is empty and Φ(v) is the empty word.

2.1F1L1L3step 1.1

Given w∈Sn, the traced path vw lies in LS(P;n) and its step word has j-th letter vw(j+1)−vw(j)=wj, so Φ(vw)=w; conversely, given v∈LS(P;n) with w=Φ(v), both v and vw take the value P at the index 0 and both satisfy u(i)=u(i−1)+wi−1 for 1≤i≤n, so the set of indices at which they agree contains 0 and contains i whenever it contains i−1, whence they agree throughout and vw=v. Thus w↦vw is a two-sided inverse of Φ and Φ is a bijection.

3.1L2step 2.1∎

Since S is finite and {0,…,n−1} is finite with n elements, Sn is finite with ∣Sn∣=∣S∣ n, and transporting along the bijection of step 2.1 gives that LS(P;n) is finite with the same cardinality. At n=0 both sides are 1, one empty path against the one empty word, and this holds also for S=∅; for S=∅ and n≥1 both sides are 0.

Remarks

  • What the lemma is for. Every count on this page is obtained by counting words and transporting the answer along this bijection, so the correspondence is proved once here and cited rather than re-established.

  • The start point is fixed throughout. The map Φ forgets P, and a step word alone therefore determines a path only after a start point has been named.

DefinitionDefinition: AI-adaptedProof: Not applicableaudited 2026-08-26Open item page →

Monotone lattice paths with steps E=(1,0) and N=(0,1)

Definition

Put E:=(1,0) and N:=(0,1). A monotone lattice path is a lattice path whose steps lie in the step set {E,N} with E=(1,0) and N=(0,1) (Lattice paths, step sets and step words). Write

M(P;ℓ):=L{E,N}(P;ℓ),M(P,Q):=⋃ℓ∈NL{E,N}(P,Q;ℓ),

so M(P,Q) is the set of monotone paths from P to Q of any length. The letters E and N are the two steps and are also used as the two letters of the alphabet of a step word.

Where a monotone path is after i steps. Let v∈M((a,b);ℓ) have step word w, and for 0≤i≤ℓ let

ν(i):=∣{ j∈N:j<i, wj=N }∣

be the number of N letters among the first i (The cardinality ∣A∣ of a finite set). Then

v(i)=(a+i−ν(i), b+ν(i))(0≤i≤ℓ).

Indeed ν(0)=0 and v(0)=(a,b); and if the formula holds at i−1 then v(i)=v(i−1)+wi−1, where wi−1=E gives ν(i)=ν(i−1) and raises the first coordinate by 1, while wi−1=N gives ν(i)=ν(i−1)+1 and raises the second coordinate by 1; in both cases the formula holds at i. Induction on i (The principle of mathematical induction) gives it for every i≤ℓ. Note ν(i)≤i, so the first coordinate is again a point of Z with a+i−ν(i)≥a.

Three consequences, recorded because every count below uses them.

(a) Both coordinates are nondecreasing along a monotone path, since i↦ν(i) and i↦i−ν(i) are both nondecreasing.

(b) The endpoint determines the length and the letter count. A path v∈M((a,b);ℓ) satisfies v(ℓ)=(c,d) if and only if ν(ℓ)=d−b and ℓ=(c−a)+(d−b).

(c) Existence. M((a,b),(c,d)) is nonempty exactly when a≤c and b≤d; in that case every one of its members has length (c−a)+(d−b), and the word E c−aN d−b traces one of them. Here c−a and d−b denote the natural numbers whose images under the embedding of N into Z are those differences.

Degenerate rectangles are included. Under the existence hypotheses a≤c and b≤d, if c=a then every step is N and M((a,b),(c,d)) has one element; likewise if d=b. If c=a and d=b its one element is the empty path at (a,b).

Remarks

  • "Monotone" names the conclusion of (a), not an extra hypothesis. The definition fixes a step set; the monotonicity of the coordinates is then forced and is proved above rather than assumed.

  • Why M(P,Q) may be written without a length. By (c) all its members have one and the same length, so no information is lost by suppressing it. For a step set in which two different lengths join the same two points this notation would be ambiguous, and it is not used there.

TheoremStatement: Literature-sourcedProof: AI-adaptedprecheck passjudge pass (deepseek-v4-pro + gpt-5.6-terra)audited 2026-08-26Open item page →

∣M((0,0),(m,n))∣=(m+nn)

Statement

For all m,n∈N the set M((0,0),(m,n)) of monotone lattice paths from (0,0) to (m,n) (Monotone lattice paths with steps E=(1,0) and N=(0,1)) is finite with

∣M((0,0),(m,n))∣=(m+nn),

the binomial coefficient of The set [A]k of k-element subsets and the binomial coefficient (nk):=∣[n]k∣. More generally, if a≤c and b≤d in Z and m,n∈N are the natural numbers with m=c−a and n=d−b, then

∣M((a,b),(c,d))∣=(m+nn).

Facts & Assumptions

Given: natural numbers m and n, and integers a≤c, b≤d in the second clause.

[F1]

A monotone lattice path is a lattice path whose steps lie in the step set {E,N} with E=(1,0) and N=(0,1) (Monotone lattice paths with steps E=(1,0) and N=(0,1)).

[F2]

For v∈M((a,b);ℓ) with step word w and ν(i)=∣{j∈N:j<i, wj=N}∣, one has v(i)=(a+i−ν(i), b+ν(i)) for 0≤i≤ℓ; hence v(ℓ)=(c,d) if and only if ν(ℓ)=d−b and ℓ=(c−a)+(d−b) (Monotone lattice paths with steps E=(1,0) and N=(0,1)).

[L1]

For a step set S, a point P and ℓ∈N, the map sending a lattice path to its step word is a bijection LS(P;ℓ)→Sℓ (For each start point the step word is a bijection onto Sn).

[L2]

For a finite set A and k∈N, [A]k is the set of k-element subsets of A, it is finite, and ∣[A]k∣=(∣A∣k) (The set [A]k of k-element subsets and the binomial coefficient (nk):=∣[n]k∣).

[L3]
[L4]

If A is finite and f:A→B is a bijection then B is finite and ∣B∣=∣A∣ (The cardinality ∣A∣ of a finite set).

Proof

technique · direct
1.1F1F2L1

Every member of M((0,0),(m,n)) has length m+n, and under the step-word bijection Φ of [L1] with S={E,N} and P=(0,0) the set M((0,0),(m,n)) corresponds exactly to the set W of words w∈{E,N}m+n with ∣{j<m+n:wj=N}∣=n.

2.1L2L3step 1.1construct

The map w↦T(w):={ j∈N:j<m+n, wj=N } carries W into the set of n-element subsets of {0,…,m+n−1}, and the map sending a subset T to the word wT with wjT=N for j∈T and wjT=E otherwise is a two-sided inverse of it, so it is a bijection of W onto that set of subsets.

3.1L2L4step 2.1

The set {0,…,m+n−1} has m+n elements, so its n-element subsets number (m+nn), and transporting along the two bijections of steps 1.1 and 2.1 makes M((0,0),(m,n)) finite of that cardinality.

4.1L3L4step 3.1algebra∎

For general endpoints, v↦v−(a,b) is a bijection M((a,b),(c,d))→M((0,0),(m,n)): subtracting a constant leaves every difference v(i)−v(i−1) unchanged, sends (a,b) to (0,0) and (c,d) to (m,n), and v↦v+(a,b) inverts it; so the two sets have the same cardinality (m+nn). At m=n=0 this is one empty path against (00)=1; at n=0 it is the single all-E path against (m0)=1; at n=1 it is the m+1 paths differing in the position of the one N step against (m+11)=m+1.

Remarks

  • The general-endpoint clause is not decoration. Every later count on this page is a count of paths between two points neither of which is the origin, and it is obtained from this clause rather than by repeating the argument.

  • Where the monotonicity is spent. Only in [F2]: it makes the endpoint determine the numbers of E- and N-steps and hence the length. A fixed start and a fixed step word always determine one endpoint, for every step set; what can fail for a step set containing negative steps is the converse assertion that the endpoint determines the letter counts used by this binomial count.

DefinitionDefinition: AI-adaptedProof: Not applicableaudited 2026-08-26Open item page →

Diagonal lattice paths with steps U=(1,1) and D=(1,−1), and the height function

Definition

A diagonal lattice path is a lattice path whose steps lie in the step set {U,D} with U=(1,1), D=(1,−1) (Lattice paths, step sets and step words). Write

W(P;n):=L{U,D}(P;n)

for the diagonal paths of length n from P.

Every diagonal path advances one unit in the first coordinate at each step. Both steps have first coordinate 1, so if v∈W((0,a);n) and x(i) denotes the first coordinate of v(i) then x(0)=0 and x(i)=x(i−1)+1 for 1≤i≤n; induction on i (The principle of mathematical induction) gives x(i)=i. Hence

v(i)=(i, h(i))(0≤i≤n)

for a unique function h:{0,1,…,n}→Z (The integers as equivalence classes of pairs of naturals), the height function of v. It satisfies

h(0)=a,h(i)−h(i−1)∈{1,−1}(1≤i≤n),

and conversely every such h is the height function of exactly one v∈W((0,a);n): the word w with wi−1=U when h(i)−h(i−1)=1 and wi−1=D otherwise is the only step word producing those heights, and step words correspond bijectively to paths (For each start point the step word is a bijection onto Sn). A diagonal path from (0,a) and its height function are therefore the same datum, and the two are used interchangeably below.

Height after i steps. With w the step word of v and

μ(i):=∣{ j∈N:j<i, wj=U }∣

the number of up-steps among the first i (The cardinality ∣A∣ of a finite set), one has

h(i)=a+μ(i)−(i−μ(i))=a+2μ(i)−i(0≤i≤n).

Indeed μ(0)=0 and h(0)=a; and if the formula holds at i−1, then wi−1=U raises h by 1 and μ by 1, while wi−1=D lowers h by 1 and leaves μ unchanged, so it holds at i. Induction on i finishes it.

Prescribing the endpoint. For b∈Z put

W((0,a),(n,b)):={ v∈W((0,a);n):h(n)=b },

which by the previous paragraph is the set of v whose step word has 2μ(n)=n+b−a. It is nonempty exactly when 2 divides n+b−a (Divisibility in Z: d∣a when a=dq for some integer q) and

−n≤b−a≤n,

the second condition being ∣b−a∣≤n, since ∣x∣ is x or −x according as x≥0 or x<0 (The absolute value ∣a∣ of an integer). For if such a v exists then 2μ(n)=n+b−a with 0≤μ(n)≤n, giving both conditions; and if they hold, then u:=μ(n) is forced to be the natural number with 2u=n+b−a, which satisfies 0≤u≤n, and the word UuD n−u traces such a path.

Levels. For c∈Z a diagonal path with height function h touches the level c when h(i)=c for some i with 0≤i≤n; it stays strictly above the level c when h(i)>c for every such i, and stays weakly above c when h(i)≥c for every such i.

Remarks

  • The two conditions on the endpoint are not interchangeable. The parity condition says which heights are reachable at all after n steps; the range condition says the height cannot move further than one unit per step. Dropping either leaves an empty set, and the count below is stated so that it returns 0 in both cases rather than being undefined.

  • The height function is the object, the path is the packaging. Every statement below about diagonal paths is a statement about h, and the pair (i,h(i)) is carried only so that the results of Lattice paths, step sets and step words apply unchanged.

LemmaStatement: AI-adaptedProof: AI-adaptedprecheck passjudge pass (deepseek-v4-pro + gpt-5.6-terra)audited 2026-08-26Open item page →

The two step sets describe the same objects: U↦N, D↦E is a bijection matching the diagonal y=x with the level 0

Statement

Let u,d∈N and put n:=u+d. Replacing each letter U of a step word by N and each letter D by E induces a bijection

Λ:W((0,0),(n,u−d))⟶M((0,0),(d,u))

from the diagonal paths of length n from (0,0) ending at height u−d (Diagonal lattice paths with steps U=(1,1) and D=(1,−1), and the height function) onto the monotone paths from (0,0) to (d,u) (Monotone lattice paths with steps E=(1,0) and N=(0,1)).

Moreover the two pictures agree step by step: if v has height function h and Λ(v)(i)=(xi,yi), then

h(i)=yi−xi(0≤i≤n).

Consequently, for every c∈Z and every i, the height inequality h(i)≥c holds if and only if yi−xi≥c; in particular staying weakly above the level 0 corresponds to staying weakly above the diagonal y=x.

Facts & Assumptions

Given: natural numbers u and d, and n=u+d.

[F1]

A diagonal lattice path is a lattice path whose steps lie in the step set {U,D} with U=(1,1), D=(1,−1); a diagonal path of length n from (0,0) has v(i)=(i,h(i)), and with μ(i) the number of up-steps among the first i its height is h(i)=2μ(i)−i when a=0 (Diagonal lattice paths with steps U=(1,1) and D=(1,−1), and the height function).

[F2]

A monotone lattice path is a lattice path whose steps lie in the step set {E,N} with E=(1,0) and N=(0,1); for such a path from (a,b) with step word w and ν(i) the number of N letters among the first i, one has v(i)=(a+i−ν(i), b+ν(i)) (Monotone lattice paths with steps E=(1,0) and N=(0,1)).

[L1]
[L2]

For a step set S, a point P and ℓ∈N, the map sending a lattice path to its step word is a bijection LS(P;ℓ)→Sℓ (For each start point the step word is a bijection onto Sn).

Proof

technique · direct
1.1F1F2

The letter map λ:{U,D}→{E,N} with λ(U)=N and λ(D)=E has the two-sided inverse N↦U, E↦D, so composing a word with λ carries {U,D}n to {E,N}n and composing with the inverse letter map carries it back; a word w with μ(n)=u up-steps is carried to a word with ν(n)=u letters N and d letters E. Hence a diagonal path of length n from (0,0) ending at height u−d is carried to a monotone path from (0,0) ending at (d,u), and conversely.

2.1L1L2step 1.1

Define Λ as the composite: take the step word of a diagonal path by [L2], compose it with λ, and trace the resulting word from (0,0); define Λ′ the same way with the inverse letter map. Each of the three constituents of Λ is a bijection with the corresponding constituent of Λ′ as inverse, by [L2] and step 1.1, so Λ′∘Λ and Λ∘Λ′ are the respective identities and Λ is a bijection.

3.1F1F2step 1.1algebra∎

For 0≤i≤n the count of up-steps among the first i letters of w equals the count of letters N among the first i letters of λ∘w, that is μ(i)=ν(i); so yi−xi=ν(i)−(i−ν(i))=2μ(i)−i=h(i), and the two sides of the height inequality are the same integer, whence each holds exactly when the other does. Taking c=0 gives the statement about the diagonal y=x, and at i=0 both sides are 0.

Remarks

  • Why this is a lemma and not a convention. The page uses the rectangular picture for the binomial count and the diagonal picture for heights, levels and reflections. The sources use one or the other and state no correspondence, so a page using both must prove they agree once. Every later statement that moves between the pictures cites this lemma and does not restate it.

  • What the correspondence does not do. It matches the two step sets and the two positions, and nothing else. The number of steps is preserved and the two endpoints determine each other, but a level in one picture is a diagonal line in the other, which is why the level statements below are made in the diagonal picture only.

CorollaryStatement: AI-adaptedProof: AI-adaptedprecheck passaudited 2026-08-26Open item page →

The number of diagonal paths from (0,a) to (n,b) is (nu) for the natural number u with 2u=n+b−a, and 0 when no such u exists

Statement

Let a,b∈Z and n∈N, and let W((0,a),(n,b)) be the set of diagonal lattice paths of length n from (0,a) whose height function ends at b (Diagonal lattice paths with steps U=(1,1) and D=(1,−1), and the height function).

  1. Suppose 2 divides n+b−a and −n≤b−a≤n, and let u∈N be the natural number with 2u=n+b−a; then 0≤u≤n and

    ∣W((0,a),(n,b))∣=(nu).

  2. If either condition fails then W((0,a),(n,b))=∅, so its cardinality is 0.

In both cases the set is finite, and the count depends on a and b only through the difference b−a.

Facts & Assumptions

Given: integers a and b and a natural number n.

[F1]

A diagonal path of length n from (0,a) has v(i)=(i,h(i)) with h(0)=a and h(i)−h(i−1)∈{1,−1}; with μ(n) the number of up-steps its endpoint height is h(n)=a+2μ(n)−n; and W((0,a),(n,b)) is nonempty exactly when 2 divides n+b−a and −n≤b−a≤n (Diagonal lattice paths with steps U=(1,1) and D=(1,−1), and the height function).

[L1]

For u,d∈N and n=u+d, replacing U by N and D by E is a bijection W((0,0),(n,u−d))→M((0,0),(d,u)) (The two step sets describe the same objects: U↦N, D↦E is a bijection matching the diagonal y=x with the level 0).

[L2]

For m,n′∈N the set M((0,0),(m,n′)) is finite with ∣M((0,0),(m,n′))∣=(m+n′n′) (∣M((0,0),(m,n))∣=(m+nn)).

[L3]
[L4]

If A is finite and f:A→B is a bijection then B is finite and ∣B∣=∣A∣; and a finite set has cardinality 0 exactly when it is empty (The cardinality ∣A∣ of a finite set).

[L5]

(nk) is the number of k-element subsets of the natural number n, and (n0)=(nn)=1 (The set [A]k of k-element subsets and the binomial coefficient (nk):=∣[n]k∣).

Proof

technique · direct
1.1F1L3L4

Subtracting the constant (0,a) leaves every difference v(i)−v(i−1) unchanged and sends (0,a) to (0,0) and (n,b) to (n,b−a), and adding it back inverts the operation; so it is a bijection W((0,a),(n,b))→W((0,0),(n,b−a)) and the two sets have the same cardinality.

2.1F1L4step 1.1

If 2 does not divide n+b−a, or if b−a lies outside the range from −n to n, then W((0,a),(n,b)) is empty and its cardinality is 0, which is clause 2.

2.2F1step 1.1algebra

If the two conditions hold, let u be the natural number with 2u=n+b−a and put d:=n−u. From 2u=n+b−a and u+d=n one gets u−d=b−a, and 0≤u≤n because 0≤n+b−a≤2n.

3.1L1L2L4L5step 1.1step 2.1step 2.2∎

By step 2.2 and [L1] the set W((0,0),(n,b−a))=W((0,0),(n,u−d)) is in bijection with M((0,0),(d,u)), which by [L2] is finite with (d+uu)=(nu) elements; transporting along that bijection and along the translation of step 1.1 gives clause 1. At n=0 the conditions force b=a and u=0, and the one empty path is counted by (00)=1; at b−a=n they force u=n, and the one all-up path is counted by (nn)=1.

Remarks

  • The vanishing clause is used, not decorative. The reflection principle below subtracts one of these counts from another, and both the parity and the range conditions can fail for the reflected endpoint while holding for the original; the difference is correct only because the count is then 0 rather than undefined.

  • Why the answer is stated through u rather than as a quotient. The natural number u with 2u=n+b−a exists exactly under the stated hypotheses, and writing 12(n+b−a) would name an element of a field where the hypothesis of the statement is that the halving is exact in Z.

LemmaStatement: AI-adaptedProof: AI-adaptedprecheck passjudge pass (deepseek-v4-pro + gpt-5.6-terra)audited 2026-08-26Open item page →

A diagonal path with h(0)≤c≤h(n) or h(n)≤c≤h(0) satisfies h(i)=c for some i

Statement

Let v be a diagonal lattice path of length n from (0,a) with height function h (Diagonal lattice paths with steps U=(1,1) and D=(1,−1), and the height function), and let c∈Z. If

h(0)≤c≤h(n)orh(n)≤c≤h(0),

then h(i)=c for some i with 0≤i≤n; that is, v touches the level c.

Facts & Assumptions

Given: a diagonal path v of length n from (0,a) with height function h, an integer c, and the hypothesis that c lies weakly between h(0) and h(n) in one order or the other.

[F1]

The height function of a diagonal path of length n from (0,a) satisfies h(0)=a and h(i)−h(i−1)∈{1,−1} for 1≤i≤n, and v touches the level c when h(i)=c for some i with 0≤i≤n (Diagonal lattice paths with steps U=(1,1) and D=(1,−1), and the height function).

[L1]

Every nonempty subset S⊆N has a least element: there is ℓ∈S with ℓ≤s for all s∈S (The well-ordering principle).

Proof

technique · cases
1.1F1L1assume-case up

Assume first that h(0)≤c≤h(n). The set I:={ i∈N:i≤n, h(i)≥c } contains n, so it is nonempty and has a least element τ.

1.2F1L1assume-case down

Assume instead that h(n)≤c≤h(0). The set J:={ i∈N:i≤n, h(i)≤c } contains n, so it is nonempty and has a least element θ.

2.1F1step 1.1

In the case h(0)≤c≤h(n) of step 1.1: if τ=0 then h(0)≥c and h(0)≤c, so h(0)=c; and if τ≥1 then τ−1 is not in I, so h(τ−1)<c≤h(τ), whence h(τ)−h(τ−1) is positive and therefore equal to 1, giving h(τ)=h(τ−1)+1≤c and so h(τ)=c.

2.2F1step 1.2

In the case h(n)≤c≤h(0) of step 1.2: if θ=0 then h(0)≤c and c≤h(0), so h(0)=c; and if θ≥1 then θ−1 is not in J, so h(θ−1)>c≥h(θ), whence h(θ)−h(θ−1) is negative and therefore equal to −1, giving h(θ)=h(θ−1)−1≥c and so h(θ)=c.

3.1step 2.1step 2.2cases-exhaustive∎

The hypothesis puts c weakly between h(0) and h(n) in one of the two orders, so one of the two cases applies, and each produces an index at which the height is exactly c.

Remarks

  • Where the step set is spent. The argument uses only that consecutive heights differ by exactly 1, and it fails for a step set whose steps change the height by more than one unit: such a path can pass from above a level to below it without ever meeting it. The companion page carries that witness.

  • Both orders are needed. The reflection argument applies the lemma once with the start above the level and the end below it, and once the other way round, so neither inequality may be dropped.

LemmaStatement: AI-adaptedProof: AI-adaptedprecheck passjudge pass (deepseek-v4-pro + gpt-5.6-terra)audited 2026-08-26Open item page →

Reflecting the initial segment at the first visit to level c

Statement

Let c∈Z, let n∈N, and let a,b∈Z with a>c and b>c. Write T for the set of diagonal paths v∈W((0,a),(n,b)) that touch the level c (Diagonal lattice paths with steps U=(1,1) and D=(1,−1), and the height function).

For v∈T with height function h, let τ be the least index with h(τ)=c and define ρ(v) to be the diagonal path whose height function is

h′(i):={2c−h(i),0≤i≤τ,h(i),τ≤i≤n.

The two clauses agree at i=τ, and

ρ:T⟶W((0,2c−a),(n,b))

is a bijection. Its inverse is given by the same recipe, applied to a path starting at height 2c−a.

Facts & Assumptions

Given: an integer c, a natural number n, and integers a>c and b>c.

[F1]

A diagonal path of length n from (0,α) is the same datum as a function h:{0,…,n}→Z with h(0)=α and h(i)−h(i−1)∈{1,−1} for 1≤i≤n; it touches the level c when h(i)=c for some i≤n (Diagonal lattice paths with steps U=(1,1) and D=(1,−1), and the height function).

[L1]

If a diagonal path of length n has h(0)≤c≤h(n) or h(n)≤c≤h(0), then h(i)=c for some i with 0≤i≤n (A diagonal path with h(0)≤c≤h(n) or h(n)≤c≤h(0) satisfies h(i)=c for some i).

[L2]
[L3]

Every nonempty subset S⊆N has a least element: there is ℓ∈S with ℓ≤s for all s∈S (The well-ordering principle).

Proof

technique · direct
1.1F1L3construct

Let α∈Z and let v be a diagonal path of length n from (0,α) with height function h and h(n)=b, touching the level c. The set of indices i≤n with h(i)=c is a nonempty subset of N, so it has a least element τ, and τ<n because h(n)=b>c. The function h′ displayed in the statement is well defined, since at i=τ the first clause gives 2c−h(τ)=c and the second gives h(τ)=c; it satisfies h′(0)=2c−α and h′(n)=h(n)=b; and for 1≤i≤τ one has h′(i)−h′(i−1)=−(h(i)−h(i−1))∈{1,−1} while for τ<i≤n one has h′(i)−h′(i−1)=h(i)−h(i−1)∈{1,−1}. So h′ is the height function of a diagonal path of length n from (0,2c−α) ending at b.

1.2F1L1

Every v′∈W((0,2c−a),(n,b)) touches the level c: its height function has h′(0)=2c−a<c because a>c, and h′(n)=b>c, so h′(0)≤c≤h′(n) and [L1] supplies an index with height c. Likewise every v∈W((0,a),(n,b)) that touches c is in T by definition.

2.1step 1.1algebra

The first visit to c is at the same index for v and for the path built in step 1.1: for i<τ we have h(i)≠c, hence h′(i)=2c−h(i)≠c, while h′(τ)=c.

3.1L2step 1.1step 1.2step 2.1algebra∎

Applying step 1.1 with α=a shows ρ maps T into W((0,2c−a),(n,b)), and applying it with α=2c−a, which is legitimate by step 1.2, shows the same recipe maps W((0,2c−a),(n,b)) into W((0,a),(n,b)) and, since the image touches c, into T. Applying the recipe twice returns the original path: by step 2.1 the first visit index is the same at both applications, and 2c−(2c−h(i))=h(i) for i≤τ while the second segment is untouched. So the two maps are two-sided inverses of one another and ρ is a bijection by [L2].

Remarks

  • The proof is the two-sided inverse, and that is deliberate. A count of the reflected paths that argued only that reflection produces a path of the right kind would not show that every such path arises, and it is exactly the surjectivity that step 1.2 supplies, from the intermediate-value lemma.

  • The endpoint hypothesis. The stated form assumes b>c, as required by the reflection principle that uses it, and then the first visit satisfies τ<n. The same construction also remains a bijection when b=c; in that boundary case the first visit may be the final index and reflection fixes that endpoint.

TheoremStatement: Literature-sourcedProof: AI-adaptedprecheck passjudge pass (deepseek-v4-pro + gpt-5.6-terra)audited 2026-08-26Open item page →

The reflection principle: paths from (0,a) to (n,b) staying strictly above level c are counted by a difference of two binomial coefficients

Statement

Let c∈Z, let n∈N and let a,b∈Z with a>c and b>c. Write A for the set of diagonal paths v∈W((0,a),(n,b)) that stay strictly above the level c, that is h(i)>c for every i with 0≤i≤n (Diagonal lattice paths with steps U=(1,1) and D=(1,−1), and the height function).

  1. A is finite and

    ∣A∣+∣W((0,2c−a),(n,b))∣=∣W((0,a),(n,b))∣.

  2. Suppose 2 divides n+b−a and b−a≥−n, and let u∈N be the natural number with 2u=n+b−a. Then u+a−c is a natural number and

    ∣A∣+(nu+a−c)=(nu),so∣A∣=(nu)−(nu+a−c).

  3. If 2 does not divide n+b−a, or b−a<−n, or b−a>n, then all three sets above are empty and all three counts are 0.

Facts & Assumptions

Given: an integer c, a natural number n, integers a>c and b>c, and the set A of the statement.

[F1]

The height function of a diagonal path of length n from (0,a) satisfies h(0)=a and h(i)−h(i−1)∈{1,−1}; the path touches the level c when h(i)=c for some i≤n, and stays strictly above c when h(i)>c for every i≤n; and the restriction of the path to {0,…,k} is a diagonal path of length k (Diagonal lattice paths with steps U=(1,1) and D=(1,−1), and the height function).

[L1]

If a diagonal path of length n has h(0)≤c≤h(n) or h(n)≤c≤h(0), then h(i)=c for some i with 0≤i≤n (A diagonal path with h(0)≤c≤h(n) or h(n)≤c≤h(0) satisfies h(i)=c for some i).

[L3]

If A is finite and f:A→B is a bijection then B is finite and ∣B∣=∣A∣; and a finite set has cardinality 0 exactly when it is empty (The cardinality ∣A∣ of a finite set).

[L4]

For a>c and b>c, reflecting the initial segment at the first visit to level c is a bijection from the set of v∈W((0,a),(n,b)) that touch the level c onto W((0,2c−a),(n,b)) (Reflecting the initial segment at the first visit to level c).

[L5]

W((0,α),(n,β)) is finite; if 2 divides n+β−α and −n≤β−α≤n then its cardinality is (nu) for the natural number u with 2u=n+β−α, and otherwise the set is empty (The number of diagonal paths from (0,a) to (n,b) is (nu) for the natural number u with 2u=n+b−a, and 0 when no such u exists).

Proof

technique · direct
1.1F1L1

A path v∈W((0,a),(n,b)) fails to touch the level c if and only if it stays strictly above c. If it stays strictly above c then no height equals c. Conversely, if h(k)<c for some k, then the restriction of v to {0,…,k} is a diagonal path whose height at the last index is h(k)≤c≤a, the height at index 0, so [L1] gives an index i≤k with h(i)=c and v touches c; hence a path that does not touch c has every height ≥c and, none being equal to c, every height >c.

2.1L2L5L6step 1.1

Therefore W((0,a),(n,b)) is the union of the set T of paths that touch c and the set A, and these are disjoint. Both are subsets of the finite set W((0,a),(n,b)), hence finite by [L5] and [L6], so [L2] gives ∣T∣+∣A∣=∣W((0,a),(n,b))∣.

3.1L3L4step 2.1

By [L4] the set T is in bijection with W((0,2c−a),(n,b)), so the two have the same cardinality by [L3], and substituting into step 2.1 gives clause 1.

4.1L3L5L7step 3.1algebra∎

For clause 2, put u′:=u+a−c, a natural number because a−c≥1; then 2u′=n+b−a+2(a−c)=n+b−(2c−a), so u′ is the natural number attached by [L5] to the endpoint data of W((0,2c−a),(n,b)). If u′≤n then [L5] gives ∣W((0,2c−a),(n,b))∣=(nu′); if u′>n then b−(2c−a)>n, so [L5] makes the set empty and [L7] makes (nu′) equal to 0 as well. The same two readings apply to ∣W((0,a),(n,b))∣ and (nu), and clause 1 then reads as the displayed identity, whose subtracted form follows because the identity holds in N. For clause 3, [L5] makes W((0,a),(n,b)) empty in each of the three listed cases, so its cardinality is 0 by [L3] and clause 1 forces both summands to be 0, hence both those sets to be empty as well. As a check, n=0 with a=b gives u=0, ∣A∣=1 and (0a−c)=0 since a−c≥1.

Remarks

  • Where the two hypotheses are spent. The hypothesis a>c is what makes the reflected starting height lie strictly below c, so that every reflected path meets c and the correspondence is onto; the hypothesis b>c is what keeps the first visit strictly before the last index, so that reflection preserves the endpoint. Neither is a normalisation.

  • The identity is stated as a sum, and only then as a difference. The counting argument produces "touching plus avoiding equals all" in N, and the difference form is legitimate only because that identity has already been proved; written the other way round the subtraction would need its own justification whenever the second coefficient vanishes.

TheoremStatement: AI-adaptedProof: AI-adaptedprecheck passaudited 2026-08-26Open item page →

Bertrand's ballot problem: for p>q≥0 the orderings in which the first candidate is strictly ahead throughout satisfy (p+q) N=(p−q)(p+qp)

Statement

Let p,q∈N with p>q. A count in which the first candidate receives p votes and the second q votes, the votes being read in order, is recorded by a diagonal lattice path of length p+q from (0,0) whose step word has exactly p letters U, one for each vote for the first candidate; such a path ends at height p−q (Diagonal lattice paths with steps U=(1,1) and D=(1,−1), and the height function). The first candidate is strictly ahead throughout when the height after each of the p+q votes is at least 1. Write

B(p,q):={ v∈W((0,0),(p+q,p−q)):h(i)≥1 for 1≤i≤p+q },N:=∣B(p,q)∣.

Then B(p,q) is finite and, in N,

(p+q) N=(p−q)(p+qp).

Facts & Assumptions

Given: natural numbers p>q, so p≥1 and p+q≥1; and the set B(p,q) above.

[F1]

A diagonal path of length n from (0,α) is the same datum as a function h:{0,…,n}→Z with h(0)=α and h(i)−h(i−1)∈{1,−1} for 1≤i≤n; with μ(n) the number of up-steps its endpoint height is h(n)=α+2μ(n)−n; and it stays strictly above the level c when h(i)>c for every i≤n (Diagonal lattice paths with steps U=(1,1) and D=(1,−1), and the height function).

[L1]

For c∈Z, n∈N and a>c, b>c: if 2 divides n+b−a and b−a≥−n, and u is the natural number with 2u=n+b−a, then the set of paths in W((0,a),(n,b)) staying strictly above level c is finite and its cardinality ∣A∣ satisfies ∣A∣+(nu+a−c)=(nu) (The reflection principle: paths from (0,a) to (n,b) staying strictly above level c are counted by a difference of two binomial coefficients, clause 2).

[L3]

n!≠0 for every n∈N, and σ(n)!=n!⋅σ(n) (The factorial n! and the falling factorial nk‾, defined by recursion in N).

[L4]

For all m,n,k∈N with k≠0: if m⋅k=n⋅k then m=n (Cancellation for multiplication by a nonzero factor).

[L6]
[L7]

If A is finite and f:A→B is a bijection then B is finite and ∣B∣=∣A∣ (The cardinality ∣A∣ of a finite set).

Proof

technique · direct
1.1F1

For v∈B(p,q) the first step is forced upward: h(0)=0 and h(1)−h(0)∈{1,−1}, while h(1)≥1, so h(1)=1.

1.2L2L3L4L5algebra

Two identities in N, with m:=p+q. First, m(m−1p−1)=p(mp): since p≥1 and p−1≤m−1, and since m−1−(p−1)=q and m−p=q, [L2] gives (m−1p−1)(p−1)! q!=(m−1)! and (mp) p (p−1)! q!=m!; multiplying the first by m and using m⋅(m−1)!=m! from [L3] makes both left sides equal, and cancelling the nonzero factor (p−1)! q! by [L3] and [L4] gives the identity. Second, m(m−1p)=q(mp): when q=0 both sides are 0, since then p=m and (m−1p)=0 by [L5]; and when q≥1 then p≤m−1 with m−1−p=q−1, so [L2] gives (m−1p) p! (q−1)!=(m−1)! and (mp) p! q (q−1)!=m!, and the same multiplication by m and cancellation of p! (q−1)! gives it.

2.1F1L6L7step 1.1construct

Shifting the index by one is a bijection from B(p,q) onto the set A of paths in W((0,1),(p+q−1,p−q)) that stay strictly above the level 0: given h, put h−(i):=h(i+1) for 0≤i≤p+q−1, so h−(0)=1 by step 1.1, h−(p+q−1)=p−q, consecutive values differ by 1 in absolute value, and h−(i)≥1>0; conversely, given such an h−, put h(0):=0 and h(i):=h−(i−1) for 1≤i≤p+q, which has h(1)−h(0)=1 and the remaining differences those of h−, ends at p−q, and has h(i)≥1 for i≥1. The two constructions undo one another, so [L6] and [L7] apply and N=∣A∣.

3.1L1step 2.1algebra

Apply [L1] with n=p+q−1, a=1, b=p−q and c=0: the hypotheses a>c and b>c hold because p>q, and n+b−a=2p−2 is even with 2(p−1)=n+b−a, so u=p−1 and u+a−c=p; also b−a≥−n since n+b−a≥0. Hence N+(p+q−1p)=(p+q−1p−1).

4.1L4L5step 1.2step 3.1algebra∎

Multiplying step 3.1 by m=p+q and substituting the two identities of step 1.2 gives m N+q(mp)=p(mp), and since q≤p this is exactly (p+q)N=(p−q)(p+qp). At q=0 it reads p N=p(pp)=p, so N=1 by [L4], matching the single all-up path; at p=2, q=1 it reads 3N=(32)=3, so N=1, the one path with step word UUD.

Remarks

  • The quotient form. The identity of the statement is an identity of natural numbers. Reading each natural number as its canonical natural in R (The canonical natural ι(n)=n⋅1F of a field) and dividing by the nonzero real p+q turns it into the familiar p−qp+q(p+qp); the multiplicative form is the one proved, and the division is legitimate only because p+q≠0, which needs p>q or at least p+q≥1.

  • Why p>q and not p≥q. With p=q the height ends at 0, so the last vote brings the count level and the first candidate is not strictly ahead throughout; the count is then 0, while the right-hand side is 0 as well, so the identity survives but says nothing. The interesting weak form, in which the first candidate is merely never behind, is a separate statement.

CorollaryStatement: AI-adaptedProof: AI-adaptedprecheck passaudited 2026-08-26Open item page →

The weak ballot count: for p≥q≥0 the orderings in which the first candidate is never behind satisfy (p+1) N=(p−q+1)(p+qq)

Statement

Let p,q∈N with p≥q. Write

B≥(p,q):={ v∈W((0,0),(p+q,p−q)):h(i)≥0 for 0≤i≤p+q },N:=∣B≥(p,q)∣,

the diagonal paths of length p+q from the origin ending at height p−q whose height is never negative (Diagonal lattice paths with steps U=(1,1) and D=(1,−1), and the height function); these record the orderings of a count with p votes for the first candidate and q for the second in which the first candidate is never behind. Then B≥(p,q) is finite and, in N,

(p+1) N=(p−q+1)(p+qq).

Facts & Assumptions

Given: natural numbers p≥q, and the set B≥(p,q) above.

[F1]

A diagonal path of length n from (0,α) is the same datum as a function h:{0,…,n}→Z with h(0)=α and h(i)−h(i−1)∈{1,−1} for 1≤i≤n; with μ(n) the number of up-steps its endpoint height is h(n)=α+2μ(n)−n (Diagonal lattice paths with steps U=(1,1) and D=(1,−1), and the height function).

[L1]

For natural numbers p′>q′, the set of diagonal paths of length p′+q′ from (0,0) ending at height p′−q′ whose height is at least 1 at every index from 1 to p′+q′ is finite, and its cardinality N′ satisfies (p′+q′)N′=(p′−q′)(p′+q′p′) (Bertrand's ballot problem: for p>q≥0 the orderings in which the first candidate is strictly ahead throughout satisfy (p+q) N=(p−q)(p+qp)).

[L2]

For n,k∈N with k≤n: (nk)⋅k!⋅(n−k)!=n! in N, and (nk)=(nn−k) ((nk) k! (n−k)!=n! for k≤n; hence (nk) k!=nk‾, the quotient n!/(k!(n−k)!) is a natural number, and (nk)=(nn−k)).

[L3]

n!≠0 for every n∈N, and σ(n)!=n!⋅σ(n) (The factorial n! and the falling factorial nk‾, defined by recursion in N).

[L4]

For all m,n,k∈N with k≠0: if m⋅k=n⋅k then m=n (Cancellation for multiplication by a nonzero factor).

[L5]
[L6]

If A is finite and f:A→B is a bijection then B is finite and ∣B∣=∣A∣ (The cardinality ∣A∣ of a finite set).

Proof

technique · direct
1.1F1L5L6construct

Prepending an up-step is a bijection from B≥(p,q) onto the set of diagonal paths of length p+q+1 from (0,0) ending at height p−q+1 whose height is at least 1 from the index 1 onwards. Given h in the first set, put h~(0):=0 and h~(i):=h(i−1)+1 for 1≤i≤p+q+1: then h~(1)−h~(0)=1, the later differences are those of h, the values from the index 1 on are at least 1 because h≥0, and h~(p+q+1)=p−q+1. Conversely, given h~ in the second set, its first step is forced upward since h~(1)≥1 and h~(1)−h~(0)∈{1,−1}, so putting h(i):=h~(i+1)−1 for 0≤i≤p+q gives h(0)=0, h≥0 and h(p+q)=p−q. The two constructions undo one another, so [L5] and [L6] give a bijection and equal cardinalities.

1.2L2L3L4algebra

Two identities in N. First, (p+1)(p+q+1p+1)=(p+q+1)(p+qp): with n:=p+q+1 and k:=p+1 one has k≤n and n−k=q, so [L2] gives (np+1) (p+1) p! q!=n!, while [L2] applied to (p+qp) gives (p+qp) p! q!=(p+q)!, and multiplying the latter by n and using n⋅(p+q)!=n! from [L3] makes the two left sides equal; cancelling the nonzero factor p! q! by [L3] and [L4] gives the identity. Second, (p+qp)=(p+qq) by the symmetry clause of [L2], since (p+q)−p=q.

2.1L1step 1.1algebra

Apply [L1] with p′=p+1 and q′=q, which is legitimate because p+1>q follows from p≥q: the set it counts is exactly the second set of step 1.1, so its cardinality is N by step 1.1, and (p+q+1)N=(p−q+1)(p+q+1p+1).

3.1L2L4step 1.2step 2.1algebra∎

Multiplying step 2.1 by p+1 and substituting the first identity of step 1.2 gives (p+1)(p+q+1)N=(p−q+1)(p+q+1)(p+qp); cancelling the nonzero factor p+q+1 by [L4] and rewriting (p+qp) as (p+qq) by the second identity of step 1.2 gives (p+1)N=(p−q+1)(p+qq). At q=0 this reads (p+1)N=(p+1)(p0)=p+1, so N=1, the single all-up path; at p=q it reads (p+1)N=(2pp), which is the relation the Catalan development uses.

Remarks

  • Why the extra up-step and not a reflection. The weak condition h≥0 is not of the form treated by the reflection principle, whose hypothesis is a strict inequality against a level with both endpoints strictly above it. Prepending one up-step turns the weak condition at every index into the strict condition from the index 1 onwards, and the strict count is already proved.

  • The case p=q. Here p−q+1=1, and the identity says that p+1 times the number of never-behind orderings is the central binomial coefficient. That is the shape the Catalan numbers take on this page, and it is why the weak form is stated separately rather than left as an exercise on the strict one.

DefinitionDefinition: Literature-sourcedProof: Not applicablejudge pass (deepseek-v4-pro + gpt-5.6-terra)audited 2026-08-26Open item page →

Dyck paths of semilength n

Definition

Let n∈N. A Dyck path of semilength n is a diagonal lattice path of length 2n from (0,0) to (2n,0) whose height function satisfies h(i)≥0 for every i with 0≤i≤2n (Diagonal lattice paths with steps U=(1,1) and D=(1,−1), and the height function). Write

Dn:={ v∈W((0,0),(2n,0)):h(i)≥0 for 0≤i≤2n }

for the set of them. The word semilength records that the path has 2n steps: its length is 2n and its semilength is n.

Small cases, read off the definition. For n=0 the path has length 0, so D0 consists of the empty path at (0,0) and has exactly one element. For n=1 there are two diagonal paths of length 2 from (0,0) to (2,0), with step words UD and DU and height sequences 0,1,0 and 0,−1,0; only the first has h≥0, so D1 has exactly one element.

Ballot words. A ballot word of length 2n is a word w∈{U,D}2n in which the number of letters U equals the number of letters D and, for every i≤2n, the number of letters U among the first i is at least the number of letters D among them. Step words identify the two notions: by For each start point the step word is a bijection onto Sn the map v↦ (step word of v) is a bijection from the diagonal paths of length 2n starting at (0,0) onto {U,D}2n, and under it the two conditions defining Dn become the two conditions defining a ballot word. For with μ(i) the number of letters U among the first i, the height formula h(i)=2μ(i)−i of Diagonal lattice paths with steps U=(1,1) and D=(1,−1), and the height function gives

h(i)≥0  ⟺  μ(i)≥i−μ(i),h(2n)=0  ⟺  μ(2n)=n,

and i−μ(i) is the number of letters D among the first i. So Dn and the set of ballot words of length 2n correspond bijectively, and either may be used to compute the other's size.

Remarks

  • Why the height condition is weak and not strict. A diagonal path from (0,0) has h(0)=0, so a strict condition h>0 would be satisfied by nothing at all. The condition that bites is at the interior indices, and the two endpoints are on the boundary of it by construction.

  • Semilength, not length, is the index. Every count below is stated in terms of n, and the path it counts has 2n steps. A statement about Dn is never a statement about paths of length n; the odd lengths carry no Dyck paths at all, since a path of odd length from (0,0) cannot return to height 0.

LemmaStatement: AI-adaptedProof: AI-adaptedprecheck passjudge pass (deepseek-v4-pro + gpt-5.6-terra)audited 2026-08-26Open item page →

Dn is a finite set

Statement

For every n∈N the set Dn of Dyck paths of semilength n (Dyck paths of semilength n) is finite and nonempty; more precisely Dn has at least one and at most 22n elements.

Facts & Assumptions

Given: a natural number n.

[F1]

Dn is the set of diagonal paths of length 2n from (0,0) to (2n,0) whose height function satisfies h(i)≥0 for every i with 0≤i≤2n (Dyck paths of semilength n).

[F2]

A diagonal path of length ℓ from (0,α) is the same datum as a function h:{0,…,ℓ}→Z with h(0)=α and h(i)−h(i−1)∈{1,−1} for 1≤i≤ℓ (Diagonal lattice paths with steps U=(1,1) and D=(1,−1), and the height function).

[L1]

For a step set S, a point P and ℓ∈N, the map sending a lattice path to its step word is a bijection LS(P;ℓ)→Sℓ, and LS(P;ℓ) is finite with ∣LS(P;ℓ)∣=∣S∣ ℓ (For each start point the step word is a bijection onto Sn).

[L2]

For finite sets A and B, the set AB of functions B→A is finite and ∣AB∣=∣A∣∣B∣ (The set AB of functions B→A between finite sets is finite, with ∣AB∣=∣A∣∣B∣).

[L3]

A subset of a finite set is finite, and a subset S of a finite set A has ∣S∣≤∣A∣ (A subset of a finite set is finite, with ∣B∣≤∣A∣, and equality holds if and only if B=A, clauses 1 and 2).

[L4]

A property that holds at 0 and passes from every natural number to its successor holds at every natural number: if a property P satisfies P(0) and (P(n)⇒P(σ(n))) for all n, then P(n) holds for all n∈N (The principle of mathematical induction).

Proof

technique · direct
1.1L1L2

The set W((0,0);2n) of all diagonal paths of length 2n from the origin is finite with exactly 22n elements, since the step set {U,D} has two elements.

1.2F1F2L4construct

The word w of length 2n with wj=U for even j and wj=D for odd j traces a Dyck path: its height function satisfies h(0)=0, and if h(2k)=0 with 2k<2n then h(2k+1)=1 and h(2k+2)=0, so by induction on k every even index has height 0 and every odd index height 1; hence h≥0 throughout and h(2n)=0.

2.1F1L3step 1.1step 1.2∎

By [F1] the set Dn is a subset of the finite set of step 1.1, hence finite with at most 22n elements by [L3]; and it is nonempty by step 1.2, so it has at least one element.

Remarks

  • What this lemma is for. It is the well-definedness obligation behind the Catalan numbers: ∣Dn∣ is a natural number only because Dn is finite, and the cardinality notation is defined for finite sets alone.

  • The bound 22n is not the point. It is the crude count of all words of length 2n over a two-letter alphabet, recorded because it is what makes the set finite; the exact count is the subject of the theorems below and is far smaller.

DefinitionDefinition: Literature-sourcedProof: Not applicablejudge pass (deepseek-v4-pro + gpt-5.6-terra)audited 2026-08-26Open item page →

The Catalan number Cn:=∣Dn∣

Definition

For n∈N the Catalan number Cn is the number of Dyck paths of semilength n:

Cn:=∣Dn∣∈N

(Dyck paths of semilength n, The cardinality ∣A∣ of a finite set). This is a natural number because Dn is finite (Dn is a finite set), and the cardinality notation is defined for finite sets only.

C0=1 and C1=1, both read off the definition rather than stipulated: D0 is the one-element set containing the empty path, and D1 is the one-element set whose member has step word UD (Dyck paths of semilength n).

Cn≥1 for every n, since Dn is nonempty (Dn is a finite set).

Remarks

  • The Catalan number is defined as a count, and every formula for it is a theorem. Defining Cn by a closed expression would make C0=1 a convention about an empty product or an empty binomial coefficient, and would make the statement that the expression is a natural number something to be arranged rather than proved. Here integrality is free and the closed formula has content.

  • The indexing convention. Cn counts the Dyck paths of semilength n, equivalently the ballot words of length 2n, so C0=1 and the path has 2n steps. This is the indexing of Krattenthaler §10.3 and of Guichard §3.5, and every source consulted for this page agrees on it; a source indexing by the number of steps would call the same number C2n, and no statement here is stated that way.

TheoremStatement: AI-adaptedProof: AI-adaptedprecheck passjudge pass (deepseek-v4-pro + gpt-5.6-terra)audited 2026-08-26Open item page →

Cn+(2nn+1)=(2nn)

Statement

For every n∈N, in N,

Cn+(2nn+1)=(2nn),

where Cn is the Catalan number (The Catalan number Cn:=∣Dn∣) and the coefficients are those of The set [A]k of k-element subsets and the binomial coefficient (nk):=∣[n]k∣. Equivalently Cn=(2nn)−(2nn+1), the subtraction being legitimate because the displayed identity has been proved.

Facts & Assumptions

Given: a natural number n.

[F1]

Dn is the set of diagonal paths of length 2n from (0,0) to (2n,0) whose height function satisfies h(i)≥0 for every i with 0≤i≤2n; for n=1 it has exactly one element, with step word UD (Dyck paths of semilength n).

[F2]

Cn=∣Dn∣, and C0=1 (The Catalan number Cn:=∣Dn∣).

[L1]

For c,a,b∈Z, ℓ∈N and a>c, b>c: if 2 divides ℓ+b−a and b−a≥−ℓ, and u∈N satisfies 2u=ℓ+b−a, then u+a−c∈N, the set A of paths in W((0,a),(ℓ,b)) staying strictly above the level c is finite, and ∣A∣+(ℓu+a−c)=(ℓu) (The reflection principle: paths from (0,a) to (n,b) staying strictly above level c are counted by a difference of two binomial coefficients, clause 2).

[L2]

Proof

technique · direct
1.1F1

Since heights are integers, h(i)≥0 holds exactly when h(i)>−1; so Dn is precisely the set of paths in W((0,0),(2n,0)) that stay strictly above the level −1.

2.1F2L1step 1.1algebra

Apply [L1] with ℓ=2n, a=0, b=0 and c=−1. The hypotheses hold: a>c and b>c because 0>−1; and ℓ+b−a=2n is even with 2n≥0, so the natural number u with 2u=2n is u=n and u+a−c=n+1. By step 1.1 the set A is Dn, whose cardinality is Cn, so Cn+(2nn+1)=(2nn).

3.1F1F2L2step 2.1algebra∎

Since the identity holds in N, the difference form follows. At n=0 it reads 1+(01)=(00), that is 1+0=1 by [L2] and C0=1; at n=1 it reads C1+(22)=(21), that is 1+1=2, matching the single element of D1.

Remarks

  • Where the reflection is spent. The level is −1 and not 0: a Dyck path starts and ends at height 0, so no path stays strictly above 0, and it is only because heights are integers that the weak condition against 0 is the strict condition against −1. The reflected starting height is 2(−1)−0=−2, which is why the subtracted coefficient is the one attached to the endpoint pair from −2 to 0.

  • The additive form is the one proved. Writing the difference first would require knowing in advance that (2nn+1)≤(2nn), which is a consequence of the identity rather than an input to it.

CorollaryStatement: AI-adaptedProof: AI-adaptedprecheck passaudited 2026-08-26Open item page →

(n+1) Cn=(2nn)

Statement

For every n∈N, in N,

(n+1) Cn=(2nn).

Facts & Assumptions

Given: a natural number n.

[F1]

Cn+(2nn+1)=(2nn) in N (Cn+(2nn+1)=(2nn)).

[L2]

m!≠0 for every m∈N, and σ(m)!=m!⋅σ(m) (The factorial n! and the falling factorial nk‾, defined by recursion in N).

[L4]

For all x,y,k∈N with k≠0: if x⋅k=y⋅k then x=y (Cancellation for multiplication by a nonzero factor).

[L5]

For all x,y,k∈N: if x+k=y+k then x=y (Addition is cancellative).

Proof

technique · direct
1.1L1L2L3L4algebra

First, (n+1)(2nn+1)=n(2nn) in N. For n=0 both sides are 0, since (01)=0 by [L3]. For n≥1 one has n+1≤2n and 2n−(n+1)=n−1, so [L1] gives (2nn+1) (n+1)! (n−1)!=(2n)! and (2nn) n! n!=(2n)!; writing (n+1)!=(n+1)⋅n! and the second factor n!=n⋅(n−1)! by [L2], the two left sides read (n+1)(2nn+1)⋅n! (n−1)! and n(2nn)⋅n! (n−1)!, and cancelling the nonzero factor n! (n−1)! by [L2] and [L4] gives the identity.

2.1F1L3L5step 1.1algebra∎

Multiply [F1] by n+1: (n+1)Cn+(n+1)(2nn+1)=(n+1)(2nn). By step 1.1 the second summand on the left is n(2nn), and the right-hand side is n(2nn)+(2nn), so cancelling the common summand n(2nn) by [L5] gives (n+1)Cn=(2nn). At n=0 this reads C0=(00)=1.

Remarks

  • The quotient form. The identity is an identity of natural numbers. Reading each natural number as its canonical natural in R (The canonical natural ι(n)=n⋅1F of a field) and dividing by the nonzero real n+1 turns it into the familiar Cn=1n+1(2nn). The multiplicative form is the one proved, and it is the form in which no division and no embedding is needed; it also says at once that n+1 divides the central binomial coefficient, which the quotient form presupposes.

  • What the proof actually uses. Only the reflection identity and factorial bookkeeping. The Catalan number is never manipulated as a formula: it enters as the count it was defined to be and leaves as a factor of a binomial coefficient.

CorollaryStatement: AI-adaptedProof: AI-adaptedprecheck passjudge pass (deepseek-v4-pro + gpt-5.6-terra)audited 2026-08-26Open item page →

n+1 divides (2nn) for every n∈N

Statement

For every n∈N the integer n+1 divides (2nn) (Divisibility in Z: d∣a when a=dq for some integer q), and the quotient is the Catalan number Cn (The Catalan number Cn:=∣Dn∣).

Facts & Assumptions

Given: a natural number n.

[F1]

(n+1) Cn=(2nn) in N ((n+1) Cn=(2nn)).

[F2]

Cn=∣Dn∣∈N (The Catalan number Cn:=∣Dn∣).

[L1]

For d,a∈Z, d divides a when a=dq for some q∈Z (Divisibility in Z: d∣a when a=dq for some integer q).

[L2]

The embedding of N into Z sending k to [(k,0)] is injective and preserves addition, multiplication, and order (The naturals embed in the integers).

Proof

technique · direct
1.1F1F2

The Catalan number Cn is a natural number, so its image in Z is an integer, and the identity (n+1)Cn=(2nn) of [F1] holds between natural numbers.

2.1L1L2step 1.1∎

Since the embedding preserves multiplication and addition, the same identity holds in Z between the corresponding integers; taking q:=Cn in [L1] with d=n+1 and a=(2nn) shows that n+1 divides (2nn) and exhibits Cn as the quotient.

Remarks

  • The quotient is exhibited as a count, and that is the whole proof. No arithmetic property of (2nn) is used: the divisibility holds because a set of Dyck paths was counted and the count turned out to be the quotient. An argument from prime factorisations would have to be made separately for every prime dividing n+1, and would give no combinatorial meaning to the quotient.

  • What is not claimed. Nothing here says n+1 is the largest such divisor, or that (2nn) has any other divisibility property. The statement is the single divisibility, for every n, with n=0 included: there 1 divides 1.

DefinitionDefinition: AI-adaptedProof: Not applicableaudited 2026-08-26Open item page →

Cyclic shifts of an integer word and its periodic partial-sum function

Definition

Throughout, m is a natural number with m≥1, and a word of length m over a set X is a function a from {0,1,…,m−1} to X, written a=a0a1⋯am−1 (Finite words, contiguous factors, avoidance and proper-prefix states).

Remainders. For every j∈Z there is exactly one pair (q,r) of integers with j=qm+r and 0≤r<m (Division with remainder for any nonzero divisor: for a∈Z and b≠0 there are unique q,r∈Z with a=qb+r and 0≤r<∣b∣, whose bound 0≤r<∣m∣ is 0≤r<m here because m≥1, The absolute value ∣a∣ of an integer). Write j mod m:=r for that remainder, so 0≤j mod m<m for every integer j, including negative j.

Cyclic shifts. For j∈Z the shift σja of a word a of length m over X is the word of length m over X given by

(σja)i:=a(i+j) mod m(0≤i<m).

Since (i+j) mod m lies in {0,…,m−1} this is again a word of length m, and σja begins at the position j mod m of a.

Weight. Let now a be a word of length m of integers (The integers as equivalence classes of pairs of naturals). Its weight is

∥a∥:=∑i<mai,

the finite sum in the commutative monoid (Z,+,0) (The integers form a commutative ring, Semigroup and monoid), that is the finite product of The product g0g1⋯gn−1 of a finite list in a monoid, by recursion, with the empty product (n=0) equal to the identity written additively, whose two clauses read ∑i<0ai=0 and ∑i<r+1ai=∑i<rai+ar.

The periodic partial-sum function. Define Sa:Z→Z by

Sa(j):=q ∥a∥+∑i<raiwhere j=qm+r, 0≤r<m.

This is well defined because the pair (q,r) is unique. Defining Sa on all of Z by a closed formula, rather than by extending a one-sided sequence, is what makes the statements below about all integers j available at once.

Three identities, proved here because everything below uses them.

(a) On the first period Sa is the ordinary partial sum. For 0≤j≤m one has Sa(j)=∑i<jai. For j<m this is the definition with q=0 and r=j; for j=m it is the definition with q=1 and r=0, giving Sa(m)=∥a∥=∑i<mai. In particular Sa(0)=0.

(b) Quasiperiodicity. Sa(j+m)=Sa(j)+∥a∥ for every j∈Z: if j=qm+r with 0≤r<m then j+m=(q+1)m+r with the same r, so the two values differ by exactly one copy of ∥a∥.

(c) The one-step difference. Sa(j)−Sa(j−1)=a(j−1) mod m for every j∈Z. Write j−1=qm+r with 0≤r<m, so (j−1) mod m=r and Sa(j−1)=q∥a∥+∑i<rai. If r+1<m then j=qm+(r+1), so Sa(j)=q∥a∥+∑i<r+1ai and the difference is ar by the second clause of the finite sum. If r+1=m then j=(q+1)m+0, so Sa(j)=(q+1)∥a∥ and the difference is ∥a∥−∑i<m−1ai, which is am−1=ar by the same clause applied at r=m−1.

Remarks

  • The shift index is a position, not a rotation count in the other direction. σja reads a starting at position j mod m, so σ1a drops the first letter of a and appends it at the end. The sources cut necklaces at both ends and a page that mixes the two conventions gets the correspondences of the cycle lemma pointing the wrong way; the convention here is fixed once, in this definition, and is restated where it is used.

  • The weight is an integer and may be negative or zero. Nothing in this definition constrains the letters. The hypotheses ai≤1 and ∥a∥≥1 that the cycle lemma needs are stated in the results that use them, not built into the objects.

LemmaStatement: AI-adaptedProof: AI-adaptedprecheck passjudge pass (deepseek-v4-pro + gpt-5.6-terra)audited 2026-08-26Open item page →

Cyclic shifting is an action of Z/m on the words of length m over a set

Statement

Let X be a set and m≥1, and let Xm be the set of words of length m over X, with the shifts σj of Cyclic shifts of an integer word and its periodic partial-sum function.

  1. σ0 is the identity of Xm, and σj(σka)=σj+ka for all j,k∈Z and a∈Xm.
  2. σja=σj′a whenever j≡j′(modm). Hence [j]m⋅a:=σja is a well-defined left action of the additive group Z/m (The congruence class [a]n and the quotient set Z/n, For every natural n, (Z/n,+) is an abelian group, multiplication is a commutative monoid operation, and both distributive laws hold) on Xm, in the sense of Left group actions, transitive actions, and faithful actions.
  3. For every x∈X the number of positions of σja carrying the letter x equals the number of positions of a carrying x. In particular, for a word of integers, ∥σja∥=∥a∥.

Facts & Assumptions

Given: a set X, a natural number m≥1, and words of length m over X.

[F1]

(σja)i=a(i+j) mod m for 0≤i<m, where j mod m is the unique r with j=qm+r and 0≤r<m; and ∥a∥=∑i<mai for a word of integers (Cyclic shifts of an integer word and its periodic partial-sum function).

[L1]

A left action of a group G with identity e on a set X is a function G×X→X with e⋅x=x and (gh)⋅x=g⋅(h⋅x) for all g,h∈G and x∈X (Left group actions, transitive actions, and faithful actions).

[L2]

[j]m=[j′]m holds exactly when j≡j′(modm) (The congruence class [a]n and the quotient set Z/n).

[L3]

Z/m is a commutative ring under the induced operations, so in particular its addition makes it an abelian group with identity [0]m (For every natural n, (Z/n,+) is an abelian group, multiplication is a commutative monoid operation, and both distributive laws hold).

[L4]

For a commutative monoid M and g:N→M, if π is a permutation of the von Neumann natural n and hi=gπ(i) for every i<n, then ∏i<nhi=∏i<ngi (Generalised associativity: in a monoid the product of a finite list does not depend on the bracketing, and in a commutative monoid it does not depend on the order of the factors either, clause 3).

[L5]

If A is finite and f:A→B is a bijection then B is finite and ∣B∣=∣A∣ (The cardinality ∣A∣ of a finite set).

[L6]

Proof

technique · direct
1.1F1algebra

For every integer x and every k∈Z one has ((x mod m)+k) mod m=(x+k) mod m, because x−(x mod m) is a multiple of m and adding a multiple of m to the argument changes neither the remainder nor its defining inequalities.

2.1F1L6step 1.1

The map πj:i↦(i+j) mod m is a permutation of {0,…,m−1}: the map i↦(i−j) mod m is a two-sided inverse of it, since by step 1.1 both composites send i to i mod m, which is i for 0≤i<m.

2.2F1step 1.1

Clause 1 holds: (σ0a)i=ai mod m=ai for 0≤i<m, and (σj(σka))i=(σka)(i+j) mod m=a(((i+j) mod m)+k) mod m=a(i+j+k) mod m=(σj+ka)i using step 1.1.

2.3F1L1L2L3step 1.1

Clause 2 holds: if j≡j′(modm) then (i+j) mod m=(i+j′) mod m for every i, since the two arguments differ by a multiple of m, so σja=σj′a; by [L2] the rule [j]m⋅a:=σja is therefore well defined on Z/m, and by [L3] together with clause 1 it satisfies the two axioms of [L1] with e=[0]m.

3.1F1L4L5step 2.1

Clause 3 holds: by step 2.1 the map πj is a permutation of the index set, and it carries the positions of σja carrying x bijectively onto the positions of a carrying x, since (σja)i=x exactly when aπj(i)=x; so the two counts agree by [L5]. For a word of integers, [L4] applied with π=πj gives ∥σja∥=∑i<maπj(i)=∑i<mai=∥a∥.

4.1step 2.2step 2.3step 3.1∎

The three clauses are established.

Remarks

  • Why the acting group is Z/m and not Z. Both act, and the Z-action factors through Z/m by clause 2. Taking the finite group is what makes the orbit and stabiliser counts below available, and it is the only reason the reduction is recorded.

  • Clause 3 is what confines the action to a level set. The shift preserves the number of positions carrying each letter, so it acts on the words with a prescribed letter count and on the words of a prescribed weight. The cycle lemma is a statement about one such orbit.

LemmaStatement: AI-adaptedProof: AI-adaptedprecheck passaudited 2026-08-26Open item page →

If gcd⁡(∥a∥,m)=1 then the shift stabiliser of a is trivial, so its orbit has exactly m elements

Statement

Let m≥1 and let a be a word of length m of integers whose weight is coprime to m, that is gcd⁡(∥a∥,m)=1 (Coprime integers: gcd⁡(a,b)=1, Cyclic shifts of an integer word and its periodic partial-sum function). Then, for the action of Z/m on words of length m by cyclic shifts (Cyclic shifting is an action of Z/m on the words of length m over a set):

  1. the stabiliser of a is the trivial subgroup {[0]m} (The orbit G⋅x and stabilizer Gx of a point in a group action);
  2. the orbit of a is finite with exactly m elements.

Facts & Assumptions

Given: a natural number m≥1 and a word a of length m of integers with gcd⁡(∥a∥,m)=1.

[F1]

(σja)i=a(i+j) mod m for 0≤i<m, and j mod m is the unique r with j=qm+r and 0≤r<m (Cyclic shifts of an integer word and its periodic partial-sum function).

[F2]

Sa(j)=q∥a∥+∑i<rai for j=qm+r with 0≤r<m; Sa(0)=0; and Sa(j)−Sa(j−1)=a(j−1) mod m for every j∈Z (Cyclic shifts of an integer word and its periodic partial-sum function).

[L1]

σ0 is the identity, σj(σka)=σj+ka, and [j]m⋅a:=σja is a well-defined left action of the additive group Z/m on the words of length m (Cyclic shifting is an action of Z/m on the words of length m over a set, clauses 1 and 2).

[L2]

A property that holds at 0 and passes from every natural number to its successor holds at every natural number: if a property P satisfies P(0) and (P(n)⇒P(σ(n))) for all n, then P(n) holds for all n∈N (The principle of mathematical induction).

[L3]

For d,x∈Z, d divides x when x=dq for some q∈Z (Divisibility in Z: d∣a when a=dq for some integer q).

[L5]

gcd⁡(x,y) is the greatest common divisor of x and y, and gcd⁡(x,y)≥1 when x and y are not both 0 (Common divisor, and the greatest common divisor gcd⁡(a,b), with the convention gcd⁡(0,0):=0).

[L6]

Integers x and y are coprime when gcd⁡(x,y)=1 (Coprime integers: gcd⁡(a,b)=1).

[L8]

Every class in Z/m contains exactly one integer r with 0≤r<m, and ∣Z/m∣=m (For n≥1, every class in Z/n has one representative r with 0≤r<n, so ∣Z/n∣=n; while Z/0 is in bijection with Z).

[L9]

Z/m is a commutative ring under the induced operations, so its addition makes it an abelian group with identity [0]m (For every natural n, (Z/n,+) is an abelian group, multiplication is a commutative monoid operation, and both distributive laws hold).

[L10]

If A is finite and f:A→B is a bijection then B is finite and ∣B∣=∣A∣ (The cardinality ∣A∣ of a finite set).

Proof

technique · direct
1.1F1L1L8

Suppose [d]m lies in the stabiliser of a, with 0≤d<m chosen as the representative supplied by [L8]. Then σda=a, that is a(i+d) mod m=ai for every i with 0≤i<m.

2.1F1F2L2step 1.1

For every j∈N one has Sa(j+d)=Sa(j)+Sa(d). At j=0 this is Sa(d)=0+Sa(d) by [F2]. If it holds at j, then applying the one-step difference identity of [F2] at j+1+d and at j+1 gives Sa(j+1+d)=Sa(j+d)+a(j+d) mod m and Sa(j+1)=Sa(j)+aj mod m, and step 1.1 makes the two added letters equal, since (j+d) mod m=((j mod m)+d) mod m and j mod m lies in the index range; so the identity holds at j+1. Induction gives it for all j.

3.1F2L2L3step 2.1

For every k∈N one has Sa(kd)=k Sa(d): at k=0 both sides are 0, and the inductive step is step 2.1 with j=kd. Taking k=m gives m Sa(d)=Sa(md), while md=d⋅m+0 exhibits md in the form qm+r with q=d and r=0, so Sa(md)=d ∥a∥ by [F2]. Hence m Sa(d)=d ∥a∥, and therefore m divides d ∥a∥.

4.1L3L4L5L6L7step 3.1

Since m≥1, the pair ∥a∥, m is not both zero, so [L4] gives integers x0,y0 with ∥a∥x0+my0=gcd⁡(∥a∥,m), which is 1 by hypothesis and [L6]. Multiplying by d gives d=(d∥a∥)x0+m(dy0); by step 3.1 the integer m divides d∥a∥, and it divides m, so [L7] makes it divide d. With 0≤d<m this forces d=0: writing d=mq, any q≥1 would give d≥m and any q≤−1 would give d<0. So the stabiliser contains only [0]m, which is clause 1.

5.1L1L8L9L10step 4.1∎

The map Z/m→Z/m⋅a sending [j]m to [j]m⋅a is surjective by the definition of the orbit and injective: if [j]m⋅a=[j′]m⋅a then applying the inverse of [j′]m in the abelian group Z/m and using the action axioms of [L1] and [L9] gives [j−j′]m⋅a=a, so [j−j′]m=[0]m by step 4.1 and [j]m=[j′]m. Since ∣Z/m∣=m by [L8], transport along this bijection by [L10] makes the orbit finite with exactly m elements, which is clause 2.

Remarks

  • The hypothesis is exactly what the Catalan application supplies. There the word has weight 1, and gcd⁡(1,m)=1 for every m, so the orbit of every such word has full size and the count of orbits is the count of words divided by m. Without a coprimality hypothesis a word can repeat: the word 1,−1,1,−1 has weight 0 and is fixed by the shift by two positions.

  • No orbit-stabiliser theorem is used. The orbit size is obtained from the injectivity of [j]m↦[j]m⋅a, which is what a trivial stabiliser says directly; invoking the coset bijection would then require counting the cosets of the trivial subgroup, which is the same computation one step further away.

LemmaStatement: AI-adaptedProof: AI-adaptedprecheck passjudge pass (deepseek-v4-pro + gpt-5.6-terra)audited 2026-08-26Open item page →

σja has all partial sums positive exactly when Sa(i)>Sa(j) for every i>j

Statement

Let m≥1, let a be a word of length m of integers with ∥a∥≥1, and let j∈Z (Cyclic shifts of an integer word and its periodic partial-sum function).

  1. For every r with 0≤r≤m,

    ∑i<r(σja)i=Sa(j+r)−Sa(j).

  2. Every partial sum ∑i<r(σja)i with 1≤r≤m is positive if and only if Sa(i)>Sa(j) for every integer i>j.

Call j∈Z a strict right minimum of Sa when Sa(i)>Sa(j) for every integer i>j. Clause 2 says that the shift σja has all of its partial sums positive exactly when j is a strict right minimum of Sa.

Facts & Assumptions

Given: a natural number m≥1, a word a of length m of integers with ∥a∥≥1, and an integer j.

[F1]

(σja)i=a(i+j) mod m for 0≤i<m (Cyclic shifts of an integer word and its periodic partial-sum function).

[F2]

Sa(0)=0; Sa(j)−Sa(j−1)=a(j−1) mod m for every j∈Z; Sa(j+m)=Sa(j)+∥a∥ for every j∈Z; and the finite sum satisfies ∑i<0ci=0 and ∑i<r+1ci=∑i<rci+cr (Cyclic shifts of an integer word and its periodic partial-sum function).

[L1]

A property that holds at 0 and passes from every natural number to its successor holds at every natural number: if a property P satisfies P(0) and (P(n)⇒P(σ(n))) for all n, then P(n) holds for all n∈N (The principle of mathematical induction).

[L2]

For x,b∈Z with b≠0 there is exactly one pair (q,r) of integers with x=qb+r and 0≤r<∣b∣ (Division with remainder for any nonzero divisor: for a∈Z and b≠0 there are unique q,r∈Z with a=qb+r and 0≤r<∣b∣).

Proof

technique · direct
1.1F1F2L1

Clause 1 holds by induction on r. At r=0 both sides are 0 by [F2]. If it holds at r with r<m, then the finite-sum clause gives ∑i<r+1(σja)i=∑i<r(σja)i+(σja)r, which by the inductive hypothesis and [F1] is Sa(j+r)−Sa(j)+a(j+r) mod m, and the one-step difference identity of [F2] applied at j+r+1 turns the last two terms into Sa(j+r+1)−Sa(j).

2.1F2L1L2step 1.1

For every t∈N and every i∈Z one has Sa(i+tm)=Sa(i)+t∥a∥: at t=0 this is trivial, and the step is the quasiperiodicity clause of [F2]. Hence, if every partial sum of σja over 1≤r≤m is positive, then Sa(j+r)>Sa(j) for those r by step 1.1, and for an arbitrary integer i>j we may write i−j−1=tm+r′ with 0≤r′<m and t≥0 by [L2], since i−j−1≥0; putting r:=r′+1, so 1≤r≤m and i=j+r+tm, gives Sa(i)=Sa(j+r)+t∥a∥≥Sa(j+r)>Sa(j) because ∥a∥≥1 and t≥0.

3.1step 1.1step 2.1∎

Conversely, if Sa(i)>Sa(j) for every integer i>j, then in particular Sa(j+r)>Sa(j) for 1≤r≤m, so every partial sum of σja over that range is positive by step 1.1. The two directions together are clause 2.

Remarks

  • Why the condition is stated for all i>j and not for one period. The one-period form is what a shift's partial sums see, and the unbounded form is what the succession structure of the strict right minima is stated in. The equivalence needs ∥a∥≥1: with weight 0 the function Sa is periodic, Sa(j+m)=Sa(j), and no index is a strict right minimum. In that case the full-period partial sum is also 0, so no shift has every nonempty partial sum positive.

  • The strict right minima are a property of Sa alone. They do not refer to the word except through its partial-sum function, and that is what makes the counting argument of the cycle lemma a statement about Z rather than about words.

LemmaStatement: AI-adaptedProof: AI-adaptedprecheck passjudge pass (deepseek-v4-pro + gpt-5.6-terra)audited 2026-08-26Open item page →

If every ai≤1 and ∥a∥≥1, the strict right minima form a two-sided increasing list on which Sa increases by exactly 1 at each successive index

Statement

Let m≥1 and let a be a word of length m of integers with ai≤1 for every i<m and with k:=∥a∥≥1 (Cyclic shifts of an integer word and its periodic partial-sum function). Write R for the set of strict right minima of Sa, that is the set of j∈Z with Sa(i)>Sa(j) for every integer i>j (σja has all partial sums positive exactly when Sa(i)>Sa(j) for every i>j).

  1. Existence and value. For every M∈Z there is exactly one j∈R with Sa(j)=M. Writing ρ(M) for it, the map ρ:Z→R is a bijection with Sa(ρ(M))=M.
  2. Succession. ρ is strictly increasing, and ρ(M+k)=ρ(M)+m for every M∈Z.
  3. Window count. For every j0∈Z the set R∩{j0,j0+1,…,j0+m−1} is finite with exactly k elements.

The hypothesis ai≤1 enters only in clause 1, where it is what forces the value at a strict right minimum to be exactly M rather than merely at most M.

Facts & Assumptions

Given: a natural number m≥1 and a word a of length m of integers with ai≤1 for every i<m and k=∥a∥≥1.

[F1]

Sa(0)=0; Sa(j)=∑i<jai for 0≤j≤m; Sa(j)−Sa(j−1)=a(j−1) mod m for every j∈Z; Sa(j+m)=Sa(j)+∥a∥ for every j∈Z; and Sa(qm+r)=q∥a∥+∑i<rai for 0≤r<m (Cyclic shifts of an integer word and its periodic partial-sum function).

[F2]

An integer j is a strict right minimum of Sa when Sa(i)>Sa(j) for every integer i>j (σja has all partial sums positive exactly when Sa(i)>Sa(j) for every i>j).

[L1]

A property that holds at 0 and passes from every natural number to its successor holds at every natural number: if a property P satisfies P(0) and (P(n)⇒P(σ(n))) for all n, then P(n) holds for all n∈N (The principle of mathematical induction).

[L2]

The order on Z is total, antisymmetric and transitive, and is compatible with addition; positives are closed under multiplication (The integers form a totally ordered ring).

[L3]

A nonempty S⊆Z with an upper bound has a unique greatest element, and a nonempty S⊆Z with a lower bound has a unique least element (A nonempty set of integers bounded above has a greatest element, and a nonempty set of integers bounded below has a least element).

[L4]

For x,b∈Z with b≠0 there is exactly one pair (q,r) of integers with x=qb+r and 0≤r<∣b∣ (Division with remainder for any nonzero divisor: for a∈Z and b≠0 there are unique q,r∈Z with a=qb+r and 0≤r<∣b∣).

[L5]
[L6]

If A is finite and f:A→B is a bijection then B is finite and ∣B∣=∣A∣; and ∣n∣=n for a natural number n (The cardinality ∣A∣ of a finite set).

Proof

technique · direct
1.1F1L1L2

The integers Sa(0),Sa(1),…,Sa(m−1) have a least element μ: by induction on t, every list Sa(0),…,Sa(t) has a least element, since the order on Z is total, so adjoining one further integer to a list with a least element leaves it with one.

1.2F1L1L2

For every M∈Z the set TM:={ i∈Z:Sa(i)≤M } is nonempty. If M≥0 then Sa(0)=0≤M. If M<0 then put t:=−M, a positive integer; induction on t with the quasiperiodicity clause of [F1] gives Sa(−tm)=−tk, and tk≥t because k≥1, so Sa(−tm)≤−t=M.

2.1F1L2L4step 1.1

Each TM has an upper bound. Let i∈TM and write i=qm+r with 0≤r<m by [L4], so Sa(i)=qk+Sa(r)≥qk+μ by [F1] and step 1.1, whence qk≤M−μ. If q≥1 then q≤qk because k≥1, so q≤M−μ; and if q≤0 then q≤0. So in either case q≤B, where B is the greater of 0 and M−μ, and therefore i≤Bm+m−1.

3.1F1F2L3step 1.2step 2.1

By [L3] the set TM has a greatest element jM. Every i>jM lies outside TM, so Sa(i)>M≥Sa(jM), and jM is a strict right minimum. Its value is exactly M: the one-step difference identity of [F1] gives Sa(jM+1)−Sa(jM)=ajM mod m≤1 by hypothesis, while Sa(jM+1)>M since jM+1 is outside TM, so M<Sa(jM+1)≤Sa(jM)+1≤M+1 and hence Sa(jM)=M.

4.1F2L5step 3.1

At most one strict right minimum has a given value: if j<j′ are both strict right minima then Sa(j′)>Sa(j), so their values differ. With step 3.1 this gives, for each M, exactly one j∈R with Sa(j)=M; write ρ(M) for it. Every j∈R satisfies j=ρ(Sa(j)) by that uniqueness, so ρ is onto R, and it is injective because Sa(ρ(M))=M; by [L5] it is a bijection Z→R. This is clause 1.

5.1F1F2step 4.1

ρ is strictly increasing: if M<M′ and ρ(M′)≤ρ(M), then either ρ(M′)=ρ(M), forcing M=M′, or ρ(M′)<ρ(M), and then the strict right minimum property of ρ(M′) gives M=Sa(ρ(M))>Sa(ρ(M′))=M′; both contradict M<M′. And ρ(M)+m is a strict right minimum of value M+k: for i>ρ(M)+m we have i−m>ρ(M), so the quasiperiodicity clause of [F1] gives Sa(i)=Sa(i−m)+k>Sa(ρ(M))+k=Sa(ρ(M)+m), and Sa(ρ(M)+m)=M+k; hence ρ(M+k)=ρ(M)+m by step 4.1. This is clause 2.

6.1L1L3L6step 4.1step 5.1∎

Fix j0∈Z. Iterating clause 2 by induction gives ρ(M+tk)=ρ(M)+tm for every t∈N, so the set {M:ρ(M)≥j0} is nonempty, taking t with tm≥j0−ρ(0), and bounded below, since for t with ρ(0)−tm<j0 every M≤−tk has ρ(M)≤ρ(−tk)=ρ(0)−tm<j0; let M0 be its least element by [L3]. Then ρ(M0−1)<j0≤ρ(M0), so ρ(M0+k)=ρ(M0)+m≥j0+m and ρ(M0+k−1)=ρ(M0−1)+m<j0+m. Since ρ is strictly increasing and every member of R is some ρ(M), the members of R in {j0,…,j0+m−1} are exactly ρ(M0),…,ρ(M0+k−1), and i↦ρ(M0+i) is a bijection from the natural number k onto that set; so by [L6] the set is finite with exactly k elements, which is clause 3.

Remarks

  • Why the hypothesis ai≤1 cannot be dropped. It is used exactly once, in step 3.1, to force Sa(jM)=M: without it the greatest element of TM can have a value strictly below M, several values of M then share one strict right minimum, and the succession structure of clause 2 fails. A word with a letter 2 shows this at once, and it is the reason the cycle lemma is stated for words whose letters are at most 1.

  • Why the hypothesis ∥a∥≥1 cannot be dropped. It is what makes Sa take arbitrarily large values to the right of any index and arbitrarily small ones to the left, which is what makes every TM nonempty and bounded above. With weight 0 the function is periodic and R is empty.

TheoremStatement: Literature-sourcedProof: AI-adaptedprecheck passjudge pass (deepseek-v4-pro + gpt-5.6-terra)audited 2026-08-26Open item page →

The cycle lemma (Dvoretzky–Motzkin): if every ai≤1 and ∥a∥=k≥1, then exactly k of the m cyclic shifts of a have all partial sums positive

Statement

Orientation convention, fixed here and cited wherever it is used. A shift σja is counted when all of its partial sums ∑i<r(σja)i, for 1≤r≤m, are strictly positive, and shifts are indexed by starting position, so σja begins at position j mod m of a (Cyclic shifts of an integer word and its periodic partial-sum function).

  1. Let m≥1 and let a be a word of length m of integers with ai≤1 for every i<m and ∥a∥=k≥1. Then exactly k of the m indices j with 0≤j<m are such that σja has all its partial sums positive.
  2. Boxes and circles. Let p,n,μ∈N with m:=p+n≥1, and let a be a word of length m in which p positions carry the letter 1 and the remaining n positions carry the letter −μ. Then ∥a∥=p−μn, and if p−μn≥1 then exactly p−μn of the m indices j with 0≤j<m are such that σja has all its partial sums positive.

Facts & Assumptions

Given: a natural number m≥1 and a word a of length m of integers, with the hypotheses of the clause being proved.

[F1]

∥a∥=∑i<mai; (σja)i=a(i+j) mod m; and the finite sum satisfies ∑i<0ci=0 and ∑i<r+1ci=∑i<rci+cr (Cyclic shifts of an integer word and its periodic partial-sum function).

[L1]

For ∥a∥≥1 and j∈Z: every partial sum ∑i<r(σja)i with 1≤r≤m is positive if and only if Sa(i)>Sa(j) for every integer i>j, that is exactly when j is a strict right minimum of Sa (σja has all partial sums positive exactly when Sa(i)>Sa(j) for every i>j).

[L2]

If ai≤1 for every i<m and k=∥a∥≥1, then for every j0∈Z the set of strict right minima of Sa lying in {j0,…,j0+m−1} is finite with exactly k elements (If every ai≤1 and ∥a∥≥1, the strict right minima form a two-sided increasing list on which Sa increases by exactly 1 at each successive index, clause 3).

[L3]

For a commutative monoid M and g:N→M: ∏i<p+ngi=(∏i<pgi)⋅(∏j<ngp+j); and if π is a permutation of the von Neumann natural ℓ and hi=gπ(i) for every i<ℓ, then ∏i<ℓhi=∏i<ℓgi (Generalised associativity: in a monoid the product of a finite list does not depend on the bracketing, and in a commutative monoid it does not depend on the order of the factors either, clauses 1 and 3).

[L4]

A property that holds at 0 and passes from every natural number to its successor holds at every natural number: if a property P satisfies P(0) and (P(n)⇒P(σ(n))) for all n, then P(n) holds for all n∈N (The principle of mathematical induction).

[L5]

∣n∣=n for a natural number n, and a bijection transports finiteness and cardinality (The cardinality ∣A∣ of a finite set).

Proof

technique · direct
1.1L1

By [L1] an index j is such that σja has all its partial sums positive exactly when j is a strict right minimum of Sa; so the set of indices to be counted in clause 1 is the set of strict right minima lying in {0,1,…,m−1}.

2.1L2L5step 1.1

By [L2] with j0=0 that set is finite with exactly k elements, which is clause 1.

3.1F1L3L4step 2.1∎

For clause 2, first compute the weight. Reordering the positions is a permutation of the index set, so by the permutation clause of [L3] the weight of a equals the weight of the word b whose first p letters are 1 and whose remaining n letters are −μ; the splitting clause of [L3] gives ∥b∥=∑i<p1+∑j<n(−μ), and induction with the finite-sum clause of [F1] evaluates a sum of p copies of 1 as p and a sum of n copies of −μ as −μn; hence ∥a∥=p−μn. Each letter is at most 1, since 1≤1 and −μ≤1 for μ≥0, so if p−μn≥1 then clause 1 applies with k=p−μn and gives clause 2.

Remarks

TheoremStatement: AI-adaptedProof: AI-adaptedprecheck passjudge pass (deepseek-v4-pro + gpt-5.6-terra)audited 2026-08-26Open item page →

(2n+1) Cn=(2n+1n), a second derivation of the Catalan count

Statement

For every n∈N, in N,

(2n+1) Cn=(2n+1n),

where Cn is the Catalan number (The Catalan number Cn:=∣Dn∣).

This is a second derivation of the Catalan count, by a group action rather than by a reflection: the route runs through the cycle lemma (The cycle lemma (Dvoretzky–Motzkin): if every ai≤1 and ∥a∥=k≥1, then exactly k of the m cyclic shifts of a have all partial sums positive) and the orbits of the cyclic shift, and it uses no reflection and no difference of binomial coefficients. The identity is consistent with (n+1)Cn=(2nn) ((n+1) Cn=(2nn)), and the consistency is the separate identity (n+1)(2n+1n)=(2n+1)(2nn) proved below.

Facts & Assumptions

Given: a natural number n; the set W of words of length 2n+1 over {1,−1} having exactly n entries −1; and the set G of those a∈W all of whose partial sums ∑i<rai, 1≤r≤2n+1, are positive.

[F1]
[F2]

Dn corresponds bijectively, through step words, to the set of ballot words of length 2n, that is the words over a two-letter alphabet in which the two letters occur equally often and every prefix has at least as many of the first letter as of the second (Dyck paths of semilength n).

[F3]

∥a∥=∑i<mai, (σja)i=a(i+j) mod m, and the finite sum satisfies ∑i<0ci=0 and ∑i<r+1ci=∑i<rci+cr (Cyclic shifts of an integer word and its periodic partial-sum function).

[L1]

If p,n′,μ∈N and a word of length p+n′≥1 has p positions carrying 1 and n′ positions carrying −μ, then its weight is p−μn′; and if a has every letter at most 1 and ∥a∥=k≥1 then exactly k of the m indices j with 0≤j<m are such that σja has all its partial sums positive (The cycle lemma (Dvoretzky–Motzkin): if every ai≤1 and ∥a∥=k≥1, then exactly k of the m cyclic shifts of a have all partial sums positive, clauses 2 and 1).

[L2]

If gcd⁡(∥a∥,m)=1 then the stabiliser of a under the shift action of Z/m is {[0]m} and the orbit of a has exactly m elements (If gcd⁡(∥a∥,m)=1 then the shift stabiliser of a is trivial, so its orbit has exactly m elements).

[L3]

For every letter x the number of positions of σja carrying x equals the number of positions of a carrying x, and [j]m⋅a:=σja is a left action of Z/m on the words of length m (Cyclic shifting is an action of Z/m on the words of length m over a set, clauses 2 and 3).

[L4]

For a left action of G on X the relation x∼y given by y=g⋅x for some g∈G is an equivalence relation, its class at x is the orbit of x, and the distinct orbits partition X (The orbits of a group action are the equivalence classes of x∼y iff y=g⋅x for some g, and hence partition the acted-on set).

[L5]

For a finite set A and k∈N, [A]k is the set of k-element subsets of A, and ∣[A]k∣=(∣A∣k) (The set [A]k of k-element subsets and the binomial coefficient (nk):=∣[n]k∣).

[L6]

If I is finite and (Ai)i∈I are pairwise disjoint finite sets, then ⋃i∈IAi is finite with ∣⋃i∈IAi∣=∑i∈I∣Ai∣ (The sum rule: a finite disjoint union is finite with ∣A∪B∣=∣A∣+∣B∣ and ∣⋃i∈IAi∣=∑i∈I∣Ai∣, and a sum over a finite index set splits along a partition, clause 2).

[L7]

For a constant natural number c and a finite index set S, ∑i∈Sc=∣S∣⋅c (The sum ∑i∈Sai over a finite index set, and its product form, clause (c)).

[L9]

If A is finite and f:A→B is a bijection then B is finite and ∣B∣=∣A∣ (The cardinality ∣A∣ of a finite set).

[L10]
[L12]

M!≠0 for every M∈N, and σ(M)!=M!⋅σ(M) (The factorial n! and the falling factorial nk‾, defined by recursion in N).

[L13]

For all x,y,c∈N with c≠0: if x⋅c=y⋅c then x=y (Cancellation for multiplication by a nonzero factor).

[L14]

(n+1) Cn=(2nn) in N ((n+1) Cn=(2nn)).

[L15]

Integers x and y are coprime when gcd⁡(x,y)=1; x and 1 are coprime for every integer x, since gcd⁡(x,1)=1, and the relation is symmetric (Coprime integers: gcd⁡(a,b)=1).

Proof

technique · direct
1.1L5L9L10

The map sending a∈W to { j:0≤j<2n+1, aj=−1 } is a bijection from W onto the n-element subsets of the (2n+1)-element set {0,…,2n}, its inverse sending a subset T to the word with entry −1 at the positions of T and 1 elsewhere; so W is finite with ∣W∣=(2n+1n).

1.2F3L1

Every a∈W has n positions carrying −1 and the remaining n+1 positions carrying 1, so its weight is (n+1)−n=1 by the box-and-circle clause of [L1] with p=n+1, n′=n and μ=1; and every letter of a is at most 1.

1.3F1F2F3L9L10

The set G is in bijection with Dn, so ∣G∣=Cn. A word a∈G has first partial sum a0>0, hence a0=1; deleting it leaves the word w=a1⋯a2n of length 2n over {1,−1}, whose partial sums are ∑i<rwi=(∑i<r+1ai)−1≥0 and whose total is ∥a∥−1=0, so w has n entries of each sign and every prefix at least as many entries 1 as −1: a ballot word of length 2n under the relabelling of 1 and −1 as the two letters. Prepending 1 inverts the deletion and carries a ballot word back into G, since the partial sums then become 1 plus a nonnegative number and the total becomes 1. With [F1], [F2], [L9] and [L10] this gives ∣G∣=∣Dn∣=Cn.

2.1L2L3L15step 1.2

The shift action of Z/(2n+1) restricts to W, because shifting preserves the number of positions carrying each letter by [L3]. Since gcd⁡(1,2n+1)=1, step 1.2 and [L2] make every stabiliser in W trivial, so every orbit has exactly 2n+1 elements and the 2n+1 words σja with 0≤j<2n+1 are pairwise distinct.

3.1L1L4L6L7L8L9step 1.1step 2.1

Each orbit meets G in exactly one word: by [L1] with k=1 there is exactly one index j in {0,…,2n} with σja∈G, and by step 2.1 distinct indices give distinct words, so exactly one member of the orbit lies in G. Hence g↦ (orbit of g) is a bijection from G onto the set of orbits, whose members partition W by [L4]; G is finite by [L8] and step 1.1, and [L6] with index set G together with [L7] gives ∣W∣=∑g∈G(2n+1)=∣G∣⋅(2n+1).

4.1L5L11L12L13L14step 1.1step 1.3step 3.1∎

Combining steps 1.1, 1.3 and 3.1 gives (2n+1)Cn=∣W∣=(2n+1n). For the consistency with [L14]: n≤2n+1 and (2n+1)−n=n+1, so [L11] gives (2n+1n) n! (n+1)!=(2n+1)!, which with (n+1)!=(n+1) n! from [L12] reads (n+1)(2n+1n)⋅n! n!=(2n+1)!; and [L11] applied to (2nn) gives (2nn)n! n!=(2n)!, so (2n+1)(2nn)⋅n! n!=(2n+1) (2n)!=(2n+1)! by [L12]. Cancelling the nonzero factor n! n! by [L12] and [L13] gives (n+1)(2n+1n)=(2n+1)(2nn), so multiplying the identity of this theorem by n+1 and the identity of [L14] by 2n+1 produces the same equation and the two closed forms agree. At n=0 the theorem reads C0=(10)=1.

Remarks

  • This is a different route, not a rearrangement. The reflection derivation matches paths that touch a level with paths from a reflected starting point; this one lets a cyclic group act on words and counts orbits. The two share only the definition of Cn as a count of Dyck paths, and each yields a closed form the other does not produce directly: (2n+1)Cn=(2n+1n) here and (n+1)Cn=(2nn) there.

  • Where the coprimality is spent. Every word in W has weight 1, and 1 is coprime to every modulus, so no orbit is short and no word is counted twice. Without that the orbit count would not be ∣W∣ divided by the length, and the argument would give an inequality rather than an identity.

LemmaStatement: Literature-sourcedProof: AI-adaptedprecheck passjudge pass (deepseek-v4-pro + gpt-5.6-terra)audited 2026-08-26Open item page →

If ∥a∥=1 then j↦#{r:0≤r<m, Sa(j+r)≤Sa(j)} is a bijection from {0,…,m−1} onto {1,…,m}

Statement

Let m≥1 and let a be a word of length m of integers with ∥a∥=1 (Cyclic shifts of an integer word and its periodic partial-sum function). For j∈Z put

X(j):=∣{ r∈N:0≤r<m, Sa(j+r)≤Sa(j) }∣,

the number of the m partial sums of the shift σja, counted from r=0, at which Sa has not risen strictly above its value at j. Then

X:{0,1,…,m−1}⟶{1,2,…,m}

is a bijection (Injection, surjection, bijection). In particular each of the values 1,2,…,m is realised by exactly one j in {0,…,m−1}.

Facts & Assumptions

Given: a natural number m≥1 and a word a of length m of integers with ∥a∥=1.

[F1]

Sa(j+m)=Sa(j)+∥a∥ for every j∈Z; Sa(0)=0; and j mod m is the unique r with j=qm+r and 0≤r<m (Cyclic shifts of an integer word and its periodic partial-sum function).

[L1]

For d,x∈Z, d divides x when x=dq for some q∈Z (Divisibility in Z: d∣a when a=dq for some integer q).

[L2]

For x,b∈Z with b≠0 there is exactly one pair (q,r) of integers with x=qb+r and 0≤r<∣b∣ (Division with remainder for any nonzero divisor: for a∈Z and b≠0 there are unique q,r∈Z with a=qb+r and 0≤r<∣b∣).

[L3]

Let A be a finite set and B⊆A; then B is finite, ∣B∣≤∣A∣, and ∣B∣=∣A∣ if and only if B=A (A subset of a finite set is finite, with ∣B∣≤∣A∣, and equality holds if and only if B=A, clauses 1, 2 and 3).

[L4]

If m′<n′ then there is no injection from n′ to m′ (The pigeonhole principle on N, clause 2).

[L5]

∣n∣=n for a natural number n, and a bijection transports finiteness and cardinality (The cardinality ∣A∣ of a finite set).

[L6]

A function is a bijection when it is both injective and surjective (Injection, surjection, bijection).

Proof

technique · direct
1.1F1algebra

The integer key T(i):=m Sa(i)−i is m-periodic: T(i+m)=m(Sa(i)+1)−(i+m)=m Sa(i)−i=T(i), using ∥a∥=1 in the quasiperiodicity clause of [F1].

1.2L1L2algebra

T is injective on {0,…,m−1}: if T(i)=T(j) with i,j in that range, then m(Sa(i)−Sa(j))=i−j, so m divides i−j while −m<i−j<m, and writing i−j=mq forces q=0 by [L2], since q≥1 would give i−j≥m and q≤−1 would give i−j≤−m.

1.3F1algebra

For every j∈Z and every r with 0≤r<m: Sa(j+r)≤Sa(j) if and only if T(j+r)≤T(j). Put d:=Sa(j+r)−Sa(j), so T(j+r)−T(j)=md−r. If d≤0 then md−r≤−r≤0; if d≥1 then md−r≥m−r≥1, and this is the only place the hypothesis r<m is used. So the sign of md−r decides, and the two conditions agree.

2.1F1L5step 1.1step 1.3

For 0≤j<m one has X(j)=∣{ i∈N:i<m, T(i)≤T(j) }∣. Indeed r↦(j+r) mod m is a bijection of {0,…,m−1} onto itself, with inverse i↦(i−j) mod m; by step 1.1 and the periodicity of T one has T((j+r) mod m)=T(j+r), and T(j) is the value at j itself since j mod m=j in this range; so step 1.3 identifies the set counted by X(j) with the displayed set through that bijection, and [L5] preserves the count.

3.1L3step 1.2step 2.1

X is injective on {0,…,m−1}. Let i≠j lie in that range; by step 1.2 the values T(i) and T(j) differ, say T(i)<T(j). Then { l<m:T(l)≤T(i) } is contained in { l<m:T(l)≤T(j) } and does not contain j, which the second set does; so it is a proper subset of a finite set and [L3] gives a strictly smaller cardinality, that is X(i)<X(j) by step 2.1.

3.2L3L5step 2.1

X takes values in {1,…,m}: the index r=0 always satisfies Sa(j)≤Sa(j), so the counted set is nonempty and X(j)≥1; and it is a subset of an m-element set, so X(j)≤m by [L3] and [L5].

4.1L4L5L6step 3.1step 3.2∎

Both {0,…,m−1} and {1,…,m} have exactly m elements. If X omitted a value of {1,…,m}, then by steps 3.1 and 3.2 it would be an injection from an m-element set into a set of at most m−1 elements, which [L4] forbids; so X is surjective as well as injective and is a bijection by [L6].

Remarks

  • This is not the cycle lemma. The cycle lemma counts the shifts all of whose partial sums are positive, and for weight 1 that is exactly one shift. This lemma sorts every shift, by how many of its partial sums fail to rise above the starting value, and finds that the m shifts realise the m possible counts once each. The shift with count 1 is the one the cycle lemma singles out.

  • Why an integer key and not a rational one. The source perturbs Sa by i/m to break ties; multiplying through by m gives T(i)=m Sa(i)−i, which does the same work without leaving Z. The tie-breaking is exactly the injectivity of step 1.2.

TheoremStatement: Literature-sourcedProof: AI-adaptedprecheck passjudge pass (deepseek-v4-pro + gpt-5.6-terra)audited 2026-08-26Open item page →

The Chung–Feller theorem: for each k with 0≤k≤n, exactly Cn of the diagonal paths from (0,0) to (2n,0) have exactly 2k steps lying above level 0

Statement

Let q be a diagonal lattice path of length ℓ with height function h (Diagonal lattice paths with steps U=(1,1) and D=(1,−1), and the height function). Its steps are the indices i with 1≤i≤ℓ, the step i passing from height h(i−1) to height h(i); it is an up step when h(i)=h(i−1)+1 and a down step when h(i)=h(i−1)−1. The step i lies above level 0 when h(i−1)≥0 and h(i)≥0, and lies below level 0 otherwise. Every step is exactly one of the two.

Let n∈N. Then every q∈W((0,0),(2n,0)) has an even number of steps above level 0, say 2k with 0≤k≤n; and for each k with 0≤k≤n the set

Fn,k:={ q∈W((0,0),(2n,0)):q has exactly 2k steps above level 0 }

is finite with

∣Fn,k∣=Cn

(The Catalan number Cn:=∣Dn∣). In particular the count does not depend on k.

Facts & Assumptions

Given: a natural number n; the set W of words of length 2n+1 over {1,−1} with exactly n entries −1, so with n+1 entries 1; the subset U⊆W of words whose entry at the position 0 is 1; and for a word w of length 2n+1 over {1,−1} the statistic κ(w):=∣{ i:0≤i≤2n, wi=1, ∑i′<iwi′≤0 }∣.

[F1]

A diagonal path of length ℓ from (0,α) is the same datum as a function h:{0,…,ℓ}→Z with h(0)=α and h(i)−h(i−1)∈{1,−1} for 1≤i≤ℓ; with μ(i) the number of up-steps among the first i its height is h(i)=α+2μ(i)−i (Diagonal lattice paths with steps U=(1,1) and D=(1,−1), and the height function).

[F2]
[F3]

∥a∥=∑i<mai; (σja)i=a(i+j) mod m; Sa(0)=0; Sa(j)−Sa(j−1)=a(j−1) mod m; Sa(j+m)=Sa(j)+∥a∥; and the finite sum satisfies ∑i<0ci=0 and ∑i<r+1ci=∑i<rci+cr (Cyclic shifts of an integer word and its periodic partial-sum function).

[L1]

If m≥1 and ∥b∥=1, then l↦∣{ r:0≤r<m, Sb(l+r)≤Sb(l) }∣ is a bijection from {0,…,m−1} onto {1,…,m} (If ∥a∥=1 then j↦#{r:0≤r<m, Sa(j+r)≤Sa(j)} is a bijection from {0,…,m−1} onto {1,…,m}).

[L2]

If gcd⁡(∥a∥,m)=1 then the stabiliser of a under the shift action of Z/m is {[0]m} and the orbit of a has exactly m elements (If gcd⁡(∥a∥,m)=1 then the shift stabiliser of a is trivial, so its orbit has exactly m elements).

[L3]

For every letter x the number of positions of σja carrying x equals the number of positions of a carrying x, and [j]m⋅a:=σja is a left action of Z/m on the words of length m (Cyclic shifting is an action of Z/m on the words of length m over a set, clauses 2 and 3).

[L4]

For a left action of G on X the relation x∼y given by y=g⋅x for some g∈G is an equivalence relation, its class at x is the orbit of x, and the distinct orbits partition X (The orbits of a group action are the equivalence classes of x∼y iff y=g⋅x for some g, and hence partition the acted-on set).

[L5]

For ∥a∥≥1, j∈Z and 0≤r≤m: ∑i<r(σja)i=Sa(j+r)−Sa(j) (σja has all partial sums positive exactly when Sa(i)>Sa(j) for every i>j, clause 1).

[L6]

(n+1) Cn=(2nn) in N ((n+1) Cn=(2nn)).

[L7]

For a finite set A and k′∈N, [A]k′ is the set of k′-element subsets of A, and ∣[A]k′∣=(∣A∣k′) (The set [A]k of k-element subsets and the binomial coefficient (nk):=∣[n]k∣).

[L8]

For a step set S, a point P and ℓ∈N, the map sending a lattice path to its step word is a bijection LS(P;ℓ)→Sℓ (For each start point the step word is a bijection onto Sn).

[L9]
[L10]

If A and B are finite and disjoint then ∣A∪B∣=∣A∣+∣B∣; and if I is finite and (Ai)i∈I are pairwise disjoint finite sets then ∣⋃i∈IAi∣=∑i∈I∣Ai∣ (The sum rule: a finite disjoint union is finite with ∣A∪B∣=∣A∣+∣B∣ and ∣⋃i∈IAi∣=∑i∈I∣Ai∣, and a sum over a finite index set splits along a partition, clauses 1 and 2).

[L11]

For a constant natural number c and a finite index set S, ∑i∈Sc=∣S∣⋅c (The sum ∑i∈Sai over a finite index set, and its product form, clause (c)).

[L12]

If A is finite and f:A→B is a bijection then B is finite and ∣B∣=∣A∣; and ∣n′∣=n′ for a natural number n′ (The cardinality ∣A∣ of a finite set).

[L13]

A subset of a finite set is finite, with cardinality at most that of the set (A subset of a finite set is finite, with ∣B∣≤∣A∣, and equality holds if and only if B=A, clauses 1 and 2).

[L15]

Every nonempty subset S⊆N has a least element (The well-ordering principle).

[L16]

A property that holds at 0 and passes from every natural number to its successor holds at every natural number: if a property P satisfies P(0) and (P(n)⇒P(σ(n))) for all n, then P(n) holds for all n∈N (The principle of mathematical induction).

[L17]

For all x,y,c∈N with c≠0: if x⋅c=y⋅c then x=y (Cancellation for multiplication by a nonzero factor).

[L18]

Integers x and y are coprime when gcd⁡(x,y)=1; x and 1 are coprime for every integer x, since gcd⁡(x,1)=1, and the relation is symmetric (Coprime integers: gcd⁡(a,b)=1).

Proof

technique · direct
1.1F1

A step i of a diagonal path joins the two heights h(i−1) and h(i), which differ by exactly 1; writing c for the smaller of them, the step lies above level 0 exactly when c≥0, hence below level 0 exactly when c≤−1. For an up step c=h(i−1) and for a down step c=h(i), so the steps below level 0 are the up steps starting at a height ≤−1 together with the down steps ending at a height ≤−1, and these two families are disjoint because a step cannot be both up and down.

1.2F1L7L8L9L12

Let β(q) be the number of up steps of q∈W((0,0),(2n,0)) starting at a height ≤−1. The map Δ sending w∈U to the diagonal path of length 2n from (0,0) whose step word is w1w2⋯w2n, with 1 read as an up step and −1 as a down step, is a bijection U→W((0,0),(2n,0)): the inverse prepends the entry 1, and by [F1] and [L8] a word of length 2n over the two letters with exactly n up letters is the step word of exactly one diagonal path of length 2n from (0,0), whose height at the last index is 0. Moreover κ(w)=1+β(Δ(w)): writing H(i)=∑i′<iwi′, the path q=Δ(w) has h(i)=H(i+1)−1 for 0≤i≤2n and its step i carries the letter wi, so the position i=0 always contributes to κ(w) because w0=1 and H(0)=0, while a position i≥1 with wi=1 contributes exactly when H(i)≤0, that is exactly when h(i−1)≤−1. Finally U is finite with ∣U∣=(2nn), since deleting the entry at the position 0 is a bijection from U onto the words of length 2n over {1,−1} with exactly n entries −1, and those correspond by [L7], [L9] and [L12] to the n-element subsets of a 2n-element set.

1.3F3L16

Fix a∈W and let t0<t1<⋯<tn be the positions of a carrying the entry 1, extended to all integers by tl+n+1:=tl+(2n+1). Put bl:=Sa(tl+1)−Sa(tl). Then bl+n+1=bl, because Sa(tl+2n+1)=Sa(tl)+∥a∥ by [F3], so b is determined by b0,…,bn and is a word of length n+1 of integers; its weight is ∥b∥=Sa(tn+1)−Sa(t0)=∥a∥, which is 1 because a has n+1 entries 1 and n entries −1. The one-step difference identity of [F3] for b reads Sb(l)−Sb(l−1)=bl−1, so induction on r gives Sb(l+r)−Sb(l)=Sa(tl+r)−Sa(tl) for every l∈Z and every r∈N.

2.1F1L10L12L14L15step 1.1

For q∈W((0,0),(2n,0)) the steps below level 0 number 2β(q), so the steps above level 0 number 2n−2β(q) with 0≤β(q)≤n. Send a down step i with c:=h(i)≤−1 to ψ(i):= the least index i′>i with h(i′)≥c+1, which exists by [L15] because h(2n)=0≥c+1; then h(ψ(i)−1)≤c and h(ψ(i))≥c+1 differ by 1, so h(ψ(i)−1)=c and h(ψ(i))=c+1 and ψ(i) is an up step starting at height c≤−1. The map is injective: if ψ(i1)=ψ(i2)=i′ then h(i1)=h(i′−1)=h(i2), and if moreover i1<i2 then i2−1>i1 with h(i2−1)=c+1, so ψ(i1)≤i2−1<ψ(i2), a contradiction. It is surjective: given an up step i′ with c:=h(i′−1)≤−1, the set of j≤i′−1 with h(j)≥c+1 contains 0 and is bounded above, so by [L14] it has a greatest element j0; then h(j0)=c+1 and h(j0+1)=c, so i:=j0+1 is a down step with h(i)=c≤−1, every index strictly between i and i′ has height ≤c, and ψ(i)=i′. So the two families of step 1.1 are equinumerous by [L12], and [L10] adds them; the number of up steps of q is n by [F1] since h(2n)=0, so β(q)≤n.

2.2F3L1L2L3L5L18step 1.3

The members of the orbit of a that lie in U are exactly the n+1 pairwise distinct words σtla with 0≤l≤n, and κ(σtla) takes each of the values 1,…,n+1 for exactly one such l. Since ∥a∥=1 and 1 is coprime to 2n+1 by [L18], [L2] makes the stabiliser trivial, so the 2n+1 words σja with 0≤j≤2n are pairwise distinct and form the orbit; the entry of σja at the position 0 is aj mod (2n+1), which is 1 exactly for j∈{t0,…,tn}. For such a j=tl, [L5] gives ∑i′<i(σtla)i′=Sa(tl+i)−Sa(tl), and the positions i with 0≤i≤2n at which σtla carries the entry 1 are exactly those with tl+i=tl+r for some r with 0≤r≤n, because tl<tl+1<⋯<tl+n<tl+2n+1 and the integers whose residue carries the entry 1 are exactly the tj. Hence κ(σtla)=∣{ r:0≤r<n+1, Sa(tl+r)≤Sa(tl) }∣, which by step 1.3 is ∣{ r:0≤r<n+1, Sb(l+r)≤Sb(l) }∣; and [L1] applied to b, of length n+1 and weight 1, says that this is a bijection from {0,…,n} onto {1,…,n+1}.

3.1L4L6L10L11L12L13L17step 1.2step 2.2

For 1≤k′≤n+1 put Ik′:={ w∈U:κ(w)=k′ }. By step 2.2, κ takes values in {1,…,n+1} on U and each orbit meets each Ik′ in exactly one word, so U is the union of the pairwise disjoint sets I1,…,In+1, and for each pair k′,k′′ the rule sending w∈Ik′ to the unique member of its orbit lying in Ik′′ is a bijection, the orbits being the classes of an equivalence relation by [L4]. Hence all n+1 sets have the same cardinality, and by [L10], [L11], [L12] and [L13] we get (n+1)∣I1∣=∣U∣=(2nn), which is (n+1)Cn by [L6]; cancelling the nonzero factor n+1 by [L17] gives ∣Ik′∣=Cn for every k′.

4.1F1F2L12step 1.2step 2.1step 3.1∎

By step 2.1 a path q∈W((0,0),(2n,0)) has 2n−2β(q) steps above level 0, an even number, and 0≤β(q)≤n, so the count is 2k for exactly one k with 0≤k≤n, namely k=n−β(q). By step 1.2 the bijection Δ carries { w∈U:κ(w)=n−k+1 } onto Fn,k, since κ(w)=1+β(Δ(w)) and β=n−k; and by step 3.1 that set has exactly Cn elements, so ∣Fn,k∣=Cn by [L12]. At n=1 the two paths from (0,0) to (2,0) have height sequences 0,1,0 and 0,−1,0, with two steps above level 0 and none respectively, so each of k=1 and k=0 is realised once, and C1=1.

Remarks

  • This is not a corollary of the cycle lemma as that lemma is stated here. The cycle lemma counts the cyclic shifts all of whose partial sums are positive, and for weight 1 that is exactly one shift; Chung–Feller needs every shift sorted by how many of its partial sums fail to rise, which is the strictly finer statement If ∥a∥=1 then j↦#{r:0≤r<m, Sa(j+r)≤Sa(j)} is a bijection from {0,…,m−1} onto {1,…,m}.

  • Where the blocking is spent. The word b records only the jumps of Sa between consecutive positions carrying the entry 1. That is what turns a statement about the n+1 shifts of a beginning with 1 into a statement about all n+1 shifts of a word of length n+1, which is the form the transversal lemma is stated in.

  • Why the steps split evenly below the axis. The pairing of step 2.1 matches each descent to level c≤−1 with the next ascent from c, and it is a bijection only because the path ends at height 0: with a free right endpoint a descent below the axis need never be undone, and the count of steps below the axis would not be even.

LemmaStatement: AI-adaptedProof: AI-adaptedprecheck passjudge pass (deepseek-v4-pro + gpt-5.6-terra)audited 2026-08-26Open item page →

Every Dyck path of semilength n+1 factors uniquely as U P D Q with P∈Di and Q∈Dn−i

Statement

Let n∈N and put

Zn:={ (i,P,Q):i∈N, i≤n, P∈Di, Q∈Dn−i }.

The map Θ sending (i,P,Q) to the diagonal path of length 2n+2 from (0,0) whose step word is U, then the step word of P, then D, then the step word of Q, is a bijection

Θ:Zn⟶Dn+1

onto the Dyck paths of semilength n+1 (Dyck paths of semilength n). The index i is recovered from the image as the first return: 2i+2 is the least positive index at which the height of Θ(i,P,Q) is 0.

Facts & Assumptions

Given: a natural number n, and the set Zn above.

[F1]

Dm is the set of diagonal paths of length 2m from (0,0) to (2m,0) whose height function satisfies h(j)≥0 for every j≤2m (Dyck paths of semilength n).

[F2]

A diagonal path of length ℓ from (0,α) is the same datum as a function h:{0,…,ℓ}→Z with h(0)=α and h(j)−h(j−1)∈{1,−1} for 1≤j≤ℓ; with μ(j) the number of up-steps among the first j its height is h(j)=α+2μ(j)−j (Diagonal lattice paths with steps U=(1,1) and D=(1,−1), and the height function).

[L1]

For a step set S, a point P′ and ℓ∈N, the map sending a lattice path to its step word is a bijection LS(P′;ℓ)→Sℓ (For each start point the step word is a bijection onto Sn).

[L2]
[L3]

Every nonempty subset S⊆N has a least element (The well-ordering principle).

Proof

technique · direct
1.1F1F2L1

Θ lands in Dn+1, and for its image the first return to height 0 is at the index 2i+2. The concatenated word has length 1+2i+1+2(n−i)=2n+2, so by [L1] it is the step word of exactly one diagonal path v of length 2n+2 from (0,0). Writing h, hP, hQ for the three height functions, [F2] gives h(0)=0, h(1+j)=1+hP(j) for 0≤j≤2i, and h(2i+2+j)=h(2i+2)+hQ(j) for 0≤j≤2(n−i); since hP(2i)=0 we get h(2i+1)=1 and h(2i+2)=0, so h(2i+2+j)=hQ(j). Hence h≥0 throughout and h(2n+2)=hQ(2(n−i))=0, so v∈Dn+1 by [F1]; and h(1+j)=1+hP(j)≥1 for 0≤j≤2i, so no index in the range from 1 to 2i+1 has height 0 and the first return is exactly at 2i+2.

1.2F1F2L1L3

Θ is surjective. Let v∈Dn+1 have height h and step word w. Since h(1)≥0 and h(1)−h(0)∈{1,−1}, the first step is up and h(1)=1. The set of positive indices j≤2n+2 with h(j)=0 contains 2n+2, so by [L3] it has a least element τ, and τ≥2 because h(1)=1. By [F2] the number h(j)+j=2μ(j) is even for every j, so h(τ)=0 forces τ even, say τ=2i+2 with i∈N and i≤n. For 1≤j≤τ−1 we have h(j)≠0 and h(j)≥0, hence h(j)≥1; in particular h(2i+1)≥1, and since h(2i+2)=0 the step at 2i+2 is down and h(2i+1)=1. Let P be the diagonal path of length 2i from (0,0) with step word w1⋯w2i and Q the one of length 2(n−i) with step word w2i+2⋯w2n+1, both supplied by [L1]. Then hP(j)=h(1+j)−1≥0 with hP(2i)=h(2i+1)−1=0, so P∈Di; and hQ(j)=h(2i+2+j)≥0 with hQ(2(n−i))=h(2n+2)=0, so Q∈Dn−i. The word of v is U, then that of P, then D, then that of Q, so v=Θ(i,P,Q).

2.1L1step 1.1

Θ is injective. If Θ(i,P,Q)=Θ(i′,P′,Q′) then by step 1.1 the common image has first return at 2i+2 and at 2i′+2, so i=i′; the three blocks of the step word are then determined by their positions, so P and P′ have the same step word and likewise Q and Q′, whence P=P′ and Q=Q′ by [L1].

3.1L2step 1.1step 2.1step 1.2∎

By steps 2.1 and 1.2 the map Θ is injective and surjective, so it is a bijection, and by [L2] it has a two-sided inverse, namely the map sending v to the triple built in step 1.2. At n=0 the set Z0 has the single element (0,ε,ε) with both factors the empty path, and Θ sends it to the path with step word UD, which is the unique member of D1.

Remarks

  • Why the first return and not the last. The decomposition is forced by reading the path from the left: the first step is up, and the index at which the height first comes back to 0 is the only place the path can be cut so that the inner block is a Dyck path after a shift and the outer remainder is one outright. Cutting at the last return also gives a decomposition, of a different shape, and the two must not be mixed.

  • Three later theorems on this page are this lemma applied elsewhere. The Motzkin and Schröder equations and the recursion for binary trees are the same first-return argument run over a different step set or a different recursive family, and each states the analogue rather than reusing this statement.

TheoremStatement: Literature-sourcedProof: AI-adaptedprecheck passaudited 2026-08-26Open item page →

Cn+1=∑i=0nCi Cn−i, with C0=1

Statement

C0=1, and for every n∈N, in N,

Cn+1=∑i=0nCi Cn−i,

the sum being over the finite index set {0,1,…,n} (The sum ∑i∈Sai over a finite index set, and its product form) and Cm=∣Dm∣ the Catalan number (The Catalan number Cn:=∣Dn∣).

Facts & Assumptions

Given: a natural number n, and the set Zn of triples (i,P,Q) with i≤n, P∈Di and Q∈Dn−i.

[F1]

Cm=∣Dm∣, and C0=1 (The Catalan number Cn:=∣Dn∣).

[L1]

The map Θ sending (i,P,Q)∈Zn to the diagonal path whose step word is U, the step word of P, D, the step word of Q, is a bijection Zn→Dn+1 (Every Dyck path of semilength n+1 factors uniquely as U P D Q with P∈Di and Q∈Dn−i).

[L2]

Dm is finite and nonempty for every m∈N (Dn is a finite set).

[L3]

If I is finite and (Ai)i∈I are pairwise disjoint finite sets, then ⋃i∈IAi is finite with ∣⋃i∈IAi∣=∑i∈I∣Ai∣ (The sum rule: a finite disjoint union is finite with ∣A∪B∣=∣A∣+∣B∣ and ∣⋃i∈IAi∣=∑i∈I∣Ai∣, and a sum over a finite index set splits along a partition, clause 2).

[L4]

If A and B are finite then A×B is finite and ∣A×B∣=∣A∣⋅∣B∣ (The product rule: ∣A×B∣=∣A∣ ∣B∣, and ∣∏i<mAi∣=∏i<m∣Ai∣, clause 1).

[L5]

For a finite index set S and a:S→N, ∑i∈Sai is defined and equals ∑k<n′aφ(k) for any bijection φ:n′→S with n′=∣S∣; taking S=n′ and the identity gives ∑i∈n′ai=∑k<n′ak (The sum ∑i∈Sai over a finite index set, and its product form, clause (a)).

[L6]

If A is finite and f:A→B is a bijection then B is finite and ∣B∣=∣A∣ (The cardinality ∣A∣ of a finite set).

Proof

technique · direct
1.1F1L2L4L6

For each i with 0≤i≤n put Zn(i):={i}×Di×Dn−i. These sets are pairwise disjoint, since their members differ in the first coordinate, and their union is Zn. Each is finite with ∣Zn(i)∣=CiCn−i: the sets Di and Dn−i are finite by [L2], so [L4] makes the product finite of cardinality CiCn−i by [F1], and pairing with the single element i is a bijection onto Zn(i), which [L6] makes cardinality preserving.

2.1L3L5step 1.1

The index set {0,…,n} is finite, so [L3] applies and gives that Zn is finite with ∣Zn∣=∑i=0nCiCn−i, the sum being the natural-number sum of [L5] over that index set.

3.1F1L1L6step 2.1∎

By [L1] and [L6], Cn+1=∣Dn+1∣=∣Zn∣, which with step 2.1 is the stated identity; and C0=1 by [F1]. At n=0 the identity reads C1=C0C0=1, and at n=1 it reads C2=C0C1+C1C0=2.

Remarks

  • The recurrence determines the sequence, and the definition does not need it. Every value is computable from C0=1 by the displayed convolution, but Cn was defined as a count, so the recurrence is a theorem about that count rather than the object's definition. That is what makes the three closed forms on this page statements rather than restatements.

  • Where the first-return decomposition is spent. Only in the bijection: the sum has one summand for each possible length of the inner block, and the disjointness of the summands is the uniqueness half of that decomposition.

DefinitionDefinition: Literature-sourcedProof: Not applicablejudge pass (deepseek-v4-pro + gpt-5.6-terra)audited 2026-08-26Open item page →

The Catalan generating function C(x)=∑n≥0Cnxn in Q⟦x⟧

Definition

Q is a field (The rationals form a field) and therefore a commutative ring (Every field is a commutative ring with 1≠0; it is an integral domain, and it is a commutative division ring), so the formal power series Q⟦x⟧ and the coefficient functionals [xn] of Formal power series over a commutative ring and the coefficient-extraction functional [xn] are available over it.

Natural numbers as coefficients. A natural number written where a rational is expected denotes its image under the composite of the embedding N→Z, k↦[(k,0)], of The naturals embed in the integers with the embedding Z→Q of The integers embed in the rationals; no symbol is written for it. Both embeddings are injective and preserve addition and multiplication, so the composite does too, and by induction (The principle of mathematical induction) it therefore carries a finite sum or product of natural numbers to the corresponding finite sum or product of rationals. An identity between natural numbers may therefore be read as an identity between rationals, and conversely, the embedding being injective.

Definition. The Catalan generating function is the formal power series C∈Q⟦x⟧ whose coefficient function is n↦Cn (The Catalan number Cn:=∣Dn∣), that is

C=∑n≥0Cnxn,[xn]C=Cn(n∈N).

Two formal power series are equal exactly when all their coefficients agree (Coefficient extraction is R-linear, separates formal series, shifts under multiplication by xk, and converts products to finite convolution), so C is determined by this prescription and nothing else is asserted: the symbol x is an indeterminate, no value is substituted for it, and no convergence is claimed.

Q⟦x⟧ as a commutative Q-algebra. The coefficientwise sum and the Cauchy product make Q⟦x⟧ a commutative ring, and the map sending a rational to the constant series with that coefficient at 0 is an injective unital ring homomorphism Q→Q⟦x⟧ (Cauchy multiplication makes R⟦x⟧ a commutative ring containing R[x] as the finitely supported subring, applied to the polynomials of degree at most 0). So Q⟦x⟧ is a commutative Q-algebra in the sense of Formal exponential, logarithm, and binomial powers over a commutative Q-algebra, and the formal exponential, logarithm and binomial powers of that item are available in it.

Remarks

  • Why Q and not Z. Every coefficient of C is a natural number, so C has a copy in Z⟦x⟧. The square-root and binomial-power machinery used below is stated for a commutative Q-algebra, because its definitions divide by n!, and Z⟦x⟧ is not one. Working over Q from the start avoids moving between two rings in the middle of a computation.

  • A count read as a coefficient. The coefficients are the counts Cn=∣Dn∣, and the reading of a natural number as a rational is the embedding recorded above. Nothing else changes: an identity proved between the counts is an identity between the coefficients, and an identity proved between the coefficients transports back because the embedding is injective.

TheoremStatement: Literature-sourcedProof: AI-adaptedprecheck passjudge pass (deepseek-v4-pro + gpt-5.6-terra)audited 2026-08-26Open item page →

C(x)=1+x C(x)2

Statement

In Q⟦x⟧ the Catalan generating function (The Catalan generating function C(x)=∑n≥0Cnxn in Q⟦x⟧) satisfies

C=1+x C2.

Facts & Assumptions

Given: the Catalan generating function C∈Q⟦x⟧.

[F1]

For every n≥0, [xn]C=Cn, and a natural number written where a rational is expected denotes its image under an injective embedding preserving addition, multiplication and finite sums (The Catalan generating function C(x)=∑n≥0Cnxn in Q⟦x⟧).

[L1]

Cn+1=∑i=0nCi Cn−i in N for every n∈N (Cn+1=∑i=0nCi Cn−i, with C0=1).

[L2]

[xn](f+g)=[xn]f+[xn]g; f=g if and only if [xn]f=[xn]g for every n; [xn](xkf)=[xn−k]f for k≤n and 0 for k>n; and [xn](fg)=∑i=0n[xi]f [xn−i]g (Coefficient extraction is R-linear, separates formal series, shifts under multiplication by xk, and converts products to finite convolution).

[L3]

The coefficientwise sum and Cauchy product make Q⟦x⟧ a commutative ring, and the constant series form an isomorphic copy of Q inside it (Cauchy multiplication makes R⟦x⟧ a commutative ring containing R[x] as the finitely supported subring).

Proof

technique · direct
1.1F1F2L2L3

The constant coefficients agree: [x0](1+xC2)=[x0]1+[x0](xC2)=1+0=1, the second term vanishing by the clause of [L2] for k=1>0, and [x0]C=C0=1 by [F1] and [F2].

1.2F1L1L2L3

The coefficients at every positive index agree. Let n∈N. Then [xn+1](1+xC2)=[xn+1](xC2)=[xn](C2) by [L2], and the Cauchy product clause of [L2] evaluates [xn](C2) as ∑i=0nCiCn−i, which is Cn+1 by [L1], read in Q through the embedding of [F1]. And [xn+1]C=Cn+1.

2.1L2step 1.1step 1.2∎

The two series have the same coefficient at every index by steps 1.1 and 1.2, so they are equal by the extensionality clause of [L2].

Remarks

  • This is the recurrence, transcribed. The equation carries exactly the content of the convolution recurrence together with the initial value C0=1; the passage between the two is the Cauchy product formula and nothing else. What the equation buys is that it can be solved, which a recurrence cannot be.

  • No division occurs. The equation is stated in the cleared form C=1+xC2. Solving it below produces the closed form by identifying a square root, not by dividing by 2x, which is not a unit of Q⟦x⟧.

LemmaStatement: AI-adaptedProof: AI-adaptedprecheck passjudge pass (deepseek-v4-pro + gpt-5.6-terra)audited 2026-08-26Open item page →

[xk](1−4x)1/2=−2k(2k−2k−1) for k≥1, and 1 for k=0

Statement

Work in Q⟦x⟧, a commutative Q-algebra (The Catalan generating function C(x)=∑n≥0Cnxn in Q⟦x⟧), and let (1−4x)1/2 denote the formal binomial power (1+u)c of Formal exponential, logarithm, and binomial powers over a commutative Q-algebra with u=−4x and c=1/2; by Every 1+u with u∈xR⟦x⟧ has a unique kth root with constant coefficient 1 in a commutative Q-algebra it is the unique series in 1+xQ⟦x⟧ whose square is 1−4x. Then

[x0](1−4x)1/2=1,

and for every k≥1, in Q,

k [xk](1−4x)1/2=−2(2k−2k−1),equivalently[xk](1−4x)1/2=−2k(2k−2k−1).

The displayed quotient formula is stated for k≥1 only, and is not a statement about k=0: at k=0 the value is 1.

Facts & Assumptions

Given: the series (1−4x)1/2 above; write Ak:=[xk](1−4x)1/2.

[F1]

Q⟦x⟧ is a commutative Q-algebra, and a natural number written where a rational is expected denotes its image under an injective embedding preserving addition and multiplication (The Catalan generating function C(x)=∑n≥0Cnxn in Q⟦x⟧).

[L1]

In a commutative Q-algebra, for u∈xR⟦x⟧ and c∈R, (1+u)c=∑n≥0c(c−1)⋯(c−n+1)n!un, where the numerator is the empty product 1 at n=0 (Formal exp⁡ and log⁡ are inverse homomorphisms and formal binomial powers obey the expected addition laws).

[L2]

For u∈xR⟦x⟧ and c∈R, (1+u)c:=exp⁡(clog⁡(1+u)), and the displayed families are summable because ord⁡x(un)≥n (Formal exponential, logarithm, and binomial powers over a commutative Q-algebra).

[L3]

For a commutative Q-algebra R, u∈xR⟦x⟧ and k′≥1, there is a unique v∈1+xR⟦x⟧ with vk′=1+u, namely v=(1+u)1/k′ (Every 1+u with u∈xR⟦x⟧ has a unique kth root with constant coefficient 1 in a commutative Q-algebra).

[L4]

[xn](f+g)=[xn]f+[xn]g, [xn](rf)=r[xn]f, and [xn](xkf)=[xn−k]f for k≤n and 0 for k>n (Coefficient extraction is R-linear, separates formal series, shifts under multiplication by xk, and converts products to finite convolution).

[L6]

(m0)=1 for every m, and (mj) is a natural number (The set [A]k of k-element subsets and the binomial coefficient (nk):=∣[n]k∣).

[L7]

m!≠0 for every m∈N, and σ(m)!=m!⋅σ(m) (The factorial n! and the falling factorial nk‾, defined by recursion in N).

[L8]

For all x′,y′,c′∈N with c′≠0: if x′⋅c′=y′⋅c′ then x′=y′ (Cancellation for multiplication by a nonzero factor).

[L9]

Q is a field, so every nonzero rational is invertible (The rationals form a field).

[L10]

A property that holds at 0 and passes from every natural number to its successor holds at every natural number: if a property P satisfies P(0) and (P(n)⇒P(σ(n))) for all n, then P(n) holds for all n∈N (The principle of mathematical induction).

Proof

technique · direct
1.1F1L1L2L4

With u=−4x we have un=(−4)nxn, so by [L1] and [L4] the coefficient of the binomial series at the index k receives a contribution only from the term n=k, giving Ak=(1/2)(1/2−1)⋯(1/2−k+1)k!(−4)k for every k∈N; at k=0 the numerator is the empty product and A0=1. Consequently (k+1)Ak+1=(1/2−k)(−4) Ak=2(2k−1)Ak for every k∈N.

1.2L5L7L8

For every k≥1 the identity k(2kk)=2(2k−1)(2k−2k−1) holds in N. Both k≤2k and k−1≤2k−2, so [L5] gives (2kk)k! k!=(2k)! and (2k−2k−1)(k−1)! (k−1)!=(2k−2)!. Multiplying the first by k and using (2k)!=(2k)(2k−1)(2k−2)! from [L7] gives k(2kk)k! k!=2k2(2k−1)(2k−2)!; multiplying the second by 2(2k−1)k2 and using k!=k (k−1)! gives 2(2k−1)(2k−2k−1)k! k!=2(2k−1)k2(2k−2)!. The two right-hand sides agree, so cancelling the nonzero factor k! k! by [L7] and [L8] gives the identity.

2.1L6L9L10step 1.1step 1.2

For every k≥1 one has k Ak=−2(2k−2k−1), by induction on k. At k=1 the formula of step 1.1 gives A1=1/21(−4)=−2, and −2(00)=−2 by [L6]. Assume it at some k≥1. Multiplying the recursion of step 1.1 by k gives k(k+1)Ak+1=2(2k−1) k Ak=−4(2k−1)(2k−2k−1), which by step 1.2 is −2k(2kk); since k is a nonzero rational, [L9] allows cancelling it and yields (k+1)Ak+1=−2(2kk), which is the formula at k+1.

3.1L3L9step 1.1step 2.1∎

Dividing by the nonzero rational k turns step 2.1 into the quotient form, and step 1.1 gives the value at k=0. As a check, the first coefficients are A0=1, A1=−2, A2=−22(21)=−2, A3=−23(42)=−4, A4=−24(63)=−10 and A5=−25(84)=−28.

Remarks

  • The index k=0 is genuinely outside the formula. The quotient −2k(2k−2k−1) has no value at k=0, and the coefficient there is 1, not 0. Stating the formula with its range is not pedantry: the closed form of the Catalan generating function takes coefficients at positive indices only, and a statement covering k=0 would be false.

  • Where the uniqueness clause is used. [L3] identifies the binomial power (1−4x)1/2 as the series in 1+xQ⟦x⟧ squaring to 1−4x, which is what lets a series produced by an entirely different computation be recognised as this one. No branch is chosen and no limit is taken.

TheoremStatement: AI-adaptedProof: AI-adaptedprecheck passjudge pass (deepseek-v4-pro + gpt-5.6-terra)audited 2026-08-26Open item page →

2x C(x)=1−(1−4x)1/2, where (1−4x)1/2 is the unique square root with constant coefficient 1

Statement

In Q⟦x⟧, with C the Catalan generating function (The Catalan generating function C(x)=∑n≥0Cnxn in Q⟦x⟧) and (1−4x)1/2 the formal binomial power of Formal exponential, logarithm, and binomial powers over a commutative Q-algebra,

1−2x C=(1−4x)1/2,equivalently2x C=1−(1−4x)1/2.

The series (1−4x)1/2 is the unique element of 1+xQ⟦x⟧ whose square is 1−4x (Every 1+u with u∈xR⟦x⟧ has a unique kth root with constant coefficient 1 in a commutative Q-algebra), and the content of the theorem is that 1−2xC is that element. No square root is chosen, no branch is selected and no substitution for x is made.

Facts & Assumptions

Given: the Catalan generating function C∈Q⟦x⟧.

[F1]

C=1+x C2 in Q⟦x⟧ (C(x)=1+x C(x)2).

[F2]

For every n≥0, [xn]C=Cn, and Q⟦x⟧ is a commutative Q-algebra (The Catalan generating function C(x)=∑n≥0Cnxn in Q⟦x⟧).

[L1]

For a commutative Q-algebra R, u∈xR⟦x⟧ and k≥1, there is a unique v∈1+xR⟦x⟧ with vk=1+u, namely v=(1+u)1/k (Every 1+u with u∈xR⟦x⟧ has a unique kth root with constant coefficient 1 in a commutative Q-algebra).

[L2]

[xn](f+g)=[xn]f+[xn]g, [xn](rf)=r[xn]f, and [xn](xkf)=[xn−k]f for k≤n and 0 for k>n (Coefficient extraction is R-linear, separates formal series, shifts under multiplication by xk, and converts products to finite convolution).

[L3]

The coefficientwise sum and Cauchy product make Q⟦x⟧ a commutative ring (Cauchy multiplication makes R⟦x⟧ a commutative ring containing R[x] as the finitely supported subring).

[L4]

For u∈xR⟦x⟧ and c∈R the formal binomial power is (1+u)c:=exp⁡(clog⁡(1+u)) (Formal exponential, logarithm, and binomial powers over a commutative Q-algebra).

Proof

technique · direct
1.1F1L3

Expanding in the commutative ring Q⟦x⟧ gives (1−2xC)2=1−4xC+4x2C2=1−4x(C−xC2), and [F1] says C−xC2=1, so (1−2xC)2=1−4x.

1.2F2L2

The series 1−2xC lies in 1+xQ⟦x⟧: its coefficient at the index 0 is 1−0=1 by [L2], since [x0](xC)=0.

2.1L1L3L4step 1.1step 1.2∎

The series −4x lies in xQ⟦x⟧, so [L1] with k=2 supplies exactly one element of 1+xQ⟦x⟧ whose square is 1−4x, namely (1−4x)1/2 as defined in [L4]. By steps 1.1 and 1.2 the series 1−2xC is such an element, so it is that one: 1−2xC=(1−4x)1/2, and adding 2xC−(1−4x)1/2 to both sides gives 2xC=1−(1−4x)1/2.

Remarks

  • The root is identified, not chosen. Both primary sources for this page solve the quadratic by the quadratic formula and then pick the branch by letting x tend to 0. That is an analytic argument about a function, and there is no function here: x is an indeterminate and no value is substituted for it. The uniqueness clause of Every 1+u with u∈xR⟦x⟧ has a unique kth root with constant coefficient 1 in a commutative Q-algebra replaces the branch choice with an identification, and it is the only step of this page where the sources use an argument the library may not.

  • Why the identity is stated with the factor 2x left in place. The series 2x is not a unit of Q⟦x⟧, since its coefficient at 0 is 0, so C cannot be obtained by dividing. Every coefficient statement below is derived from the cleared identity by extracting a coefficient, which is legitimate at every index.

TheoremStatement: AI-adaptedProof: AI-adaptedprecheck passjudge pass (deepseek-v4-pro + gpt-5.6-terra)audited 2026-08-26Open item page →

A third derivation of (n+1) Cn=(2nn), from the closed form of C(x)

Statement

For every n∈N, in N,

(n+1) Cn=(2nn).

The identity is that of (n+1) Cn=(2nn); what is new is the route. It is obtained here by extracting a coefficient from the closed form 2xC=1−(1−4x)1/2 (2x C(x)=1−(1−4x)1/2, where (1−4x)1/2 is the unique square root with constant coefficient 1), with no bijection, no reflection and no group action: only formal algebra in Q⟦x⟧.

Facts & Assumptions

Given: a natural number n, and the Catalan generating function C.

[F2]

[xm]C=Cm for every m, and a natural number written where a rational is expected denotes its image under an injective embedding preserving addition and multiplication (The Catalan generating function C(x)=∑n≥0Cnxn in Q⟦x⟧).

[L1]

For every k≥1, k [xk](1−4x)1/2=−2(2k−2k−1) in Q ([xk](1−4x)1/2=−2k(2k−2k−1) for k≥1, and 1 for k=0).

[L2]

[xm](f+g)=[xm]f+[xm]g, [xm](rf)=r[xm]f, and [xm](xkf)=[xm−k]f for k≤m and 0 for k>m (Coefficient extraction is R-linear, separates formal series, shifts under multiplication by xk, and converts products to finite convolution).

[L3]

Q is a field, so every nonzero rational is invertible (The rationals form a field).

[L4]

(n+1) Cn=(2nn) in N ((n+1) Cn=(2nn)).

Proof

technique · direct
1.1F2L2

Extract the coefficient at the index n+1 from the left-hand side of [F1]: by [L2], [xn+1](2xC)=2 [xn]C=2Cn.

1.2L1L2

Extract it from the right-hand side: by [L2] the constant series 1 contributes 0 at a positive index, so [xn+1](1−(1−4x)1/2)=−[xn+1](1−4x)1/2, and multiplying by n+1 and using [L1] with k=n+1, which is at least 1, gives (n+1) [xn+1](1−(1−4x)1/2)=2(2nn).

2.1F1F2L3L4step 1.1step 1.2∎

By [F1] the two coefficients of steps 1.1 and 1.2 are equal, so multiplying step 1.1 by n+1 gives 2(n+1)Cn=2(2nn) in Q; cancelling the nonzero rational 2 by [L3] gives (n+1)Cn=(2nn) in Q, and the embedding of [F2] being injective, the same identity holds in N. It is the identity of [L4], now proved a third time. At n=0 it reads C0=1.

Remarks

  • What makes this a different route and not a rearrangement. The two earlier derivations count a set twice: once directly and once after a reflection or after a group action. This one never counts anything. It turns the recurrence into an algebraic equation, solves that equation inside Q⟦x⟧, and reads a single coefficient off the solution. The only combinatorial input is the recurrence itself.

  • Where the three derivations meet. All three end at the same identity in N, and the cycle-lemma derivation ends at (2n+1)Cn=(2n+1n), whose consistency with this one is proved where it is stated. Agreement of the answers is not evidence that the routes are the same; each spends a different hypothesis, and the remark on routes at the end of this page records which.

TheoremStatement: AI-adaptedProof: AI-adaptedprecheck passjudge pass (deepseek-v4-pro + gpt-5.6-terra)audited 2026-08-26Open item page →

C(x) is not a rational formal power series, so (Cn) satisfies no eventual constant-coefficient linear recurrence

Statement

The Catalan generating function C∈Q⟦x⟧ (The Catalan generating function C(x)=∑n≥0Cnxn in Q⟦x⟧) is not a rational formal power series (Rational formal power series, proper presentations and reduced denominators): there are no polynomials P,Q∈Q[x] with Q(0)≠0 and QC=P.

Consequently the sequence (Cn)n≥0, read in Q, satisfies no eventual constant-coefficient linear recurrence (A coefficient sequence is eventually linearly recurrent if and only if its formal generating function is rational).

Facts & Assumptions

Given: the Catalan generating function C, and Q[x] the polynomial ring over Q (The polynomial ring over a commutative ring as finitely supported coefficient sequences with convolution).

[F1]

C=1+x C2 in Q⟦x⟧ (C(x)=1+x C(x)2).

[F2]

Q⟦x⟧ is a commutative Q-algebra and the coefficient of C at the index n is Cn (The Catalan generating function C(x)=∑n≥0Cnxn in Q⟦x⟧).

[L1]

A formal power series F∈R⟦x⟧ is rational when there are polynomials P,Q∈R[x] with Q(0) a unit and QF=P (Rational formal power series, proper presentations and reduced denominators).

[L2]

For a field K and a sequence a in K with F=∑n≥0anxn: a satisfies an eventual constant-coefficient linear recurrence if and only if F is a rational formal power series (A coefficient sequence is eventually linearly recurrent if and only if its formal generating function is rational).

[L3]

If R is an integral domain and f,g∈R[x] are nonzero, then fg≠0 and deg⁡(fg)=deg⁡f+deg⁡g (Over an integral domain, degrees add under multiplication of nonzero polynomials).

[L5]

The degree of a nonzero polynomial is the largest index carrying a nonzero coefficient (Degree, leading coefficient and monic polynomial, with the zero polynomial having no degree).

[L7]
[L8]

The coefficientwise sum and Cauchy product make Q⟦x⟧ a commutative ring, and the inclusion of Q[x] into it is an injective unital ring homomorphism (Cauchy multiplication makes R⟦x⟧ a commutative ring containing R[x] as the finitely supported subring).

Proof

technique · contradiction
1.1F2L1L8assume-contra

Suppose C is rational: by [L1] there are P,Q∈Q[x] with Q(0) a unit of Q, hence Q(0)≠0 and Q≠0, and QC=P in Q⟦x⟧.

2.1F1L8step 1.1

From [F1] we have C−xC2=1, hence (1−2xC)2=1−4xC+4x2C2=1−4x(C−xC2)=1−4x. Multiplying by Q2 and using QC=P gives (Q−2xP)2=(1−4x)Q2, an identity between polynomials, which by [L8] may be read inside Q[x]. Put R:=Q−2xP.

3.1L3L6L7step 2.1

R≠0. Otherwise (1−4x)Q2=0; but Q is an integral domain by [L6] and [L7], and 1−4x and Q are nonzero, so [L3] makes the product nonzero.

4.1L3L5step 2.1step 3.1

Comparing degrees in Q[x] gives a contradiction. By [L3] applied twice, deg⁡(R2)=2deg⁡R and deg⁡((1−4x)Q2)=deg⁡(1−4x)+2deg⁡Q=1+2deg⁡Q, the degree of 1−4x being 1 by [L5]. So 2deg⁡R=1+2deg⁡Q in N, which is impossible: writing r:=deg⁡R and q:=deg⁡Q, if r≤q then 2r≤2q<1+2q, and if r≥q+1 then 2r≥2q+2>1+2q.

5.1F2L2L7step 1.1step 4.1discharge-contradiction∎

The assumption of step 1.1 is therefore false and C is not rational; and by [L2] with K=Q and an=Cn, a sequence satisfies an eventual constant-coefficient linear recurrence exactly when its generating series is rational, so the sequence (Cn) satisfies no such recurrence.

Remarks

  • Why the parity argument is the whole proof. The equation R2=(1−4x)Q2 says that 1−4x is a square in the fraction field of Q[x] up to squares, and the degree of a square is even while the degree of 1−4x times a square is odd. Nothing about the specific coefficients is used, and the same argument rules out rationality for any series satisfying a quadratic equation whose discriminant has odd degree.

  • What the second clause does and does not say. It says no recurrence with constantly many constant coefficients holds from some index onwards. The Catalan numbers do satisfy the convolution recurrence Cn+1=∑iCiCn−i, which is not of that form, and they satisfy the two-term recurrence (n+2)Cn+1=(4n+2)Cn whose coefficients depend on n; neither is excluded, and the companion page carries the false statement that conflates them.

DefinitionDefinition: Literature-sourcedProof: Not applicablejudge pass (deepseek-v4-pro + gpt-5.6-terra)audited 2026-08-26Open item page →

Motzkin paths, Schröder paths, the Motzkin numbers Mn, the large Schröder numbers Rn, and their generating functions

Definition

Put U=(1,1), D=(1,−1), L=(1,0) and L2=(2,0), and recall the lattice paths of Lattice paths, step sets and step words. For a lattice path v of length ℓ write h(i) for the second coordinate of v(i) and x(i) for its first coordinate.

Definition. Let n∈N.

  • A Motzkin path of length n is a lattice path of length n with steps in {U,D,L} from (0,0) to (n,0) with h(i)≥0 for every i≤n. Write Motn for the set of them.
  • A Schröder path of half-length n is a lattice path with steps in {U,D,L2} from (0,0) to (2n,0), of any length, with h(i)≥0 for every index i. Write Schn for the set of them.

Each step of a Motzkin path advances the first coordinate by exactly 1, so a Motzkin path of length n automatically ends at first coordinate n; this is the same induction as in Diagonal lattice paths with steps U=(1,1) and D=(1,−1), and the height function. A Schröder path has a step of width 2, so its length is not determined by n and is recorded below.

Counting the steps of a Schröder path. Let v∈Schn have k up steps, k′ down steps and m level steps. Each U raises h by 1, each D lowers it by 1 and each L2 leaves it unchanged, so induction on the index (The principle of mathematical induction) gives h(i) as the number of U steps among the first i minus the number of D steps among them; from h=0 at the last index we get k′=k. Likewise the first coordinate of v(i) is the number of U and D steps among the first i plus twice the number of L2 steps among them, so 2n=2k+2m and m=n−k. Hence

0≤k≤n,and v has exactly n+k steps,

of which 2k are not level. In particular the length of a Schröder path of half-length n is at most 2n.

Both sets are finite, and the two counts are therefore defined. By For each start point the step word is a bijection onto Sn the paths of a given length ℓ from (0,0) with steps in a three-element step set form a finite set of 3ℓ elements. So Motn is a subset of a finite set and is finite (A subset of a finite set is finite, with ∣B∣≤∣A∣, and equality holds if and only if B=A); and Schn is a subset of the union of the finitely many sets of paths of length ℓ for ℓ≤2n, which is finite by The sum rule: a finite disjoint union is finite with ∣A∪B∣=∣A∣+∣B∣ and ∣⋃i∈IAi∣=∑i∈I∣Ai∣, and a sum over a finite index set splits along a partition because paths of different lengths are functions with different domains, so Schn is finite as well. Define

Mn:=∣Motn∣,Rn:=∣Schn∣

(The cardinality ∣A∣ of a finite set), the Motzkin numbers and the large Schröder numbers. Both are defined as counts, and every formula for them below is a theorem.

Small values, read off the definition. At n=0 both conditions leave only the empty path at (0,0), so M0=1 and R0=1. For M1: a single step from (0,0) to (1,0) must be L, since U ends at height 1 and D at height −1, so M1=1. For M2: the words LL and UD qualify, and DU fails the height condition at the middle vertex, so M2=2. For R1: a path from (0,0) to (2,0) is L2 or UD, and DU fails the height condition, so R1=2.

The two generating functions. In Q⟦x⟧ (Formal power series over a commutative ring and the coefficient-extraction functional [xn]) put

M(x):=∑n≥0Mnxn,R(x):=∑n≥0Rnxn,

each count read as a rational coefficient exactly as in The Catalan generating function C(x)=∑n≥0Cnxn in Q⟦x⟧; two series are equal exactly when all their coefficients agree (Coefficient extraction is R-linear, separates formal series, shifts under multiplication by xk, and converts products to finite convolution).

Remarks

  • The indeterminate marks length in M(x) and half-length in R(x). That is the indexing of the source, and it is what makes the two functional equations below differ in the power of x multiplying the square: a U and a D consume two units of length but only one unit of half-length. Reading either series with the other convention gives a false equation.

  • The letter R for the large Schröder numbers is a deliberate departure. The source writes Sn; here S already names a step set (Lattice paths, step sets and step words) and Sa the periodic partial-sum function (Cyclic shifts of an integer word and its periodic partial-sum function), so the numbers are written Rn and the paths Schn. Nothing else about the source's convention is changed: Rn counts the Schröder paths of half-length n, so R0=1 and R1=2.

  • Why the finiteness clause treats the two cases differently. A Motzkin path of length n has exactly n steps, so one word length suffices. A Schröder path of half-length n has n+k steps, and k is not determined by n; the bound 2n is what makes the union above finite, and it is attained exactly when the path has no level step.

TheoremStatement: Literature-sourcedProof: AI-generatedprecheck passjudge pass (deepseek-v4-pro + gpt-5.6-terra)audited 2026-08-26Open item page →

M(x)=1+x M(x)+x2M(x)2, and 2x2M(x)=1−x−(1−2x−3x2)1/2

Statement

In Q⟦x⟧ the Motzkin generating function (Motzkin paths, Schröder paths, the Motzkin numbers Mn, the large Schröder numbers Rn, and their generating functions) satisfies

M=1+x M+x2M2,

and, with (1−2x−3x2)1/2 the formal binomial power of Formal exponential, logarithm, and binomial powers over a commutative Q-algebra,

2x2M=1−x−(1−2x−3x2)1/2,

the series 1−x−2x2M being the unique element of 1+xQ⟦x⟧ whose square is 1−2x−3x2 (Every 1+u with u∈xR⟦x⟧ has a unique kth root with constant coefficient 1 in a commutative Q-algebra).

Facts & Assumptions

[F1]

Motm is the set of lattice paths of length m with steps in {U,D,L}, where U=(1,1), D=(1,−1) and L=(1,0), from (0,0) to (m,0) with h(i)≥0 for every i≤m; each such path advances the first coordinate by 1 at every step; Mm=∣Motm∣ is finite; M0=1 and M1=1; and M(x)=∑m≥0Mmxm (Motzkin paths, Schröder paths, the Motzkin numbers Mn, the large Schröder numbers Rn, and their generating functions).

[F2]

A natural number written where a rational is expected denotes its image under an injective embedding preserving addition, multiplication and finite sums, and Q⟦x⟧ is a commutative Q-algebra (The Catalan generating function C(x)=∑n≥0Cnxn in Q⟦x⟧).

[L1]

For a step set S, a point P and ℓ∈N, the map sending a lattice path to its step word is a bijection LS(P;ℓ)→Sℓ (For each start point the step word is a bijection onto Sn).

[L2]
[L3]

If A and B are finite and disjoint then ∣A∪B∣=∣A∣+∣B∣; and if I is finite and (Ai)i∈I are pairwise disjoint finite sets then ∣⋃i∈IAi∣=∑i∈I∣Ai∣ (The sum rule: a finite disjoint union is finite with ∣A∪B∣=∣A∣+∣B∣ and ∣⋃i∈IAi∣=∑i∈I∣Ai∣, and a sum over a finite index set splits along a partition, clauses 1 and 2).

[L4]

If A and B are finite then A×B is finite and ∣A×B∣=∣A∣⋅∣B∣ (The product rule: ∣A×B∣=∣A∣ ∣B∣, and ∣∏i<mAi∣=∏i<m∣Ai∣, clause 1).

[L5]

For a finite index set S and a:S→N the sum ∑i∈Sai is defined, and ∑i∈∅ai=0 (The sum ∑i∈Sai over a finite index set, and its product form, clause (c)).

[L6]

[xm](f+g)=[xm]f+[xm]g; f=g if and only if [xm]f=[xm]g for every m; [xm](xkf)=[xm−k]f for k≤m and 0 for k>m; and [xm](fg)=∑i=0m[xi]f [xm−i]g (Coefficient extraction is R-linear, separates formal series, shifts under multiplication by xk, and converts products to finite convolution).

[L7]

For a commutative Q-algebra R, u∈xR⟦x⟧ and k≥1, there is a unique v∈1+xR⟦x⟧ with vk=1+u, namely v=(1+u)1/k (Every 1+u with u∈xR⟦x⟧ has a unique kth root with constant coefficient 1 in a commutative Q-algebra).

[L8]

For u∈xR⟦x⟧ and c∈R the formal binomial power is (1+u)c:=exp⁡(clog⁡(1+u)) (Formal exponential, logarithm, and binomial powers over a commutative Q-algebra).

[L9]

The coefficientwise sum and Cauchy product make Q⟦x⟧ a commutative ring (Cauchy multiplication makes R⟦x⟧ a commutative ring containing R[x] as the finitely supported subring).

[L10]

If A is finite and f:A→B is a bijection then B is finite and ∣B∣=∣A∣ (The cardinality ∣A∣ of a finite set).

[L11]

Every nonempty subset S⊆N has a least element (The well-ordering principle).

Proof

technique · direct
1.1F1L1L2L11

First-return decomposition. Let v∈Motn+1 with step word w and heights h. Its first step is not D, since h(1)≥0 would fail, so it is L or U. If it is L then h(1)=0 and the path of length n with step word w1⋯wn has heights h(1+j), so it lies in Motn. If it is U then h(1)=1; the set of positive indices j≤n+1 with h(j)=0 contains n+1, so by [L11] it has a least element τ≥2, and h(τ−1)≥1 by minimality while h(τ)=0, so the step at τ is D and h(τ−1)=1; putting i:=τ−2, the path P of length i with step word w1⋯wi has heights h(1+j)−1≥0 ending at h(τ−1)−1=0, so P∈Moti, and the path Q of length n−1−i with step word wτ⋯wn has heights h(τ+j)≥0 ending at 0, so Q∈Motn−1−i, with 0≤i≤n−1 because τ≤n+1. Conversely, prepending L to a member of Motn, and sending (i,P,Q) to the path with step word U, that of P, D, that of Q, produce members of Motn+1 whose first-return data are the ones started from; the two constructions are two-sided inverses, so by [L1] and [L2] the set Motn+1 is in bijection with the disjoint union of Motn and the sets {i}×Moti×Motn−1−i for 0≤i≤n−1.

2.1F1L3L4L5L10step 1.1

Counting the two sides of step 1.1 with [F1], [L3], [L4], [L5] and [L10] gives, in N, Mn+1=Mn+∑i=0n−1MiMn−1−i, the sum being over the finite index set {0,…,n−1}. At n=0 that index set is empty and the sum is 0, so M1=M0=1, which is correct because a path of length 1 beginning with U cannot return to height 0. At n=1 it gives M2=M1+M0M0=2, at n=2 it gives M3=M2+M0M1+M1M0=4, and at n=3 it gives M4=M3+M0M2+M1M1+M2M0=9.

3.1F1F2L6L9step 2.1

Comparing coefficients gives the functional equation. At the index 0: [x0](1+xM+x2M2)=1 by [L6], and [x0]M=M0=1. At an index n+1: [xn+1](xM)=[xn]M=Mn, while [xn+1](x2M2) is [xn−1](M2)=∑i=0n−1MiMn−1−i when n≥1 and 0 when n=0, by the shift and Cauchy-product clauses of [L6]; in both cases this matches the sum of step 2.1, so [xn+1](1+xM+x2M2)=Mn+1=[xn+1]M. Extensionality in [L6] gives M=1+xM+x2M2.

4.1L6L7L8L9step 3.1∎

Rearranging step 3.1 in the commutative ring Q⟦x⟧ gives x2M2+(x−1)M+1=0, and hence (1−x−2x2M)2=(x−1)2+4x2(x2M2+(x−1)M)=(x−1)2−4x2=1−2x−3x2. The series 1−x−2x2M has coefficient 1 at the index 0, so it lies in 1+xQ⟦x⟧, and 1−2x−3x2=1+u with u=−2x−3x2∈xQ⟦x⟧; by the uniqueness clause of [L7] with k=2 it is therefore the series (1−2x−3x2)1/2 of [L8], which gives 2x2M=1−x−(1−2x−3x2)1/2. No division by 2x2 occurs, and none is available: that series has coefficient 0 at the index 0 and is not a unit.

Remarks

  • The route is the page's own, run on a third step set. No combinatorial class, no symbolic-method operator and no fixed-point theorem is used; the argument is the first-return decomposition of Every Dyck path of semilength n+1 factors uniquely as U P D Q with P∈Di and Q∈Dn−i with a level step added, and the added case is the whole difference between the Dyck recurrence and this one. The source reaches the same equation from an infinite continued fraction, which needs machinery this page does not build, so the proof here is local while the statement is the source's.

  • Where the level step shows in the equation. It contributes the summand xM, and the pair of a U with its matching D contributes the factor x2: two units of length for one pair. The convolution index therefore stops at n−1 and not at n, which is exactly the point at which the Schröder equation differs.

CorollaryStatement: Literature-sourcedProof: AI-generatedprecheck passjudge pass (deepseek-v4-pro + gpt-5.6-terra)audited 2026-08-26Open item page →

Mn=∑k∈N, 2k≤n(n2k)Ck

Statement

For every n∈N, in N,

Mn=∑k∈N, 2k≤n(n2k) Ck,

the sum being over the finite index set { k∈N:2k≤n } (The sum ∑i∈Sai over a finite index set, and its product form), with Mn the Motzkin numbers (Motzkin paths, Schröder paths, the Motzkin numbers Mn, the large Schröder numbers Rn, and their generating functions) and Ck the Catalan numbers (The Catalan number Cn:=∣Dn∣).

Facts & Assumptions

Given: a natural number n.

[F1]

Motn is the set of lattice paths of length n with steps in {U,D,L} from (0,0) to (n,0) with h(i)≥0 at every index, and Mn=∣Motn∣ is finite (Motzkin paths, Schröder paths, the Motzkin numbers Mn, the large Schröder numbers Rn, and their generating functions).

[F2]

Dk corresponds bijectively, through step words, to the ballot words of length 2k, that is the words over {U,D} with equally many letters of each kind in which every prefix has at least as many U as D; and Ck=∣Dk∣ (Dyck paths of semilength n, The Catalan number Cn:=∣Dn∣).

[F3]

For a diagonal path of length ℓ from (0,0) with step word w^ and μ(r) the number of up steps among the first r, the height is h^(r)=2μ(r)−r; in particular h^(r)+r is even (Diagonal lattice paths with steps U=(1,1) and D=(1,−1), and the height function).

[L1]

For a step set S, a point P and ℓ∈N, the map sending a lattice path to its step word is a bijection LS(P;ℓ)→Sℓ (For each start point the step word is a bijection onto Sn).

[L2]
[L3]

For a finite set A and j∈N, [A]j is the set of j-element subsets of A, and ∣[A]j∣=(∣A∣j) (The set [A]k of k-element subsets and the binomial coefficient (nk):=∣[n]k∣).

[L4]

If I is finite and (Ai)i∈I are pairwise disjoint finite sets then ⋃i∈IAi is finite with ∣⋃i∈IAi∣=∑i∈I∣Ai∣ (The sum rule: a finite disjoint union is finite with ∣A∪B∣=∣A∣+∣B∣ and ∣⋃i∈IAi∣=∑i∈I∣Ai∣, and a sum over a finite index set splits along a partition, clause 2).

[L5]

If A and B are finite then A×B is finite and ∣A×B∣=∣A∣⋅∣B∣ (The product rule: ∣A×B∣=∣A∣ ∣B∣, and ∣∏i<mAi∣=∏i<m∣Ai∣, clause 1).

[L6]

For a finite index set S and a:S→N the sum ∑i∈Sai is defined (The sum ∑i∈Sai over a finite index set, and its product form).

[L7]

If A is finite and f:A→B is a bijection then B is finite and ∣B∣=∣A∣ (The cardinality ∣A∣ of a finite set).

Proof

technique · direct
1.1F1F3

Let v∈Motn have step word w, put A:={ j∈N:j<n, wj≠L } and let w^ be the word over {U,D} obtained by reading the letters of w at the positions of A in increasing order. A level step leaves the height unchanged, so for every i≤n the height h(i) of v equals the height h^(r) of the diagonal path traced by w^ at r=∣A∩i∣, the number of non-level positions before i; and every r with 0≤r≤∣A∣ arises as such a count, taking i to be n or the position immediately after the r-th member of A. Hence h(i)≥0 for all i if and only if h^(r)≥0 for all r, and h(n)=0 if and only if h^(∣A∣)=0.

1.2F2F3

Consequently ∣A∣ is even, say ∣A∣=2k with 2k≤n, since h^(∣A∣)=0 and h^(r)+r is even by [F3]; and w^ is then a ballot word of length 2k, so by [F2] it is the step word of a unique Dyck path of semilength k.

2.1F2L1L2step 1.1step 1.2

Let Pw^∈Dk be the unique Dyck path whose step word is w^, supplied by [F2]. The map v↦(k,A,Pw^) is a bijection from Motn onto the disjoint union over k with 2k≤n of {k}×[ n ]2k×Dk. Its inverse takes (k,A,P) to the path of length n whose step word carries the letters of the step word of P at the positions of A in increasing order and the letter L elsewhere: by steps 1.1 and 1.2 that path lies in Motn, and the two constructions undo one another, so [L1] and [L2] apply.

3.1F2L3L4L5L6L7L8step 2.1∎

The index set {k:2k≤n} is a subset of the finite set {0,…,n}, hence finite by [L8], and for each of its members [ n ]2k is finite with (n2k) elements by [L3] while Dk is finite with Ck elements by [F2]. So [L5] gives ∣{k}×[ n ]2k×Dk∣=(n2k)Ck and [L4] with [L6] adds these over the index set; transporting along the bijection of step 2.1 by [L7] gives the stated identity. At n=0 the index set is {0} and the single term is (00)C0=1; at n=1 it is {0} again, giving 1; at n=2 the terms are 1 and (22)C1=1, giving 2; at n=3 they are 1 and (32)C1=3, giving 4; and at n=4 they are 1, (42)C1=6 and (44)C2=2, giving 9.

Remarks

  • A bijective proof, and therefore a second route. The functional equation of M(x)=1+x M(x)+x2M(x)2, and 2x2M(x)=1−x−(1−2x−3x2)1/2 determines the same numbers, but nothing of it is used here: this argument deletes the level steps and reads what is left. It is also the identity that makes the Catalan numbers of this page count something other than Dyck paths.

  • Why the parity of ∣A∣ is proved and not assumed. The subword at the non-level positions must return to height 0, and a diagonal path returns to its starting height only after an even number of steps. Assuming evenness would hide exactly the step that forces the summation index to be 2k rather than k.

TheoremStatement: Literature-sourcedProof: AI-generatedprecheck passjudge pass (deepseek-v4-pro + gpt-5.6-terra)audited 2026-08-26Open item page →

R(x)=1+x R(x)+x R(x)2, and 2x R(x)=1−x−(1−6x+x2)1/2

Statement

In Q⟦x⟧ the generating function of the large Schröder numbers (Motzkin paths, Schröder paths, the Motzkin numbers Mn, the large Schröder numbers Rn, and their generating functions) satisfies

R=1+x R+x R2,

and, with (1−6x+x2)1/2 the formal binomial power of Formal exponential, logarithm, and binomial powers over a commutative Q-algebra,

2x R=1−x−(1−6x+x2)1/2,

the series 1−x−2xR being the unique element of 1+xQ⟦x⟧ whose square is 1−6x+x2 (Every 1+u with u∈xR⟦x⟧ has a unique kth root with constant coefficient 1 in a commutative Q-algebra).

Facts & Assumptions

[F1]

Schm is the set of lattice paths with steps in {U,D,L2}, where U=(1,1), D=(1,−1) and L2=(2,0), from (0,0) to (2m,0) with h(i)≥0 at every index; such a path with k up steps has k down steps, m−k level steps and m+k steps in all, with 0≤k≤m; Rm=∣Schm∣ is finite; R0=1 and R1=2, the two paths of half-length 1 having step words L2 and UD; and R(x)=∑m≥0Rmxm (Motzkin paths, Schröder paths, the Motzkin numbers Mn, the large Schröder numbers Rn, and their generating functions).

[F2]

A natural number written where a rational is expected denotes its image under an injective embedding preserving addition, multiplication and finite sums, and Q⟦x⟧ is a commutative Q-algebra (The Catalan generating function C(x)=∑n≥0Cnxn in Q⟦x⟧).

[L1]

For a step set S, a point P and ℓ∈N, the map sending a lattice path to its step word is a bijection LS(P;ℓ)→Sℓ (For each start point the step word is a bijection onto Sn).

[L2]
[L3]

If A and B are finite and disjoint then ∣A∪B∣=∣A∣+∣B∣; and if I is finite and (Ai)i∈I are pairwise disjoint finite sets then ∣⋃i∈IAi∣=∑i∈I∣Ai∣ (The sum rule: a finite disjoint union is finite with ∣A∪B∣=∣A∣+∣B∣ and ∣⋃i∈IAi∣=∑i∈I∣Ai∣, and a sum over a finite index set splits along a partition, clauses 1 and 2).

[L4]

If A and B are finite then A×B is finite and ∣A×B∣=∣A∣⋅∣B∣ (The product rule: ∣A×B∣=∣A∣ ∣B∣, and ∣∏i<mAi∣=∏i<m∣Ai∣, clause 1).

[L5]

For a finite index set S and a:S→N the sum ∑i∈Sai is defined (The sum ∑i∈Sai over a finite index set, and its product form).

[L6]

[xm](f+g)=[xm]f+[xm]g; f=g if and only if [xm]f=[xm]g for every m; [xm](xkf)=[xm−k]f for k≤m and 0 for k>m; and [xm](fg)=∑i=0m[xi]f [xm−i]g (Coefficient extraction is R-linear, separates formal series, shifts under multiplication by xk, and converts products to finite convolution).

[L7]

For a commutative Q-algebra R′, u∈xR′⟦x⟧ and k≥1, there is a unique v∈1+xR′⟦x⟧ with vk=1+u, namely v=(1+u)1/k (Every 1+u with u∈xR⟦x⟧ has a unique kth root with constant coefficient 1 in a commutative Q-algebra).

[L8]

For u∈xR′⟦x⟧ and c∈R′ the formal binomial power is (1+u)c:=exp⁡(clog⁡(1+u)) (Formal exponential, logarithm, and binomial powers over a commutative Q-algebra).

[L9]

The coefficientwise sum and Cauchy product make Q⟦x⟧ a commutative ring (Cauchy multiplication makes R⟦x⟧ a commutative ring containing R[x] as the finitely supported subring).

[L10]

If A is finite and f:A→B is a bijection then B is finite and ∣B∣=∣A∣ (The cardinality ∣A∣ of a finite set).

[L11]

Every nonempty subset S⊆N has a least element (The well-ordering principle).

Proof

technique · direct
1.1F1L1L2L11

First-return decomposition. Let v∈Schn+1, of length ℓ, with step word w and heights h. Its first step is not D, so it is L2 or U. If it is L2 then translating the remaining path by (−2,0) gives a member of Schn, since its endpoints become (0,0) and (2n,0) and its heights are unchanged. If it is U then h(1)=1; the set of positive indices j≤ℓ with h(j)=0 contains ℓ, so by [L11] it has a least element τ≥2, and h(τ−1)≥1 by minimality while h(τ)=0, so the step at τ lowers the height and is therefore D, with h(τ−1)=1. Translating the portion of v from the index 1 to the index τ−1 by (−1,−1) gives a path from (0,0) whose heights are h(1+j)−1≥0 and which returns to height 0; its numbers of up and down steps are therefore equal, so its horizontal extent is even, say 2i, and it lies in Schi. Since the D step at τ has width 1, the first coordinate at τ is 2i+2, so translating the portion from τ to ℓ by (−2i−2,0) gives a member of Schn−i, and 0≤i≤n. Conversely, prepending L2 to a member of Schn, and sending (i,P,Q) to the path with step word U, that of P, D, that of Q, produce members of Schn+1 whose first-return data are the ones started from, because the heights strictly inside the first block are at least 1; the two constructions are two-sided inverses, so by [L1] and [L2] the set Schn+1 is in bijection with the disjoint union of Schn and the sets {i}×Schi×Schn−i for 0≤i≤n.

2.1F1L3L4L5L10step 1.1

The index range is where this differs from the Motzkin case. A U and its matching D have width 1 each, so together they consume two units of horizontal extent and therefore exactly one unit of half-length; the inner and outer blocks then carry half-lengths i and n−i with i+(n−i)=n, so the convolution index runs over all of {0,…,n} and not only over {0,…,n−1}. Counting the two sides of step 1.1 with [F1], [L3], [L4], [L5] and [L10] gives, in N, Rn+1=Rn+∑i=0nRiRn−i, the sum being over the finite index set {0,…,n}. At n=0 the sum has the single term R0R0=1, so R1=R0+1=2, matching the two paths with step words L2 and UD. At n=1 it gives R2=R1+R0R1+R1R0=6, at n=2 it gives R3=R2+R0R2+R1R1+R2R0=22, and at n=3 it gives R4=R3+R0R3+R1R2+R2R1+R3R0=90.

3.1F1F2L6L9step 2.1

Comparing coefficients gives the functional equation. At the index 0: [x0](1+xR+xR2)=1 by [L6], and [x0]R=R0=1. At an index n+1: [xn+1](xR)=[xn]R=Rn and [xn+1](xR2)=[xn](R2)=∑i=0nRiRn−i by the shift and Cauchy-product clauses of [L6], and the sum of the two is Rn+1 by step 2.1. Extensionality in [L6] gives R=1+xR+xR2.

4.1L6L7L8L9step 3.1∎

Rearranging step 3.1 in the commutative ring Q⟦x⟧ gives xR2+(x−1)R+1=0, and hence (1−x−2xR)2=(x−1)2+4x(xR2+(x−1)R)=(x−1)2−4x=1−6x+x2. The series 1−x−2xR has coefficient 1 at the index 0, so it lies in 1+xQ⟦x⟧, and 1−6x+x2=1+u with u=−6x+x2∈xQ⟦x⟧; by the uniqueness clause of [L7] with k=2 it is therefore (1−6x+x2)1/2 as defined in [L8], which gives 2xR=1−x−(1−6x+x2)1/2. No division by 2x occurs, and none is available.

Remarks

  • One index range, and it is the whole content. Everything else in this proof is the Motzkin argument with the level step widened. The Motzkin convolution stops at n−1 because a U with its D costs two units of the index, and the Schröder convolution runs to n because in half-length it costs one. A proof that copied the Motzkin range would give a false equation whose first wrong value is R1.

  • What the source proves and what is proved here. The statement is the source's, in the cleared form; its derivation there goes through a continued fraction, and the first-return argument above is written locally, exactly as in the Motzkin case.

CorollaryStatement: Literature-sourcedProof: AI-generatedprecheck passjudge pass (deepseek-v4-pro + gpt-5.6-terra)audited 2026-08-26Open item page →

Rn=∑k=0n(n+k2k)Ck

Statement

For every n∈N, in N,

Rn=∑k=0n(n+k2k) Ck,

the sum being over the finite index set {0,1,…,n} (The sum ∑i∈Sai over a finite index set, and its product form), with Rn the large Schröder numbers (Motzkin paths, Schröder paths, the Motzkin numbers Mn, the large Schröder numbers Rn, and their generating functions) and Ck the Catalan numbers (The Catalan number Cn:=∣Dn∣).

Facts & Assumptions

Given: a natural number n.

[F1]

Schn is the set of lattice paths with steps in {U,D,L2} from (0,0) to (2n,0) with h(i)≥0 at every index; such a path with k up steps has k down steps, n−k level steps and n+k steps in all, with 0≤k≤n; and Rn=∣Schn∣ is finite (Motzkin paths, Schröder paths, the Motzkin numbers Mn, the large Schröder numbers Rn, and their generating functions).

[F2]

Dk corresponds bijectively, through step words, to the ballot words of length 2k, that is the words over {U,D} with equally many letters of each kind in which every prefix has at least as many U as D; and Ck=∣Dk∣ (Dyck paths of semilength n, The Catalan number Cn:=∣Dn∣).

[F3]

For a diagonal path of length ℓ from (0,0) with step word w^ and μ(r) the number of up steps among the first r, the height is h^(r)=2μ(r)−r (Diagonal lattice paths with steps U=(1,1) and D=(1,−1), and the height function).

[L1]

For a step set S, a point P and ℓ∈N, the map sending a lattice path to its step word is a bijection LS(P;ℓ)→Sℓ (For each start point the step word is a bijection onto Sn).

[L2]
[L3]

For a finite set A and j∈N, [A]j is the set of j-element subsets of A, and ∣[A]j∣=(∣A∣j) (The set [A]k of k-element subsets and the binomial coefficient (nk):=∣[n]k∣).

[L4]

If I is finite and (Ai)i∈I are pairwise disjoint finite sets then ⋃i∈IAi is finite with ∣⋃i∈IAi∣=∑i∈I∣Ai∣ (The sum rule: a finite disjoint union is finite with ∣A∪B∣=∣A∣+∣B∣ and ∣⋃i∈IAi∣=∑i∈I∣Ai∣, and a sum over a finite index set splits along a partition, clause 2).

[L5]

If A and B are finite then A×B is finite and ∣A×B∣=∣A∣⋅∣B∣ (The product rule: ∣A×B∣=∣A∣ ∣B∣, and ∣∏i<mAi∣=∏i<m∣Ai∣, clause 1).

[L6]

For a finite index set S and a:S→N the sum ∑i∈Sai is defined (The sum ∑i∈Sai over a finite index set, and its product form).

[L7]

If A is finite and f:A→B is a bijection then B is finite and ∣B∣=∣A∣ (The cardinality ∣A∣ of a finite set).

Proof

technique · direct
1.1F1F2F3

Let v∈Schn with k up steps. By [F1] it has exactly n+k steps, of which 2k are not level, so the number of positions available to the non-level steps is n+k and depends on k; that dependence is the whole difference from the Motzkin case, where the number of positions is n for every k. Let A be the set of non-level positions, a 2k-element subset of {0,…,n+k−1}, and let w^ be the word over {U,D} read off the letters of the step word of v at the positions of A in increasing order. A level step leaves the height unchanged, so the height of v at any index equals the height of the diagonal path traced by w^ after the corresponding number of non-level steps, and every such number arises; hence the height condition on v says exactly that h^≥0 throughout and h^(2k)=0, so w^ is a ballot word of length 2k and by [F2] the step word of a unique Dyck path of semilength k.

2.1F1F2L1L2step 1.1

For each k with 0≤k≤n the map just described is a bijection from the set of v∈Schn having exactly k up steps onto [ n+k ]2k×Dk, where [ n+k ]2k is the set of 2k-element subsets of {0,…,n+k−1}. Its inverse takes (A,P) to the path whose step word has length n+k, carries the letters of the step word of P at the positions of A in increasing order and the letter L2 elsewhere: that word has k up steps, k down steps and n−k level steps, hence horizontal extent 2k+2(n−k)=2n, and by step 1.1 its heights are nonnegative and it ends at height 0, so it lies in Schn and has exactly k up steps. The two constructions undo one another, so [L1] and [L2] apply.

3.1F1L3L4L5L6L7step 2.1∎

The sets of v∈Schn with exactly k up steps, for 0≤k≤n, are pairwise disjoint with union Schn by [F1]. Each is finite with (n+k2k)Ck elements, by step 2.1 with [L3], [L5] and [L7], and adding them over the finite index set {0,…,n} with [L4] and [L6] gives the stated identity. At n=0 the single term is (00)C0=1; at n=1 the terms are (10)C0=1 and (22)C1=1, giving 2; at n=2 they are 1, (32)C1=3 and (44)C2=2, giving 6; and at n=3 they are 1, (42)C1=6, (54)C2=10 and (66)C3=5, giving 22.

Remarks

  • The binomial coefficient is (n+k2k) and not (n2k). A Schröder path of half-length n with k up steps has n+k steps, because a level step covers two units of horizontal extent while an up or a down step covers one. So the positions the non-level steps may occupy are n+k in number, and that number moves with k. In the Motzkin case every step has width 1, the number of positions is n for every k, and the coefficient is (n2k).

  • The same deletion, twice. The argument is the level-step deletion of Mn=∑k∈N, 2k≤n(n2k)Ck; only the count of available positions changes. Splitting by the number of up steps is what makes that count available, and it is why the sum here is indexed by k from 0 to n rather than by the condition 2k≤n.

DefinitionDefinition: AI-adaptedProof: Not applicableaudited 2026-08-26Open item page →

Balanced bracket words, defined by the recursive grammar

Definition

Let Σ:={(,)} and let Σ∗:=⋃ℓ∈NΣℓ be the set of all finite words over Σ, the words of length ℓ being the functions {0,…,ℓ−1}→Σ (Finite words, contiguous factors, avoidance and proper-prefix states). Write ε for the empty word and uv for concatenation.

Call a set X⊆Σ∗ grammatical when ε∈X and (u)v∈X for all u,v∈X. The set Σ∗ itself is grammatical, so the family of grammatical subsets is a nonempty subfamily of P(Σ∗) (The power set P(x)={ z:z⊆x }), and we may define

B:=⋂{ X⊆Σ∗:X is grammatical },

the balanced bracket words. Thus B is itself grammatical, and it is contained in every grammatical set.

Structural induction, which is what the definition is for. If X⊆B is grammatical then X=B, since B is contained in every grammatical set. So to prove that every balanced bracket word has a property it suffices to prove it for ε and to prove it for (u)v whenever it holds for u and for v.

Every nonempty balanced word factors as (u)v. Put B′:={ε}∪{ (u)v:u,v∈B }. Then B′⊆B because B is grammatical, and B′ is itself grammatical: it contains ε, and if u,v∈B′ then u,v∈B, so (u)v∈B′ by construction. By the previous paragraph B′=B, which is the assertion.

Lengths. Every w∈B has even length: this holds for ε, and if u and v have even lengths then so does (u)v, whose length is ∣u∣+∣v∣+2. So put, for n∈N,

Bn:={ w∈B:∣w∣=2n }.

Then B0={ε}, since a balanced word of length 0 is ε and ε∈B; and for every n,

Bn+1=⋃i≤n{ (u)v:u∈Bi, v∈Bn−i },

by the factorisation clause together with the additivity of lengths. In particular B1={()} and B2={(()),()()}.

Each Bn is finite, being a subset of the set Σ2n of words of length 2n, which is finite with 22n elements (The set AB of functions B→A between finite sets is finite, with ∣AB∣=∣A∣∣B∣, A subset of a finite set is finite, with ∣B∣≤∣A∣, and equality holds if and only if B=A, The cardinality ∣A∣ of a finite set).

Remarks

  • The grammar is the definition, and that is deliberate. The set could instead have been defined by the counting condition — every prefix has at least as many ( as ), with equal totals — and then the theorem that follows would be a tautology. Taking the recursive description as the definition makes the equivalence of the two descriptions something to prove, and it is that equivalence that the counting arguments use.

  • No parser and no stack. The definition quantifies over subsets of Σ∗ and takes an intersection. Nothing about reading a word left to right is assumed; the left-to-right characterisation is the content of the next item.

  • Why the graded pieces are indexed by half the length. A balanced word has even length, and every count on this page is stated in the number of bracket pairs. The displayed recursion for Bn+1 is the same shape as the first-return decomposition of a Dyck path, which is why the two families have the same counts.

TheoremStatement: AI-adaptedProof: AI-adaptedprecheck passjudge pass (deepseek-v4-pro + gpt-5.6-terra)audited 2026-08-26Open item page →

Bn is exactly the set of words of length 2n over {(,)} in which every prefix has at least as many ( as ) and the totals are equal

Statement

For a word w over Σ={(,)} and r≤∣w∣ let dw(r) be the number of letters ( among the first r letters of w minus the number of letters ) among them. Call w a nonnegative prefix word when dw(r)≥0 for every r≤∣w∣ and dw(∣w∣)=0.

For every n∈N,

Bn={ w∈Σ2n:w is a nonnegative prefix word }

(Balanced bracket words, defined by the recursive grammar). Moreover the alphabet bijection (↦U, )↦D carries Bn onto the set of ballot words of length 2n, hence onto Dn through step words (Dyck paths of semilength n).

Facts & Assumptions

Given: a natural number n, and the sets Bm of Balanced bracket words, defined by the recursive grammar.

[F1]

B is the least grammatical subset of Σ∗, so a grammatical X⊆B equals B; every nonempty member of B is (u)v with u,v∈B; Bm is the set of members of length 2m; B0={ε}; and Bm+1 is the set of words (u)v with u∈Bi and v∈Bm−i for some i≤m (Balanced bracket words, defined by the recursive grammar).

[F2]

Dm corresponds bijectively, through step words, to the ballot words of length 2m, that is the words over {U,D} in which the two letters occur equally often and every prefix has at least as many U as D (Dyck paths of semilength n).

[L1]

The map Θ sending (i,P,Q) with i≤m, P∈Di, Q∈Dm−i to the diagonal path whose step word is U, that of P, D, that of Q, is a bijection onto Dm+1 (Every Dyck path of semilength n+1 factors uniquely as U P D Q with P∈Di and Q∈Dn−i).

[L2]
[L3]

For a step set S, a point P and ℓ∈N, the map sending a lattice path to its step word is a bijection LS(P;ℓ)→Sℓ (For each start point the step word is a bijection onto Sn).

[L4]

If a property of naturals holds at n whenever it holds at every m<n, then it holds at every natural number (Strong (complete) induction).

[L5]

If A is finite and f:A→B is a bijection then B is finite and ∣B∣=∣A∣ (The cardinality ∣A∣ of a finite set).

Proof

technique · direct
1.1F2L2L3

The letter map λ with λ(()=U and λ())=D is a bijection Σ→{U,D}, with the two-sided inverse U↦(, D↦), so composing a word with λ is a bijection Σ2m→{U,D}2m by [L2]. It carries dw to the difference between the numbers of U and D letters among the first r, so w is a nonnegative prefix word exactly when λ∘w is a ballot word of length 2m; and by [F2] and [L3] those correspond bijectively to Dm.

1.2F1

Every member of B is a nonnegative prefix word. The set X of members of B that are is grammatical: ε qualifies, since dε(0)=0; and if u,v∈X and w=(u)v, then dw(0)=0, dw(r)=1+du(r−1)≥1 for 1≤r≤1+∣u∣, dw(2+∣u∣)=1+du(∣u∣)−1=0, and dw(r)=dv(r−2−∣u∣)≥0 for 2+∣u∣≤r≤∣w∣, the last value being dv(∣v∣)=0. So X⊆B is grammatical and [F1] gives X=B.

2.1F1L1L4step 1.1

Conversely every nonnegative prefix word of length 2m lies in Bm, by [L4] on m. At m=0 the word is ε, which lies in B0 by [F1]. Let m=p+1 and assume the claim at every index below m. Let w∈Σ2m be a nonnegative prefix word. By step 1.1 the word λ∘w is the step word of a path in Dp+1, so [L1] writes that path as Θ(i,P,Q) with i≤p, P∈Di and Q∈Dp−i; applying the inverse letter map to the three blocks writes w=(u)z with u of length 2i and z of length 2(p−i), both nonnegative prefix words by step 1.1 read backwards. Since i<m and p−i<m, the inductive hypothesis puts u∈Bi and z∈Bp−i, so w∈Bm by [F1].

3.1L5step 1.2step 2.1∎

Steps 1.2 and 2.1 are the two inclusions, so the displayed equality holds for every n. Combining it with step 1.1 gives the second assertion, and [L5] transports cardinalities along it.

Remarks

  • What the theorem buys. The grammar is the definition, so this is the statement that the left-to-right condition a reader would have written down is the same notion. Without it the counting arguments would have to be run twice, once for each description, and the two would never be known to agree.

  • Where the first-return lemma enters. Only in the harder inclusion, and only to produce the factorisation the grammar needs. The lemma is a statement about paths, and the alphabet bijection of step 1.1 is what makes it applicable to words; the transport is stated as a bijection rather than left as an identification.

CorollaryStatement: Literature-sourcedProof: AI-adaptedprecheck passjudge pass (deepseek-v4-pro + gpt-5.6-terra)audited 2026-08-26Open item page →

∣Bn∣=Cn

Statement

For every n∈N the set Bn of balanced bracket words with n pairs of brackets (Balanced bracket words, defined by the recursive grammar) is finite with

∣Bn∣=Cn,

the Catalan number (The Catalan number Cn:=∣Dn∣).

Facts & Assumptions

Given: a natural number n.

[F1]

The alphabet bijection (↦U, )↦D carries Bn onto the set of ballot words of length 2n (Bn is exactly the set of words of length 2n over {(,)} in which every prefix has at least as many ( as ) and the totals are equal).

[L1]

Dn corresponds bijectively, through step words, to the set of ballot words of length 2n (Dyck paths of semilength n).

[L2]
[L3]

If A is finite and f:A→B is a bijection then B is finite and ∣B∣=∣A∣ (The cardinality ∣A∣ of a finite set).

Proof

technique · direct
1.1F1L1

By [F1] and [L1] the composite of the alphabet bijection with the inverse of the step-word bijection is a bijection Bn→Dn, a composite of two bijections being one.

2.1F2L2L3step 1.1∎

By [F2] the set Bn is finite, so [L3] transports its cardinality along the bijection of step 1.1 and gives ∣Bn∣=∣Dn∣, which is Cn by [L2]. At n=0 both sides are 1 and at n=1 both are 1.

Remarks

  • The content is in the theorem above, not here. Once the grammar and the prefix condition are known to describe the same words, the count is a transport along a bijection of alphabets. What makes the corollary worth stating is that it is the first of the three Catalan families whose members are not paths.
DefinitionDefinition: AI-adaptedProof: Not applicableaudited 2026-08-26Open item page →

Binary trees, defined recursively, and their size

Definition

Let {0,1}∗:=⋃ℓ∈N{0,1}ℓ be the set of all finite words over {0,1} (Finite words, contiguous factors, avoidance and proper-prefix states, The natural numbers N (von Neumann)), written ε for the empty word and wb for the word w followed by the letter b. A word u is a prefix of w when w=uz for some z.

Definition. A binary tree is a finite set T⊆{0,1}∗ (The cardinality ∣A∣ of a finite set) such that

  1. ε∈T;
  2. T is closed under prefixes: if wb∈T with b∈{0,1} then w∈T;
  3. for every w∈T: w0∈T if and only if w1∈T.

Its elements are nodes; a node w is internal when w0∈T, and a leaf otherwise. The size of T is the number of internal nodes, size⁡(T):=∣{ w∈T:w0∈T }∣, a natural number because T is finite (A subset of a finite set is finite, with ∣B∣≤∣A∣, and equality holds if and only if B=A). Write T for the set of binary trees, a subset of P({0,1}∗) (The power set P(x)={ z:z⊆x }), and Tn:={ T∈T:size⁡(T)=n }.

The trees of size 0. If size⁡(T)=0 then no node of T is internal, so no node has a child; a nonempty word wb in T would put w in T by clause 2 with wb a child of it, so T={ε}. Conversely {ε} is a binary tree of size 0. Hence T0={{ε}}, a one-element set: the tree with no internal node at all.

The recursion, proved here because everything below uses it. Let T∈T with T≠{ε}; then ε is internal, so 0∈T and, by clause 3, 1∈T. Put

L:={ w:0w∈T },R:={ w:1w∈T }.

Both are binary trees: each contains ε, each is prefix-closed because T is, each satisfies clause 3 because T does, and each is finite because w↦0w and w↦1w inject them into T. The internal nodes of T are ε together with the words 0w for w internal in L and 1w for w internal in R, and these three families are pairwise disjoint, so The sum rule: a finite disjoint union is finite with ∣A∪B∣=∣A∣+∣B∣ and ∣⋃i∈IAi∣=∑i∈I∣Ai∣, and a sum over a finite index set splits along a partition gives

size⁡(T)=1+size⁡(L)+size⁡(R).

Conversely, for binary trees L and R the set T:={ε}∪{0w:w∈L}∪{1w:w∈R} is a binary tree with those two sets recovered as above, and with size 1+size⁡(L)+size⁡(R). The two constructions undo one another, so for every n∈N the map T↦(size⁡(L),L,R) is a bijection

Tn+1⟶{ (i,L,R):i≤n, L∈Ti, R∈Tn−i }.

Small cases. T1 has the single member {ε,0,1}, and T2 has exactly two members, obtained by attaching the size-one tree on the left or on the right.

Remarks

  • No graph theory is used, and none is available at this point in the reading order. A binary tree here is a set of node addresses: a finite prefix-closed set of binary words in which a node has two children or none. The usual picture, with a root drawn at the top and two subtrees hanging from it, is an illustration of the recursion clause above and is not a hypothesis anywhere.

  • Size counts internal nodes, not nodes. A tree of size n has n internal nodes and, by the recursion clause and induction, n+1 leaves; the count that matches the Catalan numbers is the one above. A statement about trees with n nodes would be a different statement.

  • Why the addresses and not ordered pairs. Defining a tree as ∙ or an ordered pair of trees would need a recursion whose values are sets and whose ambient collection is not a set at this point in the development. The address encoding puts every tree inside the fixed set P({0,1}∗), so the definition is a condition rather than a construction, and the recursion clause above is then a theorem about it.

LemmaStatement: AI-adaptedProof: AI-adaptedprecheck passaudited 2026-08-26Open item page →

Each Tn is finite

Statement

For every natural number n, the set

Tn:={ T∈T:size⁡(T)=n }

of binary trees of size n is finite (Binary trees, defined recursively, and their size).

Facts & Assumptions

Given: a natural number n.

[F1]

The recursion of Binary trees, defined recursively, and their size gives Tn+1≅∐i=0nTi×Tn−i.

Proof

technique · induction
1.1F1

[base] The set T0 has the single element {ε} by Binary trees, defined recursively, and their size, so T0 is finite.

1.2given

[ih] Assume that every Tj with j≤n is finite.

2.1F3step 1.2

For each index i with 0≤i≤n, the sets Ti and Tn−i are finite by the induction hypothesis, so Ti×Tn−i is finite by [F3].

3.1F2step 2.1

The disjoint union ∐i=0nTi×Tn−i is finite by [F2].

4.1F1step 3.1discharge-induction∎

Since Tn+1 is in bijection with that finite disjoint union by [F1], the set Tn+1 is finite. Therefore every Tn is finite.

Remarks

  • This is the well-definedness step for the next corollaries. The Catalan count of binary trees is a statement about the natural number ∣Tn∣, and that symbol is honest only because this lemma makes the set finite first.
TheoremStatement: Literature-sourcedProof: AI-adaptedprecheck passaudited 2026-08-26Open item page →

There is a bijection Tn→Dn for every n

Statement

For every natural number n there is a bijection

Φn:Tn⟶Dn

from the binary trees of size n (Binary trees, defined recursively, and their size) to the Dyck paths of semilength n (Dyck paths of semilength n).

Facts & Assumptions

Given: a natural number n.

[F1]

Every tree in Tn+1 is determined by an index i≤n, a left subtree in Ti and a right subtree in Tn−i (Binary trees, defined recursively, and their size).

[L1]

Every Dyck path of semilength n+1 factors uniquely as U P D Q with P∈Di and Q∈Dn−i for a unique index i≤n (Every Dyck path of semilength n+1 factors uniquely as U P D Q with P∈Di and Q∈Dn−i).

Proof

technique · induction
1.1given

[base] The set T0 has the single tree {ε} and D0 has the single empty path, so Φ0 sending {ε} to the empty path is a bijection.

1.2given

[ih] Assume that for every index j≤n a bijection Φj:Tj→Dj has already been constructed.

2.1F1step 1.2

For a tree T∈Tn+1 write its recursive data as (i,L,R) as in [F1], with L∈Ti and R∈Tn−i, and define Φn+1(T) to be the Dyck path whose step word is U, then the step word of Φi(L), then D, then the step word of Φn−i(R). This lands in Dn+1 by the defining condition on Dyck paths.

2.2L1step 1.2

For a Dyck path Q∈Dn+1, the first-return factorisation of [L1] writes Q uniquely as U P D Q′ with P∈Di and Q′∈Dn−i for a unique i≤n, so the induction hypothesis supplies unique trees L:=Φi−1(P) and R:=Φn−i−1(Q′) and therefore a unique tree T with recursive data (i,L,R). Define Ψn+1(Q):=T.

3.1L2step 2.1step 2.2discharge-induction∎

The definitions of Φn+1 and Ψn+1 undo one another: starting from a tree, the factorisation recovered from its image is the same recursive split, and starting from a Dyck path, the tree recovered from its first return rebuilds the same path. Hence Ψn+1∘Φn+1=ΔTn+1 and Φn+1∘Ψn+1=ΔDn+1, so Φn+1 is a bijection by [L2].

Remarks

  • The proof is a transport of the same recursion on two different families. Binary trees split at the root into left and right subtrees; Dyck paths split at their first return into an inner and an outer path. The bijection is that identification written as a two-sided inverse.
CorollaryStatement: Literature-sourcedProof: AI-adaptedprecheck passjudge pass (deepseek-v4-pro + gpt-5.6-terra)audited 2026-08-26Open item page →

∣Tn∣=Cn

Statement

For every natural number n, the set Tn of binary trees of size n is finite and has cardinality

∣Tn∣=Cn,

the nth Catalan number.

Facts & Assumptions

Given: a natural number n.

[L1]

There is a bijection Tn→Dn (There is a bijection Tn→Dn for every n).

[F1]

If A is finite and f:A→B is a bijection, then B is finite and ∣A∣=∣B∣ (The cardinality ∣A∣ of a finite set).

[L2]

Proof

technique · direct
1.1L1

The bijection of [L1] identifies Tn with Dn.

2.1L2F1step 1.1∎

Since Dn has cardinality Cn by [L2], [F1] transports that cardinality along the bijection of step 1.1 and gives ∣Tn∣=Cn.

Remarks

  • This is the binary-tree form of the Catalan count. Later examples use it in the forward direction, by listing trees of a fixed size, and in the backward direction, by importing a Catalan identity into the tree family.
DefinitionDefinition: AI-adaptedProof: Not applicableaudited 2026-08-26Open item page →

Chords of a labelled convex polygon, crossing, and triangulations, defined combinatorially

Definition

Let m∈N with m≥2, and write the vertices of a labelled convex m-gon as the cyclically ordered set {1,2,…,m}.

A chord is a two-element subset {i,j} with 1≤i<j≤m. It is a side when j=i+1 or (i,j)=(1,m), and a diagonal otherwise.

Two chords {i,j} and {k,ℓ} cross when

i<k<j<ℓork<i<ℓ<j.

This is a condition on the cyclic order of the labels alone; no segment and no area enters the definition.

A triangulation of the labelled m-gon is a set T of diagonals such that

  1. no two members of T cross; and
  2. T is maximal with that property.

Write Pm for the set of triangulations of the labelled m-gon.

For m=2 and m=3 there are no diagonals at all, so the empty set is the unique triangulation:

P2={∅},P3={∅}.

For every fixed m the set of diagonals is finite, being a subset of the finite set of all chords, so Pm is a finite set of finite sets (A subset of a finite set is finite, with ∣B∣≤∣A∣, and equality holds if and only if B=A, The cardinality ∣A∣ of a finite set).

Remarks

  • The word "convex" in the title is only the picture attached to the cyclic order on the labels. The development below uses only the combinatorial crossing relation written above.

  • The side {1,m} is singled out often enough to deserve a name: it is the closing side. The splitting lemma below decomposes a triangulation along the unique triangle touching that side.

LemmaStatement: AI-adaptedProof: AI-adaptedprecheck passaudited 2026-08-26Open item page →

For m≥3 and a triangulation T of the m-gon there is a unique k with 1<k<m such that {1,k} and {k,m} are both chords of T or sides, and T splits along k

Statement

Let m≥3 and let T∈Pm be a triangulation of the labelled m-gon.

Then there is a unique index k with 1<k<m such that both {1,k} and {k,m} are sides or diagonals of the triangulation. Equivalently, the closing side {1,m} lies in a unique triangle with third vertex k.

For that index k:

  1. every diagonal of T has both endpoints in {1,…,k} or both endpoints in {k,…,m};
  2. the restriction of T to {1,…,k} is a triangulation of the k-gon;
  3. the restriction of T to {k,…,m} is a triangulation of the (m−k+1)-gon.

Facts & Assumptions

Given: a natural number m≥3 and a triangulation T∈Pm.

[F1]

A triangulation is a maximal set of pairwise non-crossing diagonals of the labelled polygon (Chords of a labelled convex polygon, crossing, and triangulations, defined combinatorially).

Proof

technique · direct
1.1F1choose

Let k be the least element of {2,…,m−1} such that {k,m} is a diagonal of T or the side {m−1,m}. This set is nonempty because m−1 belongs to it.

2.1F1step 1.1

The chord {1,k} is a side or lies in T. If it were a diagonal outside T, maximality would give a diagonal {p,q}∈T crossing it, so 1<p<k<q; if q<m then {p,q} would cross {k,m}, impossible, and if q=m then p<k would contradict the minimality of k.

3.1F1step 1.1step 2.1

Every diagonal of T has both endpoints in {1,…,k} or both endpoints in {k,…,m}. Indeed, if {p,q}∈T had p<k<q<m, then it would cross {k,m}; and if p=1<k<q<m, then q would satisfy the defining property of step 1.1 with q<k, again impossible.

4.1F1step 2.1step 3.1∎

The diagonals of T with endpoints in {1,…,k} form a triangulation of the k-gon, and those with endpoints in {k,…,m} form a triangulation of the (m−k+1)-gon: they are pairwise non-crossing because they are diagonals of T, and they are maximal because any extra diagonal in one sub-polygon would also be a diagonal of the whole polygon and would not cross any member of T by step 3.1. The index k is unique, for if another index ℓ with 1<ℓ<m had the same property, then the chords {1,k} and {ℓ,m} would cross when k<ℓ, or the symmetric crossing would occur when ℓ<k.

Remarks

  • This is the polygon version of first return. The closing side {1,m} plays the role of the root edge, and the third vertex k is the split point.
TheoremStatement: Literature-sourcedProof: AI-adaptedprecheck passaudited 2026-08-26Open item page →

There is a bijection Tn→Pn+2 for every n∈N

Statement

For every natural number n there is a bijection

Ψn:Tn⟶Pn+2

from the binary trees of size n to the triangulations of the labelled (n+2)-gon.

Facts & Assumptions

Given: a natural number n.

[L1]

A triangulation of the (n+3)-gon has a unique split index k on the closing side, and splitting there produces triangulations of the k-gon and the (n−k+4)-gon (For m≥3 and a triangulation T of the m-gon there is a unique k with 1<k<m such that {1,k} and {k,m} are both chords of T or sides, and T splits along k).

[F1]

Every tree in Tn+1 is determined by an index i≤n, a left subtree in Ti and a right subtree in Tn−i (Binary trees, defined recursively, and their size).

Proof

technique · induction
1.1given

[base] The set T0 has the single tree {ε} and the set P2 has the single empty triangulation, so there is a unique bijection Ψ0:T0→P2.

1.2given

[ih] Assume that for every index j≤n a bijection Ψj:Tj→Pj+2 has already been constructed.

2.1F1step 1.2

For a tree T∈Tn+1 write its recursive data as (i,L,R) as in [F1]. Let Ψn+1(T) be the triangulation of the (n+3)-gon obtained by taking the triangle on the closing side with third vertex k:=i+2, filling the left k-gon by Ψi(L), and filling the right (n−i+2)-gon by the order-preserving relabelling of Ψn−i(R) onto the vertices {k,k+1,…,n+3}.

2.2L1F1step 1.2

For a triangulation U∈Pn+3, [L1] supplies a unique split index k and therefore a unique index i:=k−2≤n, together with triangulations of the left k-gon and the right (n−i+2)-gon. Relabel those two sub-polygons back to {1,…,i+2} and {1,…,n−i+2}, apply the inverse bijections Ψi−1 and Ψn−i−1 from the induction hypothesis, and rebuild a tree in Tn+1 from the recursive data (i,L,R). Define that tree to be Ωn+1(U).

3.1L2step 2.1step 2.2discharge-induction∎

The constructions in steps 2.1 and 2.2 undo one another because both are governed by the same split index: the root split of the tree becomes the closing-side triangle of the triangulation, and the closing-side triangle of the triangulation becomes the root split of the tree. Hence Ωn+1∘Ψn+1=ΔTn+1 and Ψn+1∘Ωn+1=ΔPn+3, so Ψn+1 is a bijection by [L2].

Remarks

  • The boundary case is the digon, not the triangle. That is why the statement is Tn→Pn+2 rather than Pn+1, and it is why the base case carries the empty triangulation of the two-gon explicitly.
CorollaryStatement: Literature-sourcedProof: AI-adaptedprecheck passjudge pass (deepseek-v4-pro + gpt-5.6-terra)audited 2026-08-26Open item page →

∣Pn+2∣=Cn

Statement

For every natural number n, the set Pn+2 of triangulations of the labelled (n+2)-gon is finite and has cardinality

∣Pn+2∣=Cn.

Facts & Assumptions

Given: a natural number n.

[L1]

There is a bijection Tn→Pn+2 (There is a bijection Tn→Pn+2 for every n∈N).

[L2]

∣Tn∣=Cn (∣Tn∣=Cn).

[F1]

If A is finite and f:A→B is a bijection, then B is finite and ∣A∣=∣B∣ (The cardinality ∣A∣ of a finite set).

Proof

technique · direct
1.1L1

The bijection of [L1] identifies Tn with Pn+2.

2.1L2F1step 1.1∎

The set Tn has cardinality Cn by [L2], so [F1] transports that cardinality along the bijection of step 1.1 and yields ∣Pn+2∣=Cn.

Remarks

  • At n=4 this says that the labelled hexagon has C4=14 triangulations. The companion page writes them out in full.
DefinitionDefinition: AI-adaptedProof: Not applicablejudge pass (deepseek-v4-pro + gpt-5.6-terra)audited 2026-08-26Open item page →

Path systems between two families of lattice points, and non-intersecting systems

Definition

Fix a natural number r, start points (Ai)i<r and end points (Ei)i<r in Z2.

For a permutation π∈Sr (The finite symmetric group Sn, one-line notation, and cycle notation), a π-system is an r-tuple

P=(Pi)i<r

such that for each index i<r, the path Pi is a monotone lattice path from Ai to Eπ(i) (Monotone lattice paths with steps E=(1,0) and N=(0,1)).

Two monotone lattice paths intersect when they share a lattice point, that is, when the images of their point functions have a common element of Z2. A π-system is non-intersecting when no two of its paths intersect.

Write Sπ(A,E) for the set of π-systems and Nπ(A,E)⊆Sπ(A,E) for the non-intersecting ones.

Each set Sπ(A,E) is finite. Indeed, for every index i<r, either the endpoints Ai and Eπ(i) are compatible and ∣M((0,0),(m,n))∣=(m+nn) counts a finite set of monotone paths between them, or they are incompatible and Monotone lattice paths with steps E=(1,0) and N=(0,1) makes that set empty. Repeated use of The product rule: ∣A×B∣=∣A∣ ∣B∣, and ∣∏i<mAi∣=∏i<m∣Ai∣ therefore makes the product of those finite sets finite, and that product is exactly Sπ(A,E). Therefore the subset Nπ(A,E) is finite as well (A subset of a finite set is finite, with ∣B∣≤∣A∣, and equality holds if and only if B=A).

Remarks

  • The definition uses all lattice points of the paths, not only their step words. Two paths that merely cross between lattice points are not visible in this model; everything below is about sharing a lattice vertex.

  • The permutation is part of the datum. A path system records not only which paths occur but also which start is matched to which end.

LemmaStatement: Literature-sourcedProof: AI-adaptedprecheck passjudge pass (deepseek-v4-pro + gpt-5.6-terra)audited 2026-08-26Open item page →

Tail-swapping is a sign-reversing involution on the intersecting systems

Statement

Fix start points (Ai)i<r and end points (Ei)i<r, and let I(A,E) be the set of pairs (π,P) such that π∈Sr and P is an intersecting π-system (Path systems between two families of lattice points, and non-intersecting systems).

There is an involution

τ:I(A,E)⟶I(A,E)

with the following property: if

τ(π,P)=(π′,P′),

then

sgn⁡(π′)=−sgn⁡(π).

Facts & Assumptions

Given: start points (Ai)i<r, end points (Ei)i<r, and a pair (π,P)∈I(A,E) with P=(Pi)i<r.

[F1]

A π-system is an r-tuple of monotone paths Pi:Ai→Eπ(i), and it is intersecting when some pair of paths shares a lattice point (Path systems between two families of lattice points, and non-intersecting systems).

[L1]

Composing a permutation with a transposition reverses its sign, so in particular sgn⁡(π∘(i j))=−sgn⁡(π) for i<j<r (Composing with a transposition reverses (−1)inv⁡(σ), Inversions, inversion number, the sign sgn⁡(σ)=(−1)inv⁡(σ), and even and odd permutations).

Proof

technique · constructive
1.1F1choose

The set of lattice vertices lying on at least two paths of P is finite and nonempty. Choose its lexicographically least vertex x, and then choose the lexicographically least pair of indices i<j<r such that both Pi and Pj pass through x.

1.2construct

Write Pi=αiβi and Pj=αjβj, where αi and αj end at x and βi and βj start at x. Define a new r-tuple P′ by replacing Pi with αiβj, replacing Pj with αjβi, and leaving every other path unchanged; and put π′:=π∘(i j).

2.1F1step 1.2

The new tuple P′ is a π′-system: the swapped paths are still monotone because each is a concatenation of monotone segments meeting at the same lattice point x, and their endpoints are Ai→Eπ(j) and Aj→Eπ(i) respectively, while every other endpoint is unchanged.

2.2L1step 1.2

Since π′=π∘(i j) and (i j) is a transposition, [L1] gives sgn⁡(π′)=−sgn⁡(π).

3.1step 1.1step 1.2step 2.1

The same choices x,i,j are recovered from (π′,P′). At every lattice vertex, swapping the two tails preserves the number of paths passing through that vertex: it only exchanges the labels i and j after x. Thus the set of vertices lying on at least two paths, and hence its lexicographically least member x, is unchanged. The paths with indices i and j still both pass through x, and the set of indices of paths passing through x is unchanged, so the least pair there is again i,j. Applying the construction again swaps the same tails back.

4.1step 2.1step 3.1step 2.2discharge-construct∎

Steps 2.1 and 3.1 show that the construction defines a map τ from I(A,E) to itself and that τ(τ(π,P))=(π,P) for every (π,P); step 2.2 gives the sign change. So τ is the required sign-reversing involution.

Remarks

  • The only real work is canonicity. A tail-swap at an arbitrary intersection would still reverse the sign, but it would not define an involution. The least indices and the first meeting point are what make the construction well defined.
TheoremStatement: AI-adaptedProof: AI-adaptedprecheck passjudge pass (deepseek-v4-pro + gpt-5.6-terra)audited 2026-08-26Open item page →

det⁡(∣M(Ai,Ej)∣)i,j=∑π∈Srsgn⁡(π)⋅#{non-intersecting π-systems}

Statement

Fix a natural number r≥1, start points (Ai)i<r and end points (Ei)i<r in Z2. Put

mi,j:=∣M(Ai,Ej)∣,

the number of monotone lattice paths from Ai to Ej. Then

det⁡(mi,j)0≤i,j<r=∑π∈Srsgn⁡(π)⋅#Nπ(A,E),

where Nπ(A,E) is the set of non-intersecting π-systems (Path systems between two families of lattice points, and non-intersecting systems).

If the configuration is compatible, meaning that every monotone path Ai→Ej meets every monotone path Ak→Eℓ whenever i<k and j>ℓ, then only the identity permutation contributes and

det⁡(mi,j)0≤i,j<r=#Nid(A,E).

Facts & Assumptions

Given: a natural number r≥1, start points (Ai)i<r, end points (Ei)i<r, and the matrix M=(mi,j)0≤i,j<r with mi,j:=∣M(Ai,Ej)∣.

[F1]

For r≥1, the determinant is det⁡(M)=∑σ∈Srsgn⁡(σ)∏i<rmσ(i),i (For n≥1, the determinant over a commutative ring by the Leibniz formula, and ∣det⁡A∣ for a real matrix).

[L1]

There is a sign-reversing involution on the intersecting systems (Tail-swapping is a sign-reversing involution on the intersecting systems).

[F3]

The sign is multiplicative, so 1=sgn⁡(σσ−1)=sgn⁡(σ)sgn⁡(σ−1) and hence sgn⁡(σ−1)=sgn⁡(σ) (The sign is a homomorphism Sn→{+1,−1}, surjective exactly when n≥2).

Proof

technique · direct
1.1F1F3algebra

Expanding by [F1] and reindexing the finite sum by π=σ−1 gives det⁡(M)=∑π∈Srsgn⁡(π)∏i<rmi,π(i). Indeed [F3] gives sgn⁡(σ−1)=sgn⁡(σ) and, after putting j=σ(i), the product ∏i<rmσ(i),i becomes ∏j<rmj,σ−1(j).

2.1F2step 1.1

For each permutation π, the product ∏i<rmi,π(i) is exactly the number of π-systems by [F2], so det⁡(M)=∑π∈Srsgn⁡(π)⋅#Sπ(A,E).

3.1L1step 2.1

Split each finite set Sπ(A,E) into its non-intersecting part and its intersecting part. The intersecting systems cancel in pairs under the involution of [L1], because paired terms carry opposite signs and equal absolute values. Therefore the sum of step 2.1 reduces to ∑π∈Srsgn⁡(π)⋅#Nπ(A,E).

4.1givenstep 3.1∎

In the compatible case, every non-identity permutation π has an inversion i<k with π(i)>π(k), and the compatibility hypothesis says that every path Ai→Eπ(i) meets every path Ak→Eπ(k); so every π-system is intersecting and Nπ(A,E)=∅. Only the identity permutation remains, and the determinant counts the non-intersecting systems joining Ai to Ei.

Remarks

  • This is the lattice-path form of the Lindstrom-Gessel-Viennot lemma. The general acyclic-digraph statement needs digraph machinery that this page does not build, so the theorem is stated exactly in the form the page uses.
CorollaryStatement: AI-adaptedProof: AI-adaptedprecheck passaudited 2026-08-26Open item page →

For n≥1 the pairs of non-intersecting monotone paths (1,0)→(n+1,n) and (0,1)→(n,n+1) number (2nn)2−(2nn+1)(2nn−1)

Statement

Let n≥1. Then the number of pairs (P,Q) such that

  1. P is a monotone lattice path from (1,0) to (n+1,n),
  2. Q is a monotone lattice path from (0,1) to (n,n+1), and
  3. P and Q do not intersect,

is

(2nn)2−(2nn+1)(2nn−1).

Facts & Assumptions

Given: a natural number n≥1.

[L1]

In the compatible case, the determinant of the matrix of path counts equals the number of non-intersecting systems joining the starts to the corresponding ends (det⁡(∣M(Ai,Ej)∣)i,j=∑π∈Srsgn⁡(π)⋅#{non-intersecting π-systems}).

[L2]

If a≤c and b≤d, and m=c−a, n′=d−b are the corresponding natural numbers, then the number of monotone paths from (a,b) to (c,d) is (m+n′n′) (∣M((0,0),(m,n))∣=(m+nn)).

Proof

technique · direct
1.1L2

With A0=(1,0), A1=(0,1), E0=(n+1,n) and E1=(n,n+1), the four path counts are m0,0=m1,1=(2nn),m0,1=(2nn+1),m1,0=(2nn−1) by [L2].

1.2givenalgebra

Every monotone path P:(1,0)→(n,n+1) meets every monotone path Q:(0,1)→(n+1,n). After t steps, both paths lie on the line x+y=t+1; writing their x-coordinates as xP(t) and xQ(t), the difference xP(t)−xQ(t) starts at 1 and ends at −1, and each step changes it by at most 1. So some index t has xP(t)=xQ(t), and then the common value of x+y forces the same y-coordinate as well.

2.1L1step 1.1step 1.2

Step 1.2 is exactly the compatibility condition for these two pairs of endpoints, so [L1] applies and gives the count as the determinant det⁡((2nn)(2nn+1)(2nn−1)(2nn))=(2nn)2−(2nn+1)(2nn−1).

3.1step 2.1∎

At n=1 this gives 22−1⋅1=3, which matches the direct count: there are four ordered pairs of paths, and exactly one pair meets at the point (1,1).

Remarks

  • The determinant is already nontrivial at n=1: the count is not the product of the two individual path counts because the compatibility condition removes the intersecting pair.
RemarkRemark: AI-adaptedProof: Not applicablejudge pass (deepseek-v4-pro + gpt-5.6-terra)audited 2026-08-26Open item page →

Why the Catalan count is proved three times, and how the three statements agree

Remarks

The reflection route of Cn+(2nn+1)=(2nn) spends only a path-set bijection: the work is in the first visit to the level −1, and the final count is the path difference absorbed into (n+1) Cn=(2nn).

The cycle-lemma route of (2n+1) Cn=(2n+1n), a second derivation of the Catalan count spends a free cyclic action and trivial stabilisers. Its conclusion is the cleared count (2n+1)Cn=(2n+1n), and the last step of that theorem identifies this with the closed form of (n+1) Cn=(2nn) rather than treating it as a new sequence.

The formal-power-series route of A third derivation of (n+1) Cn=(2nn), from the closed form of C(x) spends algebra in Q⟦x⟧: the recurrence becomes the quadratic equation for C(x), the closed form comes from 2x C(x)=1−(1−4x)1/2, where (1−4x)1/2 is the unique square root with constant coefficient 1, and coefficient extraction returns the same closed formula again. So the three arguments disagree only in their hypotheses and intermediate objects, not in the count they deliver.

RemarkRemark: AI-adaptedProof: Not applicableaudited 2026-08-26Open item page →

The trees and polygons of this page are defined by recursion and by inequalities on labels

Remarks

The binary trees of Binary trees, defined recursively, and their size are finite prefix-closed sets of binary words. Their size counts internal nodes, and every recursive step is stated inside that set-theoretic model. Nothing about a vertex set, an edge set or connectivity is used here.

The triangulations of Chords of a labelled convex polygon, crossing, and triangulations, defined combinatorially are sets of diagonals in a labelled cyclic order. Crossing is the inequality pattern i<k<j<ℓ or k<i<ℓ<j, and every later splitting argument uses only that combinatorial crossing relation. Drawings are illustrations of these two definitions, not additional hypotheses.

RemarkRemark: AI-adaptedProof: Not applicablejudge pass (deepseek-v4-pro + gpt-5.6-terra)audited 2026-08-26Open item page →

Conventions fixed on this page

Remarks

The page uses two step pictures and treats them as one subject only through their proved dictionary. Lattice paths, step sets and step words is the ambient definition, Dyck paths of semilength n fixes the diagonal picture, and The two step sets describe the same objects: U↦N, D↦E is a bijection matching the diagonal y=x with the level 0 is the only place where the monotone picture is identified with it.

The indexing starts at 0. Dyck paths have semilength n, the Catalan number Cn counts semilength-n paths by The Catalan number Cn:=∣Dn∣, and the base case is C0=1. Every count on the page is written with that convention visible rather than hidden inside a later formula.

"Strictly above" and "weakly above" are different conditions and are never merged. The reflection principle counts paths staying strictly above a level; the Dyck-path count uses weakly above because the path may touch height 0; and The cycle lemma (Dvoretzky–Motzkin): if every ai≤1 and ∥a∥=k≥1, then exactly k of the m cyclic shifts of a have all partial sums positive fixes the orientation that a good shift is one whose partial sums are all strictly positive, with shifts indexed by their starting position.

A bijection on this page is always given with a two-sided inverse. That convention is what blocks the companion page's false bijection, and it is why the tail-swap of Tail-swapping is a sign-reversing involution on the intersecting systems is stated as an involution rather than as a cancellation slogan.

Two familiar refinements are left out because this page does not build the extra machinery they need. The Hankel determinant identity det⁡(Ci+j)0≤i,j≤n−1=1 would need det⁡(∣M(Ai,Ej)∣)i,j=∑π∈Srsgn⁡(π)⋅#{non-intersecting π-systems} applied to a path family closed under the same tail-swap, together with a theorem counting the monotone paths that stay weakly below a fixed diagonal. The Narayana refinement counts Dyck paths by their number of peaks, and none of the routes built here tracks that statistic. Both are therefore recorded as not built here, and Huq §2.5 is the source in hand for the second.

5 · Examples, counterexamples and false statements

ExampleConstruction: AI-generatedVerification: AI-adaptedprecheck passaudited 2026-08-26Open item page →

The ten monotone lattice paths from (0,0) to (3,2)

Example

The ten monotone paths from (0,0) to (3,2) are exactly the length-5 words in {E,N} with two N steps. Grouped by the positions of the N steps, they are:

positions of the N stepsstep word
{3,4}EEENN
{2,4}EENEN
{2,3}EENNE
{1,4}ENEEN
{1,3}ENENE
{1,2}ENNEE
{0,4}NEEEN
{0,3}NEENE
{0,2}NENEE
{0,1}NNEEE

Facts & Assumptions

Given: the step set {E,N}.

[L1]

The number of monotone paths from (0,0) to (m,n) is (m+nn), and the same translation formula holds for arbitrary endpoints (∣M((0,0),(m,n))∣=(m+nn)).

Verification

technique · direct
1.1given

Every word in the table has length 5 with three E steps and two N steps, so each is a monotone path from (0,0) to (3,2).

1.2L1

Every monotone path from (0,0) to (3,2) has length 5 with exactly two N steps, so its step word appears in the table at the row indexed by those two positions.

2.1L1step 1.1step 1.2

The table has ten rows, which agrees with [L1] because (52)=10.

3.1L1∎

The boundary cases of the theorem are visible too: there is one path from (0,0) to (3,0), namely EEE, and one path from (0,0) to (0,0), 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.
ExampleConstruction: Literature-sourcedVerification: AI-adaptedprecheck passaudited 2026-08-26Open item page →

The five Dyck paths of semilength 3, with their height functions

Example

The five Dyck paths of semilength 3 are:

step wordheight sequence
UUUDDD0,1,2,3,2,1,0
UUDUDD0,1,2,1,2,1,0
UUDDUD0,1,2,1,0,1,0
UDUUDD0,1,0,1,2,1,0
UDUDUD0,1,0,1,0,1,0

Facts & Assumptions

Given: the Dyck paths of semilength 3.

[L1]

C3 is the number of Dyck paths of semilength 3 (The Catalan number Cn:=∣Dn∣).

[L2]

The closed formula gives (3+1)C3=(63) ((n+1) Cn=(2nn)).

Verification

technique · direct
1.1given

Every word in the table has three up steps, three down steps, starts at height 0, ends at height 0, and never drops below height 0, so every row is a Dyck path of semilength 3.

2.1step 1.1

Any Dyck path of semilength 3 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.

3.1L1L2step 2.1∎

The table therefore has all the Dyck paths of semilength 3, so [L1] gives C3=5. This matches [L2], since (63)=20 and therefore 4C3=20.

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.
ExampleConstruction: AI-generatedVerification: AI-adaptedprecheck passjudge pass (deepseek-v4-pro + gpt-5.6-terra)audited 2026-08-26Open item page →

The five Dyck paths, balanced bracket words, binary trees and pentagon triangulations at semilength 3

Example

At semilength 3, the three Catalan families on this page match as follows.

Dyck pathbalanced bracketsbinary treepentagon triangulation
UDUDUD()()(){ε,0,1,10,11,110,111}{{2,5},{3,5}}
UDUUDD()(()){ε,0,1,10,100,101,11}{{2,4},{2,5}}
UUDDUD(())(){ε,0,00,01,1,10,11}{{1,3},{3,5}}
UUDUDD(()()){ε,0,00,01,010,011,1}{{1,4},{2,4}}
UUUDDD((())){ε,0,00,000,001,01,1}{{1,3},{1,4}}

Facts & Assumptions

Given: the five Dyck paths of semilength 3 displayed in the table above.

[L1]

Balanced bracket words are exactly the words with equal totals and nonnegative prefix balance (Bn is exactly the set of words of length 2n over {(,)} in which every prefix has at least as many ( as ) and the totals are equal); under (↦U, )↦D, these are exactly the step words of Dyck paths (Dyck paths of semilength n).

[L2]

There is a bijection from the binary trees of size 3 to the Dyck paths of semilength 3 (There is a bijection Tn→Dn for every n).

[L3]

There is a bijection from the binary trees of size 3 to the triangulations of the labelled pentagon (There is a bijection Tn→Pn+2 for every n∈N).

Verification

technique · direct
1.1L1

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.

1.2L2

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.

2.1L3step 1.2∎

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.
ExampleConstruction: AI-generatedVerification: AI-adaptedprecheck passaudited 2026-08-26Open item page →

The reflection bijection applied to UDDUDU

Example

Take the diagonal path with step word UDDUDU. Its height sequence is

0,1,0,−1,0,−1,0.

The first visit to the level −1 is at index 3. Reflecting the initial segment through the line y=−1 changes the first four heights to

−2,−3,−2,−1,

so the reflected path has step word DUUUDU and runs from (0,−2) to (6,0).

Facts & Assumptions

Given: the path UDDUDU.

[L1]

If a>c and b>c, reflection sends a path from (0,a) to (n,b) that first visits level c at τ to the path with heights h′(i)=2c−h(i) for i≤τ and h′(i)=h(i) for i≥τ; this is a bijection onto the paths from (0,2c−a) to (n,b) (Reflecting the initial segment at the first visit to level c).

Verification

technique · direct
1.1given

The path UDDUDU starts at height 0, ends at height 0, and first reaches the level −1 at the index 3.

2.1L1step 1.1

Reflecting the heights 0,1,0,−1 through the line y=−1 gives −2,−3,−2,−1, so the reflected step word is DUUUDU; applying the same reflection to DUUUDU returns UDDUDU.

3.1L2∎

The count behind the example agrees with [L2]: there are (63)=20 diagonal paths from (0,0) to (6,0), (64)=15 of them touch the level −1, and the remaining 5 are the Dyck paths of semilength 3.

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.
ExampleConstruction: AI-generatedVerification: AI-adaptedprecheck passaudited 2026-08-26Open item page →

The ballot problem with three votes for A and two for B

Example

The ten orderings of three A votes and two B votes are:

AAABB, AABAB, AABBA, ABAAB, ABABA, ABBAA, BAAAB, BAABA, BABAA, BBAAA.

Exactly two of them, AAABB and AABAB, keep candidate A strictly ahead after every vote.

Facts & Assumptions

Given: p=3 and q=2.

[L2]

For p≥q≥0, if N counts the orderings in which the first candidate is never behind, then (p+1)N=(p−q+1)(p+qq) (The weak ballot count: for p≥q≥0 the orderings in which the first candidate is never behind satisfy (p+1) N=(p−q+1)(p+qq)).

Verification

technique · direct
1.1given

The ten words displayed above are exactly the words of length 5 with three A letters and two B letters, so there are (53)=10 of them.

2.1step 1.1

Reading the lead A−B after each vote shows that only AAABB and AABAB stay strictly positive at every stage, so N=2.

3.1L1step 2.1

This agrees with [L1], since (3+2)N=(3−2)(53) reads 5N=10 and therefore N=2.

4.1L2∎

For the weak form with p=q=2, the orderings AABB and ABAB are exactly the ones in which A is never behind, so the weak count is 2; that is C2 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.
ExampleConstruction: AI-generatedVerification: AI-adaptedprecheck passjudge pass (deepseek-v4-pro + gpt-5.6-terra)audited 2026-08-26Open item page →

The cycle lemma on the word (−1,+1,+1,−1,+1,−1,+1)

Example

Let

a=(−1,+1,+1,−1,+1,−1,+1),

a word of length 7 and weight 1. Its seven cyclic shifts and their partial sums are:

shiftpartial sums
(−1,+1,+1,−1,+1,−1,+1)−1,0,1,0,1,0,1
(+1,+1,−1,+1,−1,+1,−1)1,2,1,2,1,2,1
(+1,−1,+1,−1,+1,−1,+1)1,0,1,0,1,0,1
(−1,+1,−1,+1,−1,+1,+1)−1,0,−1,0,−1,0,1
(+1,−1,+1,−1,+1,+1,−1)1,0,1,0,1,2,1
(−1,+1,−1,+1,+1,−1,+1)−1,0,−1,0,1,0,1
(+1,−1,+1,+1,−1,+1,−1)1,0,1,2,1,2,1

Facts & Assumptions

Given: the two words above and the weight-two word (+1,+1,+1,−1).

[L1]

If every letter of a length-m integer word is at most 1 and its weight is 1, then exactly one starting index gives a cyclic shift whose nonempty partial sums are all positive (The cycle lemma (Dvoretzky–Motzkin): if every ai≤1 and ∥a∥=k≥1, then exactly k of the m cyclic shifts of a have all partial sums positive).

[L2]

The cycle-lemma Catalan count gives (2⋅3+1)C3=(73) ((2n+1) Cn=(2n+1n), a second derivation of the Catalan count).

Verification

technique · direct
1.1given

In the table, only the second row has all partial sums strictly positive, so the word a has exactly one good shift.

2.1step 1.1

Deleting the leading +1 from that good shift gives (+1,−1,+1,−1,+1,−1), which is the Dyck word UDUDUD of semilength 3.

2.2L1L2step 1.1

This agrees with [L1] and [L2]: [L1] predicts one good shift, and [L2] reads 7C3=(73)=35, so 7⋅5=35.

3.1given∎

The weight-two word (+1,+1,+1,−1) has exactly the two good shifts (+1,+1,+1,−1) and (+1,+1,−1,+1), 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.
ExampleConstruction: AI-generatedVerification: AI-adaptedprecheck passaudited 2026-08-26Open item page →

The Catalan numbers through C6, from the recurrence and from the closed formula

Example

The Catalan numbers through C6 are:

nfrom the recurrence(2nn)from (n+1)Cn=(2nn)
0111
1121
2262
35205
4147014
54225242
6132924132

Facts & Assumptions

Given: the Catalan recurrence and the closed formula.

[L1]

Cn+1=∑i=0nCiCn−i with C0=1 (Cn+1=∑i=0nCi Cn−i, with C0=1).

[L2]

(n+1)Cn=(2nn) ((n+1) Cn=(2nn)).

Verification

technique · direct
1.1L1

Starting from C0=1, the recurrence [L1] gives successively C1=1, C2=2, C3=5, C4=14, C5=42 and C6=132.

1.2given

The central binomial coefficients in the third column are (00)=1, (21)=2, (42)=6, (63)=20, (84)=70, (105)=252 and (126)=924.

2.1L2step 1.1step 1.2∎

Dividing the third column by n+1 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.
ExampleConstruction: AI-generatedVerification: AI-adaptedprecheck passaudited 2026-08-26Open item page →

All fourteen triangulations of the labelled hexagon

Example

Grouped by the split index k of For m≥3 and a triangulation T of the m-gon there is a unique k with 1<k<m such that {1,k} and {k,m} are both chords of T or sides, and T splits along k, the triangulations of the labelled hexagon are:

ktriangulations
2{{2,4},{2,5},{2,6}}, {{2,4},{2,6},{4,6}}, {{2,5},{2,6},{3,5}}, {{2,6},{3,5},{3,6}}, {{2,6},{3,6},{4,6}}
3{{1,3},{3,5},{3,6}}, {{1,3},{3,6},{4,6}}
4{{1,3},{1,4},{4,6}}, {{1,4},{2,4},{4,6}}
5{{1,3},{1,4},{1,5}}, {{1,3},{1,5},{3,5}}, {{1,4},{1,5},{2,4}}, {{1,5},{2,4},{2,5}}, {{1,5},{2,5},{3,5}}

Facts & Assumptions

Given: the labelled hexagon with vertices 1,…,6.

[L2]

The number of triangulations of the labelled hexagon is C4=14 (∣Pn+2∣=Cn, The Catalan number Cn:=∣Dn∣).

Verification

technique · direct
1.1given

Every diagonal set in the table has three pairwise non-crossing diagonals, so each row is a triangulation of the hexagon.

2.1L1step 1.1

The four groups are disjoint because the split index k of [L1] is unique, and the group sizes are 5, 2, 2 and 5, so the table contains 14 triangulations altogether.

3.1L2step 2.1∎

This agrees with [L2], since C4=14. The same grouped count is the recursion ∣P2∣∣P5∣+∣P3∣∣P4∣+∣P4∣∣P3∣+∣P5∣∣P2∣=5+2+2+5.

Remarks

  • The two extreme groups are the fan triangulations based at the vertices 2 and 5, together with the four further triangulations on the corresponding pentagons.
ExampleConstruction: AI-generatedVerification: AI-adaptedprecheck passaudited 2026-08-26Open item page →

The first coefficients of the Catalan generating function

Example

Up to degree 5,

C(x)=1+x+2x2+5x3+14x4+42x5+O(x6),

so

1−2xC(x)=1−2x−2x2−4x3−10x4−28x5+O(x6).

Facts & Assumptions

Given: the Catalan generating function C(x).

[L1]

C(x)=1+xC(x)2 (C(x)=1+x C(x)2).

[L3]

(1−4x)1/2=1−2x−2x2−4x3−10x4−28x5+O(x6) ([xk](1−4x)1/2=−2k(2k−2k−1) for k≥1, and 1 for k=0).

Verification

technique · direct
1.1L1

Using the coefficients 1,1,2,5,14,42, the Cauchy product gives C(x)2=1+2x+5x2+14x3+42x4+132x5+O(x6), so 1+xC(x)2 agrees with C(x) through degree 5, as [L1] says it should.

1.2L3

The displayed coefficients of 1−2xC(x) are exactly those of [L3], so the closed form predicts 1−2xC(x)=(1−4x)1/2 modulo x6.

2.1L2step 1.2∎

Squaring 1−2x−2x2−4x3−10x4−28x5 gives 1−4x modulo x6, 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.
ExampleConstruction: AI-generatedVerification: AI-adaptedprecheck passjudge pass (deepseek-v4-pro + gpt-5.6-terra)audited 2026-08-26Open item page →

A two-by-two determinant counting non-intersecting path pairs

Example

At n=1, the two monotone paths from (1,0) to (2,1) are EN and NE, and the two monotone paths from (0,1) to (1,2) are again EN and NE.

Verification

technique · direct
1.1given

The four ordered pairs of paths are (EN,EN), (EN,NE), (NE,EN) and (NE,NE).

2.1step 1.1

Exactly one of them, (NE,EN), meets at the lattice point (1,1); the other three are non-intersecting.

3.1L1step 2.1∎

Therefore the direct count is 3, which matches [L1] because (21)2−(22)(20)=22−1⋅1=3.

Remarks

  • This is the smallest instance in which the determinant count differs from the product of the individual path counts.
ExampleConstruction: AI-generatedVerification: AI-adaptedprecheck passjudge pass (deepseek-v4-pro + gpt-5.6-terra)audited 2026-08-26Open item page →

The tail-swap involution on a concrete intersecting pair

Example

Take the identity system with

P1:(1,0)→(2,1),P2:(0,1)→(1,2),

where P1 has step word NE and P2 has step word EN. The two paths meet at the lattice point (1,1).

Facts & Assumptions

Given: the intersecting pair above.

[L1]

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

technique · direct
1.1given

The first common point of P1 and P2 is (1,1), reached after the first step in each path.

2.1L1step 1.1

Splitting at (1,1), the prefixes are N and E, and the tails are E and N; swapping the tails therefore gives the new pair NN from (1,0) to (1,2) and EE from (0,1) to (2,1).

3.1L1step 2.1∎

The new pair carries the transposed endpoint assignment, and applying the same tail swap at (1,1) 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 statementConstruction: AI-adaptedVerification: AI-adaptedprecheck passjudge pass (deepseek-v4-pro + gpt-5.6-terra)audited 2026-08-26Open item page →

FALSE: the quotient (2nn)/(n+1) is an integer only for small n

Statement

False claim: the quotient

(2nn)n+1

is an integer only for small values of n.

Facts & Assumptions

Given: a natural number n.

[L1]

(n+1)Cn=(2nn) ((n+1) Cn=(2nn)).

[L2]

n+1 divides (2nn) for every n (n+1 divides (2nn) for every n∈N).

Refutation

technique · direct
1.1L1

The first values of the quotient are 1,1,2,5,14,42,132 at n=0,1,2,3,4,5,6 respectively, so the quotient keeps producing integers beyond the first few cases.

2.1L1L2∎

More generally, [L1] rewrites the quotient as Cn for every natural number n, and Cn is a natural number by definition. So the quotient is an integer for every n, 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 Cn, no separate arithmetic argument is needed.
False statementConstruction: AI-adaptedVerification: AI-adaptedprecheck passjudge pass (deepseek-v4-pro + gpt-5.6-terra)audited 2026-08-26Open item page →

FALSE: the monotone paths from (0,0) to (n,n) staying weakly below the diagonal are exactly half of all monotone paths

Statement

False claim: among the monotone paths from (0,0) to (n,n), exactly half stay weakly below the diagonal y=x.

Facts & Assumptions

Given: the case n=2.

[L1]

Replacing U by N and D by E gives a bijection in which diagonal height is y−x for the corresponding monotone path (The two step sets describe the same objects: U↦N, D↦E is a bijection matching the diagonal y=x with the level 0).

[L2]

The total number of monotone paths from (0,0) to (n,n) is (2nn) (∣M((0,0),(m,n))∣=(m+nn)).

[L3]

(n+1)Cn=(2nn) ((n+1) Cn=(2nn)).

Refutation

technique · direct
1.1L2

At n=2 there are (42)=6 monotone paths from (0,0) to (2,2) by [L2].

1.2given

The weakly-below ones are exactly EENN and ENEN, so there are 2 of them.

2.1step 1.1step 1.2L1L3∎

Half of the total would be 3, not 2, so the claim is false already at n=2. 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 Cn, not (2nn)/2. At n=2 that is C2=2, exactly as the two listed paths show.
False statementConstruction: AI-adaptedVerification: AI-adaptedprecheck passjudge pass (deepseek-v4-pro + gpt-5.6-terra)audited 2026-08-26Open item page →

FALSE: the Catalan numbers satisfy a constant-coefficient linear recurrence

Statement

False claim: the sequence (Cn)n≥0 of Catalan numbers satisfies a linear recurrence with constant coefficients.

Facts & Assumptions

Given: the Catalan numbers and their generating function.

[L1]

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).

[L3]

The Catalan numbers satisfy Cn+1=∑i=0nCiCn−i with C0=1 (Cn+1=∑i=0nCi Cn−i, with C0=1).

Refutation

technique · direct
1.1L1assume-contra

If the false claim were true, [L1] would make the Catalan generating function rational.

2.1L2step 1.1discharge-contradiction

That contradicts [L2].

3.1L3∎

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.
CounterexampleConstruction: AI-generatedVerification: AI-adaptedprecheck passjudge pass (deepseek-v4-pro + gpt-5.6-terra)audited 2026-08-26Open item page →

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

f:P6⟶T4

by sending a triangulation T of the labelled hexagon to the canonical comb tree determined only by its closing-side split index k:

  • if k=2, take the tree whose left subtree has size 0 and right subtree has size 3;
  • if k=3, take the tree whose subtrees have sizes 1 and 2;
  • if k=4, take the tree whose subtrees have sizes 2 and 1;
  • if k=5, take the tree whose left subtree has size 3 and right subtree has size 0;

and in every case fill each nonzero subtree by the right comb of the required size.

Facts & Assumptions

Given: the two triangulations T1={{2,4},{2,5},{2,6}},T2={{2,6},{3,5},{3,6}}.

[L2]

A function is injective when equal outputs force equal inputs (Injection, surjection, bijection).

Counterexample

technique · direct
1.1L1given

Both T1 and T2 are triangulations of the labelled hexagon, and both have the same closing-side split index k=2: the side {2,6} is present in each, and no index smaller than 2 is available.

2.1step 1.1

By the definition of f, both triangulations therefore map to the same canonical size-four comb tree, namely the tree with empty left subtree and right comb of size 3. So f(T1)=f(T2).

3.1L2step 2.1∎

The input triangulations are distinct because {2,4}∈T1 but {2,4}∉T2. Hence equal outputs do not force equal inputs, so [L2] shows that f 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.
CounterexampleConstruction: AI-generatedVerification: AI-adaptedprecheck passjudge pass (deepseek-v4-pro + gpt-5.6-terra)audited 2026-08-26Open item page →

The step set {(1,1),(1,−2)} breaks the reflection argument

Statement refuted

The reflection argument on the A page depends on the step set {U,D} with height changes ±1. It does not extend unchanged to arbitrary step sets.

Facts & Assumptions

Given: the step set S={(1,1),(1,−2)} and the level 0.

[L1]

A diagonal path with h(0)≤c≤h(n) or h(n)≤c≤h(0) meets the level c somewhere (A diagonal path with h(0)≤c≤h(n) or h(n)≤c≤h(0) satisfies h(i)=c for some i).

[L2]

For diagonal paths with steps (1,1) and (1,−1) whose endpoints lie above the level c and which first visit c at some index τ, the initial segment up to τ may be reflected across the line y=c to obtain the bijection of Reflecting the initial segment at the first visit to level c.

[L3]

For diagonal paths with steps (1,1) and (1,−1) 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 (0,a) to (n,b) staying strictly above level c are counted by a difference of two binomial coefficients).

Counterexample

technique · direct
1.1L1given

The one-step path from (0,1) to (1,−1) with step (1,−2) starts above the level 0 and ends below it, but its heights are only 1 and −1, so it never has height 0. This path is outside [L1]'s diagonal-step hypothesis and shows that the conclusion of [L1] fails if that hypothesis is dropped.

2.1L2step 1.1

Because the path of step 1.1 never visits the level 0, the first-visit reflection of [L2] is undefined on it. So the bijection on which the reflection count rests is absent.

3.1L3step 2.1∎

The naive analogue of the count fails too. For these same steps there is no path from (0,1) to (2,1), so the total count is 0 and the count of paths staying strictly above 0 is also 0; but there is one path from (0,−1) to (2,1), namely UU. Illegally extending the subtraction pattern of [L3] would therefore give 0−1=−1, 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