Partition ↔ YoungDiagram equivalence #
This file provides the equivalence Nat.Partition n ≃ {μ : YoungDiagram | μ.card = n},
which is the missing bridge between Mathlib's Nat.Partition type and the
YoungDiagram type used in the coefficient-level commutation relation.
Main results #
partitionEquiv:Nat.Partition n ≃ {μ : YoungDiagram // μ.card = n}card_ofRowLens_eq_sum: the cardinality ofofRowLens wequalsw.sumrowLens_sum_eq_card:μ.rowLens.sum = μ.cardsort_coe_sortedGE_eq_reverse: sorting a decreasing list by ≤ gives its reverse
Auxiliary lemmas #
card of ofRowLens #
Partition ≃ YoungDiagram equivalence #
Convert a Nat.Partition n to a YoungDiagram by sorting its parts in decreasing
order and using them as row lengths.
Instances For
Convert a YoungDiagram with n cells to a Nat.Partition n.
Instances For
partToYD is injective.
The equivalence Nat.Partition n ≃ {μ : YoungDiagram // μ.card = n}.