Section 1.2: Propositional Logic

Similar documents
2. The Logic of Compound Statements Summary. Aaron Tan August 2017

Propositional Logic. Argument Forms. Ioan Despi. University of New England. July 19, 2013

Natural Deduction is a method for deriving the conclusion of valid arguments expressed in the symbolism of propositional logic.

Today s Lecture 2/25/10. Truth Tables Continued Introduction to Proofs (the implicational rules of inference)

MACM 101 Discrete Mathematics I. Exercises on Propositional Logic. Due: Tuesday, September 29th (at the beginning of the class)

COMP 182 Algorithmic Thinking. Proofs. Luay Nakhleh Computer Science Rice University

Propositional Logic. Spring Propositional Logic Spring / 32

Logic. Definition [1] A logic is a formal language that comes with rules for deducing the truth of one proposition from the truth of another.

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

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

Supplementary Logic Notes CSE 321 Winter 2009

PROPOSITIONAL CALCULUS

1.1 Statements and Compound Statements

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

Inference and Proofs (1.6 & 1.7)

The Logic of Compound Statements cont.

Propositional Logic: Syntax

CSC Discrete Math I, Spring Propositional Logic

Proof strategies, or, a manual of logical style

CHAPTER 1 - LOGIC OF COMPOUND STATEMENTS

3 The Semantics of the Propositional Calculus

n logical not (negation) n logical or (disjunction) n logical and (conjunction) n logical exclusive or n logical implication (conditional)

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

Language of Propositional Logic

Manual of Logical Style

Logic Overview, I. and T T T T F F F T F F F F

Chapter 1, Logic and Proofs (3) 1.6. Rules of Inference

Natural deduction for truth-functional logic

COMP219: Artificial Intelligence. Lecture 19: Logic for KR

Chapter 1 Elementary Logic

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

CITS2211 Discrete Structures Proofs

PHI Propositional Logic Lecture 2. Truth Tables

Section 1.1 Propositions

4 Derivations in the Propositional Calculus

Natural Deduction. Formal Methods in Verification of Computer Systems Jeremy Johnson

Proofs. Example of an axiom in this system: Given two distinct points, there is exactly one line that contains them.

FORMAL PROOFS DONU ARAPURA

2.2: Logical Equivalence: The Laws of Logic

COMP219: Artificial Intelligence. Lecture 19: Logic for KR

Introduction Logic Inference. Discrete Mathematics Andrei Bulatov

Logic, Sets, and Proofs

PHIL12A Section answers, 28 Feb 2011

Propositional natural deduction

Warm-Up Problem. Write a Resolution Proof for. Res 1/32

Manual of Logical Style (fresh version 2018)

Artificial Intelligence: Knowledge Representation and Reasoning Week 2 Assessment 1 - Answers

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

Proving Things. Why prove things? Proof by Substitution, within Logic. Rules of Inference: applying Logic. Using Assumptions.

7 LOGICAL AGENTS. OHJ-2556 Artificial Intelligence, Spring OHJ-2556 Artificial Intelligence, Spring

CSE 20: Discrete Mathematics

Compound Propositions

Discrete Structures & Algorithms. Propositional Logic EECE 320 // UBC

Formal (natural) deduction in propositional logic

Steinhardt School of Culture, Education, and Human Development Department of Teaching and Learning. Mathematical Proof and Proving (MPP)

Propositional Logic: Part II - Syntax & Proofs 0-0

ANALYSIS EXERCISE 1 SOLUTIONS

Examples: P: it is not the case that P. P Q: P or Q P Q: P implies Q (if P then Q) Typical formula:

Packet #1: Logic & Proofs. Applied Discrete Mathematics

Discrete Structures of Computer Science Propositional Logic III Rules of Inference

In this chapter, we specify a deductive apparatus for PL.

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

A. Propositional Logic

Collins' notes on Lemmon's Logic

Natural Deduction for Propositional Logic

Deductive Systems. Lecture - 3

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

Section 1.2 Propositional Equivalences. A tautology is a proposition which is always true. A contradiction is a proposition which is always false.

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

First-Degree Entailment

Propositional Logic. Fall () Propositional Logic Fall / 30

Logic for Computer Science - Week 4 Natural Deduction

A Quick Lesson on Negation

Logic. Propositional Logic: Syntax

Logic and Proofs. (A brief summary)

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

Logic and Truth Tables

Outline. Rules of Inferences Discrete Mathematics I MATH/COSC 1056E. Example: Existence of Superman. Outline

Review. Propositions, propositional operators, truth tables. Logical Equivalences. Tautologies & contradictions

Readings: Conjecture. Theorem. Rosen Section 1.5

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

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

Proof Worksheet 2, Math 187 Fall 2017 (with solutions)

THE LOGIC OF COMPOUND STATEMENTS

Deductive and Inductive Logic

Do not start until you are given the green signal

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

software design & management Gachon University Chulyun Kim

Logic: Propositional Logic (Part I)

Chapter 4: Classical Propositional Semantics

Propositional Equivalence

Review CHAPTER. 2.1 Definitions in Chapter Sample Exam Questions. 2.1 Set; Element; Member; Universal Set Partition. 2.

Mathematical Reasoning Rules of Inference & Mathematical Induction. 1. Assign propositional variables to the component propositional argument.

Review The Conditional Logical symbols Argument forms. Logic 5: Material Implication and Argument Forms Jan. 28, 2014

Predicate Logic. Andreas Klappenecker

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

Overview. I Review of natural deduction. I Soundness and completeness. I Semantics of propositional formulas. I Soundness proof. I Completeness proof.

