WeaklyAboveLatticePathCount
The up-and-down paths of the same length, ending anywhere, that stay weakly above this path.
✓ checked against that system · ! checked, with disagreements (hover a chip)FindStat
St001361via DyckPath✓WeaklyAboveLatticePathCount(path)The up-and-down paths of the same length, ending anywhere, that stay weakly above this path.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. - The paths need not return to the axis:
2^nfor the highest path, the central binomial coefficient for the zigzag.
Definition
Epsil, as the implementation runs it.
on DyckPath, over _x
1 if Length(_x) < 1 else Apply((m: integer) => Apply(
(start: list<integer>) => Max(Sum(Fold((a: list<integer>, b) => Apply(
(next: list<integer>) => next,
Map(Function(a[w] +
(a[w + 1] if w < m else 0) if b == 1 else a[w] +
(a[w - 1] if w > 1 else 0), w), Range(1, m)),
), start, _x)), 0),
Map(Function(
1 if w == 1 else 0,
w,
), Range(1, m)),
), Length(_x) + 1)Examples
Properties #
About
| Examples | 5 |
|---|---|
| Crosswalk | FindStat |