The Common Logic Standard Christopher Menzel Texas A&M University

Slides:



Advertisements
Similar presentations
Simplified Common Logic A flexible framework for information interchange based on first-order logic.
Advertisements

Artificial Intelligence
SCL: A Logic Standard for Semantic Integration Christopher Menzel Philosophy Department Texas A&M University
Completeness and Expressiveness
Brief Introduction to Logic. Outline Historical View Propositional Logic : Syntax Propositional Logic : Semantics Satisfiability Natural Deduction : Proofs.
1 First order theories (Chapter 1, Sections 1.4 – 1.5)
The Logic of Quantified Statements
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
Sets Lecture 11: Oct 24 AB C. This Lecture We will first introduce some basic set theory before we do counting. Basic Definitions Operations on Sets Set.
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.
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.
The Common Logic Standard Christopher Menzel Texas A&M University
Predicate Calculus.
Describing Syntax and Semantics
1 First order theories. 2 Satisfiability The classic SAT problem: given a propositional formula , is  satisfiable ? Example:  Let x 1,x 2 be propositional.
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)
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.
Pattern-directed inference systems
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.
Formal Methods in Software Engineering 1
ARTIFICIAL INTELLIGENCE [INTELLIGENT AGENTS PARADIGM] Professor Janis Grundspenkis Riga Technical University Faculty of Computer Science and Information.
Key Concepts Representation Inference Semantics Discourse Pragmatics Computation.
Logics for Data and Knowledge Representation ClassL (part 1): syntax and semantics.
Programming Languages and Design Lecture 3 Semantic Specifications of Programming Languages Instructor: Li Ma Department of Computer Science Texas Southern.
1 CA 208 Logic PQ PQPQPQPQPQPQPQPQ
Kansas State University Department of Computing and Information Sciences CIS 730: Introduction to Artificial Intelligence Lecture 12 Friday, 17 September.
Chapter Thirteen Identity and Philosophical Problems of Symbolic Logic.
For Wednesday Read chapter 9, sections 1-3 Homework: –Chapter 7, exercises 8 and 9.
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.
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.
DEDUCTION PRINCIPLES AND STRATEGIES FOR SEMANTIC WEB Chain resolution and its fuzzyfication Dr. Hashim Habiballa University of Ostrava.
ece 627 intelligent web: ontology and beyond
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.
Logics for Data and Knowledge Representation ClassL (part 1): syntax and semantics.
EEL 5937 Content languages EEL 5937 Multi Agent Systems Lecture 10, Feb. 6, 2003 Lotzi Bölöni.
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.
CENG 424-Logic for CS Introduction Based on the Lecture Notes of Konstantin Korovin, Valentin Goranko, Russel and Norvig, and Michael Genesereth.
Propositional Calculus: Boolean Functions and Expressions
Logics for Data and Knowledge Representation
Logics for Data and Knowledge Representation
MA/CSSE 474 More Math Review Theory of Computation
Logics for Data and Knowledge Representation
Search techniques.
Chapter 3 Describing Syntax and Semantics.
Propositional Logic CMSC 471 Chapter , 7.7 and Chuck Dyer
Logics for Data and Knowledge Representation
Representations & Reasoning Systems (RRS) (2.2)
Logics for Data and Knowledge Representation
Presentation transcript:

The Common Logic Standard Christopher Menzel Texas A&M University

Traditional 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

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: , 

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.

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.

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 ~A is true in I iff A is not true in I. (A  B) is true in I iff both A and B are. …  xA is true in I iff A is true in all x-variants of I  xA is true in I iff A is true in some x-variant of I

KIF: An Alternative Syntax The development of high-speed computers and associated knowledge engineering technologies led to the development of alternative first-order (or stronger) languages. The Knowledge Interchange Format (KIF) is perhaps the best known and most widely used.

A Standard 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.

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 1) A denumerable set Var of individual variables 2) A countable set Con of individual constants 3) 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)))

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. ( (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.

Sequence Variables Sequence variables go hand in glove with variable polyadicity. Range over all finite sequences over the domain of quantification. Increase expressive power to that of a sublanguage of the infinitary language L  1 . The model theory requires a proof theory with an infinitary rule of inference. Completeness likely but not proved. Clearly not compact (hence not first-order). { (not (exists ?x 1 (S ?x 1 )), …, (not (exists (?x 1 … ?x n (S ?x 1 … ?x n )), … (exists }

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 t1 … tn) (forall (?Op) (?Op ?x)) (forall (?Op) (R ?Op))

Translating Full CL into Infinitary Languages Full CL languages with sequence variables can be translated into (a sublanguage of) the infinitary language L  1  ((Nom Op) ?x) Rel(Nom(Op))