α-formulas β-formulas
|
|
- Tobias Carter
- 6 years ago
- Views:
Transcription
1 α-formulas Logic: Compendium TDDD88/ Andrzej Szalas IDA, University of Linköping October 25, 2017 Rule α α 1 α 2 ( ) A 1 A 1 ( ) A 1 A 2 A 1 A 2 ( ) (A 1 A 2 ) A 1 A 2 ( ) (A 1 A 2 ) A 1 A 2 ( ) A 1 A 2 A 1 A 2 A 2 A 1 Factorization Rule (fctr): remove redundant duplicates. E.g. p,q,p,r,r is simplified to p,q,r. Andrzej Szalas Slide 1 of 35 Andrzej Szalas Slide 3 of 35 Propositional calculus: tableaux β-formulas Semantic tableau for a formula A A semantic tableau T is a tree with each node labeled with a set of formulas, where T represents A in such a way that A is equivalent to the disjunction of formulas appearing in all leaves, assuming that sets of formulas labeling leaves are interpreted as conjunctions of their members. Rule β β 1 β 2 ( ) (B 1 B 2 ) B 1 B 2 ( ) B 1 B 2 B 1 B 2 ( ) B 1 B 2 B 1 B 2 ( ) (B 1 B 2 ) (B 1 B 2 ) (B 2 B 1 ) Andrzej Szalas Slide 2 of 35 Andrzej Szalas Slide 4 of 35
2 Literals and complementary formulas Construction of a semantic tableau for a formula C A literal is an atom (propositional variable) or the negation of an atom. Atoms are called positive literals and their negations are called negative literals. For any formula A, {A, A} is a complementary pair of formulas. A is the complement of A and A is the complement of A. Remark Observe that the conjunction of a complementary pair of formulas is equivalent to false. Initially, T consists of a single node labeled with {C}. If T is completed then no further construction is possible. Otherwise chose a leaf, say l, labeled with S containing a non-literal and chose from S a formula D which is not a literal and: if D is an α-formula then create a successor of l and label it with ( S {D} ) {α 1,α 2 } if D is a β-formula then create two new successors of l, the first one labeled with ( S {D} ) {β 1 } and the second one labeled with ( S {D} ) {β 2 }. Andrzej Szalas Slide 5 of 35 Andrzej Szalas Slide 7 of 35 Closed and open leaves Proving with semantic tableaux A leaf is called closed if it contains a complementary pair of formulas. If a leaf consists of literals only and contains no complementary pair of literals then we call it open. A tableau is completed if all its leaves are open or closed. To prove that a formula A is a tautology we construct a completed tableau for its negation A. If the tableau is closed then A is a tautology (its negation is not satisfiable). Otherwise A is not a tautology. Andrzej Szalas Slide 6 of 35 Andrzej Szalas Slide 8 of 35
3 NNF: Negation Normal Form CNF: Conjunctive Normal Form Recall that a literal is a formula of the form A or A, where A is an atomic formula. A literal of the form A is called positive and of the form A is called negative. We say that formula A is in negation normal form, abbreviated by Nnf, iff it contains no other connectives than,,, and the negation sign appears in literals only. A clause is any formula of the form A 1 A 2... A k, where k 0 and A 1,A 2,...,A k are literals. The empty clause (when k = 0), denoted by, is equivalent to F. A Horn clause is a clause in which at most one literal is positive. Formula A is in conjunctive normal form, abbreviated by Cnf, if it is a conjunction of clauses. It is in clausal form if it is a set of clauses (considered to be an implicit conjunction of clauses). Andrzej Szalas Slide 9 of 35 Andrzej Szalas Slide 11 of 35 Transforming formulas into NNF Transforming formulas into CNF Any propositional formula can be equivalently transformed into the Nnf by replacing subformulas according to the table below, until Nnf is obtained. Rule Subformula Replaced by 1 A B ( A B) (A B) 2 A B A B 3 A A 4 (A B) A B 5 (A B) A B Any propositional formula can be equivalently transformed into the Cnf: 1 Transform the formula into Nnf 2 Replace subformulas according to the table below, until Cnf is obtained. Rule Subformula Replaced by 6 (A B) C (A C) (B C) 7 C (A B) (C A) (C B) Andrzej Szalas Slide 10 of 35 Andrzej Szalas Slide 12 of 35
4 Resolution rule for propositional calculus Resolution method Resolution method has been introduced by Robinson (1965) and is considered the most powerful automated proving technique. Resolution rule, denoted by (res), is formulated as follows: α L, L β α β where L is a literal and α,β are clauses. The position of L and L in clauses does not matter. The method, where formula A is to be proved 1 transform A into the conjunctive normal form 2 try to derive the empty clause by applying resolution (res) and factorization (fctr): if the empty clause is obtained then A is a tautology, if the empty clause cannot be obtained no matter how (res) and (fctr) are applied, then conclude that A is not a tautology. Andrzej Szalas Slide 13 of 35 Andrzej Szalas Slide 15 of 35 Factorization rule for propositional calculus DeMorgan s laws for quantifiers Reminder Factorization rule, denoted by (fctr): Remove from a clause redundant repetitions of literals. Example P P Q P Q P Q DeMorgan laws for quantifiers are: [ x A(x)] [ x A(x)] [ x A(x)] [ x A(x)] 1 It is not the case that all animals are large is equivalent to Some animals are not large. 2 It is not the case that some animals are plants is equivalent to All animals are not plants. 3 x y z[friend(x,y) likes(y,z)] is equivalent to x y z [friend(x,y) likes(y,z)]. Andrzej Szalas Slide 14 of 35 Andrzej Szalas Slide 16 of 35
5 Other laws for quantifiers δ-formulas 1 Null quantification. Assume variable x is not free in formula P. Then: 1 x[p] is equivalent to P; 2 x[p] is equivalent to P; 3 x[p Q(x)] is equivalent to P x[q(x)]; 4 x[p Q(x)] is equivalent to P x[q(x)]. 2 Pushing quantifiers past connectives: 1 x[p(x) Q(x)] is equivalent to x[p(x)] x[q(x)]; 2 x[p(x) Q(x)] is equivalent to x[p(x)] x[q(x)] δ-formulas Rule δ δ(a) ( ) x A(x) A(a) ( ) x A(x) A(a) where a is a fresh constant. Andrzej Szalas Slide 17 of 35 Andrzej Szalas Slide 19 of 35 γ-formulas Tableaux Rule γ γ(a) ( ) x A(x) A(a) ( ) x A(x) A(a) where a is an arbitrary constant. Construction of a semantic tableau for formula A Initially T consists of a single unmarked node labeled with {A}. Until possible choose anon-closed leaf l labeled with U(l) and apply: if U(l) contains a pair of complementary formulas then mark the leaf closed; otherwise: Andrzej Szalas Slide 18 of 35 Andrzej Szalas Slide 20 of 35
6 Tableaux PNF: Prenex Normal Form Construction of a semantic tableau for formula A if U(l) does not contain a pair of complementary literals and contains non-literals, choose a non-literal A U(l) or a γ-formula from any node on the path from l to the root, and: if A is an α- or β-formula, apply rules provided in slide 7; if A is a γ-formula, create a child node l for l and label l with U(l ) = (U(l) {A}) {γ(a)}, where a preferably is a constant appearing in U(l); if A is a δ-formula, create a child node l for l and label l with U(l ) = (U(l) {A}) {δ(a)}, where a is a constant not appearing in U(l). We say A is in prenex normal form, abbreviated by Pnf, if all its quantifiers (if any) are in its prefix, i.e., it has the form: Q 1 x 1 Q 2 x 2... Q n x n [A(x 1,x 2,...,x n )], where n 0, Q 1,Q 2,...,Q n are quantifiers (, ) and A is quantifier-free. 1 A(x) B(x,y) C(y) is in Pnf 2 x y [A(x) B(x,y) C(y)] is in Pnf 3 A(x) x [B(x,y) C(y)] as well as x [A(x) B(x,y) yc(y)] are not in Pnf. Andrzej Szalas Slide 21 of 35 Andrzej Szalas Slide 23 of 35 Transforming formulas into NNF Transforming formulas into PNF NNF: Negation Normal Form Recall (see Slide 9) that in negation normal form, Nnf, negation ca appear only before atoms. Any first-order formula can be equivalently transformed into the Nnf by replacing subformulas according to the table given in Slide 10 and rules given below. Rule Subformula Replaced by 6 x A(x) x[ A(x)] 7 x A(x) x[ A(x)] Any predicate formula can be equivalently transformed into the Pnf 1 Transform the formula into Nnf; 2 Replace subformulas according to the table below, until Pnf is obtained, where Q denotes any quantifier, or. Rule Subformula Replaced by 12 Qx[A(x)], A(x) without variable z Qz[A(z)] 13 x A(x) x B(x) x [A(x) B(x)] 14 x A(x) x B(x) x [A(x) B(x)] 15 A Qx B, where A contains no x Qx (A B) 16 A Qx B, where A contains no x Qx (A B) Andrzej Szalas Slide 22 of 35 Andrzej Szalas Slide 24 of 35
7 Skolem normal form The unification algorithm A formula is in the Skolem normal form iff it is in the Pnf and contains no existential quantifiers. Transforming formulas into the Skolem normal form Eliminate existential quantifiers from left to right: 1 when we have xa(x) then remove x and replace x in A by a new constant symbol 2 when we have x 1... x k xa(x 1,...,x k,x) then remove x and replace x in A by a term f(x 1,...,x k ), where f is a new function symbol. Andrzej Szalas Slide 25 of 35 Input: expressions e,e Output: substitution of variables which makes e and e identical or inform that such a substitution does not exist. 1 traverse trees corresponding to expressions e,e ; 2 if the trees are identical then stop; 3 let t and t be subtrees that have to be identical, but are not: if t and t are function symbols/constants then conclude that the substitutions do not exist and stop; otherwise t or t is a variable; let t be a variable, then substitute all occurrences of t by the expression represented by t assuming that t does not occur in t (if it occurs then conclude that the substitutions do not exist and stop); 4 change the trees, according to the substitution determined in the previous step and repeat from step 2. Andrzej Szalas Slide 27 of 35 Unification Resolution rule for the predicate calculus Given two expressions, unification depends on substituting variables by expressions so that both input expressions become identical. If this is possible, the given expressions are said to be unifiable. 1 To unify expressions father(x) and father(mother(john)), it suffices to substitute x by expression mother(john). 2 To unify expressions (x +f(y)) and ( 2 z +f(3)), it suffices to substitute x by 2 z and y by 3. 3 Expressions father(x) and mother(father(john)) cannot be unified. Resolution rule, denoted by (res), is formulated for first-order clauses as follows: L 1 ( t 1 )... L k 1 ( t k 1 ) L k ( t k ) L k ( t k ) M 1( s 1 )... M l ( s l ) L 1 ( t 1 )... L k 1 ( t k 1 ) M 1( s 1)... M l ( s l ), where: L 1,...,L k,m 1,...,M l are literals; t k and t k are unifiable; primed expressions are obtained from non-primed expressions by applying substitutions unifying t k and t k. Andrzej Szalas Slide 26 of 35 Andrzej Szalas Slide 28 of 35
8 Factorization rule for the predicate calculus Atomic queries about facts The rule Factorization rule, denoted by (fctr): Unify some terms in a clause and remove from the clause all repetitions of literals. 1 (fctr) with x = Jack, y = mother(eve): parent(x, y) parent(jack, mother(eve)) parent(jack, mother(eve)) 2 (fctr) with z = x, u = y: P(x,y) S(y,z,u) P(z,u) P(x,y) S(y,x,y) Atomic queries are of the form name(arg 1,...,arg k ), where arg 1,...,arg k are constants or variables, where is also a variable (without a name, do-not-care variable). 1 likes(john, Marc) does John like Marc? 2 likes(x,marc) who likes Marc? (compute X s satisfying likes(x, Marc)) 3 likes(john,x) whom likes John? 4 likes(x,y) compute all pairs X,Y such that likes(x,y) holds. Andrzej Szalas Slide 29 of 35 Andrzej Szalas Slide 31 of 35 Datalog Rules in Datalog Facts in Datalog Facts in Datalog are represented in the form of relations name(arg 1,...,arg k ), where name is a name of a relation and arg 1,...,arg k are constants. 1 address(john, Kungsgatan 12 ) 2 likes(john, Marc). Rules in Datalog are expressed in the form of (a syntactic variant of) Horn clauses: R( Z): R 1 ( Z 1 ),...,R k ( Z k ) where Z, Z 1,..., Z k are vectors of variable or constant symbols such that any variable appearing on the lefthand side of : (called the head of the rule) appears also at the righthand side of the rule (called the body of the rule). Andrzej Szalas Slide 30 of 35 Andrzej Szalas Slide 32 of 35
9 Rules in Datalog Designing Datalog databases Semantics The intended meaning of the rule is that [R 1 ( Z 1 )... R k ( Z k )] R( Z), where all variables that appear both in the rule s head and body are universally quantified, while those appearing only in the rule s body, are existentially quantified. Example Rule: R(X,c): Q(X,Z),S(Z,X) denotes implication: X { Z [Q(X,Z) S(Z,X)] R(X,c)}. Remark One also often uses the following tautology: [(b h1) (b h2)] [b (h1 h2)]. It allows to substitute: h1 h2: b by two rules: h1: b. h2: b. Andrzej Szalas Slide 33 of 35 Andrzej Szalas Slide 35 of 35 Designing Datalog databases Index Remark To define disjunction in rule s body, one uses the following rules: h: b1. h: b2. These rules are equivalent to (b1 h) (b2 h) which, in turn, is equivalent to: (b1 b2) h. Andrzej Szalas Slide 34 of 35 α-formula, 3 β-formula, 4 δ-formula, 19 γ-formula, 18 atomic query, 31 body of a rule, 32 clausal form, 11 clause, 11 empty, 11 Horn, 11 closed leaf, 6 CNF, 11 complement of a formula, 5 complementary formulas, 5 completed tableau, 6 conjunctive normal form, 11 Datalog, 30 DeMorgan laws for quantifiers, 16 empty clause, 11 36
10 fact in Datalog, 30 factorization, 3, 14 rule, 14, 29 head of a rule, 32 Horn, 11 clause, 11 leaf closed, 6 open, 6 literal, 5, 9 negative, 5, 9 positive, 5, 9 negation normal form, 9, 22 negative literal, 5 negative literal, 9 NNF, 9, 22 open leaf, 6 PNF, 23 positive literal, 5 positive literal, 9 prenex normal form, 23 resolution, 13 method, 15 rule, 13, Robinson, 13 rule in Datalog, 32 semantic tableau, 2 Skolem normal form, 25 tableau completed, 6 unifiable expressions, 26 unification, 26 algorithm, 27 38
Predicate Calculus - Semantic Tableau (2/2) Moonzoo Kim CS Division of EECS Dept. KAIST
Predicate Calculus - Semantic Tableau (2/2) Moonzoo Kim CS Division of EECS Dept. KAIST moonzoo@cs.kaist.ac.kr http://pswlab.kaist.ac.kr/courses/cs402-07 1 Formal construction is explained in two steps
More information1 Introduction to Predicate Resolution
1 Introduction to Predicate Resolution The resolution proof system for Predicate Logic operates, as in propositional case on sets of clauses and uses a resolution rule as the only rule of inference. The
More informationCHAPTER 10. Predicate Automated Proof Systems
CHAPTER 10 ch10 Predicate Automated Proof Systems We define and discuss here a Rasiowa and Sikorski Gentzen style proof system QRS for classical predicate logic. The propositional version of it, the RS
More informationPredicate Logic - Deductive Systems
CS402, Spring 2018 G for Predicate Logic Let s remind ourselves of semantic tableaux. Consider xp(x) xq(x) x(p(x) q(x)). ( xp(x) xq(x) x(p(x) q(x))) xp(x) xq(x), x(p(x) q(x)) xp(x), x(p(x) q(x)) xq(x),
More informationPredicate Logic - Semantic Tableau
CS402, Spring 2016 Informal Construction of a Valid Formula Example 1 A valid formula: x(p(x) q(x)) ( xp(x) xq(x)) ( x(p(x) q(x)) ( xp(x) xq(x))) x(p(x) q(x)), ( xp(x) xq(x)) x(p(x) q(x)), xp(x), xq(x)
More informationIntroduction to Logic in Computer Science: Autumn 2007
Introduction to Logic in Computer Science: Autumn 2007 Ulle Endriss Institute for Logic, Language and Computation University of Amsterdam Ulle Endriss 1 Tableaux for First-order Logic The next part of
More informationSyntax of FOL. Introduction to Logic in Computer Science: Autumn Tableaux for First-order Logic. Syntax of FOL (2)
Syntax of FOL Introduction to Logic in Computer Science: Autumn 2007 Ulle Endriss Institute for Logic, Language and Computation University of Amsterdam The syntax of a language defines the way in which
More informationLogic: First Order Logic
Logic: First Order Logic Raffaella Bernardi bernardi@inf.unibz.it P.zza Domenicani 3, Room 2.28 Faculty of Computer Science, Free University of Bolzano-Bozen http://www.inf.unibz.it/~bernardi/courses/logic06
More informationLogic as a Tool Chapter 4: Deductive Reasoning in First-Order Logic 4.4 Prenex normal form. Skolemization. Clausal form.
Logic as a Tool Chapter 4: Deductive Reasoning in First-Order Logic 4.4 Prenex normal form. Skolemization. Clausal form. Valentin Stockholm University October 2016 Revision: CNF and DNF of propositional
More informationComputer-Aided Verification
Computer-Aided Verification CS745/ECE745 Dr. Borzoo Bonakdarpour University of Waterloo (Fall 2013) Predicate Logic and Theorem Proving (Some Slides Adapted from Nancy Day s Lectures) Computer-Aided Verification
More informationComputational Logic. Davide Martinenghi. Spring Free University of Bozen-Bolzano. Computational Logic Davide Martinenghi (1/30)
Computational Logic Davide Martinenghi Free University of Bozen-Bolzano Spring 2010 Computational Logic Davide Martinenghi (1/30) Propositional Logic - sequent calculus To overcome the problems of natural
More informationLogic Programming (PLP 11) Predicate Calculus Clocksin-Mellish Procedure Horn Clauses
Logic Programming (PLP 11) Predicate Calculus Clocksin-Mellish Procedure Horn Clauses Carlos Varela Rennselaer Polytechnic Institute January 29, 2015 C. Varela 1 Propositional Logic Assigning truth values
More informationPart 1: Propositional Logic
Part 1: Propositional Logic Literature (also for first-order logic) Schöning: Logik für Informatiker, Spektrum Fitting: First-Order Logic and Automated Theorem Proving, Springer 1 Last time 1.1 Syntax
More informationPropositional and Predicate Logic - V
Propositional and Predicate Logic - V Petr Gregor KTIML MFF UK WS 2016/2017 Petr Gregor (KTIML MFF UK) Propositional and Predicate Logic - V WS 2016/2017 1 / 21 Formal proof systems Hilbert s calculus
More informationSome Rewriting Systems as a Background of Proving Methods
Some Rewriting Systems as a Background of Proving Methods Katalin Pásztor Varga Department of General Computer Science Eötvös Loránd University e-mail: pkata@ludens.elte.hu Magda Várterész Institute of
More informationAAA615: Formal Methods. Lecture 2 First-Order Logic
AAA615: Formal Methods Lecture 2 First-Order Logic Hakjoo Oh 2017 Fall Hakjoo Oh AAA615 2017 Fall, Lecture 2 September 24, 2017 1 / 29 First-Order Logic An extension of propositional logic with predicates,
More informationFirst-Order Logic. Chapter Overview Syntax
Chapter 10 First-Order Logic 10.1 Overview First-Order Logic is the calculus one usually has in mind when using the word logic. It is expressive enough for all of mathematics, except for those concepts
More informationPropositional Calculus - Semantics (3/3) Moonzoo Kim CS Dept. KAIST
Propositional Calculus - Semantics (3/3) Moonzoo Kim CS Dept. KAIST moonzoo@cs.kaist.ac.kr 1 Overview 2.1 Boolean operators 2.2 Propositional formulas 2.3 Interpretations 2.4 Logical Equivalence and substitution
More informationConvert to clause form:
Convert to clause form: Convert the following statement to clause form: x[b(x) ( y [ Q(x,y) P(y) ] y [ Q(x,y) Q(y,x) ] y [ B(y) E(x,y)] ) ] 1- Eliminate the implication ( ) E1 E2 = E1 E2 x[ B(x) ( y [
More informationLogic and Computation
Logic and Computation CS245 Dr. Borzoo Bonakdarpour University of Waterloo (Fall 2012) Resolution in First-order Predicate Logic Logic and Computation p. 1/38 Agenda Resolution in Propositional Logic Prenex
More informationExercises 1 - Solutions
Exercises 1 - Solutions SAV 2013 1 PL validity For each of the following propositional logic formulae determine whether it is valid or not. If it is valid prove it, otherwise give a counterexample. Note
More informationPropositional Logic Language
Propositional Logic Language A logic consists of: an alphabet A, a language L, i.e., a set of formulas, and a binary relation = between a set of formulas and a formula. An alphabet A consists of a finite
More information1 FUNDAMENTALS OF LOGIC NO.10 HERBRAND THEOREM Tatsuya Hagino hagino@sfc.keio.ac.jp lecture URL https://vu5.sfc.keio.ac.jp/slide/ 2 So Far Propositional Logic Logical connectives (,,, ) Truth table Tautology
More informationCS1021. Why logic? Logic about inference or argument. Start from assumptions or axioms. Make deductions according to rules of reasoning.
3: Logic Why logic? Logic about inference or argument Start from assumptions or axioms Make deductions according to rules of reasoning Logic 3-1 Why logic? (continued) If I don t buy a lottery ticket on
More information2.5.2 Basic CNF/DNF Transformation
2.5. NORMAL FORMS 39 On the other hand, checking the unsatisfiability of CNF formulas or the validity of DNF formulas is conp-complete. For any propositional formula φ there is an equivalent formula in
More informationAdvanced Topics in LP and FP
Lecture 1: Prolog and Summary of this lecture 1 Introduction to Prolog 2 3 Truth value evaluation 4 Prolog Logic programming language Introduction to Prolog Introduced in the 1970s Program = collection
More informationChapter 16. Logic Programming. Topics. Logic Programming. Logic Programming Paradigm
Topics Chapter 16 Logic Programming Introduction Predicate Propositions Clausal Form Horn 2 Logic Programming Paradigm AKA Declarative Paradigm The programmer Declares the goal of the computation (specification
More informationPropositional Resolution Introduction
Propositional Resolution Introduction (Nilsson Book Handout) Professor Anita Wasilewska CSE 352 Artificial Intelligence Propositional Resolution Part 1 SYNTAX dictionary Literal any propositional VARIABLE
More informationPropositional Logic: Models and Proofs
Propositional Logic: Models and Proofs C. R. Ramakrishnan CSE 505 1 Syntax 2 Model Theory 3 Proof Theory and Resolution Compiled at 11:51 on 2016/11/02 Computing with Logic Propositional Logic CSE 505
More informationLogic for Computer Scientists
Logic for Computer Scientists Pascal Hitzler http://www.pascal-hitzler.de CS 499/699 Lecture, Winter Quarter 2011 Wright State University, Dayton, OH, U.S.A. [final version: 03/10/2011] Contents 1 Propositional
More informationLogic for Computer Scientists
Logic for Computer Scientists Pascal Hitzler http://www.pascal-hitzler.de CS 499/699 Lecture, Spring Quarter 2010 Wright State University, Dayton, OH, U.S.A. Final version. Contents 1 Propositional Logic
More informationINF3170 / INF4171 Notes on Resolution
INF3170 / INF4171 Notes on Resolution Andreas Nakkerud Autumn 2015 1 Introduction This is a short description of the Resolution calculus for propositional logic, and for first order logic. We will only
More information3 Propositional Logic
3 Propositional Logic 3.1 Syntax 3.2 Semantics 3.3 Equivalence and Normal Forms 3.4 Proof Procedures 3.5 Properties Propositional Logic (25th October 2007) 1 3.1 Syntax Definition 3.0 An alphabet Σ consists
More informationPacket #2: Set Theory & Predicate Calculus. Applied Discrete Mathematics
CSC 224/226 Notes Packet #2: Set Theory & Predicate Calculus Barnes Packet #2: Set Theory & Predicate Calculus Applied Discrete Mathematics Table of Contents Full Adder Information Page 1 Predicate Calculus
More informationPropositional Calculus: Formula Simplification, Essential Laws, Normal Forms
P Formula Simplification, Essential Laws, Normal Forms Lila Kari University of Waterloo P Formula Simplification, Essential Laws, Normal CS245, Forms Logic and Computation 1 / 26 Propositional calculus
More informationPropositional Logic: Gentzen System, G
CS402, Spring 2017 Quiz on Thursday, 6th April: 15 minutes, two questions. Sequent Calculus in G In Natural Deduction, each line in the proof consists of exactly one proposition. That is, A 1, A 2,...,
More informationA New 3-CNF Transformation by Parallel-Serial Graphs 1
A New 3-CNF Transformation by Parallel-Serial Graphs 1 Uwe Bubeck, Hans Kleine Büning University of Paderborn, Computer Science Institute, 33098 Paderborn, Germany Abstract For propositional formulas we
More informationNormal Forms of Propositional Logic
Normal Forms of Propositional Logic Bow-Yaw Wang Institute of Information Science Academia Sinica, Taiwan September 12, 2017 Bow-Yaw Wang (Academia Sinica) Normal Forms of Propositional Logic September
More informationHandout Proof Methods in Computer Science
Handout Proof Methods in Computer Science Sebastiaan A. Terwijn Institute of Logic, Language and Computation University of Amsterdam Plantage Muidergracht 24 1018 TV Amsterdam the Netherlands terwijn@logic.at
More informationIntroduction to Logic in Computer Science: Autumn 2006
Introduction to Logic in Computer Science: Autumn 2006 Ulle Endriss Institute for Logic, Language and Computation University of Amsterdam Ulle Endriss 1 Plan for Today Today s class will be an introduction
More informationComputational Logic Automated Deduction Fundamentals
Computational Logic Automated Deduction Fundamentals 1 Elements of First-Order Predicate Logic First Order Language: An alphabet consists of the following classes of symbols: 1. variables denoted by X,
More informationKE/Tableaux. What is it for?
CS3UR: utomated Reasoning 2002 The term Tableaux refers to a family of deduction methods for different logics. We start by introducing one of them: non-free-variable KE for classical FOL What is it for?
More information2-4: The Use of Quantifiers
2-4: The Use of Quantifiers The number x + 2 is an even integer is not a statement. When x is replaced by 1, 3 or 5 the resulting statement is false. However, when x is replaced by 2, 4 or 6 the resulting
More informationIntroduction to first-order logic:
Introduction to first-order logic: First-order structures and languages. Terms and formulae in first-order logic. Interpretations, truth, validity, and satisfaction. Valentin Goranko DTU Informatics September
More informationResolution: Motivation
Resolution: Motivation Steps in inferencing (e.g., forward-chaining) 1. Define a set of inference rules 2. Define a set of axioms 3. Repeatedly choose one inference rule & one or more axioms (or premices)
More informationCS2742 midterm test 2 study sheet. Boolean circuits: Predicate logic:
x NOT ~x x y AND x /\ y x y OR x \/ y Figure 1: Types of gates in a digital circuit. CS2742 midterm test 2 study sheet Boolean circuits: Boolean circuits is a generalization of Boolean formulas in which
More informationLogic Programming (PLP 11) Predicate Calculus, Horn Clauses, Clocksin-Mellish Procedure
Logic Programming (PLP 11) Predicate Calculus, Horn Clauses, Clocksin-Mellish Procedure Carlos Varela Rennselaer Polytechnic Institute November 7, 2016 C. Varela 1 An Early (1971) Conversation USER: Cats
More informationClausal Presentation of Theories in Deduction Modulo
Gao JH. Clausal presentation of theories in deduction modulo. JOURNAL OF COMPUTER SCIENCE AND TECHNOL- OGY 28(6): 1085 1096 Nov. 2013. DOI 10.1007/s11390-013-1399-0 Clausal Presentation of Theories in
More informationCOMP9414: Artificial Intelligence First-Order Logic
COMP9414, Wednesday 13 April, 2005 First-Order Logic 2 COMP9414: Artificial Intelligence First-Order Logic Overview Syntax of First-Order Logic Semantics of First-Order Logic Conjunctive Normal Form Wayne
More informationA Logic Primer. Stavros Tripakis University of California, Berkeley. Stavros Tripakis (UC Berkeley) EE 144/244, Fall 2014 A Logic Primer 1 / 35
EE 144/244: Fundamental Algorithms for System Modeling, Analysis, and Optimization Fall 2014 A Logic Primer Stavros Tripakis University of California, Berkeley Stavros Tripakis (UC Berkeley) EE 144/244,
More informationLogic and Resolution Representation and Reasoning
Logic and Resolution Representation and Reasoning Logic and Resolution p. 1/35 KR&R using Logic Domain (wine recommendation, tax advice, holiday advice, medicine, mathematics,...) Logical Theory propositional
More information473 Topics. Knowledge Representation III First-Order Logic. Logic-Based KR. Propositional. Logic vs. First Order
473 Topics Knowledge Representation III First-Order Logic CSE 473 Perception NLP Robotics Multi-agent Inference Logic Supervised Learning Knowledge Representation Search Problem Spaces Agency Reinforcement
More informationHerbrand Theorem, Equality, and Compactness
CSC 438F/2404F Notes (S. Cook and T. Pitassi) Fall, 2014 Herbrand Theorem, Equality, and Compactness The Herbrand Theorem We now consider a complete method for proving the unsatisfiability of sets of first-order
More informationFoundations of Mathematics MATH 220 FALL 2017 Lecture Notes
Foundations of Mathematics MATH 220 FALL 2017 Lecture Notes These notes form a brief summary of what has been covered during the lectures. All the definitions must be memorized and understood. Statements
More informationAutomated Reasoning in First-Order Logic
Automated Reasoning in First-Order Logic Peter Baumgartner http://users.cecs.anu.edu.au/~baumgart/ 7/11/2011 Automated Reasoning in First-Order Logic... First-Order Logic Can express (mathematical) structures,
More informationClosed Book Examination. Two hours UNIVERSITY OF MANCHESTER SCHOOL OF COMPUTER SCIENCE. M.Sc. in Advanced Computer Science
Closed Book Examination COMP60121 Appendix: definition sheet (3 pages) Two hours UNIVERSITY OF MANCHESTER SCHOOL OF COMPUTER SCIENCE M.Sc. in Advanced Computer Science Automated Reasoning Tuesday 27 th
More informationA brief introduction to Logic. (slides from
A brief introduction to Logic (slides from http://www.decision-procedures.org/) 1 A Brief Introduction to Logic - Outline Propositional Logic :Syntax Propositional Logic :Semantics Satisfiability and validity
More informationPropositional logic. Programming and Modal Logic
Propositional logic Programming and Modal Logic 2006-2007 4 Contents Syntax of propositional logic Semantics of propositional logic Semantic entailment Natural deduction proof system Soundness and completeness
More information2. Use quantifiers to express the associative law for multiplication of real numbers.
1. Define statement function of one variable. When it will become a statement? Statement function is an expression containing symbols and an individual variable. It becomes a statement when the variable
More informationCOMP219: Artificial Intelligence. Lecture 20: Propositional Reasoning
COMP219: Artificial Intelligence Lecture 20: Propositional Reasoning 1 Overview Last time Logic for KR in general; Propositional Logic; Natural Deduction Today Entailment, satisfiability and validity Normal
More informationCS 512, Spring 2017, Handout 10 Propositional Logic: Conjunctive Normal Forms, Disjunctive Normal Forms, Horn Formulas, and other special forms
CS 512, Spring 2017, Handout 10 Propositional Logic: Conjunctive Normal Forms, Disjunctive Normal Forms, Horn Formulas, and other special forms Assaf Kfoury 5 February 2017 Assaf Kfoury, CS 512, Spring
More informationWeb Science & Technologies University of Koblenz Landau, Germany. Models in First Order Logics
Web Science & Technologies University of Koblenz Landau, Germany Models in First Order Logics Overview First-order logic. Syntax and semantics. Herbrand interpretations; Clauses and goals; Datalog. 2 of
More informationA Resolution Method for Modal Logic S5
EPiC Series in Computer Science Volume 36, 2015, Pages 252 262 GCAI 2015. Global Conference on Artificial Intelligence A Resolution Method for Modal Logic S5 Yakoub Salhi and Michael Sioutis Université
More informationPredicate Calculus. Formal Methods in Verification of Computer Systems Jeremy Johnson
Predicate Calculus Formal Methods in Verification of Computer Systems Jeremy Johnson Outline 1. Motivation 1. Variables, quantifiers and predicates 2. Syntax 1. Terms and formulas 2. Quantifiers, scope
More informationDeductive Systems. Lecture - 3
Deductive Systems Lecture - 3 Axiomatic System Axiomatic System (AS) for PL AS is based on the set of only three axioms and one rule of deduction. It is minimal in structure but as powerful as the truth
More informationStrong AI vs. Weak AI Automated Reasoning
Strong AI vs. Weak AI Automated Reasoning George F Luger ARTIFICIAL INTELLIGENCE 6th edition Structures and Strategies for Complex Problem Solving Artificial intelligence can be classified into two categories:
More informationFirst-Order Logic First-Order Theories. Roopsha Samanta. Partly based on slides by Aaron Bradley and Isil Dillig
First-Order Logic First-Order Theories Roopsha Samanta Partly based on slides by Aaron Bradley and Isil Dillig Roadmap Review: propositional logic Syntax and semantics of first-order logic (FOL) Semantic
More informationChapter 3: Propositional Calculus: Deductive Systems. September 19, 2008
Chapter 3: Propositional Calculus: Deductive Systems September 19, 2008 Outline 1 3.1 Deductive (Proof) System 2 3.2 Gentzen System G 3 3.3 Hilbert System H 4 3.4 Soundness and Completeness; Consistency
More informationQuantified Boolean Formulas: Complexity and Expressiveness
Dagstuhl SAT Interactions 2012 Quantified Boolean Formulas: Complexity and Expressiveness Uwe Bubeck University of Paderborn 20.11.2012 Outline Introduction Free Variables and Equivalence Complexity Expressiveness
More informationLogic for Computer Scientists
Logic for Computer Scientists Pascal Hitzler http://www.pascal-hitzler.de CS 499/699 Lecture, Winter Quarter 2012 Wright State University, Dayton, OH, U.S.A. [version: 03/01/2012] Contents 1 Propositional
More informationLanguage of Propositional Logic
Logic A logic has: 1. An alphabet that contains all the symbols of the language of the logic. 2. A syntax giving the rules that define the well formed expressions of the language of the logic (often called
More informationCS156: The Calculus of Computation
CS156: The Calculus of Computation Zohar Manna Winter 2010 It is reasonable to hope that the relationship between computation and mathematical logic will be as fruitful in the next century as that between
More information3. Only sequences that were formed by using finitely many applications of rules 1 and 2, are propositional formulas.
1 Chapter 1 Propositional Logic Mathematical logic studies correct thinking, correct deductions of statements from other statements. Let us make it more precise. A fundamental property of a statement is
More informationReasoning with Quantified Boolean Formulas
Reasoning with Quantified Boolean Formulas Martina Seidl Institute for Formal Models and Verification Johannes Kepler University Linz 1 What are QBF? Quantified Boolean formulas (QBF) are formulas of propositional
More informationVersion January Please send comments and corrections to
Mathematical Logic for Computer Science Second revised edition, Springer-Verlag London, 2001 Answers to Exercises Mordechai Ben-Ari Department of Science Teaching Weizmann Institute of Science Rehovot
More informationConjunction: p q is true if both p, q are true, and false if at least one of p, q is false. The truth table for conjunction is as follows.
Chapter 1 Logic 1.1 Introduction and Definitions Definitions. A sentence (statement, proposition) is an utterance (that is, a string of characters) which is either true (T) or false (F). A predicate is
More informationarxiv: v1 [cs.lo] 1 Sep 2017
A DECISION PROCEDURE FOR HERBRAND FORMULAE WITHOUT SKOLEMIZATION arxiv:1709.00191v1 [cs.lo] 1 Sep 2017 TIMM LAMPERT Humboldt University Berlin, Unter den Linden 6, D-10099 Berlin e-mail address: lampertt@staff.hu-berlin.de
More informationRedundancy for rigid clausal tableaux
Proceedings of the 7 th International Conference on Applied Informatics Eger, Hungary, January 28 31, 2007. Vol. 1. pp. 65 74. Redundancy for rigid clausal tableaux Gergely Kovásznai Faculty of Informatics,
More informationA Tableau Calculus for Minimal Modal Model Generation
M4M 2011 A Tableau Calculus for Minimal Modal Model Generation Fabio Papacchini 1 and Renate A. Schmidt 2 School of Computer Science, University of Manchester Abstract Model generation and minimal model
More informationComp487/587 - Boolean Formulas
Comp487/587 - Boolean Formulas 1 Logic and SAT 1.1 What is a Boolean Formula Logic is a way through which we can analyze and reason about simple or complicated events. In particular, we are interested
More informationDuality in Knowledge Compilation Techniques
Duality in Knowledge Compilation Techniques Neil V. Murray 1 and Erik Rosenthal 2 1 Department of Computer Science, State University of New York, Albany, NY 12222, USA, nvm@cs.albany.edu 2 Department of
More information6. Logical Inference
Artificial Intelligence 6. Logical Inference Prof. Bojana Dalbelo Bašić Assoc. Prof. Jan Šnajder University of Zagreb Faculty of Electrical Engineering and Computing Academic Year 2016/2017 Creative Commons
More informationInference in first-order logic
CS 2710 Foundations of AI Lecture 15 Inference in first-order logic Milos Hauskrecht milos@cs.pitt.edu 5329 Sennott Square Logical inference in FOL Logical inference problem: Given a knowledge base KB
More informationCSCE 222 Discrete Structures for Computing. Propositional Logic. Dr. Hyunyoung Lee. !!!!!! Based on slides by Andreas Klappenecker
CSCE 222 Discrete Structures for Computing Propositional Logic Dr. Hyunyoung Lee Based on slides by Andreas Klappenecker 1 Propositions A proposition is a declarative sentence that is either true or false
More informationBefore you get started, make sure you ve read Chapter 1, which sets the tone for the work we will begin doing here.
Chapter 2 Mathematics and Logic Before you get started, make sure you ve read Chapter 1, which sets the tone for the work we will begin doing here. 2.1 A Taste of Number Theory In this section, we will
More informationFirst-Order Logic (FOL)
First-Order Logic (FOL) Also called Predicate Logic or Predicate Calculus 2. First-Order Logic (FOL) FOL Syntax variables x, y, z, constants a, b, c, functions f, g, h, terms variables, constants or n-ary
More informationA Logic Primer. Stavros Tripakis University of California, Berkeley
EE 144/244: Fundamental Algorithms for System Modeling, Analysis, and Optimization Fall 2015 A Logic Primer Stavros Tripakis University of California, Berkeley Stavros Tripakis (UC Berkeley) EE 144/244,
More informationTwo hours. Examination definition sheet is available at the back of the examination. UNIVERSITY OF MANCHESTER SCHOOL OF COMPUTER SCIENCE
COMP 60332 Two hours Examination definition sheet is available at the back of the examination. UNIVERSITY OF MANCHESTER SCHOOL OF COMPUTER SCIENCE Automated Reasoning and Verification Date: Wednesday 30th
More informationFirst-Order Predicate Logic. Basics
First-Order Predicate Logic Basics 1 Syntax of predicate logic: terms A variable is a symbol of the form x i where i = 1, 2, 3.... A function symbol is of the form fi k where i = 1, 2, 3... und k = 0,
More informationPropositional and Predicate Logic - II
Propositional and Predicate Logic - II Petr Gregor KTIML MFF UK WS 2016/2017 Petr Gregor (KTIML MFF UK) Propositional and Predicate Logic - II WS 2016/2017 1 / 16 Basic syntax Language Propositional logic
More informationChapter 11: Automated Proof Systems
Chapter 11: Automated Proof Systems SYSTEM RS OVERVIEW Hilbert style systems are easy to define and admit a simple proof of the Completeness Theorem but they are difficult to use. Automated systems are
More informationICS141: Discrete Mathematics for Computer Science I
ICS141: Discrete Mathematics for Computer Science I Dept. Information & Computer Sci., Originals slides by Dr. Baek and Dr. Still, adapted by J. Stelovsky Based on slides Dr. M. P. Frank and Dr. J.L. Gross
More information2.2: Logical Equivalence: The Laws of Logic
Example (2.7) For primitive statement p and q, construct a truth table for each of the following compound statements. a) p q b) p q Here we see that the corresponding truth tables for two statement p q
More informationKnowledge base (KB) = set of sentences in a formal language Declarative approach to building an agent (or other system):
Logic Knowledge-based agents Inference engine Knowledge base Domain-independent algorithms Domain-specific content Knowledge base (KB) = set of sentences in a formal language Declarative approach to building
More information7.5.2 Proof by Resolution
137 7.5.2 Proof by Resolution The inference rules covered so far are sound Combined with any complete search algorithm they also constitute a complete inference algorithm However, removing any one inference
More informationLogic and Inferences
Artificial Intelligence Logic and Inferences Readings: Chapter 7 of Russell & Norvig. Artificial Intelligence p.1/34 Components of Propositional Logic Logic constants: True (1), and False (0) Propositional
More informationCHAPTER 10. Gentzen Style Proof Systems for Classical Logic
CHAPTER 10 Gentzen Style Proof Systems for Classical Logic Hilbert style systems are easy to define and admit a simple proof of the Completeness Theorem but they are difficult to use. By humans, not mentioning
More informationarxiv: v2 [cs.lo] 22 Nov 2017
A DECISION PROCEDURE FOR HERBRAND FORMULAE WITHOUT SKOLEMIZATION arxiv:1709.00191v2 [cs.lo] 22 Nov 2017 TIMM LAMPERT Humboldt University Berlin, Unter den Linden 6, D-10099 Berlin e-mail address: lampertt@staff.hu-berlin.de
More informationSupplementary exercises in propositional logic
Supplementary exercises in propositional logic The purpose of these exercises is to train your ability to manipulate and analyze logical formulas. Familiarize yourself with chapter 7.3-7.5 in the course
More informationChapter 2 Propositional Logic: Formulas, Models, Tableaux
Chapter 2 Propositional Logic: Formulas, Models, Tableaux Propositional logic is a simple logical system that is the basis for all others. Propositions are claims like one plus one equals two and one plus
More information