Foundations of Knowledge Representation in Cyc

Similar documents
Inference in Cyc. This is the final lesson in the Inference Tutorial. It will focus on microtheories and forward/backward inference.

(Refer Slide Time 03:00)

Artificial Intelligence Prof. P. Dasgupta Department of Computer Science & Engineering Indian Institute of Technology, Kharagpur

Artificial Intelligence. Clause Form and The Resolution Rule. Prof. Deepak Khemani. Department of Computer Science and Engineering

Inference in Cyc. Copyright 2002 Cycorp

Artificial Intelligence Prof. P. Dasgupta Department of Computer Science & Engineering Indian Institute of Technology, Kharagpur

2.1 Review. 2.2 Inference and justifications

Comments on Lasersohn

Module 5. Knowledge Representation and Logic (Propositional Logic) Version 2 CSE IIT, Kharagpur

Review of Philosophical Logic: An Introduction to Advanced Topics *

Lecture 9. A summary of scientific methods Realism and Anti-realism

Coordination Problems

Russell: On Denoting

How Not to Defend Metaphysical Realism (Southwestern Philosophical Review, Vol , 19-27)

Thesis Statements. (and their purposes)

THE ALLYN & BACON GUIDE TO WRITING

UC Berkeley, Philosophy 142, Spring 2016

INF5020 Philosophy of Information: Ontology

Entailment as Plural Modal Anaphora

Modal Realism, Counterpart Theory, and Unactualized Possibilities

PHI 1500: Major Issues in Philosophy

Generalizing Soames Argument Against Rigidified Descriptivism

Pronominal, temporal and descriptive anaphora

part one MACROSTRUCTURE Cambridge University Press X - A Theory of Argument Mark Vorobej Excerpt More information

Quorums. Christian Plattner, Gustavo Alonso Exercises for Verteilte Systeme WS05/06 Swiss Federal Institute of Technology (ETH), Zürich

The SAT Essay: An Argument-Centered Strategy

Understanding Truth Scott Soames Précis Philosophy and Phenomenological Research Volume LXV, No. 2, 2002

Is Evolution Incompatible with Intelligent Design? Outline

Circularity in ethotic structures

A-LEVEL Religious Studies

Artificial Intelligence: Valid Arguments and Proof Systems. Prof. Deepak Khemani. Department of Computer Science and Engineering

GCE Religious Studies. Mark Scheme for June Unit G571: Philosophy of Religion. Advanced Subsidiary GCE. Oxford Cambridge and RSA Examinations

BOOK REVIEW. Thomas R. Schreiner, Interpreting the Pauline Epistles (Grand Rapids: Baker Academic, 2nd edn, 2011). xv pp. Pbk. US$13.78.

Semantic Pathology and the Open Pair

HANDBOOK (New or substantially modified material appears in boxes.)

Informalizing Formal Logic

Exercise Sets. KS Philosophical Logic: Modality, Conditionals Vagueness. Dirk Kindermann University of Graz July 2014

A Model of Decidable Introspective Reasoning with Quantifying-In

Ayer on the criterion of verifiability

2. Refutations can be stronger or weaker.

Announcements. CS243: Discrete Structures. First Order Logic, Rules of Inference. Review of Last Lecture. Translating English into First-Order Logic

All They Know: A Study in Multi-Agent Autoepistemic Reasoning

Science and Faith: Discussing Astronomy Research with Religious Audiences

Revisiting the Socrates Example

C. Exam #1 comments on difficult spots; if you have questions about this, please let me know. D. Discussion of extra credit opportunities

HANDBOOK (New or substantially modified material appears in boxes.)

Kant s Critique of Pure Reason1 (Critique) was published in For. Learning to Count Again: On Arithmetical Knowledge in Kant s Prolegomena

McDougal Littell High School Math Program. correlated to. Oregon Mathematics Grade-Level Standards

In this paper I will critically discuss a theory known as conventionalism

Quantificational logic and empty names

Ramsey s belief > action > truth theory.

Basic Concepts and Skills!

APAS assistant flexible production assistant

Selections from Aristotle s Prior Analytics 41a21 41b5

Lost in Transmission: Testimonial Justification and Practical Reason

In his paper Studies of Logical Confirmation, Carl Hempel discusses

