Symbolic Logic. Alice E. Fischer. CSCI 1166 Discrete Mathematics for Computing February 5 6,

Similar documents
A statement is a sentence that is definitely either true or false but not both.

DISCRETE STRUCTURES WEEK5 LECTURE1

Section 1.1: Logical Form and Logical Equivalence

Discrete Mathematical Structures. Chapter 1 The Foundation: Logic

Overview. 1. Introduction to Propositional Logic. 2. Operations on Propositions. 3. Truth Tables. 4. Translating Sentences into Logical Expressions

Lecture 2. Logic Compound Statements Conditional Statements Valid & Invalid Arguments Digital Logic Circuits. Reading (Epp s textbook)

Equivalence and Implication

An Introduction to Logic 1.1 ~ 1.4 6/21/04 ~ 6/23/04

HW1 graded review form? HW2 released CSE 20 DISCRETE MATH. Fall

3.2: Compound Statements and Connective Notes

CSE 20 DISCRETE MATH. Fall

CSC Discrete Math I, Spring Propositional Logic

TRUTH TABLES LOGIC (CONTINUED) Philosophical Methods

Propositional logic ( ): Review from Mat 1348

1.1 Statements and Compound Statements

THE LOGIC OF COMPOUND STATEMENTS

Chapter 1, Section 1.1 Propositional Logic

AMTH140 Lecture 8. Symbolic Logic

Discrete Mathematics and Applications COT3100

