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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Advanced Topics in LP and FP

Learning Goals of CS245 Logic and Computation

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

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

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

15414/614 Optional Lecture 1: Propositional Logic

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

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

COMP219: Artificial Intelligence. Lecture 19: Logic for KR

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

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

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

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

COMP219: Artificial Intelligence. Lecture 19: Logic for KR

Knowledge Representation. Propositional logic

Artificial Intelligence Knowledge Representation I

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

CSC Discrete Math I, Spring Propositional Logic

Inference Methods In Propositional Logic

THE LOGIC OF COMPOUND STATEMENTS

Logic: Propositional Logic (Part I)

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

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

Propositional Logic: Review

Part Two: The Basic Components of the SOFL Specification Language

MAI0203 Lecture 7: Inference and Predicate Calculus

Inference Methods In Propositional Logic

HW1 graded review form? HW2 released CSE 20 DISCRETE MATH. Fall

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

Formal Logic. Critical Thinking

Logical reasoning - Can we formalise our thought processes?

Proposition/Statement. Boolean Logic. Boolean variables. Logical operators: And. Logical operators: Not 9/3/13. Introduction to Logical Operators

Natural Deduction for Propositional Logic

13.3 Truth Tables for the Conditional and the Biconditional

CT Rectangular Function Pairs (5B)

Propositional Logic: Models and Proofs

Discrete Mathematical Structures. Chapter 1 The Foundation: Logic

Logical Agents. September 14, 2004

DFT Frequency (9A) Each Row of the DFT Matrix. Young Won Lim 7/31/10

PHI Propositional Logic Lecture 2. Truth Tables

COMP9414: Artificial Intelligence Propositional Logic: Automated Reasoning

Artificial Intelligence Knowledge Representation I

02 Propositional Logic

Symbolic Logic 3. For an inference to be deductively valid it is impossible for the conclusion to be false if the premises are true.

Higher Order ODE's (3A) Young Won Lim 7/7/14

Proofs Propositions and Calculuses

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

cse 311: foundations of computing Fall 2015 Lecture 6: Predicate Logic, Logical Inference

Maryam Al-Towailb (KSU) Discrete Mathematics and Its Applications Math. Rules Math. of1101 Inference 1 / 13

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

Knowledge Representation. Propositional logic.

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

Computation and Logic Definitions

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 Intro to Logic for Computer Scientists. Lecture 6

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

Language of Propositional Logic

Definition 2. Conjunction of p and q

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

PHIL 50 - Introduction to Logic

Artificial Intelligence

PL: Truth Trees. Handout Truth Trees: The Setup

Higher Order ODE's (3A) Young Won Lim 12/27/15

UNIT-I: Propositional Logic

A Little Deductive Logic

The Logic of Compound Statements cont.

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

A statement is a sentence that is definitely either true or false but not both.

Phil Introductory Formal Logic

Logic: Propositional Logic Truth Tables

1.1 Language and Logic

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

Knowledge representation DATA INFORMATION KNOWLEDGE WISDOM. Figure Relation ship between data, information knowledge and wisdom.

Transcription:

Propositional Logic (2A) Young W. Lim

Copyright (c) 2014 2015 Young W. Lim. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU ree Documentation License, Version 1.2 or any later version published by the ree Software oundation; with no Invariant Sections, no ront-cover exts, and no Back-Cover exts. A copy of the license is included in the section entitled "GNU ree Documentation License". Please send corrections (or suggestions) to youngwlim@hotmail.com. his document was produced by using LibreOffice/OpenOffice.

ormal Language ormal Language : a set of words / expressions using alphabet and rules Well-formed strings of symbols Alphabet : he set of symbols Rules : he syntax of the language Propositional Logic (2B) 3

Propositional Logic Consists of a formal language and semantics hat give meaning to the well-formed strings (propositions) Propositional Logic (2B) 4

Alphabet of Propositional Logic 1. the English alphabet letters 2. the logical value and 3. special symbols NO AND OR if-then if and only if ( ) grouping Propositional Logic (2B) 5

Rules of Propositional Logic 1. Atomic Propositions All letters, all indexed letters, & 2. Compound Propositions If A and B are propositions, A, A B, A B, A B, A B, ( A ) are all propositions Italic fonts for propositions : Denote variable whose value may be atomic or compound propositions. Propositional Logic (2B) 6

Semantics of Propositional Logic he semantics gives meaning to the propositions he semantics consists of rules for assigning either or to every proposition (truth value) Rules: 1. he logical value true the value he logical value false the value 2. Atomic proposition either or 3. the truth tables of connectives 4. (a) the grouping () (b) the precedence order (,,,, ) (c) left to right Propositional Logic (2B) 7

