Skew shapes from 321-avoiding permutations #
Every shift-$0$ ASP permutation $\tau$ whose sources and sinks can be separated by a set $U \subseteq \mathbb{Z}$ (equivalently, every shift-$0$ 321-avoiding ASP permutation) is $\sigma_S$ for a skew shape $S$. Given a lattice path whose step $n$ goes east exactly when $n \in U$, the shape has one box $(i(v), j(u))$ for each inversion $(u, v)$ of $\tau$, where $(i(n), j(n))$ is the $n$th vertex of the path. Conversely, every skew shape arises this way from its own boundary path.
The first draft of this file was written by Claude Opus 5.5, following a design by Nathan Pflueger.
A lattice path through $\mathbb{Z} \times \mathbb{Z}$, recorded by the column $c(n)$ of its $n$th vertex. Each step goes east ($c(n+1) = c(n) + 1$) or north ($c(n+1) = c(n)$), and the $n$th vertex is $(c(n) - n, c(n))$, of content $n$.
Instances For
The row $c(n) - n$ of the $n$th vertex.
Instances For
A path is compatible with $\tau$ if the step at each source of an inversion goes east and the step at each sink goes north.
Instances For
For a compatible path, $\tau$ increases from any position to a later east step.
For a compatible path, $\tau$ increases from a north step to any later position.
An east step and a later north step nested inside an inversion form an inversion.
The skew shape whose boxes are $(r(v), c(u))$ for the inversions $(u, v)$ of $\tau$.
Equations
Instances For
The permutation of p.shape τ hc is $\tau$, when $\tau$ has shift $0$.
The number of elements of $U$ in $[0, n)$, or minus the number in $[n, 0)$ when $n < 0$.
Equations
- SkewShapes.signedCount U n = ↑{x ∈ Finset.Ico 0 n | x ∈ U}.card - ↑{x ∈ Finset.Ico n 0 | x ∈ U}.card
Instances For
The path with $c(0) = C$ whose east steps are exactly those in $U$: its $n$th vertex is $(i(n), j(n))$ with $j(n) = C + \#\{m \in [0, n) : m \in U\}$ and $i(n) = C - \#\{m \in [0, n) : m \notin U\}$, counted with sign when $n < 0$.
Equations
- SkewShapes.LatticePath.ofSet C U = { col := fun (n : ℤ) => C + SkewShapes.signedCount U n, col_succ := ⋯ }
Instances For
The path attached to $(C, U)$ is compatible with $\tau$ when $U$ contains every source and no sink of an inversion of $\tau$.
The skew shape attached to $(\tau, C, U)$: its boxes are $(i(v), j(u))$ for the inversions $(u, v)$ of $\tau$, where $j(n) = C + \#\{m \in [0, n) : m \in U\}$ and $i(n) = C - \#\{m \in [0, n) : m \notin U\}$ (counted with sign when $n < 0$); it has $\sigma = \tau$.
The southeast boundary of a nonempty skew shape, as a lattice path: its $n$th vertex is the extended fringe box of content $n$.
Instances For
The boundary path of $S$ is compatible with $\sigma_S$.
Every skew shape arises from its permutation by the construction above, using its boundary path.
Every skew shape $S$ is the shape attached to $(\sigma_S, C, U)$ for some $C$ and some $U$ containing every source and no sink of an inversion of $\sigma_S$.