UpperInteractions
Over each valley, the shorter of the down run before it and the up run after it, summed: the factors of k down steps then k up steps.
✓ checked against that system · ! checked, with disagreements (hover a chip)FindStat
St000331via DyckPath✓UpperInteractions(path)Over each valley, the shorter of the down run before it and the up run after it, summed: the factors of k down steps then k up steps.Typed signatures
| Type | Package | Applies |
|---|---|---|
(dyck_path) -> number | combinatorics | always |
Details
- Defined over
DyckPathas an expression in_x, evaluated by compute-engine — the definition IS the implementation. - Takes a
DyckPathand 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. - Over a valley, the shorter of the down run before it and the up run after it.
Definition
Epsil, as the implementation runs it.
on DyckPath, over _x
Fold(Function(
[a[1], 1 if a[3] == 1 else a[2] + 1, 0] if b == 0 else [
a[1] + 1,
a[2] - 1,
1,
] if a[2] >
0 else [a[1], a[2], 1],
a,
b,
), [0, 0, 0], _x)[1]Examples
Properties #
About
| Examples | 5 |
|---|---|
| Crosswalk | FindStat |