# Logic. Propositional Logic: Syntax

Save this PDF as:

Size: px
Start display at page:

## Transcription

1 Logic Propositional Logic: Syntax Logic is a tool for formalizing reasoning. There are lots of different logics: probabilistic logic: for reasoning about probability temporal logic: for reasoning about time (and programs) epistemic logic: for reasoning about knowledge The simplest logic (on which all the rest are based) is propositional logic. It is intended to capture features of arguments such as the following: Borogroves are mimsy whenever it is brillig. It is now brillig and this thing is a borogrove. Hence this thing is mimsy. Propositional logic is good for reasoning about conjunction, negation, implication ( if... then... ) Amazingly enough, it is also useful for circuit design program verification 1 To formalize the reasoning process, we need to restrict the kinds of things we can say. Propositional logic is particularly restrictive. The syntax of propositional logic tells us what are legitimate formulas. We start with primitive propositions. Think of these as statements like It is now brillig This thing is mimsy It s raining in San Francisco n is even We can then form more complicated compound propositions using connectives like: : not : and : or : implies : equivalent (if and only if) 2 Examples: P : it is not the case that P P Q: P and Q P Q: P or Q P Q: P implies Q (if P then Q) Typical formula: P ( P (Q (R P ))) Wffs Formally, we define well-formed formulas (wffs or just formulas) inductively (remember Chapter 2!): The wffs consist of the least set of strings such that: 1. Every primitive proposition P, Q, R,... is a wff 2. If A is a wff, so is A 3. If A and B are wffs, so are A B, A B, A B, and A B 3 4

2 Disambiguating Wffs Translating English to Wffs We use parentheses to disambiguate wffs: P Q R can be either (P Q) R or P (Q R) Mathematicians are lazy, so there are standard rules to avoid putting in parentheses. In arithmetic expressions, binds more tightly than +, so means 3 + (2 5) In wffs, here is the precedence order: Thus, P Q R is P (Q R); P Q R is P (( Q) R) P Q R is (P ( Q)) R With two or more instances of the same binary connective, evaluate left to right: P Q R is (P Q) R To analyze reasoning, we have to be able to translate English to wffs. Consider the following sentences: 1. Bob doesn t love Alice 2. Bob loves Alice and loves Ann 3. Bob loves Alice or Ann 4. Bob loves Alice but doesn t love Ann 5. If Bob loves Alice then he doesn t love Ann First find appropriate primitive propositions: P : Bob loves Alice Q: Bob loves Ann Then translate: 1. P 2. P Q 3. P Q 4. P Q (note: but becomes and ) 5. P Q 5 6 Evaluating Formulas Truth Tables Given a formula, we want to decide if it is true or false. How do we deal with a complicated formula like: P ( P (Q (R P ))) The truth or falsity of such a formula depends on the truth or falsity of the primitive propositions that appear in it. We use truth tables to describe how the basic connectives (,,,, ) work. For : P P For : P Q P Q T T F F For : P Q P Q T T F F This means is inclusive or, not exclusive or. 7 8

3 Exclusive Or Truth Table for Implication What s the truth table for exclusive or? P Q P Q T T T F F F P Q is equivalent to (P Q) ( P Q) P Q P Q P Q Q P (P Q) ( P Q) T F F F F T T F F F For : P Q P Q T T F F Why is this right? What should the truth value of P Q be when P is false? This choice is mathematically convenient As long as Q is true when P is true, then P Q will be true no matter what. For : P Q P Q T T T F F F 9 10 How many possible truth tables are there with two primitive propositions? P Q? T T F F By the product rule, there are 16. We ve defined connectives corresponding to 4 of them:,,,. Why didn t we bother with the rest? They re definable! Other Equivalences It s not hard to see that P Q is also equivalent to (P Q) Thus, P Q is equivalent to (P Q), which is equivalent to ((P Q) ( P Q)) Thus, we don t need either. We also don t need : P Q is equivalent to P Q We also don t need : P Q is equivalent to ( P Q) Each of the sixteen possible connectives can be expressed using and (or ) 11 12

