Herbrand Logic Semantics

Slides:



Advertisements
Similar presentations
Automated Theorem Proving Lecture 1. Program verification is undecidable! Given program P and specification S, does P satisfy S?
Advertisements

Simply Logical – Chapter 2© Peter Flach, 2000 Clausal logic Propositional clausal logic Propositional clausal logic expressions that can be true or false.
Completeness and Expressiveness
Biointelligence Lab School of Computer Sci. & Eng.
10 October 2006 Foundations of Logic and Constraint Programming 1 Unification ­An overview Need for Unification Ranked alfabeths and terms. Substitutions.
Linked List Implementation class List { private List next; private Object data; private static List root; private static int size; public static void addNew(Object.
Formal Semantics of Programming Languages 虞慧群 Topic 5: Axiomatic Semantics.
We have seen that we can use Generalized Modus Ponens (GMP) combined with search to see if a fact is entailed from a Knowledge Base. Unfortunately, there.
1 Cover Algorithms and Their Combination Sumit Gulwani, Madan Musuvathi Microsoft Research, Redmond.
Everything You Need to Know (since the midterm). Diagnosis Abductive diagnosis: a minimal set of (positive and negative) assumptions that entails the.
First-Order Logic. Conceptualization The formalization of knowledge begins with a conceptualization. This includes the objects presumed or hypothesized.
Automated Theorem Proving Lecture 4.   Formula := A |  |    A  Atom := b | t = 0 | t < 0 | t  0 t  Term := c | x | t + t | t – t | ct | Select(m,t)
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.
Lattice and Boolean Algebra
Relation, function 1 Mathematical logic Lesson 5 Relations, mappings, countable and uncountable sets.
Herbrand Models Logic Lecture 2. Example: Models  X(  Y((mother(X)  child_of(Y,X))  loves(X,Y))) mother(mary) child_of(tom,mary)
CSCI 2670 Introduction to Theory of Computing September 21, 2005.
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.
The Bernays-Schönfinkel Fragment of First-Order Autoepistemic Logic Peter Baumgartner MPI Informatik, Saarbrücken.
Logic CL4 Episode 16 0 The language of CL4 The rules of CL4 CL4 as a conservative extension of classical logic The soundness and completeness of CL4 The.
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.
ARTIFICIAL INTELLIGENCE [INTELLIGENT AGENTS PARADIGM] Professor Janis Grundspenkis Riga Technical University Faculty of Computer Science and Information.
1 Finite Model Theory Lecture 3 Ehrenfeucht-Fraisse Games.
1 Introduction to Abstract Mathematics Chapter 2: The Logic of Quantified Statements. Predicate Calculus Instructor: Hayk Melikya 2.3.
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.
CS6133 Software Specification and Verification
LDK R Logics for Data and Knowledge Representation First Order Logics (FOL) Originally by Alessandro Agostini and Fausto Giunchiglia Modified by Fausto.
1 Finite Model Theory Lecture 1: Overview and Background.
1 Knowledge Based Systems (CM0377) Lecture 6 (last modified 20th February 2002)
1 Reasoning with Infinite stable models Piero A. Bonatti presented by Axel Polleres (IJCAI 2001,
Inference in First Order Logic. Outline Reducing first order inference to propositional inference Unification Generalized Modus Ponens Forward and backward.
Knowledge Repn. & Reasoning Lec. #5: First-Order Logic UIUC CS 498: Section EA Professor: Eyal Amir Fall Semester 2004.
CENG 424-Logic for CS Introduction Based on the Lecture Notes of Konstantin Korovin, Valentin Goranko, Russel and Norvig, and Michael Genesereth.
Deterministic FA/ PDA Sequential Machine Theory Prof. K. J. Hintz
Formal Language & Automata Theory
Semantics In propositional logic, we associate atoms with propositions about the world. We specify the semantics of our logic, giving it a “meaning”. Such.
Lecture 2 Propositional Logic
CSC 4170 Theory of Computation Nondeterminism Section 1.2.
Decidability of logical theories
Lesson 5 Relations, mappings, countable and uncountable sets
Artificial Intelligence Chapter 15. The Predicate Calculus
Relational Proofs Computational Logic Lecture 8
Lesson 5 Relations, mappings, countable and uncountable sets
MA/CSSE 474 More Math Review Theory of Computation
Mathematical Induction
Metatheorems Computational Logic Lecture 8
Computational Logic Lecture 13
Relational Proofs Computational Logic Lecture 7
Relational Logic Semantics
Logical Entailment Computational Logic Lecture 3
Relational Logic Computational Logic Lecture 5
Brief Introduction to Computational Logic
Herbrand Logic Semantics
CS 188: Artificial Intelligence
Decidability of logical theories
CSC 4170 Theory of Computation Nondeterminism Section 1.2.
Logics for Data and Knowledge Representation
Relational Logic Semantics
Relational Proofs Computational Logic Lecture 7
Properties of Relational Logic
Properties of Relational Logic
Model Minimization Computational Logic Lecture 16
Relational Proofs Computational Logic Lecture 7
Herbrand Semantics Computational Logic Lecture 15
The language and formal semantics of computability logic
Representations & Reasoning Systems (RRS) (2.2)
CSE544 Wednesday, March 29, 2006.
Presentation transcript:

Herbrand Logic Semantics Computational Logic Lecture 17 Herbrand Logic Semantics Michael Genesereth Autumn 2011

Propositional Interpretations For a language with n constants, there are 2n interpretations. 9/19/2019

Relational Interpretations |i| a b r {,}   {} {,}   {} {,}   {} {,}   {, } {,}   {} {,}   {} {,}   {} {,}   {, } {,}   {} {,}   {} {,}   {} {,}   {, } . . . Infinitely many interpretations. 9/19/2019

Logical Entailment A set of premises logically entails a conclusion if and only if every interpretation that satisfies the premises also satisfies the conclusion. In the case of Propositional Logic, the number of interpretations is finite, and so it is possible to check logical entailment directly in finite time. In the case of Relational Logic, the number of interpretations is infinite, and so a direct check of logical entailment is not feasible. 9/19/2019

Good News Given any set of sentences, there is a special subset of interpretations called Herbrand interpretations. Under certain conditions, checking just the Herbrand interpretations suffices to determine logical entailment. Since there are fewer Herbrand interpretations than interpretations in general, checking just the Herbrand interpretations is less work than checking all interpretations. 9/19/2019

Herbrand In HLT, the Herbrand universe for a relational language is the set of all object constants in that language. In HLF, the Herbrand universe for is the set of all ground terms that can be formed from the constants in the language. Difference: In HLF, functional terms map to themselves rather than mapping to object constants. 9/19/2019

Ground Relational Sentences A dataset Delta satisfies a ground relational sentence phi if and only if phi is contained in Delta. 9/19/2019

Logical Sentences |= iff    |=(  ) iff |= and |= |=(  ) iff |= or |= |=(  ) iff |# or |= |=(  ) iff |= or |# |=(  ) iff |= and |= or |# and |# 9/19/2019

Quantified Sentences A dataset satisfies a universally quantified sentence if and only if it satisfies every instance of the scope of that sentence. A dataset satisfies an existentially quantified sentence if and only if it satisfies some instance of the scope of that sentence. 9/19/2019

9/19/2019

Example Interpretation |i|={, } i(a) =  i(b) =  i(r) = {,, ,} Herbrand Base {r(a,a), r(a,b), r(b,a), r(b,b)} Herbrand Interpretation |i|={a,b} i(a) = a i(b) = b i(r) = {a,b, b,b} 9/19/2019

Example Interpretation |i|={, } i(a) =  i(b) =  i(r) = {,, ,} Herbrand Base {r(a,a), r(a,b), r(b,a), r(b,b)} Herbrand Interpretation |i|={a,b} i(a) = a i(b) = b i(r) = {a,b, b,b} 9/19/2019

Example Interpretation |i|={, } i(a) =  i(b) =  i(r) = {,, ,} Herbrand Base {r(a,a), r(a,b), r(b,a), r(b,b)} Herbrand Interpretation |i|={a,b} i(a) = a i(b) = b i(r) = {a,b, b,b} 9/19/2019

9/19/2019

Transitivity Theorem It is not possible in first-order logic to define transitive closure in first-order logic. More precisely, it is not possible characterize the set of structures consisting of an arbitrary universe, an arbitrary binary relation, and the transitive closure of that relation. 9/19/2019

Expressive Completeness Theorem Metatheorem: In HLF, the theory of arithmetic is finitely axiomatizable. Proof: If there were a finite axiomatization, then the theory would be decidable. However, arithmetic is not decidable. Therefore, there is no finite axiomatization. 9/19/2019

Resolution Incompleteness Metatheorem: Resolution is not complete for HL. Proof: If there were a finite axiomatization, then the theory would be decidable. However, arithmetic is not decidable. Therefore, there is no finite axiomatization. 9/19/2019

Deductive Incompleteness Metatheorem: There is no complete proof procedure for HL. Proof: If there were a finite axiomatization, then the theory would be decidable. However, arithmetic is not decidable. Therefore, there is no finite axiomatization. 9/19/2019

9/19/2019

Special Cases 9/19/2019

Herbrand Theorem Herbrand Theorem: A set of quantifier-free sentences in Relational Logic is satisfiable if and only if it has a Herbrand model. 9/19/2019

Herbrand Theorem Does Not Apply Sentences r(a,a) r(b,b) x.r(x,x) Model Herbrand Construction: |i|={, , } |h|={a,b} i(a) =  h(a) = a i(b) =  h(b) = b i(r) = {,, ,} h(r) = {a,a, b,b} Herbrand construction does not satisfy and no Herbrand model satisfies. 9/19/2019

Good News (Sort of…) Solution: Skolemize the sentences to get rid of explicit quantifiers. Small hitch #1 is that we are now dealing with existential sentences but not purely existential sentences; so we need to extend the technique we just looked at. See upcoming lecture. Small hitch #2 is that there are some difficulties using the Modified Herbrand Method with Functional Logic. See next few slides. 9/19/2019

Special Cases Ground Relational Logic no variables, no functions, no quantifiers Universal Relational Logic no functions, no quantifiers free variables implicitly universally quantified Existential Relational Logic no functions  Functional Relational Logic no quantifiers 9/19/2019

Herbrand Universe for Functional Logic Old Definition: The Herbrand universe for a set of sentences in Relational Logic is the set of all ground terms that can be formed from just the constants used in those sentences. In the absence of function constants, this is exactly the set of constants in the set of sentences. {a,b} In the presence of function constants, all ground functional terms are included. {a, b, f(a), f(b), g(a), g(b), f(f(a)), f(f(b)), f(g(a)), ...} 9/19/2019

Herbrand Theorem for Functional Logic Herbrand Theorem: A set of quantifier-free sentences has a model if and only if it has a Herbrand model. No quantifiers; so we are okay. The Modified Herbrand Method works. Hooray!! 9/19/2019

Sad Theorem The size of the Herbrand universe for a functional language is infinite. Upshot: Checking the Herbrand interpretations for a language to determine logical entailment is not feasible in finite time. 9/19/2019

General Problem The number of Herbrand models can be very large. n object constants m k-ary relation constants Number of k-ary tuples: nk Number of k-ary relations: 2^nk Number of Herbrand Interpretations: (2^nk)^m 10 object constants 3 2-ary relation constants Number of k-ary tuples: 100 Number of k-ary relations: 2100 Number of Herbrand Interpretations: 2300 9/19/2019

Summary Herbrand Method works for Ground Logic. Modified Method works for Universal Logic. Herbrand Method does not work for Existential Logic. These cases can be handled by Skolemizing to form sentences in Functional Logic. Modified Herbrand Method works for Functional Logic, but there are infinitely many interpretations. In any case, the number of Herbrand interpretations can be very large. Solution: Use formal proofs! 9/19/2019

9/19/2019