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

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.

Depends on

Used by

Dependency tree · two levels

52 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