August 31, 2005.

Slides:



Advertisements
Similar presentations
1 Introduction to Abstract Mathematics Valid AND Invalid Arguments 2.3 Instructor: Hayk Melikya
Advertisements

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.
CS128 – Discrete Mathematics for Computer Science
CSE (c) S. Tanimoto, 2008 Propositional Logic
Discrete Mathematics Lecture 1 Logic of Compound Statements Harper Langston New York University.
Syllabus Every Week: 2 Hourly Exams +Final - as noted on Syllabus
Adapted from Discrete Math
The Laws of Logic: Boolean Algebra A State High Math Club Presentation START==TRUE.
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.
Mathematical Structures for Computer Science Chapter 1.2 Copyright © 2006 W.H. Freeman & Co.MSCS SlidesFormal Logic.
CSci 2011 Discrete Mathematics Lecture 6
1 CMSC 250 Discrete Structures CMSC 250 Lecture 1.
CS 381 DISCRETE STRUCTURES Gongjun Yan Aug 25, November 2015Introduction & Propositional Logic 1.
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.
Propositional Calculus CS 270: Mathematical Foundations of Computer Science Jeremy Johnson.
1 Introduction to Abstract Mathematics Expressions (Propositional formulas or forms) Instructor: Hayk Melikya
Thinking Mathematically
Section 1.2: Propositional Equivalences In the process of reasoning, we often replace a known statement with an equivalent statement that more closely.
Formal Logic Mathematical Structures for Computer Science Chapter 1 Copyright © 2006 W.H. Freeman & Co.MSCS SlidesFormal Logic.
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.
Chapter 2 Fundamentals of Logic 1. What is a valid argument or proof?
Today’s Topics Argument forms and rules (review)
Foundations of Discrete Mathematics Chapter 1 By Dr. Dalia M. Gil, Ph.D.
1 Propositional Proofs 1. Problem 2 Deduction In deduction, the conclusion is true whenever the premises are true.  Premise: p Conclusion: (p ∨ q) 
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
Lecture 1-2: Propositional Logic. Propositional Logic Deriving a logical conclusion by combining many propositions and using formal logic: hence, determining.
March 23 rd. Four Additional Rules of Inference  Constructive Dilemma (CD): (p  q) (r  s) p v r q v s.
2. The Logic of Compound Statements Summary
Advanced Algorithms Analysis and Design
Discrete Mathematics Lecture 1 Logic of Compound Statements
CSNB 143 Discrete Mathematical Structures
Lecture 1 – Formal Logic.
Knowledge Representation and Reasoning
Discrete Mathematics Logic.
Discrete Mathematics Logic of Compound Statements
COMP 1380 Discrete Structures I Thompson Rivers University
Methods of proof Section 1.6 & 1.7 Wednesday, June 20, 2018
Citra Noviyasari, S.Si, MT
Proof Techniques.
2 Chapter Introduction to Logic and Sets
Propositional Calculus: Boolean Algebra and Simplification
Information Technology Department
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.
Sets and Logic…. Chapter 3
CHAPTER 1: LOGICS AND PROOF
CS201: Data Structures and Discrete Mathematics I
Mathematical Reasoning
September 5 Notes & Questions.
Methods of Proof. Methods of Proof Definitions A theorem is a valid logical assertion which can be proved using Axioms: statements which are given.
CSRU 1400 Discrete Structure: Logic
CS 270 Math Foundations of CS
CS 220: Discrete Structures and their Applications
Applied Discrete Mathematics Week 1: Logic
Back to “Serious” Topics…
Inference Rules: Tautologies
The Method of Deduction
Discrete Mathematics and Its Applications Kenneth H
Lecture 2: Propositional Equivalences
Discrete Mathematics Logic.
September 5 Notes & Questions.
Section 10.3 Modular Arithmetic
Foundations of Discrete Mathematics
COMP 1380 Discrete Structures I Thompson Rivers University
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
Arguments in Sentential Logic
CS201: Data Structures and Discrete Mathematics I
Conjunctive addition states that if we know that each of two statements is true, we can join them with the conjunction connective and the resulting conjunction.
Presentation transcript:

August 31, 2005

