Alphabeta Math
CorollaryStatement: AI-adaptedProof: AI-adaptedSession-authored (Fable 5 assisted)precheck passaudited 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.

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.

Depends on

Used by

Dependency tree · two levels

49 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