Encodable and Denumerable instances for Multiset #
Explicit encoding function for Multiset α
Instances For
Explicit decoding function for Multiset α
Instances For
@[implicit_reducible]
If α is encodable, then so is Multiset α.
Outputs the list of differences of the input list, that is
lower [a₁, a₂, ...] n = [a₁ - n, a₂ - a₁, ...]
Instances For
Outputs the list of partial sums of the input list, that is
raise [a₁, a₂, ...] n = [n + a₁, n + a₁ + a₂, ...]
Instances For
raise l n is a non-decreasing sequence.
@[implicit_reducible]
If α is denumerable, then so is Multiset α. Warning: this is not the same encoding as used
in Multiset.encodable.