n Empty Set:, or { }, subset of all sets n Cardinality: V = {a, e, i, o, u}, so V = 5 n Subset: A B, all elements in A are in B

Propositional and Predicate Logic

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

Transcription:

Section 1.2: Propositional Logic January 17, 2017 Abstract Now we re going to use the tools of formal logic to reach logical conclusions ( prove theorems ) based on wffs formed by some given statements. This is the domain of propositional logic. Propositional wff: represent some sort of argument, to be tested, or proven, by propositional logic. valid arguments, e.g. P 1 P 2... P n Q have hypotheses (we suppose assert that the P i are true), and a conclusion (Q). To be valid, this argument must be a tautology (always true). To be an argument, Q must not be identically true (i.e. a fact, in which case the hypotheses are irrelevant, by the truth table of implication). Examples a. Valid argument: If logic is hard, then I am a monkey s uncle. I am not a monkey s uncle. Therefore, logic is not hard. b. Invalid arguments: If people are crazy, then they should be in an asylum. I am in an asylum. i. Therefore 1 + 1 = 2. ii. Therefore I am crazy. Proof Sequence: a sequence of wffs in which every wff is an hypothesis or the result of applying the formal system s derivation rules (truth-preserving rules) in sequence. Our Objective: to reach the conclusion Q from the hypotheses P 1, P 2,..., P n (with reasons!).

The famous cartoonist Sidney Harris knows that you need to follow the rules (equivalence and inference rules) in a proof sequence: Types of derivation rules: Equivalence rules (see Table 1.12, p. 24): we can substitute equivalent wffs in a proof sequence by invoking equivalence rules. commutative associative De Morgan s laws implication (P Q P Q) double negation You re asked to prove the implication equivalence rule in Practice 9, p. 24. That is, prove that P Q P Q is a tautology (notice how we use order of precedence of operations to drop parentheses). How would you prove it? And can you see another theorem, suggested by the commutitivity of disjunction?

Implication seems somewhat unusual, but it is suggested by Exercise 7a, section 1.1: If the food is good, then the service is excellent. So when we negate it, it leads to the rule (P Q) P Q. Inference rules: from given hypotheses, we can deduce certain conclusions (see Table 1.13, p. 25) modus ponens: If P is true, and Q follows from P, then Q is true: P (P Q) Q modus tollens: If Q follows from P, and Q is false, then P is also false: (P Q) Q P conjunction: If P is true, and Q is true, then they re both true together: P Q (P Q) simplification: If both P and Q are true, then they re each true separately: P Q P, and P Q Q addition: If P is true, then either P or Q is true: P P Q Of these, addition may seem a little odd: what do you gain by adding an arbitrary argument Q to an already true wff P into a logical or? Practice 10, p. 26 (and also suggests a reasonable step 4.) 1. (A B ) C hyp 2. C hyp Let s start with #17, p. 32. Then, for a more elaborate example, let s look at #29, p. 33, which shows that one can prove anything if one introduces a contradiction (e.g. this problem, on a mensa quiz I once found: If 1/2 of 24 were 8, what would 1/3 of 18 be? 1 ). Also called an inconsistency, this is a beautiful and important example: P P Q The difference between equivalence rules and inference rules is that equivalence rules are bi-directional (work both ways), whereas some inference rules are uni-directional (work in 1 Their solution (and I quote): The best way to solve this is by setting up 1/2 24 1/3 18 proportions: =. Then 12 8 z 8 = 6, so z = 4. But wait didn t z they say that 1/2 of 24 is 8?!

only one direction - e.g., simplification; this is what inference is all about: from this we can infer that doesn t mean that from that we can infer this. Notice that in the table 1.14 (More Inference Rules, p. 33) some rules appear twice (e.g. contraposition): two unidirectionals can make a bi-directional (which makes this an equivalence rule). Note for your homework: you are not allowed to invoke the rule that you are trying to prove! Notice that the entries in this table are followed by exercise numbers: it is in those exercises that the results are actually proved. Deduction method: if you seek to prove an implication (that is, if the consequent of the theorem is itself an implication), then you can simply add the antecedent of this consequent implication to the hypotheses making up the antecedent, and prove the consequent of the concluding implication: P 1 P 2... P n (R S) can be replaced by P 1 P 2... P n R S This is really Exportation (from Table 1.14) backwards, which means that Exportation is actually an equivalence rule (it is: check the truth tables, or construct a proof). If you re interested in seeing why this rule works, you should try #49, p. 34, but think of it this way: we re interested in assuming that all the P i are true, and see if we can deduce the implication R S. If R is false, then the implication is true. The only potentially problematic case is where R is true, and S is false. Then what we want to know is: given that P 1 P 2... P n R are true, is S true? Exercise #35, p. 33: (A B) (B C) (C D) (A D) Hypothetical syllogism: The theorem above can be proven more easily using this method: (P Q) (Q R) (P R) (and see a whole long list of more rules in Table 1.14). This rule might be referred to as transitivity.

A new rule is created each time we prove an argument; but we don t want to create so many rules that we keel over under their weight! Keep just a few rules in view, and learn how to use them well... Our goal may well be to turn a real argument into a symbolic one. This allows us to test whether the argument is sound (that is, that the conclusion follows from the hypotheses). Exercise #44, p. 34: If the ad is successful, then the sales volume will go up. Either the ad is successful or the store will close. The sales volume will not go up. Therefore the store will close. (A, S, C) The propositional logic system is complete and correct: complete: every valid argument is provable (we can show that it is a tautology). correct: only a valid argument is provable (only tautologies are provable). The derivation rules are truth-preserving, so correctness is pretty clear; completeness is not! How can we tell if we can prove every valid argument?!