Let set A: A={Β Β 1,Β Β 2Β Β }
Powerset of A: P(A)={Β Β β
,Β Β {1},Β Β {2},Β Β {1,2}Β Β }
Cartesian product of the set A: AΓA={Β Β (1,1),Β Β (1,2),Β Β (2,1),Β Β (2,2)Β Β }
Enumerated powerset of the Cartesian product of the set A i.e. P(AΓA)=P(A2) is given below. There are 16 elements in this powerset i.e. there are 16 possible relations:
1 possible way to choose no pairs (0-place): (04β)
4 possible ways to choose 1 pair (1-place): (14β)
6 possible ways to choose 2 pairs (2-place): (24β)
4 possible ways to choose 3 pairs (3-place): (34β)
1 possible way to choose all pairs (n-place): (44β)
The formula to choose k-places out of n elements:
(knβ)=k!(nβk)!n!β Enumerated powerset of the Cartesian product of the set A:
P(Β Β {Β Β (1,1),Β Β (1,2),Β Β (2,1),Β Β (2,2)Β Β }Β Β )={R1β:β
,R2β:{(1,1)},R3β:{(1,2)},R4β:{(2,1)},R5β:{(2,2)},R6β:{(1,1),(1,2)},R7β:{(1,1),(2,1)},R8β:{(1,1),(2,2)},R9β:{(1,2),(2,1)},R10β:{(1,2),(2,2)},R11β:{(2,1),(2,2)},R12β:{(1,1),(1,2),(2,1)},R13β:{(1,1),(1,2),(2,2)},R14β:{(1,1),(2,1),(2,2)},R15β:{(1,2),(2,1),(2,2)},R16β:{(1,1),(1,2),(2,1),(2,2)}} Relations:
Summary:
The number of reflexive and irreflexive relations is the same.
The number of strict partial orders (irreflexive transitive relations) is the same as that of partial orders.
the number of equivalence relations is the number of partitions, which is the Bell number.
Sets
A set is an unordered collection of distinct objects (that share some common property) considered as an object in its own right.
defined intensionaly (semantically): "A set of odd positive ints"
Two sets are equal if they contain the same elements.
Types
Subset and powerset
universal (1): R16β
reflaxive (4): R1β,R8β,R13β,R16β
irreflexive (4): R1β,R3β,R4β,R9β
symmetric (8): R1β,R2β,R5β,R8β,R9β,R12β,R15β,R16β
anti-symmetric (12): R1ββR8β,R10β,R11β,R13β,R14β
asymmetric (5): R1ββR5β
transitive (13): only R9β and R15β are not transitive
The number of distinct binary relations on an n-element set is 2(n2)
Ordered pair (1,2)={{1},{1,2}}
Powerset of A: P(A)
={β
,{1},{2},{1,2}}
={β
,{1},{2},{1,2},{2,1}}
={β
,{1},{1,2},{2},{2,1}}
={β
,(1,2),(2,1)}
Ordered pair (x,y)={{x},{x,y}}
if x=y then (a,a)
={{a},{a,a}}
={{a},{a}}
defined extensionaly (enumeration): {a,b,c}
denoted with a capital letter: A={a,b,c}, elements with lowercase
If a is an element of set B then: aβB, if not aβ/B
Order or repetition unimportant: {{a},b,β
}={b,{a},{},b,β
,{}}
A set can contain other sets, xβA,AβM, so xβA but xβ/M.
An empty set contains no elements: β
={}
A set, {a,b}, is distinguished from the ordered pair, (a,b)
n-element set is different from ordered n-tuple: {x1β,x2β,β¦,xnβ}ξ =(x1β,β¦,xnβ)
Two ordered pairs are equal iff: (a,b)=(x,y)βΊa=xβ§b=y
The order of the elements or their repetition is of no consequence to sets, {a,b,{}}={b,{},b,β
,a}.
{β
}={{}}
if all elements of a set A are also elements of a set B, then A is a subset of B: AβB and B is a superset of A: BβA.
a set B is equal to A if the two sets consist of exactly the same elements: A=BβΊAβBβ§BβA.
if AβB but Bξ =A then A is a proper subset of B: AβB.
if a set P contains all possible subsets of a set A, then P is a powerset of A, denoted as P(A).
e.g. if A={a,b}, then P={{a},{b},{ab},{β
}}
here, the cardinality (number of elements) of P is 4, denoted as β£Pβ£=4
Properties of sets: βA,B,C
AβA (reflexivity)
AβBβ§BβCβAβC (transitivity)
AβBβ§BβAβA=B (anti-symmetry, axiom of extensionality)
β
βA
Aββ
βA=β