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

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

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

First Order Logic Arguments (5A) Young W. Lim 2/24/17

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

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

First Order Logic Arguments (5A) Young W. Lim 3/10/17

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

Propositional Logic Logical Implication (4A) Young W. Lim 4/11/17

Propositional Logic Resolution (6A) Young W. Lim 12/12/16

Propositional Logic Logical Implication (4A) Young W. Lim 4/21/17

Propositional Logic Resolution (6A) Young W. Lim 12/31/16

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

Propositional Logic (2A) Young W. Lim 11/8/15

Logic Background (1A) Young W. Lim 5/14/18

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

First Order Logic Semantics (3A) Young W. Lim 9/17/17

First Order Logic Semantics (3A) Young W. Lim 8/9/17

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

Resolution (14A) Young W. Lim 8/15/14

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

Logic (3A) Young W. Lim 11/2/13

Logic (3A) Young W. Lim 10/31/13

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

Resolution (7A) Young Won Lim 4/21/18

Implication (6A) Young Won Lim 3/17/18

Logic (3A) Young W. Lim 10/29/13

Implication (6A) Young Won Lim 3/12/18

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

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

Advanced Topics in LP and FP

COMP219: Artificial Intelligence. Lecture 19: Logic for KR

COMP219: Artificial Intelligence. Lecture 19: Logic for KR

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

Deductive and Inductive Logic

22c:145 Artificial Intelligence

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

PROPOSITIONAL CALCULUS

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

Logic (3A) Young W. Lim 12/5/13

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

Propositional Logic Review

A Quick Lesson on Negation

The Logic of Compound Statements cont.

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

Logic for Computer Science - Week 4 Natural Deduction

Logic: Propositional Logic (Part I)

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

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

Discrete Structures of Computer Science Propositional Logic III Rules of Inference

Section 1.2: Propositional Logic

Why Learning Logic? Logic. Propositional Logic. Compound Propositions

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

Formal (natural) deduction in propositional logic

CSE 20 DISCRETE MATH. Fall

Manual of Logical Style (fresh version 2018)

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

Supplementary Logic Notes CSE 321 Winter 2009

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

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.

PHIL12A Section answers, 28 Feb 2011

PHIL 50 - Introduction to Logic

Manual of Logical Style

Propositional Logic: Review

First Order Logic: Syntax and Semantics

1.1 Statements and Compound Statements

CSE 20 DISCRETE MATH. Winter

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

Natural Deduction for Propositional Logic

Relations (3A) Young Won Lim 3/27/18

COMP Intro to Logic for Computer Scientists. Lecture 6

CHAPTER 1 - LOGIC OF COMPOUND STATEMENTS

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

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

First Order Logic: Syntax and Semantics

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

FORMAL PROOFS DONU ARAPURA

Artificial Intelligence. Propositional Logic. Copyright 2011 Dieter Fensel and Florian Fischer

15414/614 Optional Lecture 1: Propositional Logic

Overview of Today s Lecture

MAI0203 Lecture 7: Inference and Predicate Calculus

Introduction to Metalogic

Propositional Logic. Spring Propositional Logic Spring / 32

First-Degree Entailment

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

Artificial Intelligence. Propositional logic

Propositional Logic: Logical Agents (Part I)

Rules Build Arguments Rules Building Arguments

Computational Intelligence Lecture 13:Fuzzy Logic

Propositional Logic: Logical Agents (Part I)

Language of Propositional Logic

A Little Deductive Logic

Natural deduction for truth-functional logic

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

Artificial Intelligence Knowledge Representation I

Logic, Human Logic, and Propositional Logic. Human Logic. Fragments of Information. Conclusions. Foundations of Semantics LING 130 James Pustejovsky

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

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

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.

Predicate Logic. Andreas Klappenecker

Transcription:

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 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled "GNU Free Documentation License". Please send corrections (or suggestions) to youngwlim@hotmail.com. This document was produced by using LibreOffice

