Alphabeta Math
LemmaStatement: AI-adaptedProof: AI-adaptedprecheck passjudge pass (deepseek-v4-pro + gpt-5.6-terra)audited 2026-08-26
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.

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

Statement

Let n∈N and put

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

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

Θ:Zn⟶Dn+1

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

Facts & Assumptions

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

[F1]

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

[F2]

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

[L1]

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

[L2]
[L3]

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

Proof

technique · direct
1.1F1F2L1

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

1.2F1F2L1L3

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

2.1L1step 1.1

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

3.1L2step 1.1step 2.1step 1.2∎

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

Remarks

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

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

Depends on

Used by

Dependency tree · two levels

28 results within two dependency steps of this one, each drawn at its shortest distance from it. An arrow runs from a result to what uses it, so the chart reads left to right and ends at this result, which carries a heavier outline. Every node is a link to that result. Click elsewhere on the chart to enlarge it.

Sources