Closure

2 min read

A set SS is closed under an operation \ast if applying the operation to elements of SS always produces an element of SS:

a,bS,abS\forall a, b \in S, \quad a \ast b \in S

Examples:

  • N\mathbb{N} is closed under addition and multiplication, but not subtraction (12N1 - 2 \notin \mathbb{N})
  • Z\mathbb{Z} is closed under +,,×+, -, \times but not division
  • Q,R,C\mathbb{Q}, \mathbb{R}, \mathbb{C} are closed under all four arithmetic operations (excluding division by zero)
  • The set of even integers is closed under addition; odd integers are not (1+1=21 + 1 = 2)

Closure of a set (noun): given SUS \subseteq U and an operation \ast, the closure S\overline{S} is the smallest superset of SS that is closed under \ast. Constructively: keep applying \ast to elements until no new elements appear.

S={TU:ST and T is closed under }\overline{S} = \bigcap \{T \subseteq U : S \subseteq T \text{ and } T \text{ is closed under } \ast\}

Closure of relations: given a relation RR on XX, extend RR minimally to satisfy a property.

  • Reflexive closure: R{(x,x):xX}R \cup \{(x,x) : x \in X\}
  • Symmetric closure: RR1R \cup R^{-1}
  • Transitive closure R+R^+: smallest transitive relation containing RR — if (a,b),(b,c)R+(a,b), (b,c) \in R^+ then (a,c)R+(a,c) \in R^+. Computed by repeated composition: R+=n1RnR^+ = \bigcup_{n \geq 1} R^n

Where closure shows up:

  • Algebra: groups, rings, and fields are defined by closure axioms — a group (G,)(G, \ast) requires GG closed under \ast
  • Linear algebra: a subspace must be closed under addition and scalar multiplication
  • Measure theory: a σ\sigma-algebra is a collection of sets closed under countable unions and complements — foundational for probability
  • Topology: the topological closure A\overline{A} is the smallest closed set containing AA (contains all its limit points)
  • Formal languages: the Kleene star LL^* is the closure of a language LL under concatenation
  • Databases / graphs: transitive closure answers reachability — "can I get from aa to bb?"

Intuition: closure is the answer to "if I start with this set and keep doing this operation, what's the smallest set I can't escape?" It's the fixpoint of "add everything forced to be here."

See also: Vector Spaces and Basis, Graphs and Traversals

Linked from

Nothing links here yet.