Algorithm Search⌘K

Definitioncore

Gelfond-Lifschitz reduct

Also called GL reduct.

The reduct of a normal program by a set of atoms M deletes the rules blocked by M and the negative literals in the rest. The result has no negation, so it has a least model.

The Gelfond-Lifschitz reduct is the program transformation at the center of the stable model semantics. Given a ground normal program PP and a candidate set MM of true atoms, it fixes the meaning of every not\mathit{not} by MM and returns a program without negation. Gelfond and Lifschitz (1988) defined it, and called MM stable when the least model of the reduct is MM again. This page is about the transformation and its properties; the semantics built on it is on the stable model page, and the alternating fixpoint uses the same operator to compute the well-founded model.

Definition

Let PP be a ground normal program and MM a set of atoms. The reduct PMP^M is obtained from PP in two steps.

  1. Delete each rule that has a negative literal not c\mathit{not}\ c with c∈Mc \in M.
  2. Delete all negative literals from the remaining rules.

So a rule h←b1,…,bm,not c1,…,not ckh \leftarrow b_1, \ldots, b_m, \mathit{not}\ c_1, \ldots, \mathit{not}\ c_k gives the rule h←b1,…,bmh \leftarrow b_1, \ldots, b_m in PMP^M if no cjc_j is in MM, and nothing otherwise. The reduct is a definite program, so it has a least model lm(PM)\mathrm{lm}(P^M), which forward chaining computes in time linear in the size of PP (Horn satisfiability, Dowling and Gallier 1984). Write ΓP(M)=lm(PM)\Gamma_P(M) = \mathrm{lm}(P^M).

MM is a stable model of PP when ΓP(M)=M\Gamma_P(M) = M.

For a non-ground program, the reduct is taken of its ground instance over the Herbrand universe.

Examples and non-examples

Take the program

p ← not q.
q ← not p.
r ← p, not s.
MM PMP^M lm(PM)\mathrm{lm}(P^M) stable
∅\emptyset p. q. r←p.p.\ q.\ r \leftarrow p. {p,q,r}\{p, q, r\} no
{p}\{p\} p. r←p.p.\ r \leftarrow p. {p,r}\{p, r\} no
{q}\{q\} q. r←p.q.\ r \leftarrow p. {q}\{q\} yes
{p,r}\{p, r\} p. r←p.p.\ r \leftarrow p. {p,r}\{p, r\} yes
{p,q}\{p, q\} r←p.r \leftarrow p. ∅\emptyset no

The candidate {p}\{p\} is not stable: under it the rules also derive rr, and r∉{p}r \notin \{p\}. The candidate {p,q}\{p, q\} blocks both rules for pp and qq, so it supports nothing. The stable models are {q}\{q\} and {p,r}\{p, r\}.

  • Definite program. If PP has no negation, PM=PP^M = P for every MM, and the only stable model is the least model.
  • Self-blocking rule. For {p←not p}\{p \leftarrow \mathit{not}\ p\}, Γ(∅)={p}\Gamma(\emptyset) = \{p\} and Γ({p})=∅\Gamma(\{p\}) = \emptyset. No set is a fixpoint.
  • Non-example. Deleting only the negative literals, without first deleting the blocked rules, is not the reduct: on {p←not p}\{p \leftarrow \mathit{not}\ p\} it would make pp a fact for every MM.
  • Antimonotonicity. If M⊆NM \subseteq N, then PN⊆PMP^N \subseteq P^M, so ΓP(N)⊆ΓP(M)\Gamma_P(N) \subseteq \Gamma_P(M). Hence ΓP2\Gamma_P^2 is monotone, and its least and greatest fixpoints give the true and the not-false atoms of the well-founded model (Van Gelder 1993). This is the alternating fixpoint.
  • Reduct of a formula. For a disjunctive program, the same reduct gives a positive disjunctive program, and MM is an answer set when it is a minimal model of PMP^M. For arbitrary propositional formulas, Ferraris (2005) defined a reduct that replaces each maximal subformula false in MM by ⊥\bot.
  • SE-models. The pairs (X,Y)(X, Y) with X⊆YX \subseteq Y, Y⊨PY \models P and X⊨PYX \models P^Y characterize strong equivalence.
  • Stability check. Testing whether a given MM is stable takes linear time: build PMP^M and compute its least model. To decide whether a stable model exists is NP-complete, because the candidate MM must be guessed.

References

  1. Michael Gelfond and Vladimir Lifschitz, The stable model semantics for logic programming, in Robert A. Kowalski and Kenneth A. Bowen (eds.), Logic Programming: Proceedings of the Fifth International Conference and Symposium, MIT Press, 1070 to 1080 (1988), the definition of the transformation of a program by a set of atoms
  2. Allen Van Gelder, The alternating fixpoint of logic programs with negation, Journal of Computer and System Sciences 47(1), 185 to 221 (1993), the antimonotone operator built from the reduct
  3. Vladimir Lifschitz, Answer Set Programming, Springer (2019), the chapter on the reduct and stable models of propositional programs
  4. William F. Dowling and Jean H. Gallier, Linear-time algorithms for testing the satisfiability of propositional Horn formulae, Journal of Logic Programming 1(3), 267 to 284 (1984), the linear-time computation of the least model of a Horn program

Where this leads

About this page

The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.

LadderLevelWhat the next level needs
Human proofH0 no proof
  • add a proof in proofs/ (06.5)
LeanL0 no Lean part
  • name a Lean module in the lean field (07)
VisualV0 none
  • add viz/scene.ts or a figure (10)
WritingW4 complete
  • a review of the text: no review record reviews/84D73X/text.yaml