Documentation

Mathlib.RingTheory.UniqueFactorizationDomain.Multiplicity

Unique factorization and multiplicity #

Main results #

theorem WfDvdMonoid.max_power_factor' {α : Type u_1} [CommMonoidWithZero α] [WfDvdMonoid α] {a₀ x : α} (h : a₀ ≠ 0) (hx : ¬IsUnit x) :
∃ (n : ℕ) (a : α), ¬x ∣ a ∧ a₀ = x ^ n * a
theorem WfDvdMonoid.max_power_factor {α : Type u_1} [CommMonoidWithZero α] [WfDvdMonoid α] {a₀ x : α} (h : a₀ ≠ 0) (hx : Irreducible x) :
∃ (n : ℕ) (a : α), ¬x ∣ a ∧ a₀ = x ^ n * a
theorem FiniteMultiplicity.of_not_isUnit {α : Type u_1} [CommMonoidWithZero α] [WfDvdMonoid α] [IsCancelMulZero α] {a b : α} (ha : ¬IsUnit a) (hb : b ≠ 0) :
theorem FiniteMultiplicity.of_prime_left {α : Type u_1} [CommMonoidWithZero α] [WfDvdMonoid α] [IsCancelMulZero α] {a b : α} (ha : Prime a) (hb : b ≠ 0) :

An element of a WfDvdMonoid has finite multiplicity at a prime iff it is nonzero.

theorem WfDvdMonoid.max_power_factor_of_finsupp {α : Type u_1} {ι : Type u_2} [CommMonoidWithZero α] [WfDvdMonoid α] [IsCancelMulZero α] {b : α} (hbI : Irreducible b) {f : ι →₀ α} (h0 : f ≠ 0) :
∃ (n : ℕ), (∀ (i : ι), b ^ n ∣ f i) ∧ ∃ (j : ι), ¬b ^ (n + 1) ∣ f j

Given a finitely supported function f : ι →₀ α we can factor the biggest power of some irreducible b : α out of f.

theorem WfDvdMonoid.max_power_factor_of_finsupp' {α : Type u_1} {ι : Type u_2} [CommMonoidWithZero α] [WfDvdMonoid α] [IsCancelMulZero α] {b : α} (hbI : Irreducible b) {f : ι →₀ α} (h0 : f ≠ 0) :
∃ (n : ℕ) (f' : ι →₀ α), f'.support = f.support ∧ (∀ (i : ι), f i = b ^ n * f' i) ∧ ∃ (j : ι), ¬b ∣ f' j

Given a finitely supported function f : ι →₀ α we can factor the biggest power of some irreducible b : α out of f.

This is a variant of WfDvdMonoid.max_power_factor_of_finsupp where the function obtained by dividing by b ^ n is explicit.

The multiplicity of an irreducible factor of a nonzero element is exactly the number of times the normalized factor occurs in the normalizedFactors.

For a version using multiplicity, see multiplicity_eq_count_normalizedFactors.

See also count_normalizedFactors_eq which expands the definition of multiplicity to produce a specification for count (normalizedFactors _) _..

The multiplicity of an irreducible factor of a nonzero element is exactly the number of times the normalized factor occurs in the normalizedFactors.

For a version using emultiplicity, see emultiplicity_eq_count_normalizedFactors.

theorem UniqueFactorizationMonoid.count_normalizedFactors_eq {R : Type u_1} [CommMonoidWithZero R] [UniqueFactorizationMonoid R] [NormalizationMonoid R] [DecidableEq R] {p x : R} (hp : Irreducible p) (hnorm : normalize p = p) {n : ℕ} (hle : p ^ n ∣ x) (hlt : ¬p ^ (n + 1) ∣ x) :

The number of times an irreducible factor p appears in normalizedFactors x is defined by the number of times it divides x.

See also multiplicity_eq_count_normalizedFactors if n is given by multiplicity p x.

theorem UniqueFactorizationMonoid.count_normalizedFactors_eq' {R : Type u_1} [CommMonoidWithZero R] [UniqueFactorizationMonoid R] [NormalizationMonoid R] [DecidableEq R] {p x : R} (hp : p = 0 ∨ Irreducible p) (hnorm : normalize p = p) {n : ℕ} (hle : p ^ n ∣ x) (hlt : ¬p ^ (n + 1) ∣ x) :

The number of times an irreducible factor p appears in normalizedFactors x is defined by the number of times it divides x. This is a slightly more general version of UniqueFactorizationMonoid.count_normalizedFactors_eq that allows p = 0.

See also multiplicity_eq_count_normalizedFactors if n is given by multiplicity p x.

theorem UniqueFactorizationMonoid.dvd_iff_multiplicity_le {R : Type u_1} [CommMonoidWithZero R] [UniqueFactorizationMonoid R] {a b : R} (ha : a ≠ 0) (hb : b ≠ 0) :
a ∣ b ↔ ∀ (p : R), Prime p → multiplicity p a ≤ multiplicity p b

A nonzero element of a UniqueFactorizationMonoid divides a nonzero element iff its multiplicity at every prime is at most that of the other.

Two nonzero elements of a UniqueFactorizationMonoid are associated iff they have the same multiplicity at every prime.

theorem UniqueFactorizationMonoid.hasFiniteMulSupport_fun_pow_multiplicity {R : Type u_1} [CommMonoidWithZero R] [UniqueFactorizationMonoid R] {α : Type u_2} {M : Type u_3} [CommMonoid M] [Subsingleton Rˣ] (f : α → M) {g : α → R} (hgi : Function.Injective g) (hg : ∀ (s : α), Irreducible (g s)) {r : R} :
Function.HasFiniteMulSupport fun (s : α) => f s ^ multiplicity (g s) r