Closures Again
Learning objectives
- Describe the closure of a set under an operation as a stage-by-stage construction
- Prove that the constructed closure is the smallest closed set containing the seed
- Compute transitive, reflexive, and symmetric closures of a relation
- Use induction on the stage index to prove properties of the closure
In §5.4 a closure was defined "from outside" — the smallest set with a property, computed as an intersection of all closed sets containing the seed. That definition is correct but it tells you nothing about how to actually build the closure. Induction unlocks a constructive definition "from inside": start with the seed , apply the operation once to get a new layer, apply it to the new layer to get another, and so on. The union of all layers is the closure. Once you have the construction, induction on the layer index becomes the proof tool for everything: every element of the closure has a finite construction history, and you can reason about it the way you reason about natural numbers.
The inductive construction
Let and let be a binary operation. Define a sequence of sets stage by stage:
The closure of under is
Each is a finite (or at least bounded) approximation; the union gathers them all. An element belongs to exactly when there is some finite stage where .
Transitive closure of a relation
Let . Define and where is relational composition: iff there exists with and . The transitive closure of is
The pair means there is a path of length from to stepping along arrows of . Thus is the relation " is reachable from by following for one or more steps." The reflexive-transitive closure adds the identity pairs to allow zero-step paths.
Why it really is the smallest closed set
Two facts together pin down as the smallest set containing and closed under :
(i) is closed. If , then and for some . Let . Both belong to (since the are nested), so .
(ii) Any closed containing also contains . Prove by induction on that . Base : . Step: if , then for any we have , so (since is closed). Thus . Taking the union, .
Pause and think: consider under addition. What is ? Find a stage at which but .
Try it
- Predict: closure of under addition in . Compute and conjecture the full closure.
- Predict the transitive closure of on . Compute explicitly.
- Is closed under subtraction? Under division? For each, decide and give a concrete witness.
- On paper, draw a small relation on as an arrow diagram (the widget above can hold the base relation ). Compute stage by stage by listing the pairs that appear at each step, then union them for . Predict which new pairs each stage adds before checking.
A trap to watch for
It is tempting to assume that some single stage already equals the entire closure. That is generally false when is infinite or the operation produces infinitely many new elements. For example, with under addition, , , . No single equals ; the closure is the union of all stages. Conversely, if the operation produces no genuinely new elements at some stage (i.e., ), then the sequence has stabilised and is the closure. Always check whether the construction stabilises before claiming a finite description.
What you now know
You can describe a closure constructively as a union of stages, prove it equals the smallest closed set containing the seed, and use induction on the stage index to verify properties of every element of the closure. You can compute small transitive and reflexive closures by hand. This is also the structural template behind "generated by" in algebra, recursive CTE in databases, and Warshall's algorithm in graph theory — all variations on the same idea: iterate the operation until nothing new appears, then bundle the work into a single proof by induction on stage.
References
- Velleman, D. J. (2019). How to Prove It: A Structured Approach (3rd ed.). Cambridge University Press, §6.5.
- Cormen, T. H., Leiserson, C. E., Rivest, R. L., Stein, C. (2009). Introduction to Algorithms (3rd ed.). MIT Press, ch. 25 (all-pairs shortest paths / Warshall).
- Hammack, R. H. (2018). Book of Proof (3rd ed.). Virginia Commonwealth University, ch. 11.
- Graham, R. L., Knuth, D. E., Patashnik, O. (1994). Concrete Mathematics (2nd ed.). Addison-Wesley, ch. 1.
- Pierce, B. C., et al. (2018). Software Foundations, Vol. 1: Logical Foundations. Online, ch. "Relations."