Local rings #
Define local rings as commutative rings having a unique maximal ideal.
Main definitions #
LocalRing
: A predicate on semirings, stating that for any pair of elements that adds up to1
, one of them is a unit. In the commutative case this is shown to be equivalent to the condition that there exists a unique maximal ideal, seeLocalRing.of_unique_max_ideal
andLocalRing.maximal_ideal_unique
.
A semiring is local if it is nontrivial and a
or b
is a unit whenever a + b = 1
.
Note that LocalRing
is a predicate.
- of_is_unit_or_is_unit_of_add_one :: (
- exists_pair_ne : ∃ (x : R), ∃ (y : R), x ≠ y
in a local ring
R
, ifa + b = 1
, then eithera
is a unit orb
is a unit. In another word, for everya : R
, eithera
is a unit or1 - a
is a unit.- )