Revisiting the Socrates Example

Similar documents
A proposition is a statement that can be either true (T) or false (F), (but not both).

Chapter Summary. Mathematical Induction Strong Induction Recursive Definitions Structural Induction Recursive Algorithms

The Foundations: Logic and Proofs. Chapter 1, Part III: Proofs

Review. Propositions, propositional operators, truth tables. Logical Equivalences. Tautologies & contradictions

Homology groups of disks with holes

Rules Build Arguments Rules Building Arguments

With Question/Answer Animations. Chapter 1, Part III: Proofs

AIP Logic Chapter 4 Notes

CONSTRUCTING STATECHART DIAGRAMS

Section Summary. Proof by Cases Existence Proofs

Graduate AI Lecture 16: Planning 2. Teachers: Martial Hebert Ariel Procaccia (this time)

Lyapunov Stability Stability of Equilibrium Points

Sec$on Summary. Valid Arguments Inference Rules for Propositional Logic. Inference Rules for Quantified Statements. Building Arguments

Math Foundations 20 Work Plan

NUMBERS, MATHEMATICS AND EQUATIONS

Dataflow Analysis and Abstract Interpretation

An Introduction to Complex Numbers - A Complex Solution to a Simple Problem ( If i didn t exist, it would be necessary invent me.

Revision: August 19, E Main Suite D Pullman, WA (509) Voice and Fax

Bootstrap Method > # Purpose: understand how bootstrap method works > obs=c(11.96, 5.03, 67.40, 16.07, 31.50, 7.73, 11.10, 22.38) > n=length(obs) >

Medium Scale Integrated (MSI) devices [Sections 2.9 and 2.10]

Cambridge Assessment International Education Cambridge Ordinary Level. Published

Differentiation Applications 1: Related Rates

making triangle (ie same reference angle) ). This is a standard form that will allow us all to have the X= y=

MODULE 1. e x + c. [You can t separate a demominator, but you can divide a single denominator into each numerator term] a + b a(a + b)+1 = a + b

On Topological Structures and. Fuzzy Sets

Public Key Cryptography. Tim van der Horst & Kent Seamons

CHAPTER 2 Algebraic Expressions and Fundamental Operations

Lesson Plan. Recode: They will do a graphic organizer to sequence the steps of scientific method.

Equilibrium of Stress

[COLLEGE ALGEBRA EXAM I REVIEW TOPICS] ( u s e t h i s t o m a k e s u r e y o u a r e r e a d y )

A Transition to Advanced Mathematics. Mathematics and Computer Sciences Department. o Work Experience, General. o Open Entry/Exit

MODULAR DECOMPOSITION OF THE NOR-TSUM MULTIPLE-VALUED PLA

Last Updated: Oct 14, 2017

3/29/2017. Logic. Propositions and logical operations. Main concepts: propositions truth values propositional variables logical operations

Chapter 3 Kinematics in Two Dimensions; Vectors

SOLUTIONS TO EXERCISES FOR. MATHEMATICS 205A Part 4. Function spaces

, which yields. where z1. and z2

A new Type of Fuzzy Functions in Fuzzy Topological Spaces

B. Definition of an exponential

Trigonometric Ratios Unit 5 Tentative TEST date

PHIL 1101: Introduction to Logic (3 credits)

Support-Vector Machines

This section is primarily focused on tools to aid us in finding roots/zeros/ -intercepts of polynomials. Essentially, our focus turns to solving.

**DO NOT ONLY RELY ON THIS STUDY GUIDE!!!**

CHAPTER Read Chapter 17, sections 1,2,3. End of Chapter problems: 25

CHAPTER 3 INEQUALITIES. Copyright -The Institute of Chartered Accountants of India

Introduction to Models and Properties

Finite Automata. Human-aware Robo.cs. 2017/08/22 Chapter 1.1 in Sipser

Lab 1 The Scientific Method

