F22H1 Logic and Proof Week 6 Reasoning. How can we show that this is a tautology (section 11.2): The hard way: “logical calculation” The “easy” way: “reasoning”

Slides:



Advertisements
Similar presentations
Propositional Equivalences
Advertisements

Methods of Proof. Methods of Proof The Vicky Pollard Proof Technique Prove that when n is even n2 is even. Assume n is 0, then n2 is 0, and that is.
Exercises for CS1512 Weeks 7 and 8 Propositional Logic 1 (questions + solutions)
With examples from Number Theory
Introduction to Proofs
PROOF BY CONTRADICTION
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.
Proofs, Recursion and Analysis of Algorithms Mathematical Structures for Computer Science Chapter 2 Copyright © 2006 W.H. Freeman & Co.MSCS SlidesProofs,
F22H1 Logic and Proof Week 7 Clausal Form and Resolution.
CS128 – Discrete Mathematics for Computer Science
Proof Points Key ideas when proving mathematical ideas.
Logic 3 Tautological Implications and Tautological Equivalences
Today’s Topics n Review Logical Implication & Truth Table Tests for Validity n Truth Value Analysis n Short Form Validity Tests n Consistency and validity.
From Chapter 4 Formal Specification using Z David Lightfoot
Copyright © Zeph Grunschlag,
Proof by Deduction. Deductions and Formal Proofs A deduction is a sequence of logic statements, each of which is known or assumed to be true A formal.
EE1J2 – Discrete Maths Lecture 5 Analysis of arguments (continued) More example proofs Formalisation of arguments in natural language Proof by contradiction.
EE1J2 – Discrete Maths Lecture 4 Analysis of arguments Logical consequence Rules of deduction Rules of equivalence Formal proof of arguments See: Anderson,
Accelerated Math I Unit 2 Concept: Triangular Inequalities The Hinge Theorem.
Rosen 1.6. Approaches to Proofs Membership tables (similar to truth tables) Convert to a problem in propositional logic, prove, then convert back Use.
Methods of Proof & Proof Strategies
A Brief Summary for Exam 1 Subject Topics Propositional Logic (sections 1.1, 1.2) –Propositions Statement, Truth value, Proposition, Propositional symbol,
Proofs 1/25/12.
Review I Rosen , 3.1 Know your definitions!
1 Section 1.1 A Proof Primer A proof is a demonstration that some statement is true. We normally demonstrate proofs by writing English sentences mixed.
1 Sections 1.5 & 3.1 Methods of Proof / Proof Strategy.
Methods of Proof Lecture 3: Sep 9. This Lecture Now we have learnt the basics in logic. We are going to apply the logical rules in proving mathematical.
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.
Activity 1-19: The Propositional Calculus
Logical Reasoning:Proof Prove the theorem using the basic axioms of algebra.
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.
assumption procedures
Section 1.2: Propositional Equivalences In the process of reasoning, we often replace a known statement with an equivalent statement that more closely.
Proof By Contradiction Chapter 3 Indirect Argument Contradiction Theorems and pg. 171.
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.
Artificial Intelligence 7. Making Deductive Inferences Course V231 Department of Computing Imperial College, London Jeremy Gow.
Chapter 1: The Foundations: Logic and Proofs
2.3 Methods of Proof.
CS104:Discrete Structures Chapter 2: Proof Techniques.
Week 4 - Friday.  What did we talk about last time?  Floor and ceiling  Proof by contradiction.
Mathematics for Comter I Lecture 3: Logic (2) Propositional Equivalences Predicates and Quantifiers.
1 Introduction to Abstract Mathematics Proof Methods , , ~, ,  Instructor: Hayk Melikya Purpose of Section:Most theorems in mathematics.
The Logic of Conditionals Chapter 8 Language, Proof and Logic.
Foundations of Discrete Mathematics Chapter 1 By Dr. Dalia M. Gil, Ph.D.
EXAMPLE 3 Write an indirect proof Write an indirect proof that an odd number is not divisible by 4. GIVEN : x is an odd number. PROVE : x is not divisible.
Section 1.7. Section Summary Mathematical Proofs Forms of Theorems Direct Proofs Indirect Proofs Proof of the Contrapositive Proof by Contradiction.
Foundations of Computing I CSE 311 Fall Announcements Homework #2 due today – Solutions available (paper format) in front – HW #3 will be posted.
Sound Arguments and Derivations. Topics Sound Arguments Derivations Proofs –Inference rules –Deduction.
Chapter 1 Logic and proofs
Chapter 1 Logic and Proof.
Truth Tables and Equivalent Statements
COMP 1380 Discrete Structures I Thompson Rivers University
Methods of proof Section 1.6 & 1.7 Wednesday, June 20, 2018
SHORTER TRUTH TABLE METHOD OR REDUCTIO-AD-ABSURDUM
COT 3100, Spr Applications of Discrete Structures
Discrete Mathematics Lecture # 2.
Elementary Metamathematics
Propositional Equivalences
Information Technology Department
The Foundations: Logic and Proofs
CS201: Data Structures and Discrete Mathematics I
CS 270 Math Foundations of CS
The Method of Deduction
Computer Security: Art and Science, 2nd Edition
Elementary Number Theory & Proofs
Geometry.
Foundations of Discrete Mathematics
Copyright © Cengage Learning. All rights reserved.
5.6 Inequalities in Two Triangles and Indirect Proof
CS201: Data Structures and Discrete Mathematics I
Presentation transcript:

