Herbrand Models Logic Lecture 2. Example: Models  X(  Y((mother(X)  child_of(Y,X))  loves(X,Y))) mother(mary) child_of(tom,mary)

Slides:



Advertisements
Similar presentations
CS4026 Formal Models of Computation Part II The Logic Model Lecture 1 – Programming in Logic.
Advertisements

Completeness and Expressiveness
1 First order theories (Chapter 1, Sections 1.4 – 1.5)
First-Order Logic.
The Logic of Quantified Statements
Standard Logical Equivalences
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.
Properties of SLUR Formulae Ondřej Čepek, Petr Kučera, Václav Vlček Charles University in Prague SOFSEM 2012 January 23, 2012.
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)
Formal Logic Proof Methods Direct Proof / Natural Deduction Conditional Proof (Implication Introduction) Reductio ad Absurdum Resolution Refutation.
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.
Introduction to Logic for Artificial Intelligence Lecture 2 Erik Sandewall 2010.
Predicates and Quantifiers
Proof Systems KB |- Q iff there is a sequence of wffs D1,..., Dn such that Dn is Q and for each Di in the sequence: a) either Di is in KB or b) Di can.
DECIDABILITY OF PRESBURGER ARITHMETIC USING FINITE AUTOMATA Presented by : Shubha Jain Reference : Paper by Alexandre Boudet and Hubert Comon.
1 Knowledge Based Systems (CM0377) Lecture 4 (Last modified 5th February 2001)
Web Science & Technologies University of Koblenz ▪ Landau, Germany Stable Models See Bry et al 2007.
Advanced Topics in Propositional Logic Chapter 17 Language, Proof and Logic.
First Order Predicate Logic
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.
LDK R Logics for Data and Knowledge Representation PL of Classes.
CS Introduction to AI Tutorial 8 Resolution Tutorial 8 Resolution.
Lecture 4: Predicates and Quantifiers; Sets.
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.
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.
LDK R Logics for Data and Knowledge Representation First Order Logics (FOL) Originally by Alessandro Agostini and Fausto Giunchiglia Modified by Fausto.
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,
Semantics of Predicate Calculus For the propositional calculus, an interpretation was simply an assignment of truth values to the proposition letters of.
Knowledge Repn. & Reasoning Lec. #5: First-Order Logic UIUC CS 498: Section EA Professor: Eyal Amir Fall Semester 2004.
LDK R Logics for Data and Knowledge Representation Propositional Logic Originally by Alessandro Agostini and Fausto Giunchiglia Modified by Fausto Giunchiglia,
Web Science & Technologies University of Koblenz ▪ Landau, Germany Models of Definite Programs.
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.
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)
Logics for Data and Knowledge Representation ClassL (part 1): syntax and semantics.
Answer Extraction To use resolution to answer questions, for example a query of the form  X C(X), we must keep track of the substitutions made during.
Syntax of First-Order Predicate Calculus (FOPC): 1. Alphabet Countable set of predicate symbols, each with specified arity  0. Countable set of function.
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.
Logics for Data and Knowledge Representation ClassL (part 1): syntax and semantics.
Models of Definite Programs
3. The Logic of Quantified Statements Summary
Introduction to Logic for Artificial Intelligence Lecture 2
Horn Clauses and Unification
Logics for Data and Knowledge Representation
Decidability of logical theories
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
Logics for Data and Knowledge Representation
Herbrand Logic Semantics
Horn Clauses and Unification
Decidability of logical theories
Blind quantifiers Episode 10 Unistructurality
Model Minimization Computational Logic Lecture 16
Herbrand Logic Semantics
Presentation transcript:

Herbrand Models Logic Lecture 2

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,…}}