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 / V05. Groups

Mathlib.Algebra.Squarefree.Basic

39 declarations. Mathlib docs · Source

Squarefree elements of monoids

An element of a monoid is squarefree when it is not divisible by any squares except the squares of units.

Results about squarefree natural numbers are proved in Data.Nat.Squarefree.

Main Definitions

  • Squarefree r indicates that r is only divisible by x * x if x is a unit.

Main Results

  • multiplicity.squarefree_iff_emultiplicity_le_one: x is Squarefree iff for every y, either emultiplicity y x ≤ 1 or IsUnit y.
  • UniqueFactorizationMonoid.squarefree_iff_nodup_factors: A nonzero element x of a unique factorization monoid is squarefree iff factors x has no duplicate factors.

Tags

squarefree, multiplicity

def Squarefree E3 #

{R : Type u_1} → [Monoid R] → R → Prop

An element of a monoid is squarefree if the only squares that divide it are the squares of units.

theorem IsRelPrime.of_squarefree_mul E1 #

∀ {R : Type u_1} [inst : CommMonoid R] {m n : R}, Squarefree (m * n) → IsRelPrime m n

theorem IsUnit.squarefree E0 #

∀ {R : Type u_1} [inst : CommMonoid R] {x : R}, IsUnit x → Squarefree x

theorem squarefree_one E1 #

∀ {R : Type u_1} [inst : CommMonoid R], Squarefree 1

theorem not_squarefree_zero E0 #

∀ {R : Type u_1} [inst : MonoidWithZero R] [Nontrivial R], ¬Squarefree 0

theorem Squarefree.ne_zero E1 #

∀ {R : Type u_1} [inst : MonoidWithZero R] [Nontrivial R] {m : R}, Squarefree m → m ≠ 0

theorem Irreducible.squarefree E0 #

∀ {R : Type u_1} [inst : CommMonoid R] {x : R}, Irreducible x → Squarefree x

theorem Prime.squarefree E0 #

∀ {R : Type u_1} [inst : CommMonoidWithZero R] [IsCancelMulZero R] {x : R}, Prime x → Squarefree x

theorem Squarefree.of_mul_left E1 #

∀ {R : Type u_1} [inst : Monoid R] {m n : R}, Squarefree (m * n) → Squarefree m

theorem Squarefree.of_mul_right E1 #

∀ {R : Type u_1} [inst : CommMonoid R] {m n : R}, Squarefree (m * n) → Squarefree n

theorem Squarefree.squarefree_of_dvd E1 #

∀ {R : Type u_1} [inst : Monoid R] {x y : R}, x ∣ y → Squarefree y → Squarefree x

theorem Associated.squarefree_iff E0 #

∀ {R : Type u_1} [inst : Monoid R] {x y : R}, Associated x y → (Squarefree x ↔ Squarefree y)

theorem Squarefree.pow_dvd_of_pow_dvd E1 #

∀ {R : Type u_1} [inst : Monoid R] {x y : R} {n : ℕ}, Squarefree y → x ^ n ∣ y → x ^ n ∣ x

theorem Squarefree.gcd_right E1 #

∀ {α : Type u_2} [inst : CommMonoidWithZero α] [inst_1 : GCDMonoid α] (a : α) {b : α},
  Squarefree b → Squarefree (gcd a b)

theorem Squarefree.gcd_left E1 #

∀ {α : Type u_2} [inst : CommMonoidWithZero α] [inst_1 : GCDMonoid α] {a : α} (b : α),
  Squarefree a → Squarefree (gcd a b)

theorem squarefree_iff_emultiplicity_le_one E1 #

∀ {R : Type u_1} [inst : CommMonoid R] (r : R), Squarefree r ↔ ∀ (x : R), emultiplicity x r ≤ 1 ∨ IsUnit x

theorem squarefree_iff_no_irreducibles E1 #

∀ {R : Type u_1} [inst : CommMonoidWithZero R] [WfDvdMonoid R] {x : R},
  x ≠ 0 → (Squarefree x ↔ ∀ (p : R), Irreducible p → ¬p * p ∣ x)

theorem irreducible_sq_not_dvd_iff_eq_zero_and_no_irreducibles_or_squarefree E1 #

∀ {R : Type u_1} [inst : CommMonoidWithZero R] [WfDvdMonoid R] (r : R),
  (∀ (x : R), Irreducible x → ¬x * x ∣ r) ↔ (r = 0 ∧ ∀ (x : R), ¬Irreducible x) ∨ Squarefree r

theorem squarefree_iff_irreducible_sq_not_dvd_of_ne_zero E1 #

∀ {R : Type u_1} [inst : CommMonoidWithZero R] [WfDvdMonoid R] {r : R},
  r ≠ 0 → (Squarefree r ↔ ∀ (x : R), Irreducible x → ¬x * x ∣ r)

theorem squarefree_iff_irreducible_sq_not_dvd_of_exists_irreducible E1 #

∀ {R : Type u_1} [inst : CommMonoidWithZero R] [WfDvdMonoid R] {r : R},
  (∃ x, Irreducible x) → (Squarefree r ↔ ∀ (x : R), Irreducible x → ¬x * x ∣ r)

theorem Squarefree.isRadical E1 #

∀ {R : Type u_1} [inst : CommMonoidWithZero R] [DecompositionMonoid R] {x : R}, Squarefree x → IsRadical x

theorem Squarefree.dvd_pow_iff_dvd E1 #