Homework Problem Some information about homework problem. C'  is the conclusion - it is NOT a hypothesis The problem CAN be done using our original statements (i.e. without replacing T by K) Here’s what the lawyer said If my client is guilty, then the knife was in the drawer Either the knife was not in the drawer or Jason Pritchard saw the knife. If the knife was not there on October 10, it follows that Jason Pritchard did not see the knife. Furthermore, if the knife was there on October 10, then the knife was in the drawer and also the hammer was in the barn. But we all know that the hammer was not in the barn. Therefore, ladies and gentlemen of the jury, my client is innocent.

Here are the variables used C client is guilty K knife was in the drawer T knife was there on October 10 S Jason Pritchard saw knife H hammer was in the barn 1. C -> K hypothesis 2. K' v  S hypothesis 3. T' -> S' hypothesis 4. T -> (K ^ H) hypothesis 5. H' hypothesis

Proof 6. H’ v K’ 5. addition 7. (H ^ K)’ 6. DeMorgan’s 8. (K ^ H)’ 7. commutative 9. T’ 4,8 Modus Tollens 10. S’ 3,9 Modus Ponens 11. S v K’ 2 commutative 12 K’ 10,11 disjunctive syllogism 13 C’ 1,12 Modus Tollens

Statement of problem If the program is efficient, it executes quickly Either the program is efficient, or it has a bug. However, the program does not execute quickly. Therefore it has a bug. Please use the letters E,Q,B

Propositional form (E → Q) ⋀ (E ⋁ B) ⋀ Q’→ B

A solution 1. E → Q hyp (simplification) 2. E ⋁ B hyp (simplification) 4. E’ 1,3 Modus Tollens 5. B 2,4 Disjunctive syllogism

Another solution 1. E → Q hyp (simplification) 2. E ⋁ B hyp (simplification) 3. Q’ hyp (simplification) 4. E’⋁ Q 1 implication 5. Q ⋁ E’ 4 commutative 6. E’ 3,5 Disjunctive syllogism 7. B 2,6 Disjunctive syllogism

Still another solution 1. E → Q hyp (simplification) 2. E ⋁ B hyp (simplification) 3. Q’ hyp (simplification) 4. Q’→ E’ 1 contraposition 5. E’ 4,3 Modus Ponens 6. (E’)’ ⋁ B 2 double negation 7. E’→ B 6 implication 8 B 7,5 Modus Ponens

And yet another one 1. E → Q hyp (simplification) 2. E ⋁ B hyp (simplification) 3. Q’ hyp (simplification) 4. (E’)’ ⋁ B 2 double negation 5. E’→ B 4 implication 6. E’ ⋁ Q 1 implication 7. (E’ ⋁ Q) ⋀ Q’ 6,3 conjunction 8. Q’ ⋀ (E’ ⋁ Q) 7 commutative 9. (Q’ ⋀ E’) ⋁ (Q’ ⋀ Q) 8 distributive 10. (E’ ⋀ Q’) ⋁ 0 9 complement property 11. (E’ ⋀ Q’) 10 identity property 12. E’ 11 simplification 13. B 5,12 Modus Ponens

Definition: Compound proposition “a proposition constructed by combining propositions using logical operators” Conjunction – and Disjunction - or

Definition: dual of a compound proposition The dual of a compound proposition that contains only the logical operators ∨,,¬, is the proposition obtained by replacing each ∨ by , each  by ∨, each T by F and each F by T.

Definition: NAND The proposition p NAND q is true when either p or q or both are false; and it is false when both p and q are true.

Definition: NOR The proposition p NOR q is true when both p and q are false, and it is false otherwise.

Page 27, problem 34 Find a compound proposition involving the propositions p,q and r that is true when p and q are true and r is false, but false otherwise.

Page 27, problem 35 Find a compound proposition involving the propositions p, q, and r that is true when exactly two of p, q, and r are true and is false otherwise. Hint: form a disjunction of conjunctions. Include a conjunction for each combination of values for which the proposition is true. Each conjunction should include each of the three propositions or their negation.

Modular Arithmetic a.k.a. clock arithmetic If a and b are integers and m is a positive integer, then we way that a is congruent to b modulo m if m divides a-b. We use the notation a≡b (mod m) to indicate that a is congruent to b modulo m If they are not congruent, we write a≢ b (mod m)

Why do we care in c.s.? Applications: Stripping digits from a base 10 number Check digits on credit cards Hash codes for storing information Generation of pseudo-random numbers Cryptology Check digits on bar codes Enable error detection