Label-preserving bijections and fiber cardinalities #
Two labelings f : α → γ and g : β → γ of finite types are related by a label-preserving
bijection e : α ≃ β, g (e a) = f a, exactly when every label is used equally often:
the fibers of f and g have the same cardinality, or equivalently the multisets of labels
univ.val.map f and univ.val.map g agree. Mathlib builds the bijection from fiberwise ones
(Equiv.ofFiberEquiv); this file records the resulting characterization.
Main results #
Equiv.exists_apply_eq_iff_card_fiber_eq: a label-preserving bijection exists exactly when all fibers have equal cardinality.Equiv.exists_apply_eq_iff_map_univ_eq: the same condition as an equation of label multisets.Multiset.count_map_univ: the multiplicity of a label is the cardinality of its fiber.Multiset.map_univ_eq_iff_card_fiber_eq: the label multiset offis a given multisetsexactly when every element ofslabels as many points as its multiplicity and every label offoccurs ins.
Label-preserving bijections. Labelings f : α → γ and g : β → γ of finite types are
related by a bijection e with g (e a) = f a exactly when every label c is the label of equally
many points of α and of β.
In the multiset of labels of f : α → γ on a finite type, the multiplicity of a label is the
number of points carrying it.
The multiset of labels of f : α → γ on a finite type is s exactly when every element c
of s labels as many points as its multiplicity in s, and every label of f lies in s.
Label-preserving bijections, multiset form. Labelings f : α → γ and g : β → γ of finite
types are related by a bijection e with g (e a) = f a exactly when they have the same multiset
of labels.