FINITE BOOLEAN ALGEBRA. 1. Deconstructing Boolean algebras with atoms. Let B = <B,,,,,0,1> be a Boolean algebra and c B.

Hypothesis Tests for One Population Mean

A Simple Set of Test Matrices for Eigenvalue Programs*

Triangle Congruency. Overview. Geometry Mathematics, Quarter 2, Unit 2.1. Number of Instructional Days: 15 (1 day = 45 minutes)

Section 6-2: Simplex Method: Maximization with Problem Constraints of the Form ~

Lecture 7 Feb 4, 14. Sections 1.7 and 1.8 Some problems from Sec 1.8

A Few Basic Facts About Isothermal Mass Transfer in a Binary Mixture

CS 477/677 Analysis of Algorithms Fall 2007 Dr. George Bebis Course Project Due Date: 11/29/2007

ENG2410 Digital Design Sequential Circuits: Part B

Functions. EXPLORE \g the Inverse of ao Exponential Function

The Equation αsin x+ βcos family of Heron Cyclic Quadrilaterals

Multiple Source Multiple. using Network Coding

REPRESENTATIONS OF sp(2n; C ) SVATOPLUK KR YSL. Abstract. In this paper we have shown how a tensor product of an innite dimensional

A New Evaluation Measure. J. Joiner and L. Werner. The problems of evaluation and the needed criteria of evaluation

MAKING DOUGHNUTS OF COHEN REALS

Kansas City Area Teachers of Mathematics 2011 KCATM Math Competition GEOMETRY GRADES 7-8

