Young diagram of a partition #
This file defines the equivalence between Young diagrams μ with cardinality n and
partitions of n, where each row of the diagram becomes a part of the partition.
The two directions are YoungDiagram.toPartition and YoungDiagram.ofPartition.
Using this equivalence, the conjugate of a partition is also defined. Given the Young
diagram μ representing a partition λ, its conjugate λ' is the partition obtained
by flipping μ about the main diagonal, i.e. the columns of μ are the parts of λ'.
This is implemented here directly via YoungDiagram.transpose.
Convert a Young diagram to a partition.
Equations
- μ.toPartition h = { parts := ↑μ.rowLens, parts_pos := ⋯, parts_sum := ⋯ }
Instances For
Convert a partition to a Young diagram.
Equations
- YoungDiagram.ofPartition p = YoungDiagram.ofRowLens (p.parts.sort fun (x1 x2 : ℕ) => x1 ≥ x2) ⋯
Instances For
@[simp]
@[simp]
@[simp]
Conjugate a partition (equivalent to transposing its Young diagram).