Professor: Munehiro Fukuda

Slides:



Advertisements
Similar presentations
Inverses, Contrapositives, and Indirect Reasoning
Advertisements

Types of Triangles Scalene A triangle with no congruent sides
With examples from Number Theory
Introduction to Proofs
February 26, 2015Applied Discrete Mathematics Week 5: Mathematical Reasoning 1 Addition of Integers Example: Add a = (1110) 2 and b = (1011) 2. a 0 + b.
Introduction to Theorem Proving
Chapter 1: The Foundations: Logic and Proofs 1.1 Propositional Logic 1.2 Propositional Equivalences 1.3 Predicates and Quantifiers 1.4 Nested Quantifiers.
Proofs, Recursion and Analysis of Algorithms Mathematical Structures for Computer Science Chapter 2 Copyright © 2006 W.H. Freeman & Co.MSCS SlidesProofs,
Write the negation of “ABCD is not a convex polygon.”
Axiomatic systems and Incidence Geometry
CSE115/ENGR160 Discrete Mathematics 01/31/12 Ming-Hsuan Yang UC Merced 1.
CSE115/ENGR160 Discrete Mathematics 02/01/11
So far we have learned about:
TR1413: Discrete Mathematics For Computer Science Lecture 1: Mathematical System.
Postulates and Paragraph Proofs
Fall 2002CMSC Discrete Structures1 Let’s proceed to… Mathematical Reasoning.
Propositional Logic.
Methods of Proof & Proof Strategies
CSci 2011 Discrete Mathematics Lecture 3 CSci 2011.
Copyright © Curt Hill Rules of Inference What is a valid argument?
Introduction to Proofs
1 Georgia Tech, IIC, GVU, 2006 MAGIC Lab Rossignac Lecture 03: PROOFS Section 1.5 Jarek Rossignac CS1050: Understanding.
MATH 224 – Discrete Mathematics
Mathematical Arguments and Triangle Geometry
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.
Proofs1 Elementary Discrete Mathematics Jim Skon.
Discrete Mathematics CS 2610 August 24, Agenda Last class Introduction to predicates and quantifiers This class Nested quantifiers Proofs.
CSci 2011 Discrete Mathematics Lecture 6
1 Methods of Proof. 2 Consider (p  (p→q)) → q pqp→q p  (p→q)) (p  (p→q)) → q TTTTT TFFFT FTTFT FFTFT.
10/17/2015 Prepared by Dr.Saad Alabbad1 CS100 : Discrete Structures Proof Techniques(1) Dr.Saad Alabbad Department of Computer Science
1 Sections 1.5 & 3.1 Methods of Proof / Proof Strategy.
Discrete Structures (DS)
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.
Fall 2008/2009 I. Arwa Linjawi & I. Asma’a Ashenkity 11 The Foundations: Logic and Proofs Introduction to Proofs.
1 Discrete Structures – CNS2300 Text Discrete Mathematics and Its Applications Kenneth H. Rosen (5 th Edition) Chapter 3 The Foundations: Logic and Proof,
2007 D iscrete The foundations C ounting theory N umber theory G raphs & trees structure s
Lesson 2 – 5 Postulates and Paragraph Proofs
Method of proofs.  Consider the statements: “Humans have two eyes”  It implies the “universal quantification”  If a is a Human then a has two eyes.
Module #1 - Logic Based on Rosen, Discrete Mathematics & Its Applications. Prepared by (c) , Michael P. Frank. Modified By Mingwu Chen 1 Module.
Chapter 2 Fundamentals of Logic 1. What is a valid argument or proof?
CSci 2011 Discrete Mathematics Lecture 4 CSci 2011.
CS104:Discrete Structures Chapter 2: Proof Techniques.
Introduction to Proofs
Section 1.7. Definitions A theorem is a statement that can be shown to be true using: definitions other theorems axioms (statements which are given as.
Discrete Mathematical Structures: Theory and Applications 1 Logic: Learning Objectives  Learn about statements (propositions)  Learn how to use logical.
Draw a Logical Conclusion:  If you are a lefty then you struggle to use a can opener.  If you like math then you must be smart.  If you are smart then.
Chapter 2, Section 1 Conditional Statements. Conditional Statement Also know as an “If-then” statement. If it’s Monday, then I will go to school. Hypothesis:
CSci 2011 Discrete Mathematics Lecture 5 CSci 2011.
Chapter 1, Part III: Proofs With Question/Answer Animations Copyright © McGraw-Hill Education. All rights reserved. No reproduction or distribution without.
Section 1.7. Section Summary Mathematical Proofs Forms of Theorems Direct Proofs Indirect Proofs Proof of the Contrapositive Proof by Contradiction.
Sound Arguments and Derivations. Topics Sound Arguments Derivations Proofs –Inference rules –Deduction.
Chapter 1 Logic and proofs
Lecture 2: Proofs and Recursion. Lecture 2-1: Proof Techniques Proof methods : –Inductive reasoning Lecture 2-2 –Deductive reasoning Using counterexample.
Deductive Reasoning, Postulates, and Proofs
CSE15 Discrete Mathematics 02/01/17
Discrete Mathematics Logic.
Y. Davis Geometry Notes Chapter 2.
Proof Techniques.
Lesson 5 – 4 Indirect Proof
The Foundations: Logic and Proofs
Mathematical Reasoning
이산 수학 Discrete Mathematics
CS 220: Discrete Structures and their Applications
Discrete Mathematics Logic.
Reasoning and Proofs Deductive Reasoning Conditional Statement
September 9, 2004 Prof. Marie desJardins (for Prof. Matt Gaston)
Mathematical Reasoning
Introduction to Proofs
5.6 Inequalities in Two Triangles and Indirect Proof
Presentation transcript:

Professor: Munehiro Fukuda CSS342: Proofs Professor: Munehiro Fukuda CSS342: Proofs

Terminologies Axioms: are assumed true. Ex: Given two distinct points, there is exactly one line that contains them. Undefined terms: implicitly defined (and used) by the axioms. Ex: Points, lines Definitions: used to create new concepts. Ex: Two lines are parallel if they never cross each other. Theorem: a proposition that has been proved to be true. If two sides of a triangle are equal, the angles opposite them are equal. Corollary: a theorem that follows quickly from another theorem. Ex: If a triangle is equilateral, then it is equiangular. Lemma: a theorem not interesting but useful in proving another theorem. – Ex: A positive integer – 1 ≥ 0 CSS342: Proofs

Axioms, Definitions, and Undefined Terms Examples Euclidean geometry: Axiom 1: Given two distinct points, there is exactly one line that contains them. Axiom 2: If three points are not collinear, then there is exactly one plane that contains them. Definition 1: Two angles are supplementary if the sum of their measures is 180. Definition 2: Two lines are parallel if they never cross each other. Undefined terms: points, lines, planes, and angles Real numbers: Axiom 1: The commutative law stands up right for +-*/ operations. Axiom 2: If x and y are in a subset P, -x and –y are not in P, and x+y and xy are in P. Definition 1: P is called positive real numbers. Definition 2: Given a nonnegative real number, x and a positive integer, n, x1/n is y satisfying yn = x Undefined terms: numbers and 0 CSS342: Proofs

Theorem and Corollary Examples If two sides of a triangle are equal, then the angles opposite them are equal. Proof. Corollary: If a triangle is equilateral, then it is equiangular. Draw a line from the top vertex down to the bottom side so that the side is divided into two halves equally. Then, we can have two sub triangles, both having all equal sides. Thus, they are congruent. Therefore, the angles opposite them are equal. CSS342: Proofs

Lemma Example If n is a positive integer number, the either n – 1 is a positive integer or n – 1 = 0. Proof: The minimal positive integer is 1. Thus, n – 1 cannot be smaller than 0. Therefore, the lemma is true. This lemma is not interesting in its own right, but can be used to prove other results. CSS342: Proofs

Direct Proof When proving a universally quantified statement: x1, …, xn, P(x1, …, xn)→q(x1, …, xn) If P(x1, …, xn) is false, this statement is always true. Thus, focus on only the case when P(x1, …, xn) is true. Using P(x1, …, xn) for a proof is called A direct proof A CSS342: Proofs

Direct Proof Example Universally quantified statement: Proof: If d = min{d1, d2} and x ≤ d, x ≤ d1 and x ≤ d2 Proof: Assume that d = min {d1, d2} and x ≤ d. From the definition of min, d ≤ d1 and d ≤ d2 From x ≤ d and d ≤ d1 , x ≤ d1 From x ≤ d and d ≤ d2 , x ≤ d2 Thus, the statement is true. CSS342: Proofs

Proof by contradiction Assume that the hypothesis p is true but the conclusion q is false. Use p, !q and r (= other axioms, definitions, theorems). Derive r && !r = false. In other words, p && !q→ r && !r p q (!q) r p → q p&&!q r&&!r p && !q → r && !r T T (F) F F (T) CSS342: Proofs

Proof by Contradiction Example 1 If xy = 0, then either x = 0 or y = 0 Proof. p: xy = 0 q: x = 0 || y = 0 !q: !(x=0 || y=0) ≡ x ≠ 0 && y ≠ 0 r: if ab = ac and a ≠ 0, b = c (Let’s assume it has been proved) p && !q: xy = x * 0 = 0 and x ≠ 0 From r: y must be 0 This contradicts !q, which thus means r is wrong. This derives r && !r Thus, this statement must be true. CSS342: Proofs

Proof by Contradiction Example 2 For all real numbers x and y, if x + y ≥ 2, then either x ≥ 1 or y ≥ 1. Proof. p: x + y ≥ 2 q: x ≥ 1 || y ≥ 1 !q: !(x ≥ 1 || y ≥ 1) ≡ !(x ≥ 1) && !(y ≥ 1) ≡ x < 1 && y < 1 ≡ x + y < 2 ≡ !p This derived p && !p Thus, the statement must be true. Therefore, the statement must be true. Instead of r && !r, we derived p && !p, (i.e., r = p) Special case: proof by contrapositive CSS342: Proofs

Deductive Reasoning Drawing a conclusion from a sequence of propositions. Hypothesis: P1: The bug is either in module 17 or in 81. P2: The bug is a numerical error. P3: Module 81 has no numerical error. Conclusion: ∴ Q: The bug is in module 17 CSS342: Proofs

p→q p ∴ q p q p → q p → q && p T F P: 1 * 2 = 2 Q: I ate candy. P is true Thus Q is true (= I ate candy) p q p → q p → q && p T F Note: p →q, p /∴ q does not mean p →q && p ≡ ∴ q In fact, truth values do not match perfectly. It means that if p →q && p, then q = true. CSS342: Proofs

p→q q ∴ p p q p → q p → q && q T F P: 1 + 2 = 2 Q: I ate my hat. Q is true (= I ate my hat.) Then, is 1 + 2 = 2 true? p q p → q p → q && q T F When p → q && q = true, p can be true or false. Thus, this deductive argument is wrong. CSS342: Proofs

Rules of inference for propositions Rule of Inference Name p → q p ∴q Modus ponens q ∴p && q Conjunction !q ∴!P Modus tollens q → r ∴p → r Hypothetical syllogism ∴p || q Addition p || q !p Disjunctive syllogism p && q ∴p Simplification CSS342: Proofs

Inference Example 1 If you pass CSS342, then you can take CSS343. (p → q) If you can take CSS343, then you’ll learn binary trees. (q → r) If you can take CSS343, then you’ll learn inheritance. (q → s) You passed CSS342. (p) Applying the hypothetical syllogism: Thus, r && s You’ll learn both binary trees and inheritance p → q q → r ∴p → r p → q q → s ∴p → s CSS342: Proofs

Rules of Inference for Quantified Statements Name ∀x ∈ D P(x) ∴P(d) if d ∈ D Universal instantiation P(d) for any d ∈ D ∴∀x P(x) Universal generalization ∃x ∈ D P(x) ∴P(d) for some d ∈ D Existential instantiation P(d) for some d ∈ D ∴ ∃ x P(x) Existential generalization CSS342: Proofs

Inference Example 2 Given two statements: P(x): x loves Microsoft. Everyone loves either Microsoft or Apple. Lynn does not love Microsoft. P(x): x loves Microsoft. Q(x): x loves Apple. From universal generalization, ∀x P(x) || Q(x): Everyone loves either MicroSoft or Apple. !P(Lynn): Lynn does not love Microsoft. From disjunctive syllogism: p || q, !p / ∴q Q(Lynn) is true. Q(Lynn): Lynn loves Apple. CSS342: Proofs

Final Review Why Logic is So Important in CS? Inference is quite often used in knowledge database. Knowledge database is a core of expert system. Thus, inference is a core of expert system.  Example in CS: Prolog likes(mary, food). likes(mary, wine). likes(john, wine). likes(john, mary). ?- likes(mary, X), likes(john, X). X=wine CSS342: Proofs