The Common Logic Standard Christopher Menzel Texas A&M University

Slides:



Advertisements
Similar presentations
Artificial Intelligence
Advertisements

SCL: A Logic Standard for Semantic Integration Christopher Menzel Philosophy Department Texas A&M University
Predicate Logic Colin Campbell. A Formal Language Predicate Logic provides a way to formalize natural language so that ambiguity is removed. Mathematical.
Completeness and Expressiveness
Brief Introduction to Logic. Outline Historical View Propositional Logic : Syntax Propositional Logic : Semantics Satisfiability Natural Deduction : Proofs.
10 October 2006 Foundations of Logic and Constraint Programming 1 Unification ­An overview Need for Unification Ranked alfabeths and terms. Substitutions.
2005conjunctive-ii1 Query languages II: equivalence & containment (Motivation: rewriting queries using views)  conjunctive queries – CQ’s  Extensions.
First-Order Logic (and beyond)
Kripke: Outline …(1975) First improtant decision: the theory is about sentences, not about propositions. Like Tarski, not like Barwise & Etchemendy. ***
Rigorous Software Development CSCI-GA Instructor: Thomas Wies Spring 2012 Lecture 11.
Propositional Logic CMSC 471 Chapter , 7.7 and Chuck Dyer
ECAI 2002 Workshop on Ontologies and Semantic Interoperability Ontology Theory Christopher Menzel Department of Philosophy Texas A&M University
Basic Structures: Sets, Functions, Sequences, Sums, and Matrices
Basic Structures: Sets, Functions, Sequences, Sums, and Matrices
Knowledge Representation Methods
ISBN Chapter 3 Describing Syntax and Semantics.
Fall Semantics Juan Carlos Guzmán CS 3123 Programming Languages Concepts Southern Polytechnic State University.
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)
Artificial Intelligence Modal Logic
9/28/98 Prof. Richard Fikes First-Order Logic Knowledge Interchange Format (KIF) Computer Science Department Stanford University CS222 Fall 1998.
Brief Introduction to Logic. Outline Historical View Propositional Logic : Syntax Propositional Logic : Semantics Satisfiability Natural Deduction : Proofs.
Many Valued Logic (MVL) By: Shay Erov - 01/11/2007.
Predicate Calculus.
The Common Logic Standard Christopher Menzel Texas A&M University
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
Debbie Mueller Mathematical Logic Spring English sentences take the form Q A B Q is a determiner expression  the, every, some, more than, at least,
Knowledge Interchange Format Michael Gruninger National Institute of Standards and Technology
First Order Logic Chapter 7. PL is a Weak Representational Language §Propositional Logic (PL) is not a very expressive language because: §Hard to identify.
Atomic Sentences Chapter 1 Language, Proof and Logic.
1st-order Predicate Logic (FOL)
Chapter 1, Part II: Predicate Logic With Question/Answer Animations.
Many Sorted First-order Logic Student: Liuxing Kan Instructor: William Farmer Dept. of Computing and Software McMaster University, Hamilton, CA.
Pattern-directed inference systems
1 Logical Agents CS 171/271 (Chapter 7) Some text and images in these slides were drawn from Russel & Norvig’s published material.
ISBN Chapter 3 Describing Semantics -Attribute Grammars -Dynamic Semantics.
1 CMSC 471 Fall 2002 Class #10/12–Wednesday, October 2 / Wednesday, October 9.
LDK R Logics for Data and Knowledge Representation PL of Classes.
© Kenneth C. Louden, Chapter 11 - Functional Programming, Part III: Theory Programming Languages: Principles and Practice, 2nd Ed. Kenneth C. Louden.
Albert Gatt LIN3021 Formal Semantics Lecture 4. In this lecture Compositionality in Natural Langauge revisited: The role of types The typed lambda calculus.
Formal Methods in Software Engineering 1
Key Concepts Representation Inference Semantics Discourse Pragmatics Computation.
1 CA 208 Logic PQ PQPQPQPQPQPQPQPQ
1 Logical Agents CS 171/271 (Chapter 7) Some text and images in these slides were drawn from Russel & Norvig’s published material.
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.
Chapter Thirteen Identity and Philosophical Problems of Symbolic Logic.
For Wednesday Read chapter 9, sections 1-3 Homework: –Chapter 7, exercises 8 and 9.
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 CSC384: Intro to Artificial Intelligence Lecture 5.  Knowledge Representation.
Lecture 2 (Chapter 2) Introduction to Semantics and Pragmatics.
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.
Semantics of Predicate Calculus For the propositional calculus, an interpretation was simply an assignment of truth values to the proposition letters of.
Computing & Information Sciences Kansas State University Lecture 12 of 42 CIS 530 / 730 Artificial Intelligence Lecture 12 of 42 William H. Hsu Department.
LDK R Logics for Data and Knowledge Representation Propositional Logic Originally by Alessandro Agostini and Fausto Giunchiglia Modified by Fausto Giunchiglia,
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.
First-Order Logic Semantics Reading: Chapter 8, , FOL Syntax and Semantics read: FOL Knowledge Engineering read: FOL.
1 First Order Logic CS 171/271 (Chapter 8) Some text and images in these slides were drawn from Russel & Norvig’s published material.
EEL 5937 Content languages EEL 5937 Multi Agent Systems Lecture 10, Feb. 6, 2003 Lotzi Bölöni.
Metalogic Soundness and Completeness. Two Notions of Logical Consequence Validity: If the premises are true, then the conclusion must be true. Provability:
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.
Artificial Intelligence Logical Agents Chapter 7.
Knowledge Representation Lecture 2 out of 5. Last Week Intelligence needs knowledge We need to represent this knowledge in a way a computer can process.
Propositional Calculus: Boolean Functions and Expressions
Logics for Data and Knowledge Representation
Logics for Data and Knowledge Representation
Logics for Data and Knowledge Representation
Representations & Reasoning Systems (RRS) (2.2)
Presentation transcript:

