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

✓ 8 results · all verified · 5 also independently AI-judged
Every result on this page is machine-checked by a proof checker and read in full and owner-audited; the judge is an additional, independent cross-model AI review of the proofs. The 3 not AI-judged were verified by owner audit (typically over a confirmed judge false positive), not failures.

Permutation Statistics, Inversions and Eulerian Numbers: Examples and Counterexamples

1 · Prerequisites

2 · Summary

3 · Logical flowchart

4 · Definitions, theorems and proofs

None yet.

5 · Examples, counterexamples and false statements

ExampleConstruction: AI-generatedVerification: AI-generatedprecheck passjudge pass (gpt-5.6-terra)audited 2026-08-26Open item page →

The permutations of S4 tabulated by inversions, descents, major index and excedances

Example

For S4, the four statistics take the following values.

permutationinvdesmajexc
0 1 2 30000
0 1 3 21131
0 2 1 31121
0 2 3 12132
0 3 1 22121
0 3 2 13251
1 0 2 31111
1 0 3 22242
1 2 0 32122
1 2 3 03133
1 3 0 23122
1 3 2 04252
2 0 1 32111
2 0 3 13242
2 1 0 33231
2 1 3 04242
2 3 0 14122
2 3 1 05252
3 0 1 23111
3 0 2 14241
3 1 0 24231
3 1 2 05241
3 2 0 15232
3 2 1 06362

Facts & Assumptions

Given: The inversion generating function, the major-index generating function, and the equidistribution of descents and excedances on S4 (The inversion generating function of Sn is [n]q!, The major-index generating function of Sn is [n]q!, Descents and excedances are equidistributed on Sn).

Verification

technique · direct
1.1given

The table is an exhaustive enumeration of the 24 one-line permutations of S4, with each statistic computed directly from its definition.

2.1step 1.1given∎

Reading off the distributions from the table gives 1+3q+5q2+6q3+5q4+3q5+q6 for inversions, the same polynomial for the major index, and (1,11,11,1) for both descents and excedances. This matches the three cited theorems.

ExampleConstruction: AI-generatedVerification: AI-generatedprecheck passjudge pass (gpt-5.6-terra)audited 2026-08-26Open item page →

The Lehmer codes of S4 recover [4]q!

Example

For S4, the Lehmer-code codomain is

{0}×{0,1}×{0,1,2}×{0,1,2,3}.

Grouping these 24 code vectors by the sum of their coordinates gives

1+3q+5q2+6q3+5q4+3q5+q6,

which is [4]q!.

Facts & Assumptions

Given: The Lehmer code is a bijection S4→{0}×{0,1}×{0,1,2}×{0,1,2,3} (The Lehmer code is a bijection Sn→∏i=1n{0,…,i−1}).

[L1]

The inversion generating function of S4 is [4]q! (The inversion generating function of Sn is [n]q!).

Verification

technique · direct
1.1givenalgebra

Every code vector has the form (0,a,b,c) with a∈{0,1}, b∈{0,1,2}, and c∈{0,1,2,3}, so there are 24 of them. Counting by the sum a+b+c gives the coefficient sequence 1,3,5,6,5,3,1.

2.1step 1.1L1∎

Therefore ∑σ∈S4qinv⁡(σ)=1+3q+5q2+6q3+5q4+3q5+q6, which matches [L1].

ExampleConstruction: AI-generatedVerification: AI-generatedprecheck passjudge pass (gpt-5.6-terra)audited 2026-08-26Open item page →

Foata's transformation on the permutation 2 0 3 1

Example

Foata's transformation sends the permutation [2,0,3,1] to [2,3,0,1].

Facts & Assumptions

Given: Foata's recursive transformation and the major-index/inversion identity (Foata's recursive transformation on permutations, Foata's transformation sends major index to inversion number).

Verification

technique · constructive
1.1construct

Applying the recursion step by step gives Φ([2])=[2], then Φ([2,0])=[2,0], then Φ([2,0,3])=[2,0,3], and finally Φ([2,0,3,1])=[2,3,0,1].

2.1step 1.1givendischarge-construct∎

The original permutation has descents at positions 0 and 2, so maj⁡([2,0,3,1])=1+3=4. The image [2,3,0,1] has inversions (2,0), (2,1), (3,0), and (3,1), so inv⁡([2,3,0,1])=4. This matches the theorem.

