PHIL 50 - Introduction to Logic

Similar documents
15414/614 Optional Lecture 1: Propositional Logic

Propositional Logic. Fall () Propositional Logic Fall / 30

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

COMP219: Artificial Intelligence. Lecture 19: Logic for KR

The Logic of Compound Statements cont.

COMP219: Artificial Intelligence. Lecture 19: Logic for KR

CHAPTER 1 - LOGIC OF COMPOUND STATEMENTS

The proposition p is called the hypothesis or antecedent. The proposition q is called the conclusion or consequence.

Logic for Computer Science - Week 4 Natural Deduction

Discrete Structures of Computer Science Propositional Logic III Rules of Inference

Advanced Topics in LP and FP

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

02 Propositional Logic

Propositional Logics and their Algebraic Equivalents

Filtrations and Basic Proof Theory Notes for Lecture 5

Predicate Logic. Andreas Klappenecker

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

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

Section 1.3: Valid and Invalid Arguments

Propositional logic (revision) & semantic entailment. p. 1/34

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

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

Introduction Logic Inference. Discrete Mathematics Andrei Bulatov

Natural Deduction for Propositional Logic

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

FORMAL PROOFS DONU ARAPURA

CS 2740 Knowledge Representation. Lecture 4. Propositional logic. CS 2740 Knowledge Representation. Administration

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

5. And. 5.1 The conjunction

PHIL 50 - Introduction to Logic

03 Propositional Logic II

5. And. 5.1 The conjunction

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

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

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

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

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

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

3. The Logic of Quantified Statements Summary. Aaron Tan August 2017

Propositional Logic. Spring Propositional Logic Spring / 32

Phil Introductory Formal Logic

overview overview proof system for basic modal logic proof systems advanced logic lecture 8 temporal logic using temporal frames

Propositional Logic: Deductive Proof & Natural Deduction Part 1

THE LOGIC OF COMPOUND STATEMENTS

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

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

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

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

Introduction to Metalogic 1

CSCI.6962/4962 Software Verification Fundamental Proof Methods in Computer Science (Arkoudas and Musser) Chapter p. 1/33

Valid Reasoning. Alice E. Fischer. CSCI 1166 Discrete Mathematics for Computing February, Outline Truth and Validity Valid Reasoning

COMP Intro to Logic for Computer Scientists. Lecture 6

Language of Propositional Logic

A Little Deductive Logic

Propositional Logic Arguments (5A) Young W. Lim 2/23/17

PHI Propositional Logic Lecture 2. Truth Tables

Review for Midterm 1. Andreas Klappenecker

