WIPIVERSE All articles

Well-founded semantics

Well‑founded semantics is a formal semantics for logic programs, especially normal (i.e., possibly containing negation‑as‑failure) definite programs. It provides a three‑valued interpretation—assigning each ground atom one of the truth values true, false, or undefined—that captures a cautious form of reasoning about negation in non‑monotonic logic programs.

Origins and development
The semantics was introduced in 1991 by A. Van Gelder, K. A. Ross, and J. Schlipf in their paper The Well‑Founded Semantics for General Logic Programs. It was motivated by the need for a semantics that (a) always yields a unique model for any logic program, (b) can be computed efficiently, and (c) refines the classical least Herbrand model for definite programs while handling negation in a principled way.

Technical definition
Given a normal logic program P, the well‑founded semantics is defined via the alternating fixpoint construction:

  1. Immediate consequence operator $T_P$ maps a set of atoms to those that can be derived from the program’s rules using the current set as assumed true.
  2. Unfounded sets are collections of atoms that cannot be made true without circular justification through negation. The operator $U_P$ computes the greatest unfounded set with respect to a provisional interpretation.
  3. Starting from the empty interpretation, the process iteratively applies $T_P$ (to add certainly true atoms) and $U_P$ (to add certainly false atoms) until a fixpoint is reached. At this stage, atoms not assigned true or false are left undefined.

The resulting interpretation is the well‑founded model of P. It is the least (in the lattice of three‑valued interpretations) partial model satisfying the program’s rules.

Key properties

Property Explanation
Existence and uniqueness Every logic program has exactly one well‑founded model.
Consistency with stable models If a program has a stable model, the well‑founded model is a partial approximation: atoms true in every stable model are true, atoms false in every stable model are false, and others remain undefined.
Computational complexity The well‑founded model can be computed in polynomial time (specifically, $O(
Monotonicity The construction is monotonic with respect to program extensions; adding rules cannot make a previously true atom become false.
Relation to other semantics It is more skeptical than the stable model (answer set) semantics but more informative than the Kripke‑Kleene semantics for programs with recursion through negation.

Applications

  • Answer‑set programming (ASP): The well‑founded model is used as a preprocessing step to simplify programs, prune search spaces, and detect contradictions before computing stable models.
  • Deductive databases: Provides a basis for query answering under negation, guaranteeing a unique, tractable result.
  • Knowledge representation: Serves as a principled way to represent incomplete or default information where some conclusions remain undecided.
  • Formal verification: Used in model checking and static analysis for reasoning about recursive definitions with negation.

Implementations and tools

Numerous logic‑programming systems incorporate well‑founded semantics, either as a primary evaluation mode or as an auxiliary analysis:

  • XSB Prolog – integrates tabling with the well‑founded semantics for efficient evaluation of recursive queries with negation.
  • DLV – computes both well‑founded and stable models; the well‑founded model can be requested for quick approximation.
  • smodels – offers a well‑founded semantics routine used for simplification prior to stable‑model search.
  • Clingo – provides a --well-founded option to compute the well‑founded model of an ASP program.

Relation to other three‑valued semantics

  • Kripke‑Kleene semantics: Assigns the least fixed point of the immediate consequence operator in a three‑valued logic; it is generally less precise than the well‑founded semantics because it does not exploit unfounded sets.
  • Partial stable semantics: Extends stable model semantics to three values; the well‑founded model is the least partial stable model.

Limitations

  • The well‑founded semantics can leave many atoms undefined for programs with complex recursion through negation, which may be undesirable in contexts requiring a total model.
  • Its skeptical nature means that it does not capture all intended models when multiple, mutually exclusive stable models exist.

Further reading

  • Van Gelder, A.; Ross, K. A.; Schlipf, J. (1991). The Well‑Founded Semantics for General Logic Programs. Journal of the ACM, 38(3), 620–650.
  • Przymusinski, T. C. (1990). Logic Programs with Stratified Negation. In Proceedings of the 9th International Conference on Logic Programming (ICLP).
  • Leone, N.; et al. (2006). The DLV System for Knowledge Representation and Reasoning. ACM Transactions on Computational Logic, 7(3).

These sources provide the formal definitions, algorithmic details, and comparative analysis of well‑founded semantics within the broader landscape of non‑monotonic reasoning.

Browse

More topics to explore

    Browse all articles