markdown
Composition and closure of relationsmd 17aed13
lecture/math/discrete-math/relation-composition-and-closure.lecture.n.md
Download PDF

Composition合成ごうせい and closure閉包へいほう of relations関係かんけい

date2026-07-02document_iddoc_83c064857b7cf6d74b3b53741e63e4bddescription関係の合成を、二段階の到達可能性として導入し、反射閉包・対称閉包・推移閉包を、何を最小限追加する操作かとして整理する講義である。prerequisites関係の基本 / 直積集合の基本 / 数学的帰納法と再帰的定義type講義content_typelecturestatusactiverelateddata/lecture/math/discrete-math/discrete-mathematics-portal.lecture.n.md / data/lecture/math/discrete-math/mathematical-induction-and-recursive-definitions.lecture.n.md / data/lecture/math/discrete-math/relation-basics.lecture.n.md / data/lecture/math/discrete-math/equivalence-relations-and-partitions.lecture.n.md / data/lecture/math/discrete-math/partial-and-total-orders.lecture.n.md / data/exercise/math/discrete-math/relations-and-equivalence-relations.exercise.n.md
mathdiscrete-mathrelation-compositionclosurelecture

1Introduction

Sometimes we do not want to check a relation関係かんけい only once; we want to know where repeated use of the relation can reach. For example, if direct train connections are given, we may want to know what stations are reachable with transfers. This idea is composition合成ごうせい of relations.

A closure閉包へいほう is an operation that adds the minimum missing ordered pairs順序対じゅんじょつい needed to satisfy a property性質せいしつ.

Composition distinguishes what is reachable in one use of a relation from what is reachable after finitely many uses. A closure retains every pair in the original relation while adding what is needed, so no existing pair is lost.

2Terms and definition: composition合成ごうせい

Let RA×B and SB×C be relations関係かんけい. Define the composite relation合成関係ごうせいかんけい SRA×C by

a(SR)cthereexistsbBsuchthataRbandbSc.

This says that we can move from a to b by R and then from b to c by S.

3Terms and definitions: identity relation恒等関係こうとうかんけい and inverse relation逆関係ぎゃくかんけい

The identity relation恒等関係こうとうかんけい on A is written

ΔA={(a,a)aA}A×A.

For RA×B, the inverse relation逆関係ぎゃくかんけい R-1B×A is

R-1={(b,a)(a,b)R}.

4What is closure閉包へいほう?

In this section, let RA×A be a relation関係かんけい on A.

The reflexive closure反射閉包はんしゃへいほう adds the self-pairs (a,a) needed for reflexivity反射性はんしゃせい.

Rref=RΔA

The symmetric closure対称閉包たいしょうへいほう adds reverse ordered pairs順序対じゅんじょつい.

Rsym=RR-1

The transitive closure推移閉包すいいへいほう, denoted by R+, is the smallest transitive推移的すいいてき relation関係かんけい obtained by repeatedly adding pairs aRc forced by aRb and bRc.

5Strategy

When constructing a closure閉包へいほう, track what must be added until the desired property性質せいしつ holds. The original relation関係かんけい must not be destroyed. A closure is an adding operation, not a deleting operation.

Here a path経路けいろ means a finite chain that follows relation arrows, such as aRb and then bRc. The term directed graph有向ゆうこうグラフ means only the viewpoint of drawing elementsげん as points and ordered pairs順序対じゅんじょつい as arrows.

The reflexive closure反射閉包はんしゃへいほう adds diagonal pairs, the symmetric closure対称閉包たいしょうへいほう adds reverse arrows, and the transitive closure推移閉包すいいへいほう adds direct relation pairs for destinations reachable by paths.

Being a minimal addition最小さいしょう追加ついか is also part of closure. That is, every relation関係かんけい that contains the original relation and satisfies the desired property must contain the ordered pairs順序対じゅんじょつい added by the closure.

6Intuitive explanation

If a relation関係かんけい is viewed as a directed graph, composition合成ごうせい means following two arrows in sequence. The transitive closure推移閉包すいいへいほう can be thought of as adding a direct arrow whenever a destination is reachable by following some number of arrows.

In this view, the transitive closure is the relation関係かんけい that records reachability. The original relation means “reachable in one step,” while the transitive closure means “reachable in some positive number of steps.”

In terms of path length, the reflexive closure反射閉包はんしゃへいほう allows movement of length 0, while the transitive closure推移閉包すいいへいほう adds destinations reachable by paths of positive length as direct relation pairs.

7Worked example: construct a transitive closure推移閉包すいいへいほう

7.1Problem

Find the transitive closure推移閉包すいいへいほう of the relation関係かんけい R={(1,2),(2,3)} on A={1,2,3}.

7.2Explanation

Because 1R2 and 2R3, transitivity推移性すいいせい requires 1R3. Therefore add (1,3).

The resulting relation関係かんけい is

R+={(1,2),(2,3),(1,3)}.

No further ordered pair順序対じゅんじょつい is forced, so this is the transitive closure推移閉包すいいへいほう.

8Proof supplement: minimality of the transitive closure推移閉包すいいへいほう

For a relation関係かんけい R on a set A, define its iterates recursively by

R1=R,Rn+1=RRn(n[PARSE ERROR: Undefined("Command(\"ge\")")]1).

The statement (a,b)Rn means that a path経路けいろ of exactly n arrows of R leads from a to b. With this notation, the transitive closure推移閉包すいいへいほう is

R+=RR2R3.

The relation R+ contains R. Also, if (a,b)R+ and (b,c)R+, then for some m,n[PARSE ERROR: Undefined("Command(\"ge\")")]1, (a,b)Rm and (b,c)Rn. Concatenating the paths gives (a,c)Rm+n, so (a,c)R+.

Finally, let SA×A be any transitive relation on A with RS. We prove RnS for every n[PARSE ERROR: Undefined("Command(\"ge\")")]1 by mathematical induction数学的帰納法すうがくてききのうほう. The base case is R1=RS. For the induction step, assume RnS and take (a,c)Rn+1=RRn. There is some bA with (a,b)RnS and (b,c)RS. Transitivity of S gives (a,c)S, so Rn+1S. Hence R+S, and R+ is the smallest transitive relation containing R.

9How to identify it and related links

  • If a relation is used repeatedly, think of composition合成ごうせい.
  • If missing self-loops are added, it is the reflexive closure反射閉包はんしゃへいほう.
  • If reverse arrows are added, it is the symmetric closure対称閉包たいしょうへいほう.
  • If reachability is recorded as a direct relation関係かんけい, it is the transitive closure推移閉包すいいへいほう.
data/lecture/math/discrete-math/relation-basics.lecture.n.md data/lecture/math/discrete-math/mathematical-induction-and-recursive-definitions.lecture.n.md data/lecture/math/discrete-math/equivalence-relations-and-partitions.lecture.n.md
raw .n.md をコピー
loc をコピー (filepath:line ~ line)
copy share link
copy encoded share link
path をコピー
copy share link
copy encoded share link
copy share link
copy encoded share link
タブを全て閉じる