The Mathlib Handbook

The volumes of the handbook are not written yet. This site shows the map of Mathlib that they will follow, at Mathlib 4472534b60.

The areas / V02. Numbers

Mathlib.Data.Nat.Factorization.Divisors

8 declarations. Mathlib docs · Source

theorem Nat.coe_divisors_eq_prod_pow_le_factorization E0 #

∀ {n : ℕ}, n ≠ 0 → ↑n.divisors = {x | ∃ f ≤ n.factorization, (f.prod fun x1 x2 ↦ x1 ^ x2) = x}

theorem Nat.divisors_eq_image_Iic_factorization_prod_pow E1 #

∀ {n : ℕ}, n ≠ 0 → n.divisors = Finset.image (fun x ↦ x.prod fun x1 x2 ↦ x1 ^ x2) (Finset.Iic n.factorization)

theorem Nat.Iic_factorization_prod_pow_injective E1 #

∀ (n : ℕ), Function.Injective fun x ↦ (↑x).prod fun x1 x2 ↦ x1 ^ x2

theorem Nat.divisors_eq_map_attach_Iic_factorization_prod_pow E1 #

∀ {n : ℕ},
  n ≠ 0 →
    n.divisors =
      Finset.map { toFun := fun x ↦ (↑x).prod fun x1 x2 ↦ x1 ^ x2, inj' := ⋯ } (Finset.Iic n.factorization).attach

theorem Nat.coe_properDivisors_eq_prod_pow_lt_factorization E0 #

∀ {n : ℕ}, ↑n.properDivisors = {x | ∃ f < n.factorization, (f.prod fun x1 x2 ↦ x1 ^ x2) = x}

theorem Nat.properDivisors_eq_image_Iio_factorization_prod_pow E1 #

∀ {n : ℕ}, n.properDivisors = Finset.image (fun x ↦ x.prod fun x1 x2 ↦ x1 ^ x2) (Finset.Iio n.factorization)

theorem Nat.Iio_factorization_prod_pow_injective E1 #

∀ (n : ℕ), Function.Injective fun x ↦ (↑x).prod fun x1 x2 ↦ x1 ^ x2

theorem Nat.properDivisors_eq_map_attach_Iio_factorization_prod_pow E1 #

∀ {n : ℕ},
  n.properDivisors =
    Finset.map { toFun := fun x ↦ (↑x).prod fun x1 x2 ↦ x1 ^ x2, inj' := ⋯ } (Finset.Iio n.factorization).attach