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 / V33. Data structures and computation

Mathlib.Data.List.Prime

4 declarations. Mathlib docs · Source

theorem Prime.dvd_prod_iff E0 #

∀ {M : Type u_1} [inst : CommMonoidWithZero M] {p : M} {L : List M}, Prime p → (p ∣ L.prod ↔ ∃ a ∈ L, p ∣ a)

Prime p divides the product of a list L iff it divides some a ∈ L

theorem Prime.not_dvd_prod E1 #

∀ {M : Type u_1} [inst : CommMonoidWithZero M] {p : M} {L : List M}, Prime p → (∀ a ∈ L, ¬p ∣ a) → ¬p ∣ L.prod

theorem mem_list_primes_of_dvd_prod E0 #

∀ {M : Type u_1} [inst : CommMonoidWithZero M] [IsCancelMulZero M] [Subsingleton Mˣ] {p : M},
  Prime p → ∀ {L : List M}, (∀ q ∈ L, Prime q) → p ∣ L.prod → p ∈ L

theorem perm_of_prod_eq_prod E1 #

∀ {M : Type u_1} [inst : CommMonoidWithZero M] [IsCancelMulZero M] [Subsingleton Mˣ] {l₁ l₂ : List M},
  l₁.prod = l₂.prod → (∀ p ∈ l₁, Prime p) → (∀ p ∈ l₂, Prime p) → l₁.Perm l₂