Computability and Complexity 8-1 Computability and Complexity Andrei Bulatov Logic Reminder.

Slides:



Advertisements
Similar presentations
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.
Advertisements

Models and Propositional Logic In propositional logic, a model in general simply fixes the truth value – true or false – for every proposition symbol.
Logic.
Section 1.3. More Logical Equivalences Constructing New Logical Equivalences We can show that two expressions are logically equivalent by developing.
© by Kenneth H. Rosen, Discrete Mathematics & its Applications, Sixth Edition, Mc Graw-Hill, 2007 Chapter 1: (Part 2): The Foundations: Logic and Proofs.
L41 Lecture 2: Predicates and Quantifiers.. L42 Agenda Predicates and Quantifiers –Existential Quantifier  –Universal Quantifier 
CSC 685 Logic Review. Logic: Modeling Human Reasoning syllogistic logic Syllogistic Logic (Aristotle). all/some X are/not Y Propositional Logic (Boole).
Outline Recap Knowledge Representation I Textbook: Chapters 6, 7, 9 and 10.
Computability and Complexity 9-1 Computability and Complexity Andrei Bulatov Logic Reminder (Cnt’d)
Propositional Logic. Negation Given a proposition p, negation of p is the ‘not’ of p.
COMMONWEALTH OF AUSTRALIA Copyright Regulations 1969 WARNING This material has been reproduced and communicated to you by or on behalf of Monash University.
Knowledge Representation I (Propositional Logic) CSE 473.
Knoweldge Representation & Reasoning
Discrete Mathematics Math 6A Instructor: M. Welling.
Predicate Calculus.
Adapted from Discrete Math
SAT Solver Math Foundations of Computer Science. 2 Boolean Expressions  A Boolean expression is a Boolean function  Any Boolean function can be written.
Mathematical Structures A collection of objects with operations defined on them and the accompanying properties form a mathematical structure or system.
Pattern-directed inference systems
Logical Agents Logic Propositional Logic Summary
ARTIFICIAL INTELLIGENCE Lecture 3 Predicate Calculus.
LDK R Logics for Data and Knowledge Representation Propositional Logic Originally by Alessandro Agostini and Fausto Giunchiglia Modified by Fausto Giunchiglia,
Propositional Calculus Knowledge based agent Knowledge is contained in agents in the form of sentences in a knowledge representation language stored in.
DISCRETE COMPUTATIONAL STRUCTURES
LDK R Logics for Data and Knowledge Representation Propositional Logic: Reasoning First version by Alessandro Agostini and Fausto Giunchiglia Second version.
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
C. Varela1 Logic Programming (PLP 11) Predicate Calculus, Horn Clauses, Clocksin-Mellish Procedure Carlos Varela Rennselaer Polytechnic Institute November.
For Wednesday Read chapter 9, sections 1-3 Homework: –Chapter 7, exercises 8 and 9.
© Copyright 2008 STI INNSBRUCK Intelligent Systems Propositional Logic.
Nikolaj Bjørner Microsoft Research DTU Winter course January 2 nd 2012 Organized by Flemming Nielson & Hanne Riis Nielson.
1 First order theories (Chapter 1, Sections 1.4 – 1.5) From the slides for the book “Decision procedures” by D.Kroening and O.Strichman.
Planning as Satisfiability (SAT-Plan). SAT-Plan Translate the planning problem into a satisfiability problem for length n of Plan garb 0 (proposition)present.
CS2351 Artificial Intelligence Bhaskar.V Class Notes on Knowledge Representation - Logical Agents.
Symbolic Logic The Following slide were written using materials from the Book: The Following slide were written using materials from the Book: Discrete.
First-Order Logic Semantics Reading: Chapter 8, , FOL Syntax and Semantics read: FOL Knowledge Engineering read: FOL.
Propositional Logic Rather than jumping right into FOL, we begin with propositional logic A logic involves: §Language (with a syntax) §Semantics §Proof.
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.
Section 1.4. Propositional Functions Propositional functions become propositions (and have truth values) when their variables are each replaced by a value.
Propositional Logic. Assignment Write any five rules each from two games which you like by using propositional logic notations.
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.
DISCRETE COMPUTATIONAL STRUCTURES CSE 2353 Fall 2010 Most slides modified from Discrete Mathematical Structures: Theory and Applications by D.S. Malik.
 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.
