English
The pretty-printer for finite sets prints ∅ for the empty set and otherwise prints the underlying multiset.
Русский
Красивый вывод Finset печатает ∅ для пустого множества и иначе печатает базовую мульти-set-овую запись.
LaTeX
$$repr(Finset α) = (if card = 0 then ∅ else repr underlying_multiset)$$
Lean4
unsafe instance [Repr α] : Repr (Finset α) where
reprPrec s
_ :=
-- multiset uses `0` not `∅` for empty sets
if s.card = 0 then "∅" else repr s.1