The Common Logic Standard Christopher Menzel Texas A&M University

K nowledge I nterchange F ormat : Initial Motivations Origins in early AI. But don’t run away! The problem KIF addressed is still with us.

K nowledge I nterchange F ormat : Initial Motivations The Situation The proliferation of intelligent systems Each system with its own language

K nowledge I nterchange F ormat : Initial Motivations The Need To share and integrate information across diverse KR frameworks

K nowledge I nterchange F ormat : Initial Motivations The Problem (well, one problem anyway…) : General solution requires n 2 -n translators. The number of translators needed for integration thus grows exponentially with the development of new frameworks

K nowledge I nterchange F ormat : Initial Motivations The Solution -- KIF: A single “hub” framework, an universal interlingua “spoken” by every framework Growth of translators to frameworks is linear (t = 2n)

K nowledge I nterchange F ormat : Design I The Issue of Expressive Power An interlingua must be at least as powerful as any conceivable KR framework All KR frameworks must be weaker than full first-order logic to be tractable If you can’t say it in FOL, you can’t say it (well, mostly…) Hence, KIF shall include FOL

K nowledge I nterchange F ormat : Design II Syntactic Form ASCII Can be typed in with a keyboard Easily transferred as 7-bit text LISP-like (early AI influence…) Minimal constraints on form (discussed below…)

The Common Elements of First- order Languages Lexicon Basic vocabulary Grammar Recursive rules for forming complex expressions Semantics (Model Theory) Mathematical theory of meaning Formal definitions of validity, entailment, satisfiability Proof Theory Metatheory Soundness, Completeness, Compactness

A (First-order) KIF Lexicon Terms Individual constants Strings of unicode characters Individual variables Strings of unicode chars prefixed by “ ? ” Predicate constants Strings of unicode characters Boolean operators not, and, or, =>, Quantifiers forall, exists

A Standard First-order KIF Grammar If P is a predicate and t 1, …, t n are terms, then ( P t 1 … t n ) is an (atomic) formula. If A and B are formulas, so are (not A ), (and A B ), ( or A B ), (=> A B ), and ( A B ). If A is a formula and x any variable, then (forall ( x ) A ) and (exists ( x ) A ). Nothing else is a formula.

KIF Semantics: Interpretations An interpretation I =  D,R,ext,V  consists of nonempty sets D and R, a function ext such that ext(r)   n <  D n and a valuation function V such that V(t)  D, for all terms t, V(P)  R, for all predicates P. Let I [x/e] =  D,R,ext,V , where V is just like V except that V (x) = e. I [x/e] is known as an x- variant of I.

KIF Semantics: Truth Let I =  D,W,ext,V  be an interpretation. ( P t 1 … t n ) is true in I iff  V(t 1 ),…, V(t n )   V(P) Boolean cases (not A ) is true in I iff A is not true in I. (and A B ) is true in I iff both A and B are. … (forall ( x ) A ) is true in I iff A is true in all x-variants of I (exists ( x ) A ) is true in I iff A is true in some x-variant of I

The Sad Truth (for Integration) There are lots of alternative syntactic frameworks equivalent to KIF Tastes differ! Different communities in fact adopt different frameworks For example…

