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

Depends on

Used by

Dependency tree · two levels

30 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