Difference between revisions of "Relation"
m |
m |
||
Line 1: | Line 1: | ||
A set {{M|R}} is a binary relation if all elements of {{M|R}} are [[Ordered pair|ordered pairs]]. That is for any {{M|z\in R\ \exists x\text{ and }y:(x,y)}} | A set {{M|R}} is a binary relation if all elements of {{M|R}} are [[Ordered pair|ordered pairs]]. That is for any {{M|z\in R\ \exists x\text{ and }y:(x,y)}} | ||
+ | [[Function|Functions]], [[Equivalence relation|equivalence relations]] and [[Ordering|orderings]] are special kinds of relation | ||
==Notation== | ==Notation== |
Revision as of 16:42, 5 March 2015
A set R is a binary relation if all elements of R are ordered pairs. That is for any z∈R ∃x and y:(x,y)
Functions, equivalence relations and orderings are special kinds of relation
Contents
[hide]Notation
Rather than writing (x,y)∈R to say x and y are related we can instead say xRy
Basic terms
Proof that domain, range and field exist may be found here
Domain
The set of all x which are related by R to some y is the domain.
Dom(R)={x|∃ y:xRy}
Range
The set of all y which are a relation of some x by R is the range.
Ran(R)={y|∃ x:xRy}
Field
The set Dom(R)∪Ran(R)=Field(R)
Relation in X
To be a relation in a set X we must have Field(R)⊂X
Images of sets
Image of A under R
This is just the set of things that are related to things in A, denoted R[A]
R[A]={y∈Ran(R)|∃x∈A:xRa}
Inverse image of B under R
As you'd expect this is the things that are related to things in B, denoted R−1[B]
R−1[B]={x∈Dom(R)|∃y∈B:xRy}
Important lemma
It is very important to know that the inverse image of B under R is the same as the image under R−1
Properties of relations
Symmetric
A relation R in A is symmetric if for all a,b∈A we have that aRb⟹bRa - a property of equivalence relations
Antisymmetric
A binary relation R in A is antisymmetric if for all a,b∈A we have aRb and bRA⟹a=b
Symmetric implies elements are related to each other, antisymmetric implies only the same things are related to each other.
Reflexive
For a relation R and for all a∈A we have aRa - a is related to itself.
Transitive
A relation R in A is transitive if for all a,b,c∈A we have [aRb and bRc⟹aRc]
Asymmetric
A relation S in A is asymmetric if aSb⟹(b,a)∉S, for example < has this property, we can have a<b or b<a but not both.