Partitions and Young diagrams #
This file relates partitions of n and Young diagrams with n cells by a pair of direct
constructions: TauCeti.diagramOf builds the Young diagram whose rows are the decreasingly
sorted parts of a partition, and TauCeti.toPartition reads the row lengths of a sized diagram
back as a partition. The two constructions are inverse to each other, which packages as the
equivalence TauCeti.partitionEquivYoungDiagram.
References #
- Mathlib PR #39722
(Kevin Gomez) — the open Mathlib PR linking
Nat.PartitiontoYoungDiagram, whose directofPartition/toPartitiondesign this file adopts, in place of composing equivalences.
The Young diagram of a partition: its rows are the decreasingly sorted parts.
Equations
- TauCeti.diagramOf μ = YoungDiagram.ofRowLens (μ.parts.sort fun (x1 x2 : ℕ) => x1 ≥ x2) ⋯
Instances For
The Young diagram of the partition (1ⁿ) is a single column: every part is 1, so every
row has at most one cell.
The Young diagram of the partition (n) has at most one row: for n > 0 its only part is
n, so there is nothing below the first row, and for n = 0 the diagram is empty.
The second row of the Young diagram of the partition (n+1, 1) is a single cell.
The Young diagram of the partition (n+1, 1) has no third row.
The partition of the cells of a Young diagram: its parts are the row lengths.
Equations
- TauCeti.toPartition μ h = { parts := ↑μ.rowLens, parts_pos := ⋯, parts_sum := ⋯ }
Instances For
The parts of the partition of a sized Young diagram are its row lengths.
Reading back the row lengths of the Young diagram of a partition recovers the partition.
The Young diagram whose rows are the row lengths of a sized Young diagram is that diagram.
The Young diagram associated to a partition by the equivalence is TauCeti.diagramOf.
The partition associated to a sized Young diagram by the equivalence is
TauCeti.toPartition.
The Young diagram construction is injective on partitions of a fixed size.
The shape partition of a Young diagram: the partition of μ.card whose parts are the row
lengths.
Equations
Instances For
A partition built from a Young diagram along the trivial equality of sizes is its shape partition.
The Young diagram of the shape partition of a Young diagram is that diagram.
The parts of the shape partition are the row lengths of the diagram.
Sorting the parts of the shape partition into decreasing order returns the row lengths, which
are already decreasing. This is not a simp lemma: simp reaches the same normal form through
shapePartition_parts and TauCeti.YoungDiagram.sort_coe_rowLens.