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

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

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

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

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

Propositional Logic Arguments (5A) Young W. Lim 2/23/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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

COMP219: Artificial Intelligence. Lecture 19: Logic for KR

COMP219: Artificial Intelligence. Lecture 19: Logic for KR

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

First Order Logic: Syntax and Semantics

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

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

Advanced Topics in LP and FP

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

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

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

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

Inference in Propositional Logic

Language of Propositional Logic

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

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

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

22c:145 Artificial Intelligence

Section 1.2: Propositional Logic

Přednáška 12. Důkazové kalkuly Kalkul Hilbertova typu. 11/29/2006 Hilbertův kalkul 1

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

Propositional Logic: Review

MAI0203 Lecture 7: Inference and Predicate Calculus

Artificial Intelligence. Propositional logic

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

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

Natural Deduction for Propositional Logic

Propositional Logic: Syntax

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

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

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

02 Propositional Logic

The Logic of Compound Statements cont.

Deductive Systems. Lecture - 3

Computation and Logic Definitions

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

15414/614 Optional Lecture 1: Propositional Logic

Learning Goals of CS245 Logic and Computation

Propositional Resolution

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

PROPOSITIONAL CALCULUS

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

Introduction to Metalogic

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.

PHIL 50 - Introduction to Logic

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

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

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

Discrete Structures of Computer Science Propositional Logic III Rules of Inference

Marie Duží

Artificial Intelligence Knowledge Representation I

Logic: Propositional Logic (Part I)

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

COMP219: Artificial Intelligence. Lecture 20: Propositional Reasoning

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

CSE 20 DISCRETE MATH. Fall

Logic for Computer Science - Week 4 Natural Deduction

Artificial Intelligence Knowledge Representation I

Logic and Inferences

Propositional Logic: Models and Proofs

CSE 20 DISCRETE MATH. Winter

Formal (natural) deduction in propositional logic

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

CHAPTER 11. Introduction to Intuitionistic Logic

Propositional Calculus - Hilbert system H Moonzoo Kim CS Division of EECS Dept. KAIST

Supplementary Logic Notes CSE 321 Winter 2009

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

Propositional Logic. Spring Propositional Logic Spring / 32

Matrix Transformation (2A) Young Won Lim 11/10/12

First Order Logic: Syntax and Semantics

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

3 The Semantics of the Propositional Calculus

Agents that reason logically

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

Logical Agents. September 14, 2004

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

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 A 2 A n -------- B 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 mode or 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 6

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 7

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 X 8

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 9

Entailment Examples A, B A A, B A A B A A, (A B) B A, (A B) B A (A B) B 10

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 11

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 12

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 Complete Deduction System : It can drive every sound argument Must contain deduction theorem rule 13

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 14

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 15

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 16

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 17

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 B Δ,A A Δ,A B http://planetmath.org/deductiontheorem 18

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 19

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 8. R S P R S, P R S 9. T U, U T T 10. R T, R T R 11. S R S, R S 20

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 21

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 22

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 23

Double Turnstile 1. semantic consequence: a set of sentences on the left a single sentence on the right to denote that if every sentence on the left is true, the sentence on the right must be true, e.g. Γ φ. This usage is closely related to the single-barred turnstile symbol which denotes syntactic consequence. 2. satisfaction: a model (or truth-structure) on the left a set of sentences on the right to denote that the structure is a model for (or satisfies) the set of sentences, e.g. A Γ. 3. a tautology: φ to say that the expression φ is a semantic consequence of the empty set. https://en.wikipedia.org/wiki/double_turnstile 24

Syntactic Consequences A formula A is a syntactic consequence within some formal system FS of a set Γ of formulas if there is a formal proof in FS of A from the set Γ. Γ FS A Syntactic consequence does not depend on any interpretation of the formal system. A formal proof or derivation is a finite sequence of sentences (called wwf), each of which is an axiom, an assumption, or follows from the preceding sentences in the sequence by a rule of inference. The last sentence in the sequence is a theorem of a formal system. https://en.wikipedia.org/wiki/double_turnstile 25

Semantic Consequences A formula A is a semantic consequence within some formal system FS of a set of statements Γ Γ FS A if and only if there is no model I in which all members of Γ are true and A is false. the set of the interpretations that make all members of Γ true is a subset of the set of the interpretations that make A true. https://en.wikipedia.org/wiki/double_turnstile 26

Logical Consequences (1) A S B there is a derivation, in the proof-system S, from the premise A to the conclusion B. [If context fixes the relevant system S, we suppress the subscript.] A L B on every possible interpretation of the non-logical vocabulary of language L, if A comes out true, so does B. [If context fixes the relevant language L we suppress the subscript.] A B on the truth-functional interpretation, if the atomic wff A happens to be false and the atomic wff B happens to the false too, then A B evaluates as true. But we don't have A B (q isn't true on every valuation which makes p true). A B A B True True True True False False False True True False False True http://math.stackexchange.com/questions/365569/whats-the-difference-between-syntactic-consequence-%e2%8a%a2-and-semanticconsequence-%e2%8a%a8 27

Semantic Consequences (2) Syntactic consequence Γ φ sentence φ is provable from the set of assumptions Γ. Semantic consequence Γ φ sentence φ is true in all models of Γ. Soundness. If [Γ φ] then [Γ φ]. Completeness. If [Γ φ] then [Γ φ]. The propositional logic has a proof system (propositional calculus) Syntactic consequences a semantics (truth-tables) Semantic consequences http://philosophy.stackexchange.com/questions/10785/semantic-vs-syntactic-consequence 28

Semantic Consequences (3) A, A B B if we take the assumptions A and A B as given, by modus ponens we can deduce B. A, A B B in any model for which it is the case that A is true and also A B is true, then, in that model, B is also true. talks about the propostions themselves as syntactic objects, talks about what the propositions mean i.e. semantics. https://www.quora.com/what-are-the-differences-between-semantic-consequence-and-syntactic-consequence-in-logic 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