1 / 21

Extended LPs

Extended LPs. In Normal LPs all the negative information is implicit. Though that’s desired in some cases (e.g. the database with flight connections), sometimes an explicit form of negation is needed for Knowledge Representation “Penguins don’t fly” could be: noFly(X) ¬ penguin(X)

jenna
Download Presentation

Extended LPs

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Extended LPs • In Normal LPs all the negative information is implicit. Though that’s desired in some cases (e.g. the database with flight connections), sometimes an explicit form of negation is needed for Knowledge Representation • “Penguins don’t fly” could be: noFly(X) ¬ penguin(X) • This does not relate fly(X) and noFly(X) in: fly(X) ¬ bird(X) noFly(X) ¬ penguin(X) For establishing such relations, and representing negative information a new form of negation is needed in LP: Explicit negation - ¬

  2. Extended LP: motivation • ¬ is also needed in bodies: “Someone is guilty if is not innocent” • cannot be represented by: guilty(X) ¬ not innocent(X) • This would imply guilty in the absence of information about innocent • Instead, guilty(X) ¬ ¬innocent(X) only implies guilty(X) if X is proven not to be innocent • The difference between not p and ¬p is essential whenever the information about p cannot be assumed to be complete

  3. ELP motivation (cont) • ¬ allows for greater expressivity: “If you’re not sure that someone is not innocent, then further investigation is needed” • Can be represented by: investigate(X) ¬ not ¬innocent(X) • ¬ extends the relation of LP to other NMR formalisms. E.g • it can represent default rules with negative conclusions and pre-requisites, and positive justifications • it can represent normal default rules

  4. Explicit versus Classical ¬ • Classical ¬ complies with the “excluded middle” principle (i.e. F v ¬F is tautological) • This makes sense in mathematics • What about in common sense knowledge? • ¬A is the the opposite of A. • The “excluded middle” leaves no room for undefinedness The “excluded middle” implies that every X is either hired or rejected It leaves no room for those about whom further information is need to determine if they are qualified hire(X) ¬ qualified(X) reject(X) ¬¬qualified(X)

  5. ELP Language • An Extended Logic Program P is a set of rules: L0¬L1, …, Lm, not Lm+1, … not Ln (n,m ³ 0) where the Li are objective literals • An objective literal is an atoms A or its explicit negation ¬A • Literals not Lj are called default literals • The Extended Herbrand base HP is the set of all instantiated objective literals from program P • We will consider programs as possibly infinite sets of instantiated rules.

  6. ELP Interpretations • An interpretation I of P is a set I = T U not F where T and F are disjoint subsets of HP and ¬LÎ TÞ LÎ F (Coherence Principle) i.e. if L is explicitly false, it must be assumed false by default • I is total iff HP = T U F • I is consistent iff ¬$ L: {L, ¬L} Í T • In total consistent interpretations the Coherence Principle is trivially satisfied

  7. Answer sets • It was the 1st semantics for ELPs [Gelfond&Lifschitz90] • Generalizes stable models to ELPs • Let M- be a stable models of the normal P- obtained by replacing in the ELP P every ¬A by a new atom A’. An answer-set M of P is obtained by replacing A’ by ¬A in M- • A is true in an answer set M iff A Î S • A is false iff ¬A Î S • Otherwise, A is unknown • Furthermore, if M includes a pair of objective literals A and ¬A then M should include all objective literals • Some programs have no consistent answer sets: • e.g. P = {a ¬, ¬a ¬ }

  8. Answer sets and Defaults • Let DP be the default theory obtained by transforming: L0¬ L1,…,Lm, not Lm+1,…, not Ln into: L1,…,Lm : ¬Lm+1,…, ¬Ln L0 where ¬¬A is (always) replaced by A • There is a one-to-one correspondence between consistent answer-sets of P and consistent default extensions of DP

  9. Answer-sets and AEL • Let TP be the AEL theory obtained by transforming: L0¬ L1,…,Lm, not Lm+1,…, not Ln into: L1 Ù L L1 Ù… Ù Lm Ù L LmÙ Ù ¬ L Lm+1Ù … Ù ¬ L Lm Þ (L0 Ù L L0) • There is a one-to-one correspondence between the answer-sets of P and the expansions of TP

  10. Answer Sets and Stable Models • Substitute every negative objective literal ¬A by A’ in program P’ • Add to P’ the following rules for every pair of atoms A, B: A ¬ B, B’. A’ ¬ B, B’. • The answer sets of P are in 1-1 correspondence with the Stable Models of P’. • If we remove the extra rules we obtain Paraconsistent Answer Set Semantics.

  11. The coherence principle • Generalizing WFS in the same way yields unintuitive results: pacifist(X) ¬ not hawk(X) hawk(X) ¬ not pacifist(X) ¬pacifist(a) • Using the same method the WFS is: {¬pacifist(a)} • Though it is explicitly stated that a is non-pacifist, not pacifist(a) is not assumed, and so hawk(a) cannot be concluded. • Coherence is not satisfied... • Coherence must be imposed

  12. Imposing Coherence • Coherence is: ¬LÎ TÞ LÎ F, for objective L • According to the WFS definition, everything is false that doesn’t belong to G(T) • To impose coherence, when applying G(T) simply delete all rules for the objective complement of literals in T “If L is explicitly true then when computing undefined literals forget all rules with head ¬L”

  13. WFSX definition • The semi-normal version of P, Ps, is obtained by adding not ¬L to every rule of P with head L • An interpretation (T U not F) is a PSM of ELP P iff: • T = GPGPs(T) • T ÍGPs(T) • F = HP - GPs(T) • The WFSX semantics is determined by the knowledge ordering least PSM (wrt Í)

  14. WFSX example Ps: pacifist(X) ¬ not hawk(X), not ¬pacifist(X) hawk(X) ¬ not pacifist(X ), not ¬hawk(X) ¬pacifist(a) ¬ not pacifist(a) T0 = {} Gs(T0) = {¬p(a),p(a),h(a),p(b),h(b)} T1 = {¬p(a)} Gs(T1) = {¬p(a),h(a),p(b),h(b)} T2 = {¬p(a),h(a)} T3 = T2 P: pacifist(X) ¬ not hawk(X) hawk(X) ¬ not pacifist(X) ¬pacifist(a) The WFM is: {¬p(a),h(a), not p(a), not ¬h(a), not ¬p(b), not ¬h(b)}

  15. Properties of WFSX • Complies with the coherence principle • Coincides with WFS in normal programs • If WFSX is total it coincides with the only answer-set • It is sound wrt answer-sets • It is supported, cumulative, and relevant • Its computation is polynomial • It has sound implementations (cf. below)

  16. Inconsistent programs • Some ELPs have no WFM. E.g. { a ¬, ¬a ¬ } • What to do in these cases? Explosive approach: everything follows from contradiction • taken by answer-sets • gives no information in the presence of contradiction Belief revision approach: remove contradiction by revising P • computationally expensive Paraconsistent approach: isolate contradiction • efficient • allows to reason about the non-contradictory part

  17. WFSXp definition • The paraconsistent version of WFSx is obtained by dropping the requirement that T and F are disjoint, i.e. dropping T ÍGPs(T) • An interpretation, T U not F, is a PSMp P iff: • T = GPGPs(T) • F = HP - GPs(T) • The WFSXp semantics is determined by the knowledge ordering least PSM (wrt Í)

  18. WFSXp example Ps: c ¬ not b, not ¬c a ¬ not ¬a b ¬ a, not ¬b ¬a ¬ not a d ¬ not e , not ¬d T0 = {} Gs(T0) = {¬a,a,b,c,d} T1 = {¬a,a,b,d} Gs(T1) = {d} T2 = {¬a,a,b,c,d} T3 = T2 P: c ¬ not b a b ¬ a ¬a d ¬ not e The WFM is: {¬a,a,b,c,d, not a, not ¬a, not b, not ¬b not c, not ¬c, not ¬d, not e}

  19. Surgery situation • A patient arrives with: sudden epigastric pain; abdominal tenderness; signs of peritoneal irritation • The rules for diagnosing are: • if he has sudden epigastric pain abdominal tenderness, and signs of peritoneal irritation, then he has perforation of a peptic ulcer or an acute pancreatitis • the former requires surgery, the latter therapeutic treatment • if he has high amylase levels, then a perforation of a peptic ulcer can be exonerated • if he has Jobert’s manifestation, then pancreatitis can be exonerated • In both situations, the pacient should not be nourished, but should take H2 antagonists

  20. LP representation perforation ¬ pain, abd-tender, per-irrit, not high-amylase pancreat ¬ pain, abd-tender, per-irrit, not jobert ¬nourish ¬ perforation h2-ant ¬ perforation ¬nourish ¬ pancreat h2-ant ¬ pancreat surgery ¬ perforation anesthesia ¬ surgery ¬surgery ¬ pancreat pain. per-irrit. ¬high-amylase. abd-tender. ¬jobert. The WFM is: {pain, abd-tender, per-irrit, ¬high-am, ¬jobert , not ¬pain, not ¬abd-tender, not ¬per-irrit, not high-am, not jobert, ¬nourish, h2-ant, not nourish, not ¬h2-ant, surgery, ¬surgery, not surgery, not ¬surgery, anesthesia, not anesthesia, not ¬anesthesia }

  21. Results interpretation The WFM is: {pain, abd-tender, per-irrit, ¬high-am, ¬jobert , …, ¬nourish, h2-ant, not nourish, not ¬h2-ant, surgery, ¬surgery, not surgery, not ¬surgery,anesthesia, not anesthesia, not ¬anesthesia } • The symptoms are derived and non-contradictory • Both perforation and pancreatitis are concluded • He should not be fed (¬nourish), but take H2 antagonists • The information about surgery is contradictory • Anesthesia though not explicitly contradictory (¬anesthesiadoesn’t belong to WFM) relies on contradiction (both anesthesia and notanesthesia belong to WFM)

More Related