The areas / V09. Commutative algebra I: ideals, polynomials, factorization
Mathlib.Algebra.GCDMonoid.Basic
226 declarations and 2 deprecated aliases. Mathlib docs · Source
Monoids with normalization functions, gcd, and lcm
This file defines extra structures on CommMonoidWithZeros.
Main Definitions
NormalizationMonoidStrongNormalizationMonoidGCDMonoidIsGCDMonoidNormalizedGCDMonoidStrongNormalizedGCDMonoidgcdMonoidOfGCD,gcdMonoidOfExistsGCD,normalizedGCDMonoidOfGCD,normalizedGCDMonoidOfExistsGCDgcdMonoidOfLCM,gcdMonoidOfExistsLCM,normalizedGCDMonoidOfLCM,normalizedGCDMonoidOfExistsLCM
For the NormalizedGCDMonoid instances on ℕ and ℤ, see Mathlib/Algebra/GCDMonoid/Nat.lean.
Implementation notes
-
NormalizationMonoidis defined by assigning to each element anormUnitsuch that multiplying by that unit normalizes the monoid, andnormalizeis an idempotent function. This definition as currently implemented does casework on0. -
StrongNormalizationMonoidfurther requiresnormalizeto be a monoid homomorphism. -
GCDMonoidcontains the definitions ofgcdandlcmwith the usual properties. They are both determined up to a unit. -
IsGCDMonoidis the predicate for the existence of aGCDMonoidstructure. -
NormalizedGCDMonoidextendsNormalizationMonoid, so thegcdandlcmare always normalized. This makesgcds of polynomials easier to work with, but excludes Euclidean domains, and monoids without zero. -
StrongNormalizedGCDMonoidsimilarly extendsStrongNormalizationMonoid. -
gcdMonoidOfGCDandnormalizedGCDMonoidOfGCDnoncomputably construct aGCDMonoid(resp.NormalizedGCDMonoid) structure just from thegcdand its properties. -
gcdMonoidOfExistsGCDandnormalizedGCDMonoidOfExistsGCDnoncomputably construct aGCDMonoid(resp.NormalizedGCDMonoid) structure just from a proof that any two elements have a (not necessarily normalized)gcd. -
gcdMonoidOfLCMandnormalizedGCDMonoidOfLCMnoncomputably construct aGCDMonoid(resp.NormalizedGCDMonoid) structure just from thelcmand its properties. -
gcdMonoidOfExistsLCMandnormalizedGCDMonoidOfExistsLCMnoncomputably construct aGCDMonoid(resp.NormalizedGCDMonoid) structure just from a proof that any two elements have a (not necessarily normalized)lcm.
TODO
- Port GCD facts about nats, definition of coprime
- Generalize normalization monoids to commutative (cancellative) monoids with or without zero
Tags
divisibility, gcd, lcm, normalize
def NormalizationMonoid.ctorIdx E1 #
{α : Type u_2} → {inst : MonoidWithZero α} → NormalizationMonoid α → ℕ
def StrongNormalizedGCDMonoid.ctorIdx E1 #
{α : Type u_2} → {inst : CommMonoidWithZero α} → StrongNormalizedGCDMonoid α → ℕ
def StrongNormalizationMonoid.ctorIdx E1 #
{α : Type u_2} → {inst : CommMonoidWithZero α} → StrongNormalizationMonoid α → ℕ
theorem GCDMonoid.mk.congr_simp E1 #
∀ {α : Type u_2} [inst : CommMonoidWithZero α] [toIsCancelMulZero : IsCancelMulZero α] (gcd gcd_1 : α → α → α)
(e_gcd : gcd = gcd_1) (lcm lcm_1 : α → α → α) (e_lcm : lcm = lcm_1) (gcd_dvd_left : ∀ (a b : α), gcd a b ∣ a)
(gcd_dvd_right : ∀ (a b : α), gcd a b ∣ b) (dvd_gcd : ∀ {a b c : α}, a ∣ c → a ∣ b → a ∣ gcd c b)
(gcd_mul_lcm : ∀ (a b : α), Associated (gcd a b * lcm a b) (a * b)) (lcm_zero_left : ∀ (a : α), lcm 0 a = 0)
(lcm_zero_right : ∀ (a : α), lcm a 0 = 0),
{ toIsCancelMulZero := toIsCancelMulZero, gcd := gcd, lcm := lcm, gcd_dvd_left := gcd_dvd_left,
gcd_dvd_right := gcd_dvd_right, dvd_gcd := dvd_gcd, gcd_mul_lcm := gcd_mul_lcm, lcm_zero_left := lcm_zero_left,
lcm_zero_right := lcm_zero_right } =
{ toIsCancelMulZero := toIsCancelMulZero, gcd := gcd_1, lcm := lcm_1, gcd_dvd_left := ⋯, gcd_dvd_right := ⋯,
dvd_gcd := ⋯, gcd_mul_lcm := ⋯, lcm_zero_left := ⋯, lcm_zero_right := ⋯ }
def NormalizedGCDMonoid.ctorIdx E1 #
{α : Type u_2} → {inst : CommMonoidWithZero α} → NormalizedGCDMonoid α → ℕ
def GCDMonoid.ctorIdx E1 #
{α : Type u_2} → {inst : CommMonoidWithZero α} → GCDMonoid α → ℕ
class NormalizationMonoid E3 #
(α : Type u_2) → [MonoidWithZero α] → Type u_2
Normalization monoid: multiplying with normUnit gives a normal form for associated
elements.
ctor NormalizationMonoid.mk E0 #
{α : Type u_2} →
[inst : MonoidWithZero α] →
(normUnit : α → αˣ) →
normUnit 0 = 1 →
normUnit 1 = 1 → (∀ {a : α} (u : αˣ), a ≠ 0 → normUnit (a * ↑u) = u⁻¹ * normUnit a) → NormalizationMonoid α
abbrev NormalizationMonoid.normUnit E1 #
{α : Type u_2} → {inst : MonoidWithZero α} → [self : NormalizationMonoid α] → α → αˣ
normUnit assigns to each element of the monoid a unit of the monoid.
theorem NormalizationMonoid.normUnit_zero E0 #
∀ {α : Type u_2} {inst : MonoidWithZero α} [self : NormalizationMonoid α], normUnit 0 = 1
theorem NormalizationMonoid.normUnit_one E0 #
∀ {α : Type u_2} {inst : MonoidWithZero α} [self : NormalizationMonoid α], normUnit 1 = 1
theorem NormalizationMonoid.normUnit_mul_units E1 #
∀ {α : Type u_2} {inst : MonoidWithZero α} [self : NormalizationMonoid α] {a : α} (u : αˣ),
a ≠ 0 → normUnit (a * ↑u) = u⁻¹ * normUnit a
The condition that ensures associated elements are normalized to the same element.
abbrev NormalizationMonoid.ofRightInverse E1 #
{α : Type u_2} →
[inst : MonoidWithZero α] →
[IsLeftCancelMulZero α] →
(out : Associates α → α) → (∀ (a : Associates α), Associates.mk (out a) = a) → out 1 = 1 → NormalizationMonoid α
Construct a NormalizationMonoid from a right inverse of Associates.mk.
instance instNonemptyNormalizationMonoidOfIsLeftCancelMulZero E0 #
∀ (α : Type u_2) [inst : MonoidWithZero α] [IsLeftCancelMulZero α], Nonempty (NormalizationMonoid α)
A cancellative monoid with zero always admits a NormalizationMonoid structure.
class StrongNormalizationMonoid E3 #
(α : Type u_2) → [CommMonoidWithZero α] → Type u_2
Strong normalization monoid: multiplying with normUnit gives a normal form for associated
elements. It is stronger in that it ensures the normalization map is a monoid homomorphism.
instance StrongNormalizationMonoid.toNormalizationMonoid E0 #
{α : Type u_2} → {inst : CommMonoidWithZero α} → [self : StrongNormalizationMonoid α] → NormalizationMonoid α
ctor StrongNormalizationMonoid.mk E0 #
{α : Type u_2} →
[inst : CommMonoidWithZero α] →
[toNormalizationMonoid : NormalizationMonoid α] →
(∀ {a b : α}, a ≠ 0 → b ≠ 0 → normUnit (a * b) = normUnit a * normUnit b) →
(∀ (u : αˣ), normUnit ↑u = u⁻¹) → StrongNormalizationMonoid α
theorem StrongNormalizationMonoid.normUnit_mul E0 #
∀ {α : Type u_2} {inst : CommMonoidWithZero α} [self : StrongNormalizationMonoid α] {a b : α},
a ≠ 0 → b ≠ 0 → normUnit (a * b) = normUnit a * normUnit b
The proposition that normUnit respects multiplication of non-zero elements.
theorem StrongNormalizationMonoid.normUnit_coe_units E1 #
∀ {α : Type u_2} {inst : CommMonoidWithZero α} [self : StrongNormalizationMonoid α] (u : αˣ), normUnit ↑u = u⁻¹
The proposition that normUnit maps units to their inverses.
theorem normUnit_coe_units E0 #
∀ {α : Type u_1} [inst : MonoidWithZero α] [inst_1 : NormalizationMonoid α] (u : αˣ), normUnit ↑u = u⁻¹
def normalize E1 #
{α : Type u_1} → [inst : MonoidWithZero α] → [NormalizationMonoid α] → α → α
Chooses an element of each associate class, by multiplying by normUnit
theorem associated_normalize E1 #
∀ {α : Type u_1} [inst : MonoidWithZero α] [inst_1 : NormalizationMonoid α] (x : α), Associated x (normalize x)
theorem normalize_associated E1 #
∀ {α : Type u_1} [inst : MonoidWithZero α] [inst_1 : NormalizationMonoid α] (x : α), Associated (normalize x) x
theorem associated_normalize_iff E0 #
∀ {α : Type u_1} [inst : MonoidWithZero α] [inst_1 : NormalizationMonoid α] {x y : α},
Associated x (normalize y) ↔ Associated x y
theorem normalize_associated_iff E0 #
∀ {α : Type u_1} [inst : MonoidWithZero α] [inst_1 : NormalizationMonoid α] {x y : α},
Associated (normalize x) y ↔ Associated x y
theorem Associates.mk_normalize E1 #
∀ {α : Type u_1} [inst : MonoidWithZero α] [inst_1 : NormalizationMonoid α] (x : α),
Associates.mk (normalize x) = Associates.mk x
theorem normalize_apply E0 #
∀ {α : Type u_1} [inst : MonoidWithZero α] [inst_1 : NormalizationMonoid α] (x : α), normalize x = x * ↑(normUnit x)
theorem normalize_zero E0 #
∀ {α : Type u_1} [inst : MonoidWithZero α] [inst_1 : NormalizationMonoid α], normalize 0 = 0
theorem normalize_one E0 #
∀ {α : Type u_1} [inst : MonoidWithZero α] [inst_1 : NormalizationMonoid α], normalize 1 = 1
theorem normalize_coe_units E1 #
∀ {α : Type u_1} [inst : MonoidWithZero α] [inst_1 : NormalizationMonoid α] (u : αˣ), normalize ↑u = 1
theorem normalize_eq_zero E0 #
∀ {α : Type u_1} [inst : MonoidWithZero α] [inst_1 : NormalizationMonoid α] {x : α}, normalize x = 0 ↔ x = 0
theorem normalize_eq_one E1 #
∀ {α : Type u_1} [inst : MonoidWithZero α] [inst_1 : NormalizationMonoid α] {x : α}, normalize x = 1 ↔ IsUnit x
theorem normUnit_mul_normUnit E0 #
∀ {α : Type u_1} [inst : MonoidWithZero α] [inst_1 : NormalizationMonoid α] (a : α), normUnit (a * ↑(normUnit a)) = 1
theorem normalize_idem E0 #
∀ {α : Type u_1} [inst : MonoidWithZero α] [inst_1 : NormalizationMonoid α] (x : α),
normalize (normalize x) = normalize x
theorem normalize_eq_normalize_iff_associated E1 #
∀ {α : Type u_1} [inst : MonoidWithZero α] [inst_1 : NormalizationMonoid α] {a b : α},
normalize a = normalize b ↔ Associated a b
theorem dvd_normalize_iff E0 #
∀ {α : Type u_1} [inst : MonoidWithZero α] [inst_1 : NormalizationMonoid α] {a b : α}, a ∣ normalize b ↔ a ∣ b
theorem normalize_dvd_iff E0 #
∀ {α : Type u_1} [inst : MonoidWithZero α] [inst_1 : NormalizationMonoid α] {a b : α}, normalize a ∣ b ↔ a ∣ b
theorem irreducible_normalize_iff E0 #
∀ {α : Type u_1} [inst : MonoidWithZero α] [inst_1 : NormalizationMonoid α] {x : α},
Irreducible (normalize x) ↔ Irreducible x
theorem prime_normalize_iff E0 #
∀ {α : Type u_2} [inst : CommMonoidWithZero α] [inst_1 : NormalizationMonoid α] {x : α}, Prime (normalize x) ↔ Prime x
theorem normalize_eq_normalize E1 #
∀ {α : Type u_1} [inst : MonoidWithZero α] [inst_1 : NormalizationMonoid α] [IsLeftCancelMulZero α] {a b : α},
a ∣ b → b ∣ a → normalize a = normalize b
theorem normalize_eq_normalize_iff E0 #
∀ {α : Type u_1} [inst : MonoidWithZero α] [inst_1 : NormalizationMonoid α] [IsLeftCancelMulZero α] {x y : α},
normalize x = normalize y ↔ x ∣ y ∧ y ∣ x
theorem dvd_antisymm_of_normalize_eq E0 #
∀ {α : Type u_1} [inst : MonoidWithZero α] [inst_1 : NormalizationMonoid α] [IsLeftCancelMulZero α] {a b : α},
normalize a = a → normalize b = b → a ∣ b → b ∣ a → a = b
def Associates.out E1 #
{α : Type u_1} → [inst : MonoidWithZero α] → [NormalizationMonoid α] → Associates α → α
Maps an element of Associates back to the normalized element of its associate class
theorem Associates.out_mk E0 #
∀ {α : Type u_1} [inst : MonoidWithZero α] [inst_1 : NormalizationMonoid α] (a : α), (Associates.mk a).out = normalize a
theorem Associates.out_one E0 #
∀ {α : Type u_1} [inst : MonoidWithZero α] [inst_1 : NormalizationMonoid α], Associates.out 1 = 1
theorem Associates.out_top E0 #
∀ {α : Type u_1} [inst : MonoidWithZero α] [inst_1 : NormalizationMonoid α], ⊤.out = 0
theorem Associates.normalize_out E0 #
∀ {α : Type u_1} [inst : MonoidWithZero α] [inst_1 : NormalizationMonoid α] (a : Associates α), normalize a.out = a.out
theorem Associates.mk_out E0 #
∀ {α : Type u_1} [inst : MonoidWithZero α] [inst_1 : NormalizationMonoid α] (a : Associates α), Associates.mk a.out = a
theorem Associates.out_injective E1 #
∀ {α : Type u_1} [inst : MonoidWithZero α] [inst_1 : NormalizationMonoid α], Function.Injective Associates.out
theorem Associates.out_eq_zero_iff E0 #
∀ {α : Type u_1} [inst : MonoidWithZero α] [inst_1 : NormalizationMonoid α] {a : Associates α}, a.out = 0 ↔ a = 0
theorem Associates.out_zero E1 #
∀ {α : Type u_1} [inst : MonoidWithZero α] [inst_1 : NormalizationMonoid α], Associates.out 0 = 0
theorem Associates.out_mul' E1 #
∀ {α : Type u_2} [inst : CommMonoidWithZero α] [inst_1 : NormalizationMonoid α] (a b : Associates α),
Associated (a * b).out (a.out * b.out)
theorem Associates.dvd_out_iff E0 #
∀ {α : Type u_2} [inst : CommMonoidWithZero α] [inst_1 : NormalizationMonoid α] (a : α) (b : Associates α),
a ∣ b.out ↔ Associates.mk a ≤ b
theorem Associates.out_dvd_iff E0 #
∀ {α : Type u_2} [inst : CommMonoidWithZero α] [inst_1 : NormalizationMonoid α] (a : α) (b : Associates α),
b.out ∣ a ↔ b ≤ Associates.mk a
theorem normalize_mul E0 #
∀ {α : Type u_1} [inst : CommMonoidWithZero α] [inst_1 : StrongNormalizationMonoid α] (x y : α),
normalize (x * y) = normalize x * normalize y
def normalizeHom E1 #
{α : Type u_1} → [inst : CommMonoidWithZero α] → [StrongNormalizationMonoid α] → α →*₀ α
normalize in a StrongNormalizationMonoid as a MonoidWithZeroHom.
theorem coe_normalizeHom E0 #
∀ {α : Type u_1} [inst : CommMonoidWithZero α] [inst_1 : StrongNormalizationMonoid α], ⇑normalizeHom = normalize
theorem Associates.out_mul E1 #
∀ {α : Type u_1} [inst : CommMonoidWithZero α] [inst_1 : StrongNormalizationMonoid α] (a b : Associates α),
(a * b).out = a.out * b.out
class GCDMonoid E3 #
(α : Type u_2) → [CommMonoidWithZero α] → Type u_2
GCD monoid: a cancellative CommMonoidWithZero with gcd (greatest common divisor) and
lcm (least common multiple) operations, determined up to a unit. The type class focuses on gcd
and we derive the corresponding lcm facts from gcd.
instance GCDMonoid.toIsCancelMulZero E0 #
∀ {α : Type u_2} {inst : CommMonoidWithZero α} [self : GCDMonoid α], IsCancelMulZero α
ctor GCDMonoid.mk E0 #
{α : Type u_2} →
[inst : CommMonoidWithZero α] →
[toIsCancelMulZero : IsCancelMulZero α] →
(gcd lcm : α → α → α) →
(∀ (a b : α), gcd a b ∣ a) →
(∀ (a b : α), gcd a b ∣ b) →
(∀ {a b c : α}, a ∣ c → a ∣ b → a ∣ gcd c b) →
(∀ (a b : α), Associated (gcd a b * lcm a b) (a * b)) →
(∀ (a : α), lcm 0 a = 0) → (∀ (a : α), lcm a 0 = 0) → GCDMonoid α
abbrev GCDMonoid.gcd E3 #
{α : Type u_2} → {inst : CommMonoidWithZero α} → [self : GCDMonoid α] → α → α → α
The greatest common divisor between two elements.
abbrev GCDMonoid.lcm E3 #
{α : Type u_2} → {inst : CommMonoidWithZero α} → [self : GCDMonoid α] → α → α → α
The least common multiple between two elements.
theorem GCDMonoid.gcd_dvd_left E1 #
∀ {α : Type u_2} {inst : CommMonoidWithZero α} [self : GCDMonoid α] (a b : α), gcd a b ∣ a
The GCD is a divisor of the first element.
theorem GCDMonoid.gcd_dvd_right E1 #
∀ {α : Type u_2} {inst : CommMonoidWithZero α} [self : GCDMonoid α] (a b : α), gcd a b ∣ b
The GCD is a divisor of the second element.
theorem GCDMonoid.dvd_gcd E1 #
∀ {α : Type u_2} {inst : CommMonoidWithZero α} [self : GCDMonoid α] {a b c : α}, a ∣ c → a ∣ b → a ∣ gcd c b
Any common divisor of both elements is a divisor of the GCD.
theorem GCDMonoid.gcd_mul_lcm E1 #
∀ {α : Type u_2} {inst : CommMonoidWithZero α} [self : GCDMonoid α] (a b : α), Associated (gcd a b * lcm a b) (a * b)
The product of two elements is Associated with the product of their GCD and LCM.
theorem GCDMonoid.lcm_zero_left E0 #
∀ {α : Type u_2} {inst : CommMonoidWithZero α} [self : GCDMonoid α] (a : α), lcm 0 a = 0
0 is left-absorbing.
theorem GCDMonoid.lcm_zero_right E0 #
∀ {α : Type u_2} {inst : CommMonoidWithZero α} [self : GCDMonoid α] (a : α), lcm a 0 = 0
0 is right-absorbing.
class IsGCDMonoid E3 #
(α : Type u_2) → [CommMonoidWithZero α] → Prop
Existence of a GCDMonoid structure on a CommMonoidWithZero.
ctor IsGCDMonoid.intro E0 #
∀ {α : Type u_2} [inst : CommMonoidWithZero α] (a : GCDMonoid α), IsGCDMonoid α
class NormalizedGCDMonoid E3 #
(α : Type u_2) → [CommMonoidWithZero α] → Type u_2
Normalized GCD monoid: a cancellative CommMonoidWithZero with normalization and gcd
(greatest common divisor) and lcm (least common multiple) operations. In this setting gcd and
lcm form a bounded lattice on the associated elements where gcd is the infimum, lcm is the
supremum, 1 is bottom, and 0 is top. The type class focuses on gcd and we derive the
corresponding lcm facts from gcd.
ctor NormalizedGCDMonoid.mk E0 #
{α : Type u_2} →
[inst : CommMonoidWithZero α] →
[toNormalizationMonoid : NormalizationMonoid α] →
[toGCDMonoid : GCDMonoid α] →
(∀ (a b : α), normalize (gcd a b) = gcd a b) →
(∀ (a b : α), normalize (lcm a b) = lcm a b) → NormalizedGCDMonoid α
instance NormalizedGCDMonoid.toGCDMonoid E0 #
{α : Type u_2} → {inst : CommMonoidWithZero α} → [self : NormalizedGCDMonoid α] → GCDMonoid α
instance NormalizedGCDMonoid.toNormalizationMonoid E0 #
{α : Type u_2} → {inst : CommMonoidWithZero α} → [self : NormalizedGCDMonoid α] → NormalizationMonoid α
theorem NormalizedGCDMonoid.normalize_gcd E1 #
∀ {α : Type u_2} {inst : CommMonoidWithZero α} [self : NormalizedGCDMonoid α] (a b : α), normalize (gcd a b) = gcd a b
The GCD is normalized to itself.
theorem NormalizedGCDMonoid.normalize_lcm E1 #
∀ {α : Type u_2} {inst : CommMonoidWithZero α} [self : NormalizedGCDMonoid α] (a b : α), normalize (lcm a b) = lcm a b
The LCM is normalized to itself.
class StrongNormalizedGCDMonoid E3 #
(α : Type u_2) → [CommMonoidWithZero α] → Type u_2
Strong normalized GCD monoid: a NormalizedGCDMonoid whose normalize function is a
monoid homomorphism.
instance StrongNormalizedGCDMonoid.toGCDMonoid E0 #
{α : Type u_2} → {inst : CommMonoidWithZero α} → [self : StrongNormalizedGCDMonoid α] → GCDMonoid α
instance StrongNormalizedGCDMonoid.toStrongNormalizationMonoid E0 #
{α : Type u_2} → {inst : CommMonoidWithZero α} → [self : StrongNormalizedGCDMonoid α] → StrongNormalizationMonoid α
ctor StrongNormalizedGCDMonoid.mk E0 #
{α : Type u_2} →
[inst : CommMonoidWithZero α] →
[toStrongNormalizationMonoid : StrongNormalizationMonoid α] →
[toGCDMonoid : GCDMonoid α] →
(∀ (a b : α), normalize (gcd a b) = gcd a b) →
(∀ (a b : α), normalize (lcm a b) = lcm a b) → StrongNormalizedGCDMonoid α
theorem StrongNormalizedGCDMonoid.normalize_gcd E1 #
∀ {α : Type u_2} {inst : CommMonoidWithZero α} [self : StrongNormalizedGCDMonoid α] (a b : α),
normalize (gcd a b) = gcd a b
The GCD is normalized to itself.
theorem StrongNormalizedGCDMonoid.normalize_lcm E1 #
∀ {α : Type u_2} {inst : CommMonoidWithZero α} [self : StrongNormalizedGCDMonoid α] (a b : α),
normalize (lcm a b) = lcm a b
The LCM is normalized to itself.
instance instNormalizedGCDMonoidOfStrongNormalizedGCDMonoid E0 #
(α : Type u_2) → [inst : CommMonoidWithZero α] → [StrongNormalizedGCDMonoid α] → NormalizedGCDMonoid α
instance instNonemptyNormalizationMonoid E0 #
∀ {α : Type u_1} [inst : CommMonoidWithZero α] [NormalizationMonoid α], Nonempty (NormalizationMonoid α)
instance instNonemptyStrongNormalizationMonoid E0 #
∀ {α : Type u_1} [inst : CommMonoidWithZero α] [StrongNormalizationMonoid α], Nonempty (StrongNormalizationMonoid α)
instance instIsGCDMonoidOfGCDMonoid E0 #
∀ {α : Type u_1} [inst : CommMonoidWithZero α] [GCDMonoid α], IsGCDMonoid α
theorem IsGCDMonoid.isCancelMulZero E1 #
∀ (α : Type u_1) [inst : CommMonoidWithZero α] [h : IsGCDMonoid α], IsCancelMulZero α
theorem gcd_isUnit_iff_isRelPrime E1 #
∀ {α : Type u_1} [inst : CommMonoidWithZero α] [inst_1 : GCDMonoid α] {a b : α}, IsUnit (gcd a b) ↔ IsRelPrime a b
theorem normalize_gcd E0 #
∀ {α : Type u_1} [inst : CommMonoidWithZero α] [inst_1 : NormalizedGCDMonoid α] (a b : α), normalize (gcd a b) = gcd a b
theorem dvd_gcd_iff E0 #
∀ {α : Type u_1} [inst : CommMonoidWithZero α] [inst_1 : GCDMonoid α] (a b c : α), a ∣ gcd b c ↔ a ∣ b ∧ a ∣ c
theorem gcd_comm E1 #
∀ {α : Type u_1} [inst : CommMonoidWithZero α] [inst_1 : NormalizedGCDMonoid α] (a b : α), gcd a b = gcd b a
theorem gcd_comm' E1 #
∀ {α : Type u_1} [inst : CommMonoidWithZero α] [inst_1 : GCDMonoid α] (a b : α), Associated (gcd a b) (gcd b a)
theorem gcd_assoc E1 #
∀ {α : Type u_1} [inst : CommMonoidWithZero α] [inst_1 : NormalizedGCDMonoid α] (m n k : α),
gcd (gcd m n) k = gcd m (gcd n k)
theorem gcd_assoc' E1 #
∀ {α : Type u_1} [inst : CommMonoidWithZero α] [inst_1 : GCDMonoid α] (m n k : α),
Associated (gcd (gcd m n) k) (gcd m (gcd n k))
instance instCommutativeGcd E0 #
∀ {α : Type u_1} [inst : CommMonoidWithZero α] [inst_1 : NormalizedGCDMonoid α], Std.Commutative gcd
instance instAssociativeGcd E0 #
∀ {α : Type u_1} [inst : CommMonoidWithZero α] [inst_1 : NormalizedGCDMonoid α], Std.Associative gcd
theorem gcd_eq_normalize E1 #
∀ {α : Type u_1} [inst : CommMonoidWithZero α] [inst_1 : NormalizedGCDMonoid α] {a b c : α},
gcd a b ∣ c → c ∣ gcd a b → gcd a b = normalize c
theorem gcd_zero_left E0 #
∀ {α : Type u_1} [inst : CommMonoidWithZero α] [inst_1 : NormalizedGCDMonoid α] (a : α), gcd 0 a = normalize a
theorem gcd_zero_left' E1 #
∀ {α : Type u_1} [inst : CommMonoidWithZero α] [inst_1 : GCDMonoid α] (a : α), Associated (gcd 0 a) a
theorem gcd_zero_right E0 #
∀ {α : Type u_1} [inst : CommMonoidWithZero α] [inst_1 : NormalizedGCDMonoid α] (a : α), gcd a 0 = normalize a
theorem gcd_zero_right' E1 #
∀ {α : Type u_1} [inst : CommMonoidWithZero α] [inst_1 : GCDMonoid α] (a : α), Associated (gcd a 0) a
theorem gcd_eq_zero_iff E0 #
∀ {α : Type u_1} [inst : CommMonoidWithZero α] [inst_1 : GCDMonoid α] (a b : α), gcd a b = 0 ↔ a = 0 ∧ b = 0
theorem gcd_ne_zero_of_left E1 #
∀ {α : Type u_1} [inst : CommMonoidWithZero α] [inst_1 : GCDMonoid α] {a b : α}, a ≠ 0 → gcd a b ≠ 0
theorem gcd_ne_zero_of_right E1 #
∀ {α : Type u_1} [inst : CommMonoidWithZero α] [inst_1 : GCDMonoid α] {a b : α}, b ≠ 0 → gcd a b ≠ 0
theorem gcd_one_left E0 #
∀ {α : Type u_1} [inst : CommMonoidWithZero α] [inst_1 : NormalizedGCDMonoid α] (a : α), gcd 1 a = 1
theorem isUnit_gcd_one_left E0 #
∀ {α : Type u_1} [inst : CommMonoidWithZero α] [inst_1 : GCDMonoid α] (a : α), IsUnit (gcd 1 a)
theorem gcd_one_left' E1 #
∀ {α : Type u_1} [inst : CommMonoidWithZero α] [inst_1 : GCDMonoid α] (a : α), Associated (gcd 1 a) 1
theorem gcd_one_right E0 #
∀ {α : Type u_1} [inst : CommMonoidWithZero α] [inst_1 : NormalizedGCDMonoid α] (a : α), gcd a 1 = 1
theorem isUnit_gcd_one_right E0 #
∀ {α : Type u_1} [inst : CommMonoidWithZero α] [inst_1 : GCDMonoid α] (a : α), IsUnit (gcd a 1)
theorem gcd_one_right' E1 #
∀ {α : Type u_1} [inst : CommMonoidWithZero α] [inst_1 : GCDMonoid α] (a : α), Associated (gcd a 1) 1
theorem gcd_dvd_gcd E1 #
∀ {α : Type u_1} [inst : CommMonoidWithZero α] [inst_1 : GCDMonoid α] {a b c d : α}, a ∣ b → c ∣ d → gcd a c ∣ gcd b d
theorem Associated.gcd E1 #
∀ {α : Type u_1} [inst : CommMonoidWithZero α] [inst_1 : GCDMonoid α] {a₁ a₂ b₁ b₂ : α},
Associated a₁ a₂ → Associated b₁ b₂ → Associated (gcd a₁ b₁) (gcd a₂ b₂)
theorem gcd_same E0 #
∀ {α : Type u_1} [inst : CommMonoidWithZero α] [inst_1 : NormalizedGCDMonoid α] (a : α), gcd a a = normalize a
theorem gcd_mul_left E0 #
∀ {α : Type u_1} [inst : CommMonoidWithZero α] [inst_1 : StrongNormalizedGCDMonoid α] (a b c : α),
gcd (a * b) (a * c) = normalize a * gcd b c
theorem gcd_mul_left' E1 #
∀ {α : Type u_1} [inst : CommMonoidWithZero α] [inst_1 : GCDMonoid α] (a b c : α),
Associated (gcd (a * b) (a * c)) (a * gcd b c)
theorem gcd_mul_right E0 #
∀ {α : Type u_1} [inst : CommMonoidWithZero α] [inst_1 : StrongNormalizedGCDMonoid α] (a b c : α),
gcd (b * a) (c * a) = gcd b c * normalize a
theorem gcd_mul_right' E0 #
∀ {α : Type u_1} [inst : CommMonoidWithZero α] [inst_1 : GCDMonoid α] (a b c : α),
Associated (gcd (b * a) (c * a)) (gcd b c * a)
theorem gcd_eq_left_iff E0 #
∀ {α : Type u_1} [inst : CommMonoidWithZero α] [inst_1 : NormalizedGCDMonoid α] (a b : α),
normalize a = a → (gcd a b = a ↔ a ∣ b)
theorem gcd_eq_right_iff E0 #
∀ {α : Type u_1} [inst : CommMonoidWithZero α] [inst_1 : NormalizedGCDMonoid α] (a b : α),
normalize b = b → (gcd a b = b ↔ b ∣ a)
theorem gcd_dvd_gcd_mul_left E1 #
∀ {α : Type u_1} [inst : CommMonoidWithZero α] [inst_1 : GCDMonoid α] (m n k : α), gcd m n ∣ gcd (k * m) n
theorem gcd_dvd_gcd_mul_right E1 #
∀ {α : Type u_1} [inst : CommMonoidWithZero α] [inst_1 : GCDMonoid α] (m n k : α), gcd m n ∣ gcd (m * k) n
theorem gcd_dvd_gcd_mul_left_right E1 #
∀ {α : Type u_1} [inst : CommMonoidWithZero α] [inst_1 : GCDMonoid α] (m n k : α), gcd m n ∣ gcd m (k * n)
theorem gcd_dvd_gcd_mul_right_right E1 #
∀ {α : Type u_1} [inst : CommMonoidWithZero α] [inst_1 : GCDMonoid α] (m n k : α), gcd m n ∣ gcd m (n * k)
theorem Associated.gcd_eq_left E1 #
∀ {α : Type u_1} [inst : CommMonoidWithZero α] [inst_1 : NormalizedGCDMonoid α] {m n : α},
Associated m n → ∀ (k : α), gcd m k = gcd n k
theorem Associated.gcd_eq_right E1 #
∀ {α : Type u_1} [inst : CommMonoidWithZero α] [inst_1 : NormalizedGCDMonoid α] {m n : α},
Associated m n → ∀ (k : α), gcd k m = gcd k n
theorem dvd_gcd_mul_of_dvd_mul E1 #
∀ {α : Type u_1} [inst : CommMonoidWithZero α] [inst_1 : GCDMonoid α] {m n k : α}, k ∣ m * n → k ∣ gcd k m * n
theorem dvd_gcd_mul_iff_dvd_mul E1 #
∀ {α : Type u_1} [inst : CommMonoidWithZero α] [inst_1 : GCDMonoid α] {m n k : α}, k ∣ gcd k m * n ↔ k ∣ m * n
theorem dvd_mul_gcd_of_dvd_mul E1 #
∀ {α : Type u_1} [inst : CommMonoidWithZero α] [inst_1 : GCDMonoid α] {m n k : α}, k ∣ m * n → k ∣ m * gcd k n
theorem dvd_mul_gcd_iff_dvd_mul E1 #
∀ {α : Type u_1} [inst : CommMonoidWithZero α] [inst_1 : GCDMonoid α] {m n k : α}, k ∣ m * gcd k n ↔ k ∣ m * n
instance instDecompositionMonoidOfIsGCDMonoid E0 #
∀ {α : Type u_1} [inst : CommMonoidWithZero α] [h : IsGCDMonoid α], DecompositionMonoid α
Represent a divisor of m * n as a product of a divisor of m and a divisor of n.
Note: In general, this representation is highly non-unique.
See Nat.dvdProdDvdOfDvdProd for a constructive version on ℕ.
theorem gcd_mul_dvd_mul_gcd E1 #
∀ {α : Type u_1} [inst : CommMonoidWithZero α] [inst_1 : GCDMonoid α] (k m n : α), gcd k (m * n) ∣ gcd k m * gcd k n
theorem gcd_pow_right_dvd_pow_gcd E1 #
∀ {α : Type u_1} [inst : CommMonoidWithZero α] [inst_1 : GCDMonoid α] {a b : α} {k : ℕ}, gcd a (b ^ k) ∣ gcd a b ^ k
theorem gcd_pow_left_dvd_pow_gcd E1 #
∀ {α : Type u_1} [inst : CommMonoidWithZero α] [inst_1 : GCDMonoid α] {a b : α} {k : ℕ}, gcd (a ^ k) b ∣ gcd a b ^ k
theorem pow_dvd_of_mul_eq_pow E1 #
∀ {α : Type u_1} [inst : CommMonoidWithZero α] [inst_1 : GCDMonoid α] {a b c d₁ d₂ : α},
a ≠ 0 → IsUnit (gcd a b) → ∀ {k : ℕ}, a * b = c ^ k → c = d₁ * d₂ → d₁ ∣ a → d₁ ^ k ≠ 0 ∧ d₁ ^ k ∣ a
theorem exists_associated_pow_of_mul_eq_pow E1 #
∀ {α : Type u_1} [inst : CommMonoidWithZero α] [inst_1 : GCDMonoid α] {a b c : α},
IsUnit (gcd a b) → ∀ {k : ℕ}, a * b = c ^ k → ∃ d, Associated (d ^ k) a
theorem exists_eq_pow_of_mul_eq_pow E1 #
∀ {α : Type u_1} [inst : CommMonoidWithZero α] [inst_1 : GCDMonoid α] [Subsingleton αˣ] {a b c : α},
IsUnit (gcd a b) → ∀ {k : ℕ}, a * b = c ^ k → ∃ d, a = d ^ k
theorem gcd_greatest E1 #
∀ {α : Type u_2} [inst : CommMonoidWithZero α] [inst_1 : NormalizedGCDMonoid α] {a b d : α},
d ∣ a → d ∣ b → (∀ (e : α), e ∣ a → e ∣ b → e ∣ d) → gcd a b = normalize d
theorem gcd_greatest_associated E1 #
∀ {α : Type u_2} [inst : CommMonoidWithZero α] [inst_1 : GCDMonoid α] {a b d : α},
d ∣ a → d ∣ b → (∀ (e : α), e ∣ a → e ∣ b → e ∣ d) → Associated d (gcd a b)
theorem isUnit_gcd_of_eq_mul_gcd E1 #
∀ {α : Type u_2} [inst : CommMonoidWithZero α] [inst_1 : GCDMonoid α] {x y x' y' : α},
x = gcd x y * x' → y = gcd x y * y' → gcd x y ≠ 0 → IsUnit (gcd x' y')
theorem extract_gcd E1 #
∀ {α : Type u_2} [inst : CommMonoidWithZero α] [inst_1 : GCDMonoid α] (x y : α),
∃ x' y', x = gcd x y * x' ∧ y = gcd x y * y' ∧ IsUnit (gcd x' y')
theorem associated_gcd_left_iff E0 #
∀ {α : Type u_1} [inst : CommMonoidWithZero α] [inst_1 : GCDMonoid α] {x y : α}, Associated x (gcd x y) ↔ x ∣ y
theorem associated_gcd_right_iff E0 #
∀ {α : Type u_1} [inst : CommMonoidWithZero α] [inst_1 : GCDMonoid α] {x y : α}, Associated y (gcd x y) ↔ y ∣ x
theorem Irreducible.isUnit_gcd_iff E0 #
∀ {α : Type u_1} [inst : CommMonoidWithZero α] [inst_1 : GCDMonoid α] {x y : α},
Irreducible x → (IsUnit (gcd x y) ↔ ¬x ∣ y)
theorem Irreducible.gcd_eq_one_iff E0 #
∀ {α : Type u_1} [inst : CommMonoidWithZero α] [inst_1 : NormalizedGCDMonoid α] {x y : α},
Irreducible x → (gcd x y = 1 ↔ ¬x ∣ y)
theorem gcd_neg' E1 #
∀ {α : Type u_1} [inst : CommMonoidWithZero α] [inst_1 : HasDistribNeg α] [inst_2 : GCDMonoid α] {a b : α},
Associated (gcd a (-b)) (gcd a b)
theorem gcd_neg E1 #
∀ {α : Type u_1} [inst : CommMonoidWithZero α] [inst_1 : HasDistribNeg α] [inst_2 : NormalizedGCDMonoid α] {a b : α},
gcd a (-b) = gcd a b
theorem neg_gcd' E1 #
∀ {α : Type u_1} [inst : CommMonoidWithZero α] [inst_1 : HasDistribNeg α] [inst_2 : GCDMonoid α] {a b : α},
Associated (gcd (-a) b) (gcd a b)
theorem neg_gcd E1 #
∀ {α : Type u_1} [inst : CommMonoidWithZero α] [inst_1 : HasDistribNeg α] [inst_2 : NormalizedGCDMonoid α] {a b : α},
gcd (-a) b = gcd a b
theorem lcm_dvd_iff E0 #
∀ {α : Type u_1} [inst : CommMonoidWithZero α] [inst_1 : GCDMonoid α] {a b c : α}, lcm a b ∣ c ↔ a ∣ c ∧ b ∣ c
theorem dvd_lcm_left E1 #
∀ {α : Type u_1} [inst : CommMonoidWithZero α] [inst_1 : GCDMonoid α] (a b : α), a ∣ lcm a b
theorem dvd_lcm_right E1 #
∀ {α : Type u_1} [inst : CommMonoidWithZero α] [inst_1 : GCDMonoid α] (a b : α), b ∣ lcm a b
theorem lcm_dvd E1 #
∀ {α : Type u_1} [inst : CommMonoidWithZero α] [inst_1 : GCDMonoid α] {a b c : α}, a ∣ b → c ∣ b → lcm a c ∣ b
theorem lcm_eq_zero_iff E0 #
∀ {α : Type u_1} [inst : CommMonoidWithZero α] [inst_1 : GCDMonoid α] (a b : α), lcm a b = 0 ↔ a = 0 ∨ b = 0
theorem lcm_ne_zero_iff E0 #
∀ {α : Type u_1} [inst : CommMonoidWithZero α] [inst_1 : GCDMonoid α] {a b : α}, lcm a b ≠ 0 ↔ a ≠ 0 ∧ b ≠ 0
theorem normalize_lcm E0 #
∀ {α : Type u_1} [inst : CommMonoidWithZero α] [inst_1 : NormalizedGCDMonoid α] (a b : α), normalize (lcm a b) = lcm a b
theorem lcm_comm E1 #
∀ {α : Type u_1} [inst : CommMonoidWithZero α] [inst_1 : NormalizedGCDMonoid α] (a b : α), lcm a b = lcm b a
theorem lcm_comm' E1 #
∀ {α : Type u_1} [inst : CommMonoidWithZero α] [inst_1 : GCDMonoid α] (a b : α), Associated (lcm a b) (lcm b a)
theorem lcm_assoc E1 #
∀ {α : Type u_1} [inst : CommMonoidWithZero α] [inst_1 : NormalizedGCDMonoid α] (m n k : α),
lcm (lcm m n) k = lcm m (lcm n k)
theorem lcm_assoc' E1 #
∀ {α : Type u_1} [inst : CommMonoidWithZero α] [inst_1 : GCDMonoid α] (m n k : α),
Associated (lcm (lcm m n) k) (lcm m (lcm n k))
instance instCommutativeLcm E0 #
∀ {α : Type u_1} [inst : CommMonoidWithZero α] [inst_1 : NormalizedGCDMonoid α], Std.Commutative lcm
instance instAssociativeLcm E0 #
∀ {α : Type u_1} [inst : CommMonoidWithZero α] [inst_1 : NormalizedGCDMonoid α], Std.Associative lcm
theorem lcm_eq_normalize E1 #
∀ {α : Type u_1} [inst : CommMonoidWithZero α] [inst_1 : NormalizedGCDMonoid α] {a b c : α},
lcm a b ∣ c → c ∣ lcm a b → lcm a b = normalize c
theorem lcm_dvd_lcm E1 #
∀ {α : Type u_1} [inst : CommMonoidWithZero α] [inst_1 : GCDMonoid α] {a b c d : α}, a ∣ b → c ∣ d → lcm a c ∣ lcm b d
theorem Associated.lcm E1 #
∀ {α : Type u_1} [inst : CommMonoidWithZero α] [inst_1 : GCDMonoid α] {a₁ a₂ b₁ b₂ : α},
Associated a₁ a₂ → Associated b₁ b₂ → Associated (lcm a₁ b₁) (lcm a₂ b₂)
theorem lcm_units_coe_left E0 #
∀ {α : Type u_1} [inst : CommMonoidWithZero α] [inst_1 : NormalizedGCDMonoid α] (u : αˣ) (a : α),
lcm (↑u) a = normalize a
theorem lcm_units_coe_right E0 #
∀ {α : Type u_1} [inst : CommMonoidWithZero α] [inst_1 : NormalizedGCDMonoid α] (a : α) (u : αˣ), lcm a ↑u = normalize a
theorem lcm_one_left E0 #
∀ {α : Type u_1} [inst : CommMonoidWithZero α] [inst_1 : NormalizedGCDMonoid α] (a : α), lcm 1 a = normalize a
theorem lcm_one_right E0 #
∀ {α : Type u_1} [inst : CommMonoidWithZero α] [inst_1 : NormalizedGCDMonoid α] (a : α), lcm a 1 = normalize a
theorem lcm_same E0 #
∀ {α : Type u_1} [inst : CommMonoidWithZero α] [inst_1 : NormalizedGCDMonoid α] (a : α), lcm a a = normalize a
theorem lcm_eq_one_iff E0 #
∀ {α : Type u_1} [inst : CommMonoidWithZero α] [inst_1 : NormalizedGCDMonoid α] (a b : α), lcm a b = 1 ↔ a ∣ 1 ∧ b ∣ 1
theorem lcm_mul_left E0 #
∀ {α : Type u_1} [inst : CommMonoidWithZero α] [inst_1 : StrongNormalizedGCDMonoid α] (a b c : α),
lcm (a * b) (a * c) = normalize a * lcm b c
theorem lcm_mul_right E0 #
∀ {α : Type u_1} [inst : CommMonoidWithZero α] [inst_1 : StrongNormalizedGCDMonoid α] (a b c : α),
lcm (b * a) (c * a) = lcm b c * normalize a
theorem lcm_eq_left_iff E0 #
∀ {α : Type u_1} [inst : CommMonoidWithZero α] [inst_1 : NormalizedGCDMonoid α] (a b : α),
normalize a = a → (lcm a b = a ↔ b ∣ a)
theorem lcm_eq_right_iff E0 #
∀ {α : Type u_1} [inst : CommMonoidWithZero α] [inst_1 : NormalizedGCDMonoid α] (a b : α),
normalize b = b → (lcm a b = b ↔ a ∣ b)
theorem lcm_dvd_lcm_mul_left E1 #
∀ {α : Type u_1} [inst : CommMonoidWithZero α] [inst_1 : GCDMonoid α] (m n k : α), lcm m n ∣ lcm (k * m) n
theorem lcm_dvd_lcm_mul_right E1 #
∀ {α : Type u_1} [inst : CommMonoidWithZero α] [inst_1 : GCDMonoid α] (m n k : α), lcm m n ∣ lcm (m * k) n
theorem lcm_dvd_lcm_mul_left_right E1 #
∀ {α : Type u_1} [inst : CommMonoidWithZero α] [inst_1 : GCDMonoid α] (m n k : α), lcm m n ∣ lcm m (k * n)
theorem lcm_dvd_lcm_mul_right_right E1 #
∀ {α : Type u_1} [inst : CommMonoidWithZero α] [inst_1 : GCDMonoid α] (m n k : α), lcm m n ∣ lcm m (n * k)
theorem lcm_eq_of_associated_left E1 #
∀ {α : Type u_1} [inst : CommMonoidWithZero α] [inst_1 : NormalizedGCDMonoid α] {m n : α},
Associated m n → ∀ (k : α), lcm m k = lcm n k
theorem lcm_eq_of_associated_right E1 #
∀ {α : Type u_1} [inst : CommMonoidWithZero α] [inst_1 : NormalizedGCDMonoid α] {m n : α},
Associated m n → ∀ (k : α), lcm k m = lcm k n
theorem lcm_dvd_mul E0 #
∀ {α : Type u_1} [inst : CommMonoidWithZero α] [inst_1 : GCDMonoid α] (m n : α), lcm m n ∣ m * n
theorem dvd_lcm_of_dvd_left E1 #
∀ {α : Type u_1} [inst : CommMonoidWithZero α] [inst_1 : GCDMonoid α] {a b : α}, a ∣ b → ∀ (c : α), a ∣ lcm b c
theorem Dvd.dvd.lcm_right E1 #
∀ {α : Type u_1} [inst : CommMonoidWithZero α] [inst_1 : GCDMonoid α] {a b : α}, a ∣ b → ∀ (c : α), a ∣ lcm b c
Alias of dvd_lcm_of_dvd_left.
theorem dvd_of_lcm_right_dvd E1 #
∀ {α : Type u_1} [inst : CommMonoidWithZero α] [inst_1 : GCDMonoid α] {a b c : α}, lcm a b ∣ c → a ∣ c
theorem dvd_lcm_of_dvd_right E1 #
∀ {α : Type u_1} [inst : CommMonoidWithZero α] [inst_1 : GCDMonoid α] {a b : α}, a ∣ b → ∀ (c : α), a ∣ lcm c b
theorem Dvd.dvd.lcm_left E1 #
∀ {α : Type u_1} [inst : CommMonoidWithZero α] [inst_1 : GCDMonoid α] {a b : α}, a ∣ b → ∀ (c : α), a ∣ lcm c b
Alias of dvd_lcm_of_dvd_right.
theorem dvd_of_lcm_left_dvd E1 #
∀ {α : Type u_1} [inst : CommMonoidWithZero α] [inst_1 : GCDMonoid α] {a b c : α}, lcm a b ∣ c → b ∣ c
theorem Prime.dvd_or_dvd_of_dvd_lcm E1 #
∀ {α : Type u_1} [inst : CommMonoidWithZero α] [inst_1 : GCDMonoid α] {a b p : α}, Prime p → p ∣ lcm a b → p ∣ a ∨ p ∣ b
theorem Prime.dvd_lcm E1 #
∀ {α : Type u_1} [inst : CommMonoidWithZero α] [inst_1 : GCDMonoid α] {a b p : α},
Prime p → (p ∣ lcm a b ↔ p ∣ a ∨ p ∣ b)
theorem Prime.not_dvd_lcm E1 #
∀ {α : Type u_1} [inst : CommMonoidWithZero α] [inst_1 : GCDMonoid α] {a b p : α},
Prime p → ¬p ∣ a → ¬p ∣ b → ¬p ∣ lcm a b
instance instStrongNormalizationMonoid E0 #
{α : Type u_1} → [inst : CommMonoidWithZero α] → [Subsingleton αˣ] → StrongNormalizationMonoid α
instance instUniqueNormalizationMonoid E0 #
{α : Type u_1} → [inst : CommMonoidWithZero α] → [Subsingleton αˣ] → Unique (NormalizationMonoid α)
instance instUniqueStrongNormalizationMonoid E0 #
{α : Type u_1} → [inst : CommMonoidWithZero α] → [Subsingleton αˣ] → Unique (StrongNormalizationMonoid α)
instance subsingleton_gcdMonoid_of_unique_units E0 #
∀ {α : Type u_1} [inst : CommMonoidWithZero α] [Subsingleton αˣ], Subsingleton (GCDMonoid α)
instance subsingleton_normalizedGCDMonoid_of_unique_units E0 #
∀ {α : Type u_1} [inst : CommMonoidWithZero α] [Subsingleton αˣ], Subsingleton (NormalizedGCDMonoid α)
instance instSubsingletonStrongNormalizedGCDMonoid E0 #
∀ {α : Type u_1} [inst : CommMonoidWithZero α] [Subsingleton αˣ], Subsingleton (StrongNormalizedGCDMonoid α)
theorem normUnit_eq_one E0 #
∀ {α : Type u_1} [inst : CommMonoidWithZero α] [inst_1 : Subsingleton αˣ] (x : α), normUnit x = 1
theorem normalize_eq E0 #
∀ {α : Type u_1} [inst : CommMonoidWithZero α] [inst_1 : Subsingleton αˣ] (x : α), normalize x = x
def associatesEquivOfUniqueUnits E1 #
{α : Type u_1} → [inst : CommMonoidWithZero α] → [Subsingleton αˣ] → Associates α ≃* α
If a monoid's only unit is 1, then it is isomorphic to its associates.
theorem associatesEquivOfUniqueUnits_symm_apply E0 #
∀ {α : Type u_1} [inst : CommMonoidWithZero α] [inst_1 : Subsingleton αˣ] (a : α),
associatesEquivOfUniqueUnits.symm a = Associates.mk a
theorem associatesEquivOfUniqueUnits_apply E0 #
∀ {α : Type u_1} [inst : CommMonoidWithZero α] [inst_1 : Subsingleton αˣ] (a : Associates α),
associatesEquivOfUniqueUnits a = a.out
theorem gcd_eq_of_dvd_sub_right E1 #
∀ {α : Type u_1} [inst : CommRing α] [inst_1 : NormalizedGCDMonoid α] {a b c : α}, a ∣ b - c → gcd a b = gcd a c
theorem gcd_eq_of_dvd_sub_left E1 #
∀ {α : Type u_1} [inst : CommRing α] [inst_1 : NormalizedGCDMonoid α] {a b c : α}, a ∣ b - c → gcd b a = gcd c a
def strongNormalizationMonoidOfMonoidHomRightInverse E1 #
{α : Type u_1} →
[inst : CommMonoidWithZero α] →
[IsCancelMulZero α] →
[DecidableEq α] → (f : Associates α →* α) → Function.RightInverse (⇑f) Associates.mk → StrongNormalizationMonoid α
Define NormalizationMonoid on a structure from a MonoidHom inverse to Associates.mk.
def gcdMonoidOfGCD E3 #
{α : Type u_1} →
[inst : CommMonoidWithZero α] →
[IsCancelMulZero α] →
[DecidableEq α] →
(gcd : α → α → α) →
(∀ (a b : α), gcd a b ∣ a) →
(∀ (a b : α), gcd a b ∣ b) → (∀ {a b c : α}, a ∣ c → a ∣ b → a ∣ gcd c b) → GCDMonoid α
Define GCDMonoid on a structure just from the gcd and its properties.
def normalizedGCDMonoidOfGCD E3 #
{α : Type u_1} →
[inst : CommMonoidWithZero α] →
[IsCancelMulZero α] →
[inst_2 : NormalizationMonoid α] →
[DecidableEq α] →
(gcd : α → α → α) →
(∀ (a b : α), gcd a b ∣ a) →
(∀ (a b : α), gcd a b ∣ b) →
(∀ {a b c : α}, a ∣ c → a ∣ b → a ∣ gcd c b) →
(∀ (a b : α), normalize (gcd a b) = gcd a b) → NormalizedGCDMonoid α
Define NormalizedGCDMonoid on a structure just from the gcd and its properties.
def gcdMonoidOfLCM E3 #
{α : Type u_1} →
[inst : CommMonoidWithZero α] →
[IsCancelMulZero α] →
[DecidableEq α] →
(lcm : α → α → α) →
(∀ (a b : α), a ∣ lcm a b) →
(∀ (a b : α), b ∣ lcm a b) → (∀ {a b c : α}, c ∣ a → b ∣ a → lcm c b ∣ a) → GCDMonoid α
Define GCDMonoid on a structure just from the lcm and its properties.
def normalizedGCDMonoidOfLCM E3 #
{α : Type u_1} →
[inst : CommMonoidWithZero α] →
[IsCancelMulZero α] →
[inst_2 : NormalizationMonoid α] →
[DecidableEq α] →
(lcm : α → α → α) →
(∀ (a b : α), a ∣ lcm a b) →
(∀ (a b : α), b ∣ lcm a b) →
(∀ {a b c : α}, c ∣ a → b ∣ a → lcm c b ∣ a) →
(∀ (a b : α), normalize (lcm a b) = lcm a b) → NormalizedGCDMonoid α
Define NormalizedGCDMonoid on a structure just from the lcm and its properties.
def gcdMonoidOfExistsGCD E3 #
{α : Type u_1} →
[inst : CommMonoidWithZero α] →
[IsCancelMulZero α] → [DecidableEq α] → (∀ (a b : α), ∃ c, ∀ (d : α), d ∣ a ∧ d ∣ b ↔ d ∣ c) → GCDMonoid α
Define a GCDMonoid structure on a monoid just from the existence of a gcd.
def normalizedGCDMonoidOfExistsGCD E3 #
{α : Type u_1} →
[inst : CommMonoidWithZero α] →
[IsCancelMulZero α] →
[NormalizationMonoid α] →
[DecidableEq α] → (∀ (a b : α), ∃ c, ∀ (d : α), d ∣ a ∧ d ∣ b ↔ d ∣ c) → NormalizedGCDMonoid α
Define a NormalizedGCDMonoid structure on a monoid just from the existence of a gcd.
abbrev strongNormalizedGCDMonoidOfExistsGCD E1 #
{α : Type u_1} →
[inst : CommMonoidWithZero α] →
[IsCancelMulZero α] →
[StrongNormalizationMonoid α] →
[DecidableEq α] → (∀ (a b : α), ∃ c, ∀ (d : α), d ∣ a ∧ d ∣ b ↔ d ∣ c) → StrongNormalizedGCDMonoid α
Define a StrongNormalizedGCDMonoid structure on a monoid just from
the existence of a gcd.
theorem nonempty_normalizedGCDMonoid_iff_isGCDMonoid E1 #
∀ {α : Type u_2} [inst : CommMonoidWithZero α], Nonempty (NormalizedGCDMonoid α) ↔ IsGCDMonoid α
instance instNonemptyNormalizedGCDMonoidOfIsGCDMonoid E0 #
∀ (α : Type u_2) [inst : CommMonoidWithZero α] [IsGCDMonoid α], Nonempty (NormalizedGCDMonoid α)
theorem nonempty_strongNormalizedGCDMonoid_iff E0 #
∀ {α : Type u_2} [inst : CommMonoidWithZero α],
Nonempty (StrongNormalizedGCDMonoid α) ↔ IsGCDMonoid α ∧ Nonempty (StrongNormalizationMonoid α)
def gcdMonoidOfExistsLCM E3 #
{α : Type u_1} →
[inst : CommMonoidWithZero α] →
[IsCancelMulZero α] → [DecidableEq α] → (∀ (a b : α), ∃ c, ∀ (d : α), a ∣ d ∧ b ∣ d ↔ c ∣ d) → GCDMonoid α
Define a GCDMonoid structure on a monoid just from the existence of an lcm.
def normalizedGCDMonoidOfExistsLCM E3 #
{α : Type u_1} →
[inst : CommMonoidWithZero α] →
[IsCancelMulZero α] →
[NormalizationMonoid α] →
[DecidableEq α] → (∀ (a b : α), ∃ c, ∀ (d : α), a ∣ d ∧ b ∣ d ↔ c ∣ d) → NormalizedGCDMonoid α
Define a NormalizedGCDMonoid structure on a monoid just from the existence of an lcm.
abbrev strongNormalizedGCDMonoidOfExistsLCM E1 #
{α : Type u_1} →
[inst : CommMonoidWithZero α] →
[IsCancelMulZero α] →
[StrongNormalizationMonoid α] →
[DecidableEq α] → (∀ (a b : α), ∃ c, ∀ (d : α), a ∣ d ∧ b ∣ d ↔ c ∣ d) → StrongNormalizedGCDMonoid α
Define a StrongNormalizedGCDMonoid structure on a monoid just from
the existence of a lcm.
theorem isGCDMonoid_iff_exists_gcd E1 #
∀ {α : Type u_2} [inst : CommMonoidWithZero α],
IsGCDMonoid α ↔ IsCancelMulZero α ∧ ∀ (a b : α), ∃ c, ∀ (d : α), d ∣ a ∧ d ∣ b ↔ d ∣ c
theorem isGCDMonoid_iff_exists_lcm E1 #
∀ {α : Type u_2} [inst : CommMonoidWithZero α],
IsGCDMonoid α ↔ IsCancelMulZero α ∧ ∀ (a b : α), ∃ c, ∀ (d : α), a ∣ d ∧ b ∣ d ↔ c ∣ d
instance CommGroupWithZero.instStrongNormalizedGCDMonoid E0 #
(G₀ : Type u_2) → [inst : CommGroupWithZero G₀] → [DecidableEq G₀] → StrongNormalizedGCDMonoid G₀
theorem CommGroupWithZero.coe_normUnit E0 #
∀ (G₀ : Type u_2) [inst : CommGroupWithZero G₀] [inst_1 : DecidableEq G₀] {a : G₀}, a ≠ 0 → ↑(normUnit a) = a⁻¹
theorem CommGroupWithZero.normalize_eq_one E1 #
∀ (G₀ : Type u_2) [inst : CommGroupWithZero G₀] [inst_1 : DecidableEq G₀] {a : G₀}, a ≠ 0 → normalize a = 1
instance Associates.instGCDMonoid E0 #
{α : Type u_1} → [inst : CommMonoidWithZero α] → [GCDMonoid α] → GCDMonoid (Associates α)
theorem Associates.gcd_mk_mk E0 #
∀ {α : Type u_1} [inst : CommMonoidWithZero α] [inst_1 : GCDMonoid α] {a b : α},
gcd (Associates.mk a) (Associates.mk b) = Associates.mk (gcd a b)
theorem Associates.lcm_mk_mk E0 #
∀ {α : Type u_1} [inst : CommMonoidWithZero α] [inst_1 : GCDMonoid α] {a b : α},
lcm (Associates.mk a) (Associates.mk b) = Associates.mk (lcm a b)
Deprecated aliases
| Name | New name | Since |
|---|---|---|
NormalizationMonoid.ofUniqueUnits | instStrongNormalizationMonoid | 2026-07-08 |
normalizationMonoidOfMonoidHomRightInverse | strongNormalizationMonoidOfMonoidHomRightInverse | 2026-07-08 |