Repeating elements in multisets #
Main definitions #
replicate n ais the multiset containing onlyawith multiplicityn
replicate n a is the multiset containing only a with multiplicity n.
Equations
- Multiset.replicate n a = ↑(List.replicate n a)
Instances For
Alias of the reverse direction of Multiset.eq_replicate_card.
theorem Multiset.replicate_left_injective {α : Type u_1} (a : α) :
Function.Injective fun (x : ℕ) => replicate x a
Multiplicity of an element #
@[simp]