Nat.divisors
as a multiplicative homomorpism #
The main definition of this file is Nat.divisorsHom : ℕ →* Finset ℕ
,
exhibiting Nat.divisors
as a multiplicative homomorphism from ℕ
to Finset ℕ
.
The divisors of a product of natural numbers are the pointwise product of the divisors of the factors.
Nat.divisors
as a MonoidHom
.
Equations
- Nat.divisorsHom = { toOneHom := { toFun := Nat.divisors, map_one' := Nat.divisors_one }, map_mul' := Nat.divisors_mul }
Instances For
theorem
List.nat_divisors_prod
(l : List ℕ)
:
Nat.divisors (List.prod l) = List.prod (List.map Nat.divisors l)
theorem
Finset.nat_divisors_prod
{ι : Type u_1}
(s : Finset ι)
(f : ι → ℕ)
:
Nat.divisors (Finset.prod s fun (i : ι) => f i) = Finset.prod s fun (i : ι) => Nat.divisors (f i)