Discrete Mathematics CS 285. Lecture 12 Section 1.1: Logic Axiomatic concepts in math: Equals Opposite Truth and falsehood Statement Objects Collections.

Slides:



Advertisements
Similar presentations
Grading Lecture attendance: -1% per 2 unexcused absences
Advertisements

Propositional Equivalences. L32 Agenda Tautologies Logical Equivalences.
Discrete Mathematics. Agenda Course policies Quick Overview Logic.
Copyright 2013, 2010, 2007, Pearson, Education, Inc. Section 3.2 Truth Tables for Negation, Conjunction, and Disjunction.
Syllabus Every Week: 2 Hourly Exams +Final - as noted on Syllabus
1 Section 1.1 Logic. 2 Proposition Statement that is either true or false –can’t be both –in English, must contain a form of “to be” Examples: –Cate Sheller.
Discrete Mathematics Math 6A Instructor: M. Welling.
Let remember from the previous lesson what is Knowledge representation
First Order Logic. Propositional Logic A proposition is a declarative sentence (a sentence that declares a fact) that is either true or false, but not.
The Laws of Logic: Boolean Algebra A State High Math Club Presentation START==TRUE.
Copyright 2013, 2010, 2007, Pearson, Education, Inc. Section 3.2 Truth Tables for Negation, Conjunction, and Disjunction.
Discrete Mathematics Goals of a Discrete Mathematics Learn how to think mathematically 1. Mathematical Reasoning Foundation for discussions of methods.
Intro to Discrete Structures
Section 1.5 Implications. Implication Statements If Cara has a piano lesson, then it is Friday. If it is raining, then I need to remember my umbrella.
2009/9 1 Logic and Proofs §1.1 Introduction §1.2 Propositional Equivalences §1.3 Predicates and Quantifiers §1.4 Nested Quantifiers §1.5~7 Methods of Proofs.
Discrete Maths 2. Propositional Logic Objective
MATERI II PROPOSISI. 2 Tautology and Contradiction Definition A tautology is a statement form that is always true. A statement whose form is a tautology.
Discrete Mathematics and Its Applications
© by Kenneth H. Rosen, Discrete Mathematics & its Applications, Sixth Edition, Mc Graw-Hill, 2007 Ch.1 (Part 1): The Foundations: Logic and Proofs Introduction.
Propositional Logic Foundations of Logic: Overview Propositional logic (§ ): – Basic definitions. (§1.1) – Equivalence rules & derivations. (§1.2)
Copyright © Curt Hill Truth Tables A way to show Boolean Operations.
1 Logic Logic is a discipline that studies the principles and methods used in correct reasoning It includes: A formal language for expressing statements.
CS 285- Discrete Mathematics Lecture 2. Section 1.1 Propositional Logic Propositions Conditional Statements Truth Tables of Compound Propositions Translating.
Chapter 1: The Foundations: Logic and Proofs
BY: MISS FARAH ADIBAH ADNAN IMK. CHAPTER OUTLINE: PART III 1.3 ELEMENTARY LOGIC INTRODUCTION PROPOSITION COMPOUND STATEMENTS LOGICAL.
Discrete Mathematics. Propositional Logic 10/8/2015 What’s a proposition? PropositionsNot Propositions = 32Bring me coffee! CS173 is Bryan’s favorite.
Logical Form and Logical Equivalence Lecture 2 Section 1.1 Fri, Jan 19, 2007.
Discrete Mathematics MCA 105 LOGICS Preeti Mehta.
Discrete Mathematics Lecture1 Miss.Amal Alshardy.
Islamic University Of Gaza, Nael Aburas Data Storage Introduction to computer, 2nd semester, 2010/2011 Mr.Nael Aburas
Tautologies, contradictions, contingencies
Discrete Structures – CS Text Discrete Mathematics and Its Applications Kenneth H. Rosen (7 th Edition) Chapter 1 The Foundations: Logic and Proofs.
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
CS 381 DISCRETE STRUCTURES Gongjun Yan Aug 25, November 2015Introduction & Propositional Logic 1.
Propositional Calculus CS 270: Mathematical Foundations of Computer Science Jeremy Johnson.
LOGIC Lesson 2.1. What is an on-the-spot Quiz  This quiz is defined by me.  While I’m having my lectures, you have to be alert.  Because there are.
Validity and Conditionals There is a relationship between validity of an argument and a corresponding conditional.
Thinking Mathematically
Discrete Mathematics CS 285. Lecture 12 Quick Overview The conceptual center of computer science is the ALGORITHM.
CS6133 Software Specification and Verification
Chapter 1: The Foundations: Logic and Proofs
The Foundations: Logic and Proof, Sets, and Foundations PROPOSITIONS A proposition is a declarative sentence that is either True or False, but not the.
Chapter 3 Section 1 - Slide 1 Copyright © 2009 Pearson Education, Inc. AND.
Propositional Logic – The Basics (2) Truth-tables for Propositions.
Mathematics for Comter I Lecture 2: Logic (1) Basic definitions Logical operators Translating English sentences.
LECTURE 1. Disrete mathematics and its application by rosen 7 th edition THE FOUNDATIONS: LOGIC AND PROOFS 1.1 PROPOSITIONAL LOGIC.
رياضيات متقطعة لعلوم الحاسب MATH 226. Text books: (Discrete Mathematics and its applications) Kenneth H. Rosen, seventh Edition, 2012, McGraw- Hill.
Section 1.1. Propositions A proposition is a declarative sentence that is either true or false. Examples of propositions: a) The Moon is made of green.
L 11 Discrete Computational Structures. L 12 Lectures and Notes Lectures are electronic and will be available online after class.
Thinking Mathematically Logic 3.4 Truth Tables for the Conditional and Biconditional.
 Statement - sentence that can be proven true or false  Truth value – true or false  Statements are often represented using letters such as p and q.
