Documentation

Mathlib.Algebra.GCDMonoid.Nat

ℕ and ℤ are normalized GCD monoids. #

Main statements #

Tags #

natural numbers, integers, normalization monoid, gcd monoid, greatest common divisor

@[instance_reducible]

ℕ is a GCDMonoid.

Equations
  • One or more equations did not get rendered due to their size.
theorem gcd_eq_nat_gcd (m n : ℕ) :
gcd m n = m.gcd n
theorem lcm_eq_nat_lcm (m n : ℕ) :
lcm m n = m.lcm n
@[instance_reducible]
Equations
  • One or more equations did not get rendered due to their size.
@[instance_reducible]
Equations
  • One or more equations did not get rendered due to their size.
@[deprecated Int.strongNormalizationMonoid (since := "2026-07-08")]

Alias of Int.strongNormalizationMonoid.

Equations
Instances For
    theorem Int.normUnit_eq (z : ℤ) :
    normUnit z = if 0 ≤ z then 1 else -1
    theorem Int.normalize_of_nonneg {z : ℤ} (h : 0 ≤ z) :
    theorem Int.normalize_of_nonpos {z : ℤ} (h : z ≤ 0) :
    theorem Int.normalize_coe_nat (n : ℕ) :
    normalize ↑n = ↑n
    theorem Int.eq_of_associated_of_nonneg {a b : ℤ} (h : Associated a b) (ha : 0 ≤ a) (hb : 0 ≤ b) :
    a = b
    @[instance_reducible]
    Equations
    • One or more equations did not get rendered due to their size.
    @[instance_reducible]
    Equations
    • One or more equations did not get rendered due to their size.
    theorem Int.coe_gcd (i j : ℤ) :
    ↑(i.gcd j) = GCDMonoid.gcd i j
    theorem Int.coe_lcm (i j : ℤ) :
    ↑(i.lcm j) = GCDMonoid.lcm i j
    theorem Int.natAbs_gcd (i j : ℤ) :
    theorem Int.natAbs_lcm (i j : ℤ) :
    theorem Int.gcd_nonneg (i j : ℤ) :
    theorem Int.lcm_nonneg (i j : ℤ) :
    theorem Int.gcd_eq_natAbs {a b : ℤ} :

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

    Equations
    • One or more equations did not get rendered due to their size.
    Instances For
      theorem Int.associated_iff {a b : ℤ} :
      Associated a b ↔ a = b ∨ a = -b