Docsity

LOGIC (DISCRETE MATH), Slides of Discrete Mathematics

Partial preview of the text

Download LOGIC (DISCRETE MATH) and more Slides Discrete Mathematics in PDF only on Docsity!

Online Discussion for

Module 1

Ms. Hannah Ruth I. Cataluña

Logic

 (^) Logic and mathematical reasoning has numerous applications in computer science. Rules in logic are used in the design of computer circuits, the development of computer programs, the verification of the correctness of programs and many other ways.  (^) Logic is the basis of all mathematical reasoning, and it has a practical applications to the design of computing machines, to artificial intelligence, to computer programming, to programming languages and to other areas of computer science.

Proposition

 (^) Propositions are declarative sentences that are either true or false but not both. (Theory, hypothesis, thesis, argument, premise, principle, theorem, concept, idea, statement.)

Examples of propositions:

 (^) 5 is a prime number.  (^) 3 is a prime number, but 6 is not.  (^) Every natural number can be written as the sum of the squares of three natural numbers.  (^) He is over 5 ft. tall.  (^) 7 + 8 = 15  (^) Napoleon Bonaparte was president of the United States.  (^) The number 3 is positive and the number 2 is negative.  (^) is an integer.

LOGICAL CONNECTIVES AND

TRUTH TABLE

 (^) Many mathematical statements are constructed by combining one or more propositions. These new proposition are formed from existing propositions using logical operators. The logical operators that are used to form new propositions from two or more existing propositions are called connectives.  (^) In mathematics, the letters x, y, z, p, q, r often denote variables that can be replaced by the real numbers, and these variables can be combine with the familiar operations.

LOGICAL CONNECTIVES AND

TRUTH TABLE

 (^) In logic, the letters x, y, z, p, q, r denote propositional variables that is, that can be replaced by statements.  (^) Compound statements – statements or propositional variables combined by logical connectives.  (^) The truth values of a proposition built up from other propositions by using required connectives which are respectively determined by the truth values of the original propositions and the way the proposition is built up from them.

TRUTH TABLE

 (^) A diagram in rows and columns showing how the truth or falsity of a proposition varies with that of its components.  (^) A table that gives the truth-values of a compound sentence formed from component sentences by means of logical connectives.

STANDARD CONNECTIVE

SYMBOLS

Connective Symbol Mathematical Term

Not Negation

And Conjunction

Or Disjunction

If…then… Conditional or implication

If and only if

Bi-conditional or material

equivalence

Connective Symbol Mathematical Term

Not Negation

And Conjunction

Or Disjunction

If…then… Conditional or implication

If and only if

Bi-conditional or material

equivalence

Examples:

Write the negation of the following propositions:  (^) 5 is positive. 5 is not positive. / It is not the case that 5 is positive  (^) The air in Metro Manila is polluted. It is not the case that the air in Metro Manila is polluted. / The air in Metro Manila is not polluted. It is not the case that the /

The Truth Matrix of the Negation

of a Proposition

 (^) The matrix gives two possible decisions for , since a proposition may either be true or false.

P

T F

F T

P

T F

F T

Examples:

Write the conjunctions of the following propositions.  (^) P: 2 is an even integer  (^) Q: 3 is an odd integer. “2 is an even integer and 3 is an odd integer.”  (^) P: 3 divides 9  (^) Q: 3 divided 15 ”3 divides 9 and 3 divides 15”/ “3 divides both 9 and 15”  (^) P: is a rational number.  (^) Q: is not a rational number. /

The Truth Matrix for the

Conjunction of Two Propositions

 (^) There is only one condition to be TRUE and this is when both statements are true.

P Q

T T T

T F F

F T F

F F F

P Q

T T T

T F F

F T F

F F F

Examples:

Write the disjunction of the following propositions.  (^) P: Students who have taken algebra can take Discrete Mathematics.  (^) Q: Students who have taken computer science can take Discrete Mathematics. Students who have taken algebra or computer science can take Discrete Mathematics.

Examples:

Write the disjunction of the following propositions.  (^) P: John is at the Library.  (^) Q: John is studying. John is at the library or John is studying. / John is at the library or he is studying.