Exercises: First Order Logics (FOL)

Slides:



Advertisements
Similar presentations
LDK R Logics for Data and Knowledge Representation Exercises: First Order Logics (FOL) Originally by Alessandro Agostini and Fausto Giunchiglia Modified.
Advertisements

UIUC CS 497: Section EA Lecture #2 Reasoning in Artificial Intelligence Professor: Eyal Amir Spring Semester 2004.
Propositional and First Order Reasoning. Terminology Propositional variable: boolean variable (p) Literal: propositional variable or its negation p 
Proofs from SAT Solvers Yeting Ge ACSys NYU Nov
Models and Propositional Logic In propositional logic, a model in general simply fixes the truth value – true or false – for every proposition symbol.
Effective Propositional Reasoning CSE 473 – Autumn 2003.
LDK R Logics for Data and Knowledge Representation Modal Logic Originally by Alessandro Agostini and Fausto Giunchiglia Modified by Fausto Giunchiglia,
Willis Lemasters Grant Conklin. Searching a tree recursively one branch at a time, abandoning any branch which does not satisfy the search constraints.
Search in the semantic domain. Some definitions atomic formula: smallest formula possible (no sub- formulas) literal: atomic formula or negation of an.
Last time Proof-system search ( ` ) Interpretation search ( ² ) Quantifiers Equality Decision procedures Induction Cross-cutting aspectsMain search strategy.
Randomzied Unique k-SAT R. Paturi, P. Pudlak, M.E. Saks and F. Zane An Improved Exponential-time Algorithm for k-SAT Journal of the ACM, Vol 52, No. 3,
Knowledge Representation II (Inference in Propositional Logic) CSE 473 Continued…
Logics for Data and Knowledge Representation Propositional Logic: Reasoning Originally by Alessandro Agostini and Fausto Giunchiglia Modified by Fausto.
LDK R Logics for Data and Knowledge Representation Modeling First version by Alessandro Agostini and Fausto Giunchiglia Second version by Fausto Giunchiglia.
CHAPTERS 7, 8 Oliver Schulte Logical Inference: Through Proof to Truth.
INTRODUCTION TO ARTIFICIAL INTELLIGENCE COS302 MICHAEL L. LITTMAN FALL 2001 Satisfiability.
LDK R Logics for Data and Knowledge Representation Context Logic Originally by Alessandro Agostini and Fausto Giunchiglia Modified by Fausto Giunchiglia,
1.4 Solving Equations ●A variable is a letter which represents an unknown number. Any letter can be used as a variable. ●An algebraic expression contains.
LDK R Logics for Data and Knowledge Representation Propositional Logic Originally by Alessandro Agostini and Fausto Giunchiglia Modified by Fausto Giunchiglia,
LDK R Logics for Data and Knowledge Representation Modal Logic Originally by Alessandro Agostini and Fausto Giunchiglia Modified by Fausto Giunchiglia,
LDK R Logics for Data and Knowledge Representation Propositional Logic: Reasoning First version by Alessandro Agostini and Fausto Giunchiglia Second version.
LDK R Logics for Data and Knowledge Representation Query languages Originally by Alessandro Agostini and Fausto Giunchiglia Modified by Fausto Giunchiglia,
On the Relation between SAT and BDDs for Equivalence Checking Sherief Reda Rolf Drechsler Alex Orailoglu Computer Science & Engineering Dept. University.
A DPLL example C1:(a  b) C2:(  a   b) C3:(a   c) C4:(c  d  e) C5:(d   e) C6:(  d   f) C7:(f  e) C8:(  f   e) false true a a a=false by.
Thinking Mathematically
First-Order Logic and Inductive Logic Programming.
1 The Wumpus Game StenchBreeze Stench Gold Breeze StenchBreeze Start  Breeze.
Logics for Data and Knowledge Representation
LDK R Logics for Data and Knowledge Representation First Order Logics (FOL) Originally by Alessandro Agostini and Fausto Giunchiglia Modified by Fausto.
© Copyright 2008 STI INNSBRUCK Intelligent Systems Propositional Logic.
Automated Reasoning in Propositional Logic Problem Given: KB: a set of sentence  : a sentence Answer: KB  ?
Solving the Logic Satisfiability problem Solving the Logic Satisfiability problem Jesus De Loera.
LDK R Logics for Data and Knowledge Representation Propositional Logic Originally by Alessandro Agostini and Fausto Giunchiglia Modified by Fausto Giunchiglia,
Satisfiability and SAT Solvers CS 270 Math Foundations of CS Jeremy Johnson.
Inference in Propositional Logic (and Intro to SAT) CSE 473.
Automated Reasoning in Propositional Logic Russell and Norvig: Chapters 6 and 9 Chapter 7, Sections 7.5—7.6 CS121 – Winter 2003.
Knowledge Repn. & Reasoning Lecture #9: Propositional Logic UIUC CS 498: Section EA Professor: Eyal Amir Fall Semester 2005.
LDK R Logics for Data and Knowledge Representation Modal Logic: exercises Originally by Alessandro Agostini and Fausto Giunchiglia Modified by Fausto Giunchiglia,
LDK R Logics for Data and Knowledge Representation Modal Logic: exercises Originally by Alessandro Agostini and Fausto Giunchiglia Modified by Fausto Giunchiglia,
Logics for Data and Knowledge Representation
Inference in Propositional Logic (and Intro to SAT)
Logical Inference 1 introduction
Recursive stack-based version of Back-chaining using Propositional Logic
Gábor Kusper University of Linz RISC Austria
Logics for Data and Knowledge Representation
Logics for Data and Knowledge Representation
Logics for Data and Knowledge Representation
First-Order Logic and Inductive Logic Programming
Logics for Data and Knowledge Representation
Logics for Data and Knowledge Representation
Jess Architecture Diagram WORKING MEMORY INFERENCE ENGINE EXECUTION ENGINE PATTERN MATCHER RULE BASE Here you can see how all the parts fit.
Propositional Calculus: Boolean Algebra and Simplification
Logics for Data and Knowledge Representation
Elementary Metamathematics
Logics for Data and Knowledge Representation
Propositional Logic: exercises
Logics for Data and Knowledge Representation
Logics for Data and Knowledge Representation
Logics for Data and Knowledge Representation
Logics for Data and Knowledge Representation
Automated Reasoning in Propositional Logic
Artificial Intelligence
Logics for Data and Knowledge Representation
Logics for Data and Knowledge Representation
Logics for Data and Knowledge Representation
Variables and Equations
Solving Equations with Fractions
Logics for Data and Knowledge Representation
The Satisfiability Problem
Propositional Satisfiability
Presentation transcript:

Exercises: First Order Logics (FOL) Mathematical Logic - 2016 Exercises: First Order Logics (FOL) Originally by Alessandro Agostini and Fausto Giunchiglia Modified by Fausto Giunchiglia, Rui Zhang, Vincenzo Maltese and Mattia Fumagalli

DPLL

DPLL Procedure: Main Steps 1. It identifies all literal in the input proposition P 2. It assigns a truth-value to each variable to satisfy them 3. It simplifies P by removing all clauses in P which become true under the truth- assignments at step 2 and all literals in P that become false from the remaining clauses (this may generate empty clauses) 4. It recursively checks if the simplified proposition obtained in step 3 is satisfiable; if this is the case then P is satisfiable, otherwise the same recursive checking is done assuming the opposite truth value (*). B  ¬C  (B  ¬A  C)  (¬ B  D) B  ¬C  (B  ¬A  C)  (¬ B  D) ν(B) = T; ν(C) = F D D YES, it is satisfiable for ν(D) = T. NOTE: ν(A) can be T/F

DPLL Procedure: Example 1 P = A ∧ (A ∨ ¬A) ∧ B There are still variables and clauses to analyze, go ahead P does not contain empty clauses, go ahead It assigns the right truth-value to A and B: ν(A) = T, ν(B) = T It simplifies P by removing all clauses in P which become true under ν(A) = T and ν(B) = T This causes the removal of all the clauses in P It simplifies P by removing all literals in the clauses of P that become false from the remaining clauses: nothing to remove It assigns values to pure literals. nothing to assign All variables are assigned: it returns true 10

DPLL Procedure: Example 2 P = C ∧ (A ∨ ¬A) ∧ B There are still variables and clauses to analyze, go ahead P does not contain empty clauses, go ahead It assigns the right truth-value to C and B: ν(C) = T, ν(B) = T It simplifies P by removing all clauses in P which become true under ν(C) = T and ν(B) = T. P is then simplified to (A ∨ ¬A) It simplifies P by removing all literals in the clauses of P that become false from the remaining clauses: nothing to remove It assigns values to pure literals: nothing to assign It selects A and applies the splitting rule by calling DPLL on A ∧ (A ∨ ¬A) AND ¬A ∧ (A ∨ ¬A) which are both true (the first call is enough). It returns true 11

DPLL Procedure: Example 3 P = A ∧ ¬B ∧ (¬A ∨ B) There are still variables and clauses to analyze, go ahead P does not contain empty clauses, go ahead It assigns the right truth-value to A and B ν(A) = T, ν(B) = F It simplifies P by removing all clauses in P which become true under ν(A) = T and ν(B) = F. P is simplified to (¬A ∨ B) It simplifies P by removing all literals in the clauses of P that become false from the remaining clauses: the last clause becomes empty It assigns values to pure literals: nothing to assign All variables are assigned but there is an empty clause: it returns false 12