Week 1 - Friday.  What did we talk about last time?  Tautologies  Contradictions  Laws of Boolean algebra  Implications  Inverses  Converses 

Slides:



Advertisements
Similar presentations
Chapter 2 Fundamentals of Logic Dept of Information management National Central University Yen-Liang Chen.
Advertisements

Chapter 1: The Foundations: Logic and Proofs 1.1 Propositional Logic 1.2 Propositional Equivalences 1.3 Predicates and Quantifiers 1.4 Nested Quantifiers.
Valid Arguments An argument is a sequence of propositions. All but the final proposition are called premises. The last statement is the conclusion. The.
Chapter 1 The Logic of Compound Statements. Section 1.3 Valid & Invalid Arguments.
CS128 – Discrete Mathematics for Computer Science
Discrete Mathematics Lecture 1 Logic of Compound Statements Harper Langston New York University.
Discrete Structures Chapter 1 Part B Fundamentals of Logic Nurul Amelina Nasharuddin Multimedia Department 1.
Discrete Mathematics Lecture 2 Alexander Bukharovich New York University.
Syllabus Every Week: 2 Hourly Exams +Final - as noted on Syllabus
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.
Through the Looking Glass, 1865
Propositional Calculus Math Foundations of Computer Science.
Adapted from Discrete Math
Harper Langston New York University Summer 2015
Chapter 3 Section 4 – Slide 1 Copyright © 2009 Pearson Education, Inc. AND.
3.6 Analyzing Arguments with Truth Tables
Week 1 - Wednesday.  Course overview  Propositional logic  Truth tables  AND, OR, NOT  Logical equivalence.
CSCI 115 Chapter 2 Logic. CSCI 115 §2.1 Propositions and Logical Operations.
Systems Architecture I1 Propositional Calculus Objective: To provide students with the concepts and techniques from propositional calculus so that they.
1 Logic Logic is a discipline that studies the principles and methods used in correct reasoning It includes: A formal language for expressing statements.
Chapter 1: The Foundations: Logic and Proofs
Week 2 - Wednesday.  What did we talk about last time?  Arguments  Digital logic circuits  Predicate logic  Universal quantifier  Existential quantifier.
Review I Rosen , 3.1 Know your definitions!
Week 2 - Friday.  What did we talk about last time?  Predicate logic  Negation  Multiple quantifiers.
Chap. 2 Fundamentals of Logic. Proposition Proposition (or statement): an declarative sentence that is either true or false, but not both. e.g. –Margret.
Chapter 2 The Logic of Quantified Statements. Section 2.4 Arguments with Quantified Statements.
Week 15 - Monday.  What did we talk about last time?  Context free grammars.
1 Sections 1.5 & 3.1 Methods of Proof / Proof Strategy.
1 Math/CSE 1019C: Discrete Mathematics for Computer Science Fall 2011 Suprakash Datta Office: CSEB 3043 Phone: ext
COS 150 Discrete Structures Assoc. Prof. Svetla Boytcheva Fall semester 2014.
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.
Arguments with Quantified Statements M Universal Instantiation If some property is true for everything in a domain, then it is true of any particular.
Copyright © Cengage Learning. All rights reserved. CHAPTER 3 THE LOGIC OF QUANTIFIED STATEMENTS THE LOGIC OF QUANTIFIED STATEMENTS.
Lecture 4. CONDITIONAL STATEMENTS: Consider the statement: "If you earn an A in Math, then I'll buy you a computer." This statement is made up of two.
1 CMSC 250 Discrete Structures CMSC 250 Lecture 1.
Reading: Chapter 4 (44-59) from the text book
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.
Chapter 3: Introduction to Logic. Logic Main goal: use logic to analyze arguments (claims) to see if they are valid or invalid. This is useful for math.
Aerospace Engineering Laboratory I
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.
Predicates and Quantifiers Dr. Yasir Ali. 1.Predicates 2.Quantifiers a.Universal Quantifiers b.Existential Quantifiers 3.Negation of Quantifiers 4.Universal.
Week 1 - Wednesday.  Course overview  Propositional logic  Truth tables  AND, OR, NOT  Logical equivalence.
Chapter 2 Fundamentals of Logic 1. What is a valid argument or proof?
Week 2 - Wednesday.  What did we talk about last time?  Arguments  Digital logic circuits  Predicate logic  Universal quantifier  Existential quantifier.
CS104:Discrete Structures Chapter 2: Proof Techniques.
Week 4 - Friday.  What did we talk about last time?  Floor and ceiling  Proof by contradiction.
Discrete Mathematical Structures: Theory and Applications 1 Logic: Learning Objectives  Learn about statements (propositions)  Learn how to use logical.
Week 15 - Monday.  What did we talk about last time?  Context free grammars.
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.
Sound Arguments and Derivations. Topics Sound Arguments Derivations Proofs –Inference rules –Deduction.
Chapter 1 Logic and proofs
Harper Langston New York University Summer 2017
PROPOSITION AND NOT PROPOSITION
2. The Logic of Compound Statements Summary
3. The Logic of Quantified Statements Summary
Predicates and Quantified Statements I
Discrete Mathematics Lecture 1 Logic of Compound Statements
CSNB 143 Discrete Mathematical Structures
Discrete Mathematics Logic.
The Foundations: Logic and Proofs
Propositional Calculus: Boolean Algebra and Simplification
Information Technology Department
Copyright © Cengage Learning. All rights reserved.
CS201: Data Structures and Discrete Mathematics I
Discrete Mathematics Logic.
Copyright © Cengage Learning. All rights reserved.
Discrete Mathematics Lecture 4 Logic of Quantified Statements
Logic Logic is a discipline that studies the principles and methods used to construct valid arguments. An argument is a related sequence of statements.
CS201: Data Structures and Discrete Mathematics I
Presentation transcript:

