English
Given a Multiset s and a proof H that every x ∈ s, one can construct a finite type structure on α, i.e., Fintype α.
Русский
Для Multiset s и доказательства, что каждый x ∈ s, можно построить структуру конечного типа на α.
LaTeX
$$$\\text{ofMultiset }(s) : Fintype\\ α$$$
Lean4
/-- Construct a proof of `Fintype α` from a universal multiset -/
def ofMultiset [DecidableEq α] (s : Multiset α) (H : ∀ x : α, x ∈ s) : Fintype α :=
⟨s.toFinset, by simpa using H⟩