A Well-Founded Semantics for FOL-Programs

Yi Bi, Jia-Huai You, Zhiyong FengarXiv 2014

Abstract

An FOL-program consists of a background theory in a decidable fragment of first-order logic and a collection of rules possibly containing first-order formulas. The formalism stems from recent approaches to tight integrations of Answer Set Programming (ASP) with description logics. In this paper, we define a well-founded semantics for FOL-programs based on a new notion of unfounded sets on consistent as well as inconsistent sets of literals, and study some of its properties. The semantics is defined for all FOL-programs, including those where it is necessary to represent inconsistencies explicitly. The semantics supports a form of combined reasoning by rules under closed world as well as open world assumptions, and it is a generalization of the standard well-founded semantics for normal logic programs. We also show that the well-founded semantics defined here approximates the well-supported answer set semantics for normal DL programs.

Introduction

In the field of Knowledge Representation (KR), two dominant paradigms often exist in tension: First-Order Logic (FOL), which typically operates under the Open World Assumption (OWA), and Logic Programming (ASP), which operates under the Closed World Assumption (CWA). Integrating these paradigms is essential for building robust AI systems capable of both ontological reasoning and database-style inference.

This paper introduces a formal framework for "FOL-programs"—hybrid systems that combine a background theory (such as a Description Logic ontology) with logic programming rules. The authors propose a new Well-Founded Semantics (WFS) that addresses the limitations of previous integration attempts, particularly regarding syntactic restrictions and the handling of logical inconsistencies.

The Challenge of Hybrid Reasoning

Previous attempts to bridge the gap between OWA and CWA faced three primary hurdles:

  1. Syntactic Restrictions: Many systems limited the ability to share predicates between the logic theory and the rules.
  2. Rigid Assumptions: Predicates were often forced to be strictly OWA or strictly CWA, preventing nuanced modeling.
  3. Inconsistency Fragility: Most systems become undefined or "break" if a contradiction is encountered (e.g., concluding both $A$ and $\neg A$).

Methodology: A New Well-Founded Semantics

The authors define a WFS for FOL-programs that assigns one of three truth values to statements: True, False, or Unknown. The cornerstone of this approach is a novel definition of unfounded sets.

In traditional logic programming, an unfounded set is a collection of atoms that can be safely assumed false because they lack a derivation path. This paper extends this concept to work within complex first-order logic theories and, crucially, to remain functional even when the current set of facts is inconsistent.

The Fixpoint Operators

The semantics is derived by finding the least fixpoint of a master operator, $W_{KB}$, which integrates four specific mathematical components:

  • $T_{KB}$ (Consequence): Derives new true facts from rules and the background theory.
  • $U_{KB}$ (Unfounded): Identifies facts that are unfounded and should be marked false.
  • $Z_{KB}$ (Negative Consequence): Identifies facts directly contradicted by the background logic theory.
  • $W_{KB}$: The unifying operator that updates the program state iteratively until stability is reached.

Key Insights

Inconsistency as a Feature

Unlike many frameworks that fail upon encountering a contradiction, this semantics allows for the explicit representation of inconsistent sets. This is a significant advantage for developers, as it provides diagnostic information about why a program lacks a valid answer set without requiring an exhaustive search of the state space.

Bidirectional Information Flow

The framework enables a "tight" integration where information flows bidirectionally. A Description Logic (DL) axiom can trigger a rule, and conversely, the conclusion of a rule can satisfy a constraint within the DL theory. This allows for hybrid reasoning, such as combining database-driven facts (CWA) with medical or legal ontologies (OWA).

Results and Implications

The paper establishes two major theoretical results:

  1. Generalization: The proposed system is a true generalization of standard logic programming. If the FOL background theory is removed, the semantics behaves identically to the classical well-founded semantics used for decades.
  2. Approximation Power: The authors prove that this WFS approximates the well-supported answer set semantics. Because it is computationally cheaper than finding full answer sets, this WFS can serve as a powerful "pre-processor" or constraint propagator, identifying facts that must be true or false in any valid solution.

Conclusion

While the computational complexity of reasoning in FOL fragments remains a challenge, this paper provides a robust theoretical foundation for hybrid KR systems. By gracefully handling inconsistencies and allowing for the flexible integration of OWA and CWA, the well-founded semantics for FOL-programs represents a significant step toward more expressive and resilient artificial intelligence.

Summary updated

BibTeX
@misc{bi2014well,
  author = {Yi Bi and Jia-Huai You and Zhiyong Feng},
  title = {{A Well-Founded Semantics for FOL-Programs}},
  year = {2014},
  eprint = {1405.3365},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1405.3365},
}
Figure