English
Disjoint sum of multisets s and t is defined by tagging elements of s with inl and elements of t with inr, and then adding the results.
Русский
Объединение-слово через дизъюнктивную сумму множества: элементы s помечаются inl, элементы t — inr, затем складываются.
LaTeX
$$$$ \\operatorname{disjSum}(s,t) = (s \\mapsto \\mathrm{inl}) + (t \\mapsto \\mathrm{inr}). $$$$
Lean4
/-- Disjoint sum of multisets. -/
def disjSum : Multiset (α ⊕ β) :=
s.map inl + t.map inr