LUPS - A language for updating logic programs

JJ Alferes, LM Pereira, H Przymusinska, TC Przymusinski

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

16 Citations (Scopus)
19 Downloads (Pure)


Most of the work conducted so far in the field of logic programming has focused on representing static knowledge, i.e. knowledge that does not evolve with time. To overcome this limitation, in a recent paper, the authors introduced the concept of dynamic logic programming. There, they studied and defined the declarative and operational semantics of sequences of logic programs (or dynamic logic programs), P-o + ... + P-n. Each such program contains knowledge about some given state, where different states may, e.g., represent different time periods or different sets of priorities. The role of dynamic logic programming is to employ relationships existing between the possibly mutually contradictory sequence of programs to precisely determine, at any given state, the declarative and procedural semantics of their combination.

But how, in concrete situations, is a sequence of logic programs built? For instance, in the domain of actions, what are the appropriate sequences of programs that represent the performed actions and their effects? Whereas dynamic logic programming provides a way for determining what should follow, given the sequence of programs, it does not provide a good practical language for the specification of updates or changes in the knowledge represented by successive logic progams.

In this paper we define a language designed for specifying changes to logic programs (LUPS - "Language for dynamic updates"). Given an initial knowledge base (in the form of a logic program) LUPS provides a way for sequentially updating it. The declarative meaning of a sequence of sets of update actions in LUPS is defined using the semantics of the dynamic logic program generated by those actions. We also provide a translation of the sequence of update statements sets into a single generalized logic program written in a meta-language, so that the stable models of the resulting program correspond to the previously defined declarative semantics. This meta-language is used in the actual implementation, although this is not the subject of this paper. Finally we briefly mention related work (lack of space prevents us from presenting more detailed comparisons).

Original languageEnglish
Title of host publicationLogic programming and nonmonotonic reasoning
EditorsM Gelfond, N Leone, G Pfeifer
Number of pages30
ISBN (Print)3-540-66749-0
Publication statusPublished - Jun 2002
Event5th International Conference on Logic Programming and Nonmonotonic Reasoning (LPNMR 99) - EL PASO
Duration: 2 Dec 19994 Dec 1999

Publication series

NameLecture Notes in Artificial Intelligence
ISSN (Print)0302-9743


Conference5th International Conference on Logic Programming and Nonmonotonic Reasoning (LPNMR 99)


  • Logic programming
  • Stable models
  • Semantics
  • Artificial intelligence
  • Set theory
  • Mathematical models
  • Knowledge engineering
  • Dynamic programming
  • Knowledge based systems


Dive into the research topics of 'LUPS - A language for updating logic programs'. Together they form a unique fingerprint.

Cite this