Alphabeta Math
Session-authored (Fable 5 assisted)
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 Qx 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 NZ, 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 SZ×Z (The cardinality A of a finite set); its elements are steps.

Definition. Let nN and PZ×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(i1)S for every i with 1in. 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,,n1}S, and Sn denotes the set of them (Finite words, contiguous factors, avoidance and proper-prefix states). The step word of a path vLS(P;n) is the word wSn with

wi1:=v(i)v(i1)(1in),

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

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

vw(i):=P+j<iwj(0in),

the sum being the finite product of The product g0g1gn1 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(i1)+wi1(1in),

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

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 vv 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 n1; 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, PZ×Z and nN. 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)=Sn,

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 PZ×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(i1)S for every i with 1in; its step word is the word wSn with wi1=v(i)v(i1); and the path traced by wSn from P satisfies vw(0)=P and vw(i)=vw(i1)+wi1 for 1in (Lattice paths, step sets and step words).

[L1]

For f:AB: f is a bijection if and only if there is a function g:BA with gf=ΔA and fg=ΔB, and such a g is then unique (f:AB is a bijection if and only if there is a function g:BA with gf=ΔA and fg=ΔB; such a g is unique, equals the inverse relation f1, and is itself a bijection).

[L2]

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

[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 nN (The principle of mathematical induction).

Proof

technique · direct
1.1

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

F1
2.1

Given wSn, 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 vLS(P;n) with w=Φ(v), both v and vw take the value P at the index 0 and both satisfy u(i)=u(i1)+wi1 for 1in, so the set of indices at which they agree contains 0 and contains i whenever it contains i1, whence they agree throughout and vw=v. Thus wvw is a two-sided inverse of Φ and Φ is a bijection.

F1L1L3step 1.1
3.1

Since S is finite and {0,,n1} is finite with n elements, Sn is finite with Sn=Sn, 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 n1 both sides are 0.

L2step 2.1

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 vM((a,b);) have step word w, and for 0i let

ν(i):={jN: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))(0i).

Indeed ν(0)=0 and v(0)=(a,b); and if the formula holds at i1 then v(i)=v(i1)+wi1, where wi1=E gives ν(i)=ν(i1) and raises the first coordinate by 1, while wi1=N gives ν(i)=ν(i1)+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 iiν(i) are both nondecreasing.

(b) The endpoint determines the length and the letter count. A path vM((a,b);) satisfies v()=(c,d) if and only if ν()=db and =(ca)+(db).

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

Degenerate rectangles are included. Under the existence hypotheses ac and bd, 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,nN 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 ac and bd in Z and m,nN are the natural numbers with m=ca and n=db, then

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

Facts & Assumptions

Given: natural numbers m and n, and integers ac, bd 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 vM((a,b);) with step word w and ν(i)={jN:j<i, wj=N}, one has v(i)=(a+iν(i), b+ν(i)) for 0i; hence v()=(c,d) if and only if ν()=db and =(ca)+(db) (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 kN, [A]k is the set of k-element subsets of A, it is finite, and [A]k=(Ak) (The set [A]k of k-element subsets and the binomial coefficient (nk):=[n]k).

[L3]
[L4]

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

Proof

technique · direct
1.1

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.

F1F2L1
2.1

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

L2L3step 1.1construct
3.1

The set {0,,m+n1} 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.

L2L4step 2.1
4.1

For general endpoints, vv(a,b) is a bijection M((a,b),(c,d))M((0,0),(m,n)): subtracting a constant leaves every difference v(i)v(i1) unchanged, sends (a,b) to (0,0) and (c,d) to (m,n), and vv+(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.

L3L4step 3.1algebra

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 vW((0,a);n) and x(i) denotes the first coordinate of v(i) then x(0)=0 and x(i)=x(i1)+1 for 1in; induction on i (The principle of mathematical induction) gives x(i)=i. Hence

v(i)=(i, h(i))(0in)

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(i1){1,1}(1in),

and conversely every such h is the height function of exactly one vW((0,a);n): the word w with wi1=U when h(i)h(i1)=1 and wi1=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):={jN: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(0in).

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

Prescribing the endpoint. For bZ put

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

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

nban,

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

Levels. For cZ a diagonal path with height function h touches the level c when h(i)=c for some i with 0in; 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: UN, DE is a bijection matching the diagonal y=x with the level 0

Statement

Let u,dN 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,ud))M((0,0),(d,u))

from the diagonal paths of length n from (0,0) ending at height ud (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)=yixi(0in).

Consequently, for every cZ and every i, the height inequality h(i)c holds if and only if yixic; 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.1

The letter map λ:{U,D}{E,N} with λ(U)=N and λ(D)=E has the two-sided inverse NU, ED, 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 ud is carried to a monotone path from (0,0) ending at (d,u), and conversely.

F1F2
2.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.

L1L2step 1.1
3.1