∀ {R : Type u_1} [inst : CommMonoidWithZero R] [DecompositionMonoid R] {x y : R} {n : ℕ},
  Squarefree x → n ≠ 0 → (x ∣ y ^ n ↔ x ∣ y)

theorem IsRadical.squarefree E1 #

∀ {R : Type u_1} [inst : CommMonoidWithZero R] [IsCancelMulZero R] {x : R}, x ≠ 0 → IsRadical x → Squarefree x

theorem Squarefree.pow_dvd_of_squarefree_of_pow_succ_dvd_mul_right E1 #

∀ {R : Type u_1} [inst : CommMonoidWithZero R] [IsCancelMulZero R] {x y p : R} {k : ℕ},
  Squarefree x → Prime p → p ^ (k + 1) ∣ x * y → p ^ k ∣ y

theorem Squarefree.pow_dvd_of_squarefree_of_pow_succ_dvd_mul_left E1 #

∀ {R : Type u_1} [inst : CommMonoidWithZero R] [IsCancelMulZero R] {x y p : R} {k : ℕ},
  Squarefree y → Prime p → p ^ (k + 1) ∣ x * y → p ^ k ∣ x

theorem Squarefree.dvd_of_squarefree_of_mul_dvd_mul_right E1 #

∀ {R : Type u_1} [inst : CommMonoidWithZero R] [IsCancelMulZero R] {x y d : R} [DecompositionMonoid R],
  Squarefree x → d * d ∣ x * y → d ∣ y

theorem Squarefree.dvd_of_squarefree_of_mul_dvd_mul_left E1 #

∀ {R : Type u_1} [inst : CommMonoidWithZero R] [IsCancelMulZero R] {x y d : R} [DecompositionMonoid R],
  Squarefree y → d * d ∣ x * y → d ∣ x

theorem Squarefree.dvd_of_isSquare_mul E1 #

∀ {R : Type u_1} [inst : CommMonoidWithZero R] [IsCancelMulZero R] {x y : R} [DecompositionMonoid R],
  Squarefree x → IsSquare (x * y) → x ∣ y

If x is squarefree and x * y is a square, then x ∣ y.

theorem Squarefree.associated_of_isSquare_mul E1 #

∀ {R : Type u_1} [inst : CommMonoidWithZero R] [IsCancelMulZero R] {x y : R} [DecompositionMonoid R],
  Squarefree x → Squarefree y → IsSquare (x * y) → Associated x y

Two squarefree elements whose product is a square are associated.

theorem squarefree_mul_iff E0 #

∀ {R : Type u_1} [inst : CommMonoidWithZero R] [IsCancelMulZero R] {x y : R} [DecompositionMonoid R],
  Squarefree (x * y) ↔ IsRelPrime x y ∧ Squarefree x ∧ Squarefree y

x * y is square-free iff x and y have no common factors and are themselves square-free.

theorem Finset.squarefree_prod_of_pairwise_isCoprime E1 #

∀ {R : Type u_1} [inst : CommMonoidWithZero R] [IsCancelMulZero R] [DecompositionMonoid R] {ι : Type u_2} {s : Finset ι}
  {f : ι → R}, (↑s).Pairwise (Function.onFun IsRelPrime f) → (∀ i ∈ s, Squarefree (f i)) → Squarefree (∏ i ∈ s, f i)

theorem isRadical_iff_squarefree_or_zero E1 #

∀ {R : Type u_1} [inst : CommMonoidWithZero R] [IsCancelMulZero R] {x : R} [DecompositionMonoid R],
  IsRadical x ↔ Squarefree x ∨ x = 0

theorem isRadical_iff_squarefree_of_ne_zero E1 #

∀ {R : Type u_1} [inst : CommMonoidWithZero R] [IsCancelMulZero R] {x : R} [DecompositionMonoid R],
  x ≠ 0 → (IsRadical x ↔ Squarefree x)

theorem exists_squarefree_dvd_pow_of_ne_zero E1 #

∀ {R : Type u_1} [inst : CommMonoidWithZero R] [UniqueFactorizationMonoid R] {x : R},
  x ≠ 0 → ∃ y n, Squarefree y ∧ y ∣ x ∧ x ∣ y ^ n

theorem exists_sq_mul_squarefree E1 #

∀ {R : Type u_1} [inst : CommMonoidWithZero R] [UniqueFactorizationMonoid R] (x : R),
  ∃ e d, e ^ 2 * d = x ∧ Squarefree d

Every element of a unique factorization monoid is a square times a squarefree element.

theorem IsSquare.of_mul_right E1 #

∀ {R : Type u_1} [inst : CommMonoidWithZero R] [UniqueFactorizationMonoid R] {x y : R},
  y ≠ 0 → IsSquare (x * y) → IsSquare y → IsSquare x

A nonzero square factor can be cancelled from a square.

theorem UniqueFactorizationMonoid.squarefree_iff_nodup_normalizedFactors E1 #

∀ {R : Type u_1} [inst : CommMonoidWithZero R] [inst_1 : UniqueFactorizationMonoid R] [inst_2 : NormalizationMonoid R]
  {x : R}, x ≠ 0 → (Squarefree x ↔ (UniqueFactorizationMonoid.normalizedFactors x).Nodup)

theorem Int.squarefree_natAbs E0 #

∀ {n : ℤ}, Squarefree n.natAbs ↔ Squarefree n

theorem Int.squarefree_natCast E0 #

∀ {n : ℕ}, Squarefree ↑n ↔ Squarefree n