Based on Contemporary Artificial Intelligence, R.E. Neapolitan & X. Jiang Logic and Its Applications, Burkey & Foxley 3

An argument consists of a set of propositions : The premises propositions The conclusion proposition List of premises followed by the conclusion A 1 propositions A 2 A n -------- B premises conclusion 4

Entailment Definition If the truth of a statement P guarantees that another statement Q must be true, then we say that P entails Q, or that Q is entailed by P. the key term, must be true Must be is stating that something is necessary, something for which no other option or possibility exists. Must be encodes the concept of logical necessity. http://www.kslinker.com/valid-and-invalid-arguments.html 5

Entailment Examples P: Mary knows all the capitals of the United States Q: Mary knows the capital of Kentucky P: Every one in the race ran the mile in under 5 minutes Q: John, a runner in the race, ran the mile in less than 5 minutes P: The questionnaire had a total of 20 questions, and Mary answered only 13 Q: The questionnaire answered by Mary had 7 unanswered questions P: The winning ticket starts with 3 7 9 Q: Mary's ticket starts with 3 7 9 so Mary's ticket is the winning ticket conceptually familiarity true conditional statements, or true implications are examples of entailment. any conditional statement, ( if.... then ) which is true, is an example of entailment. In Mathematics, the more familiar term is implication. http://www.kslinker.com/valid-and-invalid-arguments.html 6

Entail The premises is said to entail the conclusion If in every model in which all the premises are true, the conclusion is also true List of premises followed by the conclusion A 1 A 2 A n -------- B whenever all the premises are true the conclusion must be true for the entailment 7

A Model A model or a possible world: Every atomic proposition is assigned a value T or F The set of all these assignments constitutes A model or a possible world All possible worlds (assignments) are permissiable models A B A B A B A T T T T T F F T F T F T F F F T T T T F F T F F T T T F T T T F F T T T T F F T F F Every atomic proposition : A, B 8

Interpretation An interpretation of a formal system is the assignment of meanings to the symbols, and truth values to the sentences of a formal system. The study of interpretations is called formal semantics Giving an interpretation is synonymous with constructing a model. An interpretation is expressed in a metalanguage, which may itself be a formal language, and as such itself is a syntactic entity. https://en.wikipedia.org/wiki/syntax_(logic)#syntactic_consequence_within_a_formal_system 9

Entailment Notation Suppose we have an argument whose premises are A 1, A 2,, A n whose conclusion is B Then A 1, A 2,, A n B if and only if A 1 A 2 A n B (logical implication) logical implication: if A 1 A 2 A n B is tautology (always true) The premises is said to entail the conclusion If in every model in which all the premises are true, the conclusion is also true 10

Entailment and Logical Implication A 1, A 2,, A n B A 1 A 2 A n B A 1 A 2 A n B is a tautology (logical implication) If all the premises are true, then the conclusion must be true T T T T T T T F F X X T 11

Sound Argument and Fallacy A sound argument A 1, A 2,, A n B If the premises entails the conclusion A fallacy A 1, A 2,, A n B If the premises does not entail the conclusion 12

Modal Accounts Modal accounts of logical consequence are variations on the following basic idea: Γ A is true if and only if it is necessary that if all of the elements of Γ are true, then A is true. Alternatively : Γ A is true if and only if it is impossible for all of the elements of Γ to be true and A false. Such accounts are called "modal" because they appeal to the modal notions of logical necessity and logical possibility. 'It is necessary that' is often expressed as a universal quantifier over possible worlds, so that the accounts above translate as: Γ A is true if and only if there is no possible world at which all of the elements of Γ are true and A is false (untrue). https://en.wikipedia.org/wiki/syntax_(logic)#syntactic_consequence_within_a_formal_system 13

Valid Argument Criteria If all the premises are true, then the conclusion must be true. the truth of the conclusion is guaranteed if all the premises are true It is impossible to have a false conclusion if all the premises are true The premises of a valid argument entail the conclusion. http://www.kslinker.com/valid-and-invalid-arguments.html 14

