Skip to main content Accessibility help
×
Hostname: page-component-76fb5796d-45l2p Total loading time: 0 Render date: 2024-04-30T05:54:26.424Z Has data issue: false hasContentIssue false

7 - Rule system

Published online by Cambridge University Press:  07 December 2009

Philip E. Agre
Affiliation:
University of California, San Diego
Get access

Summary

Using dependencies in a rule system

This chapter discusses one use of dependencies, a programming language called Life. Although the demonstrations of Chapter 9 and 10 will use Life to make some points about improvised activity, this chapter describes Life programming as a technical matter with little reference to theoretical context. Readers who find these descriptions too involved ought to be able to skip ahead without coming to harm.

Life is a rule language, a simplified version of the Amord language (de Kleer, Doyle, Rich, Steele, and Sussman 1978). This means that a Life “program” consists of a set of rules. Each rule continually monitors the contents of a database of propositions, and sometimes the rules place new propositions in the database. The program that does all of the bookkeeping for this process is called the rule system. The rule system functions as the reasoner for a dependency system. The rule system and dependency system both employ the same database, and most of the propositions in the database have a value of IN or OUT. Roughly speaking, when an IN proposition (the trigger) matches the pattern of an IN rule, the rule fires and the appropriate consequence is assigned the value of IN. If necessary, the system first builds the consequent proposition and inserts it in the database. This might cause other rules to fire in turn, until the whole system settles down. In computer science terms, this is a forward–chaining rule system. The role of dependencies is to accelerate this settling down without changing its outcome. The technical challenge is to get the rule system to mesh smoothly with the dependency maintenance system underneath.

One might take two views of the Life rule system in operation. On one view, dependencies are accelerating the operation of rules.

Type
Chapter
Information
Publisher: Cambridge University Press
Print publication year: 1997

Access options

Get access to the full version of this content by using one of the access options below. (Log in options will check for institutional or personal access. Content may require purchase if you do not have access.)

Save book to Kindle

To save this book to your Kindle, first ensure coreplatform@cambridge.org is added to your Approved Personal Document E-mail List under your Personal Document Settings on the Manage Your Content and Devices page of your Amazon account. Then enter the ‘name’ part of your Kindle email address below. Find out more about saving to your Kindle.

Note you can select to save to either the @free.kindle.com or @kindle.com variations. ‘@free.kindle.com’ emails are free but can only be saved to your device when it is connected to wi-fi. ‘@kindle.com’ emails can be delivered even when you are not connected to wi-fi, but note that service fees apply.

Find out more about the Kindle Personal Document Service.

  • Rule system
  • Philip E. Agre, University of California, San Diego
  • Book: Computation and Human Experience
  • Online publication: 07 December 2009
  • Chapter DOI: https://doi.org/10.1017/CBO9780511571169.008
Available formats
×

Save book to Dropbox

To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Dropbox.

  • Rule system
  • Philip E. Agre, University of California, San Diego
  • Book: Computation and Human Experience
  • Online publication: 07 December 2009
  • Chapter DOI: https://doi.org/10.1017/CBO9780511571169.008
Available formats
×

Save book to Google Drive

To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Google Drive.

  • Rule system
  • Philip E. Agre, University of California, San Diego
  • Book: Computation and Human Experience
  • Online publication: 07 December 2009
  • Chapter DOI: https://doi.org/10.1017/CBO9780511571169.008
Available formats
×