PROSPECTIVE TEACHERS UNDERSTANDING OF PROOF: WHAT IF THE TRUTH SET OF AN OPEN SENTENCE IS BROADER THAN THAT COVERED BY THE PROOF?

Reductio ad Absurdum, Modulation, and Logical Forms. Miguel López-Astorga 1

Moral Argumentation from a Rhetorical Point of View

IN his paper, 'Does Tense Logic Rest Upon a Mistake?' (to appear

Intersubstitutivity Principles and the Generalization Function of Truth. Anil Gupta University of Pittsburgh. Shawn Standefer University of Melbourne

Warrant and accidentally true belief

Verificationism. PHIL September 27, 2011

Writing Module Three: Five Essential Parts of Argument Cain Project (2008)

Bertrand Russell Proper Names, Adjectives and Verbs 1

Christ-Centered Critical Thinking. Lesson 6: Evaluating Thinking

Empty Names and Two-Valued Positive Free Logic

HANDBOOK. IV. Argument Construction Determine the Ultimate Conclusion Construct the Chain of Reasoning Communicate the Argument 13

Kevin Scharp, Replacing Truth, Oxford: Oxford University Press, 2013, At 300-some pages, with narrow margins and small print, the work

Asking the Right Questions: A Guide to Critical Thinking M. Neil Browne and Stuart Keeley

CORRELATION FLORIDA DEPARTMENT OF EDUCATION INSTRUCTIONAL MATERIALS CORRELATION COURSE STANDARDS/BENCHMARKS

PAGLORY COLLEGE OF EDUCATION

Lecture 8 Keynes s Response to the Contradictions

The Appeal to Reason. Introductory Logic pt. 1

The Differentia Principle as a Cornerstone of Ontology

Formalizing a Deductively Open Belief Space

Aquinas' Third Way Modalized

2004 by Dr. William D. Ramey InTheBeginning.org

Am I free? Freedom vs. Fate

1.2. What is said: propositions

NICHOLAS J.J. SMITH. Let s begin with the storage hypothesis, which is introduced as follows: 1

The Inscrutability of Reference and the Scrutability of Truth

logic is everywhere Logik ist überall Hikmat har Jaga Hai Mantık her yerde la logica è dappertutto lógica está em toda parte

KANT S EXPLANATION OF THE NECESSITY OF GEOMETRICAL TRUTHS. John Watling

Cambridge International Examinations Cambridge International Advanced Subsidiary and Advanced Level

10. Presuppositions Introduction The Phenomenon Tests for presuppositions

CONSCIOUSNESS, INTENTIONALITY AND CONCEPTS: REPLY TO NELKIN

ELEMENTS OF LOGIC. 1.1 What is Logic? Arguments and Propositions

A. Problem set #3 it has been posted and is due Tuesday, 15 November

ETHICS AND THE FUTURE OF HUMANKIND, REALITY OF THE HUMAN EXISTENCE

SMITH ON TRUTHMAKERS 1. Dominic Gregory. I. Introduction

Argument vs Persuasion vs Propaganda. So many terms...what do they all mean??

DEFINING ONTOLOGICAL CATEGORIES IN AN EXPANSION OF BELIEF DYNAMICS

15 Does God have a Nature?

Phil 435: Philosophy of Language. P. F. Strawson: On Referring

UNIVERSITY OF CAMBRIDGE INTERNATIONAL EXAMINATIONS General Certificate of Education Advanced Level

Structure and essence: The keys to integrating spirituality and science

A New Parameter for Maintaining Consistency in an Agent's Knowledge Base Using Truth Maintenance System

AN OUTLINE OF CRITICAL THINKING

Combining Pricean and Peircean Pragmatism. Henrik Rydenfelt

Transcription:

Foundations of Knowledge Representation in Cyc Why use logic? CycL Syntax Collections and Individuals (#$isa and #$) Microtheories This section is a continuation of the tutorial on foundations of knowledge representation in Cyc. Our final topic: microtheories. 1

A Bundle of Assertions the Cyc KB, as a sea of assertions Think of a microtheory (mt) as a set of assertions. Each microtheory bundles assertions based on a shared set of assumptions on which the truth of the assertions depends, or a shared topic (world geography, brain tumors, pro football), or a shared source: (CIA World Fact Book 1997, FM101-5, USA Today) The Cyc Knowledge Base (KB) can be thought of as a vast sea of assertions. A microtheory is a set of assertions from that sea, an identification of a group of assertions that we pick out from the knowledge base. Assertions can be bundled into microtheories based on shared assumptions, shared topics, shared sources, or other features. 2

Avoiding Inconsistencies the Cyc KB, as a sea of assertions The assertions within a microtheory must be mutually consistent no monotonic contradictions allowed within a single microtheory Assertions in different microtheories may be inconsistent in MT1: tables, etc., are solid in MT2: tables are mostly space in MT1: Mandela is an elder statesman in MT2: Mandela is President of South Africa in MT3: Mandela is a political prisoner One of the functions of microtheories is to separate assertions into consistent bundles. Within a microtheory, the assertions must be mutually consistent. This means that no hard contradictions are allowed, and any apparent contradictions must be resolvable by evaluation of the evidence visible in that microtheory. In contrast, there may be inconsistencies across microtheories. Consider the pair of microtheories on the lower left of the slide (MT1 and MT2), which differ primarily in terms of the granularity considered. In the first microtheory (MT1), the granularity is that of ordinary human perception. In that microtheory, tables, for example, are solid objects. In the second microtheory (MT2), the granularity is that of particle physics. In that microtheory, tables consist mostly of space. Opposite those two microtheories is another example: three microtheories which differ primarily in time. In the first microtheory, the latest of the three, Mandela is an elder statesman. In the second microtheory, which is a bit earlier, Mandela is the president of South Africa. In the third microtheory, which is earlier still, Mandela is a political prisoner. The gathering of these assertions into these microtheory bundles according to specific shared assumptions allows us to include all of this knowledge in the same KB, without generating inconsistencies that would undermine reasoning. 3

Every Assertion is in a Microtheory Every assertion falls within at least one microtheory Currently, every microtheory is a reified (named) term, such as #$HumanActivitiesMt or #$OrganizationMt Mts are one way of indexing all the assertions in Cyc Every assertion in the KB falls within at least one microtheory. Currently every microtheory in Cyc is a specific reified, or named, term; each microtheory has its own constant. Examples include the #$HumanActivitiesMt microtheory and the #$OrganizationMt microtheory. These microtheories give us one way of indexing all of the assertions in Cyc. 4

Why Have Microtheories? Better/faster/more scalable knowledge base building Better/faster/more scalable inferencing, too. To focus development of the Cyc knowledge base To enable shorter and simpler assertions Mandela is president vs. Mandela is president throughout 1995 in South Africa Tables are solid vs. At granularity usually considered by humans, tables are solid To cope with global inconsistency in the KB, inevitable at this scale Each mt is locally consistent (content in unrelated mts is not visible) Good for handling divergence (different points of view, scientific theories, changes over time) Why do we want microtheories? We want them because they enable better knowledge base building and better inference. First, microtheories allow us to focus development of the KB. By gathering the most relevant information together, microtheories enable the KB builder to focus on that information, rather than wading continuously through the entire KB. This focusing power also improves inference; reasoning can be focused on the most relevant information, reducing search space and improving efficiency. Second, microtheories enable us to use terse assertions. For example, if we use microtheories to gather together assertions that hold throughout 1995 and in South Africa, then when we make assertions or reason within that context, we can use a nice terse assertion such as Mandela is president. Without the ability to form and specify a context, we would need to explicitly state the relevant assumptions. That is, we would need to build such contextualization into the assertions, such as Mandela is president throughout 1995 in South Africa. Microtheories make knowledge base building more efficient. Third, microtheories allow us to cope with global inconsistency in the KB. In building a knowledge base of this scale, covering different points of view, different times and places, different theories, and different topics, some inconsistency is inevitable. Inconsistencies, however, can make accurate reasoning impossible. Using microtheories, we can isolate terse assertions like the above from others with which they might be inconsistent, and reason within consistent bundles. 5

Why Have microtheories? (cont.) Better/faster/more scalable knowledge base building Better/faster/more scalable inferencing, too. To focus development of the Cyc knowledge base To enable shorter and simpler assertions Mandela is president vs. Mandela is president throughout 1995 in South Africa Tables are solid vs. At granularity usually considered by humans, tables are solid To cope with global inconsistency in the KB, inevitable at this scale Each mt is locally consistent (content in unrelated mts is not visible) Good for handling divergence (different points of view, scientific theories, changes over time) We can allow inference to focus on the most relevant assertions, and those that share the current assumptions. Since we use terser assertions, the inference engine has terser formulas to process, also increasing efficiency. Because inconsistencies are isolated from each other (making the KB globally inconsistent but locally consistent), the inference engine can reason with the wide range of points of view, theories, and changes over time and space that are represented in the KB without running into inconsistencies. 6

Some types of microtheories #$VocabularyMicrotheory #$TheoryMicrotheory #$Microtheory #$DataMicrotheory #$CounterfactualContext #$PropositionalInformationThing #$VocabularyMicrotheory -- each instance contains definitions of general concepts used in a knowledge domain (e.g., #$TransportationVocabMt, #$ComputerSoftwareVocabMt) #$TheoryMicrotheory -- each instance contains general assertions in a knowledge domain (e.g., #$TransportationMt,#$ComputerSoftwareMt). #$DataMicrotheory -- each instance contains assertions about specific individuals (e.g., #$TransportationDataMt, #$ComputerSoftwareDataMt) There are many different types of microtheories in the Cyc KB. On the slide is a sample of microtheory types which distinguish microtheories on the basis of how context-sensitive the information is. For example, #$VocabularyMicrotheory is the collection of all microtheories which contain primarily definitional information, such as definitions of vocabulary having to do with transportation or with computer software. #$TheoryMicrotheory is a collection of microtheories which contain substantial rules and knowledge that is stated in vocabulary from a specific #$VocabularyMicrotheory. So for example, #$ComputerSoftwareMt microtheory might contain general principles about computer software (that it runs on computers, for example) using the vocabulary in #$ComputerSoftwareVocabMt. #$DataMicrotheory, on the other hand, is the collection of all microtheories which contain specific individual-level information. So for example, #$ComputerSoftwareDataMt might have assertions about specific software programs and their use, using the general principles in the #$ComputerSoftwareMt and the vocabulary in #$ComputerSoftwareVocabMt. 7

Some types of microtheories #$VocabularyMicrotheory #$TheoryMicrotheory #$DataMicrotheory #$Microtheory #$CounterfactualContext #$PropositionalInformationThing #$PropositionalInformationThing --each instance of this collection contains assertions representing the propositional content of some #$InformationBearingThing (such as a picture, text, or database table). #$CounterfactualContext -- each instance of this collection contains at least one assertion which is not generally taken to be true in the real world (e.g., #$TheSimpsonsMt, #$SQ77bMt) #$PropositionalInformationThing is a collection of microtheories, each of which contains the content (the information) contained in some informationbearing thing, such as a picture, movie, audio tape, or book. For example, if we wanted to represent all of the informational content of this CycL course in Cyc, we would put it into a #$PropositionalInformationThing microtheory. If we wanted to represent this course itself, it would be an #$InformationBearingThing and the #$PropositionalInformationThing microtheory would be related using specific #$ContainsInformation relationships to the #$InformationBearingThing. #$CounterfactualContext is an especially interesting collection of microtheories. Each counterfactual context is a microtheory in which at least some of the assertions in it are not taken to be true. One specialization of #$CounterfactualContext is #$FictionalContext. Consider, for example, #$TheSimpsonsMt, which contains propositional information presented within The Simpsons TV show. Clearly the writers of The Simpsons do not take these assertions to be literally, factually true, nor do they intend for their audience to believe them. They want us to consider the propositions, but in some way differently than we would factual information. It s important to be able to distinguish microtheories like this and treat them differently from the way we treat microtheories which are supposed to be factual. #$CounterfactualContext is also a generalization of #$HypotheticalContext. #$HypotheticalContext s allow us to consider what would happen if something were true, without actually treating that possibility in the KB as if it were factually true and modifying our current representation accordingly. 8

Microtheory predicates: #$ist Explicitly relates a microtheory to a formula that is true in that microtheory. (#$ist MT FORMLA) means that the Cyc formula FORMLA is true in the microtheory MT. (#$ist #$CyclistsMt (#$isa #$Lenat #$Person)) (#$ist #$NaiveStateChangeMt (#$implies (#$and (#$isa?freeze #$Freezing) (#$outputscreated?freeze?obj)) (#$stateofmatter?obj #$SolidStateOfMatter))) To say that an assertion is true within a microtheory, we use the predicate #$ist. A formula of the form (#$ist MT FORMULA) means that the formula in the second argument place is true in the microtheory specified in the first argument place. So for example, it s true in the #$CyclistsMt microtheory that #$Lenat is an instance of #$Person. It s true in the #$NaiveStateChangeMt microtheory that if you have a freezing event and you have something that s created in that freezing event, that created object is in a solid state. Why is it important to locate this last assertion in the #$NaiveStateChangeMt microtheory? Because #$outputscreated, that predicate in the second-to-last line, is restricted to use in events in which something is destroyed and something is created. That s the naive view of something like freezing, where we talk about water disappearing and ice that is created. But of course this would not be a physicist s view of the event. In a physicists view, nothing is created or destroyed; rather, something undergoes a change of state. So, this assertion is local to #$NaiveStateChangeMt. And #$ist allows us to specify that. 9

Microtheory predicates: #$genlmt Relates two microtheories such that one of them inherits the assertions in the other; i.e., the first microtheory has access to the assertions in the second microtheory. (#$genlmt MT-1 MT-2) means that every assertion which is true in MT-2 is also true in MT-1. #$genlmt is transitive. (#$genlmt #$TransportationMt #$NaivePhysicsMt) (#$genlmt #$ModernMilitaryTacticsMt #$ModernMilitaryVehiclesMt) (#$genlmt #$EconomyMt #$TransportationMt) To say that two microtheories are related by an inheritance relationship, we use the predicate #$genlmt. A formula of the form (#$genlmt MT-1 MT-2) means that every assertion which is true in the microtheory in the second argument place is also true in the microtheory in the first argument place. Another way of putting this is that MT-1 inherits from MT-2, or that MT-2 is visible from MT-1. The first example sentence states that the #$TransportationMt microtheory inherits from the #$NaivePhysicsMt microtheory. When you re in the #$TransportationMt microtheory you can see all of the assertions in #$NaivePhysicsMt and use them. The second example sentence states that #$ModernMilitaryTacticsMt inherits all of the assertions from #$ModernMilitaryVehiclesMt, so if you re talking about tactics you can use the knowledge about vehicles. The third example sentence states that the #$Transportation Mt is visible from the #$EconomyMt. When you are reasoning in the #$EconomyMt, say about imports and exports, you can use the knowledge about transportation. #$genlmt is transitive. Notice that the first sentence says that #$NaivePhysicsMt is visible from #$TransportationMt, and the third says that #$TransportationMt is visible from #$EconomyMt. Since #$genlmt is transitive, it follows that #$NaivePhysicsMt is visible from #$EconomyMt. 10

Microtheory predicates, cont d. #$genlmt #$BaseKB genlmt genlmt #$NaiveSpatialMt genlmt genlmt #$MovementMt genlmt #$NaturalGeographyMt #$NaivePhysicsMt genlmt #$TransportationMt Here s a sample #$genlmt hierarchy. The #$TransportationMt microtheory inherits from the #$NaivePhysicsMt microtheory, meaning that all naïve physics knowledge is visible in #$TransportationMt. Since #$NaivePhysicsMt inherits from #$NaiveSpatialMt and #$genlmt is transitive, all of the assertions in #$NaiveSpatialMt are also visible in #$TransportationMt. Given the #$genlmt heirarchy on this slide, if you are writing an assertion or asking a query in #$TransportationMt, you can rely on all of the knowledge in #$NaivePhysicsMt, #$NaiveSpatialMt, #$MovementMt and #$BaseKB. #$NaturalGeographyMt, on the lower left of the slide, inherits from #$NaiveSpatialMt as well, but doesn t inherit from #$NaivePhysicsMt or #$MovementMt. If you re stating an assertion or asking a query within the #$NaturalGeographyMt microtheory, you can count on the information in #$NaiveSpatialMt and in #$BaseKB, but not the information in #$NaivePhysicsMt or #$MovementMt. 11

Finding the right microtheory Microtheory placement is important in both making assertions and asking queries. An assertion is visible in all and only the mts that inherit from the mt in which it is placed. A query is answered using all and only assertions in mts visible from the mt in which it is asked. Well-formedness requires visibility of definitional information (#$isa, #$, #$arity, #$arg1isa...) for all the terms used. Good placement of assertions makes them visible in the microtheories in which they are needed. That is, good placement is not too specific. Good placement of assertions makes them invisible in microtheories in which they are not needed; otherwise, search space for inference in the lower microtheories is needlessly increased. That is, good placement is not too general. Microtheory placement is very important in both assertion-making and queryasking. Consider: an assertion is visible only in the Mt s that inherit from the microtheories in which it is placed. When a query is answered, the inference answering the query uses exactly those assertions that are in microtheories that are visible from the microtheory in which it is asked. In other words, the query is answered using only the information available in the current microtheory or above it in the microtheory hierarchy. Furthermore, for an assertion or query to be well-formed (to make sense in Cyc), requires that the definitional information about the terms used in that query or assertion be visible from the microtheory where it is asked or asserted. This gives rise to a certain tension. If you re making an assertion and you want it to be visible everywhere in which it might be needed, you want to place it fairly high up, not too low down. On the other hand, if you want to make sure that your assertions are not visible where they re not needed, so that you minimize your search space for inference, you don t want to place your assertions too high; you want to place them lower, more specifically. As it turns out, this tension has different consequences depending on the application that is being developed. If accuracy (or completeness) is more important than efficiency, KB builders will tend to place their assertions higher in the microtheory hierarchy. If efficiency is more important, they ll tend to place them lower and sacrifice completeness. In either case, though, good microtheory placement is very important. 12

Finding the right microtheory 3607 instances of #$Microtheory as of 02/05/01 254 instances of #$GeneralMicrotheory For now, no substitute for familiarity To determine the function of some microtheory: read the #$comment examine the assertions examine the place in the mt hierarchy in which it fits if still unclear, consult the #$mycreator (or someone who has made many assertions in that microtheory) There are many instances of #$Microtheory in the KB several thousand, in fact. At the moment, there is no substitute for familiarity with the microtheories relevant to the area in which you are working. To understand a microtheory in the KB, the first thing to do is to read the comment. Examining the assertions can also reveal the intent behind the microtheory, as can examining where it falls in the microtheory hierarchy. 13

Forthcoming Changes/Improvements For more efficient ontology building and inference, we want: Dynamic generation of microtheories Software power tools that suggest best microtheory placement for an assertion or a query More targeted, smaller contexts, i.e., re-place each assertion These, in turn, require: More explicit representation of context features e.g., topic, level of granularity, time period in which it holds, More explicit representation of the relationships that hold between contexts (besides just #$genlmt) These improvements are part of : * RKF tools * Context overhaul Cycorp has identified additional features as forthcoming changes or improvements. These will enable us to get the most out of the microtheory hierarchy. To maximize the efficiency of ontology building and inference, we want microtheories that are dynamically generated. We don t want to specify ahead of time which gatherings, or bundles, of assertions might be most relevant. We want to be able to do that on the fly. according to any features that we need at the moment. We d like to have power tools that suggest where in the microtheory hierarchy a query or assertion can be placed. This would assist a KB builder or application user in finding the right information without requiring them to have full familiarity with all possibly relevant microtheories. We d also like more specifically targeted, smaller contexts. In other words we d like to re-place assertions to get exactly the right place on the hierarchy to counteract some of the inexactness coming from the tension described earlier. In order to have those features we need more explicit representation of the context features than we currently have. We d like to explicitly represent the topic, the level of granularity, and the time period in which a microtheory holds as well as other features that, in our experience, tend to be relevant for inference and knowledge representation. Further, for each such feature, a deep and explicit representation of the relationship that holds between contexts that differ along that feature, for example contexts that differ in time, is also 14

Summary What is a microtheory? Why have microtheories? Some types of microtheories Microtheory predicates Finding the right microtheory In summary, we ve reviewed what a microtheory is: a bundle of assertions out of the Cyc KB. We've looked at some reasons for having microtheories, and the benefits for both knowledge base building and inference. We ve seen some sample types of microtheories. We ve looked at the two foundational microtheory predicates: #$ist and #$genlmt. Finally, we reviewed considerations in finding the right microtheory: not too specific and not too general. 15