ExampleConstruction: AI-generatedVerification: AI-generatedprecheck passaudited 2026-08-26Open item page →

A(4,2)=11 by the recurrence, by Worpitzky's identity and by excedances

Example

The Eulerian number A(4,2) equals 11, and three different routes produce the same value.

Verification

technique · direct
1.1givenalgebra

The recurrence gives A(4,2)=3A(3,2)+2A(3,1)=3⋅1+2⋅4=11.

1.2givenalgebra

Worpitzky's identity with n=4 and m=2 gives 24=A(4,2)(44)+A(4,3)(54), because the k=0,1 terms vanish. Since A(4,3)=1, this reads 16=A(4,2)+5, so again A(4,2)=11.

2.1step 1.1given∎

By descents/excedances equidistribution, A(4,2) also counts permutations of S4 with exactly two excedances, and the S4 table on this companion page contains exactly 11 such permutations.

ExampleConstruction: AI-generatedVerification: AI-generatedprecheck passjudge pass (gpt-5.6-terra)audited 2026-08-26Open item page →

The weak and Bruhat orders on S3

Example

On S3, the weak-order cover relations are

012≺021,012≺102,021≺120,102≺201,120≺210,201≺210,

while the Bruhat-order cover relations are

012≺021,012≺102,021≺120,021≺201,102≺120,102≺201,120≺210,201≺210.

So the Bruhat order is strictly finer than the weak order already on S3.

Facts & Assumptions

Given: The weak order by inversion inclusion and the Bruhat order by rank inequalities (The weak order on Sn by inversion-set inclusion, The Bruhat order on Sn by rank inequalities).

Verification

technique · direct
1.1given

Computing inversion sets gives the six weak-order covers displayed above. In particular, 021 and 201 are incomparable in weak order because their inversion sets are {(1,2)} and {(0,1),(0,2)} respectively.

2.1step 1.1given∎

Computing the rank inequalities shows that 021<201 and 102<120 in Bruhat order, producing the two extra cover relations listed above. Thus Bruhat order is strictly finer than weak order on S3.

CounterexampleConstruction: AI-generatedVerification: AI-generatedprecheck passaudited 2026-08-26Open item page →

Two permutations can have the same descent set and different inversion numbers

Counterexample

The permutations [1,0,2] and [2,0,1] have the same descent set {0}, but their inversion numbers are 1 and 2 respectively.

Verification

technique · direct
1.1given

For both permutations, the only descent is at position 0: in each case the first entry exceeds the second, while the second does not exceed the third.

2.1step 1.1given∎

The permutation [1,0,2] has one inversion, namely (1,0), while [2,0,1] has two inversions, namely (2,0) and (2,1). So the inversion numbers differ even though the descent sets agree.

CounterexampleConstruction: AI-generatedVerification: AI-generatedprecheck passjudge pass (gpt-5.6-terra)audited 2026-08-26Open item page →

The number of excedances is Eulerian but not Mahonian

Counterexample

The statistic exc⁡ is Eulerian, because it is equidistributed with descents, but it is not Mahonian: on S3 its distribution is 1,4,1, while the inversion distribution is 1,2,2,1.

Facts & Assumptions

Given: Descents and excedances are equidistributed (Descents and excedances are equidistributed on Sn), while the major-index generating function is [n]q! and so agrees with the inversion distribution (The major-index generating function of Sn is [n]q!).

Verification

technique · direct
1.1given

On S3, the excedance counts are distributed as 1,4,1: there is one permutation with 0 excedances, four with 1, and one with 2.

2.1step 1.1given∎

On S3, the inversion numbers are distributed as 1,2,2,1 over 0,1,2,3. Since these two distributions are different, exc⁡ is not Mahonian.

False statementConstruction: AI-adaptedVerification: AI-generatedprecheck passaudited 2026-08-26Open item page →

FALSE: the major index equals the inversion number for every permutation

Statement

False claim: for every permutation σ, one has

maj⁡(σ)=inv⁡(σ).

What is true is the weaker distributional statement of The major-index generating function of Sn is [n]q!.

Refutation

technique · direct
1.1given

Take σ=[2,0,1]. Its only descent is at position 0, so maj⁡(σ)=1.

2.1step 1.1given∎

The same permutation has two inversions, namely (2,0) and (2,1), so inv⁡(σ)=2. Therefore maj⁡(σ)≠inv⁡(σ), and the claim is false.

Sources