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

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

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

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

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

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

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

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

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

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

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

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

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

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

COMP219: Artificial Intelligence. Lecture 19: Logic for KR

COMP219: Artificial Intelligence. Lecture 19: Logic for KR

22c:145 Artificial Intelligence

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

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

Advanced Topics in LP and FP

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

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

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

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

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

The Logic of Compound Statements cont.

Logic for Computer Science - Week 4 Natural Deduction

FORMAL PROOFS DONU ARAPURA

Logic: Propositional Logic (Part I)

Section 1.2: Propositional Logic

Discrete Structures of Computer Science Propositional Logic III Rules of Inference

Propositional Logic: Review

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

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.

PROPOSITIONAL CALCULUS

Introduction to Metalogic

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

Artificial Intelligence. Propositional logic

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

Natural Deduction for Propositional Logic

Language of Propositional Logic

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

PHIL 50 - Introduction to Logic

First Order Logic: Syntax and Semantics

Formal (natural) deduction in propositional logic

Learning Goals of CS245 Logic and Computation

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

COMP Intro to Logic for Computer Scientists. Lecture 6

Overview of Today s Lecture

02 Propositional Logic

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

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

COMP219: Artificial Intelligence. Lecture 20: Propositional Reasoning

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

MAI0203 Lecture 7: Inference and Predicate Calculus

1.1 Statements and Compound Statements

Manual of Logical Style

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

Propositional Logic Review

Inference in Propositional Logic

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

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

CSE 20 DISCRETE MATH. Fall

Supplementary Logic Notes CSE 321 Winter 2009

Artificial Intelligence Knowledge Representation I

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

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

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

A Quick Lesson on Negation

PHIL12A Section answers, 28 Feb 2011

Propositional Logic. Spring Propositional Logic Spring / 32

Propositional Logic: Syntax

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

CSE 20 DISCRETE MATH. Winter

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

Logic and Inferences

Manual of Logical Style (fresh version 2018)

Rules Build Arguments Rules Building Arguments

Logic - recap. So far, we have seen that: Logic is a language which can be used to describe:

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

Artificial Intelligence Knowledge Representation I

THE LOGIC OF COMPOUND STATEMENTS

Intelligent Systems. Propositional Logic. Dieter Fensel and Dumitru Roman. Copyright 2008 STI INNSBRUCK

COMP9414: Artificial Intelligence Propositional Logic: Automated Reasoning

First-Degree Entailment

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

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

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

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 5

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 6

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 7

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 8

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 9

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 10

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 11

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 : false http://math.stackexchange.com/questions/281208/what-is-the-difference-between-a-sound-argument-and-a-valid-argument 12

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 : false http://www.iep.utm.edu/val-snd/ 13

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/ 14

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/ 15

Entailment Examples A, B A A, B A A B A A, (A B) B A, (A B) B A (A B) B 16

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 17

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 A (A B) B Deductive Inference Entailment (logical implication) 18

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 19

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 20

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 21

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 22

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 23

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 24

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 25

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) 26

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 27

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 28

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 29

Logical Equivalences,,,, 30

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 31