An Alternative Lexicon Terms Individual constants E.g.: a, b, c, a, b, c, … Individual variables E.g.: x, y, z, x, y, z, … Predicate constants E.g.: P, Q, R, Boy, Girl, Kissed Boolean operators Typically: , , , ,  Quantifiers Typically: , 

An Alternative First-order Grammar If P is a predicate and t 1, …, t n are terms, then P(t 1,…,t n ) is an (atomic) formula. If A and B are formulas, so are  A, (A  B), (A  B), (A  B), and (A  B). If A is a formula and x any variable, then  x A and  x A are formulas. Nothing else is a formula.

Common Structures and a Standard Logic Standard first-order languages and KIF languages are structurally identical. It would be untenable in a standard for logic to force users to adopt one particlar syntax over another. Hence, the Common Logic Standard specifies languages by means of an abstract syntax that can have many concrete instances.

A Simple Abstract Syntax for FOL A lexicon consists of A denumerable set Var of individual variables A countable set Con of individual constants A nonempty set Pred of predicate constants Let App be a 1-1 function on Pred   { Con n : n <  }. Range ( App ) is the set AT of atomic formulas.

Formula Classes A formula class F (for a given lexicon) is a smallest class that includes AT and is closed under a set Op of operations Id, Neg, Disj, Cond, Bicond, ExQuant, and UnivQuant that satisfy the following conditions: Each operation in Op is 1-1 The ranges of the operation are pairwise disjoint and disjoint from AT. Id : TRM  TRM  F Neg : F  F Disj ( Conj, Cond, Bicond ): F  F  F ExQuant ( UnivQuant ) : Var  F  F Our two grammars above are both simply concrete instances of this abstract grammar.

“Every boy kissed a girl.” (forall (?x) (=> (Boy ?x) (exists (?y) (and (Girl ?y) (Kissed ?x ?y)))))  x(Boy(x)   y(Girl(y)  Kissed(x,y))) Abstractly: UnivQuant(v 1,Cond(App(Boy,v 1 ),ExQuant(v 2,Conj(App(Girl,v 2 ),App(Kissed,v 1,v 2 ))))) Our standard first-order semantics can be applied to our abstract syntax. The semantics is then simply inherited by any instance of the syntax.

Extensions of Standard FOL Full KIF and other logic-based KR languages include features that extend standard FOL. A logic standard should be flexible enough to incorporate such extensions as options.

Type Freedom The Central Intuition All entities – individuals, propositions, properties, and relations alike – are first-class logical citizens that jointly constitute a single domain of quantification. Hence, such entities can themselves have properties, stand in relations, and serve as potential objects of reference.

Nominalization The verb phrase ‘is famous’ is used to predicate fame of Quentin. “Quentin is famous.” Its nominalization ‘being famous’ is used to denote fame. “Being famous is all Quentin thinks about. Since the verb phrase and its nominalization have the semantic value, the same constant can be used to symbolize both sentences. (Famous quentin) (forall (?x) ( (ThinksAbout quentin ?x) (= ?x Famous)))

Variable Polyadicity Many predicates in ordinary language can take varying numbers of arguments John is eating John is eating toast John is eating toast in the kitchen John is eating toast in the kitchen at noon This suggests the need to allow predicates in KIF to be variably polyadic (eats John) (eats John toast) (eats John toast kitchen) (eats John toast kitchen noon)

Self-exemplification Classes in most KR frameworks can be thought of as properties. Some classes are members of themselves The “root” class Entity or Thing in standard inheritance hierarchies. The classes Class and Property. Type-freedom enables one to express self- membership (as self-exemplification) (Entity Entity) (Class Class) (Property Property)

Paradoxes: Not to Worry Self-membership or self-exemplification is often cited as the culprit behind the paradoxes E.g., the Russell class {x | x  x} Type-freedom appears to open the door to such undesirable fellows. (iff (Russell ?X) (not (?X ?X)) The problem lies no more with type-freedom than with negation. The real villain is the idea that we can postulate classes/properties/functions satisfying any given condition. This is known as the naïve comprehension principle in set theory.

Predicates as function symbols It is often convenient to use predicates as function symbols: (gardener (father-of cain)) (exists (?x) (and (father-of cain ?x) (gardener ?x))) But often the reverse is true: (father-of cain adam) (= adam (father-of cain)) CL syntax allows both usages, and its semantics provides the right interpretations in each context.

Translating into FOL Full CL languages without sequence variables can be thought of as notational variants of first- order theories. Introduce Pred n for each n ( p t 1 … t n ) goes to (Pred n p t 1 … t n )