Syntax of First-Order Predicate Calculus (FOPC): 1. Alphabet Countable set of predicate symbols, each with specified arity  0. Countable set of function.

Slides:



Advertisements
Similar presentations
Artificial Intelligence
Advertisements

Completeness and Expressiveness
1 First order theories (Chapter 1, Sections 1.4 – 1.5)
First Order Logic Logic is a mathematical attempt to formalize the way we think. First-order predicate calculus was created in an attempt to mechanize.
First-Order Logic.
The Logic of Quantified Statements
Lecture 11: Datalog Tuesday, February 6, Outline Datalog syntax Examples Semantics: –Minimal model –Least fixpoint –They are equivalent Naive evaluation.
Answer Set Programming Overview Dr. Rogelio Dávila Pérez Profesor-Investigador División de Posgrado Universidad Autónoma de Guadalajara
Web Science & Technologies University of Koblenz ▪ Landau, Germany Advanced Data Modeling Minimal Models Steffen Staab TexPoint fonts used in EMF. Read.
1 Applied Computer Science II Resolution in FOL Luc De Raedt.
Outline Recap Knowledge Representation I Textbook: Chapters 6, 7, 9 and 10.
Computability and Complexity 9-1 Computability and Complexity Andrei Bulatov Logic Reminder (Cnt’d)
First-Order Logic. Limitations of propositional logic Suppose you want to say “All humans are mortal” –In propositional logic, you would need ~6.7 billion.
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.
Predicate Calculus.
1 First order theories. 2 Satisfiability The classic SAT problem: given a propositional formula , is  satisfiable ? Example:  Let x 1,x 2 be propositional.
Predicates and Quantifiers
Herbrand Models Logic Lecture 2. Example: Models  X(  Y((mother(X)  child_of(Y,X))  loves(X,Y))) mother(mary) child_of(tom,mary)
DEDUCTIVE DATABASE.
DECIDABILITY OF PRESBURGER ARITHMETIC USING FINITE AUTOMATA Presented by : Shubha Jain Reference : Paper by Alexandre Boudet and Hubert Comon.
SAT and SMT solvers Ayrat Khalimov (based on Georg Hofferek‘s slides) AKDV 2014.
1st-order Predicate Logic (FOL)
LDK R Logics for Data and Knowledge Representation First Order Logics (FOL) Originally by Alessandro Agostini and Fausto Giunchiglia Modified by Fausto.
Database Management Systems, R. Ramakrishnan1 Relational Calculus Chapter 4.
Many Sorted First-order Logic Student: Liuxing Kan Instructor: William Farmer Dept. of Computing and Software McMaster University, Hamilton, CA.
ARTIFICIAL INTELLIGENCE Lecture 3 Predicate Calculus.
1.  Provides the ability to access individual assertions. e.g. in Predicate calculus we may say: P denotes “It rained on Tuesday” but in predicate calculus.
CSE S. Tanimoto Horn Clauses and Unification 1 Horn Clauses and Unification Propositional Logic Clauses Resolution Predicate Logic Horn Clauses.
CS344: Introduction to Artificial Intelligence Lecture: Herbrand’s Theorem Proving satisfiability of logic formulae using semantic trees (from Symbolic.
CS621: Artificial Intelligence Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture 28– Interpretation; Herbrand Interpertation 30 th Sept, 2010.
Predicate Calculus Syntax Countable set of predicate symbols, each with specified arity  0. For example: clinical data with multiple tables of patient.
CS Introduction to AI Tutorial 8 Resolution Tutorial 8 Resolution.
Bertram Ludäscher Department of Computer Science & Engineering University of California, San Diego CSE-291: Ontologies in Data Integration.
Naïve Set Theory. Basic Definitions Naïve set theory is the non-axiomatic treatment of set theory. In the axiomatic treatment, which we will only allude.
0 Propositional logic versus first-order (predicate) logic The universe of discourse Constants, variables, terms and valuations Predicates as generalized.
1 Introduction to Abstract Mathematics Predicate Logic Instructor: Hayk Melikya Purpose of Section: To introduce predicate logic (or.
Automated reasoning with propositional and predicate logics Spring 2007, Juris Vīksna.
CS 285- Discrete Mathematics Lecture 4. Section 1.3 Predicate logic Predicate logic is an extension of propositional logic that permits concisely reasoning.
LDK R Logics for Data and Knowledge Representation First Order Logics (FOL) Originally by Alessandro Agostini and Fausto Giunchiglia Modified by Fausto.
1 First order theories (Chapter 1, Sections 1.4 – 1.5) From the slides for the book “Decision procedures” by D.Kroening and O.Strichman.
1 Knowledge Based Systems (CM0377) Lecture 6 (last modified 20th February 2002)
Web Science & Technologies University of Koblenz ▪ Landau, Germany Models in First Order Logics.
1 Reasoning with Infinite stable models Piero A. Bonatti presented by Axel Polleres (IJCAI 2001,
First-Order Logic Chapter 8 (not 8.1). Outline Why FOL? Why FOL? Syntax and semantics of FOL Syntax and semantics of FOL Using FOL Using FOL Wumpus world.
Semantics of Predicate Calculus For the propositional calculus, an interpretation was simply an assignment of truth values to the proposition letters of.
First-Order Logic Reading: C. 8 and C. 9 Pente specifications handed back at end of class.
Albert Gatt LIN3021 Formal Semantics Lecture 3. Aims This lecture is divided into two parts: 1. We make our first attempts at formalising the notion of.
ARTIFICIAL INTELLIGENCE [INTELLIGENT AGENTS PARADIGM] Professor Janis Grundspenkis Riga Technical University Faculty of Computer Science and Information.
First-Order Logic Semantics Reading: Chapter 8, , FOL Syntax and Semantics read: FOL Knowledge Engineering read: FOL.
1 Finite Model Theory Lecture 16 L  1  Summary and 0/1 Laws.
Web Science & Technologies University of Koblenz ▪ Landau, Germany Models in First Order Logics.
An Introduction to Classical Logic (propositional and Predicate Logic)
Lecture 041 Predicate Calculus Learning outcomes Students are able to: 1. Evaluate predicate 2. Translate predicate into human language and vice versa.
1 Finite Model Theory Lecture 5 Turing Machines and Finite Models.
1 Section 7.1 First-Order Predicate Calculus Predicate calculus studies the internal structure of sentences where subjects are applied to predicates existentially.
6/11/2016 Linear Resolution and Introduction to First Order Logic Michael Leuschel Softwaretechnik und Programmiersprachen Lecture 5.
Information Systems & Semantic Web University of Koblenz ▪ Landau, Germany Advanced Data Modeling Steffen Staab with Simon Schenk TexPoint fonts used in.
Introduction to Logic for Artificial Intelligence Lecture 2
The Propositional Calculus
Horn Clauses and Unification
Logics for Data and Knowledge Representation
Logics for Data and Knowledge Representation
Syntax of First-Order Predicate Calculus (FOPC): 1. Alphabet
Horn Clauses and Unification
Horn Clauses and Unification
Horn Clauses and Unification
Herbrand Logic Semantics
Horn Clauses and Unification
Logics for Data and Knowledge Representation
Presentation transcript:

Syntax of First-Order Predicate Calculus (FOPC): 1. Alphabet Countable set of predicate symbols, each with specified arity  0. Countable set of function symbols, each with specified arity  0. Function symbols with arity 0 are also called constants or individual symbols. Countable set of variables.

1. Alphabet (Continued) (Consistent with Prolog, we will begin variables with an upper-case letter and predicate/function symbols with a lower- case letter.) Logical symbols: , , , , , , 

2. Terms A variable is a term. If f is a function symbol of arity n and t 1,…,t n are terms then f(t 1,…,t n ) is a term.

Examples of Terms 0 s(s(s(0))) nil cons(1,nil) cons(1,cons(2,nil)) cons(1,cons(2,cons(3,nil)))

3. Formulas If p is a predicate symbol of arity n and t 1,…,t n are terms, then p(t 1,…,t n ) is an atomic formula. If  and  are formulas then so are   If X is a variable and  is a formula then  X  and  X  are formulas  We say that X is quantified in the formulas  X  and  X 

Some Notes Predicates of arity 0 are also called propositions, the only atomic formulas allowed in propositional logic. An expression is a term or formula. A formula with no free (unquantified) variables is a sentence.

Example: Models  X(  Y((mother(X)  child_of(Y,X))  loves(X,Y))) mother(mary) child_of(tom,mary)

Example: Models  X(  Y((mother(X)  child_of(Y,X))  loves(X,Y))) mother(mary) child_of(tom,mary)

Problem… Difficult to compare two interpretations with different domains… e.g., one domain consists of apples and the other of oranges. Could map one domain to another. Can be tricky to define… most domains are infinite. Idea: for a given alphabet, pick a canonical domain and mapping. But how?

Some Notes Typically, we are given a theory (set of sentences) T and wish to speak of Herbrand interpretations relative to T. In this case we take the alphabet A to be the symbols in T. If T has no constants, we introduce one.

Notes (continued) Valuations with respect to a Herbrand interpretation may be thought of as grounding substitutions. We’d like know it’s sufficient to consider only Herbrand interpretations… just ignore all others…

Herbrand Model Lemma Let T be a theory (set of sentences) in Skolem Normal Form. T has a model iff it has a Herbrand model.

Skolemization Process is applied to one sentence at a time and applied only to the entire sentence (so outermost quantifier first). Each sentence initially has empty vector of free variables. Replace  X A(X) with A(X), and add X to vector of free variables. Replace  X A(X) with A(x(V)) where x is a new function symbol and V is the current vector of free variables.

Herbrand Model Lemma Let T be a theory (set of sentences) in Skolem Normal Form. T has a model iff it has a Herbrand model. Now recall our goal of identifying a unique simplest model.

Example: Models  X(  Y((mother(X)  child_of(Y,X))  loves(X,Y))) mother(mary) child_of(tom,mary)

Why no least Herbrand model? Disjunctive “positive” information… creates uncertainty. We can satisfy the disjunction by satisfying either disjunct – a choice. This is somewhat analogous to the uncertainty created by existential quantifiers. This uncertainty also causes inefficiencies in deduction (recall prop. SAT is NP-complete but SAT for Horn CNFs is linear-time solvable).

Examples of Definite Programs mother(mary) child_of(tom,mary) loves(X,Y) mother(x)  child_of(X,Y) odd(s(0)) odd(s(s(X)) odd(X)

Prolog Notation mother(mary). child_of(tom,mary). loves(X,Y):- mother(x), child_of(X,Y). odd(s(0)). odd(s(s(X)):- odd(X).

About Least Herbrand Models The least Herbrand model M P of a program P is the set of all ground atomic logical consequences of the program. In general it is undecidable whether a ground atomic formula is in the least Herbrand model of a program (logically follows from the program). But if it follows, it can be eventually shown…

Alternative Characterization of Least Herbrand Model Let P be a definite program. T P is a function on Herbrand interpretations defined as follows: T P (I) = {A 0 | A 0  A 1,…,A m  P gr and {A 1,…,A m }  I} The least interpretation I such that T P (I) = I is the least Herbrand model of P.

Contruction/Approximation of Least Herbrand Model T P  0 =  T P  (i+1) = T P (T P  i) T P   is the union of T P  i for all i from 0 to  The least Herbrand model M P of P is the least fixpoint of T P : the least Herbrand interpretation such that T P (M P ) = M P. M P = T P  

Example odd(s(0)). odd(s(s(X))  odd(X). T P  0 =  T P  1 = {odd(s)} T P  2 = {odd(s(s(s(0))), odd(s)} T P   odd(s n (0)) | n  {1,3,5,…}}

S S

Logic and Relational Databases