Young diagrams of a fixed size #
Shape n is the type of Young diagrams with exactly n cells. It
carries decidable equality and a Fintype instance, obtained from the
correspondence with Nat.Partition n that reads off the row lengths.
This is the tree's standard idiom for "sum over the partitions of n".
Counting cells by rows #
Young diagrams are determined by their lists of row lengths.
Shapes #
@[instance_reducible]
Equality of shapes is decidable, cell set by cell set.
Equations
- RS.instDecidableEqShape n μ ν = decidable_of_iff ((↑μ).cells = (↑ν).cells) ⋯
The correspondence with partitions #
@[simp]
The multiset of parts of the partition attached to a shape is the multiset of its row lengths.
@[instance_reducible]
There are finitely many Young diagrams with n cells: as many as
there are partitions of n.