Skip to main content
QUICK REVIEW

[Paper Review] Agent Programming with Declarative Goals

Frank S. de Boer, Koen V. Hindriks|ArXiv.org|Jul 3, 2002
Multi-Agent Systems and NegotiationComputer Science20 references52 citations
TL;DR

This paper introduces GOAL, a goal-oriented agent programming language that integrates declarative goals—goals-to-be—into agent programming, addressing the longstanding gap between agent logics and programming frameworks. By formalizing commitment strategies and providing a Hoare-style proof theory and temporal logic, GOAL enables verification of agent properties through program text alone, offering a complete theory of agent programming with both semantics and logic.

ABSTRACT

A long and lasting problem in agent research has been to close the gap between agent logics and agent programming frameworks. The main reason for this problem of establishing a link between agent logics and agent programming frameworks is identified and explained by the fact that agent programming frameworks have not incorporated the concept of a `declarative goal'. Instead, such frameworks have focused mainly on plans or `goals-to-do' instead of the end goals to be realised which are also called `goals-to-be'. In this paper, a new programming language called GOAL is introduced which incorporates such declarative goals. The notion of a `commitment strategy' - one of the main theoretical insights due to agent logics, which explains the relation between beliefs and goals - is used to construct a computational semantics for GOAL. Finally, a proof theory for proving properties of GOAL agents is introduced. Thus, we offer a complete theory of agent programming in the sense that our theory provides both for a programming framework and a programming logic for such agents. An example program is proven correct by using this programming logic.

Motivation & Objective

  • To close the gap between agent logics and agent programming frameworks, which has persisted due to the absence of declarative goals in existing frameworks.
  • To introduce GOAL, a new agent programming language that incorporates declarative goals (goals-to-be) rather than procedural plans (goals-to-do).
  • To formalize a computational semantics for GOAL using the commitment strategy concept from agent logics.
  • To develop a proof theory for verifying agent properties using Hoare triples and a temporal logic with the {f until} operator.
  • To demonstrate that agent properties can be verified by inspecting program text alone, avoiding trace-based reasoning.

Proposed method

  • Designing GOAL as a programming language inspired by UNITY, with explicit support for beliefs, goals, capabilities, and actions.
  • Defining a formal operational semantics using mental states and traces to model agent execution.
  • Introducing a Hoare logic for GOAL with a weakest liberal precondition (wlp) semantics to reason about program correctness.
  • Extending the logic with a temporal logic ${\cal{L}}_T$ featuring the {f init} and {f until} operators for specifying liveness and safety properties.
  • Establishing a formal link between the programming logic and operational semantics to ensure logical proofs correspond to actual agent behavior.
  • Proving that temporal properties like liveness and safety are equivalent to sets of Hoare triples, enabling verification via program text alone.

Experimental results

Research questions

  • RQ1How can declarative goals (goals-to-be) be effectively integrated into agent programming languages to bridge the gap with agent logics?
  • RQ2What formal semantics can be defined for a programming language that supports declarative goals and commitment strategies?
  • RQ3Can a proof theory be constructed such that properties of GOAL agents can be verified using only the program text, without trace analysis?
  • RQ4How can temporal logic be extended to express liveness and safety properties of agents in a way that is formally linked to program semantics?
  • RQ5What is the relationship between Hoare triples and temporal logic formulas in the context of agent programs?

Key findings

  • GOAL successfully integrates declarative goals into agent programming, providing a formal framework that aligns with agent logic concepts like beliefs and goals.
  • The commitment strategy from agent logics is used to define a computational semantics for GOAL, ensuring coherence between mental states and actions.
  • A Hoare-style proof theory is established for GOAL, enabling formal verification of agent programs using weakest liberal preconditions.
  • Temporal logic formulas in ${\cal{L}}_T$ are formally linked to program traces, allowing specification of liveness and safety properties.
  • Liveness and safety properties expressed in temporal logic are shown to be equivalent to sets of Hoare triples, enabling verification by program text inspection alone.
  • The example program is proven correct using the introduced logic, demonstrating the feasibility of verifying agent behavior through formal reasoning on the source code.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.