Skip to content

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)FindStatSt000331via 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
TypePackageApplies
(dyck_path) -> numbercombinatoricsalways

Domain: Dyck path statistics

Details
  • Defined over DyckPath as an expression in _x, evaluated by compute-engine — the definition IS the implementation.
  • Takes a DyckPath 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.
  • 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

Basic #

the step word UUDDUDUUDDUD

live ↗
InUpperInteractions(DyckPath⁡([1,1,0,0,1,0]))\mathrm{UpperInteractions}({\operatorname{DyckPath}}([1, 1, 0, 0, 1, 0]))Out11

the step word UDUUDDUDUUDD

live ↗
InUpperInteractions(DyckPath⁡([1,0,1,1,0,0]))\mathrm{UpperInteractions}({\operatorname{DyckPath}}([1, 0, 1, 1, 0, 0]))Out11
Properties #

FindStat's value for [1,0]

live ↗
InCombinatorialStat(DyckPath⁡([1,0]),UpperInteractions)\mathrm{CombinatorialStat}({\operatorname{DyckPath}}([1, 0]), \text{UpperInteractions})Out00

Known value · FindStat St000331

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

live ↗
InCombinatorialStat(DyckPath⁡([1,0,1,0]),UpperInteractions)\mathrm{CombinatorialStat}({\operatorname{DyckPath}}([1, 0, 1, 0]), \text{UpperInteractions})Out11

Known value · FindStat St000331

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

live ↗
InCombinatorialStat(DyckPath⁡([1,1,0,0]),UpperInteractions)\mathrm{CombinatorialStat}({\operatorname{DyckPath}}([1, 1, 0, 0]), \text{UpperInteractions})Out00

Known value · FindStat St000331

About
Examples5
CrosswalkFindStat