对称闭包
| 对称闭包 | |
|---|---|
| 术语名称 | 对称闭包 |
| 英语名称 | symmetric closure |
对称闭包(symmetric closure)是指对集合上的一个二元关系,包含该关系的最小对称关系。
定义
| 对称闭包 | |
|---|---|
| 运算名称 | 对称闭包 |
| 运算符号 | [math]\displaystyle{ \operatorname{s}() }[/math],[math]\displaystyle{ ^s }[/math],[math]\displaystyle{ ^\sim }[/math] |
| Latex | \operatorname{s}, ^s, ^\sim
|
| 运算对象 | 关系 |
| 运算元数 | 1 |
| 运算结果 | 关系 |
| 定义域 | [math]\displaystyle{ \mathcal{P}(X\times X) }[/math] |
| 陪域 | [math]\displaystyle{ \mathcal{P}(X\times X) }[/math] |
对集合 [math]\displaystyle{ X }[/math] 上的二元关系 [math]\displaystyle{ R }[/math] ,定义满足以下条件的所有关系 [math]\displaystyle{ S }[/math]:
- [math]\displaystyle{ S }[/math] 是对称关系;
- [math]\displaystyle{ S \supseteq R }[/math] 。
其中必有一个关系是其他所有关系的子集,称为关系 [math]\displaystyle{ R }[/math] 的对称闭包(symmetric closure),记作 [math]\displaystyle{ \operatorname{s}(R) }[/math] 、 [math]\displaystyle{ R^s }[/math] 或 [math]\displaystyle{ R^\sim }[/math] 。
性质
- 基本性质
- 运算性质
- 对称闭包运算是幂等的: [math]\displaystyle{ \operatorname{s}(\operatorname{s}(R)) = \operatorname{s}(R) }[/math] 。
- 对称闭包运算是单调的:如果 [math]\displaystyle{ R \subseteq S }[/math] ,则 [math]\displaystyle{ \operatorname{s}(R) \subseteq \operatorname{s}(S) }[/math] 。
- 对称闭包与并运算可交换: [math]\displaystyle{ \operatorname{s}(R \cup S) = \operatorname{s}(R) \cup \operatorname{s}(S) }[/math] 。
- 对称闭包与交运算不一定可交换: [math]\displaystyle{ \operatorname{s}(R \cap S) \subseteq \operatorname{s}(R) \cap \operatorname{s}(S) }[/math] 。
- 对称闭包与逆关系可交换: [math]\displaystyle{ \operatorname{s}(R^{-1}) = \operatorname{s}(R) }[/math] 。
- 对称闭包的逆关系等于其自身: [math]\displaystyle{ (\operatorname{s}(R))^{-1} = \operatorname{s}(R) }[/math] 。
- 与其他闭包运算的关系:
- 特殊关系的对称闭包
- 表示
- 关系图
- 对称闭包的关系图是在原关系图中为每条有向边添加反向边得到
- 如果原关系图已有反向边,则对称闭包不会添加重复边
- 关系矩阵
- 对称闭包的关系矩阵是原关系矩阵与其转置的逻辑或
- 对称闭包的关系矩阵是原矩阵中进行最少次将 0 改为 1 操作的对称矩阵