Introduction
In the mid-1980s, logic programming was largely synonymous with Prolog. Developed by researchers at the System Development Corporation, the Flexible Deductive Engine (FDE) represented a significant attempt to move beyond the rigid search strategies of early logic programming languages. The FDE offers a modular architecture that separates logical representation from inference control, providing a "deductive core" that uses Predicate Connection Graphs (PCGs) to decouple logic from search strategy.
The Problem: Limitations of Prolog
During this era, Prolog faced two major limitations that the authors sought to overcome:
- Rigid Control: Prolog is hard-coded to use a depth-first, left-to-right search. For problems better suited for breadth-first search or complex database joins, developers often had to "hack" the logic to achieve efficiency.
- Limited Logic: Prolog primarily handles Horn clauses and relies on "negation as failure." This can lead to logically incorrect results in "open-world" scenarios, where a lack of information does not necessarily imply falsehood.
The FDE was designed to bridge the gap between logic programming and large-scale Knowledge Management Systems (KMS), providing a flexible interface for multiple external relational databases while supporting diverse search behaviors.
System Architecture
The FDE is divided into four modular components, as illustrated in the system architecture (Figure 1).
- Knowledge Base: This component stores rules and identifies "points of contact" for facts stored in external relational databases.
- Unification Engine: Based on the Loglisp algorithm, it supports "multiple simultaneous contexts," allowing the system to track many different variable bindings across parallel search paths.
- Search Engine: It explores the search space by building an AND/OR tree derived from the PCG.
- Search Control Strategy: This is the "flexible" part of the engine. It consists of a suite of functions that dictate how the search engine chooses, prunes, or expands states. This allows the same logic to be executed as if it were Prolog, Loglisp, or a custom heuristic-driven system.
The Predicate Connection Graph (PCG)
The heart of the FDE is the Predicate Connection Graph (PCG). Instead of treating rules as a simple list, the PCG encodes all potential unifications (connections) between predicates as a graph. This representation is strategy-independent, allowing for full first-order predicate calculus.
The FDE also uses biconditional forms (if and only if) to handle negation. By transforming rules using De Morgan’s laws, the system can reason about what is not true more robustly than standard Prolog. For instance, in the "Bachelor" problem, the PCG handles negation and query reordering more gracefully by delaying negation until necessary positive facts are retrieved from a database. This avoids common pitfalls where the order of literals in a rule determines success or failure.
Key Insights and Results
The most significant contribution of the FDE is the total decoupling of logical truth (stored in the PCG) from the search strategy (stored in control functions). This makes the system an experimental playground for inference. By supporting full first-order predicate calculus, including Skolem normal forms, the FDE can handle hypothetical or counterfactual queries that are difficult to express in simpler logic languages.
To maintain system stability, the authors introduced unidirectional query links. Queries are linked to the PCG in only one direction, preventing "begging the question" (circular reasoning) and ensuring that if a query process crashes, it doesn't leave "hanging" connections in the permanent rule base.
The authors successfully demonstrated that the FDE could emulate both Prolog-style depth-first search and Loglisp-style breadth-first search using the same underlying PCG representation. The system was fully implemented in Interlisp-D on Xerox 1100-series Lisp Machines, proving the feasibility of the PCG approach for real-time deductive reasoning.
Limitations and Future Work
While the FDE represents a leap forward, the authors identified several areas for future development. Handling "aggregate" functions (like setof or counting) remains a work in progress. Additionally, the researchers aimed to move from "eager" database access to "batched" or "deferred" access to improve performance with large external datasets. Finally, the long-term goal involved moving these PCG strategies onto parallel logic machines to leverage concurrent search paths supported by the unification engine.
Summary updated