The areas / V09. Commutative algebra I: ideals, polynomials, factorization
Mathlib.RingTheory.UniqueFactorizationDomain.Multiplicity
19 declarations. Mathlib docs · Source
Unique factorization and multiplicity
Main results
-
UniqueFactorizationMonoid.emultiplicity_eq_count_normalizedFactors: The multiplicity of an irreducible factor of a nonzero element is exactly the number of times the normalized factor occurs in thenormalizedFactors. -
UniqueFactorizationMonoid.dvd_iff_multiplicity_le: A nonzero element divides a nonzero element iff its multiplicity at every prime is at most that of the other. -
UniqueFactorizationMonoid.associated_iff_multiplicity_eq: Two nonzero elements are associated iff they have the same multiplicity at every prime.
theorem WfDvdMonoid.max_power_factor' E1 #
∀ {α : Type u_1} [inst : CommMonoidWithZero α] [WfDvdMonoid α] {a₀ x : α},
a₀ ≠ 0 → ¬IsUnit x → ∃ n a, ¬x ∣ a ∧ a₀ = x ^ n * a
theorem WfDvdMonoid.max_power_factor E1 #
∀ {α : Type u_1} [inst : CommMonoidWithZero α] [WfDvdMonoid α] {a₀ x : α},
a₀ ≠ 0 → Irreducible x → ∃ n a, ¬x ∣ a ∧ a₀ = x ^ n * a
theorem FiniteMultiplicity.of_not_isUnit E1 #
∀ {α : Type u_1} [inst : CommMonoidWithZero α] [WfDvdMonoid α] [IsCancelMulZero α] {a b : α},
¬IsUnit a → b ≠ 0 → FiniteMultiplicity a b
theorem FiniteMultiplicity.of_prime_left E1 #
∀ {α : Type u_1} [inst : CommMonoidWithZero α] [WfDvdMonoid α] [IsCancelMulZero α] {a b : α},
Prime a → b ≠ 0 → FiniteMultiplicity a b
theorem Prime.finiteMultiplicity_iff_ne_zero E1 #
∀ {α : Type u_1} [inst : CommMonoidWithZero α] [WfDvdMonoid α] [IsCancelMulZero α] {a p : α},
Prime p → (FiniteMultiplicity p a ↔ a ≠ 0)
An element of a WfDvdMonoid has finite multiplicity at a prime iff it is nonzero.
theorem WfDvdMonoid.max_power_factor_of_finsupp E1 #
∀ {α : Type u_1} {ι : Type u_2} [inst : CommMonoidWithZero α] [WfDvdMonoid α] [IsCancelMulZero α] {b : α},
Irreducible b → ∀ {f : ι →₀ α}, 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' E1 #
∀ {α : Type u_1} {ι : Type u_2} [inst : CommMonoidWithZero α] [WfDvdMonoid α] [IsCancelMulZero α] {b : α},
Irreducible b →
∀ {f : ι →₀ α}, 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.
theorem UniqueFactorizationMonoid.le_emultiplicity_iff_replicate_le_normalizedFactors E1 #
∀ {R : Type u_1} [inst : CommMonoidWithZero R] [inst_1 : UniqueFactorizationMonoid R] [inst_2 : NormalizationMonoid R]
{a b : R} {n : ℕ},
Irreducible a →
b ≠ 0 →
(↑n ≤ emultiplicity a b ↔ Multiset.replicate n (normalize a) ≤ UniqueFactorizationMonoid.normalizedFactors b)
theorem UniqueFactorizationMonoid.emultiplicity_eq_count_normalizedFactors E3 #
∀ {R : Type u_1} [inst : CommMonoidWithZero R] [inst_1 : UniqueFactorizationMonoid R] [inst_2 : NormalizationMonoid R]
[inst_3 : DecidableEq R] {a b : R},
Irreducible a →
b ≠ 0 → emultiplicity a b = ↑(Multiset.count (normalize a) (UniqueFactorizationMonoid.normalizedFactors b))
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 _) _..
theorem UniqueFactorizationMonoid.multiplicity_eq_count_normalizedFactors E1 #
∀ {R : Type u_1} [inst : CommMonoidWithZero R] [inst_1 : UniqueFactorizationMonoid R] [inst_2 : NormalizationMonoid R]
[inst_3 : DecidableEq R] {a b : R},
Irreducible a → multiplicity a b = Multiset.count (normalize a) (UniqueFactorizationMonoid.normalizedFactors b)
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 E0 #
∀ {R : Type u_1} [inst : CommMonoidWithZero R] [inst_1 : UniqueFactorizationMonoid R] [inst_2 : NormalizationMonoid R]
[inst_3 : DecidableEq R] {p x : R},
Irreducible p →
normalize p = p →
∀ {n : ℕ}, p ^ n ∣ x → ¬p ^ (n + 1) ∣ x → Multiset.count p (UniqueFactorizationMonoid.normalizedFactors x) = n
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' E1 #
∀ {R : Type u_1} [inst : CommMonoidWithZero R] [inst_1 : UniqueFactorizationMonoid R] [inst_2 : NormalizationMonoid R]
[inst_3 : DecidableEq R] {p x : R},
p = 0 ∨ Irreducible p →
normalize p = p →
∀ {n : ℕ}, p ^ n ∣ x → ¬p ^ (n + 1) ∣ x → Multiset.count p (UniqueFactorizationMonoid.normalizedFactors x) = n
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.associated_finprod_pow_count E1 #
∀ {R : Type u_1} [inst : CommMonoidWithZero R] [inst_1 : UniqueFactorizationMonoid R] [inst_2 : NormalizationMonoid R]
[inst_3 : DecidableEq R] {x : R},
x ≠ 0 → Associated (∏ᶠ (p : R), p ^ Multiset.count p (UniqueFactorizationMonoid.normalizedFactors x)) x
theorem UniqueFactorizationMonoid.finprod_pow_count_eq_of_subsingleton_units E1 #
∀ {R : Type u_1} [inst : CommMonoidWithZero R] [inst_1 : UniqueFactorizationMonoid R] [inst_2 : NormalizationMonoid R]
[inst_3 : DecidableEq R] [Subsingleton Rˣ] {x : R},
x ≠ 0 → ∏ᶠ (p : R), p ^ Multiset.count p (UniqueFactorizationMonoid.normalizedFactors x) = x
theorem UniqueFactorizationMonoid.dvd_iff_emultiplicity_le E1 #
∀ {R : Type u_1} [inst : CommMonoidWithZero R] [UniqueFactorizationMonoid R] {a b : R},
a ≠ 0 → (a ∣ b ↔ ∀ (p : R), Prime p → emultiplicity p a ≤ emultiplicity p b)
theorem UniqueFactorizationMonoid.dvd_iff_multiplicity_le E3 #
∀ {R : Type u_1} [inst : CommMonoidWithZero R] [UniqueFactorizationMonoid R] {a b : R},
a ≠ 0 → 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.
theorem UniqueFactorizationMonoid.associated_iff_multiplicity_eq E3 #
∀ {R : Type u_1} [inst : CommMonoidWithZero R] [UniqueFactorizationMonoid R] {a b : R},
a ≠ 0 → b ≠ 0 → (Associated a b ↔ ∀ (p : R), Prime p → multiplicity p a = multiplicity p b)
Two nonzero elements of a UniqueFactorizationMonoid are associated iff they have the
same multiplicity at every prime.
theorem UniqueFactorizationMonoid.pow_dvd_pow_iff_dvd E1 #
∀ {R : Type u_1} [inst : CommMonoidWithZero R] [UniqueFactorizationMonoid R] {a b : R} {n : ℕ},
n ≠ 0 → (a ^ n ∣ b ^ n ↔ a ∣ b)
theorem UniqueFactorizationMonoid.hasFiniteMulSupport_fun_pow_multiplicity E1 #
∀ {R : Type u_1} [inst : CommMonoidWithZero R] [UniqueFactorizationMonoid R] {α : Type u_2} {M : Type u_3}
[inst_2 : CommMonoid M] [Subsingleton Rˣ] (f : α → M) {g : α → R},
Function.Injective g →
(∀ (s : α), Irreducible (g s)) → ∀ {r : R}, Function.HasFiniteMulSupport fun s ↦ f s ^ multiplicity (g s) r