4 Tautologies Arguments A truth assignment is an assignment of T or F to every proposition. How hard is it to check if a formula is true under a given truth assignment? Easy: just plug it in and evaluate. Time linear in the length of the formula A tautology (or theorem) is a formula that evaluates to T for every truth assignment. Examples: (P Q) ( P Q) P Q ( P Q) (P Q) (Q P ) It s necessarily true that if elephants are pink then the moon is made of green cheese or if the moon is made of green cheese, then elephants are pink. How hard is it to check if a formula is a tautology? How many truth assignments do we have to try? Definition: An argument has the form A 1 A 2. A n B A 1,..., A n are called the premises of the argument; B is called the conclusion. An argument is valid if, whenever the premises are true, then the conclusion is true Logical Implication A formula A logically implies B if A B is a tautology. Theorem: An argument is valid iff the conjunction of its premises logically implies the conclusion. Proof: Suppose the argument is valid. We want to show (A 1... A n ) B is a tautology. Do we have to try all 2 k truth assignments (where k = #primitive propositions in A 1,..., A n, B). It s not that bad. Because of the way we defined, A 1... A n B is guaranteed to be true if A 1... A n is false. But if A 1... A n is true, B is true, since the argument is valid. Thus, (A 1... A n ) B is a tautology. For the converse, suppose (A 1... A n ) B is a tautology. If A 1,..., A n are true, then B must be true. Hence the argument is valid. Remember: Borogroves are mimsy whenever it is brillig. It is now brillig and this thing is a borogrove. Hence this thing is mimsy. Suppose P : It is now brillig Q: This thing is a borogrove R: This thing is mimsy This becomes: P (Q R) P Q R This argument is valid if is a tautology. [(P (Q R)) (P Q)] R 15 16

5 Natural Deduction Formal Deductive Systems Are there better ways of telling if a formula is a tautology than trying all possible truth assignments. In the worst case, it appears not. The problem is co-np-complete. The satisfiability problem deciding if at least one truth assignment makes the formula true is NPcomplete. Nevertheless, it often seems that the reasoning is staightforward: Why is this true: ((P Q) (Q R)) (P R) We want to show that if P Q and Q R is true, then P R is true. So assume that P Q and Q R are both true. To show that P R, assume that P is true. Since P Q is true, Q must be true. Since Q R is true, R must be true. Hence, P R is true. We want to codify such reasoning. A formal deductive system (also known as an axiom system) consists of axioms (special formulas) rules of inference: ways of getting new formulas from other formulas. These have the form A 1 A 2. A n B Read this as from A 1,..., A n, infer B. Sometimes written A 1,..., A n B Think of the axioms as tautologies, while the rules of inference give you a way to derive new tautologies from old ones Derivations Typical Axioms A derivation (or proof ) in an axiom system AX is a sequence of formulas C 1,..., C N ; each formula C k is either an axiom in AX or follows from previous formulas using an inference rule in AX: i.e., there is an inference rule A 1,..., A n B such that A i = C ji for some j i < N and B = C N. This is said to be a derivation or proof of C N. A derivation is a syntactic object: it s just a sequence of formulas that satisfy certain constraints. Whether a formula is derivable depends on the axiom system Different axioms different formulas derivable Derivation has nothing to do with truth! How can we connect derivability and truth? P P P (Q P ) What makes an axiom acceptable? it s a tautology 19 20

6 Typical Rules of Inference Sound and Complete Axiomatizations Modus Ponens A B A B Modus Tollens A B B A What makes a rule of inference acceptable? It preserves validity: if the antecedents are valid, so is the conclusion Both modus ponens and modus tollens are acceptable Standard question in logic: Can we come up with a nice sound and complete axiomatization: a (small, natural) collection of axioms and inference rules from which it is possible to derive all and only the tautologies? Soundness says that only tautologies are derivable Completeness says you can derive all tautologies If all the axioms are valid and all rules of inference preserve validity, then all formulas that are derivable must be valid. Proof: by induction on the length of the derivation It s not so easy to find a complete axiomatization A Sound and Complete Axiomatization for Propositional Logic Consider the following axiom schemes: A1. A (B A) A2. (A (B C)) ((A B) (A C)) A3. ((A B) (A B)) A These are axioms schemes; each one encodes an infinite set of axioms: P (Q P ), (P R) (Q (P R)) are instances of A1. Theorem: A1, A2, A3 + modus ponens give a sound and complete axiomatization for formulas in propositional logic involving only and. Recall: can define and using and P Q is equivalent to P Q P Q is equivalent to (P Q) Derivation of P P : A Sample Proof 1. P ((P P ) P ) [instance of A1: take A = P, B = P P ] 2. (P ((P P ) P )) ((P (P P )) (P P )) [instance of A2: take A = C = P, B = P P ] 3. (P (P P )) (P P ) [applying modus ponens to 1, 2] 4. P (P P ) [instance of A1: take A = B = P ] 5. P P [applying modus ponens to 3, 4] Try deriving P P from these axioms it s hard! 23 24

7 Algorithm Verification Algorithm Verification: Example This is (yet another) hot area of computer science. How do you prove that your program is correct? You could test it on a bunch of instances. That runs the risk of not exercising all the features of the program. In general, this is an intractable problem. For small program fragments, formal verification using logic is useful It also leads to insights into program design. Consider the following algorithm for multiplication: Input x [Integer 0] y [Integer] Algorithm Mult prod 0 u 0 repeat u = x prod prod + y u u + 1 end repeat How do we prove this is correct? Idea (due to Floyd and Hoare): annotate program with assertions that are true of the line of code immediately following them. An assertion just before a loop is true each time the loop is entered. This is a loop invariant. An assertion at the end of a program is true after running the program Input x [Integer 0] y [Integer] Algorithm Mult prod 0 u 0 {prod = uy} [Loop invariant] repeat u = x prod prod + y u u + 1 end repeat {prod = uy u = x} Thus, we must show prod = uy is true each time we enter the loop. Proof is by induction (big surprise) It follows that prod = uy u = x holds after exiting the program, since we exit after trying the loop (so prod = uy) and discovering u = x. It follows that prod = xy at termination. But how do we know the program terminates? We prove (by induction!) that after the kth iteration of the loop, u = k. Since x 0, eventually u = x, and we terminate the loop (and program) We won t be covering Boolean algebra (it s done in CS 314), although you should read Section 7.5! 27 28

8 Predicate Calculus There are lots of things that can t be expressed by propositional formulas. In first-order logic, we can: Talk about individuals and the properties they have: Bob and Alice are both American American(Bob) American(Alice) Talk about the relations between individuals Bob loves Alice but Bob doesn t love Anne Loves(Bob, Alice) Loves(Bob, Anne). Quantify: Everybody loves somebody x yloves(x, y) First-order logic lets us capture arguments like: All men are mortal Socrates is a man Therefore Socrates is mortal All prime numbers are integers 7 is a prime number Therefore 7 is an integer 29

### Logic: The Big Picture

Logic: The Big Picture A typical logic is described in terms of syntax: what are the legitimate formulas semantics: under what circumstances is a formula true proof theory/ axiomatization: rules for proving

### Propositional Logic. Spring Propositional Logic Spring / 32

Propositional Logic Spring 2016 Propositional Logic Spring 2016 1 / 32 Introduction Learning Outcomes for this Presentation Learning Outcomes... At the conclusion of this session, we will Define the elements

### Propositional Logic Not Enough

Section 1.4 Propositional Logic Not Enough If we have: All men are mortal. Socrates is a man. Does it follow that Socrates is mortal? Can t be represented in propositional logic. Need a language that talks

### A Little Deductive Logic

A Little Deductive Logic In propositional or sentential deductive logic, we begin by specifying that we will use capital letters (like A, B, C, D, and so on) to stand in for sentences, and we assume that

### First Order Logic: Syntax and Semantics

CS1081 First Order Logic: Syntax and Semantics COMP30412 Sean Bechhofer sean.bechhofer@manchester.ac.uk Problems Propositional logic isn t very expressive As an example, consider p = Scotland won on Saturday

### Propositional Logic. Fall () Propositional Logic Fall / 30

Propositional Logic Fall 2013 () Propositional Logic Fall 2013 1 / 30 1 Introduction Learning Outcomes for this Presentation 2 Definitions Statements Logical connectives Interpretations, contexts,... Logically

### Propositional Logic. Jason Filippou UMCP. ason Filippou UMCP) Propositional Logic / 38

Propositional Logic Jason Filippou CMSC250 @ UMCP 05-31-2016 ason Filippou (CMSC250 @ UMCP) Propositional Logic 05-31-2016 1 / 38 Outline 1 Syntax 2 Semantics Truth Tables Simplifying expressions 3 Inference

### Section 1.1: Logical Form and Logical Equivalence

Section 1.1: Logical Form and Logical Equivalence An argument is a sequence of statements aimed at demonstrating the truth of an assertion. The assertion at the end of an argument is called the conclusion,

### Chapter 1: The Logic of Compound Statements. January 7, 2008

Chapter 1: The Logic of Compound Statements January 7, 2008 Outline 1 1.1 Logical Form and Logical Equivalence 2 1.2 Conditional Statements 3 1.3 Valid and Invalid Arguments Central notion of deductive

### COMP219: Artificial Intelligence. Lecture 19: Logic for KR

COMP219: Artificial Intelligence Lecture 19: Logic for KR 1 Overview Last time Expert Systems and Ontologies Today Logic as a knowledge representation scheme Propositional Logic Syntax Semantics Proof

### Topic 1: Propositional logic

Topic 1: Propositional logic Guy McCusker 1 1 University of Bath Logic! This lecture is about the simplest kind of mathematical logic: propositional calculus. We discuss propositions, which are statements

### WUCT121. Discrete Mathematics. Logic. Tutorial Exercises

WUCT11 Discrete Mathematics Logic Tutorial Exercises 1 Logic Predicate Logic 3 Proofs 4 Set Theory 5 Relations and Functions WUCT11 Logic Tutorial Exercises 1 Section 1: Logic Question1 For each of the

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

AI Principles, Semester 2, Week 2, Lecture 5 Propositional Logic and Predicate Logic Propositional logic Logical connectives Rules for wffs Truth tables for the connectives Using Truth Tables to evaluate

### Introduction to Metalogic

Philosophy 135 Spring 2008 Tony Martin Introduction to Metalogic 1 The semantics of sentential logic. The language L of sentential logic. Symbols of L: Remarks: (i) sentence letters p 0, p 1, p 2,... (ii)

### Proseminar on Semantic Theory Fall 2013 Ling 720 Propositional Logic: Syntax and Natural Deduction 1

Propositional Logic: Syntax and Natural Deduction 1 The Plot That Will Unfold I want to provide some key historical and intellectual context to the model theoretic approach to natural language semantics,

### First Order Logic (1A) Young W. Lim 11/18/13

Copyright (c) 2013. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software

### Symbolic Logic 3. For an inference to be deductively valid it is impossible for the conclusion to be false if the premises are true.

Symbolic Logic 3 Testing deductive validity with truth tables For an inference to be deductively valid it is impossible for the conclusion to be false if the premises are true. So, given that truth tables

### AI Programming CS S-09 Knowledge Representation

AI Programming CS662-2013S-09 Knowledge Representation David Galles Department of Computer Science University of San Francisco 09-0: Overview So far, we ve talked about search, which is a means of considering

### The Importance of Being Formal. Martin Henz. February 5, Propositional Logic

The Importance of Being Formal Martin Henz February 5, 2014 Propositional Logic 1 Motivation In traditional logic, terms represent sets, and therefore, propositions are limited to stating facts on sets

### Bound and Free Variables. Theorems and Proofs. More valid formulas involving quantifiers:

Bound and Free Variables More valid formulas involving quantifiers: xp(x) x P(x) Replacing P by P, we get: x P(x) x P(x) Therefore x P(x) xp(x) Similarly, we have xp(x) x P(x) x P(x) xp(x) i(i 2 > i) is

### Reasoning. Inference. Knowledge Representation 4/6/2018. User

Reasoning Robotics First-order logic Chapter 8-Russel Representation and Reasoning In order to determine appropriate actions to take, an intelligent system needs to represent information about the world

### Logic for Computer Science Handout Week 8 DERIVED RULE MODUS TOLLENS DERIVED RULE RAA DERIVED RULE TND

Logic for Computer Science Handout Week 8 DERIVED RULE MODUS TOLLENS We have last week completed the introduction of a calculus, which is sound and complete. That is, we can syntactically establish the

### 10/5/2012. Logic? What is logic? Propositional Logic. Propositional Logic (Rosen, Chapter ) Logic is a truth-preserving system of inference

Logic? Propositional Logic (Rosen, Chapter 1.1 1.3) TOPICS Propositional Logic Truth Tables Implication Logical Proofs 10/1/12 CS160 Fall Semester 2012 2 What is logic? Logic is a truth-preserving system

### Advanced Topics in LP and FP

Lecture 1: Prolog and Summary of this lecture 1 Introduction to Prolog 2 3 Truth value evaluation 4 Prolog Logic programming language Introduction to Prolog Introduced in the 1970s Program = collection

### 3 The Semantics of the Propositional Calculus

3 The Semantics of the Propositional Calculus 1. Interpretations Formulas of the propositional calculus express statement forms. In chapter two, we gave informal descriptions of the meanings of the logical

### Chapter 4, Logic using Propositional Calculus Handout

ECS 20 Chapter 4, Logic using Propositional Calculus Handout 0. Introduction to Discrete Mathematics. 0.1. Discrete = Individually separate and distinct as opposed to continuous and capable of infinitesimal

### Formal Logic. Critical Thinking

ormal Logic Critical hinking Recap: ormal Logic If I win the lottery, then I am poor. I win the lottery. Hence, I am poor. his argument has the following abstract structure or form: If P then Q. P. Hence,

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

CS100: DISCREE SRUCURES Lecture 5: Logic (Ch1) Lecture Overview 2 Statement Logical Connectives Conjunction Disjunction Propositions Conditional Bio-conditional Converse Inverse Contrapositive Laws of

### Glossary of Logical Terms

Math 304 Spring 2007 Glossary of Logical Terms The following glossary briefly describes some of the major technical logical terms used in this course. The glossary should be read through at the beginning

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

Proposition logic and argument CISC2100, Spring 2017 X.Zhang 1 Where are my glasses? I know the following statements are true. 1. If I was reading the newspaper in the kitchen, then my glasses are on the

### Discrete Structures for Computer Science

Discrete Structures for Computer Science William Garrison bill@cs.pitt.edu 6311 Sennott Square Lecture #4: Predicates and Quantifiers Based on materials developed by Dr. Adam Lee Topics n Predicates n

### Logic As Algebra COMP1600 / COMP6260. Dirk Pattinson Australian National University. Semester 2, 2017

Logic As Algebra COMP1600 / COMP6260 Dirk Pattinson Australian National University Semester 2, 2017 Recap: And, Or, and Not x AND y x y x y 0 0 0 0 1 0 1 0 0 1 1 1 x OR y x y x y 0 0 0 0 1 1 1 0 1 1 1

### First Order Logic: Syntax and Semantics

irst Order Logic: Syntax and Semantics COMP30412 Sean Bechhofer sean.bechhofer@manchester.ac.uk Logic Recap You should already know the basics of irst Order Logic (OL) It s a prerequisite of this course!

### 5. And. 5.1 The conjunction

5. And 5.1 The conjunction To make our logical language more easy and intuitive to use, we can now add to it elements that make it able to express the equivalents of other sentences from a natural language

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

Lecture 2 Logic Compound Statements Conditional Statements Valid & Invalid Arguments Digital Logic Circuits Reading (Epp s textbook) 2.1-2.4 1 Logic Logic is a system based on statements. A statement (or

### CS280, Spring 2004: Final

CS280, Spring 2004: Final 1. [4 points] Which of the following relations on {0, 1, 2, 3} is an equivalence relation. (If it is, explain why. If it isn t, explain why not.) Just saying Yes or No with no

### Proofs: A General How To II. Rules of Inference. Rules of Inference Modus Ponens. Rules of Inference Addition. Rules of Inference Conjunction

Introduction I Proofs Computer Science & Engineering 235 Discrete Mathematics Christopher M. Bourke cbourke@cse.unl.edu A proof is a proof. What kind of a proof? It s a proof. A proof is a proof. And when

### Deductive and Inductive Logic

Deductive Logic Overview (1) Distinguishing Deductive and Inductive Logic (2) Validity and Soundness (3) A Few Practice Deductive Arguments (4) Testing for Invalidity (5) Practice Exercises Deductive and

### HANDOUT AND SET THEORY. Ariyadi Wijaya

HANDOUT LOGIC AND SET THEORY Ariyadi Wijaya Mathematics Education Department Faculty of Mathematics and Natural Science Yogyakarta State University 2009 1 Mathematics Education Department Faculty of Mathematics

### Packet #1: Logic & Proofs. Applied Discrete Mathematics

Packet #1: Logic & Proofs Applied Discrete Mathematics Table of Contents Course Objectives Page 2 Propositional Calculus Information Pages 3-13 Course Objectives At the conclusion of this course, you should

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

5 Logic In this part of the course we consider logic. Logic is used in many places in computer science including digital circuit design, relational databases, automata theory and computability, and artificial

### Lecture 7. Logic. Section1: Statement Logic.

Ling 726: Mathematical Linguistics, Logic, Section : Statement Logic V. Borschev and B. Partee, October 5, 26 p. Lecture 7. Logic. Section: Statement Logic.. Statement Logic..... Goals..... Syntax of Statement

### MA103 STATEMENTS, PROOF, LOGIC

MA103 STATEMENTS, PROOF, LOGIC Abstract Mathematics is about making precise mathematical statements and establishing, by proof or disproof, whether these statements are true or false. We start by looking

### Propositional Logic: Methods of Proof (Part II)

Propositional Logic: Methods of Proof (Part II) You will be expected to know Basic definitions Inference, derive, sound, complete Conjunctive Normal Form (CNF) Convert a Boolean formula to CNF Do a short

### CS2742 midterm test 2 study sheet. Boolean circuits: Predicate logic:

x NOT ~x x y AND x /\ y x y OR x \/ y Figure 1: Types of gates in a digital circuit. CS2742 midterm test 2 study sheet Boolean circuits: Boolean circuits is a generalization of Boolean formulas in which

### Propositional Logic Arguments (5A) Young W. Lim 11/8/16

Propositional Logic (5A) Young W. Lim Copyright (c) 2016 Young W. Lim. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version

### Discrete Structures of Computer Science Propositional Logic I

Discrete Structures of Computer Science Propositional Logic I Gazihan Alankuş (Based on original slides by Brahim Hnich) July 26, 2012 1 Use of Logic 2 Statements 3 Logic Connectives 4 Truth Tables Use

### Mathematical Logic Part One

Mathematical Logic Part One Question: How do we formalize the defnitions and reasoning we use in our proofs? Where We're Going Propositional Logic (Today) Basic logical connectives. Truth tables. Logical

### Overview. Knowledge-Based Agents. Introduction. COMP219: Artificial Intelligence. Lecture 19: Logic for KR

COMP219: Artificial Intelligence Lecture 19: Logic for KR Last time Expert Systems and Ontologies oday Logic as a knowledge representation scheme Propositional Logic Syntax Semantics Proof theory Natural

### Intelligent Agents. First Order Logic. Ute Schmid. Cognitive Systems, Applied Computer Science, Bamberg University. last change: 19.

Intelligent Agents First Order Logic Ute Schmid Cognitive Systems, Applied Computer Science, Bamberg University last change: 19. Mai 2015 U. Schmid (CogSys) Intelligent Agents last change: 19. Mai 2015

### Proof. Theorems. Theorems. Example. Example. Example. Part 4. The Big Bang Theory

Proof Theorems Part 4 The Big Bang Theory Theorems A theorem is a statement we intend to prove using existing known facts (called axioms or lemmas) Used extensively in all mathematical proofs which should

### Unit I LOGIC AND PROOFS. B. Thilaka Applied Mathematics

Unit I LOGIC AND PROOFS B. Thilaka Applied Mathematics UNIT I LOGIC AND PROOFS Propositional Logic Propositional equivalences Predicates and Quantifiers Nested Quantifiers Rules of inference Introduction

### Logic Background (1A) Young W. Lim 12/14/15

Young W. Lim 12/14/15 Copyright (c) 2014-2015 Young W. Lim. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any

### 02 Propositional Logic

SE 2F03 Fall 2005 02 Propositional Logic Instructor: W. M. Farmer Revised: 25 September 2005 1 What is Propositional Logic? Propositional logic is the study of the truth or falsehood of propositions or

### Propositional Logic. CS 3234: Logic and Formal Systems. Martin Henz and Aquinas Hobor. August 26, Generated on Tuesday 31 August, 2010, 16:54

Propositional Logic CS 3234: Logic and Formal Systems Martin Henz and Aquinas Hobor August 26, 2010 Generated on Tuesday 31 August, 2010, 16:54 1 Motivation In traditional logic, terms represent sets,

### Logical Operators. Conjunction Disjunction Negation Exclusive Or Implication Biconditional

Logical Operators Conjunction Disjunction Negation Exclusive Or Implication Biconditional 1 Statement meaning p q p implies q if p, then q if p, q when p, q whenever p, q q if p q when p q whenever p p

### CITS2211 Discrete Structures Proofs

CITS2211 Discrete Structures Proofs Unit coordinator: Rachel Cardell-Oliver August 13, 2017 Highlights 1 Arguments vs Proofs. 2 Proof strategies 3 Famous proofs Reading Chapter 1: What is a proof? Mathematics

### Chapter 2. Mathematical Reasoning. 2.1 Mathematical Models

Contents Mathematical Reasoning 3.1 Mathematical Models........................... 3. Mathematical Proof............................ 4..1 Structure of Proofs........................ 4.. Direct Method..........................

### ! Predicates! Variables! Quantifiers. ! Universal Quantifier! Existential Quantifier. ! Negating Quantifiers. ! De Morgan s Laws for Quantifiers

Sec\$on Summary (K. Rosen notes for Ch. 1.4, 1.5 corrected and extended by A.Borgida)! Predicates! Variables! Quantifiers! Universal Quantifier! Existential Quantifier! Negating Quantifiers! De Morgan s

### Section Summary. Predicate logic Quantifiers. Negating Quantifiers. Translating English to Logic. Universal Quantifier Existential Quantifier

Section 1.4 Section Summary Predicate logic Quantifiers Universal Quantifier Existential Quantifier Negating Quantifiers De Morgan s Laws for Quantifiers Translating English to Logic Propositional Logic

### Propositional Logic: Logical Agents (Part I)

Propositional Logic: Logical Agents (Part I) This lecture topic: Propositional Logic (two lectures) Chapter 7.1-7.4 (this lecture, Part I) Chapter 7.5 (next lecture, Part II) Next lecture topic: First-order

### Discrete Mathematics: An Open Introduction

Discrete Mathematics: An Open Introduction Course Notes for Math 228 at the University of Northern Colorado Oscar Levin, Ph.D. Spring 2013 Contents 1 Logic 2 1.1 Propositional Logic................................

### Natural deduction for truth-functional logic

Natural deduction for truth-functional logic Phil 160 - Boston University Why natural deduction? After all, we just found this nice method of truth-tables, which can be used to determine the validity or

### Applied Logic. Lecture 1 - Propositional logic. Marcin Szczuka. Institute of Informatics, The University of Warsaw

Applied Logic Lecture 1 - Propositional logic Marcin Szczuka Institute of Informatics, The University of Warsaw Monographic lecture, Spring semester 2017/2018 Marcin Szczuka (MIMUW) Applied Logic 2018

### MAT2345 Discrete Math

Fall 2013 General Syllabus Schedule (note exam dates) Homework, Worksheets, Quizzes, and possibly Programs & Reports Academic Integrity Do Your Own Work Course Web Site: www.eiu.edu/~mathcs Course Overview

### Axiomatic systems. Revisiting the rules of inference. Example: A theorem and its proof in an abstract axiomatic system:

Axiomatic systems Revisiting the rules of inference Material for this section references College Geometry: A Discovery Approach, 2/e, David C. Kay, Addison Wesley, 2001. In particular, see section 2.1,

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

Unit 1. Propositional Logic Reading do all quick-checks Propositional Logic: Ch. 2.intro, 2.2, 2.3, 2.4. Review 2.9 Typeset September 23, 2005 1 Statements or propositions Defn: A statement is an assertion

### CHAPTER 1 - LOGIC OF COMPOUND STATEMENTS

CHAPTER 1 - LOGIC OF COMPOUND STATEMENTS 1.1 - Logical Form and Logical Equivalence Definition. A statement or proposition is a sentence that is either true or false, but not both. ex. 1 + 2 = 3 IS a statement

### LECTURE 1. Logic and Proofs

LECTURE 1 Logic and Proofs The primary purpose of this course is to introduce you, most of whom are mathematics majors, to the most fundamental skills of a mathematician; the ability to read, write, and

### FORMAL PROOFS DONU ARAPURA

FORMAL PROOFS DONU ARAPURA This is a supplement for M385 on formal proofs in propositional logic. Rather than following the presentation of Rubin, I want to use a slightly different set of rules which

### Boolean Algebra and Proof. Notes. Proving Propositions. Propositional Equivalences. Notes. Notes. Notes. Notes. March 5, 2012

March 5, 2012 Webwork Homework. The handout on Logic is Chapter 4 from Mary Attenborough s book Mathematics for Electrical Engineering and Computing. Proving Propositions We combine basic propositions

### Topics in Logic and Proofs

Chapter 2 Topics in Logic and Proofs Some mathematical statements carry a logical value of being true or false, while some do not. For example, the statement 4 + 5 = 9 is true, whereas the statement 2

### Logic as a Tool Chapter 1: Understanding Propositional Logic 1.1 Propositions and logical connectives. Truth tables and tautologies

Logic as a Tool Chapter 1: Understanding Propositional Logic 1.1 Propositions and logical connectives. Truth tables and tautologies Valentin Stockholm University September 2016 Propositions Proposition:

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

Logic: Truth Tables CS160 Rosen Chapter 1 Logic? 1 What is logic? Logic is a truth-preserving system of inference Truth-preserving: If the initial statements are true, the inferred statements will be true

### DISCRETE MATHEMATICS BA202

TOPIC 1 BASIC LOGIC This topic deals with propositional logic, logical connectives and truth tables and validity. Predicate logic, universal and existential quantification are discussed 1.1 PROPOSITION

### MAI0203 Lecture 7: Inference and Predicate Calculus

MAI0203 Lecture 7: Inference and Predicate Calculus Methods of Artificial Intelligence WS 2002/2003 Part II: Inference and Knowledge Representation II.7 Inference and Predicate Calculus MAI0203 Lecture

### Argument. whenever all the assumptions are true, then the conclusion is true. If today is Wednesday, then yesterday is Tuesday. Today is Wednesday.

Logic and Proof Argument An argument is a sequence of statements. All statements but the first one are called assumptions or hypothesis. The final statement is called the conclusion. An argument is valid

### Propositional Logic: Models and Proofs

Propositional Logic: Models and Proofs C. R. Ramakrishnan CSE 505 1 Syntax 2 Model Theory 3 Proof Theory and Resolution Compiled at 11:51 on 2016/11/02 Computing with Logic Propositional Logic CSE 505

### First order Logic ( Predicate Logic) and Methods of Proof

First order Logic ( Predicate Logic) and Methods of Proof 1 Outline Introduction Terminology: Propositional functions; arguments; arity; universe of discourse Quantifiers Definition; using, mixing, negating

### 6. Conditional derivations

6. Conditional derivations 6.1 An argument from Hobbes In his great work, Leviathan, the philosopher Thomas Hobbes (1588-1679) gives an important argument for government. Hobbes begins by claiming that

### Discrete Mathematical Structures. Chapter 1 The Foundation: Logic

Discrete Mathematical Structures Chapter 1 he oundation: Logic 1 Lecture Overview 1.1 Propositional Logic 1.2 Propositional Equivalences 1.3 Quantifiers l l l l l Statement Logical Connectives Conjunction

### Formal Logic: Quantifiers, Predicates, and Validity. CS 130 Discrete Structures

Formal Logic: Quantifiers, Predicates, and Validity CS 130 Discrete Structures Variables and Statements Variables: A variable is a symbol that stands for an individual in a collection or set. For example,

### Propositional Logic. Logic. Propositional Logic Syntax. Propositional Logic

Propositional Logic Reading: Chapter 7.1, 7.3 7.5 [ased on slides from Jerry Zhu, Louis Oliphant and ndrew Moore] Logic If the rules of the world are presented formally, then a decision maker can use logical

### Chapter 3. The Logic of Quantified Statements

Chapter 3. The Logic of Quantified Statements 3.1. Predicates and Quantified Statements I Predicate in grammar Predicate refers to the part of a sentence that gives information about the subject. Example:

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

What is Logic? Introduction to Logic Peter Lo Logic is the study of reasoning It is specifically concerned with whether reasoning is correct Logic is also known as Propositional Calculus CS218 Peter Lo

### Logic and Proofs 1. 1 Overview. 2 Sentential Connectives. John Nachbar Washington University December 26, 2014

John Nachbar Washington University December 26, 2014 Logic and Proofs 1 1 Overview. These notes provide an informal introduction to some basic concepts in logic. For a careful exposition, see, for example,

### Section Summary. Predicates Variables Quantifiers. Negating Quantifiers. Translating English to Logic Logic Programming (optional)

Predicate Logic 1 Section Summary Predicates Variables Quantifiers Universal Quantifier Existential Quantifier Negating Quantifiers De Morgan s Laws for Quantifiers Translating English to Logic Logic Programming

### Proposi'onal Logic Not Enough

Section 1.4 Proposi'onal Logic Not Enough If we have: All men are mortal. Socrates is a man. Socrates is mortal Compare to: If it is snowing, then I will study discrete math. It is snowing. I will study

### INTRODUCTION TO PREDICATE LOGIC HUTH AND RYAN 2.1, 2.2, 2.4

INTRODUCTION TO PREDICATE LOGIC HUTH AND RYAN 2.1, 2.2, 2.4 Neil D. Jones DIKU 2005 Some slides today new, some based on logic 2004 (Nils Andersen), some based on kernebegreber (NJ 2005) PREDICATE LOGIC:

### CSE 20 DISCRETE MATH. Fall

CSE 20 DISCRETE MATH Fall 2017 http://cseweb.ucsd.edu/classes/fa17/cse20-ab/ Today's learning goals Distinguish between a theorem, an axiom, lemma, a corollary, and a conjecture. Recognize direct proofs

### Predicate Logic. Andreas Klappenecker

Predicate Logic Andreas Klappenecker Predicates A function P from a set D to the set Prop of propositions is called a predicate. The set D is called the domain of P. Example Let D=Z be the set of integers.

### Introduction to fuzzy logic

Introduction to fuzzy logic Andrea Bonarini Artificial Intelligence and Robotics Lab Department of Electronics and Information Politecnico di Milano E-mail: bonarini@elet.polimi.it URL:http://www.dei.polimi.it/people/bonarini

### Computation and Logic Definitions

Computation and Logic Definitions True and False Also called Boolean truth values, True and False represent the two values or states an atom can assume. We can use any two distinct objects to represent

### Propositional Logics and their Algebraic Equivalents

Propositional Logics and their Algebraic Equivalents Kyle Brooks April 18, 2012 Contents 1 Introduction 1 2 Formal Logic Systems 1 2.1 Consequence Relations......................... 2 3 Propositional Logic

### Chapter 7 R&N ICS 271 Fall 2017 Kalev Kask

Set 6: Knowledge Representation: The Propositional Calculus Chapter 7 R&N ICS 271 Fall 2017 Kalev Kask Outline Representing knowledge using logic Agent that reason logically A knowledge based agent Representing

### The Limit of Humanly Knowable Mathematical Truth

The Limit of Humanly Knowable Mathematical Truth Gödel s Incompleteness Theorems, and Artificial Intelligence Santa Rosa Junior College December 12, 2015 Another title for this talk could be... An Argument

### Chapter 1: Formal Logic

Chapter 1: Formal Logic Dr. Fang (Daisy) Tang ftang@cpp.edu www.cpp.edu/~ftang/ CS 130 Discrete Structures Logic: The Foundation of Reasoning Definition: the foundation for the organized, careful method