20
Sets, Relations, Life, and Death by Pavel Gladyshev Mathematically speaking…

Sets, Relations, Life, and Death

Embed Size (px)

DESCRIPTION

Mathematically speaking…. Sets, Relations, Life, and Death. by Pavel Gladyshev. Objects. Chair, You, Me, 1, 2, 3, UCD, pack of pringles Any two objects x and y can be compared for equality:. Set. Unoprdered c ollecton of distinct objects (members) - PowerPoint PPT Presentation

Citation preview

Page 1: Sets, Relations, Life, and Death

Sets, Relations, Life, and Deathby Pavel Gladyshev

Mathematically speaking…

Page 2: Sets, Relations, Life, and Death

Objects

• Chair, You, Me, 1, 2, 3, UCD, pack of pringles

• Any two objects x and y can be compared for equality:

Page 3: Sets, Relations, Life, and Death

Set

• Unoprdered collecton of distinct objects (members)

• May contain other sets as members

• Set names are written in capital Roman letters: A, B, N, R, …

Page 4: Sets, Relations, Life, and Death

Membership

Page 5: Sets, Relations, Life, and Death

Standard sets

Page 6: Sets, Relations, Life, and Death

Set definition

1. Enumeration of elements of the set

2. Restriction of (i.e. selection of elements from) an existing set

3. Combining existing sets using set operators

Page 7: Sets, Relations, Life, and Death

Set Definition by Enumeration

Page 8: Sets, Relations, Life, and Death

Set Definition by Restriction

• A consists of all members of B for which the logical formula is true

Page 9: Sets, Relations, Life, and Death

Logical formula

• Basic statements

• Connected with logical connectives

Page 10: Sets, Relations, Life, and Death
Page 11: Sets, Relations, Life, and Death

If no base set is specified, x is assumed to be a member of the Universal set:

Page 12: Sets, Relations, Life, and Death

Subset

“A is a subset of B” if every element of A is a member of B.

`

B

`

A

Page 13: Sets, Relations, Life, and Death

Set equality

Page 14: Sets, Relations, Life, and Death

Set operators

• Union

• Intersection

• Subtraction

Page 15: Sets, Relations, Life, and Death

Set operations

• Union:

• Intersection:

• Difference (“subtraction”)

Page 16: Sets, Relations, Life, and Death

• Assuming that – All men are mortal– Socratis is a man

• Convince me that Socratis is mortal

Page 17: Sets, Relations, Life, and Death

Tuple

• Ordered sequence of objects• Same object can appear in a tuple several

times• Elements of a tuple are referred to with

subscripts:

Page 18: Sets, Relations, Life, and Death

a

bc

1

2

3

Set A(Domain of the retation)

Set B(Range of the retation)

Relation

A collection of links between elements of two or more sets:

Page 19: Sets, Relations, Life, and Death

Relation• Formally defined as a set of tuples:

• Can be viewed as predicate:

Page 20: Sets, Relations, Life, and Death

Let’s talk mathematically about sexuality

• Define concepts “heterosexual”, “gay”, “lesbian”, etc.

• Convince me using Venn diagrams that gays are human beings.