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 / V09. Commutative algebra I: ideals, polynomials, factorization

Mathlib.RingTheory.EuclideanDomain

9 declarations. Mathlib docs · Source

theorem left_div_gcd_ne_zero E1 #

∀ {R : Type u_1} [inst : EuclideanDomain R] [inst_1 : GCDMonoid R] {p q : R}, p ≠ 0 → p / gcd p q ≠ 0

theorem right_div_gcd_ne_zero E1 #

∀ {R : Type u_1} [inst : EuclideanDomain R] [inst_1 : GCDMonoid R] {p q : R}, q ≠ 0 → q / gcd p q ≠ 0

theorem isCoprime_div_gcd_div_gcd E1 #

∀ {R : Type u_1} [inst : EuclideanDomain R] [inst_1 : GCDMonoid R] {p q : R},
  q ≠ 0 → IsCoprime (p / gcd p q) (q / gcd p q)

theorem isCoprime_div_gcd_div_gcd_of_gcd_ne_zero E1 #

∀ {R : Type u_1} [inst : EuclideanDomain R] [inst_1 : GCDMonoid R] {p q : R},
  gcd p q ≠ 0 → IsCoprime (p / gcd p q) (q / gcd p q)

This is a version of isCoprime_div_gcd_div_gcd which replaces the q ≠ 0 assumption with gcd p q ≠ 0.

def EuclideanDomain.gcdMonoid E1 #

(R : Type u_1) → [inst : EuclideanDomain R] → [DecidableEq R] → GCDMonoid R

Create a GCDMonoid whose GCDMonoid.gcd matches EuclideanDomain.gcd.

theorem EuclideanDomain.span_gcd E1 #

∀ {α : Type u_1} [inst : EuclideanDomain α] [inst_1 : DecidableEq α] (x y : α),
  Ideal.span {EuclideanDomain.gcd x y} = Ideal.span {x, y}

theorem EuclideanDomain.gcd_isUnit_iff E0 #

∀ {α : Type u_1} [inst : EuclideanDomain α] [inst_1 : DecidableEq α] {x y : α},
  IsUnit (EuclideanDomain.gcd x y) ↔ IsCoprime x y

theorem EuclideanDomain.isCoprime_of_dvd E1 #

∀ {α : Type u_1} [inst : EuclideanDomain α] {x y : α},
  ¬(x = 0 ∧ y = 0) → (∀ z ∈ nonunits α, z ≠ 0 → z ∣ x → ¬z ∣ y) → IsCoprime x y

theorem EuclideanDomain.dvd_or_coprime E1 #

∀ {α : Type u_1} [inst : EuclideanDomain α] (x y : α), Irreducible x → x ∣ y ∨ IsCoprime x y