Foundations of Computing I CSE 311 Fall 2014. CSE 311: Foundations of Computing I Fall 2014 Lecture 1: Propositional Logic.

Slides:



Advertisements
Similar presentations
Logic The study of correct reasoning.
Advertisements

Geometry Logic.
Af2 Introduction. What’s the course about? Discrete Mathematics The mathematics that underpins computer science and other sciences as well.
1. Propositions A proposition is a declarative sentence that is either true or false. Examples of propositions: The Moon is made of green cheese. Trenton.
CSE 311 Foundations of Computing I Spring 2013 Lecture 1 Propositional Logic.
CSE 20 – Discrete Mathematics Dr. Cynthia Bailey Lee Dr. Shachar Lovett Peer Instruction in Discrete Mathematics by Cynthia Leeis licensed under a Creative.
Logic Chapter 2. Proposition "Proposition" can be defined as a declarative statement having a specific truth-value, true or false. Examples: 2 is a odd.
CSE 311 Foundations of Computing I Autumn 2011 Lecture 1 Propositional Logic.
Syllabus Every Week: 2 Hourly Exams +Final - as noted on Syllabus
1 Inference Supplementary Notes Prepared by Raymond Wong Presented by Raymond Wong.
CSE115/ENGR160 Discrete Mathematics 01/17/12 Ming-Hsuan Yang UC Merced 1.
Conditional Statements
Propositional Logic Lecture 2: Sep 9. Conditional Statement If p then q p is called the hypothesis; q is called the conclusion “If your GPA is 4.0, then.
CSE 311 Foundations of Computing I Autumn 2011 Lecture 2 More Propositional Logic Application: Circuits Propositional Equivalence.
Propositional Logic 7/16/ Propositional Logic A proposition is a statement that is either true or false. We give propositions names such as p, q,
The Foundations: Logic and Proofs
Propositional Logic.
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.
The Foundations: Logic and Proofs
Section 1-4 Logic Katelyn Donovan MAT 202 Dr. Marinas January 19, 2006.
Discrete Maths 2. Propositional Logic Objective
CSE 311 Foundations of Computing I Autumn 2012 Lecture 1 Propositional Logic 1.
COS 150 Discrete Structures Assoc. Prof. Svetla Boytcheva Fall semester 2014.
CS 285- Discrete Mathematics Lecture 2. Section 1.1 Propositional Logic Propositions Conditional Statements Truth Tables of Compound Propositions Translating.
Chapter 1 The Logic of Compound Statements. Section 1.1 Logical Form and Logical Equivalence.
BY: MISS FARAH ADIBAH ADNAN IMK. CHAPTER OUTLINE: PART III 1.3 ELEMENTARY LOGIC INTRODUCTION PROPOSITION COMPOUND STATEMENTS LOGICAL.
CSci 2011 Textbook ^Discrete Mathematics and Its Applications,  Rosen  6th Edition  McGraw Hill  2006.
1 Introduction to Abstract Mathematics The Logic and Language of Proofs Instructor: Hayk Melikya Proposition: Informal introduction to.
CSE 20: Discrete Mathematics for Computer Science Prof. Shachar Lovett.
Math 240: Transition to Advanced Math Deductive reasoning: logic is used to draw conclusions based on statements accepted as true. Thus conclusions are.
Logical Form and Logical Equivalence Lecture 2 Section 1.1 Fri, Jan 19, 2007.
Discrete Mathematics Lecture1 Miss.Amal Alshardy.
Discrete Structures – CS Text Discrete Mathematics and Its Applications Kenneth H. Rosen (7 th Edition) Chapter 1 The Foundations: Logic and Proofs.
1 CMSC 250 Discrete Structures CMSC 250 Lecture 1.
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.
Chapter 7 Logic, Sets, and Counting
September1999 CMSC 203 / 0201 Fall 2002 Week #1 – 28/30 August 2002 Prof. Marie desJardins.
Conditional Statements
MADAM SITI AISYAH ZAKARIA. CHAPTER OUTLINE: PART III 1.3 ELEMENTARY LOGIC LOGICAL CONNECTIVES CONDITIONAL STATEMENT.
MAIN TOPIC : Statement, Open Sentences, and Truth Values Negation Compound Statement Equivalency, Tautology, Contradiction, and Contingency Converse, Inverse,
Lecture 9 Conditional Statements CSCI – 1900 Mathematics for Computer Science Fall 2014 Bill Pine.
How do I show that two compound propositions are logically equivalent?
Chapter 7 Logic, Sets, and Counting Section 1 Logic.
6.1 Logic Logic is not only the foundation of mathematics, but also is important in numerous fields including law, medicine, and science. Although the.
1/10/ Math/CSE 1019N: Discrete Mathematics for Computer Science Winter 2007 Suprakash Datta Office: CSEB 3043 Phone:
Logical Form and Logical Equivalence Lecture 1 Section 1.1 Wed, Jan 12, 2005.
Section 1.1. Section Summary Propositions Connectives Negation Conjunction Disjunction Implication; contrapositive, inverse, converse Biconditional Truth.
Joan Ridgway. If a proposition is not indeterminate then it is either true (T) or false (F). True and False are complementary events. For two propositions,
Mathematics for Comter I Lecture 2: Logic (1) Basic definitions Logical operators Translating English sentences.
رياضيات متقطعة لعلوم الحاسب 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.
Conditional Statements Lecture 2 Section 1.2 Fri, Jan 20, 2006.
Discrete Mathematics Lecture # 4. Conditional Statements or Implication  If p and q are statement variables, the conditional of q by p is “If p then.
Conditional statement or implication IF p then q is denoted p ⇒ q p is the antecedent or hypothesis q is the consequent or conclusion ⇒ means IF…THEN.
1 Georgia Tech, IIC, GVU, 2006 MAGIC Lab Rossignac Lecture 01: Boolean Logic Sections 1.1 and 1.2 Jarek Rossignac.
CSE 311: Foundations of Computing Fall 2013 Lecture 1: Propositional logic.
Chapter 1. Chapter Summary  Propositional Logic  The Language of Propositions (1.1)  Logical Equivalences (1.3)  Predicate Logic  The Language of.
Mathematical Induction What it is? Why is it a legitimate proof method? How to use it?
Chapter 1 Logic and proofs
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.
Niu Kun Discrete Mathematics Chapter 1 The Foundations: Logic and Proof, Sets, and Functions Niu Kun 离散数学.
MATH 245 Spring 2009 This is mathematics for computer science
CPCS222 Discrete Structures I
Administrivia Course Web:
CSE 311 Foundations of Computing I
CSE 311 Foundations of Computing I
CSE 321 Discrete Structures
MAT 3100 Introduction to Proof
Presentation transcript:

