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 Chung–Feller theorem: for each with , exactly of the diagonal paths from to have exactly steps lying above level
Statement
Let be a diagonal lattice path of length with height function (Diagonal lattice paths with steps and , and the height function). Its steps are the indices with , the step passing from height to height ; it is an up step when and a down step when . The step lies above level when and , and lies below level otherwise. Every step is exactly one of the two.
Let . Then every has an even number of steps above level , say with ; and for each with the set
is finite with
(The Catalan number ). In particular the count does not depend on .
Facts & Assumptions
Given: a natural number ; the set of words of length over with exactly entries , so with entries ; the subset of words whose entry at the position is ; and for a word of length over the statistic .
A diagonal path of length from is the same datum as a function with and for ; with the number of up-steps among the first its height is (Diagonal lattice paths with steps and , and the height function).
; ; ; ; ; and the finite sum satisfies and (Cyclic shifts of an integer word and its periodic partial-sum function).
If and , then is a bijection from onto (If then is a bijection from onto ).
If then the stabiliser of under the shift action of is and the orbit of has exactly elements (If then the shift stabiliser of is trivial, so its orbit has exactly elements).
For every letter the number of positions of carrying equals the number of positions of carrying , and is a left action of on the words of length (Cyclic shifting is an action of on the words of length over a set, clauses 2 and 3).
For a left action of on the relation given by for some is an equivalence relation, its class at is the orbit of , and the distinct orbits partition (The orbits of a group action are the equivalence classes of iff for some , and hence partition the acted-on set).
For , and : ( has all partial sums positive exactly when for every , clause 1).
For a finite set and , is the set of -element subsets of , and (The set of -element subsets and the binomial coefficient ).
For a step set , a point and , the map sending a lattice path to its step word is a bijection (For each start point the step word is a bijection onto ).
For : is a bijection if and only if there is a function with and ( is a bijection if and only if there is a function with and ; such a is unique, equals the inverse relation , and is itself a bijection).
If and are finite and disjoint then ; and if is finite and are pairwise disjoint finite sets then (The sum rule: a finite disjoint union is finite with and , and a sum over a finite index set splits along a partition, clauses 1 and 2).
For a constant natural number and a finite index set , (The sum over a finite index set, and its product form, clause (c)).
If is finite and is a bijection then is finite and ; and for a natural number (The cardinality of a finite set).
A subset of a finite set is finite, with cardinality at most that of the set (A subset of a finite set is finite, with , and equality holds if and only if , clauses 1 and 2).
A nonempty with an upper bound has a greatest element (A nonempty set of integers bounded above has a greatest element, and a nonempty set of integers bounded below has a least element).
Every nonempty subset has a least element (The well-ordering principle).
A property that holds at and passes from every natural number to its successor holds at every natural number: if a property satisfies and () for all , then holds for all (The principle of mathematical induction).
For all with : if then (Cancellation for multiplication by a nonzero factor).
Integers and are coprime when ; and are coprime for every integer , since , and the relation is symmetric (Coprime integers: ).
Proof
A step of a diagonal path joins the two heights and , which differ by exactly ; writing for the smaller of them, the step lies above level exactly when , hence below level exactly when . For an up step and for a down step , so the steps below level are the up steps starting at a height together with the down steps ending at a height , and these two families are disjoint because a step cannot be both up and down.
Let be the number of up steps of starting at a height . The map sending to the diagonal path of length from whose step word is , with read as an up step and as a down step, is a bijection : the inverse prepends the entry , and by [F1] and [L8] a word of length over the two letters with exactly up letters is the step word of exactly one diagonal path of length from , whose height at the last index is . Moreover : writing , the path has for and its step carries the letter , so the position always contributes to because and , while a position with contributes exactly when , that is exactly when . Finally is finite with , since deleting the entry at the position is a bijection from onto the words of length over with exactly entries , and those correspond by [L7], [L9] and [L12] to the -element subsets of a -element set.
Fix and let be the positions of carrying the entry , extended to all integers by . Put . Then , because by [F3], so is determined by and is a word of length of integers; its weight is , which is because has entries and entries . The one-step difference identity of [F3] for reads , so induction on gives for every and every .
For the steps below level number , so the steps above level number with . Send a down step with to the least index with , which exists by [L15] because ; then and differ by , so and and is an up step starting at height . The map is injective: if then , and if moreover then with , so , a contradiction. It is surjective: given an up step with , the set of with contains and is bounded above, so by [L14] it has a greatest element ; then and , so is a down step with , every index strictly between and has height , and . So the two families of step 1.1 are equinumerous by [L12], and [L10] adds them; the number of up steps of is by [F1] since , so .
The members of the orbit of that lie in are exactly the pairwise distinct words with , and takes each of the values for exactly one such . Since and is coprime to by [L18], [L2] makes the stabiliser trivial, so the words with are pairwise distinct and form the orbit; the entry of at the position is , which is exactly for . For such a , [L5] gives , and the positions with at which carries the entry are exactly those with for some with , because and the integers whose residue carries the entry are exactly the . Hence , which by step 1.3 is ; and [L1] applied to , of length and weight , says that this is a bijection from onto .
For put . By step 2.2, takes values in on and each orbit meets each in exactly one word, so is the union of the pairwise disjoint sets , and for each pair the rule sending to the unique member of its orbit lying in is a bijection, the orbits being the classes of an equivalence relation by [L4]. Hence all sets have the same cardinality, and by [L10], [L11], [L12] and [L13] we get , which is by [L6]; cancelling the nonzero factor by [L17] gives for every .
By step 2.1 a path has steps above level , an even number, and , so the count is for exactly one with , namely . By step 1.2 the bijection carries onto , since and ; and by step 3.1 that set has exactly elements, so by [L12]. At the two paths from to have height sequences and , with two steps above level and none respectively, so each of and is realised once, and .
Remarks
-
This is not a corollary of the cycle lemma as that lemma is stated here. The cycle lemma counts the cyclic shifts all of whose partial sums are positive, and for weight that is exactly one shift; Chung–Feller needs every shift sorted by how many of its partial sums fail to rise, which is the strictly finer statement If then is a bijection from onto .
-
Where the blocking is spent. The word records only the jumps of between consecutive positions carrying the entry . That is what turns a statement about the shifts of beginning with into a statement about all shifts of a word of length , which is the form the transversal lemma is stated in.
-
Why the steps split evenly below the axis. The pairing of step 2.1 matches each descent to level with the next ascent from , and it is a bijection only because the path ends at height : with a free right endpoint a descent below the axis need never be undone, and the count of steps below the axis would not be even.
Depends on
- If $\lVert a\rVert=1$ then $j\mapsto\#\{r:0\le r<m,\ S_a(j+r)\le S_a(j)\}$ is a bijection from $\{0,\dots,m-1\}$ onto $\{1,\dots,m\}$
- If $\gcd(\lVert a\rVert,m)=1$ then the shift stabiliser of $a$ is trivial, so its orbit has exactly $m$ elements
- Cyclic shifting is an action of $\mathbb{Z}/m$ on the words of length $m$ over a set
- $\sigma^{j}a$ has all partial sums positive exactly when $S_a(i)>S_a(j)$ for every $i>j$
- The orbits of a group action are the equivalence classes of $x\sim y$ iff $y=g\cdot x$ for some $g$, and hence partition the acted-on set
- Cyclic shifts of an integer word and its periodic partial-sum function
- Diagonal lattice paths with steps $U=(1,1)$ and $D=(1,-1)$, and the height function
- The Catalan number $C_n:=\lvert\mathcal{D}_n\rvert$
- $(n+1)\,C_n=\binom{2n}{n}$
- The set $[A]^{k}$ of $k$-element subsets and the binomial coefficient $\binom{n}{k} := \lvert [n]^{k}\rvert$
- For each start point the step word is a bijection onto $S^n$
- $f : A \to B$ is a bijection if and only if there is a function $g : B \to A$ with $g \circ f = \Delta_A$ and $f \circ g = \Delta_B$; such a $g$ is unique, equals the inverse relation $f^{-1}$, and is itself a bijection
- The sum rule: a finite disjoint union is finite with $\lvert A \cup B\rvert = \lvert A\rvert + \lvert B\rvert$ and $\lvert\bigcup_{i \in I} A_i\rvert = \sum_{i \in I}\lvert A_i\rvert$, and a sum over a finite index set splits along a partition
- The sum $\sum_{i \in S} a_i$ over a finite index set, and its product form
- The cardinality $\lvert A\rvert$ of a finite set
- A subset of a finite set is finite, with $\lvert B\rvert \le \lvert A\rvert$, and equality holds if and only if $B = A$
- A nonempty set of integers bounded above has a greatest element, and a nonempty set of integers bounded below has a least element
- The well-ordering principle
- The principle of mathematical induction
- Cancellation for multiplication by a nonzero factor
- Coprime integers: $\gcd(a,b) = 1$
Used by
Nothing in the library uses this result yet.
Dependency tree · two levels
89 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.