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.Int.NatPrime

3 declarations. Mathlib docs · Source

theorem Int.not_prime_of_int_mul E1 #

∀ {a b : ℤ} {c : ℕ}, a.natAbs ≠ 1 → b.natAbs ≠ 1 → a * b = ↑c → ¬Nat.Prime c

theorem Int.succ_dvd_or_succ_dvd_of_succ_sum_dvd_mul E1 #

∀ {p : ℕ},
  Nat.Prime p →
    ∀ {m n : ℤ} {k l : ℕ},
      ↑(p ^ k) ∣ m → ↑(p ^ l) ∣ n → ↑(p ^ (k + l + 1)) ∣ m * n → ↑(p ^ (k + 1)) ∣ m ∨ ↑(p ^ (l + 1)) ∣ n

theorem Int.Prime.dvd_natAbs_of_coe_dvd_sq E1 #

∀ {p : ℕ}, Nat.Prime p → ∀ (k : ℤ), ↑p ∣ k ^ 2 → p ∣ k.natAbs