E Z, (n l. and, if in addition, for each integer n E Z there is a unique factorization of the form

CAUSAL INFERENCE. Technical Track Session I. Phillippe Leite. The World Bank

PHIL 3101: Advanced Logic (3 credits)

Chapter 2 GAUSS LAW Recommended Problems:

Building to Transformations on Coordinate Axis Grade 5: Geometry Graph points on the coordinate plane to solve real-world and mathematical problems.

A crash course in Galois theory

Admissibility Conditions and Asymptotic Behavior of Strongly Regular Graphs

CSCI-2200 FOUNDATIONS OF COMPUTER SCIENCE

ANSWER KEY FOR MATH 10 SAMPLE EXAMINATION. Instructions: If asked to label the axes please use real world (contextual) labels

Rigid Body Dynamics (continued)

SUPPLEMENTARY MATERIAL GaGa: a simple and flexible hierarchical model for microarray data analysis

Sec$on Summary. Valid Arguments Inference Rules for Propositional Logic. Inference Rules for Quantified Statements. Building Arguments

ECE 2100 Circuit Analysis

1. What is the difference between complementary and supplementary angles?

CHAPTER 24: INFERENCE IN REGRESSION. Chapter 24: Make inferences about the population from which the sample data came.

SPH3U1 Lesson 06 Kinematics

2004 AP CHEMISTRY FREE-RESPONSE QUESTIONS

Homework #7. True False. d. Given a CFG, G, and a string w, it is decidable whether w ε L(G) True False

Pipetting 101 Developed by BSU CityLab

(for students at grades 7 and 8, Gymnasium)

Introduction to Spacetime Geometry

Tree Structured Classifier

ENSC Discrete Time Systems. Project Outline. Semester

1996 Engineering Systems Design and Analysis Conference, Montpellier, France, July 1-4, 1996, Vol. 7, pp

MATHEMATICS SYLLABUS SECONDARY 5th YEAR

A solution of certain Diophantine problems

Eric Klein and Ning Sa

A Correlation of. to the. South Carolina Academic Standards for Mathematics Precalculus

Full Disjunctions: Polynomial-Delay Iterators in Action

Computational modeling techniques

READING STATECHART DIAGRAMS

The Law of Total Probability, Bayes Rule, and Random Variables (Oh My!)

We can see from the graph above that the intersection is, i.e., [ ).

SOLUTIONS TO EXERCISES FOR. MATHEMATICS 205A Part 4. Function spaces

Transcription:

Sectin 1.6

Sectin Summary Valid Arguments Inference Rules fr Prpsitinal Lgic Using Rules f Inference t Build Arguments Rules f Inference fr Quantified Statements Building Arguments fr Quantified Statements

Revisiting the Scrates Example We have the tw premises: if yu have a current passwrd, then yu can lg nt the netwrk yu have a current passwrd And the cnclusin: yu can lg nt the netwrk Hw d we get the cnclusin frm the premises?

The Argument Argument: a sequence f statements that end with a cnclusin Frmer example: Premises: if yu have a current passwrd, then yu can lg nt the netwrk and yu have a current passwrd Cnclusin : yu can lg nt the netwrk p: Yu have a current passwrd q : Yu can lg nt the netwrk.

Valid Arguments Valid arguments: the cnclusin r final statement f the argument must fllw frm the truth f the preceding statements r premises f the argument. the argument is true if and nly if it is impssible fr all the premises t be true and the cnclusin t be false. The rules f inference are the essential building blck in the cnstructin f valid arguments. Arguments in Prpsitinal Lgic Arguments in Predicate Lgic

Arguments in Prpsitinal Lgic Definitin 1: An argument in prpsitinal lgic is a sequence f prpsitins. All but the final prpsitin are called premises. The last statement is the cnclusin. The argument is valid if the premises imply the cnclusin. An argument frm in prpsitinal lgic is a sequence f cmpund prpsitins invlving prpsitinal variables. An argument frm is valid n matter what prpsitins are substituted int its prpsitinal variables in its premises, the cnclusin is true if the premises are all true. If the premises are p 1,p 2,,p n and the cnclusin is q then (p 1 p 2 p n ) q is a tautlgy.

Rules f Inference fr Prpsitinal Lgic rules f inference: the validity f sme relatively simple argument frms rules f inference can be used as building blcks t cnstruct mre cmplicated valid argument frms

Mdus pnens Crrespnding Tautlgy: (p (p q)) q Example: p : It is snwing. q : I will study discrete math. Premises: If it is snwing, then I will study discrete math. It is snwing. Cnclusin: Therefre, I will study discrete math.

Mdus Tllens Crrespnding Tautlgy: Example: p be it is snwing. q be I will study discrete math. Premises: If it is snwing, then I will study discrete math. I will nt study discrete math. Cnclusin: Therefre, it is nt snwing.

Hypthetical Syllgism Crrespnding Tautlgy: ((p q) (q r)) (p r) Example: Let p be it snws. Let q be I will study discrete math. Let r be I will get an A. Premises: If it snws, then I will study discrete math. If I study discrete math, I will get an A. Cnclusin: Therefre, If it snws, I will get an A.

Disjunctive Syllgism Crrespnding Tautlgy: ( p (p q)) q Example: Let p be I will study discrete math. Let q be I will study English literature. Premises: I will study discrete math r I will study English literature. I will nt study discrete math. Cnclusin: Therefre, I will study English literature.

Additin Crrespnding Tautlgy: p (p q) Example: Let p be I will study discrete math. Let q be I will visit Las Vegas. Premises: I will study discrete math. Cnclusin: Therefre, I will study discrete math r I will visit Las Vegas.

Simplificatin Crrespnding Tautlgy: (p q) p Example: Let p be I will study discrete math. Let q be I will study English literature. Premises: I will study discrete math and English literature Cnclusin: Therefre, I will study discrete math.

Cnjunctin Crrespnding Tautlgy: ((p) (q)) (p q) Example: Let p be I will study discrete math. Let q be I will study English literature. Premises: I will study discrete math. I will study English literature. Cnclusin: Therefre, I will study discrete math and I will study English literature.

Reslutin Crrespnding Tautlgy: (( p r ) (p q)) (q r) Example: Let p be I will study discrete math. Let r be I will study English literature. Let q be I will study databases. Premises: I will nt study discrete math r I will study English literature. I will study discrete math r I will study databases. Cnclusin: Therefre, I will study databases r I will English literature.

Rules f inference

Valid Arguments Example 1: Frm the single prpsitin Shw that q is a cnclusin. Slutin:

Valid Arguments Example 2: With these hyptheses: It is nt sunny this afternn and it is clder than yesterday. We will g swimming nly if it is sunny. If we d nt g swimming, then we will take a cane trip. If we take a cane trip, then we will be hme by sunset. Using the inference rules, cnstruct a valid argument fr the cnclusin: We will be hme by sunset. Slutin: 1. Chse prpsitinal variables: p : It is sunny this afternn, q : It is clder than yesterday, r : We will g swimming, s : We will take a cane trip, and t : We will be hme by sunset. 2. Translatin int prpsitinal lgic: Premises: Cnclusin: t

Valid Arguments p : It is sunny this afternn, q : It is clder than yesterday, r : We will g swimming, s : We will take a cane trip, and t : We will be hme by sunset. Premises: Cnclusin: t 3. Cnstruct the Valid Argument

Rules f Inference fr predicate Lgic Universal Instantiatin (UI) Example: Premises: Our dmain cnsists f all dgs and Fid is a dg. All dgs are cuddly. Cnclusin: Therefre, Fid is cuddly.

Rules f Inference fr predicate Lgic Universal Generalizatin (UG) Existential Instantiatin (EI) Existential Generalizatin (EG)

Using Rules f Inference Example 1: Using the rules f inference, cnstruct a valid argument t shw that Jhn Smith has tw legs is a cnsequence f the premises: Every man has tw legs. and Jhn Smith is a man. Slutin: Let M(x) dente x is a man and L(x) x has tw legs and let Jhn Smith be a member f the dmain. Valid Argument:

Using Rules f Inference Example 2: Use the rules f inference t cnstruct a valid argument shwing that the cnclusin Smene wh passed the first exam has nt read the bk. fllws frm the premises A student in this class has nt read the bk. Everyne in this class passed the first exam. Slutin: Let C(x) dente x is in this class, B(x) dente x has read the bk, and P(x) dente x passed the first exam. First we translate the premises and cnclusin int symblic frm. Cntinued n next slide

Using Rules f Inference Valid Argument:

Cmbining rules f inference fr prpsitins and quantified statements Universal mdus pnes (MP): cmbines universal instantiatin and mdus pnens int ne rule

Returning t the Scrates Example

Sectin 1.7

Sectin Summary Mathematical Prfs Frms f Therems Direct Prfs Indirect Prfs Prf f the Cntrapsitive Prf by Cntradictin

Prfs f Mathematical Statements A prf is a valid argument that establishes the truth f a statement. Prfs have many practical applicatins: verificatin that cmputer prgrams are crrect establishing that perating systems are secure enabling prgrams t make inferences in artificial intelligence shwing that system specificatins are cnsistent

Sme Terminlgy A therem is a statement that can be shwn t be true using: definitins ther therems axims (statements which are given as true) rules f inference A lemma is a helping therem r a result which is needed t prve a therem. A crllary is a result which fllws directly frm a therem. Less imprtant therems are smetimes called prpsitins. A cnjecture is a statement that is being prpsed t be true. Once a prf f a cnjecture is fund, it becmes a therem. It may turn ut t be false.

Frms f Therems Many therems assert that a prperty hlds fr all elements in a dmain, such as the integers, the real numbers, r sme f the discrete structures that we will study in this class. Often the universal quantifier (needed fr a precise statement f a therem) is mitted by standard mathematical cnventin. Fr example, the statement: If x > y, where x and y are psitive real numbers, then x 2 > y 2 really means Fr all psitive real numbers x and y, if x > y, then x 2 > y 2.

Methds f prving therems Direct prfs Prf by cntrapsitin Prfs by cntradictin

Even and Odd Integers Definitin: The integer n is even if there exists an integer k such that n = 2k, and n is dd if there exists an integer k, such that n = 2k + 1. Nte that every integer is either even r dd and n integer is bth even and dd.

Prving Cnditinal Statements: p q Direct Prf: Assume that p is true. Use rules f inference, axims, and lgical equivalences t shw that q must als be true. Example: Give a direct prf f the therem If n is an dd integer, then n 2 is dd. Slutin: Assume that n is dd. Then n = 2k + 1 fr an integer k. Squaring bth sides f the equatin, we get: n 2 = (2k + 1) 2 = 4k 2 + 4k +1 = 2(2k 2 + 2k) + 1= 2r + 1, where r = 2k 2 + 2k, an integer. We have prved that if n is an dd integer, then n 2 is an dd integer. ( marks the end f the prf. Smetimes QED is used instead. )

Prving Cnditinal Statements: p q Prf by Cntrapsitin: Assume q and shw p is true als. This is smetimes called an indirect prf methd. If we give a direct prf f q p then we have a prf f p q. Example: Prve that if n is an integer and 3n + 2 is dd, then n is dd. Slutin: Cntrapsitin: if n is even, then 3n+2 is even Assume n is even. S, n = 2k fr sme integer k. Thus 3n + 2 = 3(2k) + 2 =6k +2 = 2(3k + 1) = 2j fr j = 3k +1 Therefre 3n + 2 is even. Since we have shwn q p, p q must hld as well. If n is an integer and 3n + 2 is dd (nt even), then n is dd (nt even).

Prving Cnditinal Statements: p q Prf by Cntradictin: Because the statement r r is a cntradictin whenever r is a prpsitin, we can prve that p is true if we can shw that p (r r) is true fr sme prpsitin r. Example: Prve that if yu pick 22 days frm the calendar, at least 4 must fall n the same day f the week. Slutin: Assume that n mre than 3 f the 22 days fall n the same day f the week. Because there are 7 days f the week, we culd nly have picked 21 days. This cntradicts the assumptin that we have picked 22 days.

Therems that are Bicnditinal Statements T prve a therem that is a bicnditinal statement, that is, a statement f the frm p q, we shw that p q and q p are bth true. Example: Prve the therem: If n is an integer, then n is dd if and nly if n2 is dd. Slutin: We have already shwn (previus slides) that bth p q and q p. Therefre we can cnclude p q. Smetimes iff is used as an abbreviatin fr if an nly if, as in If n is an integer, then n is dd iif n 2 is dd.

Lking Ahead If direct methds f prf d nt wrk: We may need a clever use f a prf by cntrapsitin. Or a prf by cntradictin. In the next sectin, we will see strategies that can be used when straightfrward appraches d nt wrk. In Chapter 5, we will see mathematical inductin and related techniques. In Chapter 6, we will see cmbinatrial prfs

Sectin 1.8

Sectin Summary Prf by Cases Existence Prfs Cnstructive Nncnstructive Disprf by Cunterexample Nnexistence Prfs Uniqueness Prfs Prf Strategies Prving Universally Quantified Assertins Open Prblems

Prf by Cases T prve a cnditinal statement f the frm: Use the tautlgy Each f the implicatins is a case.

Prf by Cases Example: Let a @ b = max{a, b} = a if a b, therwise a @ b = max{a, b} = b. Shw that fr all real numbers a, b, c (a @b) @ c = a @ (b @ c) (This means the peratin @ is assciative.) Prf: Let a, b, and c be arbitrary real numbers. Then ne f the fllwing 6 cases must hld. 1. a b c 2. a c b 3. b a c 4. b c a 5. c a b 6. c b a Case 1: a b c (a @ b) = a, a @ c = a, b @ c = b Hence (a @ b) @ c = a = a @ (b @ c) Therefre the equality hlds fr the first case. Case 2: A cmplete prf requires that the equality be shwn t hld fr all 6 cases. But the prfs f the remaining cases are similar.

Withut Lss f Generality Example: Shw that if x and y are integers and bth x y and x+y are even, then bth x and y are even. Suppse x and y are nt bth even. Then, ne r bth are dd. Withut lss f generality, assume that x is dd. Then x = 2m + 1 fr sme integer k. Case 1: y is even. Then y = 2n fr sme integer n, s x + y = (2m + 1) + 2n = 2(m + n) + 1 is dd. Case 2: y is dd. Then y = 2n + 1 fr sme integer n, s x y = (2m + 1) (2n + 1) = 2(2m n +m + n) + 1 is dd. We nly cver the case where x is dd because the case where y is dd is similar. The use phrase withut lss f generality (WLOG) indicates this.

Existence Prfs Prf f therems f the frm. Cnstructive existence prf: Find an explicit value f c, fr which P(c) is true. Then is true by Existential Generalizatin (EG). Example: Shw that there is a psitive integer that can be written as the sum f cubes f psitive integers in tw different ways: Prf: 1729 is such a number since 1729 = 10 3 + 9 3 = 12 3 + 1 3 nncnstructive existence prf: assume n c exists which makes P(c) true and derive a cntradictin.

Cunterexamples An element fr which P(x) is false is called a cunterexample f x P(x) Example: Every psitive integer is the sum f the squares f 3 integers. The integer 7 is a cunterexample. S the claim is false.

Uniqueness Prfs therems asset the existence f a unique element with a particular prperty,!x P(x). The tw parts f a uniqueness prf are Existence: We shw that an element x with the prperty exists. Uniqueness: We shw that if y x, then y des nt have the prperty. Example: Shw that if a and b are real numbers and a 0, then there is a unique real number r such that ar + b = 0. Slutin: Existence: The real number r = b/a I s a slutin f ar + b = 0 because a( b/a) + b = b + b =0. Uniqueness: Suppse that s is a real number such that as + b = 0. Then ar + b = as + b, where r = b/a. Subtracting b frm bth sides and dividing by a shws that r = s.

Universally Quantified Assertins T prve therems f the frm,assume x is an arbitrary member f the dmain and shw that P(x) must be true. Using UG it fllws that.

Universally Quantified Assertins Example: An integer x is even if and nly if x 2 is even. Slutin: The quantified assertin is x [x is even x 2 is even] We assume x is arbitrary. Case 1. if x is even then x 2 is even using a direct prf. If x is even then x = 2k fr sme integer k. Hence x 2 = 4k 2 = 2(2k 2 ) which is even since it is an integer divisible by 2. This cmpletes the prf f case 1. Case 2. if x2 is even then x must be even (the if part r sufficiency). We use a prf by cntrapsitin. Assume x is nt even and then shw that x2 is nt even. If x is nt even then it must be dd. S, x = 2k + 1 fr sme k. Then x 2 = (2k + 1) 2 = 4k 2 + 4k + 1 = 2(2k 2 + 2k) + 1 which is dd and hence nt even. This cmpletes the prf f case 2. Since x was arbitrary, the result fllws by UG. Therefre we have shwn that x is even if and nly if x2 is even.

Prf and Disprf: Tilings Example 1: Can we tile the standard checkerbard using dmins? Slutin: Yes! One example prvides a cnstructive existence prf. Tw Dmines The Standard Checkerbard One Pssible Slutin

Tilings Example 2: Can we tile a checkerbard btained by remving ne f the fur crner squares f a standard checkerbard? Slutin: Our checkerbard has 64 1 = 63 squares. Since each dmin has tw squares, a bard with a tiling must have an even number f squares. The number 63 is nt even. We have a cntradictin.

Additinal Prf Methds Later we will see many ther prf methds: Mathematical inductin, which is a useful methd fr prving statements f the frm n P(n), where the dmain cnsists f all psitive integers. Structural inductin, which can be used t prve such results abut recursively defined sets. Cmbinatrial prfs use cunting arguments.