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.
An ideal is maximal if it is maximal in the collection of proper ideals.
- out : IsCoatom I
The maximal ideal is a coatom in the ordering on ideals; that is, it is not the entire ring, and there are no other proper ideals strictly containing it.
Instances
Krull's theorem: a nontrivial ring has a maximal ideal.
Equations
- ⋯ = ⋯
theorem
Ideal.span_singleton_prime
{α : Type u}
[CommSemiring α]
{p : α}
(hp : p ≠ 0)
:
(Ideal.span {p}).IsPrime ↔ Prime p
theorem
Ideal.IsMaximal.isPrime
{α : Type u}
[CommSemiring α]
{I : Ideal α}
(H : I.IsMaximal)
:
I.IsPrime
@[instance 100]
instance
Ideal.IsMaximal.isPrime'
{α : Type u}
[CommSemiring α]
(I : Ideal α)
[_H : I.IsMaximal]
:
I.IsPrime
Equations
- ⋯ = ⋯
theorem
Ideal.span_singleton_lt_span_singleton
{α : Type u}
[CommSemiring α]
[IsDomain α]
{x : α}
{y : α}
:
Ideal.span {x} < Ideal.span {y} ↔ DvdNotUnit y x