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 / V03. Sets, finite structures and big operators

Mathlib.Algebra.BigOperators.Associated

20 declarations. Mathlib docs · Source

Products of associated, prime, and irreducible elements.

This file contains some theorems relating definitions in Algebra.Associated and products of multisets, finsets, and finsupps.

theorem Prime.exists_mem_multiset_dvd E1 #

∀ {M₀ : Type u_3} [inst : CommMonoidWithZero M₀] {p : M₀}, Prime p → ∀ {s : Multiset M₀}, p ∣ s.prod → ∃ a ∈ s, p ∣ a

theorem Prime.exists_mem_multiset_map_dvd E1 #

∀ {ι : Type u_1} {M₀ : Type u_3} [inst : CommMonoidWithZero M₀] {p : M₀},
  Prime p → ∀ {s : Multiset ι} {f : ι → M₀}, p ∣ (Multiset.map f s).prod → ∃ a ∈ s, p ∣ f a

theorem Prime.exists_mem_finset_dvd E1 #

∀ {ι : Type u_1} {M₀ : Type u_3} [inst : CommMonoidWithZero M₀] {p : M₀},
  Prime p → ∀ {s : Finset ι} {f : ι → M₀}, p ∣ s.prod f → ∃ i ∈ s, p ∣ f i

theorem Prod.associated_iff E0 #

∀ {M : Type u_4} {N : Type u_5} [inst : Monoid M] [inst_1 : Monoid N] {x z : M × N},
  Associated x z ↔ Associated x.1 z.1 ∧ Associated x.2 z.2

theorem Associated.prod E1 #

∀ {M : Type u_4} [inst : CommMonoid M] {ι : Type u_5} (s : Finset ι) (f g : ι → M),
  (∀ i ∈ s, Associated (f i) (g i)) → Associated (∏ i ∈ s, f i) (∏ i ∈ s, g i)

theorem exists_associated_mem_of_dvd_prod E1 #

∀ {M₀ : Type u_3} [inst : CommMonoidWithZero M₀] [IsCancelMulZero M₀] {p : M₀},
  Prime p → ∀ {s : Multiset M₀}, (∀ r ∈ s, Prime r) → p ∣ s.prod → ∃ q ∈ s, Associated p q

theorem divisor_closure_eq_closure E1 #

∀ {M₀ : Type u_3} [inst : CommMonoidWithZero M₀] [IsCancelMulZero M₀] (x y : M₀),
  x * y ∈ Submonoid.closure {r | IsUnit r ∨ Prime r} → x ∈ Submonoid.closure {r | IsUnit r ∨ Prime r}

Let x, y ∈ M₀. If x * y can be written as a product of units and prime elements, then x can be written as a product of units and prime elements.

theorem Multiset.prod_primes_dvd E1 #

∀ {M₀ : Type u_3} [inst : CommMonoidWithZero M₀] [IsCancelMulZero M₀] [inst_2 : (a : M₀) → DecidablePred (Associated a)]
  {s : Multiset M₀} (n : M₀),
  (∀ a ∈ s, Prime a) → (∀ a ∈ s, a ∣ n) → (∀ (a : M₀), Multiset.countP (Associated a) s ≤ 1) → s.prod ∣ n

theorem Finset.prod_primes_dvd E1 #

∀ {M₀ : Type u_3} [inst : CommMonoidWithZero M₀] [IsCancelMulZero M₀] [Subsingleton M₀ˣ] {s : Finset M₀} (n : M₀),
  (∀ a ∈ s, Prime a) → (∀ a ∈ s, a ∣ n) → ∏ p ∈ s, p ∣ n

theorem Associates.prod_mk E0 #

∀ {M : Type u_2} [inst : CommMonoid M] {p : Multiset M}, (Multiset.map Associates.mk p).prod = Associates.mk p.prod

theorem Associates.finsetProd_mk E0 #

∀ {ι : Type u_1} {M : Type u_2} [inst : CommMonoid M] {p : Finset ι} {f : ι → M},
  ∏ i ∈ p, Associates.mk (f i) = Associates.mk (∏ i ∈ p, f i)

theorem Associates.rel_associated_iff_map_eq_map E1 #

∀ {M : Type u_2} [inst : CommMonoid M] {p q : Multiset M},
  Multiset.Rel Associated p q ↔ Multiset.map Associates.mk p = Multiset.map Associates.mk q

theorem Associates.prod_eq_one_iff E0 #

∀ {M : Type u_2} [inst : CommMonoid M] {p : Multiset (Associates M)}, p.prod = 1 ↔ ∀ a ∈ p, a = 1

theorem Associates.prod_le_prod E1 #

∀ {M : Type u_2} [inst : CommMonoid M] {p q : Multiset (Associates M)}, p ≤ q → p.prod ≤ q.prod

theorem Associates.exists_mem_multiset_le_of_prime E1 #

∀ {M₀ : Type u_3} [inst : CommMonoidWithZero M₀] {s : Multiset (Associates M₀)} {p : Associates M₀},
  Prime p → p ≤ s.prod → ∃ a ∈ s, p ≤ a

theorem Multiset.prod_ne_zero_of_prime E1 #

∀ {M₀ : Type u_3} [inst : CommMonoidWithZero M₀] [NoZeroDivisors M₀] [Nontrivial M₀] (s : Multiset M₀),
  (∀ x ∈ s, Prime x) → s.prod ≠ 0

theorem Prime.dvd_finsetProd_iff E0 #

∀ {M₀ : Type u_3} {M : Type u_4} [inst : CommMonoidWithZero M] {S : Finset M₀} {p : M},
  Prime p → ∀ (g : M₀ → M), p ∣ S.prod g ↔ ∃ a ∈ S, p ∣ g a

theorem Prime.not_dvd_finsetProd E1 #

∀ {M₀ : Type u_3} {M : Type u_4} [inst : CommMonoidWithZero M] {S : Finset M₀} {p : M},
  Prime p → ∀ {g : M₀ → M}, (∀ a ∈ S, ¬p ∣ g a) → ¬p ∣ S.prod g

theorem Prime.dvd_finsuppProd_iff E0 #

∀ {M₀ : Type u_3} {M : Type u_4} [inst : CommMonoidWithZero M] {f : M₀ →₀ M} {g : M₀ → M → ℕ} {p : ℕ},
  Prime p → (p ∣ f.prod g ↔ ∃ a ∈ f.support, p ∣ g a (f a))

theorem Prime.not_dvd_finsuppProd E1 #

∀ {M₀ : Type u_3} {M : Type u_4} [inst : CommMonoidWithZero M] {f : M₀ →₀ M} {g : M₀ → M → ℕ} {p : ℕ},
  Prime p → (∀ a ∈ f.support, ¬p ∣ g a (f a)) → ¬p ∣ f.prod g