Modeladvanced
Event calculus
Also called Kowalski-Sergot event calculus.
A logic of events on a time line in which events initiate and terminate fluents, fluents persist between such events, and circumscription makes the lists of events and effects complete.
The event calculus is a logic for reasoning about events that happen at points on a time line and about the fluents that they make true or false. A fluent made true by an event stays true until an event makes it false; this commonsense law of inertia is written once, as a few domain-independent axioms. Kowalski and Sergot (1986) introduced the calculus as a logic program, and Shanahan (1997, 1999) recast it in classical logic with circumscription. The situation calculus reasons about branching hypothetical histories and states inertia fluent by fluent in its successor state axioms; the event calculus reasons about one actual narrative of events on a linear time line, which makes concurrent events, events at given times and continuous change easier to state.
The machine
Syntax. The language is many-sorted, with sorts for events (often actions), fluents and time points. Time points are ordered by ; they are the integers in the discrete event calculus and the non-negative reals in other versions. The basic predicates are
| predicate | meaning |
|---|---|
| event occurs at time | |
| if occurs at , fluent is true after | |
| if occurs at , fluent is false after | |
| fluent is true at time | |
| , | is true, or false, at time 0 |
| some event terminates strictly between and | |
| some event initiates strictly between and |
Domain-independent axioms. A basic form of the axioms, in the style of Shanahan (1999), is
- ;
- ;
- ;
and the same three with , , and in place of , , and . Miller and Shanahan (2002) compare variants that differ in such details as whether an event at itself can clip a fluent, and whether a fluent holds at the time point of the event that initiates it.
Domain description. A problem consists of
- , the effect axioms, as definitions of and , possibly with conditions on at the time of the event;
- , the narrative, as facts or formulas about ;
- , observations, such as facts or facts;
- , unique names axioms for events and fluents.
Semantics. The theory is
where is the set of domain-independent axioms. Circumscribing and in makes the effects listed in the only effects, and circumscribing in makes the events listed in the only events. Persistence then follows from the axioms: with no event that terminates , nothing clips it. The original calculus of Kowalski and Sergot (1986) gets the same effect from negation as failure in a logic program.
Example. A light with the effects and , and the narrative , , . The circumscription makes these the only events and effects. Then holds, because occurs at 1 and no occurs between 1 and 3. holds by the negative axioms, because occurs at 5. holds again. Two events at the same time point are allowed: adding makes both and apply after 8, and the axioms then give both and , so the theory is inconsistent. A domain that allows such events must say which effect wins, for example with a condition in .
What it counts
Every question is an entailment question from the circumscribed theory. The usual tasks are
- temporal projection (deduction): given , and the initial state, does follow?
- planning (abduction): given , the initial state and a goal , find a narrative that, added to the theory, entails the goal; this is abduction, and the events of are the plan;
- explanation (abduction): given observations at later times, find events in the past that account for them;
- learning effects (induction): given narratives and observations, find .
Relation to other models
- Situation calculus. A situation is a history of actions and every history is a possible future, so the situations form a tree; the event calculus has one time line and a narrative of what actually happens on it. The situation calculus states inertia in one successor state axiom for each fluent; the event calculus states it once in and gets completeness of the effects from circumscription. Concurrent events and events at known times fit the event calculus directly.
- Yale shooting problem. Minimizing change, as in early uses of circumscription, gives an unwanted model in which the gun becomes unloaded during a wait. The event calculus minimizes events and effects, not change, so the gun can only become unloaded through an event in that terminates , and there is none.
- Logic programs. The original calculus is a logic program with negation as failure. When and are definitions without recursion through the minimized predicates, the circumscriptions equal the Clark completion of those predicates (Shanahan 1999), which links the two readings.
- Temporal logic describes properties of paths of states with modal operators; the event calculus names time points explicitly and quantifies over them.
Known results in the model
- Circumscription becomes completion. If the effect axioms and the narrative do not define , or in terms of themselves, each circumscription is equivalent to the predicate completion of the minimized predicates, a first-order formula (Shanahan 1999). Under this condition the whole theory is first-order, and projection is first-order entailment.
- Undecidable in general. The theory may contain arbitrary first-order formulas over unbounded time, so entailment is undecidable in general.
- Bounded discrete problems are propositional. With integer time up to a bound and finitely many ground events and fluents, the theory after completion is a propositional formula with copies of each fluent and event, and each query is a SAT or unsatisfiability question. Mueller's reasoner for the discrete event calculus works this way (Mueller 2015).
- Continuous change. The full event calculus adds a predicate , which frees a fluent from inertia, and , which says how a fluent changes during the time after became true at , for quantities such as the level of water in a filling tank (Shanahan 1999; Miller and Shanahan 2002).
References
- Robert Kowalski and Marek Sergot, A logic-based calculus of events, New Generation Computing 4(1), 1986, pages 67 to 95, the original calculus as a logic program with negation as failure, with events that start and end periods of time (general locator)
- Murray Shanahan, The event calculus explained, in Michael J. Wooldridge and Manuela Veloso (eds.), Artificial Intelligence Today, Lecture Notes in Artificial Intelligence 1600, Springer, 1999, pages 409 to 430, the simple event calculus in classical logic with circumscription, its reduction to predicate completion, and the extensions for continuous change (general locator)
- Murray Shanahan, Solving the Frame Problem, A Mathematical Investigation of the Common Sense Law of Inertia, MIT Press, 1997, the chapters on the event calculus and on circumscription (general locator)
- Rob Miller and Murray Shanahan, Some alternative formulations of the event calculus, in Antonis C. Kakas and Fariba Sadri (eds.), Computational Logic, Logic Programming and Beyond, Lecture Notes in Artificial Intelligence 2408, Springer, 2002, pages 452 to 490, variants of the axioms, including different treatments of time points, concurrent events and release from inertia (general locator)
- Erik T. Mueller, Commonsense Reasoning, An Event Calculus Based Approach, second edition, Morgan Kaufmann, 2015, the discrete event calculus over integer time and its reasoner that encodes bounded problems as SAT (general locator)
- Frank van Harmelen, Vladimir Lifschitz and Bruce Porter (eds.), Handbook of Knowledge Representation, Elsevier, 2008, Chapter 17, Event Calculus, by Erik T. Mueller (general locator)
About this page
The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W4 complete |
|
Tag 822MPG Edit this page History Report an error Markdown