F22H1 Logic and Proof Week 6 Reasoning

How can we show that this is a tautology (section 11.2): The hard way: “logical calculation” The “easy” way: “reasoning” That’s what chapter 11 is all about: Logical Calculation: use well defined rules one by one and you will slowly get towards the thing that you are trying to prove. Reasoning: (logical calculation, but with a few hints, tips and additional rules) is more like common sense.

Of course, we can do a truth table to show that this is always T – however you can’t do that with, e.g., 100 logical variables. So we need to learn reasoning. We start with this. Why?? Because Lemma Says this: So, if our calculation eventually gets to “P => R”, using steps that are either or then we will have proved what we want to prove

This is the next step: Understand? Next: Tricky! But straightforward

Next this: Understand it? Also known as False-elimination. Next, we can go a long way with rules from chap 7: Actually this only uses AND-weakening

The remainder is fairly quick and easy: So from Lemma We have now proved the tautology we wanted to prove.

Koyaanasqatsi

A brand new dawn … Let’s just assume, for the time being, that the whole first bit is true {Assumption} (1) Now let’s make another assumption: {Assumption} 2)P {from (1) and (2)} 3)Q {from (1) and (3)} 4)R {we assumed P (2) and derived R (4), this means:} 5) P => R {We assumed (1), and got (5), this means:} 6)

Inference This is the general rule for inference: You can be creative about when to make an inference and what to base it on, but of course it has to be valid.

Some valid inference rules {Tautology} (1) {Implication and double negation} (2) {Follows from (1) and (2) – called } (3) {Assume} (1) … {follows from (1) -- (m) {follows from (1) and (m) if there are no assumptions between (1) and (m) that the derivation of (m) relies on -- (m+1)

Reasoning by Contradiction This is an extremely useful inference rule, very often used, often called reductio ad absurdum The idea is: assume the negation of what you want to prove – If reasoning then leads to a contradiction (i.e. leads to False), then you can infer (i.e. you have proved) the negation of your assumption. {Assume} (1) … {via valid inferences but no other assumptions we get …} (m) False {it follows that the original assumption must be False, so we can infer the following} (m+1)

E.g. Let’s prove that 10 is an even number. To do this by Contradiction, we first assume that “10 is even” is False: {Assumption} (1)10 is an odd number {this follows from (1) (2) 10 = 2k + 1 for some k in N {this follows from (2), by simple algebra} (3) 9 = 2k for some k in N {simple algebra, follows from (3)} (4) k = 4.5 and k in N {This follows from (4), since it is a contradiction} (5) False {We have now proved this, via proof by contradiction} (6) 10 is an even number

Prove that this: Implies: It stands to reason, when you look at it. Let’s prove it by contradiction {Assume} (1) { Implication} (2) {De Morgan, double negation, and associativity} (3) {follows from (3) by AND-elimination, twice} (4) {we can see that (4) is a contradiction, so we have proved this: (5)