Chapter 16
Hard

Chinese Remainder Theorem

00 · Symbol Glossary

$I+J=R$Comaximal ideals

Two ideals whose sum is the entire ring — the ring-theoretic generalization of two integers being coprime (gcd(m,n)=1    mZ+nZ=Z\gcd(m,n)=1 \iff m\mathbb{Z}+n\mathbb{Z}=\mathbb{Z}, Chapter 12).

$I\cap J$Intersection of two ideals (recalled)

Always an ideal (Theorem 12.3), corresponding to lcm\mathrm{lcm} when I,JI,J are ideals of Z\mathbb{Z}.

$R/I \times R/J$Direct product of quotient rings

The ring R/I×R/JR/I\times R/J from Chapter 07's direct product construction, applied to two quotient rings — the target of this chapter's central isomorphism.


01 · The Classical Statement

The Chinese Remainder Theorem is one of the oldest results in number theory, traditionally stated as: given coprime moduli, a system of congruences always has a unique simultaneous solution.

Example — The classical problem

Find xx with x2(mod3)x\equiv2\pmod3 and x3(mod5)x\equiv3\pmod5. Checking x=8x=8: 8=3(2)+28=3(2)+2 ✓, 8=5(1)+38=5(1)+3 ✓. It works — and (as the classical theorem asserts) 88 is the only solution modulo 15=3×515=3\times5.

This chapter recasts that classical fact as a ring isomorphism, using exactly the machinery built in Chapters 12 and 13 — and the generalization applies far beyond Z\mathbb{Z}.


02 · Comaximal Ideals

Definition — Comaximal Ideals

Two ideals I,JRI,J\trianglelefteq R are comaximal if I+J=RI+J=R.

Example — Comaximal ideals of Z are exactly coprime multiples

By Chapter 12's Section 04, mZ+nZ=gcd(m,n)Zm\mathbb{Z}+n\mathbb{Z} = \gcd(m,n)\mathbb{Z}. This equals Z\mathbb{Z} exactly when gcd(m,n)=1\gcd(m,n)=1. mZm\mathbb{Z} and nZn\mathbb{Z} are comaximal precisely when m,nm,n are coprime — recovering the classical hypothesis of the Chinese Remainder Theorem as a special case of "comaximal."


03 · The General Chinese Remainder Theorem

Theorem 16.1 — Chinese Remainder Theorem (ring version)

If I,JRI,J\trianglelefteq R are comaximal, then:

R/(IJ)    R/I×R/JR/(I\cap J) \;\cong\; R/I \times R/J

Proof

Define φ:RR/I×R/J\varphi: R \to R/I\times R/J by φ(a)=(a+I,a+J)\varphi(a) = (a+I,\,a+J).

Homomorphism. φ(a+b)=(a+b+I,a+b+J)=(a+I,a+J)+(b+I,b+J)=φ(a)+φ(b)\varphi(a+b) = (a+b+I,a+b+J) = (a+I,a+J)+(b+I,b+J) = \varphi(a)+\varphi(b), and φ(ab)=(ab+I,ab+J)=(a+I,a+J)(b+I,b+J)=φ(a)φ(b)\varphi(ab) = (ab+I,ab+J) = (a+I,a+J)(b+I,b+J) = \varphi(a)\varphi(b) (each coordinate is a quotient-ring homomorphism, Chapter 12). φ(1)=(1+I,1+J)\varphi(1)=(1+I,1+J), the unity of the product ring.

Kernel. φ(a)=(0+I,0+J)\varphi(a)=(0+I,0+J) exactly when aIa\in I and aJa\in J, i.e. aIJa\in I\cap J. So kerφ=IJ\ker\varphi = I\cap J — and by Theorem 13.3, this confirms independently that IJI\cap J is an ideal (already known from Theorem 12.3).

Surjective. Since I+J=RI+J=R, write 1=i+j1=i+j for some iI,jJi\in I,\,j\in J. Note j=1i1(modI)j = 1-i \equiv 1\pmod I (since iIi\in I) and i=1j1(modJ)i=1-j\equiv1\pmod J (since jJj\in J). Given any target (a+I,b+J)R/I×R/J(a+I,\,b+J)\in R/I\times R/J, let x:=aj+bix := aj+bi. Then:

