Alphabeta Math
DefinitionDefinition: AI-adaptedProof: Not applicableaudited 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.

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

v(i)=(i, h(i))(0≤i≤n)

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(i−1)∈{1,−1}(1≤i≤n),

and conversely every such h is the height function of exactly one v∈W((0,a);n): the word w with wi−1=U when h(i)−h(i−1)=1 and wi−1=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):=∣{ j∈N: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(0≤i≤n).

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

Prescribing the endpoint. For b∈Z put

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

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

−n≤b−a≤n,

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

Levels. For c∈Z a diagonal path with height function h touches the level c when h(i)=c for some i with 0≤i≤n; 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.

Depends on

Used by

Dependency tree · two levels

29 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