set theory and logic

0.0(0)
studied byStudied by 0 people
0.0(0)
full-widthCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/43

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

44 Terms

1
New cards

Axioms of partial ordering

Reflexivity

Antisymmetry

Transitivity

2
New cards

defenition of a partial ordering (poset)

A relation ⊆ on a set A is called a partial ordering if the following properties are satisfied for all a,b and c in A

  • Reflexivity: a ⊆ a

  • Antisymmetry: If a ⊆ b and b ⊆ a, then a = b

  • Transitivity: if a ⊆ b and b ⊆ c, then a ⊆ c

3
New cards

What’s the distinction between partial and total ordering

In total ordering all elements are comparable with each other, in partial ordering this is not necessary

4
New cards

Condition of reflexivity

a is ranked less than or equal to a

<p>a is ranked less than or equal to a</p>
5
New cards

Condition of Antisymmetry

If a is ranked less than or equal to b and b is ranked less than or equal to a then a = b

<p>If a is ranked less than or equal to b and b is ranked less than or equal to a then a = b</p>
6
New cards

Condition of transitivity

If a is ranked less than or equal to b and b is ranked less than or equal to c, then a must be ranked less than or equal to c

<p>If a is ranked less than or equal to b and b is ranked less than or equal to c, then a must be ranked less than or equal to c</p>
7
New cards
<p>How can this be read</p>

How can this be read

a is ranked strictly below b

8
New cards

additional condition for a relation on set A to be a totally ordered set

Comparability: either a ⊆ b or b ⊆ a is true

(every element is ranked against every other element)

9
New cards

give an example of when reflexivity is not true

take Z, it is true that 1 = 1. Now take the relation ⊆ to be <. Then clearly 1 ⪯̸ 1 so this natural-looking relation is not reflexive

10
New cards

Poset

A partially ordered set

11
New cards

what is the power set of S where S = {1,2}

P(S) = {∅, {1}, {2}, {1,2}}

12
New cards

Draw a Hasse diagram for the power set of S = {1,2} using the subset ordering

knowt flashcard image
13
New cards

How does subset ordering work

a ⊆ b if every element of a is also an element of b

14
New cards

What is the additional axiom of total ordering

Comparability (totality)

15
New cards

Condition of comparability

For all a and b in A, either a is ranked less than or equal to b or b is ranked less than or equal to a

<p>For all a and b in A, either a is ranked less than or equal to b or b is ranked less than or equal to a</p>
16
New cards

What is the relationship between partially ordered sets and totally ordered sets

Every totally ordered set is also a poset but not every poset is a totally ordered set

17
New cards

Maximal element

An element, m, of a poset, P, such that there is no element x in P where m is ranked strictly less that x. Therefore, either x is ranked less than or equal to m or m is not ranked with x

<p>An element, m, of a poset, P, such that there is no element x in P where m is ranked strictly less that x. Therefore, either x is ranked less than or equal to m or m is not ranked with x</p>
18
New cards

3 conditions for the greatest element

  1. g is an element of S

  2. For every element s ∈ S, s is ranked less than or equal to g

  3. No other element in S satisfies the above two properties simultaneously

19
New cards

which are the maximal element(s) in the poset P = {∅, {1}, {2}, {3}, {1,2}} ordered by the subset relation ⊆

{1,2} and {3}

<p>{1,2} and&nbsp;{3}</p>
20
New cards

Relationship between greatest and maximal element

A greatest element will always also be a maximal

21
New cards

Hasse diagram for S = {1, 2, 3, 4, 5, 6} where a is ranked less than or equal to b if a divides b

<p></p>
22
New cards
<p>Meaning of </p>

Meaning of

a is ranked less than or equal to b if and only if there exists an integer excluding zero, k, such that b = ka

23
New cards

How can a maximum element not exist

Poset (N, <)

The infinite set of natural numbers

24
New cards

construct a poset that has exactly 1 maximal element 

for the only maximal element to not be the greatest element, the poset must be infinite, eg take ≤ on the set of positive integers and let 1≤2, then 2 becomes a maximal element but not greatest 

<p>for the only maximal element to not be the greatest element, the poset must be infinite, eg take&nbsp;≤ on the set of positive integers and let 1≤2, then 2 becomes a maximal element but not greatest&nbsp;</p>
25
New cards

Proof that every nonempty finite set has at least 1 maximal element

Proof by contradiction

Assume that A is a nonempty finite poset of size n with no maximal element. Take element a₁ ∈ A. Then ∃ a₂ ∈A such that a₁ ≤ a₂

continue in this way until reaching aₙ

a₁ ≤ a₂ ≤ a₃ …≤ aₙ

But aₙ cannot be maximal either, so ∃ aₙ₊₁ such that aₙ ≤ aₙ₊₁

Contradiction as n+1 distinct elements found, thereby A must have at least one maximal element

26
New cards

What can be said about a totally ordered finite poset

Must have a greatest element

27
New cards

N

Natural numbers = {1, 2, 3, …}

28
New cards

Z

Integers = {…-3, -2, -1, 0, 1, 2, 3, …}

29
New cards

Q

rational numbers = {p/q: p ∈ Z ∧ q ∈ Z - {0}}

30
New cards

A → B

A implies B

if A, then B

A is a sufficient condition for B

B is a necessary condition for A

31
New cards

what is a sufficient condition

something that guarantees a result

eg being divisible by 4 is a sufficient condition to be an even number

32
New cards

A ← B

A is implied by B

if B, then A

A is a necessary condition for B

B is a sufficient condition for A

33
New cards

P: Paul is happy

Q: Paul paints a picture

Sentence: “Paul is happy only if he paints a picture.”

P → Q

34
New cards

P: Paul is happy

Q: Paul paints a picture

Sentence: “If Paul is happy, then he paints a picture.”

P → Q

35
New cards

for A → B construct the inverse

¬A → ¬B

36
New cards

for A → B construct the contrapositive

¬B → ¬A

37
New cards

for A → B construct the converse

B → A

38
New cards

Which type of logical statement is equivilent to the original

Contrapositive

39
New cards

Prove (∀a, b ∈ Z)(a + b ≥ 15 ⇒ a ≥ 8 ∨ b ≥ 8)

Use proof by contraposition

contrapositive: (∀a, b ∈ Z)(a < 8 ∧ b < 8 ⇒ a + b < 15)

a < 8 ∧ b < 8 ⇒ a ≤ 7 ∧ b ≤ 7 ⇒ a + b ≤ 14 < 15

The contrapositive statement is true. We have proved the original statement is true using proof by contraposition

40
New cards

for all

41
New cards

there exists

42
New cards

difference between

(∀x)(∃y) x > y

(∃y)(∀x) x > y

For every x there is a y such that x > y

vs

there is a y such that for every x, x > y

43
New cards

Negate (∀x ∈ R)P(x),

(∃x ∈ R)¬P(x)

44
New cards

Prove (∀n ∈ Z)n² is even ⇒ n is even

Proof by contradiction

assume the negation: (∃n ∈ Z)n² is even → n is odd

((∃n ∈ Z)n² is even ⇒ n is odd) (∃a, b ∈ Z)(2a + 1)² = 2b

(2a + 1)² = 2b

4a² + 4a + 1 = 2b

2a² + 2a + ½ = b

½ = b − 2a² − 2a

contradiction as RHS is an integer, but LHS is not