Propositional Logic (a.k.a. Sentential Logic)

Slides:



Advertisements
Similar presentations
Brief Introduction to Logic. Outline Historical View Propositional Logic : Syntax Propositional Logic : Semantics Satisfiability Natural Deduction : Proofs.
Advertisements

1 Logic Logic in general is a subfield of philosophy and its development is credited to ancient Greeks. Symbolic or mathematical logic is used in AI. In.
Models and Propositional Logic In propositional logic, a model in general simply fixes the truth value – true or false – for every proposition symbol.
Computability and Complexity 9-1 Computability and Complexity Andrei Bulatov Logic Reminder (Cnt’d)
Computability and Complexity 8-1 Computability and Complexity Andrei Bulatov Logic Reminder.
Brief Introduction to Logic. Outline Historical View Propositional Logic : Syntax Propositional Logic : Semantics Satisfiability Natural Deduction : Proofs.
1 CA 208 Logic Ex3 Define logical entailment  in terms of material implication  Define logical consequence |= (here the semantic consequence relation.
Sentential Logic(SL) 1.Syntax: The language of SL / Symbolize 2.Semantic: a sentence / compare two sentences / compare a set of sentences 3.DDerivation.
Let remember from the previous lesson what is Knowledge representation
CS 4700: Foundations of Artificial Intelligence
Propositional Calculus CS 680: Formal Methods in Verification Computer Systems Jeremy Johnson.
Adapted from Discrete Math
Intro to Discrete Structures
Artificial Intelligence: Definition “... the branch of computer science that is concerned with the automation of intelligent behavior.” (Luger, 2009) “The.
Copyright © Curt Hill Truth Tables A way to show Boolean Operations.
Intro. to Logic CS402 Fall Propositional Calculus - Semantics (2/3) Propositional Calculus - Semantics (2/3) Moonzoo Kim CS Division of EECS Dept.
110/19/2015CS360 AI & Robotics AI Application Areas  Neural Networks and Genetic Algorithms  These model the structure of neurons in the brain  Humans.
Pattern-directed inference systems
Logic Disjunction A disjunction is a compound statement formed by combining two simple sentences using the word “OR”. A disjunction is true when at.
Copyright © Curt Hill Mathematical Logic An Introduction.
HW #1. Due Mar 22 Midnight Verify the following program using SAT solver 1. Translate the program into a SSA form 2. Create a Boolean formula from.
LDK R Logics for Data and Knowledge Representation PL of Classes.
Bertram Ludäscher Department of Computer Science & Engineering University of California, San Diego CSE-291: Ontologies in Data Integration.
Logical Agents Chapter 7. Outline Knowledge-based agents Logic in general Propositional (Boolean) logic Equivalence, validity, satisfiability.
CS6133 Software Specification and Verification
ARTIFICIAL INTELLIGENCE [INTELLIGENT AGENTS PARADIGM] Professor Janis Grundspenkis Riga Technical University Faculty of Computer Science and Information.
CS2351 Artificial Intelligence Bhaskar.V Class Notes on Knowledge Representation - Logical Agents.
LDK R Logics for Data and Knowledge Representation Propositional Logic Originally by Alessandro Agostini and Fausto Giunchiglia Modified by Fausto Giunchiglia,
Propositional Logic Rather than jumping right into FOL, we begin with propositional logic A logic involves: §Language (with a syntax) §Semantics §Proof.
ARTIFICIAL INTELLIGENCE Lecture 2 Propositional Calculus.
1 Section 6.2 Propositional Calculus Propositional calculus is the language of propositions (statements that are true or false). We represent propositions.
Tautology. In logic, a tautology (from the Greek word ταυτολογία) is a formula that is true in every possible interpretation.logic Greek formulainterpretation.
Boolean Expression Evaluation CS 270: Math Foundations of CS Jeremy Johnson.
March 3, 2016Introduction to Artificial Intelligence Lecture 12: Knowledge Representation & Reasoning I 1 Back to “Serious” Topics… Knowledge Representation.
CS.462 Artificial Intelligence SOMCHAI THANGSATHITYANGKUL Lecture 04 : Logic.
Logical Agents. Inference : Example 1 How many variables? 3 variables A,B,C How many models? 2 3 = 8 models.
 Conjunctive Normal Form: A logic form must satisfy one of the following conditions 1) It must be a single variable (A) 2) It must be the negation of.