Chapter Summary. Propositional Logic. Predicate Logic. Proofs. The Language of Propositions (1.1) Applications (1.2) Logical Equivalences (1.

THE LOGIC OF COMPOUND STATEMENTS

Propositions. Frequently, we will use the word statement instead of proposition.

Logic and Propositional Calculus

AI Principles, Semester 2, Week 2, Lecture 5 Propositional Logic and Predicate Logic

Sample Problems for all sections of CMSC250, Midterm 1 Fall 2014

ARTIFICIAL INTELLIGENCE

ICS141: Discrete Mathematics for Computer Science I

Chapter 1, Part I: Propositional Logic. With Question/Answer Animations

CS100: DISCRETE STRUCTURES. Lecture 5: Logic (Ch1)

Discrete Mathematics

Mathematical Logic Part One

PROPOSITIONAL CALCULUS

Introduction to Sets and Logic (MATH 1190)

Symbolic Logic Outline

Compound Propositions

8. Reductio ad absurdum

Boolean algebra. Examples of these individual laws of Boolean, rules and theorems for Boolean algebra are given in the following table.

Unit 1. Propositional Logic Reading do all quick-checks Propositional Logic: Ch. 2.intro, 2.2, 2.3, 2.4. Review 2.9

Proposition/Statement. Boolean Logic. Boolean variables. Logical operators: And. Logical operators: Not 9/3/13. Introduction to Logical Operators

Propositional Logic Not Enough

Discrete Mathematics and Its Applications

Packet #1: Logic & Proofs. Applied Discrete Mathematics

INTRODUCTION TO LOGIC. Propositional Logic. Examples of syntactic claims

Mathematical Logic Part One

1 Propositional Logic

A Little Deductive Logic

Chapter 1: Formal Logic

Ella failed to drop the class. Ella dropped the class.

Propositional Logic Basics Propositional Equivalences Normal forms Boolean functions and digital circuits. Propositional Logic.

2/13/2012. Logic: Truth Tables. CS160 Rosen Chapter 1. Logic?

Section L.1- Introduction to Logic

Chapter 1 Elementary Logic

Lecture 1: Propositional Logic (I)

Boolean Logic. CS 231 Dianna Xu

A Little Deductive Logic

Lesson 10: True and False Equations

1 The Foundations. 1.1 Logic. A proposition is a declarative sentence that is either true or false, but not both.

10 LOGIC Introduction. Objectives

Computer Science 280 Spring 2002 Homework 2 Solutions by Omar Nayeem

Sec$on Summary. Propositions Connectives. Truth Tables. Negation Conjunction Disjunction Implication; contrapositive, inverse, converse Biconditional

EECS 1028 M: Discrete Mathematics for Engineers

DEDUCTIVE REASONING Propositional Logic

FUNDAMENTALS OF MATHEMATICS HANDOUT 1.3 DR. MCLOUGHLIN

3/29/2017. Logic. Propositions and logical operations. Main concepts: propositions truth values propositional variables logical operations

Mathematical Logic Part One

Proofs Propositions and Calculuses

Lecture 02: Propositional Logic

CS 220: Discrete Structures and their Applications. Propositional Logic Sections in zybooks

. T SHREE MAHAPRABHU PUBLIC SCHOOL & COLLEGE NOTES FOR BOARD EXAMINATION SUBJECT COMPUTER SCIENCE (Code: 083) Boolean Algebra

What is Logic? Introduction to Logic. Simple Statements. Which one is statement?

UNIT-I: Propositional Logic

Manual of Logical Style

Propositional Logic and Semantics

2-1. Inductive Reasoning and Conjecture. Lesson 2-1. What You ll Learn. Active Vocabulary

Chapter 3: Logic. Diana Pell. A statement is a declarative sentence that is either true or false, but not both.

Today s Topic: Propositional Logic

Logic. Def. A Proposition is a statement that is either true or false.

cse541 LOGIC FOR COMPUTER SCIENCE

Discrete Structures for Computer Science

Topic 1: Propositional logic

LOGIC & PROPOSITIONAL EQUIVALENCE

MAT 101 Exam 2 Logic (Part I) Fall Circle the correct answer on the following multiple-choice questions.

2/2/2018. CS 103 Discrete Structures. Chapter 1. Propositional Logic. Chapter 1.1. Propositional Logic

Logic and Propositional Calculus

CSCE 222 Discrete Structures for Computing. Propositional Logic. Dr. Hyunyoung Lee. !!!!!! Based on slides by Andreas Klappenecker

Logical Operators. Conjunction Disjunction Negation Exclusive Or Implication Biconditional

Course Staff. Textbook

Predicates, Quantifiers and Nested Quantifiers

Logic. Logic is a discipline that studies the principles and methods used in correct reasoning. It includes:

Menu. Let s logically analyze a simple paragraph:

Note: The area of logic that deals with propositions is called the propositional calculus or propositional logic.

Glossary of Logical Terms

Definition 2. Conjunction of p and q

Chapter 1, Part I: Propositional Logic. With Question/Answer Animations

CHAPTER 1 - LOGIC OF COMPOUND STATEMENTS

Chapter 5: Section 5-1 Mathematical Logic

Proposition logic and argument. CISC2100, Spring 2017 X.Zhang

Where are my glasses?

cis32-ai lecture # 18 mon-3-apr-2006

Mat 243 Exam 1 Review

Transcription:

Symbolic Logic Alice E. Fischer CSCI 1166 Discrete Mathematics for Computing February 5 6, 20182018 Alice E. Fischer Symbolic Logic... 1/19

1 2 3 Alice E. Fischer Symbolic Logic... 2/19

Symbolic Logic Outline This lecture begins the study of symbolic logic and clear reasoning. Symbolic and valid reasoning are the philosophical bases of clear reasoning. A first-year law student studies logic. Digital circuits and program-control statements evolved from philosophical logic. The laws of logic are closely related to the laws of set algebra. Sets and logic are the foundations of databases. Alice E. Fischer Symbolic Logic... 3/19

Alice E. Fischer Symbolic Logic... 4/19

Symbolic Logic Outline Algebra is a field of mathematics where operators are used to do computations on numbers. In set theory, set relations and operators are used to do computations on sets. In symbolic logic, boolean functions are applied to statements (not number or sets). All three fields have their own sets of symbols and follow a set of laws and relationships. The laws and relationships of all three areas are much the same and often have the same names, although the symbols used make them look different. Alice E. Fischer Symbolic Logic... 5/19

Statements Outline In logic, a statement is: A meaningful declarative sentence that is either true or false. or some other formulation that expresses the same meaning. Examples of Statements: Bridges can fall down. Dams last forever. Computer systems malfunction eventually. Some aircraft crash, some disappear, and some land safely. The word proposition is a synonym for logical statement. Alice E. Fischer Symbolic Logic... 6/19

What is NOT a Statement? It is not a statement (proposition) if it is... Neither true nor false: The King of France is wise. Truth depends on a pronoun: She is ready now. Opinion, not fact: Broccoli tastes good. Not declarative: Are you ready? Not declarative: Run! Meaningless: Greenness perambulates. Meaningless: I had one grunch but the eggplant over there. Not a sentence: This sentence no verb. Alice E. Fischer Symbolic Logic... 7/19

Ambiguity can Confound Reasoning. When you use logic, you must be very careful that your initial propositions have one meaning and only one meaning in your universe. Consider the word bipedal. X is bipedal can have three meanings: 1 X is a member of an animal species that has two feet. 2 X has two feet. 3 X walks on two feet. Suppose X refers to me. Then all three interpretations are true. Now suppose X is a 1-legged man in a wheelchair. Number 1 is true but numbers 2 and 3 are false. Alice E. Fischer Symbolic Logic... 8/19

Ambiguity Leads to Trouble. Suppose you are writing a business contract or specifying safety requirements or proving a theorem. If you use the same word twice, it must have the same meaning. Failure to ensure a consistent meaning has led to disaster. This incident earned a Darwin Award: There was a group of terrorists in Palestine. They planned to set off a car bomb in Jerusalem at 10:00 am. The bomb maker set the bomb s timer to explode at 10:00, Jerusalem time. The car drivers planned to get there just before 10:00. But they used Palestine time, which was 1 hour different. All three terrorists died when the bomb went off a half-hour outside Jerusalem. Alice E. Fischer Symbolic Logic... 9/19

Talking about Statements and Propositions In order to talk about propositions, we frequently define a symbol to be a name for a proposition. Example: Let A be the proposition: The World Trade Center collapsed. Then we can say that A terrorist attack caused A. Using symbols makes it much easier for us to talk and reason about logical issues, just as using variable names in a program makes it easier for us to talk about calculations. The Boolean functions have names in symbolic logic that are older than the names used for logic gates. Alice E. Fischer Symbolic Logic... 10/19

Alice E. Fischer Symbolic Logic... 11/19

Negation and Conjunction:, and, && is Logic s symbol for the not or! operator. Let S be the proposition I am skinny. Then this is a proposition: S means I am not skinny. is Logic s symbol for and or && operator. Let C be the proposition Aircraft C53 crashed Let S be the proposition The alien spaceship exploded Then this is a proposition: C S Aircraft C53 crashed the alien spaceship exploded. Alice E. Fischer Symbolic Logic... 12/19

Disjunction:, or, is Logic s symbol for the or, Let P be the proposition I will buy the pink dress. Let L be the proposition I will buy the lavender hat. Then P L is a proposition. Or has two common meanings in English, inclusive and exclusive. The logical symbol stands for Inclusive-Or. Inclusive: The P L uses inclusive-or. It means that I will buy something. It might be a dress. It might be a hat. It might be both. Exclusive: Consider the proposition that Lee will walk the dog or grade papers. This uses the Exclusive-Or. He certainly cannot do both at the same time. Alice E. Fischer Symbolic Logic... 13/19

Operator Precedence If you see an expression with multiple operators in it like S P Q, how do you know which operation to do first? In formal logic Negation has the highest precedence and should be done first. Conjunction and Disjunction have the same precedence. Therefore, in formal logic, if you have a sequence of conjunctions and disjunctions you must include parentheses to designate the proper order to remove ambiguity. Alice E. Fischer Symbolic Logic... 14/19

Translating from English to Symbolic Logic-1 Presume we start with a sentence or paragraph, in English. For example, There was a meeting on Friday and I was not sick, so I went to work. First, identify and name the statements: Let M = There was a meeting on Friday. Let S = I was sick. Let W = I went to work. Then restate the sentence(s) using symbols: M S so W We will soon see that so translates as in logic, giving: M S W Alice E. Fischer Symbolic Logic... 15/19

Translating from English to Symbolic Logic 2 Sunday is a weekend day but I went to work. Use wedge (and) to translate BUT. Let E be Sunday is a weekend day. Let W be I went to work. E W Use (not) with (or) to symbolize neither... nor. Today is a neither a weekend day nor is it a work day for me. (E W ) Alice E. Fischer Symbolic Logic... 16/19

Alice E. Fischer Symbolic Logic... 17/19

Using a Truth Table John is designing the logic for an elevator. The safety specifications require the doors to be closed (that is, not open). when the elevator is moving. Also, the doors must open when the elevator stops. Let O be The elevator doors are open. Let M be The elevator is moving. Then the requirements are: M and not O or not M and O We can symbolize the requirements as: ( O M) (O M) Alice E. Fischer Symbolic Logic... 18/19

A Truth Table for the Elevator The requirements are: ( O M) (O M) Make a truth table to evaluate the proposition. ( O M) O M O M O M O M (O M) T T F F F F F T F F T F T T F T T F T F T F F T T F F F The elevator controller must keep the system in a safe state. We see safe states on the second and third line of the table. So the controller must keep the system in one of these states. Alice E. Fischer Symbolic Logic... 19/19