Zulip Chat Archive
Stream: Is there code for X?
Topic: multiset ext nodup
Yaël Dillies (Jun 22 2021 at 19:02):
Do we have such a lemma somewhere?
example {S : multiset ℕ} {s : finset ℕ} (hs : S.nodup) :
S = s.val ↔ ∀ x, x ∈ S ↔ x ∈ s :=```
Yakov Pechersky (Jun 22 2021 at 19:12):
Exactly what your topic title is:
variable {α : Type*}
example (S : multiset α) (s : finset α) (hs : S.nodup) :
S = s.val ↔ ∀ x, x ∈ S ↔ x ∈ s :=
multiset.nodup_ext hs s.nodup
Yaël Dillies (Jun 22 2021 at 19:15):
Ahahah! I still missed it. Thanks!
Last updated: Dec 20 2023 at 11:08 UTC