Closure (Math) / Closures of Relations
ReferencesPermalink
- https://staff.fnwi.uva.nl/d.j.n.vaneijck2/software/demo_s5/EREL.pdf
- https://doi.org/10.1016/B978-0-12-820656-0.00009-5
- https://people.cs.rutgers.edu/~elgammal/classes/cs205/chapt74.pdf
- https://en.wikipedia.org/wiki/Closure_(mathematics)
- https://en.wikipedia.org/wiki/Relation_(mathematics)
- https://en.wikipedia.org/wiki/Composition_of_relations
Closure (Math)Permalink
完整的 closure 场景应该包含这么几个元素:一个全集
主谓宾关系上有:
一般的要求是:若
除了 “closed under operations”,还有一类的要求是 “qualified as the same algebraic structure (with
- 假定
是个 group,那么 subset 是否同样构成 group?如果不构成,如何找到一个 smallest superset of that is a group?此时这个 smallest superset 就是 的 group closure- 此时一般还称
is generated/spanned by , and is the generating set of
- 此时一般还称
- 假定
是个 reflexive relation,那么 subset 是否同样是 reflexive?如果不是,如何找到一个 smallest superset of that is reflexive?此时这个 smallest superset 就是 的 reflexivity closure
有时候 “having some property” 可以被转化成 “closed under some operation”,比如 relation 的 symmetry 和 transitivity (reflexivity 很难用 operation 来表示)
- symmetry 可以表示为一个 unary operation
,它要求 is symmetric if it is closed under
- transitivity 可以表示为一个 binary operation
,它要求 is transitive if it is closed under
Closures of RelationsPermalink
DefinitionsPermalink
Following the definition of closure (Math):
is the reflexive closure of if is the smallest superset of that is reflexive is the symmetric closure of if is the smallest superset of that is symmetric is the transitive closure of if is the smallest superset of that is transitive
Proposition 2: The transitive closure of a similarity (relation) is an equivalence (relation).
Proof: Suppose
(Reflexivity) Construct
(Symmetry)
originally. Since is symmetric, , thus . , but there is a path with and . This path makes stand in (by transitivity). Since is symmetric, there should also be a path with . Thus, .
Either case,
(Transitivity)
Therefore,
Transitive Paths & Relation CompositionPermalink
Definition: If
Definition: Given relations
比较常见的情况是:没有
Theorem: Given a relation
Proof: (by induction)
(1) when
(2) Assume the assertion is true for
Suppose there is a path
Therefore
Closures of Relations 的具体算法Permalink
假定:
- reflexive closure 的 operator 为
- symmetric closure 的 operator 为
- transitive closure 的 operator 为
is a relation on
算法上有:
, where is the diagonal relation on , where is the converse relation of where
为何 的 Permalink
Theorem:
Definition: The connectivity relation or the star closure of relation
Theorem: The transitive closure of
Proof: We must show that:
is a superset of is transitive is the smallest superset of that is transitive
(1)
(2) Suppose
Since
(3) Suppose
Since
Similarly we can show that
所以理论上来说,若按
Theorem: If
Proof: Obviously true by Pigeon Hole Principle.
Therefore
Corollary: If
Closure OperatorsPermalink
前面的
不管
- (increasing)
- (monotonic)
- (idempotent)
这个
Definition:
Comments