Valid Argument Examples If John makes this field goal, then the U of A will win. John makes the field goal. Therefore the U of A wins Modus Ponens If the patient has malaria, then a blood test will indicate that his blood harbors at least one of these parasites: P. falciparum, P. vivax, P. ovale and P. malaria Blood test indicate that the patient harbors none of these parasites Therefore the patient does not have malaria. Modus Tollens Either The Patriots or the Philadelphia Eagles will win the Superbowl The Patriots lost Therefore The Eagles won Disjunctive Syllogism (Process of Elimination) If John gets a raise, then he will buy a house. If John buys a house, he will run for a position on the neighborhood council. Therefore, if John gets a raise, he will run for a position on the neighborhood council Hypothetical Syllogism If P then Q P Therefore Q If P then Q Not Q Therefore Not P Either P or Q Not P Therefore Q If P then Q If Q then R Therefore If P then R http://www.kslinker.com/valid-and-invalid-arguments.html 15

Sound An argument is sound if it is valid and all the premises are actually true. for an argument to be sound, two conditions must be meet: 1) the argument must be valid, and 2) the argument must actually have all true premises. What can be said about the conclusion to a sound argument? Since the argument is sound, then it is both valid and actually has all true premises, so the conclusion must be true, by definition of validity. an example of a sound argument: If a number is greater than 7 it is greater than 3. 8 is greater than 7. Therefore 8 is greater than 3. http://www.iep.utm.edu/val-snd/ 16

Validity and Soundness (1) An argument form is valid if and only if whenever the premises are all true, then conclusion is true. An argument is valid if its argument form is valid. If If premises : true false false true then conclusion : true true false then never false An argument is sound if and only if it is valid and all its premises are true. Always premises : true therefore conclusion : true http://math.stackexchange.com/questions/281208/what-is-the-difference-between-a-sound-argument-and-a-valid-argument 17

Validity and Soundness (2) A deductive argument is said to be valid if and only if it takes a form that makes it impossible for the premises to be true and the conclusion nevertheless to be false. If true then never false Otherwise, a deductive argument is said to be invalid. for the premises to be true and the conclusion is false. A deductive argument is sound if and only if it is both valid, and all of its premises are actually true. Otherwise, a deductive argument is unsound. Always premises : true therefore conclusion : true http://www.iep.utm.edu/val-snd/ 18

Validity and Soundness (3) A B A B A (A B) A (A B) B T T T T T T F F F T F T T F T F F T F T valid If premises : true then never conclusion : false A B A B A (A B) A (A B) B T T T T T T F F F T F T T F T F F T F T sound Always premises : true therefore conclusion : true http://www.iep.utm.edu/val-snd/ 19

Validity and Soundness (4) the author of a deductive argument always intends that the premises provide the sort of justification for the conclusion whereby if the premises are true, the conclusion is guaranteed to be true as well. if the author's process of reasoning is a good one, if the premises actually do provide this sort of justification for the conclusion, then the argument is valid. an argument is valid if the truth of the premises logically guarantees the truth of the conclusion. it is impossible for the premises to be true and the conclusion to nevertheless be false: http://www.iep.utm.edu/val-snd/ 20

Entailment Examples A, B A A, B A A B A A, (A B) B A, (A B) B A (A B) B 21

Entailment Examples and Truth Tables A B A B A B A T T T T T F F T F T F T F F F T A B A The premises is said to entail the conclusion If in every model in which all the premises are true, the conclusion is also true any of the premises are false, still premises conclusion is true (F T and F F always T) Tautology A B A B A (A B) A (A B) B T T T T T T F F F T F T T F T F F T F T A (A B) B 22

Deduction System Propositional logic Given propositions (statements) : T or F Deductive inference of T or F of other propositions Deductive Inference A process by which the truth of the conclusion is shown to necessarily follow from the truth of the premises A B A B A (A B) A (A B) B T T T T T T F F F T F T T F T F F T F T 23 A (A B) B Deductive Inference Entailment (logical implication)

