← back to algebra

Rings

Tom Judson · GFDL · Abstract Algebra: Theory and Applications, Ch. 6

A ring is a set with two operations: addition (which forms an abelian group) and multiplication (which is associative and distributes over addition). Rings generalize the integers. Ideals are to rings what normal subgroups are to groups.

Two operations

A ring (R, +, *) satisfies: (1) (R, +) is an abelian group with identity 0; (2) multiplication is associative: a*(b*c) = (a*b)*c; (3) distributive laws: a*(b+c) = a*b + a*c and (a+b)*c = a*c + b*c. Multiplication need not be commutative, and multiplicative inverses may not exist.

Z (the integers) abelian group + identity: 0 inverse: -a associative × identity: 1 no inverses (2 has none) distributes Z is a ring: abelian group under +, associative under ×, with distribution
Scheme

Ideals

An ideal I of a ring R is a subring that absorbs multiplication: for any r in R and a in I, both r*a and a*r are in I. Ideals let you build quotient rings R/I, just as normal subgroups let you build quotient groups.

Scheme

Ring homomorphisms

A ring homomorphism f: R → S preserves both operations: f(a+b) = f(a)+f(b) and f(a*b) = f(a)*f(b). The kernel is an ideal, not just a subgroup.

Scheme

Notation reference

Math Scheme Python Meaning
(R, +, ·)(add a b) (mul a b)add(a,b), mul(a,b)Ring with two operations
I &lhd; Rideal testideal testI is an ideal of R
R/Iquotient ringquotient ringQuotient ring
a(b+c)=ab+acverified aboveverified aboveDistributive law
Neighbors

Algebra track

Category theory connections

  • Milewski Ch.6 — types form a semiring under sum and product types (coproduct and product)

Translation notes

Judson treats rings in Ch. 16 and ideals in Ch. 16-17. We compress this because the definition is straightforward: a ring is an abelian group with a second associative operation that distributes. The integers are the motivating example. Commutative rings with identity (the common case in algebra) are assumed throughout. The connection to Milewski's sum/product types is informal: types under (+, *) satisfy distributivity but lack additive inverses, making them a semiring rather than a ring.