Skew shapes and their associated 321-avoiding permutations #
IOU more description here.
A skew shape: a convex set of boxes in $\mathbb{Z} \times \mathbb{Z}$, in matrix coordinates (row $i$ increasing southward, column $j$ increasing eastward), such that each box has only finitely many boxes weakly northwest and weakly southeast of it.
Instances For
@[instance_reducible]
Equations
- SkewShapes.instSetLikeSkewShapeProdInt = { coe := SkewShapes.SkewShape.boxes, coe_injective := SkewShapes.instSetLikeSkewShapeProdInt._proof_1 }
The box of the flipped shape obtained by reflecting a box of $S$.
Equations
- S.flipBox x = ⟨SkewShapes.flip ↑x, ⋯⟩
Instances For
Rows and columns #
Equations
- S.fringe_flip x = if h : ↑x ∈ Set.range S.U then ⟨S.V' (Classical.choose h), ⋯⟩ else have h' := ⋯; ⟨S.U' (Classical.choose h'), ⋯⟩
Instances For
theorem
SkewShapes.SkewShape.mem_down_closure_of_le
(S : SkewShape)
{x y : ℤ × ℤ}
(hy : y ∈ S.down_closure)
(hxy : x ≤ y)
:
theorem
SkewShapes.SkewShape.ext_fringe_inj
(S : SkewShape)
{x y : ℤ × ℤ}
(hx : x ∈ S.ext_fringe)
(hy : y ∈ S.ext_fringe)
(h : Δ x = Δ y)
:
A box of the extended fringe is determined by its content.
theorem
SkewShapes.SkewShape.exists_ext_fringe
(S : SkewShape)
(hS : S.boxes.Nonempty)
(n : ℤ)
:
∃ x ∈ S.ext_fringe, Δ x = n
A nonempty skew shape has an extended fringe box of each content.
The box east of $U(x)$ lies on the extended fringe.
The box north of $V(x)$ lies on the extended fringe.
theorem
SkewShapes.SkewShape.fringe_crit
(S : SkewShape)
(x : ℤ × ℤ)
:
x ∈ S.fringe → x ∈ S.ext_fringe
Equations
- S.δ n = Classical.choose ⋯
Instances For
def
SkewShapes.SkewShape.restrict
(S : SkewShape)
(P : ↥S → Prop)
(hP : ∀ (x y : ↥S), ↑x ≤ ↑y → P x → P y)
:
The boxes of $S$ satisfying a predicate closed to the southeast form a skew shape.