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.Ideal.Basic

28 declarations. Mathlib docs · Source

Ideals over a ring

This file contains an assortment of definitions and results for Ideal R, the type of (left) ideals over a ring R. Note that over commutative rings, left ideals and two-sided ideals are equivalent.

Implementation notes

Ideal R is implemented using Submodule R R, where • is interpreted as *.

TODO

Support right ideals, and two-sided ideals over non-commutative rings.

def Ideal.pi E1 #

{ι : Type u_1} →
  {R : ι → Type u_4} → [inst : (i : ι) → Semiring (R i)] → ((i : ι) → Ideal (R i)) → Ideal ((i : ι) → R i)

Πᵢ Iᵢ as an ideal of Πᵢ Rᵢ.

theorem Ideal.mem_pi E0 #

∀ {ι : Type u_1} {R : ι → Type u_4} [inst : (i : ι) → Semiring (R i)] (I : (i : ι) → Ideal (R i)) (r : (i : ι) → R i),
  r ∈ Ideal.pi I ↔ ∀ (i : ι), r i ∈ I i

theorem Ideal.pi_span E0 #

∀ {ι : Type u_1} {R : ι → Type u_4} [inst : (i : ι) → Semiring (R i)] {r : (i : ι) → R i},
  (Ideal.pi fun x ↦ Ideal.span {r x}) = Ideal.span {r}

instance Ideal.instIsTwoSidedForallPi E0 #

∀ {ι : Type u_1} {R : ι → Type u_4} [inst : (i : ι) → Semiring (R i)] (I : (i : ι) → Ideal (R i))
  [∀ (i : ι), (I i).IsTwoSided], (Ideal.pi I).IsTwoSided

theorem Ideal.single_mem_pi E1 #

∀ {ι : Type u_1} {R : ι → Type u_4} [inst : (i : ι) → Semiring (R i)] {I : (i : ι) → Ideal (R i)}
  [inst_1 : DecidableEq ι] {i : ι} {r : R i}, r ∈ I i → Pi.single i r ∈ Ideal.pi I

theorem Ideal.pi_le_pi_iff E0 #

∀ {ι : Type u_1} {R : ι → Type u_4} [inst : (i : ι) → Semiring (R i)] {I J : (i : ι) → Ideal (R i)},
  Ideal.pi I ≤ Ideal.pi J ↔ I ≤ J

theorem Ideal.add_pow_mem_of_pow_mem_of_le_of_commute E1 #

∀ {α : Type u_5} [inst : Semiring α] (I : Ideal α) {a b : α} {m n k : ℕ},
  a ^ m ∈ I → b ^ n ∈ I → m + n ≤ k + 1 → Commute a b → (a + b) ^ k ∈ I

theorem Ideal.add_pow_add_pred_mem_of_pow_mem_of_commute E1 #

∀ {α : Type u_5} [inst : Semiring α] (I : Ideal α) {a b : α} {m n : ℕ},
  a ^ m ∈ I → b ^ n ∈ I → Commute a b → (a + b) ^ (m + n - 1) ∈ I

theorem Ideal.add_pow_mem_of_pow_mem_of_le E1 #

∀ {α : Type u_2} {a b : α} [inst : CommSemiring α] (I : Ideal α) {m n k : ℕ},
  a ^ m ∈ I → b ^ n ∈ I → m + n ≤ k + 1 → (a + b) ^ k ∈ I

theorem Ideal.add_pow_add_pred_mem_of_pow_mem E1 #

∀ {α : Type u_2} {a b : α} [inst : CommSemiring α] (I : Ideal α) {m n : ℕ},
  a ^ m ∈ I → b ^ n ∈ I → (a + b) ^ (m + n - 1) ∈ I

theorem Ideal.pow_multiset_sum_mem_span_pow E1 #

∀ {α : Type u_2} [inst : CommSemiring α] [inst_1 : DecidableEq α] (s : Multiset α) (n : ℕ),
  s.sum ^ (s.card * n + 1) ∈ Ideal.span ↑(Multiset.map (fun x ↦ x ^ (n + 1)) s).toFinset

theorem Ideal.sum_pow_mem_span_pow E1 #

∀ {α : Type u_2} [inst : CommSemiring α] {ι : Type u_4} (s : Finset ι) (f : ι → α) (n : ℕ),
  (∑ i ∈ s, f i) ^ (s.card * n + 1) ∈ Ideal.span ((fun i ↦ f i ^ (n + 1)) '' ↑s)

