Propositional Logic Dr. Rogelio Dávila Pérez Profesor-Investigador División de Posgrado Universidad Autónoma Guadalajara

Slides:



Advertisements
Similar presentations
Artificial Intelligence Chapter 13 The Propositional Calculus Biointelligence Lab School of Computer Sci. & Eng. Seoul National University.
Advertisements

Introduction to Theorem Proving
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.
First Order Logic Resolution
Inference and Reasoning. Basic Idea Given a set of statements, does a new statement logically follow from this. For example If an animal has wings and.
Answer Set Programming Overview Dr. Rogelio Dávila Pérez Profesor-Investigador División de Posgrado Universidad Autónoma de Guadalajara
Propositional Logic CMSC 471 Chapter , 7.7 and Chuck Dyer
1 Introduction to Abstract Mathematics Valid AND Invalid Arguments 2.3 Instructor: Hayk Melikya
Deduction In addition to being able to represent facts, or real- world statements, as formulas, we want to be able to manipulate facts, e.g., derive new.
Logic.
Logic Concepts Lecture Module 11.
CS128 – Discrete Mathematics for Computer Science
Computability and Complexity 9-1 Computability and Complexity Andrei Bulatov Logic Reminder (Cnt’d)
TR1413: Discrete Mathematics For Computer Science Lecture 3: Formal approach to propositional logic.
Knowledge Representation I (Propositional Logic) CSE 473.
From Chapter 4 Formal Specification using Z David Lightfoot
Knoweldge Representation & Reasoning
CS 4700: Foundations of Artificial Intelligence
Chapter 3 Propositional Logic
TR1413: Discrete Mathematics For Computer Science Lecture 4: System L.
Proof by Deduction. Deductions and Formal Proofs A deduction is a sequence of logic statements, each of which is known or assumed to be true A formal.
EE1J2 – Discrete Maths Lecture 4 Analysis of arguments Logical consequence Rules of deduction Rules of equivalence Formal proof of arguments See: Anderson,
Discrete Mathematics and its Applications
Adapted from Discrete Math
I NTRO TO L OGIC Dr Shlomo Hershkop March
CSCI 115 Chapter 2 Logic. CSCI 115 §2.1 Propositions and Logical Operations.
Proof Systems KB |- Q iff there is a sequence of wffs D1,..., Dn such that Dn is Q and for each Di in the sequence: a) either Di is in KB or b) Di can.
Logic in Computer Science - Overview Sep 1, 2011 POSTECH 박성우.
Knowledge Representation Use of logic. Artificial agents need Knowledge and reasoning power Can combine GK with current percepts Build up KB incrementally.
Pattern-directed inference systems
Advanced Topics in Propositional Logic Chapter 17 Language, Proof and Logic.
Logical Agents Logic Propositional Logic Summary
Great Theoretical Ideas in Computer Science about AWESOME Some Generating Functions Probability Infinity MATH Some Formal Logic (which is really.
Of 33 lecture 12: propositional logic – part I. of 33 propositions and connectives … two-valued logic – every sentence is either true or false some sentences.
Slide 1 Propositional Definite Clause Logic: Syntax, Semantics and Bottom-up Proofs Jim Little UBC CS 322 – CSP October 20, 2014.
Chapter Three Truth Tables 1. Computing Truth-Values We can use truth tables to determine the truth-value of any compound sentence containing one of.
Hazırlayan DISCRETE COMPUTATIONAL STRUCTURES Propositional Logic PROF. DR. YUSUF OYSAL.
LECTURE LECTURE Propositional Logic Syntax 1 Source: MIT OpenCourseWare.
Propositional Logic. Propositions Any statement that is either True (T) or False (F) is a proposition Propositional variables: a variable that can assume.
1 Introduction to Abstract Mathematics Expressions (Propositional formulas or forms) Instructor: Hayk Melikya
October 17, 2012Introduction to Artificial Intelligence Lecture 11: Knowledge Representation and Reasoning I 1Semantics In propositional logic, we associate.
CS6133 Software Specification and Verification
CS621: Artificial Intelligence Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture–7: (a) Formal System;(b) How to read research papers 3 rd August, 2010.
Artificial Intelligence “Introduction to Formal Logic” Jennifer J. Burg Department of Mathematics and Computer Science.
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.
Logical Agents Chapter 7. Outline Knowledge-based agents Propositional (Boolean) logic Equivalence, validity, satisfiability Inference rules and theorem.
Artificial Intelligence Chapter 13 The Propositional Calculus Biointelligence Lab School of Computer Sci. & Eng. Seoul National University.
Foundations of Discrete Mathematics Chapter 1 By Dr. Dalia M. Gil, Ph.D.
Discrete Mathematical Structures: Theory and Applications 1 Logic: Learning Objectives  Learn about statements (propositions)  Learn how to use logical.
March 3, 2016Introduction to Artificial Intelligence Lecture 12: Knowledge Representation & Reasoning I 1 Back to “Serious” Topics… Knowledge Representation.
Artificial Intelligence Logical Agents Chapter 7.
Chapter 1 Logic and proofs
2. The Logic of Compound Statements Summary
Knowledge Representation and Reasoning
Logic and Critical Thinking
Propositional Logic Resolution
The Propositional Calculus
Lecture 2 Propositional Logic
Information Technology Department
Logics for Data and Knowledge Representation
CS201: Data Structures and Discrete Mathematics I
CS 270 Math Foundations of CS
Back to “Serious” Topics…
CSNB234 ARTIFICIAL INTELLIGENCE
Propositional Logic CMSC 471 Chapter , 7.7 and Chuck Dyer
ece 720 intelligent web: ontology and beyond
CS201: Data Structures and Discrete Mathematics I
Presentation transcript:

Propositional Logic Dr. Rogelio Dávila Pérez Profesor-Investigador División de Posgrado Universidad Autónoma Guadalajara

Propositional Logic History - Logic is the study of reasoning. - Logic became mathematical after the contributions of the British mathematician an philosopher George Bool ( ). His book “ The Laws of Though ”, introduces the meaning of the connectors AND, OR, CONDITIONAL, NOT. - The German philosopher Gottlob Frege ( ) in his book “ Ideography, a Formula language, Modeled upon that of Arithmetic, for Pure Thought ” (1879), introduced the Quantification Logic. - Alfred Tarsky ( ), mathematician and logician, remarked the importance of distinguishing between the object language and the metalanguage. - The object language is the object of study and the metalanguage is the one we use to talk about the object one.

Propositional Logic I. Syntax 1. Vocabulary: The language of propositional logic has an alphabet consisting in: (a) Propositional variables: P i, Q i, R i (i  N) (b) Logical constants:  (c) Logical connectors: , , ,  (d) Auxiliary symbols: “ ( “, “ ) ”, “, ” 2. Well-formed formulas (wffs) (a) If  is a propositional variable, then  is a wff. (b)  is called contradiction an is a wff. (c) If  and  are wffs, then ,  , ,    are also wffs. (d) Nothing else is a wff.

Propositional Logic II. Rules of Inference (Natural Deduction [Gentsen, 60s]) (a) Conjunction Rules  -Intro  -Elim              (b) Conditional Rules  -Intro  -Elim (modus ponens rule)     …     

(c) Contradiction Rules  -Intro  -Elim        (d) Negation Rules  -Intro  -Elim (Double negation rule)     …     Propositional Logic

(e) Disjunction Rules  -Intro  -Elim            Propositional Logic

An axiomatic system for propositional logic 1. Axiom schemata (A1) (X  (Y  X)) (A2) ((X  (Y  Z))  ((X  Y)  (X  Z))) (A3) ((  X   Y)  ((  X  Y)  X)) 2. Inference rules (MP) If X and (X  Y) are both theorems then Y is a theorem. 3. We can use the equivalences              (     ) Propositional Logic

A traditional way of characterizing validity and logical consequence is in terms of derivation, or proof, and inference rules. This may be accomplished either by an axiomatic system or, through a natural deduction system. Some definitions: Def. An axiom is a statement considered as valid. Def. An inference rule is a machinery for producing new valid statements from previously obtained ones. Def. An axiomatic system consists of a set of axioms (or axioms schemata) and a set of inference rules. Def. In an axiomatic system, valid statements produced by the system are called theorems.

Def. A derivation or proof of a theorem is the ordered list of axioms, theorems and statements produced by the application of inference rules on previously obtained theorems. Def. For an axiomatic system, derivability or provability, of a formula  is written:  (  is a theorem) Def. If  is a set of formulas, the expression   means that  is derivable from . In this case the formulas in  are considered as hypotheses. Def. Two formulas  and  are logically equivalent (    ),if each of them is provable from the other. Propositional Logic

Disjunctive Syllogism p v q ~p q Resolution rule [Robinson, 1965] p v q 1 v q 2 v … v q n ~p v r 1 v r 2 v … v r m q 1 v … v q n v r 1 v … v r m Propositional Logic

Propositional Logic (semantics) The purpose of semantics is to assign meaning to all the well- formed formulas in the language. Definition. An interpretation of a formula of PL consists in assigning a truth value (0-false, 1-true), to each propositional symbol in the formula. The logical connectors are said to be truth-functional as their meaning is a function of the meanings of its constituents. It is common to express the meaning of logical connectors through a truth-table.

Propositional Logic (semantics)   ¬¬  Truth tables

Propositional Logic (semantics) Definition. An interpretation that makes a formula true (=1) is a model of that formula. Definition. A formula is consistent, sound or satisfiable, if it has a model, otherwise it is inconsistent or unsatisfiable. Definition. A formula is valid when every interpretation of it is a model. This formula is called a tautology. Definition. A formula is contingent when it is not valid, but consistent. Some relations between the concepts: If  is valid then ¬  is inconsistent If  is consistent then ¬  is not valid.

Definition. Two wffs  and  are equivalent,   , if both of them yield the same true values for any interpretation. Propositional logical equivalences (also called logical identities): (a)       v  (b) Contraposition Law:          (c) Distributive Laws: (i)  v (    )  (  v  )  (  v  ) (ii)   (  v  )  (    ) v (    ) (e) DeMorgan ’ s Laws: (i)  (  v  )       (ii)  (    )    v   Propositional Logic (semantics)

Definition. An interpretation function or interpretation is a function that assigns a truth value to each propositional variable in the formula. Definition. A mapping v: PROP  {0,1} is a interpretation if: v(    ) = min(v(  ), v(  )) v(    ) = max(v(  ), v(  )) v(    ) = 0 iff v(  )=1 and v(  )=0 v(    ) = 1 iff v(  )=v(  ) v(  ) = 1 - v(  ) Propositional Logic (semantics)

Definition. (i)  is a tautology if v(  ) = 1 for all interpretations v, (ii)  stands for ‘ p is a tautology ’ Definition. A set of wffs  is consistent, sound, or satisfiable, if all their elements admit the same model. Otherwise it is said to be inconsistent. Definition. Let  be a set of wffs and  a wff, we say that  entails , or that  is a logical consequence of ,  , iff every model of  is a model of . Definition.  is a logical consequence of , iff    is a tautology. Propositional Logic

Theorem. For any set  of formulas and any formulas  and , if   {  }  then    . This fact is known as the deductive theorem. The deductive theorem for first order logic was first proved by the French mathematician Jacques Hebrand ( ). The converse of the deduction theorem is also true. Propositional Logic

Soundness and Completeness There are two important definitions that connect inference with entailment: 1. If, for any set of wffs, , and wff ,   implies that  , we say that the set of inference rules, , is sound. 1. If, for any set of wffs, , and wff , it is the case that whenever  , there exists a proof of  from ,  , using the set of inference rules, , we say that  is complete. The completeness of a formal system of propositional logic was first proved by Emil Post in Propositional Logic

PSAT Problem The problem of finding at least one model of the set of formulas  that is also a model of the formula , is known as the propositional satisfiability (PSAT) problem. An exhaustive procedure for solving the PSAT problem is to try systematically all of the ways to assign True and False to the atoms in the formula, checking the assignment to see if all formulas have value True under that assignment. If there are n atoms in the formula, there are 2 n different assignments, so for large n, the exhaustive procedure is computationally infeasible, thus the general PSAT problem is NP-complete. Propositional Logic