x=aj+bia1+b0=a(modI)(using j1, i0modI)x = aj+bi \equiv a\cdot1 + b\cdot0 = a \pmod I \qquad (\text{using } j\equiv1,\ i\equiv0 \bmod I) x=aj+bia0+b1=b(modJ)(using j0, i1modJ)x = aj+bi \equiv a\cdot0 + b\cdot1 = b \pmod J \qquad (\text{using } j\equiv0,\ i\equiv1 \bmod J)

So φ(x)=(a+I,b+J)\varphi(x) = (a+I,\,b+J): every element of the target is hit.

By the First Isomorphism Theorem for rings (Theorem 13.6): R/kerφimφR/\ker\varphi \cong \mathrm{im}\,\varphi, and since φ\varphi is surjective, imφ=R/I×R/J\mathrm{im}\,\varphi = R/I\times R/J. So R/(IJ)R/I×R/JR/(I\cap J) \cong R/I\times R/J.


04 · Recovering the Classical Theorem

Example — Z/mnZ ≅ Z_m × Z_n, revisited

Let I=mZI=m\mathbb{Z}, J=nZJ=n\mathbb{Z} with gcd(m,n)=1\gcd(m,n)=1 (comaximal, Section 02). By Chapter 12's Section 04, IJ=lcm(m,n)Z=mnZI\cap J = \mathrm{lcm}(m,n)\mathbb{Z} = mn\mathbb{Z} (since gcd(m,n)=1\gcd(m,n)=1 gives lcm(m,n)=mn\mathrm{lcm}(m,n)=mn). Theorem 16.1 gives:

Z/mnZ    Zm×Zn\mathbb{Z}/mn\mathbb{Z} \;\cong\; \mathbb{Z}_m\times\mathbb{Z}_n

as rings — sharpening Theorem 7.3's group-only isomorphism ZmnZm×Zn\mathbb{Z}_{mn}\cong\mathbb{Z}_m\times\mathbb{Z}_n from Chapter 07 to include multiplication as well, exactly as Chapter 13's Example already did for the special case of a single prime power reduction.

Step-by-step — Solving x≡2 (mod 3), x≡3 (mod 5) via the proof's explicit formula
1
Find i3Zi\in3\mathbb{Z}, j5Zj\in5\mathbb{Z} with i+j=1i+j=1 (Bézout, Theorem 15.2): try 65=16-5=1, so i=63Zi=6\in3\mathbb{Z}, j=55Zj=-5\in5\mathbb{Z}.
2
Check the congruences i,ji,j should satisfy: j=51(mod3)j=-5\equiv1\pmod3 (since 5=3(2)+1-5=3(-2)+1) ✓; i=61(mod5)i=6\equiv1\pmod5 (since 6=5(1)+16=5(1)+1) ✓.
3
Apply the formula x=aj+bix=aj+bi with a=2,b=3a=2,b=3: x=2(5)+3(6)=10+18=8x = 2(-5)+3(6) = -10+18 = 8.
4
Verify: 82(mod3)8\equiv2\pmod3 ✓ (8=3(2)+28=3(2)+2); 83(mod5)8\equiv3\pmod5 ✓ (8=5(1)+38=5(1)+3).
5
Conclusion: x=8x=8 solves the system, matching Section 01's Example — and by Theorem 16.1, this solution is unique modulo 1515 (the isomorphism Z/15ZZ3×Z5\mathbb{Z}/15\mathbb{Z}\cong\mathbb{Z}_3\times\mathbb{Z}_5 is a bijection, so each target pair has exactly one preimage).

05 · Several Moduli at Once

Theorem 16.2 — CRT for k Pairwise Comaximal Ideals

If I1,,IkRI_1,\ldots,I_k\trianglelefteq R are pairwise comaximal (Ia+Ib=RI_a+I_b=R for all aba\neq b), then:

R/(I1Ik)    R/I1××R/IkR/(I_1\cap\cdots\cap I_k) \;\cong\; R/I_1\times\cdots\times R/I_k

Proof

