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

Foata's transformation sends major index to inversion number

Statement

For every permutation σSn,

inv(Φ(σ))=maj(σ).

Facts & Assumptions

Given: A permutation word wx, where x is the last letter and w has length m.

[L1]

The major index is the sum of the descents of a permutation (Descent sets, major index, excedances and fixed points of a permutation).

Proof

technique · direct
1.1

For the empty word and for a one-letter word, both the major index and the inversion number are 0. Assume inductively that inv(Φ(w))=maj(w) for a word w of length m, and write r:=Φ(w). By definition, Φ(wx)=γx(r)x.

given
2.1

Suppose the last letter of w is x; equivalently, the last letter of r is x. Then the blocks of γx(r) have the form Ujyj with every letter of Uj strictly greater than x and yjx. Moving yj to the front removes exactly Uj inversions inside that block, while appending x at the end creates exactly Uj inversions with those same letters and no others. So inv(Φ(wx))=inv(r). In this case no new descent is created at the end of w, so maj(wx)=maj(w).

step 1.1L1algebra
2.2

Suppose instead that the last letter of w is >x. Then the blocks of γx(r) have the form Ujyj with every letter of Uj at most x and yj>x. Moving yj to the front creates exactly Uj new inversions inside that block, and appending x at the end creates one more inversion with each terminal letter yj. Summing over all blocks gives inv(Φ(wx))=inv(r)+m, because the block lengths add up to m. In this case appending x creates a new descent at the last position of w, so maj(wx)=maj(w)+m.

step 1.1L1algebra
3.1

The two cases of steps 2.1 and 2.2 are exhaustive, and in each one the change in inversion number equals the change in major index. The inductive hypothesis from step 1.1 therefore gives inv(Φ(wx))=maj(wx).

step 1.1step 2.1step 2.2
4.1

By induction on word length, inv(Φ(σ))=maj(σ) for every permutation σ.

step 3.1

Depends on

Used by

Dependency tree · two levels

11 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