CS104 The Foundations: Logic and Proof 1. 2 What is Discrete Structure?  Discrete Objects  Separated from each other (Opposite of continuous)  e.g.,
Lecture 2 Discrete Mathematics 9/3/ Introduction What is Discrete Mathematics? Discrete Mathematics concerns processes that consist of a sequence.
Logical Operators (Connectives) We will examine the following logical operators: Negation (NOT,  ) Negation (NOT,  ) Conjunction (AND,  ) Conjunction.
Discrete Structures for Computer Science Presented By: Andrew F. Conn Slides adapted from: Adam J. Lee Lecture #1: Introduction, Propositional Logic August.
AND.
Thinking Mathematically
COT 3100, Spr Applications of Discrete Structures
CPCS222 Discrete Structures I
Ch.1 (Part 1): The Foundations: Logic and Proofs
Discrete Mathematics COMS 3203
CMSC Discrete Structures
The Foundations: Logic and Proofs
Information Technology Department
Discrete Mathematics Lecture 2: Propositional Logic
Discrete Mathematics Lecture 2: Propositional Logic
Statements of Symbolic Logic
Truth Tables for Conditional and Biconditional Statements
Presentation transcript:

Discrete Mathematics CS 285

Lecture 12 Section 1.1: Logic Axiomatic concepts in math: Equals Opposite Truth and falsehood Statement Objects Collections

Lecture 13 Section 1.1: Logic We intuitively know that Truth and Falsehood are opposites. That statements describe the world and can be true/false. That the world is made up of objects and that objects can be organized to form collections. The foundations of logic mimic our intuitions by setting down constructs that behave analogously.

Lecture 14 False, True, Statements Axiom: False is the opposite to Truth. A statement is a description of something. Examples of statements: I’m 31 years old. I have 17 children. I always tell the truth. Q’s: Which statements are True? False? Both?

Lecture 15 False, True, Statements True: I’m 31 years old. False: I have 17 children. I always tell the truth. Both: IMPOSSIBLE, by our Axiom.