By induction on kk, with k=2k=2 being Theorem 16.1. Assume the result for k1k-1 ideals, and let J=I1Ik1J = I_1\cap\cdots\cap I_{k-1}. It suffices to show JJ and IkI_k are comaximal (then applying Theorem 16.1 to J,IkJ,I_k gives R/(JIk)R/J×R/IkR/(J\cap I_k) \cong R/J\times R/I_k, and JIk=I1IkJ\cap I_k = I_1\cap\cdots\cap I_k, with R/JR/I1××R/Ik1R/J\cong R/I_1\times\cdots\times R/I_{k-1} by the induction hypothesis).

Since Ia+Ik=RI_a+I_k=R for each a<ka<k, write 1=xa+ya1=x_a+y_a with xaIax_a\in I_a, yaIky_a\in I_k. Then a=1k1(xa+ya)=1\prod_{a=1}^{k-1}(x_a+y_a) = 1; expanding, every term except axa\prod_a x_a contains at least one factor yaIky_a\in I_k, so every term except that one lies in IkI_k (absorption applied within the product structure). And axaI1Ik1I1Ik1=J\prod_a x_a \in I_1\cdots I_{k-1} \subseteq I_1\cap\cdots\cap I_{k-1}=J (a product of elements from each IaI_a lies in every IaI_a, since each individual IaI_a absorbs the other factors). So 1=(element of J)+(element of Ik)J+Ik1 = (\text{element of } J) + (\text{element of } I_k) \in J+I_k, giving J+Ik=RJ+I_k=R: comaximal.

Example — Three simultaneous congruences

Z/30ZZ2×Z3×Z5\mathbb{Z}/30\mathbb{Z} \cong \mathbb{Z}_2\times\mathbb{Z}_3\times\mathbb{Z}_5 (since 2,3,52,3,5 are pairwise coprime, hence 2Z,3Z,5Z2\mathbb{Z},3\mathbb{Z},5\mathbb{Z} pairwise comaximal, and 2Z3Z5Z=30Z2\mathbb{Z}\cap3\mathbb{Z}\cap5\mathbb{Z}=30\mathbb{Z}). A system like x1(mod2)x\equiv1\pmod2, x2(mod3)x\equiv2\pmod3, x3(mod5)x\equiv3\pmod5 has a unique solution mod 30 (which turns out to be x=23x=23: check 23=2(11)+123=2(11)+1, 23=3(7)+223=3(7)+2, 23=5(4)+323=5(4)+3 ✓✓✓), guaranteed to exist by Theorem 16.2 without needing to search.


06 · Exercises

EXERCISE 16.1

Compute gcd(4,9)\gcd(4,9) first to check comaximality, then compute lcm(4,9)\mathrm{lcm}(4,9) for the intersection.

gcd(4,9)=1\gcd(4,9)=1, so 4Z4\mathbb{Z} and 9Z9\mathbb{Z} are comaximal (Section 02). lcm(4,9)=36\mathrm{lcm}(4,9)=36, so 4Z9Z=36Z4\mathbb{Z}\cap9\mathbb{Z}=36\mathbb{Z}. By Theorem 16.1: Z/36ZZ4×Z9\mathbb{Z}/36\mathbb{Z} \cong \mathbb{Z}_4\times\mathbb{Z}_9.

State the isomorphism given by Theorem 16.1 for I=4ZI=4\mathbb{Z}, J=9ZJ=9\mathbb{Z}.

EXERCISE 16.2

Follow the exact steps of the Section 04 worked example: find Bézout coefficients for gcd(4,9)=1\gcd(4,9)=1 first.

Find i4Zi\in4\mathbb{Z}, j9Zj\in9\mathbb{Z} with i+j=1i+j=1: 1=9(1)+4(2)1 = 9(1) + 4(-2), so j=9j=9, i=8i=-8. Check: j=91(mod4)j=9\equiv1\pmod4 ✓; i=81(mod9)i=-8\equiv1\pmod9 ✓ (8=9(1)+1-8=9(-1)+1).

Apply x=aj+bix=aj+bi with a=1,b=2a=1,b=2: x=1(9)+2(8)=916=729(mod36)x = 1(9)+2(-8) = 9-16=-7 \equiv 29\pmod{36}.

Check: 29=4(7)+129 = 4(7)+1 ✓; 29=9(3)+229=9(3)+2 ✓.

Solve x1(mod4)x\equiv1\pmod4, x2(mod9)x\equiv2\pmod9 using the explicit construction from Theorem 16.1's proof.

EXERCISE 16.3