Logical Structures in Natural Language: Propositional Logic II (Truth Tables and Reasoning

INTRODUCTION TO LOGIC. Propositional Logic. Examples of syntactic claims

Notes on Modal Logic

MAI0203 Lecture 7: Inference and Predicate Calculus

Mathematics 114L Spring 2018 D.A. Martin. Mathematical Logic

Deductive Systems. Lecture - 3

CS 512, Spring 2016, Handout 02 Natural Deduction, and Examples of Natural Deduction, in Propositional Logic

HANDOUT AND SET THEORY. Ariyadi Wijaya

First Order Logic: Syntax and Semantics

CSCE 222 Discrete Structures for Computing. Review for Exam 1. Dr. Hyunyoung Lee !!!

A Little Deductive Logic

ANS: If you are in Kwangju then you are in South Korea but not in Seoul.

A Quick Lesson on Negation

6. Conditional derivations

6. Conditional derivations

Section 1.2: Propositional Logic

Logic: Propositional Logic Truth Tables

Phil Introductory Formal Logic

Description Logics. Foundations of Propositional Logic. franconi. Enrico Franconi

Logic: Propositional Logic (Part I)

Knowledge base (KB) = set of sentences in a formal language Declarative approach to building an agent (or other system):

Logic. Introduction to Artificial Intelligence CS/ECE 348 Lecture 11 September 27, 2001

Predicate Logic & Quantification

Notes on Modal Logic

Deductive and Inductive Logic

Propositional Logic Review

3 The Semantics of the Propositional Calculus

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

Logic. Propositional Logic: Syntax

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.

Material Implication and Entailment

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

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

Computational Intelligence Lecture 13:Fuzzy Logic

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

Propositional Logic: Review

Introduction to Metalogic

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

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

Learning Goals of CS245 Logic and Computation

Logic for Computer Science - Week 5 Natural Deduction

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

First Order Logic Implication (4A) Young W. Lim 4/6/17

Transcription:

Truth Validity Logical Consequence Equivalence V ψ ψ φ 1, φ 2,, φ k ψ φ ψ PHIL 50 - Introduction to Logic Marcello Di Bello, Stanford University, Spring 2014 Week 2 Friday Class

Overview of Key Notions Truth Validity# V ψ iff valuation V makes ψ true# ψ iff all valuations V s make ψ true# Logical Consequence # φ 1, φ 2,, φ k ψ iff all valuations V s that make φ 1, φ 2,, φ k true make ψ true# # # # iff for all valuations V s [if V makes φ 1, φ 2,, φ k true, V makes ψ true]# Logical equivalence φ ψ iff φ ψ and ψ φ#

What We Have Learned So Far about the SEMANTICS of Propositional Logic How to evaluate a formula relative to ONE Valuation V ψ How can we evaluate a formula relative to ALL valuations?

How to Think About a Valuation For any (atomic) formula in the language a valuation V tells us whether the formula is true (value 1) or false (value 0). You can think of V as selecting one possible complete description of the world as a whole (in so far as the world is describable through language) So, each V represent one possible selection of a complete description of the world.

How MANY Valuations Functions? With one atomic proposition, there are two possible valuations. With two atomic propositions, there are four possible valuations. With three atomic propositions, there are 2^3=8 possible valuations. With n atomic propositions, there are 2^n possible valuations.

Evaluating One Formula Relative to ALL Valuations (p ^ (p q)) q 1 1 1 1 1 1 0 0 0 0 1 1 0 0 0 0

Evaluating One Formula Relative to ALL Valuations (p ^ (p q)) q 1 1 1 1 1 1 1 0 0 0 0 0 1 1 1 0 0 1 0 0

Evaluating One Formula Relative to ALL Valuations (p ^ (p q)) q 1 1 1 1 1 1 1 0 1 0 0 0 0 0 0 1 1 1 0 0 0 1 0 0

Evaluating One Formula Relative to ALL Valuations (p ^ (p q)) q 1 1 1 1 1 1 1 1 0 1 0 0 1 0 0 0 0 1 1 1 1 0 0 0 1 0 1 0

Evaluating One Formula Relative to ALL Valuations If a formula is true regardless of the selection of the valuation function, the formula is true no matter what the world is like. (p ^ (p q)) q 1 1 1 1 1 1 1 1 0 1 0 0 1 0 0 0 0 1 1 1 1 0 0 0 1 0 1 0 p 1 0 1 0 1 0 Always true Sometimes true

Classification of Formulas Those that are never true (contradiction): p ^ ( p),... Those that can be true (satisfiable): ( p) _ q,... The expression V φ# means that φ is true relative to ONE valuation. Instead, the expression φ# means that φ is true relative to ALL valuations.# Those that are always true (valid, tautology): (p ^ (p q)) q,... If the formula ' is valid, we write = '

Validity of PEM and PNC φ φ (φ φ) 1 1 0 1 1 1 0 0 1 0 1 1 0 1 0 0 1 0 If we assume that formulas can take value 0 or 1 (i.e. principle of bivalence), then PEM and PNC are both valid. We can write:# # # φ φ # and# # # (φ φ)#

What Happens to PEM and PNC if we Drop Bivalence? For you to discover in the homework

Establishing the Equivalence (φ ψ) φ ψ (φ ψ) ( φ ψ) 1 1 1 0 1 1 1 1 0 0 0 1 0 0 0 1 1 1 0 1 1 0 1 0 1 0 1 0

Establishing the Equivalence (φ ψ) ( φ ψ) (φ ψ) ( φ ψ) 1 1 1 1 0 1 0 0 1 1 0 0 0 0 1 1 1 0 0 0 1 0 1 0 1 0 1 0 0 0 0 1 0 1 1 0

So Connectives Can Be Inter-defined Useful equivalences# (φ ψ) φ ψ# (φ ψ) ( φ ψ)# (φ ψ) (φ ψ) (ψ φ)# These equivalences show that we only need and to express all other connectives such as, and

What We Have Learned So Far about the SEMANTICS of Propositional Logic How to evaluate a formula relative to ONE Valuation How to evaluate a formula relative to ALL valuations Can we get an account of (deductively) valid argument?

Deductively Valid Arguments Informally speaking, an argument is said to be deductively valid if and only if whenever the premises are true, the conclusion is always true. Given the semantics of propositional logic, an argument is said to be deductively valid if and only if whenever all valuations that make true the premises make true the conclusion. This definition is systemrelative; it applies within the system of propositional logic.

Recall Modus Ponens Premise 1: If you take the medication, then you will get better Premise 2: You are taking the medication Conclusion: You will get better Modus Ponens: If p, then q p q Modus Ponens: p q q q

Is Modus Ponens Valid? p (p q) q 1 1 1 1 1 1 1 0 0 0 0 0 1 1 1 0 0 1 0 0 We only need to check the first line of the table because this is where the premises are all true. We can write p, p q q

Recall Modus Tollens Premise 1: If you take the medication, then you will get better Premise 2: You are NOT getting better Conclusion: You are NOT taking the medication Modus Tollens: If p, then q not-q not-p Modus Tollens: p q q p

Is Modus Tollens Valid? q (p q) p 0 1 1 1 0 1 1 0 0 0 0 0 1 1 1 1 0 1 0 1 We only need to check the last line of the table because this is where the premises are all true. We can write q, p q p

Is Denying the Consequent a Valid Argument Pattern? Premise 1: If the money supply increases by less than 5%, inflation will decrease Premise 2: The money supply does NOT increase by less than 5% Conclusion: Inflation will NOT decrease p q# p# q# If you construct the appropriate truth table, you see that this argument patters is NOT valid.

Truth Table Method to Check Denying the Consequent p (p q) q 0 1 1 1 0 0 1 0 0 1 1 0 1 1 0 1 0 1 0 1 Not all valuations that make true the premises p q and p make true the conclusion q. So Denying the Consequent is not valid in propositional logic.

Validity is Relative to the Logical System We could formally establish - within the system of propositional logic - that Modus Ponens and Modus Tollens are valid argument patterns, while Denying the Consequent is not. But how significant is this result? Should we be convinced by it? We should always bear in mind that formal proofs of validity are relative to a logical system. But is our logical system adequate for what we want it to do, e.g. accounting for good reasoning?

A Clarification on Truth-Functional Connectives

Truth-Functional Connectives A one-place connective C is used truth-functionally whenever the truth value of the formula Cφ is a function of (is completely determined by) the truth value of the constituent formula φ. An example of a one-place truth functional connective is. A two-place connective C is used truth-functionally whenever the truth value of the formula (φ C ψ) is a function of (is completely determined by) the truth values of the constituent formulas φ and ψ. An example of a two-place truth functional connective is. And similarly for any n-ary connective

AND-THEN Is Not a Truth-Functional Connective Truth-functional connective Truth-functional connective Not a truth-functional connective ' ^ 1 1 1 1 0 0 0 0 1 0 0 0 ' 1 1 1 1 0 0 0 1 1 0 1 0 φ AND-THEN ψ 1???? 1 1 0 0 0 0 1 0 0 0 In one case, assigning truth values to φ and ψ does not determine the truth value of φ AND-THEN ψ. The temporal order of φ and ψ matters, not merely their truth values.

Other Examples of Non-Truth Functional Connectives I avoid the lecture # # # # # # # # # BECAUSE# the instructor is confusing φ BECAUSE ψ 1???? 1 1 0 0 0 0 1 0 0 0 φ WHILE ψ Wittgenstein wrote his thesis WHILE # he was fighting in the Great War 1???? 1 1 0 0 0 0 1 0 0 0