Logical Agents. Outline Knowledge-based agents Logic in general - models and entailment Propositional (Boolean) logic Equivalence, validity, satisfiability.
Simple Logic.
CENG 424-Logic for CS Introduction Based on the Lecture Notes of Konstantin Korovin, Valentin Goranko, Russel and Norvig, and Michael Genesereth.
Propositional Logic (a.k.a. Sentential Logic)
2. The Logic of Compound Statements Summary
Knowledge Representation and Reasoning
Chapter 1 – Logic and Proof
The Propositional Calculus
ARTIFICIAL INTELLIGENCE
Proposition & Predicates
Semantics In propositional logic, we associate atoms with propositions about the world. We specify the semantics of our logic, giving it a “meaning”. Such.
Lecture 2 Propositional Logic
Chapter 8 Logic Topics
Logics for Data and Knowledge Representation
Propositional Equivalences
Carlos Varela Rensselaer Polytechnic Institute November 10, 2017
Back to “Serious” Topics…
Computer Security: Art and Science, 2nd Edition
PROPOSITIONAL LOGIC - SYNTAX-
Logics for Data and Knowledge Representation
Chapter 1: Propositional and First-Order 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.
Carlos Varela Rennselaer Polytechnic Institute August 30, 2007
Propositional Satisfiability
Presentation transcript:

Computability and Complexity 8-1 Computability and Complexity Andrei Bulatov Logic Reminder

Computability and Complexity 8-2 Propositional Formulas A propositional formula is an expression built from variables parenthesis (, ) logical connectives -  conjunction “and” -  disjunction “or” -  negation “not” -  implication “if … then …” Examples:

Computability and Complexity 8-3 Propositional Formulas Semantics A truth assignment is an assignment of variables in a formula  with truth values 0 and 1 (or “F” and “T”, or “FALSE” and “TRUTH”) Truth assignment T satisfies , written T   : if  is a variable X, then T   if and only if T(X)=1 if  =¬  ’ then T   if and only if T   ’ if then T   if and only if and if then T   if and only if or Examples: T(X)=1, T(Y)=0, T(Z)=0

Computability and Complexity 8-4 Types of Propositional Formulas A formula  is said to be valid if T   for any truth assignment T (tautology) A formula  is said to be satisfiable if T   for some truth assignment T A formula  is said to be unsatisfiable if T   for no truth assignment T valid s a t i s f i a b l e unsatisfiable Formulas  and  are said to be equivalent, , if they have the same satisfying assignments

Computability and Complexity 8-5 Main Tautologies

Computability and Complexity 8-6 Main Equivalences

Computability and Complexity 8-7 Conjunctive Normal Form A literal is a variable or its negation, X or ¬X A clause is a disjunction of literals A Conjunctive Normal Form (CNF) is a conjunction of clauses Examples: Theorem Every propositional formula is equivalent to a CNF.

Computability and Complexity 8-8 Predicates and Quantifiers A predicate on a set A is a function A  A  …  A  {0,1} Informally, a predicate expresses some property of its argument Examples: P(X,Y) : X  Y Q(X,Y,Z): Z is in between X and Y, that is X < Z < Y or Y < Z < X Quantifiers: if a set A is fixed  X means “for every X  A ”  X means “there exists X  A ” A function is a function A  A  …  A  A Examples: f(X,Y) = X + Y g(X,Y,Z) = X · log(Y + Z²) h(X) = 3X + X²

Computability and Complexity 8-9 First Order Syntax A vocabulary is a collection of predicate and function symbols, each of which is assigned a non-negative number, the arity Example (Number theory): Predicate symbols: =(X,Y), i.e X = Y ; <(X,Y), i.e. X < Y Function symbols: +(X,Y), i.e. X + Y;  (X,Y), i.e. X  Y; ^(X,Y), i.e.  (X), i.e. X Example (Graph theory): Predicate symbols: =(X,Y), i.e X = Y ; E(X,Y), i.e. X is connected to Y Function symbols: no

Computability and Complexity 8-10 A term is an expression built from variables and function symbols Examples:  (+(X,Y),+(X,Z)) (X + Y)  (X + Z) We denote 1=  (0), 2 =  (  (0)), … An atomic formula is a predicate symbol followed by a list of terms in parenthesis; the number of terms in the list must match the arity of the predicate symbol =(+(^(X,T),^(Y,T)),^(Z,T)) Examples:

Computability and Complexity 8-11 A first order formula is defined as follows: an atomic formula is a formula if  and  are formulas, then (  ) is a formula if  and  are formulas, then (  ) is a formula if  and  are formulas, then (  ) is a formula if  is a formula, then (  ) is a formula if  is a formula, then (  X  ) is a formula if  is a formula, then (  X  ) is a formula

Computability and Complexity 8-12 Examples

Computability and Complexity 8-13 Free and Bound Variables Any occurrence of X in an expression  X  or  X  is bound Any occurrence which is not bound is free A variable that has a free occurrence is called free A formula without free variables is called a sentence