foundation22 min studyLesson 108 in Mathematics

Equivalence relations as proof tools

Use reflexivity, symmetry, and transitivity to group objects, then check that operations do not depend on a representative.

On this page

What you’ll understand

  • Verify all three equivalence-relation axioms on a declared set.
  • Prove equivalence classes agree or are disjoint.
  • Check representative independence before defining an operation on classes.

Many mathematical constructions intentionally forget information. Congruence modulo three forgets the exact integer and keeps its remainder class. Fractions identify different numerator-denominator pairs representing the same rational number. An equivalence relation makes this “same for the present purpose” precise. Proofs involving such relations require two kinds of care: establish that the grouping is coherent, then ensure later calculations do not depend on which name for a group was chosen.

Three properties make grouping coherent

A relation on a set specifies which ordered pairs of its elements are related. Reflexivity says each element relates to itself. Symmetry permits reversal of a related pair. Transitivity permits chaining: if the first relates to the second and the second to the third, the first relates to the third. All three are necessary for the usual equivalence-class construction. The less-than-or-equal relation is reflexive and transitive but not symmetric, so it records order rather than interchangeability.

For integers a and b, congruence modulo a positive integer m means their difference is an integer multiple of m. Reflexivity uses multiplier zero. Symmetry changes the multiplier’s sign. Transitivity adds two integer multipliers. These short verifications depend on integer closure and the fixed modulus, not on drawing numbers in a circle. Once established, the relation can be used as a controlled way of replacing an integer by another representative.

a∼b ⟺ m∣(a−b),a−b=mr, b−c=ms⇒a−c=m(r+s)a\sim b\ \Longleftrightarrow\ m\mid(a-b),\qquad a-b=mr,\ b-c=ms\Rightarrow a-c=m(r+s)
For fixed positive integer m, congruence is an equivalence relation on integers. The displayed calculation proves its transitivity.↔ Scroll wide equations horizontally.

Classes form a partition

The equivalence class of a is the set of elements related to a. Reflexivity puts a in its own class, so every element belongs to at least one class. If two classes share an element, symmetry and transitivity show that every member of either belongs to the other. Thus the classes are equal. This proves that distinct classes are disjoint, a stronger and more useful conclusion than simply displaying several examples that seem not to overlap.

Keep distinct the element a, its class, and the set of all classes. An integer is not a collection of integers, even if a familiar notation uses the same symbol for its residue class. Choosing a representative from each class can simplify a calculation, but that choice should not become an unstated extra condition on the original objects. For congruence modulo three, representatives zero, one, and two are convenient names; negative integers still belong to the same three classes.

[a]={x:x∼a},[a]∩[b]≠∅⇒[a]=[b][a]=\{x:x\sim a\},\qquad [a]\cap[b]\ne\varnothing\Rightarrow[a]=[b]
The class-equality conclusion uses the equivalence axioms. It is generally false for neighborhoods formed from an arbitrary relation.↔ Scroll wide equations horizontally.

Operations on classes need a proof

To define addition of residue classes by adding representatives, show that replacing either representative by an equivalent integer gives an equivalent sum. If a differs from a′ by a multiple of m and b differs from b′ by another, their sums also differ by a multiple of m. This is representative independence, often called well-definedness. Without it, the same two input classes could be assigned two different outputs depending on how you happened to write them.

Not every familiar operation descends automatically. Integer division, for example, cannot be applied blindly to residue classes, because division by a class may not have a unique solution or any solution. Even a numerical function must be checked: sending the class of an integer to that integer’s ordinary square as a real number depends on the representative. Sending it to the class of its square is a different proposal and does pass the relevant congruence check.

Verify addition modulo five

If a is congruent to a′ modulo 5 and b is congruent to b′ modulo 5, prove that a + b is congruent to a′ + b′ modulo 5.

  1. The hypotheses mean there exist integers r and s with a − a′ = 5r and b − b′ = 5s. This is the usable content of the congruence notation.

  2. Subtract the proposed sum representatives: (a + b) − (a′ + b′) = (a − a′) + (b − b′) = 5r + 5s = 5(r + s).

  3. Because r + s is an integer, this difference is divisible by five. The outputs are therefore in the same class, which is exactly what is needed for addition of classes to be well defined.

The result

The class of a + b depends only on the input classes, so class addition is independent of representatives.

Explore the model

Interactive lab

Interactive lab · vectors

Different descriptions of one geometric vector

Keep magnitude fixed and compare angles −180 and 180 degrees using the angle control. Predict the same x and y projections. The vector diagram illustrates nonunique descriptions of the same geometric object; it does not compute residue classes, and decimal roundoff in readouts is not a proof of exact trigonometric equality.

Different descriptions of one geometric vectorPlayback traces a fixed vector and its projections. Angle and magnitude set the geometry; the moving marker does not change them. Current readings: x component: 1.393; y component: 0.975; Magnitude: 1.7. All parameters are adjustable with the labeled controls below.−7.46−3.7303.737.46−3.5−1.7501.753.5xyvvₓ = 1.39
Vectorx / y projectionsTrace marker
x component
1.393
y component
0.975
Magnitude
1.7
t = 0 s

Playback traces a fixed vector and its projections. Angle and magnitude set the geometry; the moving marker does not change them. Parameter changes pause playback and recompute the model at the current elapsed time. Reset restores both parameters and returns time to zero. Playback starts paused. Adjust either parameter, then choose Play or Step.

Look forBefore replacing a description, identify which underlying object is meant to remain the same.

Check your understanding

Why must an operation defined on equivalence classes be checked for well-definedness?

Try it yourself

On integers define a relation by “a and b have the same parity.” Verify that it is an equivalence relation and identify its classes.

Take a moment to make a prediction or work it out on paper. Open a hint when you need one.

Give me a hint

Express the relation by divisibility of a − b by two.

Compare with the solution

Reflexivity follows because a − a = 0 is divisible by two. If a − b = 2r, then b − a = 2(−r), giving symmetry. If a − b = 2r and b − c = 2s, then a − c = 2(r + s), giving transitivity. Every integer is either even or odd, so there are exactly two classes, the even integers and the odd integers; neither class is a single chosen representative.

Take it with you

  • Equivalence requires reflexivity, symmetry, and transitivity on a stated set.
  • Equivalence classes either coincide or are disjoint.
  • An operation on classes needs representative independence, not just a suggestive formula.

Read further

Original sources and deeper explanations to follow at your own pace.

Optional progress, saved in this browser when available. Revisit any lesson at any time.

Lesson not marked complete.