ArticleslgStudy

science

CycL

CycL is a science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand CycL rather than just read about it. In short: CycL in computer science and artificial intelligence, is an ontology language used by Douglas Lenat's Cyc artificial intelligence project. Ramanathan V.

Key takeaways

  • CycL belongs to science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect CycL to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of CycL from memory before moving on to harder problems.

Reference excerpt

CycL in computer science and artificial intelligence, is an ontology language used by Douglas Lenat's Cyc artificial intelligence project. Ramanathan V. Guha was instrumental in designing early versions of the language. A close CycL variant exists named MELD. The original version of CycL was a frame language, but the modern version is not. Rather, it is a declarative language based on classical first-order logic, with extensions for modal logic operators and higher-order logic quantification. CycL is used to represent the knowledge stored in the Cyc Knowledge Base, available from Cycorp. The source code written in CycL released with the OpenCyc system is licensed as free and open-source software, to increase its usefulness in supporting the semantic web.

Basic ideas The basic ideas of CycL include:

Naming the constants used to refer to information for represented concepts. Grouping the constants together in a generalization—specialization hierarchy, usually called categorization. Stating general rules that support inference about the concepts. The truth or falsity of a CycL sentence is context-relative; these contexts are represented in CycL as Microtheories.

Constants The concept names in Cyc are known as constants. Constants start with "#$" and are case-sensitive. There are constants for:

Individual items known as individuals, such as #$BillClinton or #$France. Collections, such as #$Tree-ThePlant (containing all trees) or #$EquivalenceRelation (containing all equivalence relations). A member of a collection is called an instance of that collection. Truth Functions which can be applied to one or more other concepts and return either true or false. For example, #$siblings is the sibling relationship, true if the two arguments are siblings. By convention, truth function constants start with a lower-case letter. Truth functions may be broken down into logical connectives (such as #$and, #$or, #$not, #$implies), quantifiers (#$forAll, #$thereExists, etc.) and predicates. Functions, which produce new terms from given ones. For example, #$FruitFn, when provided with an argument describing a type (or collection) of plants, will return the collection of its fruits. By convention, function constants start with an upper-case letter and end with the string "Fn".

Specialization and generalization The most important predicates are #$isa and #$genls. The first one (#$isa) describes that one item is an instance of some collection (i.e., specialization), the second one (#$genls) that one collection is a subcollection of another one (i.e., generalization). Facts about concepts are asserted using certain CycL sentences. Predicates are written before their arguments, in parentheses: For example:

(#$isa #$BillClinton #$UnitedStatesPresident) \; "Bill Clinton belongs to the collection of U.S. presidents" and

(#$genls #$Tree-ThePlant #$Plant) \; "All trees are plants".

(#$capitalCity #$France #$Paris) \; "Paris is the capital of France."

Rules Sentences can also contain variables, strings starting with "?". One important rule asserted about the #$isa predicate reads

(#$implies (#$and (#$isa ?OBJ ?SUBSET) (#$genls ?SUBSET ?SUPERSET)) (#$isa ?OBJ ?SUPERSET))

with the interpretation "if OBJ is an instance of the collection SUBSET and SUBSET is a subcollection of SUPERSET, then OBJ is an instance of the collection SUPERSET". Another more complicated example is one that expresses a rule about a group or category rather than any particular individual, is:

(#$relationAllExists #$biologicalMother #$ChordataPhylum #$FemaleAnimal)

which means that for every instance of the collection #$ChordataPhylum (i.e., for every chordate), there exists a female animal (instance of #$FemaleAnimal) which is its mother (described by the predicate #$biologicalMother). (Or in looser English, if a given animal has a backbone, then there will be a link from that animal expressing the concept of that animal's "biological Mother". The thing that "fills in the blank" for the biological Mother must also be able to be categorized as a Female Animal.)

Microtheories The knowledge base is divided into microtheories (Mt), collections of concepts and facts typically pertaining to one particular realm of knowledge. Unlike the knowledge base as a whole, each microtheory is required to be free from contradictions. Each microtheory has a name which is a regular constant; microtheory constants contain the string "Mt" by convention. An example is #$MathMt, the microtheory containing mathematical knowledge. The microtheories can inherit from each other and are organized in a hierarchy: One specialization of #$MathMt is #$GeometryGMt, the microtheory about geometry.

See also List of Ontology languages

References

Worked examples

Example 1 — a first encounter with CycL

Start with the simplest possible case. Write down what CycL claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to CycL before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about CycL ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of CycL

In research
CycL appears in science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses CycL in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
CycL is common in secondary-school and first-year university syllabi. It links to neighbouring topics Declarative programming languages, Knowledge representation languages, Logic programming languages, so understanding it makes those chapters shorter.
In everyday life
Look for CycL outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “CycL” →

How to study CycL in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what CycL means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain CycL out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is CycL in simple terms?

CycL in computer science and artificial intelligence, is an ontology language used by Douglas Lenat's Cyc artificial intelligence project. Ramanathan V.

Why does CycL matter?

Because it connects several science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study CycL?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on CycL.

Tags

  • Declarative programming languages
  • Knowledge representation languages
  • Logic programming languages
  • Ontology languages

Keep exploring