Skip to content

ShynarInversionCount ​

Pairs of entries e < f with f strictly southwest of e.

✓ checked against that system · ! checked, with disagreements (hover a chip)FindStatSt000057via StandardTableau✓
ShynarInversionCount(tableau)Pairs of entries e < f with f strictly southwest of e.
Typed signatures
TypePackageApplies
(standard_tableau) -> numbercombinatoricsalways

Domain: Tableau statistics

Details
  • Defined over StandardTableau as an expression in _x, evaluated by compute-engine — the definition IS the implementation.
  • Takes a StandardTableau and nothing else — it reads values against their positions, or walks the orbits, so it needs the bijection. Applying it to a bare list is a type error, not a wrong answer.
  • Shynar's inversion number (FindStat's St000057). A tableau of fewer than two entries gives 0.

Definition

Epsil, as the implementation runs it.

on StandardTableau, over _x

0 if Length(Flatten(_x)) < 2 else Apply((reading: list<integer>) => Apply(
                                                                           (lengths: list<integer>) => Apply(
                                                                                                              (rowIds: list<integer>) => Apply(
                                                                                                                                                (columnIds: list<integer>) => Apply(
                                                                                                                                                                                     (entryRows: list<integer>) => Apply(
                                                                                                                                                                                                                          (entryColumns: list<integer>) => Max(Sum(Map(
                                                                                                                                                                                                                                                                        Function(Max(Sum(Map(Function(1 if entryRows[f] > entryRows[e] &&
                                                                                                                                                                                                                                                                                                           entryColumns[f] < entryColumns[e] else 0, f), Range(e + 1, Length(reading), 1))), 0), e),
                                                                                                                                                                                                                                                                        Range(1, Length(reading) - 1, 1),
                                                                                                                                                                                                                                                                      )), 0),
                                                                                                                                                                                                                          Map(Function(columnIds[IndexOf(reading, e)], e), Range(1, Length(reading), 1)),
                                                                                                                                                                                                                        ),
                                                                                                                                                                                     Map(Function(rowIds[IndexOf(reading, e)], e), Range(1, Length(reading), 1)),
                                                                                                                                                                                   ),
                                                                                                                                                Flatten(Map(Function(Range(1, lengths[i], 1), i), Range(1, Length(_x)))),
                                                                                                                                              ),
                                                                                                              Flatten(Map(
                                                                                                                           Function(Map(Function(i, j), Range(1, lengths[i], 1)), i),
                                                                                                                           Range(1, Length(_x)),
                                                                                                                         )),
                                                                                                            ),
                                                                           Map(
                                                                                Function(Length(r), r),
                                                                                _x,
                                                                              ),
                                                                         ), Flatten(_x))

Examples

Basic #

the standard tableau [[1,2,4],[3,6],[5]][[1,2,4],[3,6],[5]]

live ↗
InShynarInversionCount(StandardTableau⁡([[1,2,4],[3,6],[5]]))\mathrm{ShynarInversionCount}({\operatorname{StandardTableau}}([[1, 2, 4], [3, 6], [5]]))Out44
Properties #

FindStat's value for [[1]]

live ↗
InCombinatorialStat(StandardTableau⁡([[1]]),ShynarInversionCount)\mathrm{CombinatorialStat}({\operatorname{StandardTableau}}([[1]]), \text{ShynarInversionCount})Out00

Known value · FindStat St000057

FindStat's value for [[1,2]]

live ↗
InCombinatorialStat(StandardTableau⁡([[1,2]]),ShynarInversionCount)\mathrm{CombinatorialStat}({\operatorname{StandardTableau}}([[1, 2]]), \text{ShynarInversionCount})Out00

Known value · FindStat St000057

FindStat's value for [[1,2,3]]

live ↗
InCombinatorialStat(StandardTableau⁡([[1,2,3]]),ShynarInversionCount)\mathrm{CombinatorialStat}({\operatorname{StandardTableau}}([[1, 2, 3]]), \text{ShynarInversionCount})Out00

Known value · FindStat St000057

About
Examples4
CrosswalkFindStat