autology and Logical Implication autology: a proposition that is true in all possible world Contradiction: A proposition that is false in all possible world Logically Equivalent : If A B is a tautology, A and B are logically equivalent A Propositional Logic (2B) 8

Some Logical Equivalences from en.wikipedia.org Propositional Logic (2B) 9

Logical Arguments An argument consists of A set of propositions (premises) and A proposition (conclusion) he premises entail the conclusion If in every model in which all the premises are true, the conclusion is also true he argument is sound: If the premises entail the conclusion Otherwise, the argument is a fallacy Propositional Logic (2B) 10

Derivation Systems o prove whether an argument is sound or a fallacy Using truth tables is too difficult n premises 2^n rows in the truth table Exponential time complexity Not like human Using inference rules Propositional Logic (2B) 11

Inference Rules from en.wikipedia.org Propositional Logic (2B) 12

Inference Rules from en.wikipedia.org Propositional Logic (2B) 13

Sound and Complete Deduction system A set of inference rules A deduction system is sound If it only derives sound arguments A deduction system is complete If it can derive every sound argument Propositional Logic (2B) 14

Implication P Q If P, then Q. P implies Q. P only if Q. Q whenever P. P is sufficient for Q. Q is necessary P. P Q http://en.wikipedia.org/wiki/ P only if Q not P if not Q Implication (2A) 15

Necessity A true necessary condition in a conditional statement makes the statement true. a consequent N is a necessary condition for an antecedent S, in the conditional statement, "N if S ", "N is implied by S ", or N S. "N is weaker than S " or "S cannot occur without N ". or example, it is necessary to be Named, to be called "Socrates". S Socrates N Name necessary condition of S S N necessary condition of S http://en.wikipedia.org/wiki/ S only if N not S if not N Implication (2A) 16

Sufficiency A true sufficient condition in a conditional statement ties the statement's truth to its consequent. an antecedent S is a sufficient condition for a consequent N, in the conditional statement, "if S, then N ", "S implies N ", or S N "S is stronger than N " or "S guarantees N ". or example, "Socrates" suffices for a Name. S Socrates sufficient condition of N N Name S N sufficient condition of N http://en.wikipedia.org/wiki/derivative Implication (2A) 17

I / Only I "Madison will eat the fruit if it is an apple." "Only if Madison will eat the fruit, is it an apple;" "Madison will eat the fruit fruit is an apple" his states simply that Madison will eat fruits that are apples. It does not, however, exclude the possibility that Madison might also eat bananas or other types of fruit. All that is known for certain is that she will eat any and all apples that she happens upon. hat the fruit is an apple is a sufficient condition for Madison to eat the fruit. "Madison will eat the fruit only if it is an apple." "If Madison will eat the fruit, then it is an apple" "Madison will eat the fruit fruit is an apple" his states that the only fruit Madison will eat is an apple. It does not, however, exclude the possibility that Madison will refuse an apple if it is made available in contrast with (1), which requires Madison to eat any available apple. In this case, that a given fruit is an apple is a necessary condition for Madison eating it. It is not a sufficient condition since Madison might not eat all the apples she is given. apple eat eat apple http://en.wikipedia.org/wiki/derivative Implication (2A) 18

I "Madison will eat the fruit if and only if it is an apple" "Madison will eat the fruit fruit is an apple" his statement makes it clear that Madison will eat all and only those fruits that are apples. She will not leave any apple uneaten, and she will not eat any other type of fruit. hat a given fruit is an apple is both a necessary and a sufficient condition for Madison to eat the fruit. http://en.wikipedia.org/wiki/derivative Implication (2A) 19

o prove implications by contradiction P Q Assume this is false ( p q) p q Assume P is true and Q is false Derive contradiction P Q http://en.wikipedia.org/wiki/derivative Implication (2A) 20

Indirect Proof contradiction p p q r p q p q r r ( p q) (r r) Implication (2A) 21

Resolution Example p q p r q r Implication (2A) 22

Resolution Example p p q r p q p r ( p q) ( p r) q r Implication (2A) 23

A simple example Case 1: p is false Case 2: p is true p q p r q r q r q q r r http://en.wikipedia.org/wiki/derivative Implication (2A) 24

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 [9] Contemporary Artificial Intelligence, Neapolitan & Jia [10] Discrete Mathematics, Johnsonabaugh Propositional Logic (2B) 25