English
We forget primality by mapping a prime multiset to a multiset of natural numbers via the underlying natural map.
Русский
Упрощаем primality, отображая мульсет простых чисел в мульсет натуральных чисел через соответствующее отображение.
LaTeX
$$toNatMultiset : PrimeMultiset → Multiset ℕ$$
Lean4
/-- We can forget the primality property and regard a multiset
of primes as just a multiset of positive integers, or a multiset
of natural numbers. In the opposite direction, if we have a
multiset of positive integers or natural numbers, together with
a proof that all the elements are prime, then we can regard it
as a multiset of primes. The next block of results records
obvious properties of these coercions.
-/
def toNatMultiset : PrimeMultiset → Multiset ℕ := fun v => v.map (↑)