The areas / V09. Commutative algebra I: ideals, polynomials, factorization
Mathlib.RingTheory.Int.Basic
17 declarations. Mathlib docs · Source
theorem Int.isCoprime_iff_nat_coprime E1 #
∀ {a b : ℤ}, IsCoprime a b ↔ a.natAbs.Coprime b.natAbs
theorem Int.gcd_ne_one_iff_gcd_mul_right_ne_one E1 #
∀ {a : ℤ} {m n : ℕ}, a.gcd (↑m * ↑n) ≠ 1 ↔ a.gcd ↑m ≠ 1 ∨ a.gcd ↑n ≠ 1
If gcd a (m * n) ≠ 1, then gcd a m ≠ 1 or gcd a n ≠ 1.
theorem Int.sq_of_gcd_eq_one E1 #
∀ {a b c : ℤ}, a.gcd b = 1 → a * b = c ^ 2 → ∃ a0, a = a0 ^ 2 ∨ a = -a0 ^ 2
theorem Int.sq_of_isCoprime E1 #
∀ {a b c : ℤ}, IsCoprime a b → a * b = c ^ 2 → ∃ a0, a = a0 ^ 2 ∨ a = -a0 ^ 2
theorem Int.natAbs_euclideanDomain_gcd E1 #
∀ (a b : ℤ), (EuclideanDomain.gcd a b).natAbs = a.gcd b
theorem Int.Prime.dvd_mul E1 #
∀ {m n : ℤ} {p : ℕ}, Nat.Prime p → ↑p ∣ m * n → p ∣ m.natAbs ∨ p ∣ n.natAbs
theorem Int.Prime.dvd_mul' E1 #
∀ {m n : ℤ} {p : ℕ}, Nat.Prime p → ↑p ∣ m * n → ↑p ∣ m ∨ ↑p ∣ n
theorem Int.Prime.dvd_pow E1 #
∀ {n : ℤ} {k p : ℕ}, Nat.Prime p → ↑p ∣ n ^ k → p ∣ n.natAbs
theorem Int.Prime.dvd_pow' E1 #
∀ {n : ℤ} {k p : ℕ}, Nat.Prime p → ↑p ∣ n ^ k → ↑p ∣ n
theorem prime_two_or_dvd_of_dvd_two_mul_pow_self_two E1 #
∀ {m : ℤ} {p : ℕ}, Nat.Prime p → ↑p ∣ 2 * m ^ 2 → p = 2 ∨ p ∣ m.natAbs
theorem Int.exists_prime_and_dvd E1 #
∀ {n : ℤ}, n.natAbs ≠ 1 → ∃ p, Prime p ∧ p ∣ n
theorem Int.prime_iff_natAbs_prime E1 #
∀ {k : ℤ}, Prime k ↔ Nat.Prime k.natAbs
instance Int.instDecidablePredPrime E0 #
DecidablePred Prime
instance Int.instDecidablePredIrreducible E0 #
DecidablePred Irreducible
theorem Int.span_natAbs E1 #
∀ (a : ℤ), Ideal.span {↑a.natAbs} = Ideal.span {a}
theorem Int.isCoprime_two_left E0 #
∀ {m : ℤ}, IsCoprime 2 m ↔ Odd m
theorem Int.isCoprime_two_right E0 #
∀ {m : ℤ}, IsCoprime m 2 ↔ Odd m