Lecture 16 Propositions To avoid painful head-aches, we ban such silly non-sense and avoid the most general type of statements limiting ourselves to statements with valid truth-values instead: DEF: A proposition is a statement that is true or false.

Lecture 17 Compound Propositions In Propositional Logic, we assume a collection of atomic propositions are given: p, q, r, s, t, …. Then we form compound propositions by using logical connectives (logical operators).

Lecture 18 Logical Connectives OperatorSymbolUsage Negation  not Conjunction  and Disjunction  or Exclusive or  xor Conditional  if,then Biconditional  iff

Lecture 19 Compound Propositions: Examples p = “Cruise ships only go on big rivers.” q = “Cruise ships go on the Hudson.” r = “The Hudson is a big river.”  r = “The Hudson is not a big river.” p  q = “Cruise ships only go on big rivers and go on the Hudson.” p  q  r = “If cruise ships only go on big rivers and go on the Hudson, then the Hudson is a big river.”

Lecture 110 Negation This just turns a false proposition to true and the opposite for a true proposition. EG: p = “23 = 15 +7” p happens to be false, so  p is true.

Lecture 111 Negation – truth table Logical operators are defined by truth tables –tables which give the output of the operator in the right-most column. Here is the truth table for negation: p pp FTFT TFTF

Lecture 112 Conjunction Conjunction is a binary operator in that it operates on two propositions when creating compound proposition. On the other hand, negation is a unary operator (the only non-trivial one possible).

Lecture 113 Conjunction Conjunction is supposed to encapsulate what happens when we use the word “and” in English. I.e., for “p and q ” to be true, it must be the case that BOTH p is true, as well as q. If one of these is false, than the compound statement is false as well.

Lecture 114 Conjunction EG. p = “Riyadh is the capital of Saudi.” q = “Saudi is a cold Country.” r = “The meaning of is is important.” Assuming p and r are true, while q false. Out of p  q, p  r, q  r only p  r is true.

Lecture 115 Conjunction – truth table pq pqpq TTFFTTFF TFTFTFTF TFFFTFFF

Lecture 116 Disjunction – truth table Conversely, disjunction is true when at least one of the components is true: pq pqpq TTFFTTFF TFTFTFTF TTTFTTTF

Lecture 117 Exclusive-Or – truth table pq p  q TTFFTTFF TFTFTFTF FTTFFTTF

Lecture 118 Conditional (Implication) This one is probably the least intuitive. It’s only partly akin to the English usage of “if,then” or “implies”. DEF: p  q is true if q is true, or if p is false. In the final case (p is true while q is false) p  q is false. Semantics: “p implies q ” is true if one can mathematically derive q from p.

Lecture 119 Conditional -- truth table pq p  q TTFFTTFF TFTFTFTF TFTTTFTT

Lecture 120 Bi-Conditional -- truth table pq p  q TTFFTTFF TFTFTFTF TFFTTFFT For p  q to be true, p and q must have the same truth value. Else, p  q is false: Q : Which operator is  the opposite of?

Lecture 121 Bi-Conditional A :  has exactly the opposite truth table as .

Lecture 122 Bit Strings Electronic computers achieve their calculations inside semiconducting materials. For reliability, only two stable voltage states are used and so the most fundamental operations are carried out by switching voltages between these two stable states. In logic, only two truth values are allowed. Thus propositional logic is ideal for modeling computers. High voltage values are modeled by True, which for brevity we call the number 1, while low voltage values are modeled by False or 0.

Lecture 123 Bit Strings Thus voltage memory stored in a computer can be represented by a sequence of 0’s and 1’s such as Another portion of the memory might look like Each of the number in the sequence is called a bit, and the whole sequence of bits is called a bit string.

Lecture 124 Bit Strings It turns out that the analogs of the logical operations can be carried out quite easily inside the computer, one bit at a time. This can then be transferred to whole bit strings. For example, the exclusive-or of the previous bit strings is: 

Lecture 125 Blackboard Exercises for q = “You miss the final exam.” r = “You pass the course.” Express q   r in English. 2. Construct a truth table for  p   q.