Deduction System Deduction System : a set of inference rules Inference rules are used to reason deductively Sound Deduction System : if it derives only sound arguments Each of the inference rules is sound A sound argument: If the premises entails the conclusion A fallacy: If the premises does not entail the conclusion Complete Deduction System : It can drive every sound argument Must contain deduction theorem rule 24

Inference Rules Combination Rule A, B A B Simplification Rule A B A Addition Rule A A B Modus Pones A, A B B Modus Tolens B, A B A Hypothetical Syllogism A B, B C A C Disjunctive Syllogism A B, A B Rule of Cases A B, A B B Equivalence Elimination A B A B Equivalence Introduction A B, B A A B Inconsistency Rule A, A B AND Commutivity Rule A B B A OR Commutivity Rule A B B A Deduction Theorem If A 1, A 2,, A n,b C then A 1, A 2,, A n, B C 25

Deduction Theorem A 1, A 2,, A n, B C A 1, A 2,, A n, B C The premises is said to entail the conclusion If in every model in which all the premises are true, the conclusion is also true A 1 A 2 A n B C A 1 A 2 A n B C A 1, A 2,, A n B if and only if A 1 A 2 A n B (A 1 A 2 A n B is a tautology) A,B C B C A B C B C If A is T, then B C is always T (for the tautology) Even if A,B is T, then B C is always T And if A,B is T, then B is T By modus ponens in the RHS, A,B is T, then C is true 26

Deduction Theorem Δ,A B iff Δ A B where Δ : a set of formulas, if the formula B is deducible from a set Δ of assumptions, together with the assumption A, then the formula A B is deducible from Δ alone. Δ,A B Δ A B Conversely, if we can deduce A B from Δ, and if in addition we assume A, then B can be deduced. Δ A B Δ,A B http://planetmath.org/deductiontheorem 27

Deduction Theorem The deduction theorem conforms with our intuitive understanding of how mathematical proofs work: if we want to prove the statement A implies B, then by assuming A, if we can prove B, we have established A implies B. http://planetmath.org/deductiontheorem 28

Deduction Theorem The converse statement of the deduction theorem turns out to be a trivial consequence of modus ponens: A, A B B if Δ A B, then certainly Δ,A A B Since Δ,A A, we get, via modus ponens, Δ,A B as a result. Δ,A A Δ,A A B Δ,A B http://planetmath.org/deductiontheorem 29

Deduction Theorem Deduction theorem is needed to derive arguments that has no premises An argument without premises is simply a tautology A A no premises appear before the symbol an argument without premises Tautology if it is sound 30

Argument Example 1. Q 2. P Q 3. P R S 4. R T 5. U 6. U T 7. P Q, P Q P (1, 2) 8. R S P R S, P R S (3, 7) 9. T U, U T T (5, 6) 10. R T, R T R (9, 4) 11. S R S, R S (8, 10) 31

Argument without premises A A A assume A X X Y A A A A A A A A A discharge A A assume A A A X X Y A A X Y Y X A A A A A A A A A A A discharge A X Y, X Y Y A A A, A A A A A A A 32

Argument without premises A A assume A A A A A A A A A A A A discharge A A A assume A A A A A A A A A A A A A A A A A discharge A A A A A 33

To prove a sound argument Prove using truth tables Whether an argument is sound or fallacy 1. time complexity (2^n) 2. not the way which humans do Prove using inference rules To reason deductively 34

Logical Equivalences,,,, 35

References [1] en.wikipedia.org [2] en.wiktionary.org [3] U. Endriss, Lecture Notes : Introduction to Prolog Programming [4] http://www.learnprolognow.org/ Learn Prolog Now! [5] http://www.csupomona.edu/~jrfisher/www/prolog_tutorial [6] www.cse.unsw.edu.au/~billw/cs9414/notes/prolog/intro.html [7] www.cse.unsw.edu.au/~billw/dictionaries/prolog/negation.html [8] http://ilppp.cs.lth.se/, P. Nugues,` An Intro to Lang Processing with Perl and Prolog 36