Check whether 6Z6\mathbb{Z} and 9Z9\mathbb{Z} are comaximal first — this determines whether Theorem 16.1 even applies.

6Z+9Z=gcd(6,9)Z=3ZZ6\mathbb{Z}+9\mathbb{Z} = \gcd(6,9)\mathbb{Z} = 3\mathbb{Z} \neq \mathbb{Z}. Not comaximal — Theorem 16.1 does not apply to I=6ZI=6\mathbb{Z}, J=9ZJ=9\mathbb{Z}.

The naive isomorphism fails for the bluntest possible reason: Z/18Z=18\lvert\mathbb{Z}/18\mathbb{Z}\rvert = 18 but Z6×Z9=54\lvert\mathbb{Z}_6\times\mathbb{Z}_9\rvert = 54, and isomorphic rings must have the same number of elements.

Tracing where the proof breaks is more instructive. The map φ:ZZ6×Z9\varphi:\mathbb{Z}\to\mathbb{Z}_6\times\mathbb{Z}_9, φ(a)=(a+6Z,a+9Z)\varphi(a)=(a+6\mathbb{Z},\,a+9\mathbb{Z}), is still a homomorphism, and its kernel is still 6Z9Z=lcm(6,9)Z=18Z6\mathbb{Z}\cap9\mathbb{Z} = \mathrm{lcm}(6,9)\mathbb{Z} = 18\mathbb{Z}, so the First Isomorphism Theorem still gives Z/18Zimφ\mathbb{Z}/18\mathbb{Z}\cong\mathrm{im}\,\varphi. What fails is surjectivity: the proof of Theorem 16.1 produced a preimage using 1=i+j1=i+j with iIi\in I, jJj\in J, and no such decomposition exists here, since 6Z+9Z=3Z6\mathbb{Z}+9\mathbb{Z}=3\mathbb{Z} does not contain 11. So imφ\mathrm{im}\,\varphi is a proper subring of Z6×Z9\mathbb{Z}_6\times\mathbb{Z}_9 — of size 18 inside 54, index 3. Comaximality is exactly the hypothesis that buys surjectivity.

Explain why Theorem 16.1 does not apply to I=6ZI=6\mathbb{Z}, J=9ZJ=9\mathbb{Z}, and what goes wrong with the naive isomorphism Z/18ZZ6×Z9\mathbb{Z}/18\mathbb{Z}\cong\mathbb{Z}_6\times\mathbb{Z}_9.

EXERCISE 16.4

Apply Theorem 16.2 with three pairwise coprime moduli.

7,11,137,11,13 are pairwise coprime (all distinct primes). By Theorem 16.2:

Z/1001Z    Z7×Z11×Z13\mathbb{Z}/1001\mathbb{Z} \;\cong\; \mathbb{Z}_7\times\mathbb{Z}_{11}\times\mathbb{Z}_{13}

(using 7×11×13=10017\times11\times13=1001), guaranteeing a unique solution mod 1001 to any system xa(mod7)x\equiv a\pmod7, xb(mod11)x\equiv b\pmod{11}, xc(mod13)x\equiv c\pmod{13}.

Using Theorem 16.2, state the isomorphism for Z/1001Z\mathbb{Z}/1001\mathbb{Z}, given 1001=7×11×131001=7\times11\times13.


07 · Chapter Summary

ConceptStatement
Comaximal idealsI+J=RI+J=R; generalizes gcd(m,n)=1\gcd(m,n)=1
CRT (ring version)I,JI,J comaximal     R/(IJ)R/I×R/J\implies R/(I\cap J)\cong R/I\times R/J (Thm 16.1)
Explicit solutionx=aj+bix=aj+bi where i+j=1i+j=1, iIi\in I, jJj\in J
Classical CRTgcd(m,n)=1    Z/mnZZm×Zn\gcd(m,n)=1 \implies \mathbb{Z}/mn\mathbb{Z}\cong\mathbb{Z}_m\times\mathbb{Z}_n, as rings
k-fold CRTPairwise comaximal I1,,Ik    R/IaR/IaI_1,\ldots,I_k \implies R/\bigcap I_a \cong \prod R/I_a (Thm 16.2)

Next: Chapter 17 — Fields begins the third arc of the course: rings where every nonzero element is invertible, the natural stopping point where division becomes fully available.