Skip to main content

1. The Basics

Basic Definitions and notation

Set is a collection of items, name elements, characterised by a certain property A={2,4,7,D,24}A = \{ 2,4,7,D,24\} Element xx belgons to AA indicated as xAx \in A Several elements of AA compose a subset S:SAS:S\subset A

Want to inidcate all the elements of the set: xA:\forall x \in A: Want to say there exists(at least) one element of AA which has a certain property (such that): xA\exists x \in A \ni '
Want to say there exists only/exactly one element of AA which has certain property !xA\exists! x \in A \ni ' if statement 1 THEN statement 2 \rightarrow statement 1 IF AND ONLY IF statement 2     \iff

Cardinality of a set

coincident - every element of AA is also an element of BB and every element of BB is also an element of AA cardinality of a set is number of elements contained in AA empty - indicated with \emptyset

Intersection and Union

intersection - C=ABC = A \cap B - set containing all the elements that are both in the sets AA and BB union - C=ABC = A \cup B - set containing all the elements that are either or both the sets AA and BB difference - C=ABC = A \setminus B - set containing all the elements that are in AA but not BB

Associativity of the Intersection

(AB)C=A(BC)(A\cap B) \cap C = A\cap (B\cap C)

Numbers and Number sets

Set is finite if its cardinality is a finite number. Set is infinite if its cardinality is \infty continuous if x0A:xxx0\forall x_0 \in A:\exists x \ni ' |x-x_0|

Types of Number Sets

Continue from last semester ℂ - Set of number than can be expressed as a+jba+jb where a,bRa,b\in \R and the imaginary uni j=1j=\sqrt {-1}

Cartesian Product

New set generated by all the possible pairs C=A×BC=A\times B A={1,5,7}A=\{ 1,5,7\} B={2,3}B=\{ 2,3\} C=A×B={(1,2),(1,3),(5,2),(5,3),(7,2),(7,3)}C=A\times B = \{ (1,2),(1,3),(5,2),(5,3),(7,2),(7,3)\}

Relations

Order Relation

Indicated with \preceq if following properties are verified:

  • reflexivity
  • transitivity
  • antisymmetry

Example

Let x,yNx,y \in \N and let consider (x,y)R(x,y) \in \mathscr{R} if and only if xx is a multiple of yy. More formally (x,y)R    xy=k(x,y)\in \mathscr{R}\iff \frac{x}{y} = k with kNk\in \N

Equivalence

Indicated with \equiv if following properties are verified:

  • Reflexivity - xxx \equiv x
  • symmetry - xyx\equiv y then yxy\equiv x
  • transitivity - xyx\equiv y and yxy\equiv x then xzx \equiv z

Equivalence Classes

Let R\mathscr{R} be an equivalence relation defined on AA. The equivalence class of an element aa is a set defined as [a]={xAxa}[a]=\{ x \in A|x \equiv a \}

Partition

Set of all the elements equivalent to aAa \in A is called equivalence class and is indicated with [a][a]

Functions/Mapping

Relation is to be a mapping or function when it relates to any element of a set unique element of another. Let AA and BB be two sets, a mapping f:ABf:A \to B is a relation RA×B\mathscr{R} \subseteq A\times B such that: xA!yB(x,y)R\forall x \in A\exists! y \in B\ni '(x,y) \in \mathscr{R} (Every element, find only 1 element in other set such that y is = x)

The statement (x,y)R(x,y) \in \mathscr{R} can be expressed also as y=f(x)y=f(x) Unary operator - f:ABf:A \to B Binary operator - f:A×ABf:A \times A \to B or f:A×CBf:A\times C\to B Internal composition law - f:A×AAf:A\times A\to A

algebraic structure - set endowed with 1+ internal composition laws (A,+,.)(A,+,.)

Injective Functions

fABf A \to B is injection if the function values of two different elements is always different: x1\forall x_1 and x2\forall x_2 if x1x2x_1 \ne x_2 then f(x1)f(x2)f(x_1) \ne f(x_2) Never crosses horizontal line twice. Doesnt cross it twice

Surjective Functions

fABf A \to B is surjective if all elements of BB are mapped by an element of A:yBA: \forall y\in B it follows that xA\exists x \in A such that y=f(x)y=f(x) Graph has no holes. Y axis as got a function, eg crosses graph

Bijective Functions

fABf A \to B is bijective when both injection and surjection are verified