CS 2710 Foundations of AI. Lecture 12. Inference in FOL. CS 2710 Foundations of AI. Optimization competition winners.
|
|
- Silvia Fields
- 7 years ago
- Views:
Transcription
1 Lecture 12 Inference in FOL Milos Hauskrecht 5329 Sennott Square Optimization competition winners CS2710 Homework 3
2 Simulated annealing 1. Valko Michal 2. Zhang Yue 3. Villamarin Ricardo Genetic Algorithm 1. Jung Sung-Young 2. Zhang Yue 3. Mills Bryan
3 Logical inference in FOL Logical inference problem: Given a knowledge base KB (a set of sentences) and a sentence α, does the KB semantically entail α? KB = α? In other words: In all interpretations in which sentences in the KB are true, is also α true? Logical inference problem in the first-order logic is undecidable!!!. No procedure that can decide the entailment for all possible input sentences in a finite number of steps. Logical inference problem in the Propositional logic Computational procedures that answer: = α KB? Three approaches: Truth-table approach Inference rules Conversion to the inverse SAT problem Resolution-refutation
4 Inference in FOL: Truth table approach Is the Truth-table approach a viable approach for the FOL? NO! Why? It would require us to enumerate and list all possible interpretations I I = (assignments of symbols to objects, predicates to relations and functions to relational mappings) Simply there are too many interpretations Inference in FOL: Inference rules Is the Inference rule approach a viable approach for the FOL? Yes. The inference rules represent sound inference patterns one can apply to sentences in the KB What is derived follows from the KB Caveat: we need to add rules for handling quantifiers
5 Inference rules Inference rules from the propositional logic: Modus ponens A B, A B Resolution A B, B C A C and others: And-introduction, And-elimination, Orintroduction, Negation elimination Additional inference rules are needed for sentences with quantifiers and variables Must involve variable substitutions Sentences with variables First-order logic sentences can include variables. Variable is: Bound if it is in the scope of some quantifier x P(x) Free if it is not bound. x P( Q( x) y is free Sentence (formula) is: Closed if it has no free variables y x P( Q( x) Open if it is not closed Ground if it does not have any variables Likes( Jane)
6 Variable substitutions Variables in the sentences can be substituted with terms. (terms = constants, variables, functions) Substitution: Is represented by a mapping from variables to terms { 2 x1 / t1, x2 / t, K} Application of the substitution to sentences SUBST ({ x / Sam, y / Pam}, Likes( x, ) = Likes( Sam, Pam) SUBST ({ x / z, y / fatherof ( John)}, Likes( x, ) = Likes( z, fatherof ( John)) Inference rules for quantifiers Universal elimination x φ ( x) φ ( a) substitutes a variable with a constant symbol Existential elimination. x φ ( x) φ ( a) a - is a constant symbol x Likes( x, IceCream) Likes( Ben, IceCream) Substitutes a variable with a constant symbol that does not appear elsewhere in the KB x Kill( x, Victim) Kill( Murderer, Victim)
7 Inference rules for quantifiers Universal instantiation (introduction) φ x is not free in φ x φ Introduces a universal variable which does not affect φ or its assumptions Sister ( Amy, Jane) x Sister( Amy, Jane) Existential instantiation (introduction) φ ( a) a is a ground term in φ xφ ( x) x is not free in φ Substitutes a ground term in the sentence with a variable and an existential statement Likes( Ben, IceCream) x Likes( x, IceCream) Unification Problem in inference: Universal elimination gives many opportunities for substituting variables with ground terms x φ ( x) a - is a constant symbol φ ( a) Solution: Try substitutions that may help Use substitutions of similar sentences in KB Unification takes two similar sentences and computes the substitution that makes them look the same, if it exists UNIFY ( p, q) = σ s.t. SUBST( σ, p) = SUBST ( σ, q)
8 Unification. Examples. Unification: UNIFY ( p, q) = σ s.t. SUBST( σ, p) = SUBST ( σ, q) Examples: UNIFY ( Knows( Knows( Jane)) = { x / Jane} UNIFY( Knows( Knows( y, Ann)) =? UNIFY ( Knows ( Knows ( y, MotherOf =? ( )) UNIFY ( Knows ( Knows ( x, Elizabeth )) =? Unification. Examples. Unification: UNIFY ( p, q) = σ s.t. SUBST( σ, p) = SUBST ( σ, q) Examples: UNIFY ( Knows( Knows( Jane)) = { x / Jane} UNIFY ( Knows( Knows( y, Ann)) = { x / Ann, y / John} UNIFY ( Knows ( Knows ( y, MotherOf =? ( )) UNIFY ( Knows ( Knows ( x, Elizabeth )) =?
9 Unification. Examples. Unification: UNIFY ( p, q) = σ s.t. SUBST( σ, p) = SUBST ( σ, q) Examples: UNIFY ( Knows( Knows( Jane)) = { x / Jane} UNIFY ( Knows( Knows( y, Ann)) = { x / Ann, y / John} UNIFY ( Knows ( Knows ( y, MotherOf ( )) = { x / MotherOf ( John), y / John} UNIFY ( Knows ( Knows ( x, Elizabeth )) =? Unification. Examples. Unification: UNIFY ( p, q) = σ s.t. SUBST( σ, p) = SUBST ( σ, q) Examples: UNIFY ( Knows( Knows( Jane)) = { x / Jane} UNIFY ( Knows( Knows( y, Ann)) = { x / Ann, y / John} UNIFY ( Knows ( Knows ( y, MotherOf ( )) = { x / MotherOf ( John), y / John} UNIFY ( Knows ( Knows ( x, Elizabeth )) = fail
10 Generalized inference rules. Use substitutions that let us make inferences Example: Modus Ponens If there exists a substitution σ such that SUBST A 1 ( σ, Ai ) = SUBST ( σ, Ai ') A 2 K An B A1 ', A SUBST ( σ, B), 2 for all i=1,2, n ', K A Substitution that satisfies the generalized inference rule can be build via unification process Advantage of the generalized rules: they are focused only substitutions that allow the inferences to proceed n ' Resolution inference rule Recall: Resolution inference rule is sound and complete (refutation-complete) for the propositional logic and CNF A B, A C B C Generalized resolution rule is sound and refutation complete for the first-order logic and CNF w/o equalities (if unsatisfiable the resolution will find the contradiction) φ1 φ2 K φk, ψ1 ψ 2 Kψ n SUBST( σ, φ K φ φ K φ ψ K ψ Example: 1 σ = UNIFY ( φ, ψ ) i 1 i+ 1 i k j 1 fail P( x) Q( Q( John) S( P( John) S( j 1 ψ j+ 1 Kψ ) n
11 Inference with the resolution rule Proof by refutation: Prove that KB, α is unsatisfiable resolution is refutation-complete Main procedure (steps): 1. Convert KB, α to CNF with ground terms and universal variables only 2. Apply repeatedly the resolution rule while keeping track and consistency of substitutions 3. Stop when empty set (contradiction) is derived or no more new resolvents (conclusions) follow Conversion to CNF 1. Eliminate implications, equivalences ( p q) ( p q) 2. Move negations inside (DeMorgan s Laws, double negation) ( p q) p q ( p q) p q x p x p x p x p p p 3. Standardize variables (rename duplicate variables) ( x P( x)) ( x Q ( x)) ( x P( x)) ( y Q ( )
12 Conversion to CNF 4. Move all quantifiers left (no invalid capture possible ) ( x P( x)) ( y Q ( ) x y P( x) Q ( 5. Skolemization (removal of existential quantifiers through elimination) If no universal quantifier occurs before the existential quantifier, replace the variable with a new constant symbol y P( A) Q ( P( A) Q ( B) If a universal quantifier precede the existential quantifier replace the variable with a function of the universal variable x y P( x) Q ( x P( x) Q ( F ( x)) F ( x) - a Skolem function Conversion to CNF 6. Drop universal quantifiers (all variables are universally quantified) x P( x) Q ( F ( x)) P( x) Q ( F ( x)) 7. Convert to CNF using the distributive laws p ( q r) ( p q) ( p r) The result is a CNF with variables, constants, functions
13 Resolution example KB P( w) Q ( w), Q( S (, P( x) R( x), R( S (, α S(A) Resolution example KB P( w) Q ( w), Q( S (, P( x) R( x), R( S (, α S(A) { y / w} P( w) S ( w)
14 Resolution example KB P( w) Q ( w), Q( S (, P( x) R( x), R( S (, α S(A) { y / w} P( w) S ( w) { x / w} S ( w) R( w) Resolution example KB P( w) Q ( w), Q( S (, P( x) R( x), R( S (, α S(A) { y / w} P( w) S ( w) { x / w} S ( w) R( w) { z / w} S (w)
15 Resolution example KB P( w) Q ( w), Q( S (, P( x) R( x), R( S (, α S(A) { y / w} P( w) S ( w) { x / w} S ( w) R( w) { z / w} KB = α S (w) { w / A} Contradiction Dealing with equality Resolution works for first-order logic without equalities To incorporate equalities we need an additional inference rule Demodulation rule σ = UNIFY φ i, t ) ( 1 φ1 φ2k φk, SUBST({ SUBST( σ, t )/ SUBST( σ, t 1 fail Example: P ( f ( a)), f ( x) = x P( a) Paramodulation rule: more powerful Resolution+paramodulation give a refutation-complete proof theory for FOL 2 t1 = t2 )}, φ K φ 1 i 1 φ K φ i+ 1 k
16 Sentences in Horn normal form Horn normal form (HNF) in the propositional logic a special type of clause with at most one positive literal ( A B) ( A C D ) Typically written as: A clause with one literal, e.g. A, is also called a fact A clause representing an implication (with a conjunction of positive literals in antecedent and one positive literal in consequent), is also called a rule Generalized Modus ponens: ( B A) (( A C ) D ) is the complete inference rule for KBs in the Horn normal form. Not all KBs are convertible to HNF!!! Horn normal form in FOL First-order logic (FOL) adds variables and quantifiers, works with terms Generalized modus ponens rule: σ = a substitution s.t. i SUBST( σ, φi ') = SUBST( σ, φi ) φ1', φ 2 ' K, φ n ', φ1 φ 2 Kφ n τ SUBST ( σ, τ ) Generalized modus ponens: is complete for the KBs with sentences in Horn form; Not all first-order logic sentences can be expressed in this form
17 Forward and backward chaining Two inference procedures based on modus ponens for Horn KBs: Forward chaining Idea: Whenever the premises of a rule are satisfied, infer the conclusion. Continue with rules that became satisfied. Typical usage: If we want to infer all sentences entailed by the existing KB. Backward chaining (goal reduction) Idea: To prove the fact that appears in the conclusion of a rule prove the premises of the rule. Continue recursively. Typical usage: If we want to prove that the target (goal) sentence α is entailed by the existing KB. Both procedures are complete for KBs in Horn form!!! Forward chaining example Forward chaining Idea: Whenever the premises of a rule are satisfied, infer the conclusion. Continue with rules that became satisfied Assume the KB with the following rules: KB: R1: Steamboat ( x) Sailboat ( R2: R3: F1: F2: F3: Sailboat ( RowBoat ( Faster ( y, Faster ( x, Faster ( y, Steamboat (Titanic ) Sailboat (Mistral ) RowBoat(PondArrow) Theorem: Faster ( Titanic, PondArrow )?
18 Forward chaining example KB: R1: R2: R3: Steamboat ( x) Sailboat ( Sailboat ( RowBoat ( Faster ( y, Faster ( x, Faster ( y, F1: Steamboat (Titanic ) F2: Sailboat (Mistral ) F3: RowBoat(PondArrow)? Forward chaining example KB: R1: R2: R3: Steamboat ( x) Sailboat ( Sailboat ( RowBoat ( Faster ( y, Faster ( x, Faster ( y, F1: Steamboat (Titanic ) F2: Sailboat (Mistral ) F3: RowBoat(PondArrow) Rule R1 is satisfied: F4: Faster( Titanic, Mistral)
19 Forward chaining example KB: R1: R2: R3: Steamboat ( x) Sailboat ( Sailboat ( RowBoat ( Faster ( y, Faster ( x, Faster ( y, F1: Steamboat (Titanic ) F2: Sailboat (Mistral ) F3: RowBoat(PondArrow) Rule R1 is satisfied: F4: Faster( Titanic, Mistral) Rule R2 is satisfied: F5: Faster( Mistral, PondArrow) Forward chaining example KB: R1: R2: R3: Steamboat ( x) Sailboat ( Sailboat ( RowBoat ( Faster ( y, Faster ( x, Faster ( y, F1: Steamboat (Titanic ) F2: Sailboat (Mistral ) F3: RowBoat(PondArrow) Rule R1 is satisfied: F4: Faster( Titanic, Mistral) Rule R2 is satisfied: F5: Faster( Mistral, PondArrow) Rule R3 is satisfied: F6: Faster( Titanic, PondArrow)
20 Backward chaining example Backward chaining (goal reduction) Idea: To prove the fact that appears in the conclusion of a rule prove the antecedents (if part) of the rule & repeat recursively. KB: R1: R2: R3: F1: F2: F3: Steamboat ( x) Sailboat ( Sailboat ( RowBoat ( Faster ( y, Faster ( x, Faster ( y, Steamboat (Titanic ) Sailboat (Mistral ) RowBoat(PondArrow) Theorem: Faster ( Titanic, PondArrow ) Backward chaining example Steamboat(Titanic) Faster ( Titanic, PondArrow ) R1 F1: Steamboat (Titanic ) F2: Sailboat (Mistral ) F3: RowBoat(PondArrow) Sailboat(PondArrow) Steamboat ( x) Sailboat ( Faster ( Titanic, PondArrow ) { x / Titanic, y / PondArrow}
21 Backward chaining example Steamboat(Titanic) Faster( Titanic, PondArrow) R1 R2 Sailboat(Titanic) F1: Steamboat (Titanic ) F2: Sailboat (Mistral ) F3: RowBoat(PondArrow) Sailboat (PondArrow) RowBoat(PondArrow) Sailboat ( RowBoat ( Faster ( y, Faster ( Titanic, PondArrow ) { y / Titanic, z / PondArrow} Backward chaining example Faster( Titanic, PondArrow) R1 R2 R3 F1: Steamboat (Titanic ) F2: Sailboat (Mistral ) F3: RowBoat(PondArrow) Steamboat(Titanic) Sailboat(Titanic) Faster( y, PondArrow) Faster( Titanic, Sailboat (PondArrow) RowBoat(PondArrow) Steamboat(Titanic) R1 R2 Sailboat(Mistral) Sailboat(Mistral) RowBoat(PondArrow)
22 Backward chaining Faster( Titanic, PondArrow) y must be bound to R1 the same term R2 R3 Steamboat(Titanic) Sailboat(Titanic) Faster( y, PondArrow) Faster( Titanic, Sailboat(PondArrow) RowBoat(PondArrow) Steamboat(Titanic) R1 R2 Sailboat(Mistral) Sailboat(Mistral) RowBoat(PondArrow) Backward chaining The search tree: AND/OR tree Special search algorithms exits (including heuristics): AO, AO* Faster ( Titanic, PondArrow ) R1 R3 R2 Steamboat(Titanic) Sailboat(Titanic) Faster( y, PondArrow) Faster( Titanic, Sailboat(PondArrow) RowBoat(PondArrow) Steamboat(Titanic) R1 R2 Sailboat(Mistral) Sailboat(Mistral) RowBoat (PondArrow)
Logic in general. Inference rules and theorem proving
Logical Agents Knowledge-based agents Logic in general Propositional logic Inference rules and theorem proving First order logic Knowledge-based agents Inference engine Knowledge base Domain-independent
More informationLecture 8: Resolution theorem-proving
Comp24412 Symbolic AI Lecture 8: Resolution theorem-proving Ian Pratt-Hartmann Room KB2.38: email: ipratt@cs.man.ac.uk 2014 15 In the previous Lecture, we met SATCHMO, a first-order theorem-prover implemented
More informationLecture 13 of 41. More Propositional and Predicate Logic
Lecture 13 of 41 More Propositional and Predicate Logic Monday, 20 September 2004 William H. Hsu, KSU http://www.kddresearch.org http://www.cis.ksu.edu/~bhsu Reading: Sections 8.1-8.3, Russell and Norvig
More informationExample: Backward Chaining. Inference Strategy: Backward Chaining. First-Order Logic. Knowledge Engineering. Example: Proof
Inference Strategy: Backward Chaining Idea: Check whether a particular fact q is true. Backward Chaining: Given a fact q to be proven, 1. See if q is already in the KB. If so, return TRUE. 2. Find all
More informationCHAPTER 7 GENERAL PROOF SYSTEMS
CHAPTER 7 GENERAL PROOF SYSTEMS 1 Introduction Proof systems are built to prove statements. They can be thought as an inference machine with special statements, called provable statements, or sometimes
More informationSound and Complete Inference Rules in FOL
Sound and Complete Inference Rules in FOL An inference rule i is called sound if KB = α whenever KB i α An inference rule i is called complete if KB i α whenever KB = α Generalised Modus-Ponens (equivalently,
More informationCS510 Software Engineering
CS510 Software Engineering Propositional Logic Asst. Prof. Mathias Payer Department of Computer Science Purdue University TA: Scott A. Carr Slides inspired by Xiangyu Zhang http://nebelwelt.net/teaching/15-cs510-se
More informationON FUNCTIONAL SYMBOL-FREE LOGIC PROGRAMS
PROCEEDINGS OF THE YEREVAN STATE UNIVERSITY Physical and Mathematical Sciences 2012 1 p. 43 48 ON FUNCTIONAL SYMBOL-FREE LOGIC PROGRAMS I nf or m at i cs L. A. HAYKAZYAN * Chair of Programming and Information
More information2. The Language of First-order Logic
2. The Language of First-order Logic KR & R Brachman & Levesque 2005 17 Declarative language Before building system before there can be learning, reasoning, planning, explanation... need to be able to
More informationLikewise, we have contradictions: formulas that can only be false, e.g. (p p).
CHAPTER 4. STATEMENT LOGIC 59 The rightmost column of this truth table contains instances of T and instances of F. Notice that there are no degrees of contingency. If both values are possible, the formula
More informationCourse Outline Department of Computing Science Faculty of Science. COMP 3710-3 Applied Artificial Intelligence (3,1,0) Fall 2015
Course Outline Department of Computing Science Faculty of Science COMP 710 - Applied Artificial Intelligence (,1,0) Fall 2015 Instructor: Office: Phone/Voice Mail: E-Mail: Course Description : Students
More informationCertamen 1 de Representación del Conocimiento
Certamen 1 de Representación del Conocimiento Segundo Semestre 2012 Question: 1 2 3 4 5 6 7 8 9 Total Points: 2 2 1 1 / 2 1 / 2 3 1 1 / 2 1 1 / 2 12 Here we show one way to solve each question, but there
More informationPredicate Logic. Example: All men are mortal. Socrates is a man. Socrates is mortal.
Predicate Logic Example: All men are mortal. Socrates is a man. Socrates is mortal. Note: We need logic laws that work for statements involving quantities like some and all. In English, the predicate is
More informationLogical Agents. Explorations in Artificial Intelligence. Knowledge-based Agents. Knowledge-base Agents. Outline. Knowledge bases
Logical Agents Explorations in Artificial Intelligence rof. Carla. Gomes gomes@cs.cornell.edu Agents that are able to: Form representations of the world Use a process to derive new representations of the
More informationResolution. Informatics 1 School of Informatics, University of Edinburgh
Resolution In this lecture you will see how to convert the natural proof system of previous lectures into one with fewer operators and only one proof rule. You will see how this proof system can be used
More informationDISCRETE MATH: LECTURE 3
DISCRETE MATH: LECTURE 3 DR. DANIEL FREEMAN 1. Chapter 2.2 Conditional Statements If p and q are statement variables, the conditional of q by p is If p then q or p implies q and is denoted p q. It is false
More informationHandout #1: Mathematical Reasoning
Math 101 Rumbos Spring 2010 1 Handout #1: Mathematical Reasoning 1 Propositional Logic A proposition is a mathematical statement that it is either true or false; that is, a statement whose certainty or
More information15-780: Graduate AI Lecture 3. FOL proofs. Geoff Gordon (this lecture) Tuomas Sandholm TAs Erik Zawadzki, Abe Othman
15-780: Graduate AI Lecture 3. FOL proofs Geoff Gordon (this lecture) Tuomas Sandholm TAs Erik Zawadzki, Abe Othman Admin 2 HW1 Out today Due Tue, Feb. 1 (two weeks) hand in hardcopy at beginning of class
More information3. Mathematical Induction
3. MATHEMATICAL INDUCTION 83 3. Mathematical Induction 3.1. First Principle of Mathematical Induction. Let P (n) be a predicate with domain of discourse (over) the natural numbers N = {0, 1,,...}. If (1)
More informationdef: An axiom is a statement that is assumed to be true, or in the case of a mathematical system, is used to specify the system.
Section 1.5 Methods of Proof 1.5.1 1.5 METHODS OF PROOF Some forms of argument ( valid ) never lead from correct statements to an incorrect. Some other forms of argument ( fallacies ) can lead from true
More information(LMCS, p. 317) V.1. First Order Logic. This is the most powerful, most expressive logic that we will examine.
(LMCS, p. 317) V.1 First Order Logic This is the most powerful, most expressive logic that we will examine. Our version of first-order logic will use the following symbols: variables connectives (,,,,
More informationComputational Logic and Cognitive Science: An Overview
Computational Logic and Cognitive Science: An Overview Session 1: Logical Foundations Technical University of Dresden 25th of August, 2008 University of Osnabrück Who we are Helmar Gust Interests: Analogical
More informationHigh Integrity Software Conference, Albuquerque, New Mexico, October 1997.
Meta-Amphion: Scaling up High-Assurance Deductive Program Synthesis Steve Roach Recom Technologies NASA Ames Research Center Code IC, MS 269-2 Moffett Field, CA 94035 sroach@ptolemy.arc.nasa.gov Jeff Van
More informationPredicate Logic. For example, consider the following argument:
Predicate Logic The analysis of compound statements covers key aspects of human reasoning but does not capture many important, and common, instances of reasoning that are also logically valid. For example,
More informationCHAPTER 3. Methods of Proofs. 1. Logical Arguments and Formal Proofs
CHAPTER 3 Methods of Proofs 1. Logical Arguments and Formal Proofs 1.1. Basic Terminology. An axiom is a statement that is given to be true. A rule of inference is a logical rule that is used to deduce
More informationAUTOMATED REASONING SLIDES 3: RESOLUTION The resolution rule Unification Refutation by resolution Factoring Clausal Form and Skolemisation
AUTOMATED REASONING SLIDES 3: RESOLUTION The resolution rule Unification Refutation by resolution Factoring Clausal Form and Skolemisation KB - AR - 09 Resolution Resolution is a clausal refutation system
More informationSchedule. Logic (master program) Literature & Online Material. gic. Time and Place. Literature. Exercises & Exam. Online Material
OLC mputational gic Schedule Time and Place Thursday, 8:15 9:45, HS E Logic (master program) Georg Moser Institute of Computer Science @ UIBK week 1 October 2 week 8 November 20 week 2 October 9 week 9
More informationDiscrete Mathematics and Probability Theory Fall 2009 Satish Rao, David Tse Note 2
CS 70 Discrete Mathematics and Probability Theory Fall 2009 Satish Rao, David Tse Note 2 Proofs Intuitively, the concept of proof should already be familiar We all like to assert things, and few of us
More information196 Chapter 7. Logical Agents
7 LOGICAL AGENTS In which we design agents that can form representations of the world, use a process of inference to derive new representations about the world, and use these new representations to deduce
More informationExtending Semantic Resolution via Automated Model Building: applications
Extending Semantic Resolution via Automated Model Building: applications Ricardo Caferra Nicolas Peltier LIFIA-IMAG L1F1A-IMAG 46, Avenue Felix Viallet 46, Avenue Felix Viallei 38031 Grenoble Cedex FRANCE
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 Now that we have a basic understanding
More informationFoundational Proof Certificates
An application of proof theory to computer science INRIA-Saclay & LIX, École Polytechnique CUSO Winter School, Proof and Computation 30 January 2013 Can we standardize, communicate, and trust formal proofs?
More informationMathematics for Computer Science/Software Engineering. Notes for the course MSM1F3 Dr. R. A. Wilson
Mathematics for Computer Science/Software Engineering Notes for the course MSM1F3 Dr. R. A. Wilson October 1996 Chapter 1 Logic Lecture no. 1. We introduce the concept of a proposition, which is a statement
More informationFirst-Order Logics and Truth Degrees
First-Order Logics and Truth Degrees George Metcalfe Mathematics Institute University of Bern LATD 2014, Vienna Summer of Logic, 15-19 July 2014 George Metcalfe (University of Bern) First-Order Logics
More information6.080/6.089 GITCS Feb 12, 2008. Lecture 3
6.8/6.89 GITCS Feb 2, 28 Lecturer: Scott Aaronson Lecture 3 Scribe: Adam Rogal Administrivia. Scribe notes The purpose of scribe notes is to transcribe our lectures. Although I have formal notes of my
More informationBeyond Propositional Logic Lukasiewicz s System
Beyond Propositional Logic Lukasiewicz s System Consider the following set of truth tables: 1 0 0 1 # # 1 0 # 1 1 0 # 0 0 0 0 # # 0 # 1 0 # 1 1 1 1 0 1 0 # # 1 # # 1 0 # 1 1 0 # 0 1 1 1 # 1 # 1 Brandon
More informationCorrespondence analysis for strong three-valued logic
Correspondence analysis for strong three-valued logic A. Tamminga abstract. I apply Kooi and Tamminga s (2012) idea of correspondence analysis for many-valued logics to strong three-valued logic (K 3 ).
More informationDEDUCTIVE & INDUCTIVE REASONING
DEDUCTIVE & INDUCTIVE REASONING Expectations 1. Take notes on inductive and deductive reasoning. 2. This is an information based presentation -- I simply want you to be able to apply this information to
More informationPredicate logic Proofs Artificial intelligence. Predicate logic. SET07106 Mathematics for Software Engineering
Predicate logic SET07106 Mathematics for Software Engineering School of Computing Edinburgh Napier University Module Leader: Uta Priss 2010 Copyright Edinburgh Napier University Predicate logic Slide 1/24
More informationPropositional Logic. A proposition is a declarative sentence (a sentence that declares a fact) that is either true or false, but not both.
irst Order Logic Propositional Logic A proposition is a declarative sentence (a sentence that declares a fact) that is either true or false, but not both. Are the following sentences propositions? oronto
More informationBasic Proof Techniques
Basic Proof Techniques David Ferry dsf43@truman.edu September 13, 010 1 Four Fundamental Proof Techniques When one wishes to prove the statement P Q there are four fundamental approaches. This document
More informationChapter 7 Uncomputability
Chapter 7 Uncomputability 190 7.1 Introduction Undecidability of concrete problems. First undecidable problem obtained by diagonalisation. Other undecidable problems obtained by means of the reduction
More informationWe would like to state the following system of natural deduction rules preserving falsity:
A Natural Deduction System Preserving Falsity 1 Wagner de Campos Sanz Dept. of Philosophy/UFG/Brazil sanz@fchf.ufg.br Abstract This paper presents a natural deduction system preserving falsity. This new
More informationRules of Inference Friday, January 18, 2013 Chittu Tripathy Lecture 05
Rules of Inference Today s Menu Rules of Inference Quantifiers: Universal and Existential Nesting of Quantifiers Applications Old Example Re-Revisited Our Old Example: Suppose we have: All human beings
More informationAutomated Theorem Proving - summary of lecture 1
Automated Theorem Proving - summary of lecture 1 1 Introduction Automated Theorem Proving (ATP) deals with the development of computer programs that show that some statement is a logical consequence of
More informationJaakko Hintikka Boston University. and. Ilpo Halonen University of Helsinki INTERPOLATION AS EXPLANATION
Jaakko Hintikka Boston University and Ilpo Halonen University of Helsinki INTERPOLATION AS EXPLANATION INTERPOLATION AS EXPLANATION In the study of explanation, one can distinguish two main trends. On
More informationFixed-Point Logics and Computation
1 Fixed-Point Logics and Computation Symposium on the Unusual Effectiveness of Logic in Computer Science University of Cambridge 2 Mathematical Logic Mathematical logic seeks to formalise the process of
More informationFormal Engineering for Industrial Software Development
Shaoying Liu Formal Engineering for Industrial Software Development Using the SOFL Method With 90 Figures and 30 Tables Springer Contents Introduction 1 1.1 Software Life Cycle... 2 1.2 The Problem 4 1.3
More informationSummary of Last Lecture. Automated Reasoning. Outline of the Lecture. Definition. Example. Lemma non-redundant superposition inferences are liftable
Summary Automated Reasoning Georg Moser Institute of Computer Science @ UIBK Summary of Last Lecture C A D B (C D)σ C s = t D A[s ] (C D A[t])σ ORe OPm(L) C s = t D u[s ] v SpL (C D u[t] v)σ C s t Cσ ERR
More informationBounded-width QBF is PSPACE-complete
Bounded-width QBF is PSPACE-complete Albert Atserias 1 and Sergi Oliva 2 1 Universitat Politècnica de Catalunya Barcelona, Spain atserias@lsi.upc.edu 2 Universitat Politècnica de Catalunya Barcelona, Spain
More informationDecision making in the presence of uncertainty II
CS 274 Knowledge representation Lecture 23 Decision making in the presence of uncertainty II Milos Hauskrecht milos@cs.pitt.edu 5329 Sennott Square Information-gathering actions Many actions and their
More informationArtificial Intelligence
Artificial Intelligence ICS461 Fall 2010 1 Lecture #12B More Representations Outline Logics Rules Frames Nancy E. Reed nreed@hawaii.edu 2 Representation Agents deal with knowledge (data) Facts (believe
More informationSatisfiability Checking
Satisfiability Checking SAT-Solving Prof. Dr. Erika Ábrahám Theory of Hybrid Systems Informatik 2 WS 10/11 Prof. Dr. Erika Ábrahám - Satisfiability Checking 1 / 40 A basic SAT algorithm Assume the CNF
More informationML for the Working Programmer
ML for the Working Programmer 2nd edition Lawrence C. Paulson University of Cambridge CAMBRIDGE UNIVERSITY PRESS CONTENTS Preface to the Second Edition Preface xiii xv 1 Standard ML 1 Functional Programming
More informationUniversity of Ostrava. Reasoning in Description Logic with Semantic Tableau Binary Trees
University of Ostrava Institute for Research and Applications of Fuzzy Modeling Reasoning in Description Logic with Semantic Tableau Binary Trees Alena Lukasová Research report No. 63 2005 Submitted/to
More informationOn the Use of Logical Abduction in Software Engineering
On the Use of Logical Abduction in Software Engineering ALESSANDRA RUSSO and BASHAR NUSEIBEH Department of Computing, Imperial College of Science, Technology and Medicine London SW7 2BZ, U.K. E-mail:{ar3,
More informationComputational Methods for Database Repair by Signed Formulae
Computational Methods for Database Repair by Signed Formulae Ofer Arieli (oarieli@mta.ac.il) Department of Computer Science, The Academic College of Tel-Aviv, 4 Antokolski street, Tel-Aviv 61161, Israel.
More informationCS91.543 MidTerm Exam 4/1/2004 Name: KEY. Page Max Score 1 18 2 11 3 30 4 15 5 45 6 20 Total 139
CS91.543 MidTerm Exam 4/1/2004 Name: KEY Page Max Score 1 18 2 11 3 30 4 15 5 45 6 20 Total 139 % INTRODUCTION, AI HISTORY AND AGENTS 1. [4 pts. ea.] Briefly describe the following important AI programs.
More informationWRITING PROOFS. Christopher Heil Georgia Institute of Technology
WRITING PROOFS Christopher Heil Georgia Institute of Technology A theorem is just a statement of fact A proof of the theorem is a logical explanation of why the theorem is true Many theorems have this
More informationNP-Completeness and Cook s Theorem
NP-Completeness and Cook s Theorem Lecture notes for COM3412 Logic and Computation 15th January 2002 1 NP decision problems The decision problem D L for a formal language L Σ is the computational task:
More informationLecture Notes in Discrete Mathematics. Marcel B. Finan Arkansas Tech University c All Rights Reserved
Lecture Notes in Discrete Mathematics Marcel B. Finan Arkansas Tech University c All Rights Reserved 2 Preface This book is designed for a one semester course in discrete mathematics for sophomore or junior
More informationSolutions Q1, Q3, Q4.(a), Q5, Q6 to INTLOGS16 Test 1
Solutions Q1, Q3, Q4.(a), Q5, Q6 to INTLOGS16 Test 1 Prof S Bringsjord 0317161200NY Contents I Problems 1 II Solutions 3 Solution to Q1 3 Solutions to Q3 4 Solutions to Q4.(a) (i) 4 Solution to Q4.(a)........................................
More informationPredicate logic. Logic in computer science. Logic in Computer Science (lecture) PART II. first order logic
PART II. Predicate logic first order logic Logic in computer science Seminar: INGK401-K5; INHK401; INJK401-K4 University of Debrecen, Faculty of Informatics kadek.tamas@inf.unideb.hu 1 / 19 Alphabets Logical
More informationApplied Logic in Engineering
Applied Logic in Engineering Logic Programming Technische Universität München Institut für Informatik Software & Systems Engineering Dr. Maria Spichkova M. Spichkova WS 2012/13: Applied Logic in Engineering
More informationOverview of the TACITUS Project
Overview of the TACITUS Project Jerry R. Hobbs Artificial Intelligence Center SRI International 1 Aims of the Project The specific aim of the TACITUS project is to develop interpretation processes for
More informationChapter 1. Use the following to answer questions 1-5: In the questions below determine whether the proposition is TRUE or FALSE
Use the following to answer questions 1-5: Chapter 1 In the questions below determine whether the proposition is TRUE or FALSE 1. 1 + 1 = 3 if and only if 2 + 2 = 3. 2. If it is raining, then it is raining.
More informationThe Classes P and NP
The Classes P and NP We now shift gears slightly and restrict our attention to the examination of two families of problems which are very important to computer scientists. These families constitute the
More informationWOLLONGONG COLLEGE AUSTRALIA. Diploma in Information Technology
First Name: Family Name: Student Number: Class/Tutorial: WOLLONGONG COLLEGE AUSTRALIA A College of the University of Wollongong Diploma in Information Technology Mid-Session Test Summer Session 008-00
More informationThe Modal Logic Programming System MProlog
The Modal Logic Programming System MProlog Linh Anh Nguyen Institute of Informatics, University of Warsaw ul. Banacha 2, 02-097 Warsaw, Poland nguyen@mimuw.edu.pl Abstract. We present the design of our
More informationElementary Number Theory and Methods of Proof. CSE 215, Foundations of Computer Science Stony Brook University http://www.cs.stonybrook.
Elementary Number Theory and Methods of Proof CSE 215, Foundations of Computer Science Stony Brook University http://www.cs.stonybrook.edu/~cse215 1 Number theory Properties: 2 Properties of integers (whole
More informationTheory of Automated Reasoning An Introduction. Antti-Juhani Kaijanaho
Theory of Automated Reasoning An Introduction Antti-Juhani Kaijanaho Intended as compulsory reading for the Spring 2004 course on Automated Reasononing at Department of Mathematical Information Technology,
More information! " # The Logic of Descriptions. Logics for Data and Knowledge Representation. Terminology. Overview. Three Basic Features. Some History on DLs
,!0((,.+#$),%$(-&.& *,2(-$)%&2.'3&%!&, Logics for Data and Knowledge Representation Alessandro Agostini agostini@dit.unitn.it University of Trento Fausto Giunchiglia fausto@dit.unitn.it The Logic of Descriptions!$%&'()*$#)
More informationCS 103X: Discrete Structures Homework Assignment 3 Solutions
CS 103X: Discrete Structures Homework Assignment 3 s Exercise 1 (20 points). On well-ordering and induction: (a) Prove the induction principle from the well-ordering principle. (b) Prove the well-ordering
More informationMath 3000 Section 003 Intro to Abstract Math Homework 2
Math 3000 Section 003 Intro to Abstract Math Homework 2 Department of Mathematical and Statistical Sciences University of Colorado Denver, Spring 2012 Solutions (February 13, 2012) Please note that these
More informationFORMALLY CERTIFIED SATISFIABILITY SOLVING. Duck Ki Oe. An Abstract
FORMALLY CERTIFIED SATISFIABILITY SOLVING by Duck Ki Oe An Abstract Of a thesis submitted in partial fulfillment of the requirements for the Doctor of Philosophy degree in Computer Science in the Graduate
More informationCSE 135: Introduction to Theory of Computation Decidability and Recognizability
CSE 135: Introduction to Theory of Computation Decidability and Recognizability Sungjin Im University of California, Merced 04-28, 30-2014 High-Level Descriptions of Computation Instead of giving a Turing
More informationCS 3719 (Theory of Computation and Algorithms) Lecture 4
CS 3719 (Theory of Computation and Algorithms) Lecture 4 Antonina Kolokolova January 18, 2012 1 Undecidable languages 1.1 Church-Turing thesis Let s recap how it all started. In 1990, Hilbert stated a
More informationCSE 459/598: Logic for Computer Scientists (Spring 2012)
CSE 459/598: Logic for Computer Scientists (Spring 2012) Time and Place: T Th 10:30-11:45 a.m., M1-09 Instructor: Joohyung Lee (joolee@asu.edu) Instructor s Office Hours: T Th 4:30-5:30 p.m. and by appointment
More informationSummary Last Lecture. Automated Reasoning. Outline of the Lecture. Definition sequent calculus. Theorem (Normalisation and Strong Normalisation)
Summary Summary Last Lecture sequent calculus Automated Reasoning Georg Moser Institute of Computer Science @ UIBK Winter 013 (Normalisation and Strong Normalisation) let Π be a proof in minimal logic
More informationMathematical Induction. Lecture 10-11
Mathematical Induction Lecture 10-11 Menu Mathematical Induction Strong Induction Recursive Definitions Structural Induction Climbing an Infinite Ladder Suppose we have an infinite ladder: 1. We can reach
More informationFive High Order Thinking Skills
Five High Order Introduction The high technology like computers and calculators has profoundly changed the world of mathematics education. It is not only what aspects of mathematics are essential for learning,
More informationThe composition of Mappings in a Nautural Interface
Composing Schema Mappings: Second-Order Dependencies to the Rescue Ronald Fagin IBM Almaden Research Center fagin@almaden.ibm.com Phokion G. Kolaitis UC Santa Cruz kolaitis@cs.ucsc.edu Wang-Chiew Tan UC
More informationOptimizing Description Logic Subsumption
Topics in Knowledge Representation and Reasoning Optimizing Description Logic Subsumption Maryam Fazel-Zarandi Company Department of Computer Science University of Toronto Outline Introduction Optimization
More informationMATHEMATICS: CONCEPTS, AND FOUNDATIONS Vol. III - Logic and Computer Science - Phokion G. Kolaitis
LOGIC AND COMPUTER SCIENCE Phokion G. Kolaitis Computer Science Department, University of California, Santa Cruz, CA 95064, USA Keywords: algorithm, Armstrong s axioms, complete problem, complexity class,
More informationThe Recovery of a Schema Mapping: Bringing Exchanged Data Back
The Recovery of a Schema Mapping: Bringing Exchanged Data Back MARCELO ARENAS and JORGE PÉREZ Pontificia Universidad Católica de Chile and CRISTIAN RIVEROS R&M Tech Ingeniería y Servicios Limitada A schema
More informationFProlog: A language to Integrate Logic and Functional Programming
FProlog: A language to Integrate Logic and Functional Programming for Automated Assembly S. A. Hutchinson and A. C. Kak Robot Vision Laboratory School of Electrical Engineering Purdue University West Lafayette,
More informationPlan-Space Search. Searching for a Solution Plan in a Graph of Partial Plans
Plan-Space Search Searching for a Solution Plan in a Graph of Partial Plans Literature Malik Ghallab, Dana Nau, and Paolo Traverso. Automated Planning Theory and Practice, chapter 2 and 5. Elsevier/Morgan
More informationAnswers G53KRR 2009-10
s G53KRR 2009-10 1. (a) Express the following sentences in first-order logic, using unary predicates Fragile, Break, Fall, TennisBall. S1 Fragile things break if they fall S2 Tennis balls are not fragile
More informationCS Master Level Courses and Areas COURSE DESCRIPTIONS. CSCI 521 Real-Time Systems. CSCI 522 High Performance Computing
CS Master Level Courses and Areas The graduate courses offered may change over time, in response to new developments in computer science and the interests of faculty and students; the list of graduate
More informationCartesian Products and Relations
Cartesian Products and Relations Definition (Cartesian product) If A and B are sets, the Cartesian product of A and B is the set A B = {(a, b) :(a A) and (b B)}. The following points are worth special
More informationEQUATIONAL LOGIC AND ABSTRACT ALGEBRA * ABSTRACT
EQUATIONAL LOGIC AND ABSTRACT ALGEBRA * Taje I. Ramsamujh Florida International University Mathematics Department ABSTRACT Equational logic is a formalization of the deductive methods encountered in studying
More informationCopyright 2012 MECS I.J.Information Technology and Computer Science, 2012, 1, 50-63
I.J. Information Technology and Computer Science, 2012, 1, 50-63 Published Online February 2012 in MECS (http://www.mecs-press.org/) DOI: 10.5815/ijitcs.2012.01.07 Using Logic Programming to Represent
More informationLecture 2. What is the Normative Role of Logic?
Lecture 2. What is the Normative Role of Logic? What is the connection between (deductive) logic and rationality? One extreme: Frege. A law of logic is a law of rational thought. Seems problematic, if
More informationScalable Automated Symbolic Analysis of Administrative Role-Based Access Control Policies by SMT solving
Scalable Automated Symbolic Analysis of Administrative Role-Based Access Control Policies by SMT solving Alessandro Armando 1,2 and Silvio Ranise 2, 1 DIST, Università degli Studi di Genova, Italia 2 Security
More informationMinimum Satisfying Assignments for SMT
Minimum Satisfying Assignments for SMT Isil Dillig 1, Thomas Dillig 1, Kenneth L. McMillan 2, and Alex Aiken 3 1 College of William & Mary 2 Microsoft Research 3 Stanford University Abstract. A minimum
More informationDEFINABLE TYPES IN PRESBURGER ARITHMETIC
DEFINABLE TYPES IN PRESBURGER ARITHMETIC GABRIEL CONANT Abstract. We consider the first order theory of (Z, +,
More informationRegular Expressions with Nested Levels of Back Referencing Form a Hierarchy
Regular Expressions with Nested Levels of Back Referencing Form a Hierarchy Kim S. Larsen Odense University Abstract For many years, regular expressions with back referencing have been used in a variety
More informationFormal Logic, Algorithms, and Incompleteness! Robert Stengel! Robotics and Intelligent Systems MAE 345, Princeton University, 2015
Formal Logic, Algorithms, and Incompleteness! Robert Stengel! Robotics and Intelligent Systems MAE 345, Princeton University, 2015 Learning Objectives!! Principles of axiomatic systems and formal logic!!
More informationContinued Fractions and the Euclidean Algorithm
Continued Fractions and the Euclidean Algorithm Lecture notes prepared for MATH 326, Spring 997 Department of Mathematics and Statistics University at Albany William F Hammond Table of Contents Introduction
More informationFormalization of the CRM: Initial Thoughts
Formalization of the CRM: Initial Thoughts Carlo Meghini Istituto di Scienza e Tecnologie della Informazione Consiglio Nazionale delle Ricerche Pisa CRM SIG Meeting Iraklio, October 1st, 2014 Outline Overture:
More information