TL;DR
This paper introduces LAP, a system that merges logic programming (Prolog) with object-oriented programming. LAP aims to combine Prolog's strength in subtle reasoning with object-oriented programming's ability to model complex structures, creating a more powerful framework for AI applications, particularly expert systems.
What Problem Does This Paper Address?
Developing practical AI applications, especially Knowledge-Based Systems (KBS) or Expert Systems, hinges on two core components: knowledge representation and reasoning modules. The challenge lies in choosing the right tools to effectively model the domain and perform the necessary reasoning. Traditional approaches often struggle with either representing complex, interconnected entities or performing sophisticated reasoning. Logic programming, like Prolog, excels at subtle reasoning but is weak in describing complex structures. Conversely, object-oriented programming (OOP) is good at structuring complex data but can be less adept at deep reasoning. This paper addresses the gap by proposing a hybrid approach that leverages the complementary strengths of both paradigms.
Methods
The core of LAP is its integration of Prolog's logic programming concepts into an object-oriented framework. Key methodological aspects include:
- Object-Oriented Concepts: LAP models a universe of abstract frames (models) and their concrete realizations (instances). Models can form hierarchies through parentship links, supporting inheritance.
- Prolog Integration:
- Objects as Prolog Variables: Objects and their slots are treated as Prolog variables, allowing for partially known data and non-deterministic processing at the object level.
- Declarative Querying: The query language for object databases is Horn-clause logic, similar to Prolog, with no distinction between input and output arguments.
- Facets and Methods: Knowledge attached to models includes declarative (slots, constraints) and procedural (facets, methods) components. Facets, written as Prolog clauses, handle events like creation/suppression of instances or slot value changes (e.g.,
if_created,if_added,if_needed). Methods are generalized message-passing mechanisms. - Structural Concepts:
- Graph of Models: Models are organized in a graph structure, supporting multiple parentship (inheritance) and binary relations between models, akin to relational databases.
- Slots: Descriptive knowledge is captured through slots, which are inherited by instances. Slots have properties like type, legal values, and cardinality, all managed with Prolog's backtracking for non-determinism.
- Procedural Concepts: Facets and methods allow for defining rules that govern object behavior and reasoning.
if_neededfacets, for instance, enable inferring slot values from other information, simulating deduction.
Datasets
Not discussed in the paper.
Key Insights and Ideas
- Complementarity of Logic and OOP: The paper strongly argues that logic programming and object-oriented programming are not competing but complementary paradigms, each excelling in different aspects of AI problem-solving.
- Non-Determinism at the Object Level: By treating objects and slots as Prolog variables, LAP introduces non-determinism to object manipulation, enabling more flexible and powerful reasoning about partially known or evolving object states.
- Unified Framework for AI: LAP provides a single framework that integrates concepts typically found in relational databases, object-oriented languages, inference engines, and logic programming, simplifying the development of complex AI systems.
- Facets for Event-Driven Reasoning: The use of facets (like
if_created,if_added,if_needed) allows for a declarative and procedural way to define how objects react to events and how their states are maintained or inferred, crucial for dynamic systems. - Multiple Inheritance and Conflict Resolution: LAP supports multiple inheritance and explicitly addresses potential conflicts by using Prolog's depth-first search strategy for resolving inheritance.
Key Results
The paper demonstrates LAP's capabilities through examples, illustrating how it can:
- Define complex hierarchical models with multiple parentship and binary relations.
- Specify constraints and properties for object slots, including types, legal values, and cardinality.
- Implement event-driven behavior and slot value inference using facets.
- Handle message passing between objects through methods.
While no specific quantitative performance metrics are presented, the examples showcase the system's expressive power in modeling intricate scenarios, such as an animal finding a master.
Limitations and Future Work
- Implementation Details: The paper mentions LAP is implemented as a library of ~150 predicates and is available under Prolog II and Quintus-Prolog, with versions for Macintosh and Bull-SPS9 under development.
- User Interface: LAP provides a windowing and menu interface to facilitate knowledge acquisition and execution.
- Applications: LAP has been used in developing CAD systems, industrial simulation, and medical consultation expert systems.
- Future Work: The paper doesn't explicitly detail future work but implies the ongoing development of LAP and its application in various domains. The inherent flexibility of the system suggests potential for further exploration in areas requiring sophisticated reasoning and complex knowledge representation.
Summary updated