Properties of Relations
Ref: Bernard Kolman, Robert C. Busby & Sharon Cutler Ros. (2014). Relations and Digraph. Discrete Mathematical Structures (6th ed., pp. 139-204). Pearson.
Properties of Relations
In many applications to computer science and applied mathematics, we deal with relations on a set
Reflexive and Irreflexive Relations
TL;DR:
reflexive(自反性): A relation R on a set A is reflexive if
That is, ifirreflexive(反自反性): A relation
on a set is irreflexive if a A, a R a $$
Example:
- Let
, so that is the relation of equality on the set . Then is reflexive, since for all . - Let
, so that is the relation of inequality on the set . Then is irreflexive, since for all . - Let
, and let . Then is not reflexive since and . Also, is not irreflexive, since . - Let
be a nonempty set. Let , the empty relation. Then is not reflexive, since for all (the empty set has no elements). However, is irreflexive.
Relation Matrix
We can identify a reflexive or irreflexive relation by its matrix as follows.
The matrix of a reflexive relation must have all 1’s on its main diagonal, while the matrix of an irreflexive relation must have all 0’s on its main diagonal.
Digraph
Similarly, we can characterize the digraph of a reflexive or irreflexive relation as follows.
A reflexive relation has a cycle of length 1 at every vertex.
An irreflexive relation has no cycles of length 1.
Another useful way of saying the same thing uses the equality relation
is reflexive if and only if . is irreflexive if and only if .
Finally, we may note that if
Symmetric, Asymmetric, and Antisymmetric Relations
symmetric(对称性): A relation
on a set is symmetric if whenever , then . It then follows that R is not symmetric if we have some a and b ∈ A with a R b, but bR/a.asymmetric(不对称性): A relation R on a set
is asymmetric if whenever ,then . It then follows that is not asymmetric if we have some a and b ∈ A with both and .antisymmetric(反对称性): A relation R on a set A is antisymmetric if whenever
and , then . The contrapositive(逆否命題) of this definition is that is antisymmetric if whenever , then and .- It follows that R is not antisymmetric if we have
and in , , and both and .
- It follows that R is not antisymmetric if we have
Example:
Let
so that
Solution:
- Symmetry: If
, then it is not true that , so is not symmetric. - Asymmetry: If
, then ( is not less than ), so is asymmetric. - Antisymmetry: If
, then either or , so that is antisymmetric.
Relation Matrix
We now relate symmetric, asymmetric, and antisymmetric properties of a relation to properties of its matrix.
The matrix
Thus
It follows that
对称性: 如果有关系, 则必定对称. 关系矩阵等于其Transpose.
The matrix
不对称性: 不能有任何对称.
Finally, the matrix
反对称性: 对称的一定在对角线(但对角线不一定对称). 逆否命题: 不在对角线上的两个元素绝对不对称.
在对角线说明两个元素是同一个元素.
Digraph
If R is a:
asymmetric relation:
The digraph of R cannot simultaneously have an edge from vertex i to vertex j and an edge from vertex j to vertex i.
This is true for any i and j, and in particular if i equals j.
Thus there can be no cycles of length 1, and all edges are “one-way streets.” 不能有自环. 所有边都是单向边.
antisymmetric relation:
- For different vertices i and j there cannot be an edge from vertex i to vertex j and an edge from vertex j to vertex i.
- When i = j, no condition is imposed. Thus there may be cycles of length 1, but again all edges are “one way.” 可能有自环, 但所有边依然是单向边.
symmetric relation:
- If two vertices are connected by an edge, they must always be connected in both directions.
- 在这种情况下所有边都是双向边. 我们在画图时把边合为一条, 方向省略. 这样的图称作graph(无向图), 其中的边都是undirected edge(无向边).
An undirected edge between a and b, in the graph of a symmetric relation R, corresponds to a set {a, b} such that (a, b) ∈ R and (b, a) ∈ R. Sometimes we will also refer to such a set {a, b} as an undirected edge of the relation R and call a and b adjacent vertices.
A symmetric relation R on a set A is called connected(联通的) if there is a path from any element of A to any other element of A. This simply means that the graph of R is all in one piece. In the below Figure we show the graphs of two symmetric relations.
The graph in Figure (a) is connected, whereas that in Figure (b) is not connected.

Transitive Relations
transitive(传递性): We say that a relation
on a set is transitive if whenever and , then .- A relation
on is not transitive if there exist , and in so that and , but . If such , and do not exist, then is transitive.
- A relation
传递性的另外两个等价表述:
If
, then ; that is, (as subsets of ).if
and are connected by a path of length 2 in , then they must be connected by a path of length 1 .
THEOREM1
A relation
If there is a path of length greater than 1 from vertex
THEOREM2
It will be convenient to have a restatement of some of these relational properties in terms of
Let
- Reflexivity of
means that for all in . - Symmetry of
means that if and only if . - Transitivity of
means that if and , then .