theorem Ideal.span_pow_eq_top E1 #

∀ {α : Type u_2} [inst : CommSemiring α] (s : Set α),
  Ideal.span s = ⊤ → ∀ (n : ℕ), Ideal.span ((fun x ↦ x ^ n) '' s) = ⊤

theorem Ideal.span_range_pow_eq_top E1 #

∀ {α : Type u_2} [inst : CommSemiring α] (s : Set α),
  Ideal.span s = ⊤ → ∀ (n : ↑s → ℕ), Ideal.span (Set.range fun x ↦ ↑x ^ n x) = ⊤

theorem Ideal.prod_mem E1 #

∀ {α : Type u_2} [inst : CommSemiring α] {ι : Type u_4} {f : ι → α} {s : Finset ι} (I : Ideal α) {i : ι},
  i ∈ s → f i ∈ I → ∏ i ∈ s, f i ∈ I

theorem Ideal.span_single_eq_top E1 #

∀ {ι : Type u_4} [inst : DecidableEq ι] [Finite ι] (R : ι → Type u_5) [inst_2 : (i : ι) → Semiring (R i)],
  Ideal.span (Set.range fun i ↦ Pi.single i 1) = ⊤

def Ideal.equivFinTwo E1 #

(K : Type u_4) → [inst : DivisionSemiring K] → Ideal K ≃ Fin 2

A bijection between (left) ideals of a division ring and {0, 1}, sending ⊥ to 0 and ⊤ to 1.

instance Ideal.instFinite E0 #

∀ {K : Type u_4} [inst : DivisionSemiring K], Finite (Ideal K)

instance Ideal.isSimpleOrder E0 #

∀ {K : Type u_4} [inst : DivisionSemiring K], IsSimpleOrder (Ideal K)

Ideals of a DivisionSemiring are a simple order. Thanks to the way abbreviations work, this automatically gives an IsSimpleModule K instance.

theorem Ring.exists_not_isUnit_of_not_isField E1 #

∀ {R : Type u_4} [inst : CommSemiring R] [Nontrivial R], ¬IsField R → ∃ x, ∃ (_ : x ≠ 0), ¬IsUnit x

theorem Ring.isField_iff_maximal_bot E1 #

∀ {R : Type u_4} [inst : CommSemiring R] [Nontrivial R], IsField R ↔ ⊥.IsMaximal

theorem Ring.exists_maximal_of_not_isField E1 #

∀ {R : Type u_4} [inst : CommSemiring R] [Nontrivial R], ¬IsField R → ∃ p, p ≠ ⊥ ∧ p.IsMaximal

theorem Ring.not_isField_of_ne_of_ne E1 #

∀ {R : Type u_4} [inst : CommSemiring R] {I : Ideal R}, I ≠ ⊥ → I ≠ ⊤ → ¬IsField R

theorem Ring.not_isField_iff_exists_ideal_bot_lt_and_lt_top E1 #

∀ {R : Type u_4} [inst : CommSemiring R] [Nontrivial R], ¬IsField R ↔ ∃ I, ⊥ < I ∧ I < ⊤

theorem Ring.not_isField_iff_exists_prime E1 #

∀ {R : Type u_4} [inst : CommSemiring R] [Nontrivial R], ¬IsField R ↔ ∃ p, p ≠ ⊥ ∧ p.IsPrime

theorem Ring.isField_iff_isSimpleOrder_ideal E1 #

∀ {R : Type u_4} [inst : CommSemiring R], IsField R ↔ IsSimpleOrder (Ideal R)

Also see Ideal.isSimpleOrder for the forward direction as an instance when R is a division (semi)ring.

This result actually holds for all division semirings, but we lack the predicate to state it.

theorem Ring.ne_bot_of_isMaximal_of_not_isField E1 #

∀ {R : Type u_4} [inst : CommSemiring R] [Nontrivial R] {M : Ideal R}, M.IsMaximal → ¬IsField R → M ≠ ⊥

When a ring is not a field, the maximal ideals are nontrivial.

theorem Ideal.bot_lt_of_maximal E1 #

∀ {R : Type u_4} [inst : CommSemiring R] [Nontrivial R] (M : Ideal R) [hm : M.IsMaximal], ¬IsField R → ⊥ < M