![]() |
Formalized Common Knowledge |
|
Exercise: Microtheories and Inferencing
This exercise is divided into three parts: Part 1: Preliminary Knowledge EntryFirst, locate the constant #$January, and verify these facts are available in #$CalendarsMt, asserting them if necessary (Use the "Assert" page available through your browser via the Toolbar):
Next, locate or create the constant #$NewYearsDay, and assert in #$CalendarsMt, if necessary:
Step 2: Creating New MicrotheoriesNext, you're going to work with a microtheory that contains information true and relevant in the Northern Hemisphere. It is called (predictably) #$NorthernHemisphereMt. Make sure that the following assertions are available in your Cyc image, asserting them if necessary:
[in #$BaseKB] [in #$NorthernHemisphereMt] Next, create #$WesternCultureMt, which will contain information true and relevant in Western cultures. Use the "Create" page available in your browser via your toolbar to create the constant #$WesternCultureMt. As with #$NorthernHemisphereMt, assert:
[in #$BaseKB] Assign #$HumanSocialLifeMt as a #$genlMt:
[in #$BaseKB] In #$WesternCultureMt, assert:
Now create #$NorthAmericanCultureMt, and then assert that it is an instance of #$GeneralMicrotheory. Assert that #$NorthernHemisphereMt and #$WesternCultureMt are #$genlMts of #$NorthAmericanCultureMt. Step 3: Querying within MicrotheoriesGo to the Ask interface, and set these four resource constraints:
Using the "Advanced Inference Parameters" set "Cache backward query results" to "Yes". In #$NorthAmericanCultureMt ask:
Examine #$NewYearsDay, and note that the assertion you just asked about has been inferred:
Now try the ASK in #$CalendarsMt, #$NorthernHemisphereMt, and #$WesternCultureMt.
Now ask if every #$NewYearsDay is a #$LegalHoliday in #$CalendarsMt, in #$NorthAmericanCultureMt, and #$NorthernHemisphereMt:
|