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.Algebra.GCDMonoid.Nat

26 declarations and 2 deprecated aliases. Mathlib docs · Source

instance instGCDMonoidNat E0 #

GCDMonoid ℕ

ℕ is a GCDMonoid.

theorem gcd_eq_nat_gcd E1 #

∀ (m n : ℕ), gcd m n = m.gcd n

theorem lcm_eq_nat_lcm E1 #

∀ (m n : ℕ), lcm m n = m.lcm n

instance instStrongNormalizedGCDMonoidNat E0 #

StrongNormalizedGCDMonoid ℕ

instance Int.strongNormalizationMonoid E0 #

StrongNormalizationMonoid ℤ

theorem Int.normUnit_eq E0 #

∀ (z : ℤ), normUnit z = if 0 ≤ z then 1 else -1

theorem Int.normalize_of_nonneg E1 #

∀ {z : ℤ}, 0 ≤ z → normalize z = z

theorem Int.normalize_of_nonpos E1 #

∀ {z : ℤ}, z ≤ 0 → normalize z = -z

theorem Int.normalize_natCast E1 #

∀ (n : ℕ), normalize ↑n = ↑n

theorem Int.abs_eq_normalize E1 #

∀ (z : ℤ), |z| = normalize z

theorem Int.nonneg_of_normalize_eq_self E1 #

∀ {z : ℤ}, normalize z = z → 0 ≤ z

theorem Int.nonneg_iff_normalize_eq_self E1 #

∀ (z : ℤ), normalize z = z ↔ 0 ≤ z

instance Int.instGCDMonoid E0 #

GCDMonoid ℤ

instance Int.instStrongNormalizedGCDMonoid E0 #

StrongNormalizedGCDMonoid ℤ

theorem Int.coe_gcd E0 #

∀ (i j : ℤ), ↑(i.gcd j) = gcd i j

theorem Int.coe_lcm E0 #

∀ (i j : ℤ), ↑(i.lcm j) = lcm i j

theorem Int.natAbs_gcd E1 #

∀ (i j : ℤ), (gcd i j).natAbs = i.gcd j

theorem Int.natAbs_lcm E1 #

∀ (i j : ℤ), (lcm i j).natAbs = i.lcm j

theorem Int.gcd_nonneg E1 #

∀ (i j : ℤ), 0 ≤ gcd i j

theorem Int.lcm_nonneg E1 #

∀ (i j : ℤ), 0 ≤ lcm i j

theorem Int.exists_unit_of_abs E1 #

∀ (a : ℤ), ∃ u, ∃ (_ : IsUnit u), ↑a.natAbs = u * a

theorem Int.gcd_eq_natAbs E1 #

∀ {a b : ℤ}, a.gcd b = a.natAbs.gcd b.natAbs

def associatesIntEquivNat E1 #

Associates ℤ ≃ ℕ

Maps an associate class of integers consisting of -n, n to n : ℕ

theorem Int.associated_natAbs E1 #

∀ (k : ℤ), Associated k ↑k.natAbs

theorem Int.associated_iff_natAbs E1 #

∀ {a b : ℤ}, Associated a b ↔ a.natAbs = b.natAbs

theorem Int.associated_iff E0 #

∀ {a b : ℤ}, Associated a b ↔ a = b ∨ a = -b

Deprecated aliases

NameNew nameSince
Int.normalizationMonoidInt.strongNormalizationMonoid2026-07-08
Int.normalize_coe_natInt.normalize_natCast2026-10-13