For 0in 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 yixi=ν(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.

F1F2step 1.1algebra

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+ba, and 0 when no such u exists

Statement

Let a,bZ and nN, 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+ba and nban, and let uN be the natural number with 2u=n+ba; then 0un 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 ba.

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(i1){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+ba and nban (Diagonal lattice paths with steps U=(1,1) and D=(1,1), and the height function).

[L1]

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

[L2]

For m,nN the set M((0,0),(m,n)) is finite with M((0,0),(m,n))=(m+nn) (M((0,0),(m,n))=(m+nn)).

[L3]
[L4]

If A is finite and f:AB 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.1

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

F1L3L4
2.1

If 2 does not divide n+ba, or if ba 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.

F1L4step 1.1
2.2

If the two conditions hold, let u be the natural number with 2u=n+ba and put d:=nu. From 2u=n+ba and u+d=n one gets ud=ba, and 0un because 0n+ba2n.

F1step 1.1algebra
3.1

By step 2.2 and [L1] the set W((0,0),(n,ba))=W((0,0),(n,ud)) 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 ba=n they force u=n, and the one all-up path is counted by (nn)=1.

L1L2L4L5step 1.1step 2.1step 2.2

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+ba exists exactly under the stated hypotheses, and writing 12(n+ba) 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)ch(n) or h(n)ch(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 cZ. If

h(0)ch(n)orh(n)ch(0),

then h(i)=c for some i with 0in; 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(i1){1,1} for 1in, and v touches the level c when h(i)=c for some i with 0in (Diagonal lattice paths with steps U=(1,1) and D=(1,1), and the height function).

[L1]

Every nonempty subset SN has a least element: there is S with s for all sS (The well-ordering principle).

Proof

technique · cases
1.1

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

F1L1assume-case up
1.2

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

F1L1assume-case down
2.1

In the case h(0)ch(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)<ch(τ), whence h(τ)h(τ1) is positive and therefore equal to 1, giving h(τ)=h(τ1)+1c and so h(τ)=c.

F1step 1.1
2.2

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

F1step 1.2
3.1

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.

step 2.1step 2.2cases-exhaustive

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 cZ, let nN, and let a,bZ with a>c and b>c. Write T for the set of diagonal paths vW((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 vT 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):={2ch(i),0iτ,h(i),τin.

The two clauses agree at i=τ, and

ρ:TW((0,2ca),(n,b))

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

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(i1){1,1} for 1in; it touches the level c when h(i)=c for some in (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)ch(n) or h(n)ch(0), then h(i)=c for some i with 0in (A diagonal path with h(0)ch(n) or h(n)ch(0) satisfies h(i)=c for some i).

[L2]
[L3]

Every nonempty subset SN has a least element: there is S with s for all sS (The well-ordering principle).

Proof

technique · direct
1.1

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 in 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 2ch(τ)=c and the second gives h(τ)=c; it satisfies h(0)=2cα and h(n)=h(n)=b; and for 1iτ one has h(i)h(i1)=(h(i)h(i1)){1,1} while for τ<in one has h(i)h(i1)=h(i)h(i1){1,1}. So h is the height function of a diagonal path of length n from (0,2cα) ending at b.

F1L3construct
1.2

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

F1L1
2.1

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)=2ch(i)c, while h(τ)=c.

step 1.1algebra
3.1

Applying step 1.1 with α=a shows ρ maps T into W((0,2ca),(n,b)), and applying it with α=2ca, which is legitimate by step 1.2, shows the same recipe maps W((0,2ca),(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(2ch(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].

L2step 1.1step 1.2step 2.1algebra

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 cZ, let nN and let a,bZ with a>c and b>c. Write A for the set of diagonal paths vW((0,a),(n,b)) that stay strictly above the level c, that is h(i)>c for every i with 0in (Diagonal lattice paths with steps U=(1,1) and D=(1,1), and the height function).

  1. A is finite and

    A+W((0,2ca),(n,b))=W((0,a),(n,b)).

  2. Suppose 2 divides n+ba and ban, and let uN be the natural number with 2u=n+ba. Then u+ac is a natural number and

    A+(nu+ac)=(nu),soA=(nu)(nu+ac).

  3. If 2 does not divide n+ba, or ba<n, or ba>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(i1){1,1}; the path touches the level c when h(i)=c for some in, and stays strictly above c when h(i)>c for every in; 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)ch(n) or h(n)ch(0), then h(i)=c for some i with 0in (A diagonal path with h(0)ch(n) or h(n)ch(0) satisfies h(i)=c for some i).

[L3]

If A is finite and f:AB 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 vW((0,a),(n,b)) that touch the level c onto W((0,2ca),(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+ba, and 0 when no such u exists).

Proof

technique · direct
1.1

A path vW((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)ca, the height at index 0, so [L1] gives an index ik 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.

F1L1
2.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)).

L2L5L6step 1.1
3.1

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

L3L4step 2.1
4.1

For clause 2, put u:=u+ac, a natural number because ac1; then 2u=n+ba+2(ac)=n+b(2ca), so u is the natural number attached by [L5] to the endpoint data of W((0,2ca),(n,b)). If un then [L5] gives W((0,2ca),(n,b))=(nu); if u>n then b(2ca)>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 (0ac)=0 since ac1.

L3L5L7step 3.1algebra

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>q0 the orderings in which the first candidate is strictly ahead throughout satisfy (p+q)N=(pq)(p+qp)

Statement

Let p,qN 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 pq (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):={vW((0,0),(p+q,pq)):h(i)1 for 1ip+q},N:=B(p,q).

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

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

Facts & Assumptions

Given: natural numbers p>q, so p1 and p+q1; 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(i1){1,1} for 1in; 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 in (Diagonal lattice paths with steps U=(1,1) and D=(1,1), and the height function).

[L1]

For cZ, nN and a>c, b>c: if 2 divides n+ba and ban, and u is the natural number with 2u=n+ba, 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+ac)=(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 nN, and σ(n)!=n!σ(n) (The factorial n! and the falling factorial nk, defined by recursion in N).

[L4]

For all m,n,kN with k0: if mk=nk then m=n (Cancellation for multiplication by a nonzero factor).

[L6]
[L7]

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

Proof

technique · direct
1.1

For vB(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.

F1
1.2

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

L2L3L4L5algebra
2.1

Shifting the index by one is a bijection from B(p,q) onto the set A of paths in W((0,1),(p+q1,pq)) that stay strictly above the level 0: given h, put h(i):=h(i+1) for 0ip+q1, so h(0)=1 by step 1.1, h(p+q1)=pq, 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(i1) for 1ip+q, which has h(1)h(0)=1 and the remaining differences those of h, ends at pq, and has h(i)1 for i1. The two constructions undo one another, so [L6] and [L7] apply and N=A.

F1L6L7step 1.1construct
3.1

Apply [L1] with n=p+q1, a=1, b=pq and c=0: the hypotheses a>c and b>c hold because p>q, and n+ba=2p2 is even with 2(p1)=n+ba, so u=p1 and u+ac=p; also ban since n+ba0. Hence N+(p+q1p)=(p+q1p1).

L1step 2.1algebra
4.1

Multiplying step 3.1 by m=p+q and substituting the two identities of step 1.2 gives mN+q(mp)=p(mp), and since qp this is exactly (p+q)N=(pq)(p+qp). At q=0 it reads pN=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.

L4L5step 1.2step 3.1algebra

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)=n1F of a field) and dividing by the nonzero real p+q turns it into the familiar pqp+q(p+qp); the multiplicative form is the one proved, and the division is legitimate only because p+q0, which needs p>q or at least p+q1.

  • Why p>q and not pq. 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 pq0 the orderings in which the first candidate is never behind satisfy (p+1)N=(pq+1)(p+qq)

Statement

Let p,qN with pq. Write

B(p,q):={vW((0,0),(p+q,pq)):h(i)0 for 0ip+q},N:=B(p,q),

the diagonal paths of length p+q from the origin ending at height pq 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=(pq+1)(p+qq).

Facts & Assumptions

Given: natural numbers pq, 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(i1){1,1} for 1in; 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 pq whose height is at least 1 at every index from 1 to p+q is finite, and its cardinality N satisfies (p+q)N=(pq)(p+qp) (Bertrand's ballot problem: for p>q0 the orderings in which the first candidate is strictly ahead throughout satisfy (p+q)N=(pq)(p+qp)).

[L2]

For n,kN with kn: (nk)k!(nk)!=n! in N, and (nk)=(nnk) ((nk)k!(nk)!=n! for kn; hence (nk)k!=nk, the quotient n!/(k!(nk)!) is a natural number, and (nk)=(nnk)).

[L3]

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

[L4]

For all m,n,kN with k0: if mk=nk then m=n (Cancellation for multiplication by a nonzero factor).

[L5]
[L6]

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

Proof

technique · direct
1.1

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 pq+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(i1)+1 for 1ip+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 h0, and h~(p+q+1)=pq+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 0ip+q gives h(0)=0, h0 and h(p+q)=pq. The two constructions undo one another, so [L5] and [L6] give a bijection and equal cardinalities.

F1L5L6construct
1.2

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 kn and nk=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.

L2L3L4algebra
2.1

Apply [L1] with p=p+1 and q=q, which is legitimate because p+1>q follows from pq: 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=(pq+1)(p+q+1p+1).

L1step 1.1algebra
3.1

Multiplying step 2.1 by p+1 and substituting the first identity of step 1.2 gives (p+1)(p+q+1)N=(pq+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=(pq+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.

L2L4step 1.2step 2.1algebra

Remarks

  • Why the extra up-step and not a reflection. The weak condition h0 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 pq+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 nN. 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 0i2n (Diagonal lattice paths with steps U=(1,1) and D=(1,1), and the height function). Write

Dn:={vW((0,0),(2n,0)):h(i)0 for 0i2n}

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 h0, 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 i2n, 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 nN 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 0i2n (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(i1){1,1} for 1i (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 BA is finite and AB=AB (The set AB of functions BA between finite sets is finite, with AB=AB).

[L3]

A subset of a finite set is finite, and a subset S of a finite set A has SA (A subset of a finite set is finite, with BA, 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 nN (The principle of mathematical induction).

Proof

technique · direct
1.1

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.

L1L2
1.2

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 h0 throughout and h(2n)=0.

F1F2L4construct
2.1

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.

F1L3step 1.1step 1.2

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 nN the Catalan number Cn is the number of Dyck paths of semilength n:

Cn:=DnN

(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).

Cn1 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 nN, 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 0i2n; 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,bZ, N and a>c, b>c: if 2 divides +ba and ba, and uN satisfies 2u=+ba, then u+acN, the set A of paths in W((0,a),(,b)) staying strictly above the level c is finite, and A+(u+ac)=(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.1

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.

F1
2.1

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

F2L1step 1.1algebra
3.1

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.

F1F2L2step 2.1algebra

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 nN, 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 mN, and σ(m)!=m!σ(m) (The factorial n! and the falling factorial nk, defined by recursion in N).

[L4]

For all x,y,kN with k0: if xk=yk then x=y (Cancellation for multiplication by a nonzero factor).

[L5]

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

Proof

technique · direct
1.1

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

L1L2L3L4algebra
2.1

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.

F1L3L5step 1.1algebra

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)=n1F 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 nN

Statement

For every nN the integer n+1 divides (2nn) (Divisibility in Z: da 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=DnN (The Catalan number Cn:=Dn).

[L1]

For d,aZ, d divides a when a=dq for some qZ (Divisibility in Z: da 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.1

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.

F1F2
2.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.

L1L2step 1.1

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 m1, and a word of length m over a set X is a function a from {0,1,,m1} to X, written a=a0a1am1 (Finite words, contiguous factors, avoidance and proper-prefix states).

Remainders. For every jZ there is exactly one pair (q,r) of integers with j=qm+r and 0r<m (Division with remainder for any nonzero divisor: for aZ and b0 there are unique q,rZ with a=qb+r and 0r<b, whose bound 0r<m is 0r<m here because m1, The absolute value a of an integer). Write jmodm:=r for that remainder, so 0jmodm<m for every integer j, including negative j.

Cyclic shifts. For jZ 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)modm(0i<m).

Since (i+j)modm lies in {0,,m1} this is again a word of length m, and σja begins at the position jmodm 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 g0g1gn1 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:ZZ by

Sa(j):=qa+i<raiwhere j=qm+r, 0r<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 0jm 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 jZ: if j=qm+r with 0r<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(j1)=a(j1)modm for every jZ. Write j1=qm+r with 0r<m, so (j1)modm=r and Sa(j1)=qa+i<rai. If r+1<m then j=qm+(r+1), so Sa(j)=qa+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 ai<m1ai, which is am1=ar by the same clause applied at r=m1.

Remarks

  • The shift index is a position, not a rotation count in the other direction. σja reads a starting at position jmodm, 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 ai1 and a1 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 m1, 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,kZ and aXm.
  2. σja=σja whenever jj(modm). Hence [j]ma:=σ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 xX 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 m1, and words of length m over X.

[F1]

(σja)i=a(i+j)modm for 0i<m, where jmodm is the unique r with j=qm+r and 0r<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×XX with ex=x and (gh)x=g(hx) for all g,hG and xX (Left group actions, transitive actions, and faithful actions).

[L2]

[j]m=[j]m holds exactly when jj(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:NM, 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:AB is a bijection then B is finite and B=A (The cardinality A of a finite set).

[L6]

Proof

technique · direct
1.1

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

F1algebra
2.1

The map πj:i(i+j)modm is a permutation of {0,,m1}: the map i(ij)modm is a two-sided inverse of it, since by step 1.1 both composites send i to imodm, which is i for 0i<m.

F1L6step 1.1
2.2

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

F1step 1.1
2.3

Clause 2 holds: if jj(modm) then (i+j)modm=(i+j)modm for every i, since the two arguments differ by a multiple of m, so σja=σja; by [L2] the rule [j]ma:=σ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.

F1L1L2L3step 1.1
3.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.

F1L4L5step 2.1
4.1

The three clauses are established.

step 2.2step 2.3step 3.1

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 m1 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 Gx 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 m1 and a word a of length m of integers with gcd(a,m)=1.

[F1]

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

[F2]

Sa(j)=qa+i<rai for j=qm+r with 0r<m; Sa(0)=0; and Sa(j)Sa(j1)=a(j1)modm for every jZ (Cyclic shifts of an integer word and its periodic partial-sum function).

[L1]

σ0 is the identity, σj(σka)=σj+ka, and [j]ma:=σ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 nN (The principle of mathematical induction).

[L3]

For d,xZ, d divides x when x=dq for some qZ (Divisibility in Z: da 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 0r<m, and Z/m=m (For n1, every class in Z/n has one representative r with 0r<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:AB is a bijection then B is finite and B=A (The cardinality A of a finite set).

Proof

technique · direct
1.1

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

F1L1L8
2.1

For every jN 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)modm and Sa(j+1)=Sa(j)+ajmodm, and step 1.1 makes the two added letters equal, since (j+d)modm=((jmodm)+d)modm and jmodm lies in the index range; so the identity holds at j+1. Induction gives it for all j.

F1F2L2step 1.1
3.1

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

F2L2L3step 2.1
4.1

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

L3L4L5L6L7step 3.1
5.1

The map Z/mZ/ma sending [j]m to [j]ma is surjective by the definition of the orbit and injective: if [j]ma=[j]ma then applying the inverse of [j]m in the abelian group Z/m and using the action axioms of [L1] and [L9] gives [jj]ma=a, so [jj]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.

L1L8L9L10step 4.1

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]ma, 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 m1, let a be a word of length m of integers with a1, and let jZ (Cyclic shifts of an integer word and its periodic partial-sum function).

  1. For every r with 0rm,

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

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

Call jZ 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 m1, a word a of length m of integers with a1, and an integer j.

[F1]

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

[F2]

Sa(0)=0; Sa(j)Sa(j1)=a(j1)modm for every jZ; Sa(j+m)=Sa(j)+a for every jZ; 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 nN (The principle of mathematical induction).

[L2]

For x,bZ with b0 there is exactly one pair (q,r) of integers with x=qb+r and 0r<b (Division with remainder for any nonzero divisor: for aZ and b0 there are unique q,rZ with a=qb+r and 0r<b).

Proof

technique · direct
1.1

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)modm, 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).

F1F2L1
2.1

For every tN and every iZ one has Sa(i+tm)=Sa(i)+ta: at t=0 this is trivial, and the step is the quasiperiodicity clause of [F2]. Hence, if every partial sum of σja over 1rm 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 ij1=tm+r with 0r<m and t0 by [L2], since ij10; putting r:=r+1, so 1rm and i=j+r+tm, gives Sa(i)=Sa(j+r)+taSa(j+r)>Sa(j) because a1 and t0.

F2L1L2step 1.1
3.1

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

step 1.1step 2.1

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 a1: 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 ai1 and a1, the strict right minima form a two-sided increasing list on which Sa increases by exactly 1 at each successive index

Statement

Let m1 and let a be a word of length m of integers with ai1 for every i<m and with k:=a1 (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 jZ 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 MZ there is exactly one jR with Sa(j)=M. Writing ρ(M) for it, the map ρ:ZR is a bijection with Sa(ρ(M))=M.
  2. Succession. ρ is strictly increasing, and ρ(M+k)=ρ(M)+m for every MZ.
  3. Window count. For every j0Z the set R{j0,j0+1,,j0+m1} is finite with exactly k elements.

The hypothesis ai1 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 m1 and a word a of length m of integers with ai1 for every i<m and k=a1.

[F1]

Sa(0)=0; Sa(j)=i<jai for 0jm; Sa(j)Sa(j1)=a(j1)modm for every jZ; Sa(j+m)=Sa(j)+a for every jZ; and Sa(qm+r)=qa+i<rai for 0r<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 nN (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 SZ with an upper bound has a unique greatest element, and a nonempty SZ 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,bZ with b0 there is exactly one pair (q,r) of integers with x=qb+r and 0r<b (Division with remainder for any nonzero divisor: for aZ and b0 there are unique q,rZ with a=qb+r and 0r<b).

[L5]
[L6]

If A is finite and f:AB 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.1

The integers Sa(0),Sa(1),,Sa(m1) 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.

F1L1L2
1.2

For every MZ the set TM:={iZ:Sa(i)M} is nonempty. If M0 then Sa(0)=0M. If M<0 then put t:=M, a positive integer; induction on t with the quasiperiodicity clause of [F1] gives Sa(tm)=tk, and tkt because k1, so Sa(tm)t=M.

F1L1L2
2.1

Each TM has an upper bound. Let iTM and write i=qm+r with 0r<m by [L4], so Sa(i)=qk+Sa(r)qk+μ by [F1] and step 1.1, whence qkMμ. If q1 then qqk because k1, so qMμ; and if q0 then q0. So in either case qB, where B is the greater of 0 and Mμ, and therefore iBm+m1.

F1L2L4step 1.1
3.1

By [L3] the set TM has a greatest element jM. Every i>jM lies outside TM, so Sa(i)>MSa(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)=ajMmodm1 by hypothesis, while Sa(jM+1)>M since jM+1 is outside TM, so M<Sa(jM+1)Sa(jM)+1M+1 and hence Sa(jM)=M.

F1F2L3step 1.2step 2.1
4.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 jR with Sa(j)=M; write ρ(M) for it. Every jR 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 ZR. This is clause 1.

F2L5step 3.1
5.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 im>ρ(M), so the quasiperiodicity clause of [F1] gives Sa(i)=Sa(im)+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.

F1F2step 4.1
6.1

Fix j0Z. Iterating clause 2 by induction gives ρ(M+tk)=ρ(M)+tm for every tN, so the set {M:ρ(M)j0} is nonempty, taking t with tmj0ρ(0), and bounded below, since for t with ρ(0)tm<j0 every Mtk has ρ(M)ρ(tk)=ρ(0)tm<j0; let M0 be its least element by [L3]. Then ρ(M01)<j0ρ(M0), so ρ(M0+k)=ρ(M0)+mj0+m and ρ(M0+k1)=ρ(M01)+m<j0+m. Since ρ is strictly increasing and every member of R is some ρ(M), the members of R in {j0,,j0+m1} are exactly ρ(M0),,ρ(M0+k1), 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.

L1L3L6step 4.1step 5.1

Remarks

  • Why the hypothesis ai1 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 a1 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 ai1 and a=k1, 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 1rm, are strictly positive, and shifts are indexed by starting position, so σja begins at position jmodm of a (Cyclic shifts of an integer word and its periodic partial-sum function).

  1. Let m1 and let a be a word of length m of integers with ai1 for every i<m and a=k1. Then exactly k of the m indices j with 0j<m are such that σja has all its partial sums positive.
  2. Boxes and circles. Let p,n,μN with m:=p+n1, 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μn1 then exactly pμn of the m indices j with 0j<m are such that σja has all its partial sums positive.

Facts & Assumptions

Given: a natural number m1 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)modm; 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 a1 and jZ: every partial sum i<r(σja)i with 1rm 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 ai1 for every i<m and k=a1, then for every j0Z the set of strict right minima of Sa lying in {j0,,j0+m1} is finite with exactly k elements (If every ai1 and a1, 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:NM: 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 nN (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.1

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,,m1}.

L1
2.1

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

L2L5step 1.1
3.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 11 and μ1 for μ0, so if pμn1 then clause 1 applies with k=pμn and gives clause 2.

F1L3L4step 2.1

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 nN, 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 ai1 and a=k1, 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 aW all of whose partial sums i<rai, 1r2n+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)modm, 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+n1 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=k1 then exactly k of the m indices j with 0j<m are such that σja has all its partial sums positive (The cycle lemma (Dvoretzky–Motzkin): if every ai1 and a=k1, 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]ma:=σ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 xy given by y=gx for some gG 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 xy iff y=gx for some g, and hence partition the acted-on set).

[L5]

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

[L6]

If I is finite and (Ai)iI are pairwise disjoint finite sets, then iIAi is finite with iIAi=iIAi (The sum rule: a finite disjoint union is finite with AB=A+B and iIAi=iIAi, 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, iSc=Sc (The sum iSai over a finite index set, and its product form, clause (c)).

[L9]

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

[L10]
[L12]

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

[L13]

For all x,y,cN with c0: if xc=yc 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.1

The map sending aW to {j:0j<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).

L5L9L10
1.2

Every aW 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.

F3L1
1.3

The set G is in bijection with Dn, so G=Cn. A word aG has first partial sum a0>0, hence a0=1; deleting it leaves the word w=a1a2n of length 2n over {1,1}, whose partial sums are i<rwi=(i<r+1ai)10 and whose total is a1=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.

F1F2F3L9L10
2.1

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 0j<2n+1 are pairwise distinct.

L2L3L15step 1.2
3.1

Each orbit meets G in exactly one word: by [L1] with k=1 there is exactly one index j in {0,,2n} with σjaG, 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=gG(2n+1)=G(2n+1).

L1L4L6L7L8L9step 1.1step 2.1
4.1

Combining steps 1.1, 1.3 and 3.1 gives (2n+1)Cn=W=(2n+1n). For the consistency with [L14]: n2n+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.

L5L11L12L13L14step 1.1step 1.3step 3.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:0r<m, Sa(j+r)Sa(j)} is a bijection from {0,,m1} onto {1,,m}

Statement

Let m1 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 jZ put

X(j):={rN:0r<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,,m1}{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,,m1}.

Facts & Assumptions

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

[F1]

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

[L1]

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

[L2]

For x,bZ with b0 there is exactly one pair (q,r) of integers with x=qb+r and 0r<b (Division with remainder for any nonzero divisor: for aZ and b0 there are unique q,rZ with a=qb+r and 0r<b).

[L3]

Let A be a finite set and BA; then B is finite, BA, and B=A if and only if B=A (A subset of a finite set is finite, with BA, 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.1

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

F1algebra
1.2

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

L1L2algebra
1.3

For every jZ and every r with 0r<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)=mdr. If d0 then mdrr0; if d1 then mdrmr1, and this is the only place the hypothesis r<m is used. So the sign of mdr decides, and the two conditions agree.

F1algebra
2.1

For 0j<m one has X(j)={iN:i<m, T(i)T(j)}. Indeed r(j+r)modm is a bijection of {0,,m1} onto itself, with inverse i(ij)modm; by step 1.1 and the periodicity of T one has T((j+r)modm)=T(j+r), and T(j) is the value at j itself since jmodm=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.

F1L5step 1.1step 1.3
3.1

X is injective on {0,,m1}. Let ij 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.

L3step 1.2step 2.1
3.2

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].

L3L5step 2.1
4.1

Both {0,,m1} 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 m1 elements, which [L4] forbids; so X is surjective as well as injective and is a bijection by [L6].

L4L5L6step 3.1step 3.2

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)=mSa(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 0kn, 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 1i, the step i passing from height h(i1) to height h(i); it is an up step when h(i)=h(i1)+1 and a down step when h(i)=h(i1)1. The step i lies above level 0 when h(i1)0 and h(i)0, and lies below level 0 otherwise. Every step is exactly one of the two.

Let nN. Then every qW((0,0),(2n,0)) has an even number of steps above level 0, say 2k with 0kn; and for each k with 0kn the set

Fn,k:={qW((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 UW 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:0i2n, wi=1, i<iwi0}.

[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(i1){1,1} for 1i; 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)modm; Sa(0)=0; Sa(j)Sa(j1)=a(j1)modm; 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 m1 and b=1, then l{r:0r<m, Sb(l+r)Sb(l)} is a bijection from {0,,m1} onto {1,,m} (If a=1 then j#{r:0r<m, Sa(j+r)Sa(j)} is a bijection from {0,,m1} 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]ma:=σ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 xy given by y=gx for some gG 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 xy iff y=gx for some g, and hence partition the acted-on set).

[L5]

For a1, jZ and 0rm: 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 kN, [A]k is the set of k-element subsets of A, and [A]k=(Ak) (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 AB=A+B; and if I is finite and (Ai)iI are pairwise disjoint finite sets then iIAi=iIAi (The sum rule: a finite disjoint union is finite with AB=A+B and iIAi=iIAi, 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, iSc=Sc (The sum iSai over a finite index set, and its product form, clause (c)).

[L12]

If A is finite and f:AB 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 BA, and equality holds if and only if B=A, clauses 1 and 2).

[L15]

Every nonempty subset SN 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 nN (The principle of mathematical induction).

[L17]

For all x,y,cN with c0: if xc=yc 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.1

A step i of a diagonal path joins the two heights h(i1) and h(i), which differ by exactly 1; writing c for the smaller of them, the step lies above level 0 exactly when c0, hence below level 0 exactly when c1. For an up step c=h(i1) 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.

F1
1.2

Let β(q) be the number of up steps of qW((0,0),(2n,0)) starting at a height 1. The map Δ sending wU to the diagonal path of length 2n from (0,0) whose step word is w1w2w2n, with 1 read as an up step and 1 as a down step, is a bijection UW((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 0i2n 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 i1 with wi=1 contributes exactly when H(i)0, that is exactly when h(i1)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.

F1L7L8L9L12
1.3

Fix aW 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(l1)=bl1, so induction on r gives Sb(l+r)Sb(l)=Sa(tl+r)Sa(tl) for every lZ and every rN.

F3L16
2.1

For qW((0,0),(2n,0)) the steps below level 0 number 2β(q), so the steps above level 0 number 2n2β(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)=0c+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 c1. The map is injective: if ψ(i1)=ψ(i2)=i then h(i1)=h(i1)=h(i2), and if moreover i1<i2 then i21>i1 with h(i21)=c+1, so ψ(i1)i21<ψ(i2), a contradiction. It is surjective: given an up step i with c:=h(i1)1, the set of ji1 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)=c1, 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.

F1L10L12L14L15step 1.1
2.2

The members of the orbit of a that lie in U are exactly the n+1 pairwise distinct words σtla with 0ln, 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 0j2n are pairwise distinct and form the orbit; the entry of σja at the position 0 is ajmod(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 0i2n at which σtla carries the entry 1 are exactly those with tl+i=tl+r for some r with 0rn, 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:0r<n+1, Sa(tl+r)Sa(tl)}, which by step 1.3 is {r:0r<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}.

F3L1L2L3L5L18step 1.3
3.1

For 1kn+1 put Ik:={wU:κ(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 wIk 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.

L4L6L10L11L12L13L17step 1.2step 2.2
4.1

By step 2.1 a path qW((0,0),(2n,0)) has 2n2β(q) steps above level 0, an even number, and 0β(q)n, so the count is 2k for exactly one k with 0kn, namely k=nβ(q). By step 1.2 the bijection Δ carries {wU:κ(w)=nk+1} onto Fn,k, since κ(w)=1+β(Δ(w)) and β=nk; 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.

F1F2L12step 1.2step 2.1step 3.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:0r<m, Sa(j+r)Sa(j)} is a bijection from {0,,m1} 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 c1 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 UPDQ with PDi and QDni

Statement

Let nN and put

Zn:={(i,P,Q):iN, in, PDi, QDni}.

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

Θ:ZnDn+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 j2m (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(j1){1,1} for 1j; 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 SN has a least element (The well-ordering principle).

Proof

technique · direct
1.1

Θ 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(ni)=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 0j2i, and h(2i+2+j)=h(2i+2)+hQ(j) for 0j2(ni); since hP(2i)=0 we get h(2i+1)=1 and h(2i+2)=0, so h(2i+2+j)=hQ(j). Hence h0 throughout and h(2n+2)=hQ(2(ni))=0, so vDn+1 by [F1]; and h(1+j)=1+hP(j)1 for 0j2i, so no index in the range from 1 to 2i+1 has height 0 and the first return is exactly at 2i+2.

F1F2L1
1.2

Θ is surjective. Let vDn+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 j2n+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 iN and in. For 1jτ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 w1w2i and Q the one of length 2(ni) with step word w2i+2w2n+1, both supplied by [L1]. Then hP(j)=h(1+j)10 with hP(2i)=h(2i+1)1=0, so PDi; and hQ(j)=h(2i+2+j)0 with hQ(2(ni))=h(2n+2)=0, so QDni. The word of v is U, then that of P, then D, then that of Q, so v=Θ(i,P,Q).

F1F2L1L3
2.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].

L1step 1.1
3.1

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.

L2step 1.1step 2.1step 1.2

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=0nCiCni, with C0=1

Statement

C0=1, and for every nN, in N,

Cn+1=i=0nCiCni,

the sum being over the finite index set {0,1,,n} (The sum iSai 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 in, PDi and QDni.

[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 ZnDn+1 (Every Dyck path of semilength n+1 factors uniquely as UPDQ with PDi and QDni).

[L2]

Dm is finite and nonempty for every mN (Dn is a finite set).

[L3]

If I is finite and (Ai)iI are pairwise disjoint finite sets, then iIAi is finite with iIAi=iIAi (The sum rule: a finite disjoint union is finite with AB=A+B and iIAi=iIAi, 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=AB (The product rule: A×B=AB, and i<mAi=i<mAi, clause 1).

[L5]

For a finite index set S and a:SN, iSai is defined and equals k<naφ(k) for any bijection φ:nS with n=S; taking S=n and the identity gives inai=k<nak (The sum iSai over a finite index set, and its product form, clause (a)).

[L6]

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

Proof

technique · direct
1.1

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

F1L2L4L6
2.1

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

L3L5step 1.1
3.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.

F1L1L6step 2.1

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)=n0Cnxn in Qx

Definition

Q is a field (The rationals form a field) and therefore a commutative ring (Every field is a commutative ring with 10; it is an integral domain, and it is a commutative division ring), so the formal power series Qx 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 NZ, k[(k,0)], of The naturals embed in the integers with the embedding ZQ 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 CQx whose coefficient function is nCn (The Catalan number Cn:=Dn), that is

C=n0Cnxn,[xn]C=Cn(nN).

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.

Qx as a commutative Q-algebra. The coefficientwise sum and the Cauchy product make Qx a commutative ring, and the map sending a rational to the constant series with that coefficient at 0 is an injective unital ring homomorphism QQx (Cauchy multiplication makes Rx a commutative ring containing R[x] as the finitely supported subring, applied to the polynomials of degree at most 0). So Qx 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 Zx. The square-root and binomial-power machinery used below is stated for a commutative Q-algebra, because its definitions divide by n!, and Zx 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+xC(x)2

Statement

In Qx the Catalan generating function (The Catalan generating function C(x)=n0Cnxn in Qx) satisfies

C=1+xC2.

Facts & Assumptions

Given: the Catalan generating function CQx.

[F1]

For every n0, [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)=n0Cnxn in Qx).

[L1]

Cn+1=i=0nCiCni in N for every nN (Cn+1=i=0nCiCni, 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)=[xnk]f for kn and 0 for k>n; and [xn](fg)=i=0n[xi]f[xni]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 Qx a commutative ring, and the constant series form an isomorphic copy of Q inside it (Cauchy multiplication makes Rx a commutative ring containing R[x] as the finitely supported subring).

Proof

technique · direct
1.1

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].

F1F2L2L3
1.2

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

F1L1L2L3
2.1

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].

L2step 1.1step 1.2

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 Qx.

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

[xk](14x)1/2=2k(2k2k1) for k1, and 1 for k=0

Statement

Work in Qx, a commutative Q-algebra (The Catalan generating function C(x)=n0Cnxn in Qx), and let (14x)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 uxRx has a unique kth root with constant coefficient 1 in a commutative Q-algebra it is the unique series in 1+xQx whose square is 14x. Then

[x0](14x)1/2=1,

and for every k1, in Q,

k[xk](14x)1/2=2(2k2k1),equivalently[xk](14x)1/2=2k(2k2k1).

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

Facts & Assumptions

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

[F1]

Qx 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)=n0Cnxn in Qx).

[L1]

In a commutative Q-algebra, for uxRx and cR, (1+u)c=n0c(c1)(cn+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 uxRx and cR, (1+u)c:=exp(clog(1+u)), and the displayed families are summable because ordx(un)n (Formal exponential, logarithm, and binomial powers over a commutative Q-algebra).

[L3]

For a commutative Q-algebra R, uxRx and k1, there is a unique v1+xRx with vk=1+u, namely v=(1+u)1/k (Every 1+u with uxRx 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)=[xnk]f for kn 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 mN, and σ(m)!=m!σ(m) (The factorial n! and the falling factorial nk, defined by recursion in N).

[L8]

For all x,y,cN with c0: if xc=yc 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 nN (The principle of mathematical induction).

Proof

technique · direct
1.1

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/21)(1/2k+1)k!(4)k for every kN; at k=0 the numerator is the empty product and A0=1. Consequently (k+1)Ak+1=(1/2k)(4)Ak=2(2k1)Ak for every kN.

F1L1L2L4
1.2

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

L5L7L8
2.1

For every k1 one has kAk=2(2k2k1), 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 k1. Multiplying the recursion of step 1.1 by k gives k(k+1)Ak+1=2(2k1)kAk=4(2k1)(2k2k1), 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.

L6L9L10step 1.1step 1.2
3.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.

L3L9step 1.1step 2.1

Remarks

  • The index k=0 is genuinely outside the formula. The quotient 2k(2k2k1) 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 (14x)1/2 as the series in 1+xQx squaring to 14x, 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 →

2xC(x)=1(14x)1/2, where (14x)1/2 is the unique square root with constant coefficient 1

Statement

In Qx, with C the Catalan generating function (The Catalan generating function C(x)=n0Cnxn in Qx) and (14x)1/2 the formal binomial power of Formal exponential, logarithm, and binomial powers over a commutative Q-algebra,

12xC=(14x)1/2,equivalently2xC=1(14x)1/2.

The series (14x)1/2 is the unique element of 1+xQx whose square is 14x (Every 1+u with uxRx has a unique kth root with constant coefficient 1 in a commutative Q-algebra), and the content of the theorem is that 12xC 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 CQx.

[F1]

C=1+xC2 in Qx (C(x)=1+xC(x)2).

[F2]

For every n0, [xn]C=Cn, and Qx is a commutative Q-algebra (The Catalan generating function C(x)=n0Cnxn in Qx).

[L1]

For a commutative Q-algebra R, uxRx and k1, there is a unique v1+xRx with vk=1+u, namely v=(1+u)1/k (Every 1+u with uxRx 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)=[xnk]f for kn 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 Qx a commutative ring (Cauchy multiplication makes Rx a commutative ring containing R[x] as the finitely supported subring).

[L4]

For uxRx and cR 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.1

Expanding in the commutative ring Qx gives (12xC)2=14xC+4x2C2=14x(CxC2), and [F1] says CxC2=1, so (12xC)2=14x.

F1L3
1.2

The series 12xC lies in 1+xQx: its coefficient at the index 0 is 10=1 by [L2], since [x0](xC)=0.

F2L2
2.1

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

L1L3L4step 1.1step 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 uxRx 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 Qx, 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 nN, 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(14x)1/2 (2xC(x)=1(14x)1/2, where (14x)1/2 is the unique square root with constant coefficient 1), with no bijection, no reflection and no group action: only formal algebra in Qx.

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)=n0Cnxn in Qx).

[L1]

For every k1, k[xk](14x)1/2=2(2k2k1) in Q ([xk](14x)1/2=2k(2k2k1) for k1, and 1 for k=0).

[L2]

[xm](f+g)=[xm]f+[xm]g, [xm](rf)=r[xm]f, and [xm](xkf)=[xmk]f for km 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.1

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

F2L2
1.2

Extract it from the right-hand side: by [L2] the constant series 1 contributes 0 at a positive index, so [xn+1](1(14x)1/2)=[xn+1](14x)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(14x)1/2)=2(2nn).

L1L2
2.1

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.

F1F2L3L4step 1.1step 1.2

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 Qx, 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 CQx (The Catalan generating function C(x)=n0Cnxn in Qx) is not a rational formal power series (Rational formal power series, proper presentations and reduced denominators): there are no polynomials P,QQ[x] with Q(0)0 and QC=P.

Consequently the sequence (Cn)n0, 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+xC2 in Qx (C(x)=1+xC(x)2).

[F2]

Qx is a commutative Q-algebra and the coefficient of C at the index n is Cn (The Catalan generating function C(x)=n0Cnxn in Qx).

[L1]

A formal power series FRx is rational when there are polynomials P,QR[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=n0anxn: 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,gR[x] are nonzero, then fg0 and deg(fg)=degf+degg (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 Qx a commutative ring, and the inclusion of Q[x] into it is an injective unital ring homomorphism (Cauchy multiplication makes Rx a commutative ring containing R[x] as the finitely supported subring).

Proof

technique · contradiction
1.1

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

F2L1L8assume-contra
2.1

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

F1L8step 1.1
3.1

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

L3L6L7step 2.1
4.1

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

L3L5step 2.1step 3.1
5.1

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.

F2L2L7step 1.1step 4.1discharge-contradiction

Remarks

  • Why the parity argument is the whole proof. The equation R2=(14x)Q2 says that 14x 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 14x 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=iCiCni, 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 nN.

  • 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 in. 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 vSchn 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=nk. Hence

0kn,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 BA, 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 AB=A+B and iIAi=iIAi, 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 Qx (Formal power series over a commutative ring and the coefficient-extraction functional [xn]) put

M(x):=n0Mnxn,R(x):=n0Rnxn,

each count read as a rational coefficient exactly as in The Catalan generating function C(x)=n0Cnxn in Qx; 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+xM(x)+x2M(x)2, and 2x2M(x)=1x(12x3x2)1/2

Statement

In Qx 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+xM+x2M2,

and, with (12x3x2)1/2 the formal binomial power of Formal exponential, logarithm, and binomial powers over a commutative Q-algebra,

2x2M=1x(12x3x2)1/2,

the series 1x2x2M being the unique element of 1+xQx whose square is 12x3x2 (Every 1+u with uxRx 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 im; each such path advances the first coordinate by 1 at every step; Mm=Motm is finite; M0=1 and M1=1; and M(x)=m0Mmxm (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 Qx is a commutative Q-algebra (The Catalan generating function C(x)=n0Cnxn in Qx).

[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 AB=A+B; and if I is finite and (Ai)iI are pairwise disjoint finite sets then iIAi=iIAi (The sum rule: a finite disjoint union is finite with AB=A+B and iIAi=iIAi, 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=AB (The product rule: A×B=AB, and i<mAi=i<mAi, clause 1).

[L5]

For a finite index set S and a:SN the sum iSai is defined, and iai=0 (The sum iSai 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)=[xmk]f for km and 0 for k>m; and [xm](fg)=i=0m[xi]f[xmi]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, uxRx and k1, there is a unique v1+xRx with vk=1+u, namely v=(1+u)1/k (Every 1+u with uxRx has a unique kth root with constant coefficient 1 in a commutative Q-algebra).

[L8]

For uxRx and cR 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 Qx a commutative ring (Cauchy multiplication makes Rx a commutative ring containing R[x] as the finitely supported subring).

[L10]

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

[L11]

Every nonempty subset SN has a least element (The well-ordering principle).

Proof

technique · direct
1.1

First-return decomposition. Let vMotn+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 w1wn has heights h(1+j), so it lies in Motn. If it is U then h(1)=1; the set of positive indices jn+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 w1wi has heights h(1+j)10 ending at h(τ1)1=0, so PMoti, and the path Q of length n1i with step word wτwn has heights h(τ+j)0 ending at 0, so QMotn1i, with 0in1 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×Motn1i for 0in1.

F1L1L2L11
2.1

Counting the two sides of step 1.1 with [F1], [L3], [L4], [L5] and [L10] gives, in N, Mn+1=Mn+i=0n1MiMn1i, the sum being over the finite index set {0,,n1}. 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.

F1L3L4L5L10step 1.1
3.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 [xn1](M2)=i=0n1MiMn1i when n1 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.

F1F2L6L9step 2.1
4.1

Rearranging step 3.1 in the commutative ring Qx gives x2M2+(x1)M+1=0, and hence (1x2x2M)2=(x1)2+4x2(x2M2+(x1)M)=(x1)24x2=12x3x2. The series 1x2x2M has coefficient 1 at the index 0, so it lies in 1+xQx, and 12x3x2=1+u with u=2x3x2xQx; by the uniqueness clause of [L7] with k=2 it is therefore the series (12x3x2)1/2 of [L8], which gives 2x2M=1x(12x3x2)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.

L6L7L8L9step 3.1

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 UPDQ with PDi and QDni 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 n1 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=kN,2kn(n2k)Ck

Statement

For every nN, in N,

Mn=kN, 2kn(n2k)Ck,

the sum being over the finite index set {kN:2kn} (The sum iSai 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 jN, [A]j is the set of j-element subsets of A, and [A]j=(Aj) (The set [A]k of k-element subsets and the binomial coefficient (nk):=[n]k).

[L4]

If I is finite and (Ai)iI are pairwise disjoint finite sets then iIAi is finite with iIAi=iIAi (The sum rule: a finite disjoint union is finite with AB=A+B and iIAi=iIAi, 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=AB (The product rule: A×B=AB, and i<mAi=i<mAi, clause 1).

[L6]

For a finite index set S and a:SN the sum iSai is defined (The sum iSai over a finite index set, and its product form).

[L7]

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

Proof

technique · direct
1.1

Let vMotn have step word w, put A:={jN:j<n, wjL} 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 in the height h(i) of v equals the height h^(r) of the diagonal path traced by w^ at r=Ai, the number of non-level positions before i; and every r with 0rA 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.

F1F3
1.2

Consequently A is even, say A=2k with 2kn, 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.

F2F3
2.1

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 2kn 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.

F2L1L2step 1.1step 1.2
3.1

The index set {k:2kn} 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.

F2L3L4L5L6L7L8step 2.1

Remarks

  • A bijective proof, and therefore a second route. The functional equation of M(x)=1+xM(x)+x2M(x)2, and 2x2M(x)=1x(12x3x2)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+xR(x)+xR(x)2, and 2xR(x)=1x(16x+x2)1/2

Statement

In Qx 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+xR+xR2,

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

2xR=1x(16x+x2)1/2,

the series 1x2xR being the unique element of 1+xQx whose square is 16x+x2 (Every 1+u with uxRx 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, mk level steps and m+k steps in all, with 0km; 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)=m0Rmxm (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 Qx is a commutative Q-algebra (The Catalan generating function C(x)=n0Cnxn in Qx).

[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 AB=A+B; and if I is finite and (Ai)iI are pairwise disjoint finite sets then iIAi=iIAi (The sum rule: a finite disjoint union is finite with AB=A+B and iIAi=iIAi, 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=AB (The product rule: A×B=AB, and i<mAi=i<mAi, clause 1).

[L5]

For a finite index set S and a:SN the sum iSai is defined (The sum iSai 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)=[xmk]f for km and 0 for k>m; and [xm](fg)=i=0m[xi]f[xmi]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, uxRx and k1, there is a unique v1+xRx with vk=1+u, namely v=(1+u)1/k (Every 1+u with uxRx has a unique kth root with constant coefficient 1 in a commutative Q-algebra).

[L8]

For uxRx and cR 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 Qx a commutative ring (Cauchy multiplication makes Rx a commutative ring containing R[x] as the finitely supported subring).

[L10]

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

[L11]

Every nonempty subset SN has a least element (The well-ordering principle).

Proof

technique · direct
1.1

First-return decomposition. Let vSchn+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)10 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 (2i2,0) gives a member of Schni, and 0in. 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×Schni for 0in.

F1L1L2L11
2.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 ni with i+(ni)=n, so the convolution index runs over all of {0,,n} and not only over {0,,n1}. Counting the two sides of step 1.1 with [F1], [L3], [L4], [L5] and [L10] gives, in N, Rn+1=Rn+i=0nRiRni, 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.

F1L3L4L5L10step 1.1
3.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=0nRiRni 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.

F1F2L6L9step 2.1
4.1

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

L6L7L8L9step 3.1

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 n1 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 nN, in N,

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

the sum being over the finite index set {0,1,,n} (The sum iSai 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, nk level steps and n+k steps in all, with 0kn; 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 jN, [A]j is the set of j-element subsets of A, and [A]j=(Aj) (The set [A]k of k-element subsets and the binomial coefficient (nk):=[n]k).

[L4]

If I is finite and (Ai)iI are pairwise disjoint finite sets then iIAi is finite with iIAi=iIAi (The sum rule: a finite disjoint union is finite with AB=A+B and iIAi=iIAi, 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=AB (The product rule: A×B=AB, and i<mAi=i<mAi, clause 1).

[L6]

For a finite index set S and a:SN the sum iSai is defined (The sum iSai over a finite index set, and its product form).

[L7]

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

Proof

technique · direct
1.1

Let vSchn 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+k1}, 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.

F1F2F3
2.1

For each k with 0kn the map just described is a bijection from the set of vSchn having exactly k up steps onto [n+k]2k×Dk, where [n+k]2k is the set of 2k-element subsets of {0,,n+k1}. 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 nk level steps, hence horizontal extent 2k+2(nk)=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.

F1F2L1L2step 1.1
3.1

The sets of vSchn with exactly k up steps, for 0kn, 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.

F1L3L4L5L6L7step 2.1

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=kN,2kn(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 2kn.

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)vX for all u,vX. The set Σ itself is grammatical, so the family of grammatical subsets is a nonempty subfamily of P(Σ) (The power set P(x)={z:zx}), 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 XB 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,vB}. Then BB because B is grammatical, and B is itself grammatical: it contains ε, and if u,vB then u,vB, so (u)vB by construction. By the previous paragraph B=B, which is the assertion.

Lengths. Every wB 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 nN,

Bn:={wB:w=2n}.

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

Bn+1=in{(u)v:uBi, vBni},

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 BA between finite sets is finite, with AB=AB, A subset of a finite set is finite, with BA, 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 rw 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 rw and dw(w)=0.

For every nN,

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 XB equals B; every nonempty member of B is (u)v with u,vB; Bm is the set of members of length 2m; B0={ε}; and Bm+1 is the set of words (u)v with uBi and vBmi for some im (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 im, PDi, QDmi 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 UPDQ with PDi and QDni).

[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:AB is a bijection then B is finite and B=A (The cardinality A of a finite set).

Proof

technique · direct
1.1

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.

F2L2L3
1.2

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,vX and w=(u)v, then dw(0)=0, dw(r)=1+du(r1)1 for 1r1+u, dw(2+u)=1+du(u)1=0, and dw(r)=dv(r2u)0 for 2+urw, the last value being dv(v)=0. So XB is grammatical and [F1] gives X=B.

F1
2.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 ip, PDi and QDpi; applying the inverse letter map to the three blocks writes w=(u)z with u of length 2i and z of length 2(pi), both nonnegative prefix words by step 1.1 read backwards. Since i<m and pi<m, the inductive hypothesis puts uBi and zBpi, so wBm by [F1].

F1L1L4step 1.1
3.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.

L5step 1.2step 2.1

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 nN 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:AB is a bijection then B is finite and B=A (The cardinality A of a finite set).

Proof

technique · direct
1.1

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

F1L1
2.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.

F2L2L3step 1.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 wbT with b{0,1} then wT;
  3. for every wT: w0T if and only if w1T.

Its elements are nodes; a node w is internal when w0T, and a leaf otherwise. The size of T is the number of internal nodes, size(T):={wT:w0T}, a natural number because T is finite (A subset of a finite set is finite, with BA, 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:zx}), and Tn:={TT: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 TT with T{ε}; then ε is internal, so 0T and, by clause 3, 1T. Put

L:={w:0wT},R:={w:1wT}.

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 w0w and w1w 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 AB=A+B and iIAi=iIAi, 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:wL}{1w:wR} 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 nN the map T(size(L),L,R) is a bijection

Tn+1{(i,L,R):in, LTi, RTni}.

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:={TT: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+1i=0nTi×Tni.

Proof

technique · induction
1.1

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

F1
1.2

[ih] Assume that every Tj with jn is finite.

given
2.1

For each index i with 0in, the sets Ti and Tni are finite by the induction hypothesis, so Ti×Tni is finite by [F3].

F3step 1.2
3.1

The disjoint union i=0nTi×Tni is finite by [F2].

F2step 2.1
4.1

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

F1step 3.1discharge-induction

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 TnDn for every n

Statement

For every natural number n there is a bijection

Φn:TnDn

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 in, a left subtree in Ti and a right subtree in Tni (Binary trees, defined recursively, and their size).

[L1]

Every Dyck path of semilength n+1 factors uniquely as UPDQ with PDi and QDni for a unique index in (Every Dyck path of semilength n+1 factors uniquely as UPDQ with PDi and QDni).

Proof

technique · induction
1.1

[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.

given
1.2

[ih] Assume that for every index jn a bijection Φj:TjDj has already been constructed.

given
2.1

For a tree TTn+1 write its recursive data as (i,L,R) as in [F1], with LTi and RTni, 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 Φni(R). This lands in Dn+1 by the defining condition on Dyck paths.

F1step 1.2
2.2

For a Dyck path QDn+1, the first-return factorisation of [L1] writes Q uniquely as UPDQ with PDi and QDni for a unique in, so the induction hypothesis supplies unique trees L:=Φi1(P) and R:=Φni1(Q) and therefore a unique tree T with recursive data (i,L,R). Define Ψn+1(Q):=T.

L1step 1.2
3.1

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].

L2step 2.1step 2.2discharge-induction

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 TnDn (There is a bijection TnDn for every n).

[F1]

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

[L2]

Proof

technique · direct
1.1

The bijection of [L1] identifies Tn with Dn.

L1
2.1

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

L2F1step 1.1

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 mN with m2, 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 1i<jm. 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 BA, 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 m3 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 m3 and let TPm 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 (mk+1)-gon.

Facts & Assumptions

Given: a natural number m3 and a triangulation TPm.

[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.1

Let k be the least element of {2,,m1} such that {k,m} is a diagonal of T or the side {m1,m}. This set is nonempty because m1 belongs to it.

F1choose
2.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.

F1step 1.1
3.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.

F1step 1.1step 2.1
4.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 (mk+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.

F1step 2.1step 3.1

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 TnPn+2 for every nN

Statement

For every natural number n there is a bijection

Ψn:TnPn+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 (nk+4)-gon (For m3 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 in, a left subtree in Ti and a right subtree in Tni (Binary trees, defined recursively, and their size).

Proof

technique · induction
1.1

[base] The set T0 has the single tree {ε} and the set P2 has the single empty triangulation, so there is a unique bijection Ψ0:T0P2.

given
1.2

[ih] Assume that for every index jn a bijection Ψj:TjPj+2 has already been constructed.

given
2.1

For a tree TTn+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 (ni+2)-gon by the order-preserving relabelling of Ψni(R) onto the vertices {k,k+1,,n+3}.

F1step 1.2
2.2

For a triangulation UPn+3, [L1] supplies a unique split index k and therefore a unique index i:=k2n, together with triangulations of the left k-gon and the right (ni+2)-gon. Relabel those two sub-polygons back to {1,,i+2} and {1,,ni+2}, apply the inverse bijections Ψi1 and Ψni1 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).

L1F1step 1.2
3.1

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].

L2step 2.1step 2.2discharge-induction

Remarks

  • The boundary case is the digon, not the triangle. That is why the statement is TnPn+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 TnPn+2 (There is a bijection TnPn+2 for every nN).

[L2]

Tn=Cn (Tn=Cn).

[F1]

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

Proof

technique · direct
1.1

The bijection of [L1] identifies Tn with Pn+2.

L1
2.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.

L2F1step 1.1

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=AB, and i<mAi=i<mAi 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 BA, 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:AiEπ(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(π(ij))=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.1

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.

F1choose
1.2

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 π:=π(ij).

construct
2.1

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 AiEπ(j) and AjEπ(i) respectively, while every other endpoint is unchanged.

F1step 1.2
2.2

Since π=π(ij) and (ij) is a transposition, [L1] gives sgn(π)=sgn(π).

L1step 1.2
3.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.

step 1.1step 1.2step 2.1
4.1

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.

step 2.1step 3.1step 2.2discharge-construct

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 r1, 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)0i,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 AiEj meets every monotone path AkE whenever i<k and j>, then only the identity permutation contributes and

det(mi,j)0i,j<r=#Nid(A,E).

Facts & Assumptions

Given: a natural number r1, start points (Ai)i<r, end points (Ei)i<r, and the matrix M=(mi,j)0i,j<r with mi,j:=M(Ai,Ej).

[F1]

For r1, the determinant is det(M)=σSrsgn(σ)i<rmσ(i),i (For n1, the determinant over a commutative ring by the Leibniz formula, and detA 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 n2).

Proof

technique · direct
1.1

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).

F1F3algebra
2.1

For each permutation π, the product i<rmi,π(i) is exactly the number of π-systems by [F2], so det(M)=πSrsgn(π)#Sπ(A,E).

F2step 1.1
3.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).

L1step 2.1
4.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 AiEπ(i) meets every path AkEπ(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.

givenstep 3.1

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 n1 the pairs of non-intersecting monotone paths (1,0)(n+1,n) and (0,1)(n,n+1) number (2nn)2(2nn+1)(2nn1)

Statement

Let n1. 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)(2nn1).

Facts & Assumptions

Given: a natural number n1.

[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 ac and bd, and m=ca, n=db are the corresponding natural numbers, then the number of monotone paths from (a,b) to (c,d) is (m+nn) (M((0,0),(m,n))=(m+nn)).

Proof

technique · direct
1.1

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=(2nn1) by [L2].

L2
1.2

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.

givenalgebra
2.1

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)(2nn1)(2nn))=(2nn)2(2nn+1)(2nn1).

L1step 1.1step 1.2
3.1

At n=1 this gives 2211=3, which matches the direct count: there are four ordered pairs of paths, and exactly one pair meets at the point (1,1).

step 2.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 Qx: the recurrence becomes the quadratic equation for C(x), the closed form comes from 2xC(x)=1(14x)1/2, where (14x)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: UN, DE 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 ai1 and a=k1, 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)0i,jn1=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.1

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).

given
1.2

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.

L1
2.1

The table has ten rows, which agrees with [L1] because (52)=10.

L1step 1.1step 1.2
3.1

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.

L1

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.1

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.

given
2.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.

step 1.1
3.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.

L1L2step 2.1

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 TnDn 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 TnPn+2 for every nN).

Verification

technique · direct
1.1

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.

L1
1.2

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.

L2
2.1

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.

L3step 1.2

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)=2ch(i) for iτ and h(i)=h(i) for iτ; this is a bijection onto the paths from (0,2ca) to (n,b) (Reflecting the initial segment at the first visit to level c).

Verification

technique · direct
1.1

The path UDDUDU starts at height 0, ends at height 0, and first reaches the level 1 at the index 3.

given
2.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.

L1step 1.1
3.1

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.

L2

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 pq0, if N counts the orderings in which the first candidate is never behind, then (p+1)N=(pq+1)(p+qq) (The weak ballot count: for pq0 the orderings in which the first candidate is never behind satisfy (p+1)N=(pq+1)(p+qq)).

Verification

technique · direct
1.1

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.

given
2.1

Reading the lead AB after each vote shows that only AAABB and AABAB stay strictly positive at every stage, so N=2.

step 1.1
3.1

This agrees with [L1], since (3+2)N=(32)(53) reads 5N=10 and therefore N=2.

L1step 2.1
4.1

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].

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 ai1 and a=k1, then exactly k of the m cyclic shifts of a have all partial sums positive).

[L2]

The cycle-lemma Catalan count gives (23+1)C3=(73) ((2n+1)Cn=(2n+1n), a second derivation of the Catalan count).

Verification

technique · direct
1.1

In the table, only the second row has all partial sums strictly positive, so the word a has exactly one good shift.

given
2.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.

step 1.1
2.2

This agrees with [L1] and [L2]: [L1] predicts one good shift, and [L2] reads 7C3=(73)=35, so 75=35.

L1L2step 1.1
3.1

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.

given

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=0nCiCni with C0=1 (Cn+1=i=0nCiCni, with C0=1).

[L2]

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

Verification

technique · direct
1.1

Starting from C0=1, the recurrence [L1] gives successively C1=1, C2=2, C3=5, C4=14, C5=42 and C6=132.

L1
1.2

The central binomial coefficients in the third column are (00)=1, (21)=2, (42)=6, (63)=20, (84)=70, (105)=252 and (126)=924.

given
2.1

Dividing the third column by n+1 as [L2] prescribes gives exactly the second column again, so the two routes agree term by term.

L2step 1.1step 1.2

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 m3 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.1

Every diagonal set in the table has three pairwise non-crossing diagonals, so each row is a triangulation of the hexagon.

given
2.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.

L1step 1.1
3.1

This agrees with [L2], since C4=14. The same grouped count is the recursion P2P5+P3P4+P4P3+P5P2=5+2+2+5.

L2step 2.1

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

12xC(x)=12x2x24x310x428x5+O(x6).

Facts & Assumptions

Given: the Catalan generating function C(x).

[L1]

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

[L3]

(14x)1/2=12x2x24x310x428x5+O(x6) ([xk](14x)1/2=2k(2k2k1) for k1, and 1 for k=0).

Verification

technique · direct
1.1

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.

L1
1.2

The displayed coefficients of 12xC(x) are exactly those of [L3], so the closed form predicts 12xC(x)=(14x)1/2 modulo x6.

L3
2.1

Squaring 12x2x24x310x428x5 gives 14x modulo x6, which matches [L2].

L2step 1.2

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.1

The four ordered pairs of paths are (EN,EN), (EN,NE), (NE,EN) and (NE,NE).

given
2.1

Exactly one of them, (NE,EN), meets at the lattice point (1,1); the other three are non-intersecting.

step 1.1
3.1

Therefore the direct count is 3, which matches [L1] because (21)2(22)(20)=2211=3.

L1step 2.1

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.1

The first common point of P1 and P2 is (1,1), reached after the first step in each path.

given
2.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).

L1step 1.1
3.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.

L1step 2.1

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 nN).

Refutation

technique · direct
1.1

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.

L1
2.1

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.

L1L2

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 yx for the corresponding monotone path (The two step sets describe the same objects: UN, DE 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.1

At n=2 there are (42)=6 monotone paths from (0,0) to (2,2) by [L2].

L2
1.2

The weakly-below ones are exactly EENN and ENEN, so there are 2 of them.

given
2.1

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.

step 1.1step 1.2L1L3

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)n0 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=0nCiCni with C0=1 (Cn+1=i=0nCiCni, with C0=1).

Refutation

technique · direct
1.1

If the false claim were true, [L1] would make the Catalan generating function rational.

L1assume-contra
2.1

That contradicts [L2].

L2step 1.1discharge-contradiction
3.1

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.

L3

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:P6T4

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.1

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.

L1given
2.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).

step 1.1
3.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.

L2step 2.1

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)ch(n) or h(n)ch(0) meets the level c somewhere (A diagonal path with h(0)ch(n) or h(n)ch(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.1

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.

L1given
2.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.

L2step 1.1
3.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 01=1, which is not a count of paths.

L3step 2.1

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