SeaweedIndex
Twice the cycles plus the paths, less one, of the meander of the composition over the single block: the index of the maximal parabolic seaweed algebra.
✓ checked against that system · ! checked, with disagreements (hover a chip)FindStat
St001263via IntegerComposition✓SeaweedIndex(composition)Twice the cycles plus the paths, less one, of the meander of the composition over the single block: the index of the maximal parabolic seaweed algebra.Typed signatures
| Type | Package | Applies |
|---|---|---|
(composition) -> number | combinatorics | always |
Details
- Defined over
IntegerCompositionas an expression in_x, evaluated by compute-engine — the definition IS the implementation. - Takes a
IntegerCompositionand 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. - Dergachev and Kirillov, Index of Lie algebras of seaweed type. FindStat's code builds the meander as a simple graph, so two dots joined by an arc above and one below are a path, not a cycle; the definition follows the code, not the prose. The empty composition is outside FindStat's rows.
Definition
Epsil, as the implementation runs it.
on IntegerComposition, over _x
0 if Length(_x) < 1 else Apply((cuts: list<integer>) => Apply(
(top: list<integer>) => Apply(
(degrees: list<integer>) => Apply(
(labels: list<integer>) => 2 *
Count(Filter(Range(1, Sum(_x)), Function(labels[i] == i, i))) -
1 -
Count(Filter(Range(1, Sum(_x)), Function(degrees[i] == 0, i))) -
Count(Filter(Range(1, Sum(_x)), Function(degrees[i] == 1, i))) /
2,
Fold(
Function(Map(Function(Min(a[i], a[top[i]], a[Sum(_x) + 1 -
i]), i), Range(1, Sum(_x))), a, b),
Range(1, Sum(_x)),
Range(1, Sum(_x)),
),
),
Map(Function((1 if Abs(top[i] - i) >
0 else 0) +
(1 if Abs(Sum(_x) + 1 -
i -
i) >
0 else 0) -
(1 if top[i] ==
Sum(_x) + 1 -
i &&
Abs(top[i] - i) >
0 else 0), i), Range(1, Sum(_x))),
),
Map(
Function(Max(Filter(
cuts,
Function(u < i, u),
)) +
Min(Filter(
cuts,
Function(u >= i, u),
)) +
1 -
i, i),
Range(
1,
Sum(_x),
),
),
), Fold(Function(
Join(a, [Last(a) + b]),
a,
b,
), [0], _x))Examples
Properties #
About
| Examples | 4 |
|---|---|
| Crosswalk | FindStat |