Simple Logic.
CENG 424-Logic for CS Introduction Based on the Lecture Notes of Konstantin Korovin, Valentin Goranko, Russel and Norvig, and Michael Genesereth.
Chapter 7. Propositional and Predicate Logic
Propositional Logic Russell and Norvig: Chapter 6 Chapter 7, Sections 7.1—7.4 CS121 – Winter 2003.
Operators and Expressions
Propositional Calculus: Boolean Functions and Expressions
Knowledge Representation and Reasoning
The Propositional Calculus
ARTIFICIAL INTELLIGENCE
Logics for Data and Knowledge Representation
EA C461 – Artificial Intelligence Logical Agent
Propositional Calculus: Boolean Functions and Expressions
Semantics In propositional logic, we associate atoms with propositions about the world. We specify the semantics of our logic, giving it a “meaning”. Such.
The Foundations: Logic and Proofs
Logic – Bell Ringer.
Propositional Logic.
Chapter 8 Logic Topics
Logics for Data and Knowledge Representation
Propositional Calculus: Boolean Algebra and Simplification
Elementary Metamathematics
Logics for Data and Knowledge Representation
Logics for Data and Knowledge Representation
Logics for Data and Knowledge Representation
Introduction to the Boolean Satisfiability Problem
Introduction to the Boolean Satisfiability Problem
Back to “Serious” Topics…
PROPOSITIONAL LOGIC - SYNTAX-
Logics for Data and Knowledge Representation
Propositional Logic Computational Logic Lecture 2
Chapter 7. Propositional and Predicate Logic
Logic Logic is a discipline that studies the principles and methods used to construct valid arguments. An argument is a related sequence of statements.
Basic Logic Operations
Propositional Logic Computational Logic Lecture 2
Presentation transcript:

Propositional Logic (a.k.a. Sentential Logic) Intro. to Logic CS402

Boolean Operators Propositional logic (sentence logic) dealt quite satisfactorily with sentences using conjunctive words (접속사) like not, and, or, and if … then. A proposition (p, q, r, …) in a propositional calculus can get a boolean value (i.e. true or false) Propositional formula can be built by combining smaller formula with boolean operators such as :, /\, \/ How many different unary boolean operators exist? How many different binary boolean operators exist? p o1 o2 o3 o4 … T F Syntax v.s. Semantics separation Semantics domain Intro. to Logic CS402

Binary Boolean Operators Intro. to Logic CS402

Boolean Operators op name symbol o2 disjunction \/ o15 nor # o8 conjunction /\ o9 nand " o5 implication → o12 o3 reverse implication ← o14 o7 equivalence ↔ o10 exclusive or © Intro. to Logic CS402

Ambiguous representation of formulas Intro. to Logic CS402

Other ways to remove ambiguity Use parenthesis Define precedence and associativity The precedence order : > /\ > " > \/ > # > ! > $ Operators are assumed to associate to the right a ! b ! c means (a ! (b ! c)) a\/ b\/ c means (a\/(b\/c)) Some textbook considers /\, \/, $ as associate to the left. So be careful. Intro. to Logic CS402

Assignment/ Interpretation º x1 x2 x3 x4 f º1 T º2 F º3 º4 º5 º6 º7 º8 º9 º10 º11 º12 º13 º14 º15 º16 f = (x1 ∨ :x2 ∨ x3)  (x2 ∨ :x1 ∨ x4) Assignment º1 to º5, º7, º9, º9, º10, and º13 to º16 which evaluates f as true are called as model or solution of f Model/ solution

Interpretations Inductive truth value calculation for given formula A Intro. to Logic CS402

Examples Intro. to Logic CS402

Satisfiability v.s. validity Definition 2.24 A propositional formula A is satisfiable iff º(A)=T for some interpretation º. A satisfying interpretation is called a model for A. A is valid, denoted ² A, iff º (A) = T for all interpretation º. A valid propositional formula is also called a tautology. Theorem 2.25 A is valid iff :A is unsatisfiable. A is satisfiable iff :A is falsifiable. Intro. to Logic CS402

Satisfiability v.s. validity Example 2.27 Is (p ! q) ! ( : q ! : p) valid? p q p ! q : q ! : p (p ! q) ! (: q ! : p) T F Example 2.28 p \/ q is satisfiable but not valid Intro. to Logic CS402