Abstract
Basically a Subset of Cartesian Product filtered by some conditions which define the relation among the elements from the given Set
Commonly used in Database , the columns are the different sets, the Cartesian Product of the columns are all the potential relation. Each row is a actual Order n-tuples inside the relation
Binary Relation
Let x ∈ A , y ∈ B , we say x R y ↔ ( x , y ) ∈ R
Inversion of Relation
R − 1 = {( y , x ) ∈ B × A : ( x , y ) ∈ R }
Composition of Relation
The composite of 2 Relation - R
and S
Given Set A
, B
, C
, R ⊆ A × B and S ⊆ B × C
∀ x ∈ A , ∀ z ∈ C ( x S ∘ R z ↔ ( ∃ y ∈ B ( x R y ∩ y S z )))
x ∈ A and z ∈ C are S ∘ R related
If there is a ‘path’ from x
to z
, there must have a path from (x to y and y to z )
If there is a path from (x to y and y to z ), there must a path from x to z
Composition is Associative
T ∘ ( S ∘ R ) = ( T ∘ S ) ∘ R = T ∘ S ∘ R
Inverse of Composition
( S ∘ R ) − 1 = R − 1 ∘ S − 1
Relation Properties
Not properties of the elements of the Set !
Reflexive
Every element in the given Set must be related to itself
∀ x ∈ A ( x R x )
Symmetric
If an element is related to another element, the another element must be related to this element too
∀ x , y ∈ A ( x R y → y R x )
Transitive
If an element is related to another element, and that element is related to a third element. Then this must be related to the third element
∀ x , y , z ∈ A ( x R y ∩ y R z → x R z )
Equivalence Relation
Equivalence Class
Basically same as the component of a Partition or elements of Equivalence Relation
Can be represented with [ a ] re l a t i o n , it means the Equivalence Class contains element a
[ a ] re l a t i o n and [ b ] re l a t i o n are the same iff b is in the same equivalence class as a
Theorem
Lemma Rel.1
Theorem 8.3.4
Terminologies
Arrow Diagram
Visualize Relation
Usually used when there is more than one Set involve in the relation
Relation Domain
Basically the Set of elements of the left hand Set that is involved in the Relation
{ a ∈ A : a R b f or so m e b ∈ B }
Relation Co-domain
The whole Set at the right hand side
Range
Basically the Set of elements of the right hand set that is involved in the Relation
{ b ∈ B : a R b f or so m e a ∈ A }
N-ary Relation
A Relation involving 2 Set is called binary relation , also known as 2-ary
Ternary is 3-ary
Quaternary is 4-ary
Congruence Modulo 3
∀ x , y ∈ Z ( x R y ↔ 3∣ ( x − y ))
Transitive Closure of Relation
The Relation obtained by adding the least number of Ordered Pair to ensure Transitive
Represented with R t
Following 3 properties:
R t is transitive
R ⊆ R t
R t ⊆ S , where S is any other transitive relation that contains R