《Discrete Mathematic with Applications》读书笔记五

Chapter5 SET THEORY


5.1 Basic Definitions of Set Theory


The axiom of extension says that a set is completely determined by its elements; the order in which the elements are listed is irrevlevant, as is the fact that some elments may be listed more than once.


The def of set:

{a, b, c}  {a, b}


A = {x in S| p(x)}

Subsets

《Discrete Mathematic with Applications》读书笔记五

《Discrete Mathematic with Applications》读书笔记五



Proper Subset(真子集)

《Discrete Mathematic with Applications》读书笔记五

Venne Diagram to presents the relationship between sets

《Discrete Mathematic with Applications》读书笔记五

Set Equality

《Discrete Mathematic with Applications》读书笔记五


Operations on Sets

A certain situation all sets being considered might be sets of real numbers. In such a situation, the set of real numbers would be called a universal set (全集)or auniverse of discourse for the discussion.

《Discrete Mathematic with Applications》读书笔记五

《Discrete Mathematic with Applications》读书笔记五


The Empty Set

《Discrete Mathematic with Applications》读书笔记五


Partitions of Sets

《Discrete Mathematic with Applications》读书笔记五


Mutually disjoint(互不相交)

《Discrete Mathematic with Applications》读书笔记五

《Discrete Mathematic with Applications》读书笔记五


Power Sets (幂集)

《Discrete Mathematic with Applications》读书笔记五


Cartesian Products(笛卡尔乘积)

《Discrete Mathematic with Applications》读书笔记五

《Discrete Mathematic with Applications》读书笔记五


An Algorithm to Check Whether One Set Is a Subset of Another(Optional)

《Discrete Mathematic with Applications》读书笔记五


5.2 Properties of Sets

This section we discuss the basic set properties using element arguments.

《Discrete Mathematic with Applications》读书笔记五

《Discrete Mathematic with Applications》读书笔记五


《Discrete Mathematic with Applications》读书笔记五

《Discrete Mathematic with Applications》读书笔记五



Element argument  : it shows that one set to be a subset of another one by demonstrating that every element in the one set is also an element in  the other.


Set Identities

《Discrete Mathematic with Applications》读书笔记五


Proving Set Identities

《Discrete Mathematic with Applications》读书笔记五


The illustrated of the structured proof method.

《Discrete Mathematic with Applications》读书笔记五


《Discrete Mathematic with Applications》读书笔记五

The types of reasoning used above to derive the proof of the distributive law are called forward chaining and backward chaining. (In the study of artifical intelligence)


《Discrete Mathematic with Applications》读书笔记五


To proof the De Morgan's Law for Sets

Use the procedural versions of the definitions of complement, union, and intersection, and at  crucial points you use De Morgan's Laws of logic.

《Discrete Mathematic with Applications》读书笔记五

《Discrete Mathematic with Applications》读书笔记五


《Discrete Mathematic with Applications》读书笔记五



The Empty Set


《Discrete Mathematic with Applications》读书笔记五

《Discrete Mathematic with Applications》读书笔记五

《Discrete Mathematic with Applications》读书笔记五

A Proof for a Conditional Statement


《Discrete Mathematic with Applications》读书笔记五


5.3 Disproofs, Aglebraic Proofs, and Boolean Algebras

Disproving an Alleged Set Property

Recall that to show a universal statement is false ,it suffices to find one counter example.


《Discrete Mathematic with Applications》读书笔记五

《Discrete Mathematic with Applications》读书笔记五

Counter Example:

Let A = {1, 2} B = {1, 3} C = {1}

A - C = {2}    A - B = {2}   B - C = {3}

(A - B) V ( B - C ) = {2, 3}

Let x = 3.  X is in (A - B) V ( B - C ) = {2, 3}

but x is not in A - C = {2}

《Discrete Mathematic with Applications》读书笔记五

《Discrete Mathematic with Applications》读书笔记五


Problem-Solving Strategy

How to determine whether a given universal statement about sets is true or false?

the optimistic(乐观主义) and pessimistic(悲观主义)

The optimistic approach, plunge in and start trying to prove the statement, ask your self, "What do I need to show?" and "How do I show it?"

The pessitmistic approach, start by searching your mind for a set of conditions that must be fulfilled to construct a counterexample.

In either approach you may have clear sailing and be immediately successful or you may run into difficulty.

The trick is to be ready to switch to the other approach if the one you are trying does not look promising.

For some complicated problem, you may alternate several times between the two approaches before arriving at the correct answer.


The Number of Subsets of a set

proof by mathematical induction.

《Discrete Mathematic with Applications》读书笔记五


"Algebraic" Proofs of Set Identities

《Discrete Mathematic with Applications》读书笔记五


Boolean Algebras

《Discrete Mathematic with Applications》读书笔记五

《Discrete Mathematic with Applications》读书笔记五

《Discrete Mathematic with Applications》读书笔记五

Each property of about boolean algebra is a paired statements.

One can be interchanging all + and * ;and interchanging 1 and 0 to another. It is called the duality principle for a Boolean algebra.

《Discrete Mathematic with Applications》读书笔记五

《Discrete Mathematic with Applications》读书笔记五

Exercise 57. for all x, y, z in B if x + y = x + z and x.y = x.z then y = z.

y = (x + y) y  by absorption law and exercise 50.
  = (x + z) y  by  x + y = x + z
  = xy + zy    by distributive law
  = xz + yz    by xy = xz and substitution
  = z(x + y)   by distributive law
  = z(x + z)   by substitution for x + y = x + z
  = z          by absorption law


5.4 Russell's Paradox and the Halting Problem


Russell's paradox: Most sets are not elements of themselves. For instance, the set of all integers is not an integer and the set of all horses is not a horse. However, we can imagine the possibility of a set's being an element of itself. For Instance, the set of all abstract ideas might be considered an abstract idea. If we are allowed to use any description of a property as the defining property of a set, we can let S be the set of all sets that are not elements of themselves:

《Discrete Mathematic with Applications》读书笔记五


《Discrete Mathematic with Applications》读书笔记五


To avoid the Russell's paradox for the definition of the set, except for the power set whose existence is guaranteed by an axiom, whenever a set is defined using a predicate as a defining property, the stipulation must also be made that the set is a subset of a known set. This method  does not allow us to talk about "The set of all sets that are not elements of themselves." we can speak only of "The set of all sets that are subsets of some known set and that are not elements of themselves."

Considered the following definition:

《Discrete Mathematic with Applications》读书笔记五


The Halting problem

Is there an algorithm to check that an alternative algorithm is halts or loops forever?

《Discrete Mathematic with Applications》读书笔记五