Week 1 - Friday

 What did we talk about last time?  Tautologies  Contradictions  Laws of Boolean algebra  Implications  Inverses  Converses  Bidirectional

 For Diwali, Mr. Patel's five daughters gave each other books as presents.  Each presented four books and each received four books, but no two girls divided her books in the same way.  That is, only one gave two books to one sister and two to another. Bharat gave all her books to Abhilasha; Chandra gave three to Esha.  Who gave how many books to whom?

 One note about implications and wording them:  p is a sufficient condition for q means p  q  p is a necessary condition for q means q  p  This nomenclature is a touch counterintuitive  Think of it this way:  p  q means that p is enough to get you q, but there might be other things that will get you q  q  p means that, since you automatically get p when you've got q, there's no way to have q without p

 An argument is a list of statements (called premises) followed by a single statement (called a conclusion)  Whenever all of the premises are true, the conclusion must also be true, in order to make the argument valid

 Are the following arguments valid?  p  q  ~r(premise)  q  p  r(premise)   p  q(conclusion)  p  (q  r)(premise)  ~r(premise)   p  q(conclusion)

 Modus ponens is a valid argument of the following form: p  qp  q pp  q q  Modus tollens is a contrapositive reworking of the argument, which is also valid: p  qp  q ~q~q   ~p  Give verbal examples of each  We call these short valid arguments rules of inference

 The following are also valid rules of inference: pp  p q p q qq  p q p q  English example: “If pigs can fly, then pigs can fly or swans can breakdance.”

 The following are also valid rules of inference:  p  q  p p  q q  English example: “If the beat is out of control and the bassline just won’t stop, then the beat is out of control.”

 The following is also a valid rule of inference: pp qq   p  q  English example: “If the beat is out of control and the bassline just won’t stop, then the beat is out of control and the bassline just won’t stop.”

 The following are also valid rules of inference:  p  q ~q~q  p p ~p~p  q q  English example: “If you’re playing it cool or I’m maxing and relaxing, and you’re not playing it cool, then I’m maxing and relaxing.”

 The following is also a valid rule of inference:  p  q q  rq  r   p  r  English example: “If you call my mom ugly I will call my brother, and if I call my brother he will beat you up, then if you call my mom ugly my brother will beat you up.”

 The following is also a valid rule of inference:  p  q  p  r q  rq  r  r r  English example: “If am fat or sassy, and being fat implies that I will give you trouble, and being sassy implies that I will give you trouble, then I will give you trouble.”

 The following is also a valid rule of inference:  ~p  c  p p  English example: “If my water is at absolute zero then the universe does not exist, thus my water must not be at absolute zero.”

 A fallacy is an argument that is not valid  It could mean that the conclusion is not true in only a single case in the truth table  But, if the conclusion is ever false whenever all the premises are true, the argument is a fallacy  Most arguments presented by politicians are fallacies for one reason or another

 Converse error  If Joe sings a sad song, then Joe will make it better.  Joes makes it better.  Conclusion: Joe sings a sad song. FALLACY  Inverse error  If you eat too much, you will get sick.  You are not eating too much.  Conclusion: You will not get sick. FALLACY

 Digital logic circuits are the foundation of all computer hardware  Circuits are built out of components called gates  A gate has one or more inputs and an output  Gates model Boolean operations  Usually, in digital logic, we use a 1 for true and a 0 for false

 The following gates have the same function as the logical operators with the same names:  NOT gate:  AND gate:  OR gate:

 Draw the digital logic circuit corresponding to: (p  ~q)  ~(p  r)  What’s the corresponding truth table?

 A predicate is a sentence with a fixed number of variables that becomes a statement when specific values are substituted for to the variables  The domain gives all the possible values that can be substituted  The truth set of a predicate P(x) are those elements of the domain that make P(x) true when they are substituted

 Let P(x) be “x has had 4 wisdom teeth removed”  What is the truth set if the domain is the people in this classroom?  Let Q(n) be “n is divisible by exactly itself and 1”  What is the truth set if the domain is the set of positive integers Z + ?

 We will frequently be referring to various sets of numbers in this class  Some typical notation used for these sets:  Some authors use Z + to refer to non-negative integers and only N for the natural numbers SymbolSetExamples RReal numbersVirtually everything that isn’t imaginary ZIntegers{…, -2, -1, 0, 1, 2,…} Z-Z- Negative integers{-1, -2, -3, …} Z+Z+ Positive integers{1, 2, 3, …} NNatural numbers{1, 2, 3, …} QRational numbers a/b where a,b  Z and b  0

 The universal quantifier  means “for all”  The statement “All DJ’s are mad ill” can be written more formally as:   x  D, M(x)  Where D is the set of DJ’s and M(x) denotes that x is mad ill

 Let S = {1, 2, 3, 4, 5}  Show that the following statement is true:   x  S, x 2 ≥ x  Show that the following statement is false:   x  R, x 2 ≥ x

 The universal quantifier  means “there exists”  The statement “Some emcee can bust a rhyme” can be written more formally as:   y  E, B(y)  Where E is the set of emcees and B(y) denotes that y can bust a rhyme

 Let S = {2, 4, 6, 8}  Show that the following statement is false:   x  S, 1/x = x  Show that the following statement is true:   x  Z, 1/x = x

 Tarski’s World provides an easy framework for testing knowledge of quantifiers  The following notation is used:  Triangle(x) means “x is a triangle”  Blue(y) means “y is blue”  RightOf(x, y) means “x is to the right of y (but not necessarily on the same row)”

 Are the following statements true or false?   t, Triangle(t)  Blue(t)   x, Blue(x)  Triangle(x)   y such that Square(y)  RightOf(d, y)   z such that Square(z)  Gray(z) a a c c g g b b d d f f i i k k e e h h j j

 Negating quantifications  Multiple quantifications

 Keep reading Chapter 3  Start working on Assignment 1  Due next Friday