1 Section 6.3 Formal Reasoning A formal proof (or derivation) is a sequence of wffs, where each wff is either a premise or the result of applying a proof.

Slides:



Advertisements
Similar presentations
The following 5 questions are about VOLTAGE DIVIDERS. You have 20 seconds for each question What is the voltage at the point X ? A9v B5v C0v D10v Question.
Advertisements

From RegentsEarth.com How to play Earth Science Battleship Divide the class into two teams, Red and Purple. Choose which team goes first. The main screen.
Some important properties Lectures of Prof. Doron Peled, Bar Ilan University.
Discrete Mathematics University of Jazeera College of Information Technology & Design Khulood Ghazal Mathematical Reasoning Methods of Proof.
Introduction to Proofs
1 Valid and Invalid arguments. 2 Definition of Argument Sequence of statements: Statement 1; Statement 2; Therefore, Statement 3. Statements 1 and 2 are.
CS344 : Introduction to Artificial Intelligence Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture 9,10,11- Logic; Deduction Theorem 23/1/09 to 30/1/09.
1 Introduction to Abstract Mathematics Valid AND Invalid Arguments 2.3 Instructor: Hayk Melikya
Deduction In addition to being able to represent facts, or real- world statements, as formulas, we want to be able to manipulate facts, e.g., derive new.
Logic 3 Tautological Implications and Tautological Equivalences
1 Discrete Structures CS Johnnie Baker Comments on Early Term Test.
TR1413: Discrete Mathematics For Computer Science Lecture 3: Formal approach to propositional logic.
So far we have learned about:
From Chapter 4 Formal Specification using Z David Lightfoot
Reading: Chapter 4, section 4 Nongraded Homework: Problems at the end of section 4. Graded Homework #4 is due at the beginning of class on Friday. You.
TR1413: Discrete Mathematics For Computer Science Lecture 4: System L.
EE1J2 – Discrete Maths Lecture 5 Analysis of arguments (continued) More example proofs Formalisation of arguments in natural language Proof by contradiction.
1.5 Rules of Inference.
Methods of Proof & Proof Strategies
Intro to Discrete Structures
Propositional Proofs 2.
Deduction, Proofs, and Inference Rules. Let’s Review What we Know Take a look at your handout and see if you have any questions You should know how to.
Mathematical Structures for Computer Science Chapter 1.2 Copyright © 2006 W.H. Freeman & Co.MSCS SlidesFormal Logic.
Today’s Topics Review of Sample Test # 2 A Little Meta Logic.
Chapter Four Proofs. 1. Argument Forms An argument form is a group of sentence forms such that all of its substitution instances are arguments.
Logical Reasoning:Proof Prove the theorem using the basic axioms of algebra.
Natural Deduction Proving Validity. The Basics of Deduction  Argument forms are instances of deduction (true premises guarantee the truth of the conclusion).
Chapter Five Conditional and Indirect Proofs. 1. Conditional Proofs A conditional proof is a proof in which we assume the truth of one of the premises.
The Exciting World of Natural Deduction!!! By: Dylan Kane Jordan Bradshaw Virginia Walker.
1 Introduction to Abstract Mathematics Expressions (Propositional formulas or forms) Instructor: Hayk Melikya
assumption procedures
Thinking Mathematically Arguments and Truth Tables.
CS6133 Software Specification and Verification
Formal Logic Mathematical Structures for Computer Science Chapter 1 Copyright © 2006 W.H. Freeman & Co.MSCS SlidesFormal Logic.
Formal Proofs and Boolean Logic Chapter 6 Language, Proof and Logic.
Inverse, Contrapositive & indirect proofs Sections 6.2/6.3.
Fall 2008/2009 I. Arwa Linjawi & I. Asma’a Ashenkity 11 The Foundations: Logic and Proofs Rules of inference.
1 Section 8.3 Higher-Order Logic A logic is higher-order if it allows predicate names or function names to be quantified or to be arguments of a predicate.
Symbolic Logic ⊃ ≡ · v ~ ∴. What is a logical argument? Logic is the science of reasoning, proof, thinking, or inference. Logic allows us to analyze a.
2.3 Methods of Proof.
CS104:Discrete Structures Chapter 2: Proof Techniques.
1 Section 6.2 Propositional Calculus Propositional calculus is the language of propositions (statements that are true or false). We represent propositions.
Outline Logic Propositional Logic Well formed formula Truth table
Analyzing Arguments Section 1.5. Valid arguments An argument consists of two parts: the hypotheses (premises) and the conclusion. An argument is valid.
1 Section 8.2 Program Correctness (for imperative programs) A theory of program correctness needs wffs, axioms, and inference rules. Wffs (called Hoare.
Today’s Topics Argument forms and rules (review)
Foundations of Discrete Mathematics Chapter 1 By Dr. Dalia M. Gil, Ph.D.
1 Section 7.3 Formal Proofs in Predicate Calculus All proof rules for propositional calculus extend to predicate calculus. Example. … k.  x p(x) P k+1.
1 Propositional Proofs 1. Problem 2 Deduction In deduction, the conclusion is true whenever the premises are true.  Premise: p Conclusion: (p ∨ q) 
Symbolic Logic and Rules of Inference. whatislogic.php If Tom is a philosopher, then Tom is poor. Tom is a philosopher.
CS344 : Introduction to Artificial Intelligence Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture 4- Logic.
Uniqueness Quantifier ROI for Quantified Statement.
Formal logic The part of logic that deals with arguments with forms.
L = # of lines n = # of different simple propositions L = 2 n EXAMPLE: consider the statement, (A ⋅ B) ⊃ C A, B, C are three simple statements 2 3 L =
March 23 rd. Four Additional Rules of Inference  Constructive Dilemma (CD): (p  q) (r  s) p v r q v s.
Methods of proof Section 1.6 & 1.7 Wednesday, June 20, 2018
Natural Deduction: Using simple valid argument forms –as demonstrated by truth-tables—as rules of inference. A rule of inference is a rule stating that.
A v B ~ A B > C ~C B > (C . P) B / ~ B mt 1,2 / B ds 1,2
7.1 Rules of Implication I Natural Deduction is a method for deriving the conclusion of valid arguments expressed in the symbolism of propositional logic.
CS 270 Math Foundations of CS
Natural Deduction 1 Hurley, Logic 7.4.
Natural Deduction.
Malini Sen WESTERN LOGIC Presented by Assistant Professor
1. (H . S) > [ H > (C > W)]
Natural Deduction Hurley, Logic 7.2.
CSNB234 ARTIFICIAL INTELLIGENCE
Foundations of Discrete Mathematics
Natural Deduction Hurley, Logic 7.3.
For Wednesday, read Chapter 4, section 3 (pp )
Chapter 8 Natural Deduction
Presentation transcript:

1 Section 6.3 Formal Reasoning A formal proof (or derivation) is a sequence of wffs, where each wff is either a premise or the result of applying a proof rule to certain previous wffs in the sequence. Basic Proof Rules

2 Proof Notation Put each wff on a numbered line along with a reason. Use the letter P for a premise and follow the proof with QED. Example. We’ll prove that the argument with premises A  C  D, ¬ B, A  B and conclusion D is valid. 1. A  C  D P 2. ¬ B P 3. A  B P 4. A 2, 3, DS 5. A  C 4, Add 6. D 1, 5, MP QED. Using CP If a proof consists of a derivation from a premise A to a conclusion B that does not contain any uses of CP or IP, then we can apply CP to obtain a tautology A  B. The reason we obtain a tautology is that the proof rules used in the derivation are valid arguments. So the truth of A implies the truth of B, which tells us that A  B is a tautology. When using CP in this way, instead of writing A  B, we’ll write QED along with the line numbers of the derivation followed by CP.

3 Example. We’ll prove that (A  C  D)  ¬ B  (A  B)  D is a tautology. 1. A  C  D P 2. ¬ B P 3. A  B P 4. A 2, 3, DS 5. A  C 4, Add 6. D 1, 5, MP QED1–6, CP. Example. We’ll prove (A  B  C  D)  A  (C  E)  D  E is a tautology. 1.A  B  C  D P 2.A P 3.C  E P 4.A  B 2, Add 5.C  D 1, 4, MP 6.C 5, Simp 7.E3, 6, MP 8.D5, Simp 9.D  E7, 8, Conj QED1–9, CP.

4 Subproofs A subproof is a proof that is part of another proof. It always starts with a new premise and always ends by applying CP or IP to the derivation from that premise. When this happens, the premise is discharged and the wffs of the derivation become inactive. Indent the statements of the subproof and write down the result of CP or IP without indentation. Example. We’ll prove that (A  B)  (¬ B  A) is a tautology. 1.A  B P 2.¬ B P [for ¬ B  A ] 3.A1, 2, DS 4.¬ B  A 2, 3, CP QED1, 4, CP. (We’ll prove the converse shortly)

5 Example. We’ll prove that (A  B  C)  (A  C)  (B  C) is a tautology. 1.A  B  C P 2.A P [for A  C] 3.A  B 2, Add 4.C1, 3, MP 5.A  C2–4, CP 6.B P [for B  C] 7.A  B 6, Add 8.C1, 7, MP 9.B  C6–8, CP 10.(A  C)  (B  C)5, 9, Conj QED1, 5, 9–10, CP.

6 Using IP If a proof consists of a derivation from a premise ¬ A to the conclusion False, then we could apply CP to obtain ¬ A  False. But we also know that A  ¬ A  False. So the result of the derivation is A. This is the IP rule. Example. We’ll prove the tautology ¬ (A  ¬ A). 1.¬ ¬ (A  ¬ A)P [for ¬ (A  ¬ A)] 2. A  ¬ A1, DN 3.A2, Simp 4.¬ A2, Simp 5.False3, 4, Contr QED1–5, IP. IP is most often used in a subproof setting when proving a conditional of the form V  W. Start with V as a premise for a CP proof. Then start an IP subproof with premise ¬ W. When a contradiction is reached, we obtain W by IP. Then CP gives the result V  W. As with CP subproofs, the result of IP is written with no indentation.

7 Example/Quiz. Prove the tautology (A  B)  (A  B)  B. 1.A  B P 2.A  B P 3.¬ BP [for B] 4.A 2, 3, DS 5.B 1, 4, MP 6.False3, 5, Contr 7.B3–6, IP QED1–2, 7, CP. Example. We’ll prove that the converse of (A  B)  (¬ B  A). Proof of (¬ B  A)  (A  B): 1.¬ B  A P 2.¬ (A  B) P [for A  B] 3.¬ BP [for B] 4.A 1, 3, MP 5.A  B4, Add 6.False2, 5, Contr 7. B3–6, IP 8. A  B 7, Add 9.False2, 8, Contr 10. A  B 2, 7–9, IP QED1, 4, CP.

8 Example. We’ll give two proofs of the tautology (A  C)  (B  C)  (A  B  C). First proof: 1. A  C P 2. B  C P 3.A  B P [for A  B  C] 4.C1, 2, 3, Cases 5. A  B  C3–4, CP QED1–2, 5, CP. Derived Rules (they follow from the original rules)

9 Second proof: 1. A  C P 2. B  C P 3.A  B P [for A  B  C] 4.¬ CP [for C] 5.¬ A 1, 3, MT 6.B 3, 5, DS 7.¬ B 2, 4, MP 8.False6, 7, Contr 9.C4–8, IP 10. A  B  C3, 9, CP QED1–2, 10, CP. Example/Quiz. Prove (A  C)  ¬ (A  B)  ¬ (C  B) with IP somewhere. 1.A  C P 2.¬ (A  B) P 3.¬ ¬ (C  B) P [for ¬ (C  B)] 4.C  B 3, DN 5.A  B1, 4, HS 6.False2, 5, Contr 7.¬ (C  B)3–6, IP QED1–2, 7, CP.

10 Example/Quiz. Consider the following argument: I eat spinach (S) or ice cream (I). If I study logic (L) then I will pass the exam (P). If I eat ice cream then I will study logic. If I eat spinach then I will play golf (G). I failed the exam. Therefore, I played golf. The argument has five premises {S  I, L  P, I  L, S  G, ¬ P} and conclusion G. Prove that the argument is valid. 1.S  I P 2.L  PP 3.I  LP 4.S  GP 5.¬ PP 6.¬ L 2, 5, MT 7.¬ I3, 6, MT 8.S1, 7, DS 9.G4, 8, MP QED. Alternative Proof: 6. I  P 2, 3, HS 7.¬ I5, 6, MT 8.S1, 7, DS 9.G4, 8, MP QED. Alternative Proof: 6.G  L 1, 3, 4, CD 7.¬ L2, 5, MT 8.G6, 7, DS QED. Alternative Proof: 6. I  P 2, 3, HS 7.G  L 1, 4, 6, CD 8.G5, 7, DS QED.