Chapter 2 Symbolic Logic. Section 2-1 Truth, Equivalence and Implication.

Slides:



Advertisements
Similar presentations
Discrete Math Methods of proof 1.
Advertisements

Chapter 1: The Foundations: Logic and Proofs 1.1 Propositional Logic 1.2 Propositional Equivalences 1.3 Predicates and Quantifiers 1.4 Nested Quantifiers.
© by Kenneth H. Rosen, Discrete Mathematics & its Applications, Sixth Edition, Mc Graw-Hill, 2007 Chapter 1: (Part 2): The Foundations: Logic and Proofs.
Elementary Number Theory and Methods of Proof
– Alfred North Whitehead,
CMSC 250 Discrete Structures Exam #1 Review. 21 June 2007Exam #1 Review2 Symbols & Definitions for Compound Statements pq p  qp  qp  qp  qp  q 11.
Discrete Mathematics Math 6A Instructor: M. Welling.
CSE115/ENGR160 Discrete Mathematics 01/20/11 Ming-Hsuan Yang UC Merced 1.
Mathematical Induction Assume that we are given an infinite supply of stamps of two different denominations, 3 cents and and 5 cents. Prove using mathematical.
Adapted from Discrete Math
Predicates and Quantifiers
Methods of Proof & Proof Strategies
CSci 2011 Discrete Mathematics Lecture 3 CSci 2011.
Course Outline Book: Discrete Mathematics by K. P. Bogart Topics:
CSCI 115 Chapter 2 Logic. CSCI 115 §2.1 Propositions and Logical Operations.
Mathematical Structures A collection of objects with operations defined on them and the accompanying properties form a mathematical structure or system.
CSE 311: Foundations of Computing Fall 2013 Lecture 8: More Proofs.
Review I Rosen , 3.1 Know your definitions!
Chap. 2 Fundamentals of Logic. Proposition Proposition (or statement): an declarative sentence that is either true or false, but not both. e.g. –Margret.
Chapter 5 – Logic CSNB 143 Discrete Mathematical Structures.
1 Sections 1.5 & 3.1 Methods of Proof / Proof Strategy.
Chapter 1, Part II: Predicate Logic With Question/Answer Animations.
2.3Logical Implication: Rules of Inference From the notion of a valid argument, we begin a formal study of what we shall mean by an argument and when such.
Barnett/Ziegler/Byleen Finite Mathematics 11e1 Chapter 7 Review Important Terms, Symbols, Concepts 7.1. Logic A proposition is a statement (not a question.
CSNB143 – Discrete Structure LOGIC. Learning Outcomes Student should be able to know what is it means by statement. Students should be able to identify.
Fundamentals of Logic 1. What is a valid argument or proof? 2. Study system of logic 3. In proving theorems or solving problems, creativity and insight.
Predicates and Quantified Statements
1 Discrete Structures – CNS2300 Text Discrete Mathematics and Its Applications Kenneth H. Rosen (5 th Edition) Chapter 3 The Foundations: Logic and Proof,
4.1 Proofs and Counterexamples. Even Odd Numbers Find a property that describes each of the following sets E={…, -4, -2, 0, 2, 4, 6, …} O={…, -3, -1,
Chapter 2 Logic 2.1 Statements 2.2 The Negation of a Statement 2.3 The Disjunction and Conjunction of Statements 2.4 The Implication 2.5 More on Implications.
1 Introduction to Abstract Mathematics Predicate Logic Instructor: Hayk Melikya Purpose of Section: To introduce predicate logic (or.
Lecture 7 – Jan 28, Chapter 2 The Logic of Quantified Statements.
CSNB143 – Discrete Structure Topic 4 – Logic. Learning Outcomes Students should be able to define statement. Students should be able to identify connectives.
Chapter 2 Fundamentals of Logic 1. What is a valid argument or proof?
CS104:Discrete Structures Chapter 2: Proof Techniques.
CSE 311: Foundations of Computing Fall 2013 Lecture 8: Proofs and Set theory.
Week 4 - Friday.  What did we talk about last time?  Floor and ceiling  Proof by contradiction.
Section 1.5 and 1.6 Predicates and Quantifiers. Vocabulary Predicate Domain Universal Quantifier Existential Quantifier Counterexample Free variable Bound.
CSE 311 Foundations of Computing I Lecture 8 Proofs Autumn 2012 CSE
Mathematics for Comter I Lecture 3: Logic (2) Propositional Equivalences Predicates and Quantifiers.
1 Introduction to Abstract Mathematics Chapter 3: The Logic of Quantified Statements. Predicate Calculus Instructor: Hayk Melikya 3.1.
Section 1.4. Propositional Functions Propositional functions become propositions (and have truth values) when their variables are each replaced by a value.
Foundations of Discrete Mathematics Chapter 1 By Dr. Dalia M. Gil, Ph.D.
Introduction to Predicates and Quantified Statements I Lecture 9 Section 2.1 Wed, Jan 31, 2007.
Discrete Mathematical Structures: Theory and Applications 1 Logic: Learning Objectives  Learn about statements (propositions)  Learn how to use logical.
1 Section 7.1 First-Order Predicate Calculus Predicate calculus studies the internal structure of sentences where subjects are applied to predicates existentially.
Discrete Math by R.S. Chang, Dept. CSIE, NDHU1 Fundamentals of Logic 1. What is a valid argument or proof? 2. Study system of logic 3. In proving theorems.
Chapter 1 Logic and proofs
2. The Logic of Compound Statements Summary
3. The Logic of Quantified Statements Summary
CSE 311 Foundations of Computing I
Argument An argument is a sequence of statements.
CSE15 Discrete Mathematics 01/23/17
CSNB 143 Discrete Mathematical Structures
Discrete Mathematics Logic.
Methods of Proof A mathematical theorem is usually of the form pq
Chapter 1 The Foundations: Logic and Proofs
CS201: Data Structures and Discrete Mathematics I
CHAPTER 1: LOGICS AND PROOF
Mathematical Reasoning
CSE 311: Foundations of Computing
Introduction to Predicates and Quantified Statements I
MA/CSSE 474 More Math Review Theory of Computation
Computer Security: Art and Science, 2nd Edition
Negations of quantifiers
Discrete Mathematics Logic.
Predicates and Quantifiers
Discrete Mathematics Lecture 4 Logic of Quantified Statements
Logic Logic is a discipline that studies the principles and methods used to construct valid arguments. An argument is a related sequence of statements.
Mathematical Reasoning
Presentation transcript:

Chapter 2 Symbolic Logic

Section 2-1 Truth, Equivalence and Implication

More on Implication Universal Implication: A statement p implies a statement q, if q is true in every situation that makes p true. p  q EX: (x>2)  (x>1)

More on Implication Ex: Show that p ^ q implies p V (¬p ^ q)

Def. A universally true statement is true for each element of the universe. Ex: Universe: Flipping 2 coins. p: if there is one tail then there is one head. - p is a universally true statement.

Tautology A tautologically true statement is a statement that is always true ( it can be written as a symbolic statement whose truth table has only Trues in the final column). Ex: “The result has 2 H’s or the result doesn’t have 2 H’s” ( p V ¬p) The statement is always true (tautology).

Contradiction A statement that is always false. Ex: p ^ ¬ p is always false ( a contradiction).

Example p is the statement: x<=0 q is the statement: x>=10 Show that ¬(p V q) and ¬p ^ ¬q are equivalent.

Section 2.3 Predicate Logic

Propositional Logic In propositional logic we used symbols to represent simple statements ( p, q, r, s) we also used symbols and logical connectives ( V, ^, , ⊕, ¬ ) to represent compound statements.

Predicate Logic A predicate is a function that always evaluates to either true or false. A predicate has the form: Predicate-name( List of Arguments). Ex: x is a positive number Predicate: positive number (x) Positive number (5)= True Positive number (-5)= False

Predicate Logic Ex: “ 5 is greater than 2” We define the predicate greater than as: Greater than( x, y): x>y P (x, y): x>y P(2,5)= False P(5,2)= True

Predicate Logic 1- Uses predicates to represent simple statements. 2- Uses Logical connectives ( V, ^, , ⊕, ¬ ) 3- Quantifiers: Universal quantifier:  Existential quantifier:  4- Variables: x, y, z…...

Predicate Logic Ex: Consider the statement “ x is greater than 14”. Predicate: p( x, y): x>y P( x,14): x>14 - There is a value greater than 14 is represented as All values are greater than 14 is represented as ………. - All values are less than 14 as……………..

Predicate Logic Ex: Element x belongs to set A. B (x, A): Element x belongs to set A. - Every element in A belongs also to B is represented as:  x [ b( x, A)  b( x, B)]

Free and Bound variables The variable x is said to be bound by  x or by  x if x lies in the scope of the quantifier. A variable that is not bound by a quantifier is said to be free.

Free and Bound Variables Ex: Below, describe the scope of each quantifier, and describe which variables are bound and which are free. -  x ( p (x) ^  y (t( x, y) ^ r(x))) No free variables. - ¬  x (p(x) ^  y (t(x,y)) V r(z)) Z is free. - ¬  x (p(x) ^  y (t(x,y)) V r(y)). Y in t(x,y) is bound but the y in r(y) is free.

Free and Bound Variables Ex: -  x [ b( x, A)]  b( x, B) Means: If A is the universe, x belongs to B. What is the scope of the quantifier? -  x [ b( x, A)]   x [b( x, B)] It means: If A is the universe then B is the universe.

Predicate Logic Ex: Assume b(x,y) represents the statement “x belongs to y”. Represent each of the following in predicate logic: - 2 belongs to S. - 1 belongs to A and 2 belongs to B. - All elements in A are positive. - There is an element in A that is not in B. - There is an element in A that is greater then any element in B. - A is a subset in B.

Predicate Logic ( quantifiers) The statement  x s(x) is true iff s is true for every element in the universe. The statement  x s(x) is true iff s is true for at least one element in the universe.

Predicate Logic (quantifiers) Ex: Suppose Universe: the set of +ve integers s(x) represents “x is an even integer” p(x) represents “x is a prime integer” r(x) represents “ x>2” Which of the following are true and which are false? -  x p(x) …. True( try x=2) -  x p(x) …. False (try x=4) -  x (p(x) ^ s(x)) … true ( x=2) -  x (p(x) ^ s(x) ^ r(x)) …false -  x (s(x)  p(x))…false ( try x=4) -  x (p(x)  s(x))…false (try x=3) -  x (p(x)  s(x))… true (x=2) -  x [(r(x)^s(x))  p(x)] …. true(x=2)

Equivalence Two statements p and q in predicate logic are equivalent if for any universe and for any statements about the universe we substitute for p,q the resulting statements about the universe are equivalent. Ex:  x(¬ s (x)) is equivalent to ¬  x (s (x))

Equivalence Rules The following quantified statements are equivalent. -  x(¬ s (x)) ↔ ¬  x (s (x)) - (  x s(x)) ^t ↔  x (s(x) ^t) - (  x s(x)) ^t ↔  x (s(x) ^t) - (  x s(x)) v t ↔  x (s(x) vt) - (  x s(x)) v t ↔  x (s(x) v t) - [  x p(x)] ^ [  x q(x)] ↔  x [p(x) ^ q(x)] - [  x p(x)] v [  z q(z)] ↔  x [p(x) v q(x)]

Equivalence Ex: - [  w p(w)] ^ [  w q(w)] -  w [p(w) ^ q(w)] Are they equivalent? Why?

Equivalence Ex: -  y [  x p(x,y)] -  x [  y p(x,y)] Are they equivalent? Why?

Section 2.2 Proof Methods: - Direct proof - Indirect proofs: a- Contra positive inference b- Proof by contradiction

Converses The statement q  p is the converse of the statement p  q. If p  q is true, it does not mean that q  p is true. -Ex: -If n is a positive even integer, then n>1. (p  q) - 5>1, then 5 is a positive even integer (q  p)....false

Counter-example To show that a statement is theorem we give a proof. To show that a statement is false (not theorem), we give a counter-example. Ex: “ If n is a positive integer, then n >5” Counter-example: n=4 (positive and <5)

Direct proof or principle of direct inference (also called modes ponens) If we know that r is true, and r  s is true, we conclude that s is true. A direct proof has the form: Statement1 Statement 2. Statement n Where statement n is the one we want to prove and each other statement is: a- a hypothesis b- an accepted mathematical fact c- the result of applying direct inference to earlier statements

Direct proof Ex: Prove that if the integers n and m are each multiple of 3, then m+n is a multiple of 3. Note: The word assume precedes the hypothesis and the words ( therefore, then) precedes the inference.

Contra positive Inference To show that p  q, we show that ¬q  ¬p Ex: Prove that for each number n of the universe of positive integers, if n 2 >100 then n>10.

Proof by Contradiction From p and p^¬q  ¬p we conclude q. If assuming that ¬p leads to contradiction, the p is true. Ex: Prove that if x 2 +x-2 =0 then x ≠ 0 Also, see example 15 page 74

Example Show that if the following statements are true p p  q q  r r  s Then s is also true. (Prove it by both direct and contradiction).