Foundations of Computing I CSE 311 Fall 2014

CSE 311: Foundations of Computing I Fall 2014 Lecture 1: Propositional Logic

Some Perspective Computer Science and Engineering Programming Theory Hardware CSE 14x CSE 311

About the Course We will study the theory needed for CSE: Logic: How can we describe ideas precisely? Formal Proofs: How can we be positive we’re correct? Number Theory: How do we keep data secure? Relations/Relational Algebra: How do we store information? Finite State Machines: How do we design hardware and software? Turing Machines: Are there problems computers can’t solve?

About the Course It’s about perspective! Example: Sudoku Given one, solve it by hand Given most, solve them with a program Given any, solve it with computer science Tools for reasoning about difficult problems Tools for communicating ideas, methods, objectives… Fundamental structures for computer science

Administrivia Instructors: Paul Beame and Adam Blank Teaching assistants: Antoine Bosselut Nickolas Evans Akash Gupta Jeffrey Hon Shawn Lee Elaine Levey Evan McCarty Yueqi Sheng Quiz Sections: Thursdays (Optional) Book: Rosen Discrete Mathematics 6 th or 7 th edition Can buy online for ~$50 Homework: Due WED at start of class Write up individually Exams: Midterm: Monday, November 3 Final: Monday, December 8 2:30-4:20 or 4:30-6:20 Non-standard time Grading (roughly): 50% homework 35% final exam 15% midterm All course information at

Logic: The Language of Reasoning Why not use English? Turn right here… Buffalo buffalo Buffalo buffalo buffalo buffalo Buffalo buffalo We saw her duck “Language of Reasoning” like Java or English Words, sentences, paragraphs, arguments… Today is about words and sentences

Why Learn A New Language? Logic, as the “language of reasoning”, will help us… Be more precise Be more concise Figure out what a statement means more quickly

Propositions A proposition is a statement that has a truth value, and is “well-formed”

A proposition is a statement that has a truth value, and is “well-formed”... Consider these statements: = 5 The home page renders correctly in IE. This is the song that never ends… Turn in your homework on Wednesday. This statement is false. Akjsdf? The Washington State flag is red. Every positive even integer can be written as the sum of two primes.

Propositions

A Proposition “Roger is an orange elephant who has toenails if he has tusks, and has toenails, tusks, or both.” What does this proposition mean? It seems to be built out of other, more basic propositions that are sitting inside it! What are they?

How are the basic propositions combined? “Roger is an orange elephant who has toenails if he has tusks, and has toenails, tusks, or both.” RElephant : “Roger is an orange elephant” RTusks : “Roger has tusks” RToenails : “Roger has toenails”

Logical Connectives

RElephant and ( RToenails if RTusks ) and ( RToenails or RTusks or (RToenails and RTusks)) “Roger is an orange elephant who has toenails if he has tusks, and has toenails, tusks, or both.”

Some Truth Tables p pp pq p  q pq p  q pq p  q

“If p, then q ” is a promise: Whenever p is true, then q is true Ask “has the promise been broken” If it’s raining, then I have my umbrella Suppose it’s not raining… p q p  q

“I am a Pokémon master only if I have collected all 151 Pokémon” Can we re-phrase this as if p, then q ?

Implication: – p implies q – whenever p is true q must be true – if p then q – q if p – p is sufficient for q – p only if q p q p  q

Converse, Contrapositive, Inverse Implication: p  q Converse: q  p Contrapositive:  q   p Inverse:  p   q How do these relate to each other?

Back to Roger’s Sentence Define shorthand … p : RElephant q : RTusks r : RToenails “Roger is an orange elephant who has toenails if he has tusks, and has toenails, tusks, or both.”

Roger’s Sentence with a Truth Table pqr

More about Roger Roger is only orange if whenever he either has tusks or toenails, he doesn't have tusks and he is an orange elephant.” RElephant : “Roger is an orange elephant” RTusks : “Roger has tusks” RToenails : “Roger has toenails”

More about Roger Roger is only orange if whenever he either has tusks or toenails, he doesn't have tusks and he is an orange elephant.” ( RElephant only if (whenever ( RTusks xor RToenails ) then not RTusks )) and RElephant p : RElephant q : RTusks r : RToenails ( RElephant → (whenever ( RTusks ⊕ RToenails ) then  RTusks )) ∧ RElephant

Roger’s Second Sentence with a Truth Table pqr TTT TTF TFT TFF FTT FTF FFT FFF

p iff q p is equivalent to q p implies q and q implies p pq p  q